| 00000000 | 00000040 | NBF header |
| 00000040 | 00000028 | devtype, operator, language |
| 00008040 | 00025800 | first bitmap |
| 00030040 | 00025800 | second bitmap |
| 00070040 | 01000000 | FAT16 filesystem |
| 01070040 | end of image |
under linux you can view the contents with the following command:
mount -r -o loop,offset=0x70040 -t vfat ms_.nbf /mnt/loop0
7680 2003-09-01 14:17:04 AutoRun.exe
46763 2003-09-01 14:16:08 Broadcast_WWE.sa.CAB
906097 2003-09-01 14:16:12 CallerIDRC11_WWE_1.5.sa.CAB
3125012 2003-09-01 14:16:28 CameraRC131_WWE_1.5.sa.CAB
2611351 2003-09-01 14:16:42 ClearVue_WWE.sa.CAB
789 2003-09-01 14:16:08 Config.txt
804040 2003-09-01 14:16:44 GPRSMonitor_WWE.sa.CAB
114901 2003-09-01 14:16:46 MIDI56.sa.CAB
1338588 2003-09-01 14:16:52 MMS1507_WWE.sa.CAB
193598 2003-09-01 14:16:52 OEM_AKU1_WWE_4AP.sa.CAB
369149 2003-09-01 14:16:54 OEM_WWE_03120301.sa.CAB
50903 2003-09-01 14:16:56 TMCOMREG.sa.CAB
1146317 2003-09-01 14:17:02 TMDNLCustomize.sa.CAB
53480 2003-09-01 14:16:56 TMD_AP_NL.sa.CAB
50847 2003-09-01 14:16:56 TMD_NL.sa.CAB
47130 2003-09-01 14:16:54 TM_phone_class10.CAB
4608 2003-09-01 14:16:08 TPDisable.exe
4608 2003-09-01 14:16:08 TPEnable.exe
46753 2003-09-01 14:17:04 Version_AKU1.sa.CAB
71531 2003-09-01 14:16:08 VideoMMS.sa.CAB
50097 2003-09-01 14:17:04 t-mobile_shortcuts_only(UK).PPC2002_ARM.CAB
the decrypted file is a nbf file, with a 64 byte header, 256k bootloader, 31.25M
OS Image. note that this is different from the xda-I format
to convert a nbf to be used with the newer upgrade tool:
xda2nbftool -d NK.nbf test.nba HTC xda2nbftool -e test.nba NK.nbf 921211or use the '-x' option to xor-crypt files.
| offset | size | description | example |
|---|---|---|---|
| 0000 | 10 | devicetype | PH10 |
| 000a | "-" | ||
| 000b | 20 | operator | TMOBILE or Qtek |
| 001f | "-" | ||
| 0020 | 10 | language | WWE or ENG |
| 002a | "-" | ||
| 002b | 9 | version | 1.60.00 or 1.60.21 |
| 0034 | "-" | ||
| 0035 | 8 | crcsum | a5d35dde |
| 003d | "---" |
the crc polynomial is 0xEDB88320, the initial value 0. result not inverted.
xda2nbftool -d nk.nbf nk.nba HTCto calculate the checksum of the file, for instance, if you manually changed something with a hex editor, type:
xda2nbftool -c ms_.nbfIf you want to update the file with the corrected checksum, add the '-u' option:
xda2nbftool -c ms_.nbf -uYou can also change values in the nbf header like this:
xda2nbftool -sd PH10 -so Qtek -sl WWE -v ms_.nbf
| offset | chars | contents | use with xda2nbftool |
|---|---|---|---|
| 0000 | 32 | "USB 32 1.60.00WWE " | |
| 0040 | 11 | "PH10" | add to the -sd option |
| 0056 | 21 | "TMOBILE" or "Qtek", or "O2ASIA" | add to the -so option |
| 0080 | 11 | "ENG" or "WWE" | add to the -sl option |
| 0096 | 16 | "1.60.06" | |
| 00b6 | 16 | "1.06.01" |
note: here is another version of this page