NVRAM

From WebOS Internals
Revision as of 12:46, 19 May 2010 by IDG (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The NVRAM section of the flash has the following layout:

Magic:       0x4d52564e 'NVRM'
Version:     0x00000001
Header size: 0x00001000 including magic, version, size and crc
Header CRC:  0x???????? the CRC is computed on all the header treating the 4 CRC bytes as zeroes

each entry in the NVRAM header has the following layout:

Magic:       0x31434f54 'TOC1'
Offset:      0x???????? offset of the content of the entry, starting from 0 at the NVRAM header
Size:        0x???????? size in bytes of the entry
Version:     0x00000001
Name:        up to 16 bytes, zero padded name of the entry.

The following entries are present:

envelope: contains all the NVRAM data.
env:      contains the environment variables (stored as name and values in zero terminated strings)
tokens:   contains the Tokens area
logo-boot, logo-chg, logo-badchg, logo-nobatt, logo-badsys, logo-nosys, logo-panic, logo-disk: bitmap images

The CRC polynomial is 0xedb88320.