全部博文(92)
分类: 嵌入式
2009-09-22 16:44:20
I use busybox-1.13.0.tar to build my own root file system
cd busybox
(1)Add a cross-tool chain
export PATH=$PATH:/home/linux/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/bin
make defconfig
make menuconfig
#Configuration:we have based on the default configuration, and then configure it as a static compiler. Do not install / usr path,to get rid of the "#" under the taskset Miscellaneous Utilities, or being wrong, as following:
Busybox setting
build busybox as a static binary
don’t use /usr
Miscellaneous Utilities ―>
saving and quit.
(2)Compiling and install
make ARCH=arm CROSS_COMPILE=arm-softfloat-linux-gnu-
ARCH:Specify the platform
CROSS_COMPILE:Specify the compile tool
#Remove the installation linuxrc
cd /opt/armlinux/rootfs
rm linuxrc
(3)
After make install, a new directory: _install will be built under the busybox installing directory, in which you can find busybox executable file(/bin) and the link point.
# ls bin
[
[[
addgroup
adduser
ar
arping
ash
awk
basename