星期三, 1月 06, 2010

Busybox-1.15.3

1. Install Required Package
sudo apt-get install libncurses5-dev

2. Busy Configuration
make menuconfig
2.1.
Busybox Settings --->
Build Options --->
Cross Compiler prefix (/cross/usr/bin/arm-linux-)
2.2.
BusyBox Settings --->
Build Options --->
Build BusyBox as a static binary (no shared libs)

3. Make and Install
make ARCH=arm
make install
This will generate a directory "_install"

4. Create console and null Device
cd _install
mkdir dev
cd dev
sudo mknod console c 5 1
sudo mknod null c 1 3

sudo mknod tty2 c 4 2
sudo mknod tty3 c 4 3
sudo mknod tty4 c 4 4

5. /etc/init.d/rcS
mkdir etc
mkdir etc/init.d
vi etc/init.d/rcS
chmod +x etc/init.d/rcS

沒有留言: