Toolchain new
From t-hack.com - Hack X300T / X301T
Line 1: | Line 1: | ||
− | *Grab [[Media:Smp86xx_toolchain_2.8.0.1.tar.gz]], unpack, make, wait...< | + | *Grab [[Media:Smp86xx_toolchain_2.8.0.1.tar.gz]], unpack, then:<br> |
+ | <pre>make menuconfig && make</pre> | ||
+ | You'll get the Buildroot configuration page, don't change anything, just exit, then wait... | ||
+ | |||
+ | If you get this error: | ||
+ | <pre>In function ‘open’, | ||
+ | inlined from ‘collect_execute’ at /path/to/smp86xx_toolchain_2.8.0.1/toolchain_build_mipsel_nofpu/gcc-3.4.2/gcc/collect2.c:1535: | ||
+ | /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments</pre> | ||
+ | |||
+ | Just go to that line in collect2.c and change it from: | ||
+ | <pre>redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);</pre> | ||
+ | to: | ||
+ | <pre>redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);</pre> | ||
+ | |||
+ | Then run make clean and start the make process again. | ||
+ | |||
+ | |||
+ | Once it's completed making the toolchain: | ||
<pre>source /path/to/smp86xx_toolchain_2.8.0.1/toolchain-path.env</pre> | <pre>source /path/to/smp86xx_toolchain_2.8.0.1/toolchain-path.env</pre> | ||
*Grab [[Media:Rootfs-2.7.127.0.tar.bz2]], unpack, make, wait...<br> | *Grab [[Media:Rootfs-2.7.127.0.tar.bz2]], unpack, make, wait...<br> |