The variable "size" stores number of words (4bytes). But the loop over memory uses size as number of bytes to scan memory. As result it fetches only 1/4th of memory.
This patch solves this problem and nvram2env fetches all NVRAM variables.
Differential D6466
(fix) [nvram2env] nvram2env scans only 1/4th of memory mizhka on May 19 2016, 8:23 PM. Authored by Tags None Referenced Files
Subscribers
Details The variable "size" stores number of words (4bytes). But the loop over memory uses size as number of bytes to scan memory. As result it fetches only 1/4th of memory. This patch solves this problem and nvram2env fetches all NVRAM variables. Pre-requisites: any MIPS board with ASCII-based NVRAM mapped into memory
hint.nvram.0.base=0x1c7f8000 (it's valid address for Asus RT-N53 with flags = 0x4)
Actual result: only part of nvram variables are found
Diff Detail
Event TimelineComment Actions
|