Toolchain new
From t-hack.com - Hack X300T / X301T
Line 1: | Line 1: | ||
− | * | + | *Prerequisites: |
+ | |||
+ | gcc3.4 (it doesn't matter if you also have gcc4.x, as long as you have 3.4)<br> | ||
+ | zlib-dev (zlib1g-dev on Ubuntu - possibly others)<br> | ||
+ | bison<br> | ||
+ | flex<br> | ||
+ | genromfs<br> | ||
+ | libncurses5-dev<br> | ||
+ | <br> | ||
+ | Run this before you start (if you close the terminal you were working in you'll have to run this again):<br> | ||
<pre>export CC=gcc-3.4</pre> | <pre>export CC=gcc-3.4</pre> | ||
*Grab [[Media:Smp86xx_toolchain_2.8.0.1.tar.gz]], unpack, then run:<br> | *Grab [[Media:Smp86xx_toolchain_2.8.0.1.tar.gz]], unpack, then run:<br> | ||
<pre>make menuconfig && make</pre> | <pre>make menuconfig && make</pre> | ||
− | You'll get the Buildroot configuration page, don't change anything, just exit. When it asks if you want to save choose yes, then wait... | + | You'll get the Buildroot configuration page, don't change anything, just exit. When it asks if you want to save choose yes, then wait...<br> |
Once it's done (the last line should be 'creating toolchain-path.env...') run: | Once it's done (the last line should be 'creating toolchain-path.env...') run: | ||
<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, | + | *Grab [[Media:Rootfs-2.7.127.0.tar.bz2]], unpack, then run:<br> |
+ | <pre>make menuconfig && make</pre> | ||
+ | Same as before, just exit and save the config, then some more waiting...<br> | ||
+ | If it claims you don't have zlib-dev but /usr/include/zlib.h exists, then change /path/to/rootfs_2.7.127.0/test_if_zlib_is_available.sh to: | ||
+ | <pre>#! /bin/sh | ||
+ | echo yes</pre> | ||
+ | '''Only do this if /usr/include/zlib.h exists!''' | ||
+ | |||
+ | Once it's compiled run: | ||
<pre>source /path/to/rootfs_2.7.127.0/rootfs-path.env</pre> | <pre>source /path/to/rootfs_2.7.127.0/rootfs-path.env</pre> | ||
*Grab [[Media:Kernel-2.7.127.0.tar.bz2]], unpack, make menuconfig, make vmlinux.bin, wait...<br> | *Grab [[Media:Kernel-2.7.127.0.tar.bz2]], unpack, make menuconfig, make vmlinux.bin, wait...<br> |