Re: MNT Reform2 USB LCP flash
Staffan Thomen <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.kernel |
|---|---|
| Message-ID | <[email protected]> |
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
OpenPGP_signature.asc
(application/pgp-signature, 665 B)
-----BEGIN PGP SIGNATURE----- wsD5BAABCAAjFiEEloZd/Wa0dSqOBeRMieZbIf58OAcFAmW/TOcFAwAAAAAACgkQieZbIf58OAfz tAv+MPyn7Sy+ZSSR4tGNY1x/1nhYrrthrkWFc3K2Zut/QX4qyJZNlqb4ZdLvDgEZmQ/VdYMQO5mj f0xJUc6WWwYNQ/9s3B3yTQ6q1Kep8TqFUkxD6FVb1zcodgMkOJJYyhVaQsG7PVr42w6MjjQdhRZy HaCrpcjdBf1pzaoxfQMS/vobh+VPfEF+19CVzL2VWHbpug+Tza/U8RQbN/OuA1MLkpM1tJr9Iooa wE4uEgu4nb+pVQJneT+1f2kSO3gxffJomM81OkZGB5obKt1OUUd4WR3ZdcgyFQwlxsqXfYK48EhK yE0JyfH1Amb0lmM8oiz6rjaHX9We25B5Gto1fL1ufHIW0E83jyu3grRPGoXtVnuYZJX/EJuP3Zup rx67Vv9Vq060ztPgZc9JocQiSTI3YuDN/Dm2/7TtcFw3KdvgRQ/7zPvGKRC2dIidqshQMagiwP/2 pzB0dPYG4DBSpxM6psfCpfJCxP4JOiWNeG9jAKZgxgPHOcWz3F9nkfaoOHyV =X8cL -----END PGP SIGNATURE-----