toosour wrote:Grateful for any pointers for converting the Sony Vaio .wph to .bin
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
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
Basically, the last line should start with e9/ea/eb and the first column (address) should be 0x7fff0 (for 512kB BIOS) or 0xffff0 (for 1024kB BIOS). Stuff marked with xx or .. is not important.