Repository navigation
nor: split layout on hi3519v101, hi3516av200 and hi3536cv100 - #63
Conversation
CONFIG_OPENIPC_NOR_SPLIT for hi3519v101 and hi3516av200, whose kernel (OpenIPC/linux hisilicon-hi3519v101) finds the split layout from its device tree. misc_init_r() sets verify=n before openipc_helper(). NOR images: u-boot-hi3519v101-nor.bin 162684 bytes, u-boot-hi3516av200-nor.bin 162720 bytes.
CONFIG_OPENIPC_NOR_SPLIT for hi3536cv100, whose kernel (OpenIPC/linux hisilicon-hi3536cv100) finds the split layout from its device tree. misc_init_r() sets verify=n before openipc_helper(). NOR image: u-boot-hi3536cv100-nor.bin 143656 bytes.
PR Summary by QodoEnable split NOR boot layouts on three HiSilicon SoCs
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1. Recovery corrupts large kernel updates
|
They ship the split package beside the fixed-slot one since OpenIPC/firmware#2672, on OpenIPC/linux#145 and #146 and OpenIPC/u-boot#63. sysupgrade -k -r takes the split package on them, and they go back to fixed slots the same way. Checked in qemu-hisilicon (hi3519v101 and hi3536cv100, 8 MB). Not run on hardware.
CONFIG_OPENIPC_NOR_SPLITfor the two 3.18 families whose kernels now find the split NOR layout from their device tree:hi3519v101_config,hi3516av200_confighisilicon-hi3519v101)hi3536cv100_confighisilicon-hi3536cv100)Each board's
misc_init_r()now setsverify=nbeforeopenipc_helper(), as #52, #61 and #62 did. The scan can then clear it for a split image, andbootmchecks the uImage CRC. Fixed-slot cameras boot as before.NOR images:
u-boot-hi3519v101-nor.bin162684 bytes,u-boot-hi3516av200-nor.bin162720,u-boot-hi3536cv100-nor.bin143656, all inside the 256K boot area.Tested in qemu-hisilicon with each family's lite build on its new kernel (8 MB):
fwupdover TFTP from fixed slots, and from a damaged kernel (fails its CRC)The hi3536cv100 download fails because U-Boot's gmac takes a data abort on the first TFTP packet in qemu-hisilicon. The published U-Boot fails the same way, so it's the emulated network or the gmac driver, not this change. Not run on hardware.