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
11 crawler(s) on-line.
 67 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 Hammer:  12 mins ago
 retrofaza:  22 mins ago
 kolla:  42 mins ago
 Gunnar:  1 hr ago
 matthey:  1 hr 37 mins ago
 MEGA_RJ_MICAL:  1 hr 51 mins ago
 agami:  2 hrs 24 mins ago
 Matt3k:  3 hrs 7 mins ago
 danwood:  3 hrs 48 mins ago
 A1200:  4 hrs 39 mins ago

/  Forum Index
   /  Amiga Development
      /  Progress update on the CW4 (CW3) Device driver
Register To Post

Goto page ( Previous Page 1 | 2 | 3 )
PosterThread
tomazkid 
Re: Progress update on the CW4 (CW3) Device driver
Posted on 11-Sep-2006 15:31:50
#41 ]
Team Member
Joined: 31-Jul-2003
Posts: 11694
From: Kristianstad, Sweden

@NutsAboutAmiga

Sounds good.
Time to dig my Mk3 out from the closet and clean it from dust I guess

_________________
Site admins are people too..pooff!

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: Progress update on the CW4 (CW3) Device driver
Posted on 11-Oct-2006 17:12:24
#42 ]
Elite Member
Joined: 9-Jun-2004
Posts: 12831
From: Norway

@NutsAboutAmiga

* Some changes in the driver, motor how only turned of when all programs using the drive is finished whit it.

* If the mfm decoder can find Amiga MFM header data then, it will not try a different MFM decoder (MSDOS) this none working at the moment.

I have talked to Jens abut few things, he did not really answer my questions, he gave some hint on how the data stream of catweasel works, he did not give any details, but at least, but I think what he where tiring to tell me, is that bit stream is none standard, and needs to decoded before it can be used, by a codec (for example I can not swap out the MFM decoder whit modifying it to support the catweasel bit stream)

Last edited by NutsAboutAmiga on 10-Nov-2006 at 04:30 PM.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
Snuffy 
Re: Progress update on the CW4 (CW3) Device driver
Posted on 11-Oct-2006 18:48:20
#43 ]
Super Member
Joined: 25-Oct-2005
Posts: 1121
From: Michigan, USA

@NutsAboutAmiga

Probe cwfloppy ?
0: pci_base_address 802500
controllers 1
probe controller:
AmigaOS notice: cwfloppy: Controller #0 is a PCI Catweasel MK4 @0x802500
AmigaOS notice: cwfloppy: FPGA needed 0us to start up
Init controller
cwfloppy: Seek failed.
cwfloppy: Seek failed.
cwfloppy: Seek failed.
cwfloppy: Seek failed.
cwfloppy L0: can't find sync
cwfloppy: Seek failed.
cwfloppy L0: can't find sync
cwfloppy: Seek failed.
free drive 1
free drive 0
5
release_region
pci_disable_device
8 - END FREE_CONT
cleanup
pci_unregister_driver()

------

From DebugWindow:
Controller PCI Catweasel MK4
802500
CW MEMORY 8025E0
num controllers: 1
num units: 2

Init unit: 0
unit adr: 12B2EFE8

Init unit: 1
unit adr: 12B2F434
open unit no 0
unit hex no 12B2EFE8
Command 9
TD_MOTOR
unit hex no 12B2EFE8
unit hex no 12B2EFE8
Command 14
TD_ADDCHANGEINT
Command F
TD_PROTSTATUS
unit hex no 12B2EFE8
Command E
TD_CHANGESTATE
Error 30
Offset 0
Len 0
Block 0
unit hex no 12B2EFE8
Command 16
TD_GETGEOMETRY
unit hex no 12B2EFE8
Command F
TD_PROTSTATUS
unit hex no 12B2EFE8
Command 9
TD_MOTOR
unit hex no 12B2EFE8
Command 2
CMD_READ
Track 0 Side 0 Sector 0
Error 30
Offset 0
Len 512
Block 0


What does FPGA mean? And, why do i need it?

_________________

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: Progress update on the CW4 (CW3) Device driver
Posted on 16-Oct-2006 10:39:57
#44 ]
Elite Member
Joined: 9-Jun-2004
Posts: 12831
From: Norway

@Snuffy

The FPGA is the chip on the PCI card that controls it.
The FPGA needs to be programmed before the CW can be used.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: Progress update on the CW4 (CW3) Device driver
Posted on 10-Nov-2006 16:50:47
#45 ]
Elite Member
Joined: 9-Jun-2004
Posts: 12831
From: Norway

@NutsAboutAmiga

Quote:
it will not try a different MFM decoder (MSDOS) this none working at the moment.


* Two problems found and corrected, byte order issue whit Linux driver found on heeder and data checksum, this now fixed in the Amiga version.

* The MSDOS codec where not initialized, that’s fixed now.

Quote:
* Some changes in the driver, motor how only turned of when all programs using the drive is finished whit.


After closely analyzing the data written to disk, I found that MSDOS codec generated bad sector headers, whit the wrong side encoded, this where fixed, as well as few minor issues, I where able to write to the disk a short while, but then I decided to change the behavior of the motor, not all programs and file systems remember to turn on and off the motor, it can result in problems, like data not being read or written, so a result the cw.device where forced to enable and disable motor by it self, and this takes time, so I decided that motor should be turned on by any floppy driver command, and turned off after a delay when no activity is noticed, this did not work whit CMD_UDPATE and CMD_FORMAT commands and as result they broke.

Hope to find out what is effecting CMD_UPDATE and CMD_FORMAT, II need some time to analyze what’s going on, that’s way the progress is so slow.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 | 3 )

[ 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