English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware > Hardware mods

 
 
Thread Tools
Old 03 August 2009, 20:44   #401
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
"Compact Flash Digital Memory Card, 2GB"

This is the analysis for a Generic memory card, labelled as in this post's title, ordered off of e-bay from a seller in Hong Kong.
The back of the unit says "9930406-006.A00 P743580X02".

This device was logically well behaved. It worked fine as the master, and as the slave with a hard disk attached as the master.

Electrically, though, it pulls up to 3.3V on the DASP* line instead of the 5V that it is being fed, and the LED on the compact flash adapter (which is biased at the 5V being supplied at the floppy power connector) never completely went off. It shouldn't be an issue because of the series resistor on the LED, but it could potentially cause a blowout of the card if the 5V is allowed to backfeed into its internal 3.3V supply. The voltage however, was stable @ 3.3v so this card gets a pass.

Code:
1
Device 1 selected.
HI0: Host Idle State
>i
Identify IDE Device
Drive Model number [27]: TPX-CFT-2GB
Firmware Revision [23]: Ver2.31
Serial Number [10]: 88540797150000002251
Number of cylinders [1]: 0x0F45
Number of heads [3]: 0x0010
Number of sectors/track [6]: 0x003F
Number of sectors [57]: 0x003C1FB0
User addressable sectors [60]: 0x003C1FB0
Selected sector addressing mode is LBA.
0000:4A 04 45 0F 00 00 10 00 00 7E 00 02 3F 00 3C 00 J-E------~--?-<-
0010:B0 1F 00 00 38 38 34 35 37 30 37 39 35 31 30 30 ----884570795100
0020:30 30 30 30 32 32 31 35 02 00 02 00 04 00 65 56 00002215------eV
0030:32 72 33 2E 20 31 50 54 2D 58 46 43 2D 54 47 32 2r3. 1PT-XFC-TG2
0040:20 42 20 20 20 20 20 20 20 20 20 20 20 20 20 20  B
0050:20 20 20 20 20 20 20 20 20 20 20 20 20 20 01 00               --
0060:00 00 00 03 00 00 00 02 00 00 07 00 45 0F 10 00 ------------E---
0070:3F 00 B0 1F 3C 00 00 01 B0 1F 3C 00 00 00 07 04 ?---<-----<-----
0080:03 00 78 00 78 00 78 00 78 00 00 00 00 00 00 00 --x-x-x-x-------
0090:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
00A0:00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ----------------
00B0:3F 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 ?----------@----
00C0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
00D0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
00E0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
00F0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
0100:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
0110:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
0120:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
0130:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
0140:00 00 00 00 00 00 92 00 00 00 00 00 00 00 00 00 ----------------
0150:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
0160:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
0170:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
0180:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
0190:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
01A0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
01B0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
01C0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
01D0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
01E0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
01F0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
HI0: Host Idle State
>
Shadowfire is offline  
Old 04 August 2009, 04:14   #402
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
Status Report: Autoboot, automount device driver: 100%.
It just booted off of a CF card. Just need to yank all the debug code and retest.
And, there's about 1K left to stuff more initialization code in.
Semi-final firmware uploaded to the Zone.

Last edited by Shadowfire; 04 August 2009 at 04:30.
Shadowfire is offline  
Old 04 August 2009, 04:31   #403
Zetr0
Ya' like it Retr0?
Zetr0's Avatar
 
Join Date: Jul 2005
Location: United Kingdom
Age: 44
Posts: 9,768


just too damn impressive shadowfire!!!!
Zetr0 is offline  
Old 04 August 2009, 04:48   #404
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
.. And, I just go in the email, that I'm going to get my Developer CD tomorrow. A day late & a dollar short :P
Shadowfire is offline  
Old 04 August 2009, 05:23   #405
Zetr0
Ya' like it Retr0?
Zetr0's Avatar
 
Join Date: Jul 2005
Location: United Kingdom
Age: 44
Posts: 9,768
@Shadow Fire

what is this "developer cd" you mention

I have an absolute ton(e) of resources and such like for the amiga, I have not heard of it.

please prey-tell what mystical arcane information does it contain?
Zetr0 is offline  
Old 04 August 2009, 07:08   #406
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
The OS3.5 developer CD. It has old Amiga Mail articles in it (along with a bunch of other stuff). I found enough information to do it, scattered around in 7 or 8 different places in the various 2.0 RKM's, though.
Shadowfire is offline  
Old 04 August 2009, 08:51   #407
Jope
-
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 39
Posts: 7,400
Indeed, this is why we have the CF Card Compatibility list thread here.

