嵌入式文件系统构建工具 busybox / buildroot / openwrt 梳理

1、busybox

busybox最轻量

1) 修改Makefile

CROSS_COMPILE ?= /usr/local/gcc-linaro-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-

ARCH ?= arm

2) 配置make menuconfig

Busybox Settings  --->

[*] Build BusyBox as a static binary (no shared libs)

(/usr/local/gcc-linaro-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-) Cross Compiler prefix

3) 编译,安装

#make

#make install

4) 拷贝Linaro Toolchain依赖的glibc库

https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/

下找到sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf.7z,拷贝usr和lib两个目录到文件系统

5) 制作引导文件

2、buildroot

我用的atmel sama5d3,  看这个文档就够了How to build Buildroot for AT91

http://www.at91.com/linux4sam/bin/view/Linux4SAM/BuildRootBuild

这个是定制的buildroot, 通用版用法也类似。

3、openwrt

https://cnodejs.org/topic/536a402afa61d57127060d40

 https://github.com/qianguozheng/nodejs-openwrt/blob/master/Makefile

https://blog.csdn.net/GenRong/article/details/26099311

https://blog.csdn.net/xhoufei2010/article/details/51627417

http://archive.openwrt.org/chaos_calmer/15.05/arm64/generic/

http://archive.openwrt.org/snapshots/trunk/

http://archive.openwrt.org/chaos_calmer/

http://archive.openwrt.org/

https://blog.csdn.net/bless2015/article/details/49798513

Linaro Toolchain

Linaro provides monthly GCC source archive snapshots of the current Linaro GCC release branch, as well as quarterly releases of pre-built Linaro GNU cross-toolchain binary archives.

The following tables provide direct access to the most common Linux and bare-metal ABI variants of the Linaro binary cross-toolchain quarterly releases. Both x86_64 Linux and Mingw32 (MS Windows compatible) host binaries are provided:

Latest Linux Targeted Binary Toolchain Releases

arm-linux-gnueabihf 32-bit ARMv7 Cortex-A, hard-float, little-endian Release-Notes Binaries Source
armv8l-linux-gnueabihf 32-bit ARMv8 Cortex-A, hard-float, little-endian Release-Notes Binaries Source
aarch64-linux-gnu 64-bit ARMv8 Cortex-A, little-endian Release-Notes Binaries Source

Latest Bare-Metal Targeted Binary Toolchain Releases

arm-eabi 32-bit ARMv7 Cortex-A, soft-float, little-endian Release-Notes Binaries Source
aarch64-elf 64-bit ARMv8 Cortex-A, little-endian Release-Notes Binaries Source

猜你喜欢

转载自www.cnblogs.com/dong1/p/8906597.html