1、源码下载:
第一种方式:git clone git://git.busybox.net/buildroot, git下载最新版本;
This should create a buildroot directory with all the latest sources (after a while).
第二种方式:https://buildroot.org/download.html , 官网下载指定版本;
我们是基于buildroot-2017.05版本开发;
2、源码编译:
$ cd buildroot
$ make freescale_imx7dsabresd_defconfig
$ make
生成文件:
buildroot-2017.05/output/images/
boot.vfat imx7d-sdb-cqimx7-m4.dtb rootfs.ext2 rootfs.ext4 rootfs.tar rootfs.tar.bz2 sdcard.img u-boot.imx zImage
3、烧写镜像到TF卡:
第一种方式(Linux):dd命令
sudo dd if=sdcard.img of=/dev/sdc
第二种方式(Windows):Win32DiskImager
4、系统启动:
把TF卡插入到开发板,打开电源进行系统启动;