// busybox source
$ w get http://www.busybox.net/downloads/busybox-1.17.2.tar.bz2
$ tar xvjf busybox-1.17.2.tar.bz2
$ cd busybox-1.17.2
$ make menuconfig
==> build option의 static executable, build prefix를 eabi toolchain의 prefix로 맞춰준다
$ make & make install

make install에 의해 _install 폴더에 설치된 busybox를 root file system으로 변환
$ cd _install

/sbin/init을 이용하여 초기화하기
$ mkdir proc sys dev etc etc/init.d
$ vi etc/init.d/rcS
---------------------------------------------
#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
/sbin/mdev -s
---------------------------------------------

rootfs 생성
$ find . | cpio -o --format=newc > ../rootfs.img
$ cd ..
$ gzip -c rootfs.img > rootfs.img.gz
$ cd ..


$ qemu-system-arm -M versatilepb -m 128M -kernel linux-2.6.35.6/arch/arm/boot/zImage -initrd busybox-1.17.2/rootfs.img.gz -append "root=/dev/ram rdinit=/bin/sh"

or

$ qemu-system-arm -M versatilepb -m 128M -kernel linux-2.6.35.6/arch/arm/boot/zImage -initrd busybox-1.17.2/rootfs.img.gz -append "root=/dev/ram rdinit=/sbin/init"




2010/09/27 11:14 2010/09/27 11:14
Posted by scott

트랙백 주소 :: 이 글에는 트랙백을 보낼 수 없습니다