Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
9 crawler(s) on-line.
 57 guest(s) on-line.
 1 member(s) on-line.


 Tpod

You are an anonymous user.
Register Now!
 Tpod:  28 secs ago
 Lou:  13 mins ago
 matthey:  14 mins ago
 OneTimer1:  20 mins ago
 NutsAboutAmiga:  24 mins ago
 Futaura:  1 hr 21 mins ago
 A1200:  1 hr 30 mins ago
 fatbob_gb:  1 hr 44 mins ago
 amigakit:  1 hr 44 mins ago
 Karlos:  2 hrs 11 mins ago

/  Forum Index
   /  Amiga OS4.x \ Workbench 4.x
      /  RESRAD (recoverable ram disk in OS4)
Register To Post

PosterThread
mwoof 
RESRAD (recoverable ram disk in OS4)
Posted on 31-May-2008 11:03:36
#1 ]
Super Member
Joined: 12-Jan-2004
Posts: 1174
From: Larisa, Greece

I read the docs in the OS4 installation CD about this variation of ye olde RAD device (which is apparenty what RAD was). I found an excuse to use it (see further below), but it doesn't work exactly as described the docs. More specifically:


  • In the UBoot parameters, I can not set the amount of memory in KB using "K"; I have to set it in bytes instead.
  • If I try to use a relatively large amount, e.g. 32MB, the system gets stuck just after loading kickstart.
  • The block size of the resulting device is 488 bytes instead of 512.

I decided to use RESRAD for AWeb cache, as I did not wish to lose the login status cookies with a simple soft reset, and using the hard drive slowed down the program significantly (even with SFS!).

Also, I'm not that clear if I can set the size from a dos Driver instead of UBoot.

Thanks

(EDIT)
Oh, there's something about using the parameter with loader instead. Does this mean the "EXEC Kickstart/loader" line in Kicklayout?

Last edited by mwoof on 31-May-2008 at 11:10 AM.

_________________
And may the AmigaGuide you!

AmigaOne G3-SE, OS4 Final (July 2007 update), Debian Sarge, 512 MB RAM, 20 + 80 GB hard disks, NEC 3540 DVD writer, LG DVD reader, Radeon 9250, SB Live, Intracom Netfaster router, PCI USB card (NEC - OHCI/EHCI)

 Status: Offline
Profile     Report this post  
AlexC 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 31-May-2008 13:42:33
#2 ]
Super Member
Joined: 22-Jan-2004
Posts: 1300
From: City of Lost Angels, California.

@mwoof

In the uboot os4_commandline variable I added:

radmem=10M so it's probably the same thing for kilobytes with "K" instead of "KB".

You probably can't set it to 32MB because the total address space available to the kickstart (including RESRAD) is limited to 20MB or something, so try with 16M and if that fails try less until it boots, but next time you update or add kickstart modules, if it doesn't boot anymore remember to check if it's your radmem size.

It also reports 488 bytes per blocks here, I guess it's okay, it works anyway.

You can't mount RESRAD from a dos driver but you can mount the traditional RAD: device and use larger sizes. I'm not sure if the current public version of ramdrive.device already has the fix but at some point there was a bug which caused the RAD disk to vanish upon reboot.

Note that neither RAD nor RESRAD survive a reset, only warm reboots.

With older versions of the OS4 kickstart, more specifically before update #4, you could also use VDisk.device, and that one even survives resets and allows larger sizes like 64MB.
It would be possible to recreate a similar device but the new kernel would have to allow accessing memory at the end of the address space the way VDisk does.
At least on the XE if you don't hold the reset button for 10 seconds or more, the memory doesn't get cleared so your data would still be there if you allocate the same memory area without clearing it.

_________________
AlexC's free OS4 software collection

AmigaOne XE/X1000/X5000/UAE-PPC OS4 laptop/X-10 Home Automation

 Status: Offline
Profile     Report this post  
olegil 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 31-May-2008 13:55:09
#3 ]
Elite Member
Joined: 22-Aug-2003
Posts: 5895
From: Work

@AlexC

488 bytes per block sounds like OFS (DOS\0) is being used... You checked that it's using some form of FFS?

_________________
This weeks pet peeve:
Using "voltage" instead of "potential", which leads to inventing new words like "amperage" instead of "current" (I, measured in A) or possible "charge" (amperehours, Ah or Coulomb, C). Sometimes I don't even know what people mean.

 Status: Offline
Profile     Report this post  
mwoof 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 31-May-2008 17:46:08
#4 ]
Super Member
Joined: 12-Jan-2004
Posts: 1174
From: Larisa, Greece

@AlexC

Using "M" worked here too!

So it's limited. I'll keep this in mind. I set it to 4M now, it should be sufficient.

RAD does not survive a warm reset apparently... but that is the expected behaviour according to the docs.

@AlexC, olegil

It seems that RESRAD uses OFS by default; I had to format it so that it used FFS. Am I missing some parameter(s) perhaps?

_________________
And may the AmigaGuide you!

