25 October 2012, 18:31 | #61 |
Registered User
Join Date: Dec 2010
Location: Norway
Posts: 819
|
Allright, second attempt:
Device id string: 'Generic- SD/MMC 1.00' BPS=512 Cyls=1961 TPC=255 SPT=63 Mediatype=11 Device size 16136536064 (0x3c1d00000) bytes |
25 October 2012, 18:35 | #62 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
Quote:
Do you get different values if connected to IDE port? What is exact name/model of the adapter? I need to get one too |
|
25 October 2012, 18:55 | #64 |
Registered User
Join Date: Dec 2010
Location: Norway
Posts: 819
|
Device id string: 'Memory Card Adapter 6781306'
BPS=512 Cyls=1961 TPC=255 SPT=63 Mediatype=11 Device size 16136257536 (0x3c1cbc000) bytes 278528 bytes smaller... |
25 October 2012, 20:49 | #65 |
Registered User
Join Date: Dec 2010
Location: Norway
Posts: 819
|
By the way - it's the a4000 version of scsi.device that uses LBA, according to your post from 2008..
So with stock scsi.device using LBA, how high should an a4000 be able to go using HD_SCSICMD? Edit: I see Thomas did some tests in that thread with WinUAE. Should real HW be different in this case or not? Last edited by fgh; 25 October 2012 at 21:02. |
25 October 2012, 21:19 | #66 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
Quote:
Only (?) difference is use of LBA mode addressing when writing block address to IDE registers (LBA bit set = original CHS registers become linear LBA address registers) Hardware (as in Amiga hardware) won't make any difference, only hardware difference is again drive's identity data. Basically PIO IDE bus itself is nothing more than address decoder + 16 bit data bus, all the logic is in drives. But A4000 driver could still have some (possible accidental) differences, even more testing to do.. I also need to make WinUAE HDF CHS geometry fully configurable.. |
|
26 October 2012, 11:18 | #67 |
Registered User
Join Date: Dec 2010
Location: Norway
Posts: 819
|
Ok, so it is still limited to the given CHS values then. Too bad
(28bit LBA was introduced in ATA-1. Word 60-61 specifies total amount of sectors, or zero if LBA is not supported) |
26 October 2012, 16:23 | #68 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
I just tested and I guess I used different versions last time because actually LBA mode is used by both A1200 and A4000 drivers but only if new enough rom update is loaded (which also includes NSD support). Updated drivers also return full read capacity size.
Perhaps it is possible to create adapter device that automagically modifies identify device cylinders size value? |
26 October 2012, 17:11 | #69 | |
Registered User
Join Date: Dec 2010
Location: Norway
Posts: 819
|
Ok, that makes sense in light of this comment from gregdonner.org:
Quote:
Any luck figuring out how high you can go with >8GB CHS values? Do you think this still works on a1200/a4000? Jens could probably easily update his TrueIDE adapter firmware to do that. And by the way, doesn't 16383/16/63 put the limit at 7.8745GB, not 7.7GB? |
|
26 October 2012, 17:58 | #70 | ||||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
Quote:
Quote:
Quote:
Quote:
btw, I am going to release "all-in-one" pfs3 soon now that read capacity "problem" is solved. Feature list (Did I miss something?) - 68000+, full KS1.x/2.x/3.x compatibility. - TD,TD64,NSD,DirectSCSI autodetection and 4G limit safety check. - Automatic max transfer scsi.device workaround. If end of partition is inside of first 128M: use standard 32-bit IO commands. (No useless autodetection when using floppies and other small media) If end of partition is inside of first 4G: Test standard 32-bit IO, if it fails (for example pre-ROM 7.0 A590/A2091 or CDTV SCSI): test DirectSCSI. If both failed: show requester and don't mount the partition. If end of partition is outside of first 4G: NSD, TD64 and DS. If all failed, silently don't mount the partition. If dostype == PDS\x, do DirectSCSI test first. Test succeeded = last block of partition must be accessible and last block read request must also modify data buffer (fill buffer with static data, read, if data didn't change, fill buffer with static data + 1, read, if data still didn't change = something is wrong, fail test) DirectSCSI includes extra test: SCSI Read Capacity command must succeed and returned last block value must be same or larger than last block of partition. |
||||
26 October 2012, 19:46 | #71 |
Paranoid Amigoid
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
|
That seem really nice there Toni!!! /respect
Would a 030/040/060 compiled versions would have made any difference for the corresponded systems? |
26 October 2012, 21:31 | #72 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
Quote:
C=65535 H=15 S=255 is the max possible = ~120G! And it does work! In emulation IDE registers were updated with correct CHS value and exactly correct block in 119G region was read when I tested it. Cylinders value is WORD in driver (65535 max), Sectors value is handled as a byte in driver (255), Heads is also byte but max is 15, because 15 is max value that fits in IDE heads register. I guess adapter hack would only need to use static 65535/15/255 fake values because you use (should use!) OS3.9 or UAE to partition it and both ignore CHS values and use LBA values = new enough hdtoolbox shows correct size, not possibly too large ~120G size. EDIT: It is possible that (some/all) real drives won't accept "bad" CHS values, this may only work with SD adapters that internally translate between two different protocols. Quote:
Last edited by Toni Wilen; 26 October 2012 at 21:39. |
||
27 October 2012, 13:13 | #73 |
Registered User
Join Date: Dec 2010
Location: Norway
Posts: 819
|
Sounds like this is shaping up to be the definitive choice for an amiga file system - great work!
Nice that you can work around the maxtransfer issue as well Can you test if real drives accept bad CHS values without actually building an adapter? For most, patching scsi.device is as easy as buying a separate adapter, but Jens should at least be interested in faking the CHS values for the TrueIDE and ACA500 products if it's working reliably. By the way - the SD adapter only supports SDHC (up to 32GB) so I assume FFFF/10/3F is the max you'll get out of that one. |
30 October 2012, 19:25 | #74 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
Quote:
-- "Final" version attached (debugging disabled). Any name ideas? It is not just special ks1.x version anymore.. I have been thinking of "pfs3 all in one = pfs3 aio" but it is a bit stupid.. Last edited by Toni Wilen; 14 April 2013 at 11:08. |
|
30 October 2012, 21:15 | #75 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
|
30 October 2012, 21:23 | #76 |
Ruler of the Universe
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,189
|
So if I'm using PFS3DS I can rename yours like that and update the existing file system, isn't it?
BTW thanks a lot |
30 October 2012, 22:21 | #77 |
Registered User
Join Date: Dec 2010
Location: Norway
Posts: 819
|
Great! What about PFS universal, PFS total, PFS one or PFS forever?
|
31 October 2012, 09:23 | #78 |
Registered User
Join Date: Mar 2004
Location: finland
Posts: 1,838
|
PFS 3d Max
|
31 October 2012, 09:40 | #79 |
BlizzardPPC'less
|
Could I replace my original PFS 060 18.5-version with this? I use the normal non-DS version on my BPPC SCSI.
|
31 October 2012, 09:47 | #80 |
Registered User
Join Date: Dec 2010
Location: Norway
Posts: 819
|
Retrofan and Bamiga: This version can replace any other version of PFS3.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cant Install PFS3 | videofx | support.Hardware | 1 | 07 March 2013 18:14 |
PFS3 why cant i... | zharn | support.Apps | 9 | 27 January 2013 06:27 |
PFS3 error: INVALID PFS3 COPY !!! WTF? | keropi | support.Apps | 10 | 18 March 2008 22:30 |
Pfs3 | Hewitson | request.Apps | 3 | 22 December 2007 14:32 |
Installing PFS3 on 8.5GB SCSI HD | lopos2000 | support.Apps | 26 | 27 March 2007 19:31 |
|
|