Burn RISCOS roms

Arc/RPCs, peripherals, RISCOS operating system & ARM kit eg GP2x, BeagleBoard
Post Reply
cyberfox_it
Posts: 15
Joined: Tue Jan 20, 2015 5:04 pm
Contact:

Burn RISCOS roms

Post by cyberfox_it » Wed Apr 24, 2019 11:21 am

Hi all,

I think, I've broken one of the rom of my RPC...
I've found on the net the image files of the 3.71 rom, I've an eprom programmer, what kind of eprom I need ?
I think I've to split the rom file into even and odd parts, anyone can confirm this ?
Anything else to do before try to burn ?

Please help...
Thank you

User avatar
keropi
Posts: 56
Joined: Thu Apr 11, 2019 7:35 pm
Location: Greece
Contact:

Re: Burn RISCOS roms

Post by keropi » Wed Apr 24, 2019 5:21 pm

what are the chances?
I also killed my 4.02 ROM2 rom , I inserted it 1 pin to the left :x
I know 4.02 uses an otp eprom similar to 27C160 but I have no data to burn so my rpc is just dead atm :x

cyberfox_it
Posts: 15
Joined: Tue Jan 20, 2015 5:04 pm
Contact:

Re: Burn RISCOS roms

Post by cyberfox_it » Wed Apr 24, 2019 6:53 pm

I've done exactly the same ... :(:(

User avatar
keropi
Posts: 56
Joined: Thu Apr 11, 2019 7:35 pm
Location: Greece
Contact:

Re: Burn RISCOS roms

Post by keropi » Wed Apr 24, 2019 6:56 pm

and now your rpc just powers without any video signal , correct? mine does that

cyberfox_it
Posts: 15
Joined: Tue Jan 20, 2015 5:04 pm
Contact:

Re: Burn RISCOS roms

Post by cyberfox_it » Wed Apr 24, 2019 8:29 pm

Yes...

Only a beatifull blank screen...

User avatar
danielj
Posts: 7446
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Burn RISCOS roms

Post by danielj » Wed Apr 24, 2019 8:52 pm

https://www.utsource.net/itm/p/426796.html

You'll need something that can deal with a 42pin DIP though :/ - 3.71 is fairly easy, the images are available. 4.02 less so as it's still sold (albeit not as a ROM, just as images).

d.

User avatar
keropi
Posts: 56
Joined: Thu Apr 11, 2019 7:35 pm
Location: Greece
Contact:

Re: Burn RISCOS roms

Post by keropi » Wed Apr 24, 2019 9:09 pm

which is total bs
I bought 4.39 from risc-os.com , why not have the rom images as well?
I found their softload 4.39 to lack several things:
- DHCP INFO utility does not work because they did not include the needed toolbox update - that's a bundled app
- there is an error in installation regarding scicalc , again a bundled app that works ok afterwards
- it needs 4.02 boot partition - why? do a rom check if you only want to sell it as a "4.02 upgrade only"

I guess it could be worse... :lol:

User avatar
lcww1
Posts: 296
Joined: Wed Mar 15, 2017 11:16 pm
Location: Cloud Cuckoo Land
Contact:

Re: Burn RISCOS roms

Post by lcww1 » Wed Apr 24, 2019 9:15 pm

There are a few pointers on burning RO ROMs for RiscPC here https://www.riscosopen.org/forum/forums/5/topics/870

And it seems to be possible to deal with 42 pin 27C160s using a cheap minipro TL866 and an adapter board described here http://digicoolthings.com/eprom-program ... it-eproms/

cyberfox_it
Posts: 15
Joined: Tue Jan 20, 2015 5:04 pm
Contact:

Re: Burn RISCOS roms

Post by cyberfox_it » Wed Apr 24, 2019 9:56 pm

I've that programmer, the adapter, and the rom images...
I'm going to try to burn a 4.02 eprom...

Only a question, the image should be splitted in even and odd of a word ?
Last edited by cyberfox_it on Wed Apr 24, 2019 9:59 pm, edited 2 times in total.

User avatar
IanS
Posts: 981
Joined: Mon Aug 31, 2009 6:02 pm
Contact:

Re: Burn RISCOS roms

Post by IanS » Wed Apr 24, 2019 10:03 pm

cyberfox_it wrote:
Wed Apr 24, 2019 9:56 pm
Only a question, the image should be splitted in even and odd of a word ?
Yes, the ROMs are 16-bit, so one rom needs bytes 0 and 1 (D0-D15), the other ROM needs bytes 2 and 3 (D16-31).

User avatar
keropi
Posts: 56
Joined: Thu Apr 11, 2019 7:35 pm
Location: Greece
Contact:

Re: Burn RISCOS roms

Post by keropi » Wed Apr 24, 2019 11:50 pm