AmigaOne G3-SE, OS4 Final (July 2007 update), Debian Sarge, 512 MB RAM, 20 + 80 GB hard disks, NEC 3540 DVD writer, LG DVD reader, Radeon 9250, SB Live, Intracom Netfaster router, PCI USB card (NEC - OHCI/EHCI)

 Status: Offline
Profile     Report this post  
olegil 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 31-May-2008 18:01:15
#5 ]
Elite Member
Joined: 22-Aug-2003
Posts: 5895
From: Work

@mwoof

Always been like that, afaik.

Maybe you can edit the mount file to include an option like "DosType = 0x444F5301" (DOS\1) or whatever you use these days. DOS\7 is it now?

_________________
This weeks pet peeve:
Using "voltage" instead of "potential", which leads to inventing new words like "amperage" instead of "current" (I, measured in A) or possible "charge" (amperehours, Ah or Coulomb, C). Sometimes I don't even know what people mean.

 Status: Offline
Profile     Report this post  
mwoof 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 31-May-2008 18:49:30
#6 ]
Super Member
Joined: 12-Jan-2004
Posts: 1174
From: Larisa, Greece

@olegil
Er, there isn't a mountfile for RESRAD...

_________________
And may the AmigaGuide you!

AmigaOne G3-SE, OS4 Final (July 2007 update), Debian Sarge, 512 MB RAM, 20 + 80 GB hard disks, NEC 3540 DVD writer, LG DVD reader, Radeon 9250, SB Live, Intracom Netfaster router, PCI USB card (NEC - OHCI/EHCI)

 Status: Offline
Profile     Report this post  
olegil 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 31-May-2008 19:09:18
#7 ]
Elite Member
Joined: 22-Aug-2003
Posts: 5895
From: Work

@mwoof

How is it mounted then?

_________________
This weeks pet peeve:
Using "voltage" instead of "potential", which leads to inventing new words like "amperage" instead of "current" (I, measured in A) or possible "charge" (amperehours, Ah or Coulomb, C). Sometimes I don't even know what people mean.

 Status: Offline
Profile     Report this post  
mwoof 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 31-May-2008 19:16:38
#8 ]
Super Member
Joined: 12-Jan-2004
Posts: 1174
From: Larisa, Greece

@olegil

Through UBoot and Kicklayout. It's described in the installation CD - Documentation/Kickstart/ramdrive_dev.doc.

_________________
And may the AmigaGuide you!

AmigaOne G3-SE, OS4 Final (July 2007 update), Debian Sarge, 512 MB RAM, 20 + 80 GB hard disks, NEC 3540 DVD writer, LG DVD reader, Radeon 9250, SB Live, Intracom Netfaster router, PCI USB card (NEC - OHCI/EHCI)

 Status: Offline
Profile     Report this post  
olegil 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 31-May-2008 21:03:59
#9 ]
Elite Member
Joined: 22-Aug-2003
Posts: 5895
From: Work

@mwoof

Given that I no longer have a working AmigaOne, expecting me to look it up on a CD I don't know where is is kinda overdoing it

So you're on your own on this one. If there are no options for dostype, you need to check it after boot and if it's an empty DOS\0, reformat as whatever you needed... Or something.

_________________
This weeks pet peeve:
Using "voltage" instead of "potential", which leads to inventing new words like "amperage" instead of "current" (I, measured in A) or possible "charge" (amperehours, Ah or Coulomb, C). Sometimes I don't even know what people mean.

 Status: Offline
Profile     Report this post  
AlexC 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 1-Jun-2008 7:17:41
#10 ]
Super Member
Joined: 22-Jan-2004
Posts: 1300
From: City of Lost Angels, California.

@olegil

Not sure which block size if right.
WBInfo reports 488, Scout and PartitionWizard both report 512.

Anyhow they all agree on one thing, the dos type is DOS\6.

Formatting it has no effect on the block size and dos type.

_________________
AlexC's free OS4 software collection

AmigaOne XE/X1000/X5000/UAE-PPC OS4 laptop/X-10 Home Automation

 Status: Offline
Profile     Report this post  
olegil 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 1-Jun-2008 8:49:49
#11 ]
Elite Member
Joined: 22-Aug-2003
Posts: 5895
From: Work

@AlexC

I think you're looking at two different things. PartitionWizard looks at the device, WBInfo looks at the filesystem. Devices always use power of two block sizes. Filesystems as well, but OFS stores 24 bytes of metadata per block, therefore reducing 512B to 488 useable by us.

But if it says DOS\6 for you, then that's fastfilesystem with directory cache. OFS would be \4 or \0... All in all, VERY strange

_________________
This weeks pet peeve:
Using "voltage" instead of "potential", which leads to inventing new words like "amperage" instead of "current" (I, measured in A) or possible "charge" (amperehours, Ah or Coulomb, C). Sometimes I don't even know what people mean.

 Status: Offline
Profile     Report this post  
Xenic 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 1-Jun-2008 15:26:04
#12 ]
Super Member
Joined: 2-Feb-2004
Posts: 1246
From: Pennsylvania, USA

