[chenxibing@localhost rootfs]$ find /usr/local/ -name libc-2.8.so
/usr/local/arm-2009q1/arm-none-linux-gnueabi/libc/armv4t/lib/libc-2.8.so
/usr/local/arm-2009q1/arm-none-linux-gnueabi/libc/thumb2/lib/libc-2.8.so
/usr/local/arm-2009q1/arm-none-linux-gnueabi/libc/lib/libc-2.8.so
/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib/libc-2.8.so
/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/thumb2/lib/libc-2.8.so
/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/lib/libc-2.8.so
arm-none-linux-gnueabi-gcc -v可看到GCC的版本是4.2.3
S3C2440是ARMv4t的内核,所以在编译是加上-march=armv4t,详细可以参考codesourcery上的getting start文档。
make menuconfig进入菜单进行配置,这里由于使用了codesourcery的工具链,此工具链支持EABI,所以选择
Kernel Features ->
[*]Use the ARM EABI to compile the kernel
[*] Allow old ABI binaries to run with this kernel
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- zImage
busybox:
make menuconfig进行配置,详细过程请google
make CROSS_COMPILE=arm-none-linux-gnueabi- CFLAGS:=-march=armv4t install
修改busybox的Maiefile.flags文件,在CFLAGS增加-march=armv4t
阅读(1573) | 评论(0) | 转发(0) |