Upgrade Flag

There's an interesting tool in /opt/local/bin/upgrade_flag that is used to set whether the box should boot into the recovery-mode, and if in the recovery-console whether to automatically flash a freshly downloaded boxee.iso, or boot into the normal boxee app.

It changes block 226-233 as follows (where ./flash in this instance just hexdumps the first 0x100 bytes of nandflash block 226):

# /opt/local/bin/upgrade_flag r 0 && ./flash
0
08b20700 00000000 00000000 00000000
00000000 00000000 00000000 00000000
4d534401 3038332d 00000000 00000000
00000000 00000000 00000000 00000000
304c5102 34423333 30313130 00003539
00000000 00000000 00000000 00000000
00314103 00000000 00000000 00000000
00000000 00000000 00000000 00000000
392e3004 2e31322e 33313431 00000031
00000000 00000000 00000000 00000000
00535505 00000000 00000000 00000000
00000000 00000000 00000000 00000000
004e4506 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00003007 00000000 00000000 00000000
00000000 00000000 00000000 00000000
# /opt/local/bin/upgrade_flag r 1 && ./flash
1
08b40700 00000000 00000000 00000000
00000000 00000000 00000000 00000000
4d534401 3038332d 00000000 00000000
00000000 00000000 00000000 00000000
304c5102 34423333 30313130 00003539
00000000 00000000 00000000 00000000
00314103 00000000 00000000 00000000
00000000 00000000 00000000 00000000
392e3004 2e31322e 33313431 00000031
00000000 00000000 00000000 00000000
00535505 00000000 00000000 00000000
00000000 00000000 00000000 00000000
004e4506 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00003207 00000000 00000000 00000000
00000000 00000000 00000000 00000000
# /opt/local/bin/upgrade_flag u 1 && ./flash
1
08b30700 00000000 00000000 00000000
00000000 00000000 00000000 00000000
4d534401 3038332d 00000000 00000000
00000000 00000000 00000000 00000000
304c5102 34423333 30313130 00003539
00000000 00000000 00000000 00000000
00314103 00000000 00000000 00000000
00000000 00000000 00000000 00000000
392e3004 2e31322e 33313431 00000031
00000000 00000000 00000000 00000000
00535505 00000000 00000000 00000000
00000000 00000000 00000000 00000000
004e4506 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00003107 00000000 00000000 00000000
00000000 00000000 00000000 00000000
# /opt/local/bin/upgrade_flag u 1 && /opt/local/bin/upgrade_flag r 1 && ./flash
1
1
08b50700 00000000 00000000 00000000
00000000 00000000 00000000 00000000
4d534401 3038332d 00000000 00000000
00000000 00000000 00000000 00000000
304c5102 34423333 30313130 00003539
00000000 00000000 00000000 00000000
00314103 00000000 00000000 00000000
00000000 00000000 00000000 00000000
392e3004 2e31322e 33313431 00000031
00000000 00000000 00000000 00000000
00535505 00000000 00000000 00000000
00000000 00000000 00000000 00000000
004e4506 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00003307 00000000 00000000 00000000
00000000 00000000 00000000 00000000

This impacts which ramdisk is used either nandboot_v3.0 (whose start block is stored in blocks 162-169) or recovery_ramdisk (which only appears in block 1723 it seems).

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License