Date: Thu, 20 Jul 2023 21:03:41 +0000 From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 272627] dd command stops with Input/output error while flashing SD card with USB card reader Message-ID: <bug-272627-19105@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272627 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=3DFreeBSD-13.2-RELEASE-arm-armv6-RPI-B.img of=3D/dev/da0 bs=3D1M conv=3D= fsync status=3Dprogress dd: /dev/da0: Input/output error8 MiB) transferred 203.123s, 10 MB/s 2029+0 records in 2028+0 records out=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 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=3DFreeBSD-13.2-RELEASE-arm-armv6-RPI-B.img of=3D/dev/da0 bs=3D1M conv=3D= fsync status=3Dprogress 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=3Dok, 1=3Dbad) : ramiro@freebsd-acer:~/Descargas $ cat zeros=20 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=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 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 =3D 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=3D0x2<NO_6_BYTE> # usbconfig ugen4.1: <Intel EHCI root HUB> at usbus4, cfg=3D0 md=3DHOST spd=3DHIGH (480= Mbps) pwr=3DSAVE (0mA) ugen3.1: <Intel UHCI root HUB> at usbus3, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DSAVE (0mA) ugen1.1: <Intel UHCI root HUB> at usbus1, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DSAVE (0mA) ugen0.1: <Intel UHCI root HUB> at usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DSAVE (0mA) ugen2.1: <Intel UHCI root HUB> at usbus2, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DSAVE (0mA) ugen4.2: <Y2B280PSB WebCam> at usbus4, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbp= s) pwr=3DON (500mA) ugen0.2: <vendor 0x1997 mini keyboard> at usbus0, cfg=3D0 md=3DHOST spd=3DF= ULL (12Mbps) pwr=3DON (100mA) ugen0.3: <PixArt USB Optical Mouse> at usbus0, cfg=3D0 md=3DHOST spd=3DLOW = (1.5Mbps) pwr=3DON (100mA) ugen4.3: <Generic Mass Storage Device> at usbus4, cfg=3D0 md=3DHOST spd=3DH= IGH (480Mbps) pwr=3DON (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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272627-19105>