From owner-freebsd-arm@freebsd.org Mon Oct 17 18:34:25 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 A89C3C1646C for ; Mon, 17 Oct 2016 18:34:25 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [69.239.235.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 794B01FCE for ; Mon, 17 Oct 2016 18:34:25 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id u9HIYJEq043362 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 17 Oct 2016 11:34:20 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id u9HIYJiQ043361; Mon, 17 Oct 2016 11:34:19 -0700 (PDT) (envelope-from fbsd) Date: Mon, 17 Oct 2016 11:34:19 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Are all USB ports equivalent? Message-ID: <20161017183418.GA43296@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2016 18:34:25 -0000 In upgrading stable/11 on one of my RPI2 hosts it seems that /dev/da0 isn't being created by the kernel. A second machine with the same software has no such problem. Both are self-hosting, with /usr, /var /tmp and swap on a usb flash drive. Root is on microSD. It happens that the USB flash drive holding the outboard filesystems (root is on microSD for both machines) is in a different slot on the two machines. The one which boots successfully reports FreeBSD www.zefox.com 11.0-STABLE FreeBSD 11.0-STABLE #9 r307491: Mon Oct 17 03:01:20 PDT 2016 bob@www.zefox.com:/usr/obj/usr/src/sys/RPI2 arm and shows ugen0.6: at usbus0 umass0 on uhub1 umass0: on usbus0 ugen0.7: at usbus0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SPC-4 SCSI device da0: Serial Number AA010509160727180727 da0: 40.000MB/s transfers da0: 59836MB (122544516 512 byte sectors) da0: quirks=0x2 The machine which has trouble reports FreeBSD 11.0-STABLE #1 r307523: Mon Oct 17 09:30:28 PDT 2016 bob@ns1.zefox.net:/usr/obj/usr/src/sys/RPI2 arm and reports ugen0.4: at usbus0 umass0 on uhub1 umass0: on usbus0 ugen0.5: at usbus0 with no mention of da0. The clearest difference I can find between the machines is that the one which creates /dev/da0 has the flash drive on address 6, the one which fails to create /dev/da0 has the flash drive at address 4. It's hard to believe that should matter, but it's the only clue found so far. Rebooting the failed machine with an older kernel results in normal operation. Svnlite status /usr/src shows no plausible differences in the source trees. I'm thoroughly stumped and would be grateful for any hints. Thanks for reading, and any ideas, bob prohaska