@mwoof

I have my resrad set to 15M (radmem=15M). Remove the B from MB.

Resrad was a disappointing "improvement" in my view. The size appears to be limited to about 15-20MB and it slows down the booting process because it clears the allocated memory before mounting the device. Previously, I used a 48MB "RAD" drive for compiling, extracting archives and downloads. The old RAD drive no longer survives a reboot and is no more useful than "RAM". The limited size of RESRAD makes it useless for my purposes too.

I have begged for the old RAD drive to be reinstated on the OS4 ML and was told that it was under consideration but I'm still waiting to get it back. Alternatively, a larger RESRAD with an option not to zero the memory would be acceptable to me.

_________________
X1000 with 2GB memory & OS4.1FE

 Status: Offline
Profile     Report this post  
mwoof 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 2-Jun-2008 12:58:04
#13 ]
Super Member
Joined: 12-Jan-2004
Posts: 1174
From: Larisa, Greece

@Xenic

I agree that ye olde style RAD was far more convenient. It could be removed and remounted without a cold reboot, and didn't disappear with warm reboots.

_________________
And may the AmigaGuide you!

AmigaOne G3-SE, OS4 Final (July 2007 update), Debian Sarge, 512 MB RAM, 20 + 80 GB hard disks, NEC 3540 DVD writer, LG DVD reader, Radeon 9250, SB Live, Intracom Netfaster router, PCI USB card (NEC - OHCI/EHCI)

 Status: Offline
Profile     Report this post  
Xenic 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 2-Jun-2008 14:21:03
#14 ]
Super Member
Joined: 2-Feb-2004
Posts: 1246
From: Pennsylvania, USA

@mwoof

Quote:
I agree that ye olde style RAD was far more convenient. It could be removed and remounted without a cold reboot, and didn't disappear with warm reboots.


In addition, you can mount a RAD drive that's the same size as an Amiga floppy and extract UAE disk files (adf) directly to said RAD drive without the need for a real floppy.

_________________
X1000 with 2GB memory & OS4.1FE

 Status: Offline
Profile     Report this post  
mwoof 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 2-Jun-2008 20:42:17
#15 ]
Super Member
Joined: 12-Jan-2004
Posts: 1174
From: Larisa, Greece

@Xenic

Indeed, and in fact that's the default setup in the icon!

_________________
And may the AmigaGuide you!

AmigaOne G3-SE, OS4 Final (July 2007 update), Debian Sarge, 512 MB RAM, 20 + 80 GB hard disks, NEC 3540 DVD writer, LG DVD reader, Radeon 9250, SB Live, Intracom Netfaster router, PCI USB card (NEC - OHCI/EHCI)

 Status: Offline
Profile     Report this post  
Snuffy 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 4-Jun-2008 16:23:25
#16 ]
Super Member
Joined: 25-Oct-2005
Posts: 1121
From: Michigan, USA

Hi @mwoof

Also, I'm not that clear if I can set the size from a dos Driver instead of UBoot.

?? There's none, it's mounted as an empty "BOOTRAD" disk - ramdrive.device 100.
I took a Catweasel DD disk image and installed it in Sys:Kickstart/BootRAD.adf and set the Kicklayout to read it. The 'NewRad' didn't work until I did a machine reset! I played with editing the "Sinisrus Theme" and left it in the new RAD disk and warm rebooted and everything was restored. See here:
http://www.flickr.com/photos/11367727@N07/2548742930/

RAD does not survive a warm reset apparently... but that is the expected behaviour according to the docs.

You don't use RAD or a DosDriver.I think the problem in OS4 is the RAD DosDriver in Sys:Storage* $VER: RAD 40.1 (31.8.93) should have be removed when the new memory system was implemented.

BOOTRAD is auto mounted via Kickstart for floppy emulation and RESRAM for ram partitions. You use Kickstart, "BootRAD.adf", and Kicklayout for auto floppy. You set UBoot Prefs [Kernel/OS4 Arguments section] "Debuglevel=0 radmem=5M" for a 5MB ram partition. For first time use, you have to use 'Quick Format'.

EDIT)
Oh, there's something about using the parameter with loader instead. Does this mean the "EXEC Kickstart/loader" line in Kicklayout?


No, use UBoot Prefs parameters (see above).

_________________

 Status: Offline
Profile     Report this post  
mwoof 
Re: RESRAD (recoverable ram disk in OS4)
Posted on 5-Jun-2008 14:58:13
#17 ]
Super Member
Joined: 12-Jan-2004
Posts: 1174
From: Larisa, Greece

@Snuffy

Thanks!

_________________
And may the AmigaGuide you!

AmigaOne G3-SE, OS4 Final (July 2007 update), Debian Sarge, 512 MB RAM, 20 + 80 GB hard disks, NEC 3540 DVD writer, LG DVD reader, Radeon 9250, SB Live, Intracom Netfaster router, PCI USB card (NEC - OHCI/EHCI)

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle