@tamr:
A-B-C -> C
0A
(Where A & C are [:digit:] and B is [[:alnum:]_])
(Don't ask me why ;D)
[Caveat: Mostly holds true. May not always hold on some weird device/firmware/main/diags builds].
We generally don't give a crap about OTA build numbers, and a far safer method to get it is to check the headers (OTA target) of the update package for said version.
Code:
kindletool convert -i ~/Downloads/Update_kindle_3.4.1_B006.bin ──(Sun, May 31)─┘
Checking update package '/home/niluje/Downloads/Update_kindle_3.4.1_B006.bin'.
Bundle FC02 (OTA [ota])
Bundle Type OTA V1
MD5 Hash 9c54f5a191974f0eab5908f89c4ebd45
Minimum OTA 1725970040
Target OTA 2540470001
Device Kindle 3 Wifi+3G
Optional 0
Padding Byte 186 (0xBA)