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

★博文內容參考自 網站,與平台無關,如有違法或侵權,請與網站管理員聯繫。

★博文作者未開放評論功能

參考來源

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