NetBSD-Users archive

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

dd: /dev/rsd0d: Device not configured (RPi4)



Hi,

I have a RPi4 working fine for a long time. USB devices work, I have tested a keyboard, RTL dongle receiver, USB WEBCam...

But today I tried to flash a 125GB SD card using a SanDisk USB dongle card reader connected to one of the USB RPi4 ports:


netbsd-raspa4# uname -a
NetBSD netbsd-raspa4 10.1 NetBSD 10.1 (GENERIC64) #0: Mon Dec 16 13:08:11 UTC 2024 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm



[  1586,840636] umass0 at uhub2 port 3 configuration 1 interface 0
[ 1586,850637] umass0: SanDisk (0x0781) SDDR-B531 (0xcfcb), rev 2.10/29.20, addr 4
[  1586,850637] umass0: using SCSI over Bulk-Only
[  1586,860638] scsibus0 at umass0: 2 targets, 1 lun per target
[ 1587,060642] sd0 at scsibus0 target 0 lun 0: <SanDisk, SDDR-B531, 2920> disk removable
[  1587,070642] sd0: fabricating a geometry
[ 1587,070642] sd0: 116 GB, 119276 cyl, 64 head, 32 sec, 512 bytes/sect x 244277248 sectors
[  1587,080646] sd0: fabricating a geometry


netbsd-raspa4# dd if=arm64-uefi-fw.img of=/dev/rsd0d bs=1m
dd: /dev/rsd0d: Device not configured


netbsd-raspa4# dd if=/dev/zero of=/dev/rsd0d bs=1m count=1
dd: /dev/rsd0d: Device not configured
netbsd-raspa4#

fdisk seems to work cause I used it to delete previous partitions:


netbsd-raspa4# fdisk sd0
fdisk: Cannot determine the number of heads
Disk: /dev/rsd0
NetBSD disklabel disk geometry:
cylinders: 119276, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 244277248, bytes/sector: 512

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 244277248

Partitions aligned to 16065 sector boundaries, offset 63

Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)
netbsd-raspa4#

netbsd-raspa4# disklabel sd0
# /dev/rsd0:
type: SCSI
disk: SDDR-B531
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 119276
total sectors: 244277248
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# microseconds
track-to-track seek: 0	# microseconds
drivedata: 0

3 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a: 244277248 0 4.2BSD 0 0 0 # (Cyl. 0 - 119275) c: 244277248 0 unused 0 0 # (Cyl. 0 - 119275)
disklabel: boot block size 0
disklabel: super block size 0
netbsd-raspa4#

Thanks.
Ramiro.




dd commands work just fine in my Thinkpad x260 running also NetBSD 10.1. I ended flashing the SD card on the computer because it surprisingly failed on the RPi4.

Am I missing something?

Thanks so much in advance.
Ramiro.





Home | Main Index | Thread Index | Old Index