[Bug 272627] dd command stops with Input/output error while flashing SD card with USB card reader
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Jul 2023 21:03:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272627
Bug ID: 272627
Summary: dd command stops with Input/output error while
flashing SD card with USB card reader
Product: Base System
Version: 13.2-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: usb
Assignee: usb@FreeBSD.org
Reporter: ea1abz@gmail.com
Hello
I have a strange problem with a USB SD card reader on my Acer Aspire One
laptop. When trying to flash a SD card for a raspberry pi ZeroW using dd
command, it stops with an error after a while:
root@freebsd-acer:/home/ramiro/Descargas # dd
if=FreeBSD-13.2-RELEASE-arm-armv6-RPI-B.img of=/dev/da0 bs=1M conv=fsync
status=progress
dd: /dev/da0: Input/output error8 MiB) transferred 203.123s, 10 MB/s
2029+0 records in
2028+0 records out
2126512128 bytes transferred in 215.338163 secs (9875222 bytes/sec)
Sometimes it works and sometimes it does not. Aproximately there is a 35% of
chance of success. This is one of the success session:
root@freebsd-acer:/home/ramiro/Descargas # dd
if=FreeBSD-13.2-RELEASE-arm-armv6-RPI-B.img of=/dev/da0 bs=1M conv=fsync
status=progress
5360320512 bytes (5360 MB, 5112 MiB) transferred 507.042s, 11 MB/s
5120+0 records in
5120+0 records out
5368709120 bytes transferred in 508.462340 secs (10558715 bytes/sec)
This is the result of a batch of tests (0=ok, 1=bad) :
ramiro@freebsd-acer:~/Descargas $ cat zeros
1
1
1
1
1
1
1
1
1
0
0
0
1
1
1
1
1
0
1
1
1
0
0
0
0
0
0
1
1
1
1
0
1
1
1
1
1
0
1
0
1
1
# uname -a
FreeBSD freebsd-acer 13.2-RELEASE-p1 FreeBSD 13.2-RELEASE-p1 GENERIC amd64
dmesg:
eric Mass Storage Device (0x14cd:0x125c)
ugen4.3: <Generic Mass Storage Device> at usbus4
umass0 on uhub0
umass0: <Generic Mass Storage Device, class 0/0, rev 2.00/3.00, addr 3> on u
sbus4
umass0: SCSI over Bulk-Only; quirks = 0xc101
umass0:2:0: Attached to scbus2
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Mass Storage Device > Removable Direct Access SCSI device
da0: Serial Number 125C20100726
da0: 40.000MB/s transfers
da0: 15193MB (31116288 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
# usbconfig
ugen4.1: <Intel EHCI root HUB> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps)
pwr=SAVE (0mA)
ugen3.1: <Intel UHCI root HUB> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps)
pwr=SAVE (0mA)
ugen1.1: <Intel UHCI root HUB> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps)
pwr=SAVE (0mA)
ugen0.1: <Intel UHCI root HUB> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
pwr=SAVE (0mA)
ugen2.1: <Intel UHCI root HUB> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps)
pwr=SAVE (0mA)
ugen4.2: <Y2B280PSB WebCam> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
(500mA)
ugen0.2: <vendor 0x1997 mini keyboard> at usbus0, cfg=0 md=HOST spd=FULL
(12Mbps) pwr=ON (100mA)
ugen0.3: <PixArt USB Optical Mouse> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps)
pwr=ON (100mA)
ugen4.3: <Generic Mass Storage Device> at usbus4, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=ON (248mA)
# kldstat
Id Refs Address Size Name
1 48 0xffffffff80200000 1f3e2d0 kernel
2 1 0xffffffff82320000 1858b8 i915kms.ko
3 1 0xffffffff824a6000 739e0 drm.ko
4 2 0xffffffff8251a000 5220 linuxkpi_gplv2.ko
5 3 0xffffffff82520000 62d8 dmabuf.ko
6 1 0xffffffff82527000 3378 acpi_wmi.ko
7 1 0xffffffff8252b000 3250 ichsmb.ko
8 1 0xffffffff8252f000 2180 smbus.ko
9 1 0xffffffff82532000 3340 uhid.ko
10 1 0xffffffff82536000 4350 ums.ko
11 1 0xffffffff8253b000 3380 usbhid.ko
12 1 0xffffffff8253f000 31f8 hidbus.ko
13 1 0xffffffff82543000 5af8 autofs.ko
14 1 0xffffffff82549000 2a08 mac_ntpd.ko
Thanks so much.
Regards.
Ramiro.
--
You are receiving this mail because:
You are the assignee for the bug.