I have found an archive of 4.02 that has inside 4x 1mbyte roms - the actual devices though on rpc are 2x 2mbytes ... what's the deal here? any tips? I want to rebuild my ROM2 if possible...
thanks

User avatar
myelin
Posts: 723
Joined: Tue Apr 26, 2016 9:17 pm
Location: Mountain View, CA, USA
Contact:

Re: Burn RISCOS roms

Post by myelin » Thu Apr 25, 2019 6:10 am

Archived copies of roms often aren't in the same format as the chips. Usually they're just the rom image from memory, split into 1MB chunks. In your case to get the actual images for the two 2MB chips, you need to concatenate the four files and then split so that the 32-bit words are divided over the two chips.

i.e.

file 1 = byte 0, byte 1, byte 2, byte 3, ..., byte 1048575
file 2 = byte 1048576 ...
file 3 = byte 2097152 ...
file 4 = byte 3145728 ... byte 4194303

but:

chip 1 = byte 0, byte 1, byte 4, byte 5, byte 8, byte 9, ... byte 4194300, byte 4194301
chip 2 = byte 2, byte 3, byte 6, byte 7, byte 10, byte 11, ... byte 4194302, byte 4194303
SW/EE from New Zealand, now in Mountain View, CA, making BBC/Electron hardware projects for fun.
Most interesting: Arcflash, FX2+PiTubeDirect Tube/Cartridge adapter, USB cart interface.

User avatar
keropi
Posts: 56
Joined: Thu Apr 11, 2019 7:35 pm
Location: Greece
Contact:

Re: Burn RISCOS roms

Post by keropi » Thu Apr 25, 2019 12:43 pm

so basically you merge all files in one and then do a "Wordwise 16bit" split to LO and HI so you get 2x 2mbyte files ? No need to byteswap correct?

User avatar
myelin
Posts: 723
Joined: Tue Apr 26, 2016 9:17 pm
Location: Mountain View, CA, USA
Contact:

Re: Burn RISCOS roms

Post by myelin » Thu Apr 25, 2019 8:06 pm

Sounds right, yes. You'll have to check the circuit diagram for the machine you're burning the ROMs for, although I *think* bits 0-15 go in ROM 1 and 16-31 go in ROM 2.

When you download a ROM image, it'll be in little endian format, i.e.:

byte 0 = word 0 bits 0-7
byte 1 = word 0 bits 8-15
byte 2 = word 0 bits 16-23
byte 3 = word 0 bits 24-31
byte 4 = word 1 bits 0-7
byte 5 = word 2 bits 8-15
byte 6 = word 3 bits 16-23
byte 7 = word 4 bits 24-31

As long as your eprom programmer expects bytes in little endian format, you shouldn't need to do any byte swapping.
Last edited by myelin on Thu Apr 25, 2019 8:08 pm, edited 1 time in total.
SW/EE from New Zealand, now in Mountain View, CA, making BBC/Electron hardware projects for fun.
Most interesting: Arcflash, FX2+PiTubeDirect Tube/Cartridge adapter, USB cart interface.

BBCNoob
Posts: 71
Joined: Sun Feb 25, 2018 12:36 pm
Contact:

Re: Burn RISCOS roms

Post by BBCNoob » Mon Jul 15, 2019 8:44 am

Does anyone have a little program that does such a thing?

I'm wanting to flash 3.11 on an A3010.

Going by viewtopic.php?t=14110, I've bought 2x 27C160-100. Since the A3010 take two chips. I've already got a eprom programmer and correct board, since I've already flashed Amiga A1200 chips before.

And going by where to get RiscOS 3.11 from - viewtopic.php?f=16&t=17390#p241081

Some help would go a long way! :)
Last edited by BBCNoob on Mon Jul 15, 2019 8:49 am, edited 1 time in total.

User avatar
danielj
Posts: 7446
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Burn RISCOS roms

Post by danielj » Mon Jul 15, 2019 8:52 am

I've not seen anything. Pick your preferred language and then:

Code: Select all

open outputfile1;
open outputfile2;
open inputfile;
while inputfile.HasMoreBytes() {
    outputfile1.write(inputfile.read-2-bytes);
    outputfile2.write(inputfile.read-2-bytes);
}
close everything;

BBCNoob
Posts: 71
Joined: Sun Feb 25, 2018 12:36 pm
Contact:

Re: Burn RISCOS roms

Post by BBCNoob » Mon Jul 15, 2019 8:57 am

I'm not a coder so, sadly I don't have a language to pick from.

There also seems to be four files in question, not just two.

User avatar
danielj
Posts: 7446
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Burn RISCOS roms

Post by danielj » Mon Jul 15, 2019 9:04 am

That bit is easy to deal with, you just concatenate the files. In windows, from the command prompt,

