version 1.17.3
2. 解壓縮
tar jxvf busybox-1.17.3.tar.bz2.tar
3. 設定環境變數
export CROSS_COMPILE=/opt/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-
cross compile工具跟你系統會有關係
所以通常需要修改此部份
FAQ網頁有說明如果要使用cross_compile要設定CROSS_COMPILE參數
4. build busybox
make defconfig
/*
To enable all features, use "make defconfig", which produces the largest
general-purpose configuration.
*/
make menuconfig
# select Busybox Settings
# then General Configuration
# then exec prefers applets
# exit back to top level menu
# select Shells
# then Standalone shell
# exit back to top level menu
# exit and save new configuration
make
檢查一下busybox檔案屬性
file busybox
busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped
如果想要build出static
此篇文章有教學
再看一次
nelsonchung@gps1004:~/busybox-1.17.3$ file busybox
busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.14, stripped
最後感謝checko告知要使用stty在嵌入式系統上 可以利用busybox
感謝auron告知busybox相關information, 他真的很專業
感謝auron告知busybox相關information, 他真的很專業
Reference:
沒有留言:
張貼留言