I've had lots of bad luck with those old Canon 8MB and 32MB cards from years ago. They seem to work ok in PCMCIA mode, but not in IDE mode. :-)
Jope is offline  
Old 06 August 2009, 04:47   #408
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
Kickstart 3.1 ROMS and OS3.9 CD are on their way to me now. I guess the target for CDROM emulation will be CacheCDFS, since that is what ships with the OS.
Shadowfire is offline  
Old 07 August 2009, 09:13   #409
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
The OS3.9 distribution comes on CD-ROM. You would think that it wouldn't be that hard to get it onto the hard disk of a CDTV, right? .... Well, it just happens that in order to use OS3.9, you need to have Kickstart 3.1. And the CDTV extended ROMS are incompatible with anything other than 1.3. Which means, you need to disable the extended ROMS (and therefore, the builtin CD-ROM) to boot the machine.

So... I made a mistake. The first thing I did when I got my package was yank out 1.3, install 3.1, and check to make sure I was still autobooting. Bingo, everything is still working. Except, I'm getting scrambled characters every once in a while.

To make a long story short, I played musical Fat Agnus chips yesterday among several machines (KO'ing my Amiga 3000 in the process). I ended up putting the 8370 OCS agnus in the CDTV, and the 8372A ECS agnus in the A2000. Big mistake. All my problems disappeared after I discovered my error and swapped the Agnus chips back.

After spending the better part of the day sending OS 3.9 over a serial link, I now have an OS3.9 installation on my CDTV's hard disk. (Of course, in retrospect, swapping the 1.3 ROM back in, copying files from the internal CDROM and swapping 3.1 back in would have taken about 8 fewer hours. Hindsight is always 20/20).

Well, it would be an OS3.9 installation, except I had to comment out almost everything in the startup-sequence. Having done that, the CDTV now boots with a generous 500K of free RAM.

Which (knock on wood) should be enough for me to get CD-ROM support working.

Last edited by Shadowfire; 07 August 2009 at 09:25.
Shadowfire is offline  
Old 07 August 2009, 12:21   #410
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,254
Quote:
Originally Posted by Shadowfire View Post
The OS3.9 distribution comes on CD-ROM. You would think that it wouldn't be that hard to get it onto the hard disk of a CDTV, right? .... Well, it just happens that in order to use OS3.9, you need to have Kickstart 3.1. And the CDTV extended ROMS are incompatible with anything other than 1.3. Which means, you need to disable the extended ROMS (and therefore, the builtin CD-ROM) to boot the machine.
Perhaps I missed something important but why not just update CDTV ROMs to 2.7? (or 2.30 but it is meant for A570)
Toni Wilen is online now  
Old 07 August 2009, 20:51   #411
Photon
Moderator

Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 4,771
Sounds awesome! Grabbed the Zoned stuff. You seem determined, so I think there will be a lot of Amiga owners that will be happy If the price is right it could be an off-the-shelf entry add-on for ClassicWB, WHDload and the like...

Any idea about time until there's a design ready for production and/or a contract with someone making it? And also if there will be a version with surface mount 68000 piggyback or a DIL version as well?
Photon is offline  
Old 08 August 2009, 00:28   #412
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
Quote:
Originally Posted by Toni Wilen View Post
Perhaps I missed something important but why not just update CDTV ROMs to 2.7? (or 2.30 but it is meant for A570)
(lack of) resources?
Shadowfire is offline  
Old 08 August 2009, 19:08   #413
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
Getting pretty close on CDROM support. I can issue a list and see a bunch of the files on the OS3.9 CD, but it looks like the filesystem eventually guru's out (it appears to keep reading/caching parts of the ISO, and crashes soon after LIST starts spitting out data).

More testing is in order, obviously, but I'll say its 70% of the way done.

Edit: it might actually be workbench crashing the machine
Shadowfire is offline  
Old 10 August 2009, 16:11   #414
Photon
Moderator

Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 4,771
Quote:
Originally Posted by Shadowfire View Post
A lot of problems with corruption, missing partitions etc. I just traced back to the FastFileSystem that ships with 1.3. Updating to the 3.1 FFS seems to have solved a lot of those problems, probably dealing with how the FS copes with the somewhat arbitrary data on the disk when it first gets mounted.
ps. That sounded very "tested and official" and could start rumors. Can you confirm which machines you have trouble on and what procedure led up to it?
Photon is offline  
Old 10 August 2009, 21:56   #415
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
The IDE controller has been tested (and works) in an A500, a B2000, and a CDTV.
The bootup guru problems I was having were indeed caused by the 1.3FFS. Updating to the 3.1FFS allowed the partitions to validate properly (but afterward the first successful boot, you will want to revert to the 2.1/2.0 FFS if you are still running Kickstart 1.3, as the 3.1FFS shows an extra icon on 1.3 Workbench as "DOS1").

CDROM support is still being worked on. I'm having a tough time tracking down the culprit responsible for the guru's, and I will probably need to acquire a full 68030 (non-EC version) accelerator for the B2000 (so I can run Enforcer) to track down the problems.
Shadowfire is offline  
Old 12 August 2009, 18:17   #416
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
Preliminary CDROM support done

OK... the last 2 days have had me pulling out my hair, but I finally have some results. My biggest problem was not allowing enough stack on the CDROMFILESYSTEM driver. Once I hooked up TNT, that was found & I had to sort a bunch of other things out.

Limitations:
Mode 1 discs (2048 bytes/sector) only. This is unlikely to ever go away.
CDROMFILESYSTEM support only, no CacheCDFS support yet. (More work needed here)
No CDROM commands supported (Play audio, etc).
DISKCHANGE not supported. Code is in there, but machine may reboot, so it's not ready for prime time yet.

Updates:
You can actually mount and access a CDROM.
Numerous bug fixes to PIC32 and device driver firmware, including a better ATA reset routine that fixed some nagging issues when having 2 devices on the cable.

At this point I can mount and access the CDROM, and the icons show up on Workbench. It should allow you to install OS3.9 off of CD, and access data on other CD's.
Shadowfire is offline  
Old 13 August 2009, 02:31   #417
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,714
Quote:
Originally Posted by Shadowfire View Post
At this point I can mount and access the CDROM, and the icons show up on Workbench. It should allow you to install OS3.9 off of CD, and access data on other CD's.
Well that's better than I ever managed with my external PCMCIA CDROM drive, well done!
NovaCoder is offline  
Old 13 August 2009, 23:22   #418
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
Automatic diskchange support added. The PIC will monitor CDROM drives for diskchanges and inform the Amiga of them. Support added for this in the driver. I need to do a bit more exhaustive testing on this, but it seems to be working fine.

Edit: Tested, latest firmware uploaded to the zone.

Last edited by Shadowfire; 13 August 2009 at 23:57.
Shadowfire is offline  
Old 15 August 2009, 01:18   #419
Shadowfire
Registered User
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 561
I spent a decent amount of time yesterday & today optimizing the hard disk access routines on the PIC32. First, I translated most of the abstraction functions into direct hardware accesses. Then I cut most of the debug code out and moved most of the time-critical code into 0 wait state RAM. Satisfied that there was really not much more I could do on my end, at least mucking with the C source code, I pulled down some Diskperf numbers before enabling optimizations in the C32 compiler. (Compiled with -O0)

Code:
MKSoft DiskSpeed 4.2  Copyright © 1989-92 MKSoft Development
------------------------------------------------------------
CPU: 68000  AmigaOS Version: 40.63  Normal Video DMA
Device:  dh0:    Buffers: 30
Comments: DiskSpeed 4.2

CPU Speed Rating: 136

Testing directory manipulation speed.
File Create:           28 files/sec  |  CPU Available: 11%
File Open:             45 files/sec  |  CPU Available: 13%
Directory Scan:       141 files/sec  |  CPU Available: 0%
File Delete:           72 files/sec  |  CPU Available: 0%

Seek/Read:            121 seeks/sec  |  CPU Available: 3%

[fast mem tests snipped... almost the same as chip mem results]

Testing with a 512 byte, MEMF_CHIP, LONG-aligned buffer.
Create file:        71552 bytes/sec  |  CPU Available: 1%
Write to file:      83520 bytes/sec  |  CPU Available: 0%
Read from file:     84544 bytes/sec  |  CPU Available: 1%

Testing with a 4096 byte, MEMF_CHIP, LONG-aligned buffer.
Create file:       250368 bytes/sec  |  CPU Available: 19%
Write to file:     294400 bytes/sec  |  CPU Available: 22%
Read from file:    313856 bytes/sec  |  CPU Available: 17%

Testing with a 32768 byte, MEMF_CHIP, LONG-aligned buffer.
Create file:       472184 bytes/sec  |  CPU Available: 7%
Write to file:     571297 bytes/sec  |  CPU Available: 9%
Read from file:    510087 bytes/sec  |  CPU Available: 16%

Testing with a 262144 byte, MEMF_CHIP, LONG-aligned buffer.
Create file:       594359 bytes/sec  |  CPU Available: 1%
Write to file:     714642 bytes/sec  |  CPU Available: 1%
Read from file:    570567 bytes/sec  |  CPU Available: 16%

Testing with a 512 byte, MEMF_CHIP, WORD-aligned buffer.
Create file:        71552 bytes/sec  |  CPU Available: 1%
Write to file:      83392 bytes/sec  |  CPU Available: 0%
Read from file:     84160 bytes/sec  |  CPU Available: 1%

Testing with a 4096 byte, MEMF_CHIP, WORD-aligned buffer.
Create file:       253952 bytes/sec  |  CPU Available: 19%
Write to file:     292864 bytes/sec  |  CPU Available: 22%
Read from file:    312832 bytes/sec  |  CPU Available: 17%

Testing with a 32768 byte, MEMF_CHIP, WORD-aligned buffer.
Create file:       475136 bytes/sec  |  CPU Available: 7%
Write to file:     571297 bytes/sec  |  CPU Available: 9%
Read from file:    510087 bytes/sec  |  CPU Available: 16%

Testing with a 262144 byte, MEMF_CHIP, WORD-aligned buffer.
Create file:       591536 bytes/sec  |  CPU Available: 1%
Write to file:     716418 bytes/sec  |  CPU Available: 1%
Read from file:    569878 bytes/sec  |  CPU Available: 17%

Testing with a 512 byte, MEMF_CHIP, BYTE-aligned buffer.
Create file:        56960 bytes/sec  |  CPU Available: 1%
Write to file:      35520 bytes/sec  |  CPU Available: 19%
Read from file:     62016 bytes/sec  |  CPU Available: 1%

Testing with a 4096 byte, MEMF_CHIP, BYTE-aligned buffer.
Create file:        79360 bytes/sec  |  CPU Available: 3%
Write to file:      32363 bytes/sec  |  CPU Available: 38%
Read from file:     42144 bytes/sec  |  CPU Available: 47%

Testing with a 32768 byte, MEMF_CHIP, BYTE-aligned buffer.
Create file:        80244 bytes/sec  |  CPU Available: 5%
Write to file:      32230 bytes/sec  |  CPU Available: 40%
Read from file:     39164 bytes/sec  |  CPU Available: 53%

Testing with a 262144 byte, MEMF_CHIP, BYTE-aligned buffer.
Create file:        81352 bytes/sec  |  CPU Available: 6%
Write to file:      32699 bytes/sec  |  CPU Available: 39%
Read from file:     38931 bytes/sec  |  CPU Available: 53%

Average CPU Available: 14%  |  CPU Availability index: 19
I went ahead and turned on C compiler optimizations, and promptly received Amiga read/write errors. I initially thought I had found an issue with the PIC32 IO port hardware, but the truth is far more insidious.... http://www.microchip.com/forums/tm.aspx?m=440800 (it's an interesting read if you're thinking about tuning code on a semi-modern processor and want to see a train wreck in progress).

To make a long story short, there will be no optimized C version, as the C compiler groups all memory reads/writes in a row, and I have no way of inserting wait states. That means this is the semifinal performance (really, I swear this time) until the great Assembler rewrite, since I need to be able to control memory timing (the PIC will drive memory too fast & miss the data with my current program).

Last edited by Shadowfire; 15 August 2009 at 15:05.
Shadowfire is offline  
Old 16 August 2009, 12:19   #420
gizmomelb
Registered User
 
Join Date: Sep 2005
Location: melbourne
Age: 50
Posts: 510
Shadowfire - awesome work!

would this work (and autoboot) in a stock standard Workbench 1.3 A500?


EDIT: ahh I missed the post on the 11th of August above:

"The IDE controller has been tested (and works) in an A500, a B2000, and a CDTV.
The bootup guru problems I was having were indeed caused by the 1.3FFS. Updating to the 3.1FFS allowed the partitions to validate properly (but afterward the first successful boot, you will want to revert to the 2.1/2.0 FFS if you are still running Kickstart 1.3, as the 3.1FFS shows an extra icon on 1.3 Workbench as "DOS1")."

so it appears it does, wow!

Last edited by gizmomelb; 16 August 2009 at 12:49.
gizmomelb is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
GVP1230+ Accel Board Jumper settings? gtrmn01 support.Hardware 3 03 September 2013 21:21
Having trouble creating HDD for 1.3 A500 trydowave support.WinUAE 26 14 February 2013 17:04
SFS on A600 020 KS 2.0 demolition support.Other 27 22 December 2012 19:46
68060 board stuck in an A500 or A600 - impossible goal? Photon support.Hardware 17 04 October 2009 16:09
WTB: A500 Accel Must Have Switch to Go Back to 68K Mode kjmann14 MarketPlace 0 26 March 2009 22:01

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:32.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.11033 seconds with 16 queries