OpenWRT image building for NXP Layerscape(以LS1046ARDB为例)

OpenWrt 是一种针对嵌入式设备(通常是无线分享器)且具备高度可扩展性的 GNU/Linux 发行版本。 OpenWrt不是一个单一、静态的轫体,而是提供了一个可添加软体套件的可写的档案系统。

使用作业系统: 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

★博文内容参考自 网站,与平台无关,如有违法或侵权,请与网站管理员联系。

★博文作者未开放评论功能

参考来源

: https://github.com/openwrt/openwrt/blob/master/target/linux/layerscape/README