Simtec USB technical: Difference between revisions

From RISC OS
Jump to navigationJump to search
m (Formatting)
(Added info about disc formatting)
Line 1: Line 1:
==MassFS==
==MassFS==


Plug in USB drive and appears with name on the iconbar, eg USB FLASH DISK
Plug in a USB drive and it appears with its name on the iconbar, eg USB_DISK with hard spaces (Alt-160) replacing spaces in the DOS disc name.

To save off a DOSDisc image of the disc, do
To save off a DOSDisc image of the disc, do
*Copy MassFS::USB FLASH DISK adfs::HardDisc.$.temp.usbimage
*Copy MassFS::USB_DISK adfs::HardDisc.$.temp.usbimage


To format the disc as FAT16 (DOS) format, use MkDOSDisc from the [[PC|PC card sources]] (download the 3.06 source and extract MkDOSDisc from inside PCConfig/MKDOSdisc/. To format as 32MByte, do
!PCformat from PC card tools almost works, but not quite.
*MkDOSDisc MassFS::USB_DISK.$ 32 -initdos
Don't try to format the disc larger than the size it actually is: it might be worth stepping down a megabyte or two from the published size, and beware that some devices are measured in sizes of million bytes (ie 32MB is 32,000,000 bytes rather than 32*1024*1024 bytes).


''SWI MassFS_GetDriveCount''
''SWI MassFS_GetDriveCount'' (&56700)
:On exit:
:''On exit'':
:r0 = number of drives managed by MassFS
:r0 = number of drives managed by MassFS


''SWI MassFS_GetDriveInfo''
''SWI MassFS_GetDriveInfo'' (&56701)
:On entry:
:''On entry'':
:r0 = drive number
:r0 = drive number (from zero to number of drives managed by MassFS minus one)
:On exit:
:''On exit'':
:r0 = ?
:r0 = ?
:r1 -> drive name
:r1 -> drive name
Line 20: Line 23:
:r2 = size in sectors (512 bytes each)
:r2 = size in sectors (512 bytes each)
:r3 = flags?
:r3 = flags?

==References==
News posting by Jason Tribbeck: [[http://groups.google.co.uk/group/comp.sys.acorn.hardware/msg/39c434435615653f | MassFS formatting]]

Revision as of 22:19, 22 April 2006

MassFS

Plug in a USB drive and it appears with its name on the iconbar, eg USB_DISK with hard spaces (Alt-160) replacing spaces in the DOS disc name.

To save off a DOSDisc image of the disc, do

*Copy MassFS::USB_DISK adfs::HardDisc.$.temp.usbimage

To format the disc as FAT16 (DOS) format, use MkDOSDisc from the PC card sources (download the 3.06 source and extract MkDOSDisc from inside PCConfig/MKDOSdisc/. To format as 32MByte, do

*MkDOSDisc MassFS::USB_DISK.$ 32 -initdos

Don't try to format the disc larger than the size it actually is: it might be worth stepping down a megabyte or two from the published size, and beware that some devices are measured in sizes of million bytes (ie 32MB is 32,000,000 bytes rather than 32*1024*1024 bytes).

SWI MassFS_GetDriveCount (&56700)

On exit:
r0 = number of drives managed by MassFS

SWI MassFS_GetDriveInfo (&56701)

On entry:
r0 = drive number (from zero to number of drives managed by MassFS minus one)
On exit:
r0 = ?
r1 -> drive name
r1+20 -> connection?:drive_name:vendor_id:product_id (separated by colons, &3A)
r2 = size in sectors (512 bytes each)
r3 = flags?

References

News posting by Jason Tribbeck: [| MassFS formatting]