ICS Wizzo IDEFS for A5000/A4 (+A3020/A4000...) improves CF card support!

Arc/RPCs, peripherals, RISCOS operating system & ARM kit eg GP2x, BeagleBoard
steve3000
Posts: 1839
Joined: Sun Nov 25, 2012 12:43 am
Contact:

Re: ICS Wizzo IDEFS for A5000/A4 (+A3020/A4000...) improves CF card support!

Post by steve3000 » Fri Oct 20, 2017 8:26 pm

sirbod wrote: The source has a 30 sec timeout for reads, so is it actually waiting 30 seconds before reporting the error?
Yes, at least 30 seconds. It felt like longer, but maybe I was impatient, or possibly it tries more than once...?

sirbod
Posts: 829
Joined: Mon Apr 09, 2012 8:44 am
Location: Essex
Contact:

Re: ICS Wizzo IDEFS for A5000/A4 (+A3020/A4000...) improves CF card support!

Post by sirbod » Fri Oct 20, 2017 8:36 pm

steve3000 wrote:Yes, at least 30 seconds. It felt like longer, but maybe I was impatient, or possibly it tries more than once...?
See what it does if you remove the timeout, I've not tested this but hopefully you'll get just one hit:

Code: Select all

DIM temp% 8
P%=temp%
[OPT 2
SUBS R0,R0,#1
STR R0,[R12,#504]
]
C%=!temp%
D%=temp%?6
E%=temp%?7

SYS "OS_Module",18,"ADFS" TO ,,,A%
S%=!(A%-4)

DIM adfs% S%
FOR L%=0 TO S% STEP 4
  Z%=A%!L%:X%=?(A%+L%+6):Y%?(A%+L%+7)
  IF Z%=C% AND X%=D% AND Y%=E% THEN
    adfs%!L%=&E1A00000
    PRINT "Read timeout removed ("+STR$~L%+")"
  ELSE
    adfs%!L%=Z%
  ENDIF
NEXT

OSCLI "SAVE $.ADFS "+STR$~adfs%+"+"+STR$~S%
*SetType $.ADFS Module
EDIT: There are four occurrences of Disc error 23, we need to figure out which one is being generated:
adfs13 #1
adfs13 #2
adfs14 #1
adfs14 #2

I suspect it might be adfs13 #1

EDIT 2: There's actually a bug in adfs13 #1 as the STR R5,WinTickCount should occur inside the loop which starts after the next line, labelled 10. As it stands, should the whole transfer take more than 10 seconds, it will generate Disc Error 23.

Andrewcee
Posts: 51
Joined: Thu Sep 21, 2017 4:27 pm
Location: Swindon
Contact:

Re: ICS Wizzo IDEFS for A5000/A4 (+A3020/A4000...) improves CF card support!

Post by Andrewcee » Mon Mar 26, 2018 10:25 pm

Thanks for this post! I now have an IDE/SD card reader working on an A5000 under IDEFS booted from floppy formatted ADFS. The SD card reader would not work under ADFS.

Currently using a 512MB microSD, will try something larger with multiple partitions another time. Using the IDE tools suggested, can create a partition on the SD and format. After booting from floppy, then goes on to run original !Boot on internal IDE. One small point - the ADFS::4... drive is now IDEFS::4... so any calls in scripts to ADFS::4... have to be updated accordingly.

The SD reader is hard-wired as Master so I swapped the links on the original disk such it is the slave device. With a second hard disk bolted to the chassis beneath the floppy drive (holes line up perfectly), I can run dual ADFS drives or dual IDEFS drives with one a solid state drive. I'm using 10GB and 20GB IDE drives from HP (actually an IBM drive) and Maxtor both formatted to 502MB. A huge waste of space, but at £12.50 a pop, way cheaper than Conner drives at close on £100 each these days. Much faster too.

Will post pictures in next day or two.

Thanks again,
Andrew

steve3000
Posts: 1839
Joined: Sun Nov 25, 2012 12:43 am
Contact:

Re: ICS Wizzo IDEFS for A5000/A4 (+A3020/A4000...) improves CF card support!

Post by steve3000 » Tue Mar 27, 2018 6:46 am

Andrewcee wrote:Thanks for this post! I now have an IDE/SD card reader working on an A5000 under IDEFS booted from floppy formatted ADFS. The SD card reader would not work under ADFS.
Great to hear that! If it works with the floppy boot disc, you can avoid this on the A5000 by finding someone to burn an extension ROM :)

The change in filling system name to IDEFS is expected, and yes you might need to fix up a few references to ADFS in boot files etc. if you're moving to IDEFS from a working ADFS setup.
Andrewcee wrote:The SD reader is hard-wired as Master so I swapped the links on the original disk such it is the slave device. With a second hard disk bolted to the chassis beneath the floppy drive (holes line up perfectly), I can run dual ADFS drives or dual IDEFS drives with one a solid state drive.
This is very interesting. I'd only tried using an SD adaptor alongside a HDD under ADFS and it didn't work (even with HDD as slave, and a working ADFS compatible SD adaptor)... never thought to try this again under the wizzo setup... I'll have to give this a go. :)
Andrewcee wrote:I'm using 10GB and 20GB IDE drives from HP (actually an IBM drive) and Maxtor both formatted to 502MB. A huge waste of space, but at £12.50 a pop, way cheaper than Conner drives at close on £100 each these days. Much faster too.
If you want to use more of your vast HDD, you can reformat using the IDEFS formatter into up to 4 partitions of 502mb each... still only ~2gb max though.

