info: fix serial number

This commit is contained in:
Lephenixnoir 2021-03-16 12:25:10 +01:00
parent 41dd7ae092
commit c36b63870a
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 2 additions and 3 deletions

View File

@ -12,7 +12,7 @@ static char const *info_str =
"Header information:\n"
" Bootcode timestamp (DateA) (0x%000008x) : %s\n"
" Bootcode checksum (0x%000008x) : 0x%08x\n"
//" Serial number (0x%000008x) : %s\n"
" Serial number (0x%000008x) : %s\n"
" OS version (0x%000008x) : %s\n";
static char const *footer_str =
@ -41,7 +41,7 @@ void os_info(Target &t)
printf(info_str, (os.type == OS::FX ? "FX" : "CG"),
&os.bootcode_timestamp, os.bootcode_timestamp.value.c_str(),
&os.bootcode_checksum, os.bootcode_checksum,
// &os.serial_number, os.serial_number,
&os.serial_number, os.serial_number.value.c_str(),
&os.version, os.version.value.c_str());
if(os.footer == (uint32_t)-1)

View File

@ -38,7 +38,6 @@ void OS::parse_header()
this->bootcode_timestamp = t.read_str(0x8000ffb0, 14);
this->bootcode_checksum = t.read_u32(0x8000fffc);
this->version = t.read_str(0x80010020, 10);
/* Serial numer at 0xffd0... sometimes? */
this->serial_number = t.read_str(0x8000ffd0, 8);
}
else if(this->type == CG)