|
下载buildroot源码:https://github.com/linux4sam/buildroot-at91
编译配置:
[mw_shl_code=bash,true]$ make sama5d3_defconfig
$ make menuconfig[/mw_shl_code]
[mw_shl_code=bash,true] 添加本地编译交叉工具:
Toolchain --->
Toolchain type (External toolchain) --->
Toolchain (Custom toolchain) --->
Toolchain origin (Pre-installed toolchain) --->
(/opt/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux)
(arm-linux-gnueabihf) Toolchain prefix
External toolchain kernel headers series (3.2.x) --->
External toolchain C library (glibc/eglibc) --->
Target options --->
设置目标架构,SAMA5D3 CPU基于ARM的cortex-A5
System configuration --->
系统配置,根据实际情况配置
Target packages --->
按自己需求增加或裁剪Target packages,里面包含了很多常用的库和工具,包括常用的busybox的选用、音频、网络、mtd-utils等
......[/mw_shl_code]
编译
[mw_shl_code=bash,true]$ make[/mw_shl_code]
编译完成;
[mw_shl_code=bash,true]$ ls output/images/
rootfs.jffs2 rootfs.tar rootfs.ubi rootfs.ubifs[/mw_shl_code]
更多配置可以参考atmel维基:
http://www.at91.com/linux4sam/bin/view/Linux4SAM/BuildRootBuild
|
|