nvram: handle nvram at varying offsets within the eraseblock (fixes Edimax PS-1208mfg with FLSH at offset 0)

SVN-Revision: 22299
This commit is contained in:
Jo-Philipp Wich
2010-07-19 22:20:07 +00:00
parent c811398d00
commit f813a693fd
4 changed files with 22 additions and 6 deletions

View File

@@ -111,6 +111,7 @@ static int do_info(nvram_handle_t *nvram)
/* Show info */
printf("Magic: 0x%08X\n", hdr->magic);
printf("Length: 0x%08X\n", hdr->len);
printf("Offset: 0x%08X\n", nvram->offset);
printf("CRC8: 0x%02X (calculated: 0x%02X)\n",
hdr->crc_ver_init & 0xFF, crc);