Dual firmware on Lx2160ARDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dual firmware on Lx2160ARDB

906 Views
jackho
Contributor III

Hi,

We implement dual images on LX2160ARDB,  now we can switch to boot from A/B partition, so we image partitions layout as below:

firmware

kernel A

Kernel B

Rootfs A

Rootfs B 

Now we want to add dual firmware, and partition layout as below, if firmware boot failed, it can boot from firmware_backup, is it possible to do that on LX2160ARDB?

firmware

firmware_backup

kernel A

Kernel B

Roots A

Rootfs B 

 

Thank you.

Best Regards,

Jack Ho

Tags (1)
0 Kudos
Reply
3 Replies

821 Views
jackho
Contributor III

Hi,

Thank you for the reply, as I know emmc also has boot area partition besides the user data area, like mmcblk1boot0 and mmcblk1boot1

Is that possible to put the bootloader into mmcblk1booo0 or mmcblk1boot1 and setting emmc reg EXT_CSD[179] (PARTITION_CONFIG) to select bootloader boot partition?

Thank you.

Jack 

 

jackho_0-1678437569026.png

 

0 Kudos
Reply

789 Views
yipingwang
NXP TechSupport
NXP TechSupport

LX2160A BootROM doesn't look at EMMC EXT CSD[179] to validate the boot code location.

RCW (as initial stage of booting) is always loaded from the eMMC physical address 0x1000 (8th 512-byte block).
RCW Loading - from Serial Flash (SD/MMC at offset 0x1000, QSPI at offset 0x0, Serial NOR at offset 0x0)

0 Kudos
Reply

869 Views
yipingwang
NXP TechSupport
NXP TechSupport

It is impossible to implement dual firmware on the same boot partition. Because firmware images should be programmed at the specific locations on the boot media, please refer to firmware memory layout as the following.

yipingwang_0-1676958478924.png

 

0 Kudos
Reply