wiki:BIOS WPH to BIN Conversion

WPH to BIN Conversion

Usually the easiest way is to check the file size (in kB) then round it down to the next power of 2. Examples are 128, 256, 512, 1024, 2048, 4096. The rounded down number is the destination file size. Then you run (Linux/*BSD/Solaris/...)

Code: Select all

dd if=bios.wph bs=1024k count=1 of=bios.bin

bs specifies the destination size, bios.wph is the original file and bios.bin is the .bin file you want. The example above is for a .wph file slightly larger than 1024kB. For a .wph file slightly larger than 512kB, you have to use bs=512k instead. You can probably guess how to handle .wph files with a size slightly larger than 2048kB.

To verify that the file is OK, run

Code: Select all

hexdump -C bios.bin|tail -n 2

and the output should look like

Code: Select all

0007fff0  ea xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx  |................|
00080000

or

Code: Select all

000ffff0  eb xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx  |................|
00100000

or

Code: Select all

000ffff0  e9 xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx  |................|
00100000

Last modified 3 years ago Last modified on 11/03/21 06:57:37
Note: See TracWiki for help on using the wiki.