Re: [hatari-devel] Linux-68k and REQUEST SENSE

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On 23.11.2024 15.50, Uwe Seimet wrote:
I just had a look at the current doc/m68k-linux.txt file.

Thanks!

> ...
Have these messages been recorded with a binary based on the current
Hatari sources? I don't think that with the latest sources Hatari sends
22 bytes when only 6 are requested, but maybe I am missing something.

Here's the trace with latest Hatari Git version:
--------------------------------------------------------------
$ hatari --trace os_base,scsi_cmd --log-level info --natfeats on \
  --fast-forward on --fastfdc on --timer-d on --machine falcon \
  --dsp off --fpu 68882 --cpuclock 32 --mmu on -s 14 --ttram 64 \
  --addr24 off --scsi 0=rootfs.img -c lilo.cfg \
  --lilo "debug=nfcon root=/dev/sda ro init=/init"
....
ATARI MBR:
- Partition 0: ID=..., start=0x00000000, size=0.0 MB, flags=0x0
- Partition 1: ID=..., start=0x00000000, size=0.0 MB, flags=0x0
- Partition 2: ID=..., start=0x00000000, size=0.0 MB, flags=0x0
- Partition 3: ID=..., start=0x00000000, size=0.0 MB, flags=0x0
- Total size: 0.0 MB in 0 partitions
....
scsi host0: Atari native SCSI, irq 15, io_port 0x0, base 0x0, can_queue 1, cmd_per_lun 2, sg_tablesize 1, this_id 7, flags { }
HDC: INQUIRY (SCSI, t=0, lun=0, cdb=12:00:00:00:24:00)
scsi 0:0:0:0: Direct-Access     Hatari   EmulatedHarddisk 0180 PQ: 0 ANSI: 1
HDC: INQUIRY (SCSI, t=0, lun=1, cdb=12:20:00:00:24:00)
NET3 PLIP version 2.4-parport gniibe@xxxxxxxxx
....
NET: Registered PF_PACKET protocol family
HDC: TEST UNIT READY (SCSI, t=0, lun=0, cdb=00:00:00:00:00:00).
HDC: READ CAPACITY (SCSI, t=0, lun=0, cdb=25:00:00:00:00:00:00:00:00:00)
sd 0:0:0:0: [sda] 8192 512-byte logical blocks: (4.19 MB/4.00 MiB)
3 repeats of: HDC: READ CAPACITY (SCSI, t=0, lun=0, cdb=25:00:00:00:00:00:00:00:00:00)
HDC: MODE SENSE (SCSI, t=0, lun=0, cdb=1a:00:3f:00:04:00).
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 2b 00 00 00
HDC: MODE SENSE (SCSI, t=0, lun=0, cdb=1a:00:08:00:04:00).
HDC: REQUEST SENSE (SCSI, t=0, lun=0, cdb=03:00:00:00:60:00).
sd 0:0:0:0: [sda] Cache data unavailable
sd 0:0:0:0: [sda] Assuming drive cache: write through
HDC: Unsupported command (SCSI, t=0, lun=0, cdb=5a:08:0a:05:00:00:00:02:00:00)!
HDC: REQUEST SENSE (SCSI, t=0, lun=0, cdb=03:00:00:00:60:00).
HDC: TEST UNIT READY (SCSI, t=0, lun=0, cdb=00:00:00:00:00:00).
HDC: READ CAPACITY (SCSI, t=0, lun=0, cdb=25:00:00:00:00:00:00:00:00:00)
3 repeats of: HDC: READ CAPACITY (SCSI, t=0, lun=0, cdb=25:00:00:00:00:00:00:00:00:00)
HDC: MODE SENSE (SCSI, t=0, lun=0, cdb=1a:00:3f:00:04:00).
HDC: MODE SENSE (SCSI, t=0, lun=0, cdb=1a:00:08:00:04:00).
HDC: REQUEST SENSE (SCSI, t=0, lun=0, cdb=03:00:00:00:60:00).
HDC: Unsupported command (SCSI, t=0, lun=0, cdb=5a:08:0a:05:00:00:00:02:00:00)!
HDC: REQUEST SENSE (SCSI, t=0, lun=0, cdb=03:00:00:00:60:00).
HDC: READ SECTOR (SCSI, t=0, lun=0, cdb=28:00:00:00:00:00:00:00:08:00) with LBA 0x0 -> OK (0)
sd 0:0:0:0: Device offlined - not ready after error recovery
sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=40s
sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev sda, logical block 0, async page read
sd 0:0:0:0: rejecting I/O to offline device
I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev sda, logical block 0, async page read
 sda: unable to read partition table
sd 0:0:0:0: [sda] Attached SCSI disk
VFS: Cannot open root device "/dev/sda" or unknown-block(8,0): error -6
--------------------------------------------------------------

=> Linux IDE driver works fine with single EXT2 partition image, but it seem like there could be also a problem of Linux SCSI driver expecting also a partition table?


Btw. For some reason I get much less logging when using "tt" instead of "falcon":
--------------------------------------------------------------
....
NET: Registered PF_PACKET protocol family
HDC: TEST UNIT READY (SCSI, t=0, lun=0, cdb=00:00:00:00:00:00).
HDC: READ CAPACITY (SCSI, t=0, lun=0, cdb=25:00:00:00:00:00:00:00:00:00)
sd 0:0:0:0: [sda] 8192 512-byte logical blocks: (4.19 MB/4.00 MiB)
3 repeats of: HDC: READ CAPACITY (SCSI, t=0, lun=0, cdb=25:00:00:00:00:00:00:00:00:00)
HDC: MODE SENSE (SCSI, t=0, lun=0, cdb=1a:00:3f:00:04:00).
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 2b 00 00 00
HDC: MODE SENSE (SCSI, t=0, lun=0, cdb=1a:00:08:00:04:00).
HDC: REQUEST SENSE (SCSI, t=0, lun=0, cdb=03:00:00:00:60:00).
sd 0:0:0:0: Device offlined - not ready after error recovery
sd 0:0:0:0: [sda] Asking for cache data failed
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: [sda] Attached SCSI disk
VFS: Cannot open root device "/dev/sda" or unknown-block(8,0): error -6
--------------------------------------------------------------


	- Eero




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/