View Single Post
  #3   Report Post  
Posted to sci.electronics.repair
John Robertson John Robertson is offline
external usenet poster
 
Posts: 907
Default eprom burning question

On 2020/12/30 1:52 p.m., Dave Platt wrote:
In article ,
Mike Hooker wrote:
im using a GQ-4x burner, its a willem type. im trying to burn 3 images to a single prom. the
1st at 0000, the second at offset 1000, the 3rd at 1800. i try the combine feature, but it
tells me to close the application, re-open without choosing a device. that doesnt work,. its
a 2764. i tried burning the 1st file, then the 2nd, then the third. i see all the code there,
but not sure if thats the right way. i would rather combine into one file, and then burn.


If you have access to a Linux system you can do the combining with
"dd" (one of many choices but it's straightforward).

One way to do this would be

dd if=/dev/zero of=combined.bin bs=1 count=8192
dd if=1st.bin of=combined.bin bs=1 seek=0 conv=notrunc
dd if=2nd.bin of=combined.bin bs=1 seek=$((0x1000)) conv=notrunc
dd if=3rd.bin of=combined.bin bs=1 seek=$((0x1800)) conv=notrunc

In plain language - create an 8k-byte file full of zeros, then copy
each of the three separate images into it, seeking to the appropriate
offset in the file first, and not truncating the file while copying.


Nice solution, I would only suggest editing the create function to make
it a 8K file of "FF"s so you aren't trying to burn 00s - this will speed
up the programming slightly. Afraid I don't know how, but I'm sure it is
easy to look up...

John :-#)#

--
(Please post followups or tech inquiries to the USENET newsgroup)
John's Jukes Ltd.
MOVED to #7 - 3979 Marine Way, Burnaby, BC, Canada V5J 5E3
(604)872-5757 (Pinballs, Jukes, Video Games)
www.flippers.com
"Old pinballers never die, they just flip out."