Code: Select all

copy /b file1+file2+file3+file4 outputfile

User avatar
danielj
Posts: 7446
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Burn RISCOS roms

Post by danielj » Mon Jul 15, 2019 9:07 am

There we go, google is your friend:
http://eab.abime.net/showthread.php?t=21599&page=14

"winhex, wordwise 16 bit split" - that's what you need to do to that concatenated file to give you the two files you need to burn.

BBCNoob
Posts: 71
Joined: Sun Feb 25, 2018 12:36 pm
Contact:

Re: Burn RISCOS roms

Post by BBCNoob » Mon Jul 15, 2019 9:47 am

Thank you - but WinHex costs £35, so it can output files larger than 200K. Not, really an option when I'm trying to do this upgrade cheaply.
Last edited by BBCNoob on Mon Jul 15, 2019 9:47 am, edited 1 time in total.

User avatar
danielj
Posts: 7446
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Burn RISCOS roms

Post by danielj » Mon Jul 15, 2019 10:10 am

Personally speaking, I'm very very happy to help someone who's trying to code something, but I'm not going to write the code for them unless it's something that I'm doing already (that'd cost £50/hour :D) :)

d.

BBCNoob
Posts: 71
Joined: Sun Feb 25, 2018 12:36 pm
Contact:

Re: Burn RISCOS roms

Post by BBCNoob » Mon Jul 15, 2019 10:18 am

I can fully understand that - that's why I'm wondering if someone had a file kicking about that does it, because they've already done this project.

I'm not expecting someone to create a program especially for me.

Thank you for your help though.

I'll keep looking for something that'll do what I need. As you say, Google is my friend, I'm sure I'll end up finding something. :D

User avatar
danielj
Posts: 7446
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Burn RISCOS roms

Post by danielj » Mon Jul 15, 2019 10:25 am

BBCNoob wrote:
Mon Jul 15, 2019 10:18 am
I can fully understand that - that's why I'm wondering if someone had a file kicking about that does it, because they've already done this project.

I'm not expecting someone to create a program especially for me.

Thank you for your help though.

I'll keep looking for something that'll do what I need. As you say, Google is my friend, I'm sure I'll end up finding something. :D
Use it as an opportunity to learn to code :)

This also looks like it *might* do the job - I have no idea how though: http://www.keil.com/support/docs/963.htm

d.

philpem
Posts: 123
Joined: Fri Apr 04, 2014 5:42 pm
Contact:

Re: Burn RISCOS roms

Post by philpem » Mon Jul 15, 2019 10:50 am

BBCNoob wrote:
Mon Jul 15, 2019 8:57 am
I'm not a coder so, sadly I don't have a language to pick from.

There also seems to be four files in question, not just two.
You can use the "Srecord" tools (specifically srec_cat) to split wordwise images into bytewise ones and vice versa. There's an example in the manpage :)

User avatar
danielj
Posts: 7446
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Burn RISCOS roms

Post by danielj » Mon Jul 15, 2019 2:25 pm

philpem wrote:
Mon Jul 15, 2019 10:50 am
You can use the "Srecord" tools (specifically srec_cat) to split wordwise images into bytewise ones and vice versa. There's an example in the manpage :)
Perfict - that was what that other link I posted seemed to be talking about (not that I had a clue :D) :)

d.
Last edited by danielj on Mon Jul 15, 2019 2:25 pm, edited 1 time in total.

User avatar
danielj
Posts: 7446
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Burn RISCOS roms

Post by danielj » Tue Jul 16, 2019 8:49 pm

BBCNoob wrote:
Mon Jul 15, 2019 10:18 am
I can fully understand that - that's why I'm wondering if someone had a file kicking about that does it, because they've already done this project.

I'm not expecting someone to create a program especially for me.

Thank you for your help though.

I'll keep looking for something that'll do what I need. As you say, Google is my friend, I'm sure I'll end up finding something. :D
I just had a peek at the srec_cat thing, and this page: http://eab.abime.net/showthread.php?p=890315&styleid=4

Split ROM images in the attached zip :)
Attachments
RO311-striped.zip
(1.17 MiB) Downloaded 12 times

BBCNoob
Posts: 71
Joined: Sun Feb 25, 2018 12:36 pm
Contact:

Re: Burn RISCOS roms

Post by BBCNoob » Thu Jul 18, 2019 11:31 am

Thank you!

cmj6502
Posts: 60
Joined: Mon Jan 05, 2009 7:24 pm
Contact:

Re: Burn RISCOS roms

Post by cmj6502 » Thu Aug 15, 2019 9:17 pm

I made a programmer with an Teensy++ board a bit of logic and a ROM socket. The details are somewhere on the web.

I used strip-board so it’s a a rats nest of wiring but it works :)

Post Reply