IDE interfaces - hardware details

Arc/RPCs, peripherals, RISCOS operating system & ARM kit eg GP2x, BeagleBoard
alienkidmj12
Posts: 42
Joined: Sat Aug 26, 2017 8:30 am
Contact:

Re: IDE interfaces - hardware details

Post by alienkidmj12 » Fri Jul 06, 2018 12:21 pm

Do these work on a3000, and support biggish hds ?

thanks

dave

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

Re: IDE interfaces - hardware details

Post by IanS » Fri Jul 06, 2018 12:35 pm

alienkidmj12 wrote:
Fri Jul 06, 2018 12:21 pm
Do these work on a3000, and support biggish hds ?
Both would work on an A3000 (the only machine with an 8-bit internal podule slot and an external 16-bit podule connector)

On a RISC OS 3.11 machine (e.g. A3000) they support up to 2GB of space (4 partitions of 512MB each)

aotta
Posts: 60
Joined: Fri May 26, 2017 8:57 am
Location: Italy
Contact:

Re: IDE interfaces - hardware details

Post by aotta » Fri Jul 06, 2018 5:14 pm

my burner accept only .jed files for GAL programming, and i didn't find an easy tool to compile source if3.PLD posted by IanS: anyone can attach the jed files please?

RobC
Posts: 2213
Joined: Sat Sep 01, 2007 9:41 pm
Contact:

Re: IDE interfaces - hardware details

Post by RobC » Fri Jul 06, 2018 5:55 pm

aotta wrote:
Fri Jul 06, 2018 5:14 pm
my burner accept only .jed files for GAL programming, and i didn't find an easy tool to compile source if3.PLD posted by IanS: anyone can attach the jed files please?
Try the attached file - I've just created it with WinCupl so haven't been able to test it etc.
Attachments
IF3.zip
(671 Bytes) Downloaded 4 times

aotta
Posts: 60
Joined: Fri May 26, 2017 8:57 am
Location: Italy
Contact:

Re: IDE interfaces - hardware details

Post by aotta » Fri Jul 06, 2018 6:13 pm

RobC wrote:
Fri Jul 06, 2018 5:55 pm
aotta wrote:
Fri Jul 06, 2018 5:14 pm
my burner accept only .jed files for GAL programming, and i didn't find an easy tool to compile source if3.PLD posted by IanS: anyone can attach the jed files please?
Try the attached file - I've just created it with WinCupl so haven't been able to test it etc.
Thank you very much Rob, i spent hours with Lattice suite with no success, didn't know about WinCupl.. i'll get a look for next time!

aotta
Posts: 60
Joined: Fri May 26, 2017 8:57 am
Location: Italy
Contact:

Re: IDE interfaces - hardware details

Post by aotta » Sun Jul 08, 2018 3:46 pm

i made one IanS IDE card (IIC, it sounds good!;) and it works... only one time! :roll:

if i format with raspberry a microSD card, then i partition it with zidefs tool, then i got harddisc0 and i can use it perfectly... since a reset or power cycle.
At reboot, disk is empty and not formatted.
May be cause of the sdcard? i tested five or six of them, and with a lexar 4gb i get it worked for 3 or 4 times..
Nothing to do with CF card interface, i can't format them.

Any idea or suggestion?

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

Re: IDE interfaces - hardware details

Post by IanS » Sun Jul 08, 2018 3:53 pm

aotta wrote:
Sun Jul 08, 2018 3:46 pm
if i format with raspberry a microSD card, then i partition it with zidefs tool, then i got harddisc0 and i can use it perfectly... since a reset or power cycle.
That sounds the wrong way round.
You should partition the disk, then format (only need to initialise them) with !hform. It can all be done on the A30x0.
Have you got a patched version of !hform?

Is this the 8-bit version? Are you using it in an A3000, A3010 or A3020?

Do you have any pictures?
Last edited by IanS on Sun Jul 08, 2018 4:25 pm, edited 1 time in total.

aotta
Posts: 60
Joined: Fri May 26, 2017 8:57 am
Location: Italy
Contact:

Re: IDE interfaces - hardware details

Post by aotta » Sun Jul 08, 2018 4:27 pm

I read the zidefs' guide, but !hform patched give an error "number too big" when computing Sec*Head*Cyl*Park...
i made a patch to bypass the error, but when program finish the disk is not recognized as formatted.
With the only "partition", if previously formatted the SD card with the Rasperry, it works... but any writing on disk seems corrupt it.
firsttimeworks.jpg
And here a pic of the board... only small difference from your original design is the capacitor not axial and the 2 transistors, as i use different pnp ones... but i think they only are used for led, if i am not wrong.
IIC.jpg

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

Re: IDE interfaces - hardware details

Post by IanS » Sun Jul 08, 2018 4:39 pm

Which version of hform are you using?
All my formatting on RISC OS 3.11 has been using version 2.19 (24 Apr 92). It's the version that is on Apps disc 2 - http://www.riscos.com/ftp_space/310/index.htm

You will only be able to partition it up to 512MB per partition (499MB is a better choice).

The transistors are only for the activity LED, and are not critical.

aotta
Posts: 60
Joined: Fri May 26, 2017 8:57 am
Location: Italy
Contact:

Re: IDE interfaces - hardware details

Post by aotta » Sun Jul 08, 2018 4:53 pm

i use the same !hform, patched with zidefs tool, but if i change the shape, i get the number too big error at line 1820, if i retain the shape, format finish but fails with disc not understood at line 60 after writing the directory.
And i tested card with my A3000, same issue.
I configured zidefsdrive 1 and zidefsdiscs 1 and zidefsdrive 4, is it right for only one 500 mb partition?

Thank Ian for your support!

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

Re: IDE interfaces - hardware details

Post by IanS » Sun Jul 08, 2018 5:01 pm

Does the output of the DeviceID program look sensible (does it match the size of the device you are using?)

With zidefsdrive 1 and zidefsdiscs 1 and zidefsdrive 4, when you run the partion program it should allow you to set the size of the partition. Then reboot the machine (prefreably a power-cycle). If you then re-run the partition program does it show the correct data still?

Has all your testing been with the same IDE device, have you got any others you can try?

aotta
Posts: 60
Joined: Fri May 26, 2017 8:57 am
Location: Italy
Contact:

Re: IDE interfaces - hardware details

Post by aotta » Sun Jul 08, 2018 5:35 pm

when partitioning with zidefs tools, partition is lost after reboot. Tested with sd to ide and cf to ide adapter, and a few cf and sd card... best results with sd adaptor in the picture above, and now i think it worked some times becouse i get a format finished with no error, probably i tried format without reboot after partitioning.
But i made thousands tests and i can't replicate it... or may be it worked only one time

aotta
Posts: 60
Joined: Fri May 26, 2017 8:57 am
Location: Italy
Contact:

Re: IDE interfaces - hardware details

Post by aotta » Sun Jul 08, 2018 8:52 pm

Resolved!! :D
Since i had problem when writing, i made some test copying some text from floppy to hd, and noticed the second letter of each pair sometime was shifted by one character, so... the 9th bit was not working!
A closer look with a lens and.. a pin was not soldered fine: a quick resolder and now i finally have 4 500mb partition in my A4000!
In the next days i'll assemble another pcb, so my A3000 will got an hd too!

Thank you for all your work (and for sharing with us) =D> and support Ian!

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

Re: IDE interfaces - hardware details

Post by IanS » Sun Jul 08, 2018 8:54 pm

Well done tracking that down. Good to know it's now working.

Post Reply