openwrt已经编译出ls1043a固件如何刷入?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

openwrt已经编译出ls1043a固件如何刷入?

跳至解决方案
1,049 次查看
小狼
Contributor I

openwrt-layerscape-armv8_64b-fsl_ls1043a-rdb-squashfs-sysupgrade.bin

openwrt-layerscape-armv8_64b-fsl_ls1043a-rdb-squashfs-firmware.bin

openwrt-layerscape-armv8_64b-fsl_ls1043a-rdb-rootfs.tar.gz

 

生成了这3个文件

当前开发板是centos系统,如何将openwrt刷入开发版本?有示例参考学习吗?

0 项奖励
回复
1 解答
1,019 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

This is a reference in our designs, sysupgrade is used when there is a current OpenWRT version, use firmware as composite firmware to flash it on NOR.

Hit any key to stop autoboot:  0

 

=> usb start

starting USB...

Bus usb3@2f00000: Register 200017f NbrPorts 2

Starting the controller

USB XHCI 1.00

Bus usb3@3000000: Register 200017f NbrPorts 2

Starting the controller

USB XHCI 1.00

Bus usb3@3100000: Register 200017f NbrPorts 2

Starting the controller

USB XHCI 1.00

scanning bus usb3@2f00000 for devices... 1 USB Device(s) found

scanning bus usb3@3000000 for devices... 2 USB Device(s) found

scanning bus usb3@3100000 for devices... 1 USB Device(s) found

       scanning usb for storage devices... 1 Storage Device(s) found

 

=> usb storage

  Device 0: Vendor: Kingston Rev: PMAP Prod: DataTraveler SE1

            Type: Removable Hard Disk

            Capacity: 7441.6 MB = 7.2 GB (15240576 x 512)

 

=> usb dev

 

IDE device 0: Vendor: Kingston Rev: PMAP Prod: DataTraveler SE1

            Type: Removable Hard Disk

            Capacity: 7441.6 MB = 7.2 GB (15240576 x 512)

 

=> fatls usb 0

            System Volume Information/

            .Spotlight-V100/

            .Trashes/

 37486596   openwrt-22.03.5-layerscape-armv8_64b-fsl_ls1043a-rdb-squashfs-firmware.bin

     4096   ._openwrt-22.03.5-layerscape-armv8_64b-fsl_ls1043a-rdb-squashfs-firmware.bin

 176160768   openwrt-22.03.5-layerscape-armv8_64b-fsl_ls1043a-rdb-sdboot-squashfs-sdcard.img

     4096   ._openwrt-22.03.5-layerscape-armv8_64b-fsl_ls1043a-rdb-sdboot-squashfs-sdcard.img

 

4 file(s), 3 dir(s)

 

=> fatload usb 0 a0000000 openwrt-22.03.5-layerscape-armv8_64b-fsl_ls1043a-rdb-squashfs-firmware.bin

37486596 bytes read in 1988 ms (18 MiB/s)

 

=> protect off all && erase 60000000 +4000000 && cp.b a0000000 60000000 $filesize

Un-Protect Flash Bank # 1

 

................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ done

Erased 512 sectors

Copy to Flash... 9....8....7....6....5....4....3....2....1....done

=> boot

starting openwrt ...

## Booting kernel from Legacy Image at 81000000 ...

   Image Name:   ARM64 OpenWrt Linux-5.10.176

Regards

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,020 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

This is a reference in our designs, sysupgrade is used when there is a current OpenWRT version, use firmware as composite firmware to flash it on NOR.

Hit any key to stop autoboot:  0

 

=> usb start

starting USB...

Bus usb3@2f00000: Register 200017f NbrPorts 2

Starting the controller

USB XHCI 1.00

Bus usb3@3000000: Register 200017f NbrPorts 2

Starting the controller

USB XHCI 1.00

Bus usb3@3100000: Register 200017f NbrPorts 2

Starting the controller

USB XHCI 1.00

scanning bus usb3@2f00000 for devices... 1 USB Device(s) found

scanning bus usb3@3000000 for devices... 2 USB Device(s) found

scanning bus usb3@3100000 for devices... 1 USB Device(s) found

       scanning usb for storage devices... 1 Storage Device(s) found

 

=> usb storage

  Device 0: Vendor: Kingston Rev: PMAP Prod: DataTraveler SE1

            Type: Removable Hard Disk

            Capacity: 7441.6 MB = 7.2 GB (15240576 x 512)

 

=> usb dev

 

IDE device 0: Vendor: Kingston Rev: PMAP Prod: DataTraveler SE1

            Type: Removable Hard Disk

            Capacity: 7441.6 MB = 7.2 GB (15240576 x 512)

 

=> fatls usb 0

            System Volume Information/

            .Spotlight-V100/

            .Trashes/

 37486596   openwrt-22.03.5-layerscape-armv8_64b-fsl_ls1043a-rdb-squashfs-firmware.bin

     4096   ._openwrt-22.03.5-layerscape-armv8_64b-fsl_ls1043a-rdb-squashfs-firmware.bin

 176160768   openwrt-22.03.5-layerscape-armv8_64b-fsl_ls1043a-rdb-sdboot-squashfs-sdcard.img

     4096   ._openwrt-22.03.5-layerscape-armv8_64b-fsl_ls1043a-rdb-sdboot-squashfs-sdcard.img

 

4 file(s), 3 dir(s)

 

=> fatload usb 0 a0000000 openwrt-22.03.5-layerscape-armv8_64b-fsl_ls1043a-rdb-squashfs-firmware.bin

37486596 bytes read in 1988 ms (18 MiB/s)

 

=> protect off all && erase 60000000 +4000000 && cp.b a0000000 60000000 $filesize

Un-Protect Flash Bank # 1

 

................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ done

Erased 512 sectors

Copy to Flash... 9....8....7....6....5....4....3....2....1....done

=> boot

starting openwrt ...

## Booting kernel from Legacy Image at 81000000 ...

   Image Name:   ARM64 OpenWrt Linux-5.10.176

Regards

0 项奖励
回复
999 次查看
小狼
Contributor I
使用emcc是将openwrt写入下面的3个分区吗?
还是直接执行上述命令?
Part Start Sector Num Sectors UUID Type
1 132812 47412 00002442-01 83
2 180224 434176 00002442-02 83
3 614400 29921280 00002442-03 83

=> mmc info
Device: FSL_SDHC
Manufacturer ID: 15
OEM: 100
Name: AJTD4
Bus Speed: 52000000
Mode : MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 14.6 GiB
Bus Width: 4-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 14.6 GiB WRREL
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH
0 项奖励
回复
976 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

That binary is intended to be flashed on NOR flash, look for the openwrt-22.03.5-layerscape-armv8_64b-fsl_ls1043a-rdb-sdboot-squashfs-sdcard.img.gz file instead.

Refer to LDP users guide, for memory layout. x60_0000_0000 + x4_000_000 is NOR flash current bank, SD starts at block x8 and ends at block x20_000. I would base the process on chapter 4.7.5.4.

Instead of To program Layerscape LDP composite NOR firmware image to IFC NOR flash on LS1043ARDB, use To program Layerscape LDP composite SD firmware image to SD card on LS1043ARDB.

Those images have a composite firmware layout and size, also they depend on storage device (NOR or sd).

Thank you

0 项奖励
回复