Repository navigation
install-novatek: keep osmem and mem= equal, with ${osmem} in bootargs - #615
Conversation
PR Summary by QodoKeep Novatek kernel memory settings aligned with osmem
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Public docs expose vendor internals
|
U-Boot splits the RAM by osmem while the kernel sizes itself from mem=, and the bootcmd re-runs the saved bootargs, so a number stored there never follows osmem. Explain what each mismatch looks like, and show how to replace only the mem= value with a literal ${osmem} so osmem is the one setting to change.
1ecb024 to
b9b95ae
Compare
|
Finding 1 (vendor internals / lab details) refers to the first revision. At b9b95ae the page has no vendor function or subsystem names and no quoted console lines, and the commit message and PR description were rewritten the same way. The only hardware mentioned is a hardware class (128 MB NT98566, 5 MP sensor), which the checklist allows. The one |
On NT9856x boards U-Boot splits the RAM by the
osmemvariable, while the kernel sizes itself frommem=inbootargs. The bootcmd on this page re-runs the savedbootargs, so a number stored there never followsosmem. Changing one without the other either stops the camera right after kernel decompression (osmemlarger) or crashes it in a loop once the video drivers load (mem=larger).This replaces the Known issues section with an explanation of both cases and a procedure that replaces only the
mem=value in the existingbootargswith a literal${osmem}. The board's own partition layout is left alone, a backup is kept, and the result is checked before reboot. After that,osmemis the only setting to change. The section also says the right size depends on the board's RAM and stream, and gives 32M and 54M on a 128 MB NT98566 with a 5 MP sensor as the tested example.Verified on that hardware class: the
fw_setenv/sedstep keeps the placeholder, and the next boot expands it.fw_setenv osmem 54Mplus a reboot then boots with the larger split and streams.Background: OpenIPC/firmware#2107. Firmware guard for the
mem=larger case: OpenIPC/firmware#2657.