Compex WPJ342 » Historial » Revisió 4
Revisió 3 (Roger Pueyo Centelles, 23-07-2014 14:15) → Revisió 4/16 (Roger Pueyo Centelles, 23-07-2014 14:34)
h1. Compex WPJ342 This document explains several ways to compile compile qMp for a "Compex WPJ342":http://www.compex.com.sg/productdetailinfo.asp?model=WPJ342&acc1Panel=2. h2. Standard compilation 1) Get the OpenWrt Attitude Adjustment 12.09 SDK for the WPJ342 from Compex: http://www.compex.com.sg/openwrtdownload.aspx 2) Save the OpenWrt SDK file to your working directory and extract it (as of 23rd July 2014, the latest version is sdkowrt-140604.tar.bz2, which comes inside the file b140604.rar): sdkowrt-140604.tar.bz2): <pre> tar -xf sdkowrt-140604.tar.bz2 sdkowrt-140604.tar.bz2@ </pre> and enter to the newly created directory "sdkowrt-140604". 3) By default this SDK builds the firmware for the WPJ344 board, not the WPJ342. The Makefile file needs to be slightly changed. Open it with your text editor and find the section "standard_config:": <pre> standard_config: cp $(CONFIG_PATH)/wpj344.config $(OWRT_DIST_LOCAL_PATH)/.config rm -rf $(OWRT_DIST_LOCAL_PATH)/tmp </pre> Replace it with: <pre> standard_config: cp $(CONFIG_PATH)/wpj342.config $(OWRT_DIST_LOCAL_PATH)/.config rm -rf $(OWRT_DIST_LOCAL_PATH)/tmp </pre> 4) Run @make@ to compile OpenWrt (without qMp, by now): <pre> make </pre> This will take a while and will download several megabytes of files to ~/dl-openwrt. If you want extra verbosity, run @make V=99@ to get details of the compilation. h2. Compiling with the latest OpenWrt Attitude Adjustment 12.09 revision The OpenWrt SDK provided by Compex is based on Attitude Adjustment 12.09 revision 36088, which does not contain several bugfixes and repository changes included in the following ones. It can be a good idea to build OpenWrt from the last revision, still version Attitude Adjustment 12.09. 1) Follow steps 1 to 3 in the [[Compex_WPJ342#Standard-compilation|Standard Compilation]] section. 2) Check the latest revision number for OpenWrt. Go to https://dev.openwrt.org/changeset and get the last change/revision number (as of 23rd July 2014 it is *41811*). 3) Edit the Makefile with your favourite text editor and replace this: <pre> OWRT_DIST_SVN_REV = 36088 ... OWRT_PKGS_SVN_REV = 36089 </pre> with the latest revision: <pre> OWRT_DIST_SVN_REV = 41811 ... OWRT_PKGS_SVN_REV = 41811 </pre> 4) Check the latest revision number for LuCi. Go to http://svn.luci.subsignal.org and get the last revision number (as of 23rd July 2014 it is *10459*). 5) Edit the Makefile with your favourite text editor and replace this: <pre> FEEDS_LUCI_SVN_REV = 9656 </pre> with the latest revision: <pre> FEEDS_LUCI_SVN_REV = 10459 </pre> h2. Compiling from OpenWrt trunk 1) Get the OpenWrt trunk SDK for the WPJ342 from Compex: http://www.compex.com.sg/openwrtdownload.aspx 2) Save the OpenWrt SDK file to your working directory and extract it (as of 23rd July 2014, the latest version is sdk-r40719-b140527-ath10k.tar.bz2): <pre> tar -xf sdk-r40719-b140527-ath10k.tar.bz2 </pre> 3) Enter the newly created directory @sdk-r40719-b140527-ath10k@. 4) If you want to compile with the latest trunk revision, check the latest revision number for OpenWrt. Go to https://dev.openwrt.org/changeset and get the last change/revision number (as of 23rd July 2014 it is *41811*). Edit the Makefile and replace this: <pre> OWRT_DIST_SVN_REV = 40719 </pre> with: <pre> OWRT_DIST_SVN_REV = 41811 </pre> 5) Run @make@, or @make V=99@ for extra compilation verbosity: <pre> make </pre>