USB CD Support
Jeffrey Lee (213) 6048 posts |
Interesting – if 0:0.0 really was the CD drive on your first attempt, then that must mean there’s a bug in SCSIFS that’s causing it to reserve devices which aren’t standard direct-access storage devices. Although that wouldn’t explain why the inquiry result only showed one device connected, and after some quick testing here I can’t find a situation in which SCSIFS ends up with the wrong device reserved. Anyway, I’ve now uploaded another version of the driver, which should fix Doug’s problems for real this time. It looks like I’d simply forgot that some of the parameters available by CD_GetParameters/CD_SetParameters may be read-only. |
Ronald May (387) 407 posts |
I did find that the internal IDE CDROM was using 0.0.0 so it is removed now. |
Dave Higton (281) 668 posts |
Jeffrey, it might be helpful to make the version strings of CDFSSoftSCSI unique so that I can be certain that a new one has replaced an earlier one. All your modules seem to be version 0.01 (20 Nov 2011) in the three different zip files I’ve downloaded so far. I know the files have different lengths so they must be different, but I can’t easily tell which one is resident. |
Doug Webb (190) 1180 posts |
Jeffrey Some good news in that the new module now lets me read CD’s , DVD -r and +R discs so thanks for your efforts on this. However it seems a bit erratic from cold restarting of the Beagleboard for the drive to work but I can cure this if it fails on initial startup by unplugging the drive and reinserting i.e. doing hot plug in. After this the drive work OK though DADPrint shows errors as per below. Once again thanks for your efforts so far on this. Doug CDFSSoftSCSI: driver_code: Op Identify (30) on 0:0.0 CDFSSoftSCSI: driver_code: Op Identify (30) on 3:4.7 CDFSSoftSCSI: driver_code: Op Identify (30) on 3:5.7 CDFSSoftSCSI: driver_code: Op Identify (30) on 3:6.7 CDFSSoftSCSI: driver_code: Op Identify (30) on 3:7.7 CDFSSoftSCSI: driver_code: Op Identify (30) on 0:0.0 CDFSSoftSCSI: driver_code: Op Identify (30) on 0:1.0 CDFSSoftSCSI: Inquiry response data: CDFSSoftSCSI: 05 80 00 32 5b 00 00 00 54 53 53 54 63 6f 72 70 43 44 44 56 44 57 20 53 45 2d 53 30 38 34 43 20 54 53 30 32 CDFSSoftSCSI: Detected DriveType_MMC CDFSSoftSCSI: driver_code: Op DiscHasChanged (21) on 0:1.0 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op ReadData (0) on 0:1.0 CDFSSoftSCSI: Reading 1 blocks (2048 each) from 00000010 to 200f697c. Data mode 0 CDFSSoftSCSI: Performing PhotoCD correction CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 12 timeout 0 retries 0 CDFSSoftSCSI: SCB: 43 00 01 00 00 00 00 00 0c 00 CDFSSoftSCSI: OK, 12 data bytes CDFSSoftSCSI: Applying offset of 00000000 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 12 buffer 2046e660 buflen 2352 timeout 0 retries 0 CDFSSoftSCSI: SCB: be 00 00 00 00 10 00 00 01 78 00 00 CDFSSoftSCSI: Error 201c5 Target error – Illegal request CDFSSoftSCSI: driver_code: Returning error 201c5 Target error – Illegal request CDFSSoftSCSI: driver_code: Op EnquireDataMode (9) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 52 00 00 00 00 10 00 20 00 00 CDFSSoftSCSI: OK, 36 data bytes CDFSSoftSCSI: READ TRACK INFORMATION of 00000010: CDFSSoftSCSI: Should be data mode 1 CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op SetParameters (5) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 0d 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 16 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 14 bytes, but should be 22 CDFSSoftSCSI: SCSI_Op: type a000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 16 timeout 0 retries 0 CDFSSoftSCSI: SCB: 55 10 00 00 00 00 00 00 10 00 CDFSSoftSCSI: Error 201c5 Target error – Illegal request CDFSSoftSCSI: Looks like inactivity timer multiplier is read-only CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 01 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 20 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 18 bytes, but should be 26 CDFSSoftSCSI: SCSI_Op: type a000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 20 timeout 0 retries 0 CDFSSoftSCSI: SCB: 55 10 00 00 00 00 00 00 14 00 CDFSSoftSCSI: OK, 20 data bytes CDFSSoftSCSI: driver_code: Op ReadData (0) on 0:1.0 CDFSSoftSCSI: Reading 1 blocks (2048 each) from 00000010 to 200f697c. Data mode 1 CDFSSoftSCSI: Performing PhotoCD correction CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 12 timeout 0 retries 0 CDFSSoftSCSI: SCB: 43 00 01 00 00 00 00 00 0c 00 CDFSSoftSCSI: OK, 12 data bytes CDFSSoftSCSI: Applying offset of 00000000 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 2048 timeout 0 retries 0 CDFSSoftSCSI: SCB: 28 00 00 00 00 10 00 00 01 00 CDFSSoftSCSI: OK, 2048 data bytes CDFSSoftSCSI: driver_code: Op ReadData (0) on 0:1.0 CDFSSoftSCSI: Reading 1 blocks (2048 each) from 00000051 to 200f697c. Data mode 1 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 2048 timeout 0 retries 0 CDFSSoftSCSI: SCB: 28 00 00 00 00 51 00 00 01 00 CDFSSoftSCSI: OK, 2048 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op DiscChanged (16) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 8000000 dev 0:1.0 scblen 6 buffer 00000000 buflen 0 timeout 0 retries 0 CDFSSoftSCSI: SCB: 00 00 00 00 00 00 CDFSSoftSCSI: OK, 0 data bytes CDFSSoftSCSI: driver_code: Op GetParameters (4) on 0:1.0 CDFSSoftSCSI: SCSI_Op: type 9000000 dev 0:1.0 scblen 10 buffer 2046e660 buflen 8192 timeout 0 retries 0 CDFSSoftSCSI: SCB: 5a 08 3f 00 00 00 00 20 00 00 CDFSSoftSCSI: OK, 256 data bytes CDFSSoftSCSI: ModeDataLength doesn’t add up! Drive reports 252 bytes, but should be 262 |
Jeffrey Lee (213) 6048 posts |
Thanks for the info Ron – I’ll have a look through your log and see if I can work out what the problem is.
Point taken – I’ll make sure they all use different version strings from now on. |
Ronald May (387) 407 posts |
One further observation, after the Target error illegal request, the drive disappears from -cdfs-cddevices until clicking on the CDFSSoftSCSI module again. BTW I am using the newest driver mentioned 3 hours ago I have now tried my newer Sony DVD writer, and after a few tries, I can remember the Aopen drive not responding well to the Cino Driver I’ll add on here, that the driver is working perfectly on my RiscPC SA 3.7 using an Acard ide-parallelSCSI adapter and an Acorn SCSI podule. Looks fast too. Even more surprising is the (troublesome on usb) Aopen is fine too. Ron |
Trevor Johnson (329) 1645 posts |
This sounds like great news :-)
A RaspberryPi and a Pandora (in my dreams)! |
Dave Higton (281) 668 posts |
Just to confirm: having just powered the BBxM up tonight, 0:0.0 is the DVD drive and 0:1.0 is the HDD. SCSIFS is 1.22 (14 Oct 2011). The good news is that, having loaded your CDFSSoftSCSI module, a CD is readable without any further ado. Is there any more diagnostic information you’d like? Are there any tests you’d like me to perform? Whereabouts in !System should your CDFSSoftSCSI module go? |
Rob Heaton (274) 515 posts |
All working fine here too! Even the Eject option works! Nice work Jeffrey!!!!! |
Jess Hampshire (158) 865 posts |
Seems to work OK with an XBox 360 HDDVD drive on my Iyonix (after I killed CDFaker, loaded the module and configured the drives). Hopefully this will go into the Iyonix ROM too? (I noticed the internal one no longer worked). How should the speed compare with the Iyonix ATAPI interface? |
Dave Higton (281) 668 posts |
Steffen and Jeffrey: I’m hoping that the next step will be to get CDVDBurn working on BeagleBoards. I note that CDVDBurn has been observed to work (to some extent) on a BB, but any attempt to get CDVDBurn 2.06b to run on my BBxM produces an Abort on Data Transfer, regardless of the setting of alignment exceptions. Steffen, does it require a later version of CDVDBurn than I appear to have? And to both of you: what else is necessary to make it work? If I can be of any help, please just let me know! |
Steffen Huber (91) 1953 posts |
Hi Dave, I do have a CDVDBurn version that seems to work on BeagleBoard with some drives, but I have problems making it work with other drives. Symptoms include complete lockups and strange USB errors. I will send you the version that seems to work best on the Beagle. The original plan was to release a new version of CDVDBurn in 2011 with all the things I developed during the past few years (USB/Beagle support, Blu-Ray support, CD/DVD/Blu-Ray Extractor, Verify, DVD-RAM support). It looks like this plan will fail – to much “real world work” to do. I am not sure how to proceed. Maybe just release it for everyone, and ask those where it works for a donation? It certainly makes little sense to not release anything for the next years because I don’t have the time to finish it properly. |
Jeffrey Lee (213) 6048 posts |
A few posts for me to catch up on. First Dave: if 0:0.0 really was the CD drive on your first attempt, then that must mean there’s a bug in SCSIFS that’s causing it to reserve devices which aren’t standard direct-access storage devices. One thought that occured to me a day or two ago is that the CD drivers might be suffering from a similar issue to SCSIFS, where if the USB devices aren’t enumerated fast enough on boot then the system won’t see that the drive is connected. It was easy enough to solve this with booting from USB mass storage devices by just making FileCore retry until the device appears (or escape is pressed), but for detecting CD drives (unless you’re trying to boot from one) I don’t think there’s a simple solution available. Possible solutions I can think of:
One thing I don’t quite understand is why the drive starts working when you simply softload a copy of CDFSSoftSCSI. In my experience loading/reloading a driver won’t cause CDFS to rescan for drives, so perhaps the problem you’re seeing is just a bug in the first version of CDFSSoftSCSI and not down to USB device detection/enumeration being slow.
If you want to have it softloaded on startup then just dropping it in the PreDesk should do the trick. Putting it in !System won’t really do much, since AFAIK the boot sequence doesn’t try looking for CD drivers there. Jess:
At the moment the SCSI/USB mass storage modules aren’t included in the Iyonix ROM image. They get softloaded during boot instead. So if we added CDFSSoftSCSI to the ROM then we’d also need SCSIdriver and SCSISoftUSB, and if we were to add those two then it would make sense to include the remaining two modules as well (SCSIFS and SCSIFiler). The only problem is that there isn’t much space left in the ROM image (about 76k IIRC). I think that including the modules in the ROM image is a good idea, but we might have to switch over to compressed ROM images either now or sometime soon in order to make sure we don’t run out of space.
This will be because of the way that the CD drivers use SCSI device IDs to identify everything, even drivers that don’t use the SCSI stack like ATAPI and CDFaker. A proper fix would be to wait for full hot-plug support, but in the meantime maybe I can just change the order in which CDFSDriver scans for drives so that device IDs that are least likely to be used by real SCSI devices are checked first.
I haven’t done any speed comparisons, but since all the operations will internally go through SCSIdriver, SCSISoftUSB and the USB stack, the driver should get about the same performance as SCSIFS when reading from a (fast) USB drive. Steffen:
You probably should have pestered me a bit to help you investigate those errors :-) Over the weekend I had a look into the bug that was causing a softlock when my TS-H552 DVD-RW is connected. It looks like there were a few different issues at work:
Since there have been a few fixes made, I’ll see if I can get Steve to upload some new ROM images sometime this week. But don’t be surprised if there’s yet another new ROM in a couple of weeks, containing even more fixes :) |
Jess Hampshire (158) 865 posts |
That would be useful. The reason I was thinking of was if this is done, it should then be relatively easy to make a special softload to test the bootimage for a Pi. (Hardwired to boot from a USB drive, perhaps with no IDE support) |
Steffen Huber (91) 1953 posts |
Hi Jeffrey, yes, of course I should have tried to get help…so many people have offered help, but I am not even able to supply enough code/information to people so that they can actually help me! The lockup/error recovery problem I talked about is exactly the problem that I wanted to analyze and isolate via the CD prototype and send it your way – since around GAG meeting (which was in August!). Well, it didn’t happen (yet!). But maybe, due to your fine work with the CDFS driver, you may encounter the same problem and fix it without waiting for me! |
Rob Heaton (274) 515 posts |
I’ve built an OMAP3 ROM from last nights CVS. (Which contains the latest SCSI updates.) EDIT: ROM updated to CVS date 30/11/2011 |
Dave Higton (281) 668 posts |
Steffen:
Thanks, Steffen. I had a chance to do a quick test early this afternoon; it wrote a CD-R fine (dog slow, but I had set it to 1x). I’m writing a DVD-R at the moment with an image that is somewhere in the order of 1 GB. The write (set to 4x) is proceeding at about 2 minutes per percent, which means it will take about 3 hours 20 minutes to complete. Currently it’s at 43%. I may not get to see the results until tomorrow morning. Of course the HDD and the DVD are both on USB, and the ISO image is on the HDD. I can imagine this could be a bottleneck.
On the strength of what you have sent me this morning, I think I owe you a donation already! |
Jeffrey Lee (213) 6048 posts |
That sounds a tad slow! Only about 83kB/sec. Steffen, how is CDVDBurn reading the ISO file – i.e. once it gets down to the filesystem level, will it be byte reads or (large) block reads? If it’s byte reads (or anything under several K at once) it will be dog slow due to the lack of caching in SCSIFS. Although that’s hardly something that’s your fault. Rewriting SCSIFS is almost at the top of my todo list, but sadly still a couple of months away :( |
Dave Higton (281) 668 posts |
Btw: the write completed in a tad over 2 hours. Counting the files, they total about 1.5 GB; somewhat bigger than I thought. I can read the DVD back in the writer attached to the BB, but not in either of the drives in my Iyonix. I don’t yet know why. |
Steffen Huber (91) 1953 posts |
Hey, CDVDBurn should not even be able to write a DVD-R! It should only work with DVD+RW, DVD-RAM, BD-R, BD-RE and DVD-RW, and with a lot of luck DVD+R. About the performance: if Dave has not reconfigured something, 64 KB blocks at once are read. Simple OS_GBPB calls. Write speed is currently only set when writing CDs, when writing DVDs/BDs the slowest possible writing speed for the inserted medium is automatically chosen, mainly because the IYONIX IDE subsystem was not fast enough for higher speeds (1x is already around 1.2 MB/s). Your read problems could be due to incomplete medium fixation, so only a real writer will be able to read it. |
Ronald May (387) 407 posts |
Jeff By coincidence I did this test this morning, and 535MB copied from The DVD in 2min35 and the same batch of large files copied from My USBHardDrive in 2min22. I am finding at the moment that following the loading of CDFSSoftSCSI, plugging in the usbCDDrive, I repeat issueing -cdfs-cddrives until it returns with the drive and then proceed with normal filer activity. What are the minimum CDFS related modules required? I’d like to try the Iyonix ones on my RiscPC with parallel SCSI. Ron |
Dave Higton (281) 668 posts |
My apologies for writing the rubbish that I did. I don’t know where my brain was at the time. I wrote a DVD+RW. As for the speed: I haven’t knowingly reconfigured anything, so I assume we are dealing with 64 kiB blocks. I’ve put the DVD+RW in an ex-laptop drive connected to an Eee PC; it reads the disc. |
Rob Heaton (274) 515 posts |
@Steffen rob at robheaton dot co dot uk |
Trevor Johnson (329) 1645 posts |
Steffen, CDFaker & CDVDBurn are now contained in the Raspberry Pi disc image proposals. The latter links to CDBurn Lite – is that an option? |
Steffen Huber (91) 1953 posts |
Hi Trevor, the idea of CDBurn Lite is certainly still worth considering. However, I think CDVDBurn will live on as “donationware” in the future, so this would be the preferrable option. I’ll try to figure out a way forward in the next few days. CDFaker: Copyright is still Andy Armstrong. And now Jeffrey has provided a stable C-written base for a CDFSSoft… driver, it would be a good idea to just rewrite CDFaker. Preferrably with support for “large” CDVDBurn-style images. |