tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MNT Reform2 USB LCP flash



On 2/4/24 10:12, Michael van Elst wrote:
On Sun, Feb 04, 2024 at 09:58:39AM +0200, Staffan Thomén wrote:

The man page for scsictl(8) says that SCSIPI_DEBUG is the required option...

SCSIPI_DEBUG is it.

It should also set the default debug flags (that the ioctl may
change).

Yep, I just tried it and I got some more info.

[ 214.0188739] umass0: NXP (0x1fc9) LPC1XXX IFLASH (0x000b), rev 2.00/7.04, addr 3
[ 214.0188739] umass0: using SCSI over Bulk-Only
[ 214.0188739] scsibus0 at umass0: 2 targets, 1 lun per target
[ 214.0188739] scsipi_inqmatch: 2/0/1 <, , >
[ 214.0188739] sd0 at scsibus0 target 0 lun 0: <NXP, LPC1XXX IFLASH, 1.0> disk removable
[ 214.0288745] sd0: fabricating a geometry
[ 214.0288745] sd0: 34816, 1 cyl, 64 head, 32 sec, 512 bytes/sect x 68 sectors
[ 214.0288745] sd0(umass0:0:0:0):  sense debug information:
[ 214.0288745]     code 0x70 valid 0
[ 214.0288745]     seg 0x0 key 0x2 ili 0x0 eom 0x0 fmark 0x0

[ 214.0288745] info: 0x0 0x0 0x0 0x0 followed by 10 extra bytes
[ 214.0288745] extra (up to 10 bytes): 0x0 0x0 0x0 0x0 0x30 0x1 0x0 0x0 0x0 0x0 [ 214.0288745] autoconfiguration error: sd0: unable to open device, error = 5

According to this random website I found[1], key 0x2 does indeed mean NOT READY. But since I can't open() the device, how does one go about making it ready?

There's a lot of zero "info" bytes, but 0x30 0x1 has the meaning "CANNOT READ MEDIUM - UNKNOWN FORMAT" according to the same random website. Is this perhaps a clue?

[1] https://www.stix.id.au/wiki/SCSI_Sense_Data

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index