Repository navigation
openipc: SigmaStar NAND environment back to 256 KiB, as openipc-hisilicon - #111
Conversation
…icon 631d899 made it 128 KiB in the 256 KiB env partition, so a bad block there would leave room for it. That broke the convention every OpenIPC NAND camera follows: CONFIG_ENV_SIZE 0x40000 in a 0x40000 range at 0xC0000, which the firmware's fw_env.config reads with that size. It is 256 KiB again; ubwrite's size check and partition-bounded write stay.
PR Summary by QodoRestore SigmaStar NAND environment size to 256 KiB
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. Upgraded devices lose saved settings
|
#109 made the SigmaStar NAND environment 128 KiB in its 256 KiB partition (
631d8991cc1), so a bad block there would leave room for it. That breaks the OpenIPC convention: openipc-hisilicon and openipc-ingenic useCONFIG_ENV_SIZE=0x40000in a0x40000range at0xC0000, and the firmware'sfw_env.configreads the environment at that size.This puts it back to 256 KiB. The rest of #109's fixes stay:
ubwrite's size check before the erase and its write bounded to the boot partition, and the recovery checks.