hd4 not mounting
Jason (1457) 4 posts |
Hi all. |
Paul Nolan (1470) 18 posts |
According to the website, IDE gets disabled by the emulator when using RO5 because of a data loss bug. You can use HostFS though… download the self-extracting HardDisc4 image, put it in RPCemu’s HostFS folder, set type to Utility, run it and move the contents of the HardDisc4 folder that appears to the top level. Then press F12 and enter the following: configure filesystem hostfs and reset the emulator. |
Jason (1457) 4 posts |
Thanks for your responce. Just was hoped it was something I was doing wrong! |
Theo Markettos (89) 919 posts |
Bump… Sprow, do you know what’s happening here? I don’t see anything in either the RPCEmu source code about disabling IDE support. From the ADFS module, it looks like ADFS is built without hard drive support (there’s no *Configure IDEDiscs available). But presumably it works in a real RPC, else people wouldn’t be able to use their hard drive? (This is with IOMD ROM downloaded today, RPCEmu 0.8.9) |
Jeffrey Lee (213) 6048 posts |
I’m no Sprow, but…
There’s no *Configure IDEDiscs because the RISC OS 5 version of ADFS auto detects the drives.
Yes, hard discs work fine on a real RPC. With some of Sprow’s recent changes floppies should now work too. If IDE support isn’t disabled in the RPCEmu sources, perhaps it’s that RPCEmu doesn’t support the drive detection method? Although whenever I’ve seen the RPCEmu developers talk about it I’m fairly certain they’ve always said IDE support was disabled due to bugs (whether they turn out to be RPCEmu bugs or RISC OS bugs). |
Sprow (202) 1158 posts |
What he said! This is with A7000/A7000+/Risc PC so if it’s not happy in an emulator it’s more likely the emulator isn’t as faithful as it could be. For example ADFS now uses the verify op with the controller (1990 ish era) but in RPCEmu that quits with an unknown floppy operation. I took a brief look at “fdc.c” and it looks like a lot of it was empirically derived rather than a full emulation from a datasheet. I too heard the “data lost” rumor and assumed it was an emulator thing, since the real McCoy doesn’t have this problem. But if there’s no magic in RPCEmu then I’m not sure of the origin of the rumor! One for the RPCEmu mailing list? |
Tom Walker (419) 44 posts |
I can’t answer for why IDE drives don’t show up at all, this is something that’s changed since the last time I looked at RO5/RPCemu. The ‘data lost’ bug in current versions of RPCemu is real, however the description is not quite accurate. The present code will/should give intermittent errors when accessing IDE discs under RO5, fixing this bug will give data corruption under 3.x/4.x so the fix isn’t implemented. I did send a patch which fixed this issue, along with some other IDE issues, back in February but it hasn’t been used for whatever reason. |
Peter Howkins (211) 236 posts |
Hi Tom, can you resend the Feb IDE fix please, I think it’s gotten lost somewhere. I’ve a May fix about cdrom ID but nothing from Feb. |
Tom Walker (419) 44 posts |
I sent the fix last night, can you confirm you’ve received it? Incidentally, with a modified RPCemu 0.8.9 and RO 5.19, I’ve confirmed that with this patch the IDE drives do now show up. |
Peter Howkins (211) 236 posts |
Yep I received it, but due to the size of the diff and the amount of changes from pcem to rpcemu required it’s not likely to be integrated quickly. |
George T. Greenfield (154) 748 posts |
" The present code will/should give intermittent errors when accessing IDE discs under RO5, fixing this bug will give data corruption under 3.x/4.x so the fix isn’t implemented." Would it be so unacceptable to have a RO5-only version of RPCEmu? After all, RO5 is the latest version of the OS; it is still under development (unlike all earlier versions); it is 32-bit and therefore runs measurably faster under emulation than its 26-bit predecessors. These are powerful arguments IMO in favour of the fullest possible emulation of what is in fact the flagship OS version. A suitable version numbering convention identifying the required OS (0.8.9/5, for example) and a read-me-first text prohibiting use with RO3/4 would hopefully be sufficient to prevent accidental misuse. |
Tom Walker (419) 44 posts |
It would be unacceptable, as there’s no reason why the same version shouldn’t run both RO3/4 and RO5. |
Eric Rucker (325) 232 posts |
The thing is, RPCEmu is intended to emulate a RiscPC. If you’re emulating a specific machine, it should behave bug-for-bug exactly like that specific machine. (Meaning, if something acts differently from the real machine, that is a bug in the emulator, EVEN IF IT FIXES A BUG THAT THE REAL MACHINE HAS.) That said, there is an argument for making an emulator that isn’t RiscPC-specific for running RISC OS, to take advantage of modern developments. (Or, make an RPCEmu fork that maintains some compatibility with a RiscPC for running some legacy software that is used to, for instance, the behavior of the VIDC20, but has modern enhancements.) |
Steve Pampling (1551) 8170 posts |
@Peter Howkins The marutan.net web site is throwing up 403 errors (at least from where I’m sitting, and people don’t normally block the NHS) |
Ted Llewellyn (1743) 1 post |
> download the self-extracting HardDisc4 image, put it in RPCemu’s HostFS folder, set type to Utility, run it and move the contents of the HardDisc4 folder that appears to the top level. Then press F12 and enter the following: > configure filesystem hostfs > and reset the emulator. I have now done this on a Xubuntu 12.04 netbook and a Windows 7 laptop, and to get it to work it required “power cycling” the system, not resetting it. If I reset it, it hung on the boot with an hour glass after the notice about hostfs, and never finished. However, if I copied the items, issued the commands, and then stopped the emulator completely, it worked on both. I also happen to have deleted the Utility file and the HardDisc4 folder from hostfs while it was shut down, but I don’t think that had anything to do with it. I did this with the 5.19 softload file and HD4 self extractor, downloaded yesterday (14 Nov. 2012), on RPCEmu 0.89. I installed the package on Windows and built it on Linux, but the problems were the same on both. |
Simon Ayers (1525) 17 posts |
I seem to be having the same problem. It seems to be caused by !Scrap’s !RunImage file. Is it supposed to contain several zero bytes or has it become corrupted? |
Chris Evans (457) 1614 posts |
It is corrupt. |