Line 1: | Line 1: | ||
+ | |||
+ | |||
== BusyBox == | == BusyBox == | ||
Line 19: | Line 21: | ||
mkdir glibc-build | mkdir glibc-build | ||
cd glibc-build/ | cd glibc-build/ | ||
− | ./configure --target=arm-linux-gnueabi --prefix= | + | export CC=arm-linux-gnueabi-gcc |
+ | ../glibc-2.19/configure arm-linux-gnueabi --target=arm-linux-gnueabi --prefix= --enable-add-ons --with-headers=/home/cpeacock/Downloads/linux-3.14/include/ | ||
+ | make | ||
make install install_root=/home/export/rootfs | make install install_root=/home/export/rootfs | ||
</PRE> | </PRE> | ||
+ | == Preparing RootFS == | ||
<PRE> | <PRE> |
wget http://busybox.net/downloads/busybox-1.22.1.tar.bz2 tar -xjf busybox-1.22.1.tar.bz2 cd busybox-1.22.1/ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- defconfig make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- menuconfig make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- install CONFIG_PREFIX=/home/export/rootfs
wget http://ftp.gnu.org/gnu/libc/glibc-2.19.tar.gz tar -xzf glibc-2.19.tar.gz mkdir glibc-build cd glibc-build/ export CC=arm-linux-gnueabi-gcc ../glibc-2.19/configure arm-linux-gnueabi --target=arm-linux-gnueabi --prefix= --enable-add-ons --with-headers=/home/cpeacock/Downloads/linux-3.14/include/ make make install install_root=/home/export/rootfs
mkdir proc sys dev etc etc/init.d
Create a file called etc/init.d/rcS and add:
#!bin/sh mount -t proc none /proc mount -t sysfs none /sys /sbin/mdev -s
and make executable:
chmod +x etc/init.d/rcS