Electronics > Microcontrollers

Upgrade firmware ACARD SCSI to IDE bridge 3.77 to 1.77b

(1/11) > >>

max-bit:
Such a rather not typical problem
I'm downloading a bin file from memory
IBM_ver 3_77i_AEC7722IR_ver2006_16bit.BIN
(below as an attachment)
As you can see there is every byte inserted in FF
And now I have a file
slvd177b.bin
Where there is no such insert
After that, the file (newer version) is identical.

Now, kind of a trivial question of how to make such an interleave I tried HexEdit
HxD
and HexEditNeo but no ..... has such an option or is somehow hidden ....

Who will help ... thanks ...
File bin in to acard firmware ....


THANKS
Working !  :scared:

Upgrade ACARD SCSI to IDE ATA Card AEC-7722IR
Orginal firmware 3.77 (for IBM RS server) (no working for PC ....)
Modifity to version 1.77b
Add modifity file !
Upgrade only external programmer !!!

max-bit:
Orginal file ;
02 00 d0 81 7c ff ff ff 02 0c 3c 02 15 07 ff ff


Mod file: (add FF every byte)
02 FF 00 FF d0 FF 81 FF 7c FF ff FF ff FF ff FF 02 FF 0c FF 3c FF 02 FF 15 FF 07 FF ff FF ff
(of course all bin file )


ataradov:
That's exactly what Python is for. Here is a program, I have not tried it, but it should work.


--- Code: ---fr = open('in.bin', 'rb')
fw = open('out.bin', 'wb')

try:
  byte = fr.read(1)
  while byte != '':
    fw.write(byte)
    fw.write(chr(0xff))
    byte = fr.read(1)

finally:
  fr.close()
  fw.close()

--- End code ---

cv007:
;http://www.rebol.com/downloads.html
;REBOL/Core 2.7
loop length? bin: read/binary %slvd177b.bin [ insert bin #{FF} bin: skip bin 2 ]
write/binary %newfile.bin head bin

max-bit:
THANKS
Working !  :scared:

Upgrade ACARD SCSI to IDE ATA Card AEC-7722IR
Orginal firmware 3.77 (for IBM RS server)
Modifity to version 1.77b
Add modifity file !
Upgrade only external programmer !!!

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod