PCM FLASH 224K TO QH 256K
Posted: 2021 Nov 28, 18:41
I am trying to convert a PCM flash read (224k) and convert it to 256k and swap the bank order to the correct order. The hex editor I am using is HXD.https://mh-nexus.de/en/hxd/
I want to learn this and dont really want someone to do it for me but help me understand what I am doing wrong.
I am using http://www.efidynotuning.com/dis.htm for reference
here is the read before any changes are made. I load my 224k file into HXD. I am able to determine the bank order is in fact 1,8,0,9. The way I did it is by looking up the beginning byte for each bank, writing down the offset I found them at onto a piece of paper. Once I find all 4, I order them by the offset I found them at to determine the bank order.
One issue I am running into here is the ASCII string that is listed in the table does not match the ASCII characters in the "decoded text" of the hex editor. I had to search the hex bytes to find them.
Next I reference -
<<<----- How to Swap Bank Order ------>>>
PCMflash / Kess 224k [1-8-0-9] Files to 256k [0-1-8-9] QH
-add null filler infront each bank 0x8192 bytes at
0, 10000, 20000, 30000
So I "insert bytes" , bytecount 8192, hex boxed ticked, fill pattern Hex values ticked, "ff" in the value field.
I add them at offset 0,10000,20000,30000 Next I "insert bytes", bytecount 65536, dec box ticked, (or i could do 0x10000 hex box ticked) fill pattern hex values ticked, "ff" in the value field.
i look at the file size and it did in fact add 65536 bytes next cut 0x30000 to 3ffff Next it says clear all null filler by setting it to 0xff
How do I do that?
Did I do it correct so far? Any words of advice here?
I want to learn this and dont really want someone to do it for me but help me understand what I am doing wrong.
I am using http://www.efidynotuning.com/dis.htm for reference
here is the read before any changes are made. I load my 224k file into HXD. I am able to determine the bank order is in fact 1,8,0,9. The way I did it is by looking up the beginning byte for each bank, writing down the offset I found them at onto a piece of paper. Once I find all 4, I order them by the offset I found them at to determine the bank order.
One issue I am running into here is the ASCII string that is listed in the table does not match the ASCII characters in the "decoded text" of the hex editor. I had to search the hex bytes to find them.
Next I reference -
<<<----- How to Swap Bank Order ------>>>
PCMflash / Kess 224k [1-8-0-9] Files to 256k [0-1-8-9] QH
-add null filler infront each bank 0x8192 bytes at
0, 10000, 20000, 30000
So I "insert bytes" , bytecount 8192, hex boxed ticked, fill pattern Hex values ticked, "ff" in the value field.
I add them at offset 0,10000,20000,30000 Next I "insert bytes", bytecount 65536, dec box ticked, (or i could do 0x10000 hex box ticked) fill pattern hex values ticked, "ff" in the value field.
i look at the file size and it did in fact add 65536 bytes next cut 0x30000 to 3ffff Next it says clear all null filler by setting it to 0xff
How do I do that?
Did I do it correct so far? Any words of advice here?