From nobody Thu Jul 20 21:03:41 2023 X-Original-To: usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R6QCK4j9wz4nJ3d for ; Thu, 20 Jul 2023 21:03:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R6QCK2fQ3z3lbY for ; Thu, 20 Jul 2023 21:03:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689887021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s8Q5eKeCRh8YtJKZ5w76RXBGA9YKV72wJgaHjo4QOPY=; b=UyNvO+KWTKOIN8bUMTo020VuXqcsmgwdvwL5OESJ/njmsORSSgnVwE5sm0sN7TF5UFV+aj KI63O9fiv5nRbIwXJ/D8RGldW560mkPi3o5pn8hoUFM2M1X2B+GaUVmuNqjyRljRbUwdOz 4r1t/Qi5wkj1u8X0ZeOw3/y1Sh2ZRuFBtUiVQDNLOsc4wX2oBnXt62pE5HX+OYF0tP25ZP +PVmUQgVTJCwuxKUyt/Wk5W5JTzgAzU352Yy6qBcjeLri+4JiV2twI6m7eE1w0sN4G0jbk SeA5I7tcywQU27Q8QCa7Y4Jl/LdW3hKfNWMbCnlGm9bQ3PwkB0ixFnfM0hYyVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689887021; a=rsa-sha256; cv=none; b=KmOfYLPdSP4oUeiNA2sjgSzYdyMdVdXXB3f45+BufBAhdKICEIXC6Y9nqleoOv0a47krBW XLgpKubaXK2C4MIYz0ID5eQa/IOSpbrI+7MSlSYBy4C6JhDG5ohLPoUib7cWWuRTPfqgH0 jWtQ2KGZjJW2MPo8paQdz4g36aIJj4IlGBoRrPNv4QbmI51FMmbYSyh4NRdU04+P9A6hve +eP0GfNc34gvKNtkW4OBxeW0X8LqLlD/S0/nuex4HhSqqgal9JIGiN6HSZkepQ+cmTGGkS JHlra6IhKqkuDO0fkKLY514o4u+14cDaOWvgatiIY+E56tiiX155M8K/03xLmg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R6QCK1Rmzzm7R for ; Thu, 20 Jul 2023 21:03:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 36KL3fMx084127 for ; Thu, 20 Jul 2023 21:03:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36KL3fm0084126 for usb@FreeBSD.org; Thu, 20 Jul 2023 21:03:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Thu, 20 Jul 2023 21:03:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ea1abz@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 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: 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: 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: Removable Direct Access SCSI device da0: Serial Number 125C20100726 da0: 40.000MB/s transfers da0: 15193MB (31116288 512 byte sectors) da0: quirks=3D0x2 # usbconfig ugen4.1: at usbus4, cfg=3D0 md=3DHOST spd=3DHIGH (480= Mbps) pwr=3DSAVE (0mA) ugen3.1: at usbus3, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DSAVE (0mA) ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DSAVE (0mA) ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DSAVE (0mA) ugen2.1: at usbus2, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DSAVE (0mA) ugen4.2: at usbus4, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbp= s) pwr=3DON (500mA) ugen0.2: at usbus0, cfg=3D0 md=3DHOST spd=3DF= ULL (12Mbps) pwr=3DON (100mA) ugen0.3: at usbus0, cfg=3D0 md=3DHOST spd=3DLOW = (1.5Mbps) pwr=3DON (100mA) ugen4.3: 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.=