08 August 2012, 14:57 | #21 | |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
Quote:
The official PFS3 unmount correctly on 3.1. |
|
14 August 2012, 21:53 | #22 |
Registered User
Join Date: May 2007
Location: Seattle,WA
Posts: 65
|
|
03 September 2012, 11:49 | #23 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
|
03 September 2012, 20:04 | #24 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Does attached version work better?
I noticed that removable support wasn't fully enabled (TRACKDISK define) which can explain disk change problems. WARNING: This is test version only. Do not upload anywhere else! Last edited by Toni Wilen; 18 September 2012 at 16:48. |
10 September 2012, 09:47 | #25 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
Toni, I've test this version 03-Sep-2012, and it makes guru #8 when unmounting in both cases... (wb3.1 and wb1.3) (Sorry to announce bad news)
|
10 September 2012, 10:29 | #26 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Quote:
EDIT: My test case: Mount PFS3 floppy device (using similar mountlist used for RAD, except device and handler changed) Format it. Eject and insert and check that everything works. Including disk getting reported as removed, not non-dos after removal. Previously media changes didn't work at all and it also randomly crashed after eject. |
|
11 September 2012, 09:41 | #27 | |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
Quote:
mount uh2: open the uh2: icon... display image or open a text file, close the application. unmount uh2: then guru #8 http://aminet.net/package/disk/misc/unmount-0.1 Given there is the source code, I've done the equivalent unmount for 1.3 (which works with fat95, when fat95 is decided to work ) |
|
11 September 2012, 15:34 | #28 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
So it is ACTION_DIE problem after all. Nothing to do with removing removable media..
|
13 September 2012, 14:47 | #29 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
|
15 September 2012, 17:39 | #30 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Aminet unmount_m68k is broken, first instruction in executable is illegal instruction.
|
17 September 2012, 10:09 | #31 | |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
Quote:
Toni, you can use the ANAIIS unmount (seek it in bin of the following package) http://aminet.net/package/driver/other/anaiis Good luck |
|
18 September 2012, 19:37 | #32 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
pfs3 unmount is now working but there is still one problem remaining: under 1.3, mounting again after unmount crashes with memory list corruption guru.
More debugging to do.. Attach source of your version of unmount, thanks. |
19 September 2012, 16:29 | #33 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
Hi Toni,
here's my unmount code with the makefile... for SASC 6.0 and up Perhaps it's buggy. Please tell me if you find monsters unmountc.c is the shell command source code, unmount.c is the code to unmount function for 1.3 and for 2.04 and up. |
19 September 2012, 17:00 | #34 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
I think calling c:assign is too ugly solution..
assign dismount: internally calls RemDosEntry() which is as simple as: Code:
dl = DeviceNode head while(dl->dol_Next) { struct DosList *dl2 = BADDR(dl->dol_Next); if(dl2 == dlist) { dl->dol_Next = dlist->dol_Next; break; } dl = dl2; } You should first find the correct device node and then exit the loop because doslist may have changed and "DeviceNode = (struct DeviceNode *)BADDR(DeviceNode->dn_Next) ;" may access random memory. It is not safe to scan doslist without forbid state. (and forbid in this code would be broken anyway during packet calls) But I don't think this is the cause for crash. |
19 September 2012, 17:26 | #35 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
So I can remove the Execute call to "assign dismount" (I don't think it is working with 1.3) and "assign remove" then.
|
19 September 2012, 17:28 | #36 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
|
19 September 2012, 19:56 | #37 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Ok, this one should really work.
EDIT: also includes all SVN updates since previous pfs3ks13 Aminet release. Last edited by Toni Wilen; 27 September 2012 at 20:58. |
20 September 2012, 09:30 | #38 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
Kiitos Toni, I will try this weekend
I don't know why I wrote a Delay(10) before RemDosEntry... it seems to be superfluous... |
21 September 2012, 09:56 | #39 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
hum... tested the new pfs_ks13
wb1.3: it freezes after unmount... (but no guru :-) ) wb3.1: guru #8 wb3.1, original PFS3 from the PFS3, guru #8 after unmount Perhaps its my unmount in cause... so I broke the version if (1 /*DOSBase->lib_Version < 37*/) to activate always the 1.3 compatible code, but it is the same with pfs_ks13 and wb3.1/original PFS3 unmount correctly Toni, do you also got the freeze in 1.3? Last edited by Gilloo; 21 September 2012 at 11:33. |
21 September 2012, 10:38 | #40 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Works perfectly here, including 1.3, using your unmount. You sure you use correct pfs3 version?
EDIT: Run mungwall, must be wrong version if you get huge amount of memory allocation errors when unmounting. (You can use -log -serlog winuae command line parameters to see serial debugging without extra utilities) Last edited by Toni Wilen; 21 September 2012 at 10:45. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ANAIIS 1.09 (30 Sep 2013) | Gilloo | News | 22 | 30 April 2014 15:38 |
Flashback 2012 Demoscene computer party 9th - 10th & 11th June 2012 - C64 - AMIGA - P | reload | News | 0 | 24 April 2012 17:01 |
ANAIIS 1.03 - Poppy fixes. | Gilloo | News | 15 | 17 April 2012 09:56 |
ANAIIS 1.02 - Summer fixes | Gilloo | News | 7 | 05 January 2012 00:04 |
FAT95 (and ANAIIS) | Gilloo | support.Hardware | 0 | 19 September 2011 14:53 |
|
|