使用作业系统: Ubuntu 20.04
参考文档: https://github.com/openwrt/openwrt/blob/master/target/linux/layerscape/README
原始码位置如下:
$ git clone https://github.com/openwrt/openwrt.git
$ make menuconfig
1. Target system选NXP Layerscape
2. Subtarget选ARMv8 64-bit
3. Target profile 选LS1046A-RDB SD Card boot
4. Target Image选单内把GZip images disable.
5. 之后储存Kernel config如.config
6. Build OpenWRT
$ make -jN (N thread number)
7. 解压img.gz file:
gunzip openwrt-layerscape-armv8_64b-fsl_ls1046a-rdb-sdboot-squashfs-sdcard.img.gz
8. 烧录image 至SD card (请把sdN, 换成sdcard 挂载的device number):
sudo dd if=openwrt-layerscape-armv8_64b-fsl_ls1046a-rdb-sdboot-squashfs-sdcard.img of=/dev/sdN bs=512 seek=8 conv=fsync
开机Log截图如下:
参考资料:
https://github.com/openwrt/openwrt/blob/master/target/linux/layerscape/README
参考来源