Project

General

Profile

Compex WPJ342 » History » Version 4

Roger Pueyo Centelles, 07/23/2014 02:34 PM

1 1 Roger Pueyo Centelles
h1. Compex WPJ342
2 1 Roger Pueyo Centelles
3 1 Roger Pueyo Centelles
This document explains several ways to compile compile qMp for a "Compex WPJ342":http://www.compex.com.sg/productdetailinfo.asp?model=WPJ342&acc1Panel=2.
4 1 Roger Pueyo Centelles
5 1 Roger Pueyo Centelles
h2. Standard compilation
6 1 Roger Pueyo Centelles
7 4 Roger Pueyo Centelles
1) Get the OpenWrt Attitude Adjustment 12.09 SDK for the WPJ342 from Compex: http://www.compex.com.sg/openwrtdownload.aspx
8 1 Roger Pueyo Centelles
9 4 Roger Pueyo Centelles
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):
10 1 Roger Pueyo Centelles
11 1 Roger Pueyo Centelles
<pre>
12 4 Roger Pueyo Centelles
tar -xf sdkowrt-140604.tar.bz2
13 1 Roger Pueyo Centelles
</pre>
14 1 Roger Pueyo Centelles
15 1 Roger Pueyo Centelles
and enter to the newly created directory "sdkowrt-140604".
16 1 Roger Pueyo Centelles
17 1 Roger Pueyo Centelles
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:":
18 1 Roger Pueyo Centelles
19 1 Roger Pueyo Centelles
<pre>
20 1 Roger Pueyo Centelles
standard_config:
21 1 Roger Pueyo Centelles
	cp $(CONFIG_PATH)/wpj344.config $(OWRT_DIST_LOCAL_PATH)/.config
22 1 Roger Pueyo Centelles
	rm -rf $(OWRT_DIST_LOCAL_PATH)/tmp
23 1 Roger Pueyo Centelles
</pre>
24 1 Roger Pueyo Centelles
25 1 Roger Pueyo Centelles
Replace it with:
26 1 Roger Pueyo Centelles
27 1 Roger Pueyo Centelles
<pre>
28 1 Roger Pueyo Centelles
standard_config:
29 1 Roger Pueyo Centelles
	cp $(CONFIG_PATH)/wpj342.config $(OWRT_DIST_LOCAL_PATH)/.config
30 1 Roger Pueyo Centelles
	rm -rf $(OWRT_DIST_LOCAL_PATH)/tmp
31 1 Roger Pueyo Centelles
</pre>
32 1 Roger Pueyo Centelles
33 1 Roger Pueyo Centelles
4) Run @make@ to compile OpenWrt (without qMp, by now):
34 1 Roger Pueyo Centelles
35 1 Roger Pueyo Centelles
<pre>
36 1 Roger Pueyo Centelles
make
37 1 Roger Pueyo Centelles
</pre>
38 1 Roger Pueyo Centelles
39 3 Roger Pueyo Centelles
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.
40 2 Roger Pueyo Centelles
41 2 Roger Pueyo Centelles
h2. Compiling with the latest OpenWrt Attitude Adjustment 12.09 revision
42 2 Roger Pueyo Centelles
43 2 Roger Pueyo Centelles
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.
44 2 Roger Pueyo Centelles
45 2 Roger Pueyo Centelles
1) Follow steps 1 to 3 in the [[Compex_WPJ342#Standard-compilation|Standard Compilation]] section.
46 2 Roger Pueyo Centelles
47 2 Roger Pueyo Centelles
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*).
48 2 Roger Pueyo Centelles
49 2 Roger Pueyo Centelles
3) Edit the Makefile with your favourite text editor and replace this:
50 2 Roger Pueyo Centelles
51 2 Roger Pueyo Centelles
<pre>
52 1 Roger Pueyo Centelles
OWRT_DIST_SVN_REV = 36088
53 3 Roger Pueyo Centelles
54 3 Roger Pueyo Centelles
...
55 3 Roger Pueyo Centelles
56 2 Roger Pueyo Centelles
OWRT_PKGS_SVN_REV = 36089
57 2 Roger Pueyo Centelles
</pre>
58 2 Roger Pueyo Centelles
59 1 Roger Pueyo Centelles
with the latest revision:
60 1 Roger Pueyo Centelles
61 2 Roger Pueyo Centelles
<pre>
62 2 Roger Pueyo Centelles
OWRT_DIST_SVN_REV = 41811
63 3 Roger Pueyo Centelles
64 3 Roger Pueyo Centelles
...
65 3 Roger Pueyo Centelles
66 2 Roger Pueyo Centelles
OWRT_PKGS_SVN_REV = 41811
67 2 Roger Pueyo Centelles
</pre>
68 2 Roger Pueyo Centelles
69 2 Roger Pueyo Centelles
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*).
70 2 Roger Pueyo Centelles
71 2 Roger Pueyo Centelles
5) Edit the Makefile with your favourite text editor and replace this:
72 2 Roger Pueyo Centelles
73 2 Roger Pueyo Centelles
<pre>
74 2 Roger Pueyo Centelles
FEEDS_LUCI_SVN_REV = 9656
75 2 Roger Pueyo Centelles
</pre>
76 2 Roger Pueyo Centelles
77 2 Roger Pueyo Centelles
with the latest revision:
78 1 Roger Pueyo Centelles
79 1 Roger Pueyo Centelles
<pre>
80 1 Roger Pueyo Centelles
FEEDS_LUCI_SVN_REV = 10459
81 4 Roger Pueyo Centelles
</pre>
82 4 Roger Pueyo Centelles
83 4 Roger Pueyo Centelles
h2. Compiling from OpenWrt trunk
84 4 Roger Pueyo Centelles
85 4 Roger Pueyo Centelles
1) Get the OpenWrt trunk SDK for the WPJ342 from Compex: http://www.compex.com.sg/openwrtdownload.aspx
86 4 Roger Pueyo Centelles
87 4 Roger Pueyo Centelles
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):
88 4 Roger Pueyo Centelles
89 4 Roger Pueyo Centelles
<pre>
90 4 Roger Pueyo Centelles
tar -xf sdk-r40719-b140527-ath10k.tar.bz2
91 4 Roger Pueyo Centelles
</pre>
92 4 Roger Pueyo Centelles
93 4 Roger Pueyo Centelles
3) Enter the newly created directory @sdk-r40719-b140527-ath10k@.
94 4 Roger Pueyo Centelles
95 4 Roger Pueyo Centelles
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:
96 4 Roger Pueyo Centelles
97 4 Roger Pueyo Centelles
<pre>
98 4 Roger Pueyo Centelles
OWRT_DIST_SVN_REV = 40719
99 4 Roger Pueyo Centelles
</pre>
100 4 Roger Pueyo Centelles
101 4 Roger Pueyo Centelles
with:
102 4 Roger Pueyo Centelles
103 4 Roger Pueyo Centelles
<pre>
104 4 Roger Pueyo Centelles
OWRT_DIST_SVN_REV = 41811
105 4 Roger Pueyo Centelles
</pre>
106 4 Roger Pueyo Centelles
107 4 Roger Pueyo Centelles
5) Run @make@, or @make V=99@ for extra compilation verbosity:
108 4 Roger Pueyo Centelles
109 4 Roger Pueyo Centelles
<pre>
110 4 Roger Pueyo Centelles
make
111 2 Roger Pueyo Centelles
</pre>