From owner-freebsd-arm@freebsd.org Sat Mar 26 15:48:09 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EAF6EADDB56 for ; Sat, 26 Mar 2016 15:48:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CFCB51240 for ; Sat, 26 Mar 2016 15:48:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u2QFm9oE018588 for ; Sat, 26 Mar 2016 15:48:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 208308] Adding USB flash drive to fstab kills ue0 on Raspberry Pi 2 Date: Sat, 26 Mar 2016 15:48:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dhorton668@hotmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@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 attachments.created 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 MIME-Version: 1.0 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2016 15:48:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208308 Bug ID: 208308 Summary: Adding USB flash drive to fstab kills ue0 on Raspberry Pi 2 Product: Base System Version: 11.0-CURRENT Hardware: arm OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: dhorton668@hotmail.com Created attachment 168654 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D168654&action= =3Dedit dmesg output from a successful boot noting differences from hung boot. I am using FreeBSD-11.0-CURRENT-arm-armv6-RPI2-20160308-r296485.img and experiencing a problem with USB flash drives and the built-in RPi Ethernet.= In summary, as soon as I add my USB flash drive to /etc/fstab, the system will never complete the boot process and ue0 never change the link state. Once = this happens, disconnecting the flash drive from the RPi and rebooting does not help. Only if the flash drive is never added to /etc/fstab, will the syst= em boot normally.=20=20 I don't recall experiencing this problem when using FreeBSD-11.0-CURRENT-arm-armv6-RPI2-20160127-r294912.img and wonder if the = new problem may have been introduced by changes made for "Bug 199446 - arm Raspberry Pi panic without ethernet connected on boot" Here is how to reproduce it: 1) Install FreeBSD-11.0-CURRENT-arm-armv6-RPI2-20160308-r296485.img 2) Insert a USB flash drive 3) Create a UFS filesystem on da0p1 4) Add /dev/da0p1 to /etc/fstab 5) Restart the Raspberry Pi Troubleshooting steps I've taken: Erased (dd if=3D/dev/zero of=3D/dev/da0) the flash drive and set up partiti= on again) Used different brand of flash drive. Added the option 'noauto' to fstab. Used another, known good RPi2. Used another, known good power supply. Used another, known good SD card. None of the above makes a difference and still results in the hung boot. Additional troubleshooting: I swapped components (flash drive, power supply, SD card and RPi itself) wi= th a Linux-based media center. I cannot reproduce the problem on the media cent= er. Workaround: Do not add flash drive to fstab, but mount manually after booting. I am attaching the dmesg output from a successful boot when the flash drive= is not in fstab. Unfortunately I cannot include dmesg output from the hung bo= ot, but I do notice that the 'ue0: link state changed to DOWN' and 'ue0: link s= tate changed to UP' lines never appear on the screen. --=20 You are receiving this mail because: You are the assignee for the bug.=