Changes between Initial Version and Version 1 of BIOS WPH to BIN Conversion


Ignore:
Timestamp:
11/03/21 06:57:37 (3 years ago)
Author:
Paul Kulda
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BIOS WPH to BIN Conversion

    v1 v1  
     1= WPH to BIN Conversion =
     2
     3{{{
     4Usually 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/...)
     5
     6Code: Select all
     7
     8dd if=bios.wph bs=1024k count=1 of=bios.bin
     9
     10bs 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.
     11
     12To verify that the file is OK, run
     13
     14Code: Select all
     15
     16hexdump -C bios.bin|tail -n 2
     17
     18and the output should look like
     19
     20Code: Select all
     21
     220007fff0  ea xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx  |................|
     2300080000
     24
     25or
     26
     27Code: Select all
     28
     29000ffff0  eb xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx  |................|
     3000100000
     31
     32or
     33
     34Code: Select all
     35
     36000ffff0  e9 xx xx xx xx xx xx xx  xx xx xx xx xx xx xx xx  |................|
     3700100000
     38
     39}}}