But note that a second drive or SD will count towards the number of partitions, so with a 512mb SD and a 2gb HDD, you can only have access to three 502mb partitions on the larger HDD alongside the SD card.

I run my A5000 with a 2gb SD card partitioned into 4 x 502mb, under Wizzo IDEFS. :)

Andrewcee
Posts: 51
Joined: Thu Sep 21, 2017 4:27 pm
Location: Swindon
Contact:

Re: ICS Wizzo IDEFS for A5000/A4 (+A3020/A4000...) improves CF card support!

Post by Andrewcee » Tue Mar 27, 2018 9:42 am

Great to hear that! If it works with the floppy boot disc, you can avoid this on the A5000 by finding someone to burn an extension ROM :)
Thanks for the update, guessed it likely 4 partitions would work. I can blow up to & including 27512 roms in the BBC prom programmer I made. I'm guessing the ide modules will easily fit in a 64 or 128, albeit we need a rom to suit the 5th col rom in the 5000. Any ideas, not having blown roms for the Arc before, save me digging out the circuit diagrams. How do I create a rom image from the files on floppy, or perhaps one is available somewhere?

All good fun!

The SD card just fits between the power supply & floppy drive,... I've a second ide drive mounted beneath the floppy, hardly needed with a partioned IDE drive :)

[img]
image.jpg
[/img]

Andrewcee
Posts: 51
Joined: Thu Sep 21, 2017 4:27 pm
Location: Swindon
Contact:

Re: ICS Wizzo IDEFS for A5000/A4 (+A3020/A4000...) improves CF card support!

Post by Andrewcee » Tue Mar 27, 2018 4:42 pm

4 Partitions on one drive up and running... IDEDisc6,7,8 - still running solid state disk too. Interesting, the IDE disc formatter allowed me to create 6 partitions, likely could have created more. Unsurprisingly the filing system recognises the first four it finds - I presume.

steve3000
Posts: 1839
Joined: Sun Nov 25, 2012 12:43 am
Contact:

Re: ICS Wizzo IDEFS for A5000/A4 (+A3020/A4000...) improves CF card support!

Post by steve3000 » Tue Mar 27, 2018 10:03 pm

Andrewcee wrote:4 Partitions on one drive up and running... IDEDisc6,7,8 - still running solid state disk too. Interesting, the IDE disc formatter allowed me to create 6 partitions, likely could have created more. Unsurprisingly the filing system recognises the first four it finds - I presume.
I'm sure internally IDEFS could happily work with up to 8 partitions (Drives 0-7), the problem is a combination of RISC OS convention that Drives 0-3 are removable/floppy drives and (a result of that) this version of IDEFS/IDEFiler only provides Drives 4-7.

Apparently the later versions of the ICS IDEFS for their IDE upgrade podule allow you to access and use all 8 partitions successfully. If this version can be identified, it may be possible to patch the Wizzo IDEFS sufficiently to allow all 8 partitions too, but it'll probably involve a lot of time/effort to disassemble both modules to identify the necessary changes (unless the source code could be found somewhere?!).

Andrewcee
Posts: 51
Joined: Thu Sep 21, 2017 4:27 pm
Location: Swindon
Contact:

Re: ICS Wizzo IDEFS for A5000/A4 (+A3020/A4000...) improves CF card support!

Post by Andrewcee » Wed Mar 28, 2018 6:39 am

Found some rom images, will investigate.

steve3000
Posts: 1839
Joined: Sun Nov 25, 2012 12:43 am
Contact:

Re: ICS Wizzo IDEFS for A5000/A4 (+A3020/A4000...) improves CF card support!

Post by steve3000 » Wed Mar 28, 2018 12:22 pm

Andrewcee wrote:Found some rom images, will investigate.
Oh yes, the wizzo ROMs are further up this thread. There's a choice of either a 32kb ROM or a later 64kb ROM. I've been running the 32kb ROM in my A5000 for over a year with no issues, you just need to mount it in the lower pins of the extension ROM socket and set the links correctly.

Andrewcee
Posts: 51
Joined: Thu Sep 21, 2017 4:27 pm
Location: Swindon
Contact:

Re: ICS Wizzo IDEFS for A5000/A4 (+A3020/A4000...) improves CF card support!

Post by Andrewcee » Wed Mar 28, 2018 5:04 pm

Small update needed to my code: prom programmer loads BBC Rom images into banks of sw ram, needs updating to load larger images across banks of ram. Rom write routines okay as they automatically switch across banks of ram depending upon size of Rom in programmer. Some assembler updates on beeb needed :)

Post Reply