From owner-freebsd-questions@FreeBSD.ORG Wed Sep 16 00:37:21 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6EE81065672 for ; Wed, 16 Sep 2009 00:37:21 +0000 (UTC) (envelope-from sweetnavelorange@gmail.com) Received: from mail-ew0-f208.google.com (mail-ew0-f208.google.com [209.85.219.208]) by mx1.freebsd.org (Postfix) with ESMTP id 743CB8FC08 for ; Wed, 16 Sep 2009 00:37:21 +0000 (UTC) Received: by ewy4 with SMTP id 4so4612410ewy.36 for ; Tue, 15 Sep 2009 17:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=Y9cH/Y3z/0EuRPRPg8dJz4VdFuIVTCaLsu11lKShexs=; b=JeItBo0QgCzARoB1bU4RAQkmyhozmgMoEBhiNlTh6ZZGDNbegS9qalfdrg2T16Dhs4 Luz4I1FmJGO8/T1ptNFbR/P088FPhOkvW+Az7Vot6P8aIt/L5rPgzdTh9tGCIVp3dRkq dxS1gH/rzEVKC47J249tW/Og9oT6W9spvTFGk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=iZsKjbQ15F44egSpnK+YWNar6nDyaOnN9uJfrk2VWTwAUmBPF8ftS3rSlXMGjixBa5 zOQdEahggxIz4/r4qXevQlhRqnCC+SZPZLVHmLGP7KLeyTpPodpbdB7EYTTepNpQSYAi r/+PFiNj11gYFG/P7WbaHat+8yrkfyVfGl4aY= MIME-Version: 1.0 Received: by 10.216.87.131 with SMTP id y3mr2226796wee.9.1253060192218; Tue, 15 Sep 2009 17:16:32 -0700 (PDT) Date: Wed, 16 Sep 2009 12:16:32 +1200 Message-ID: From: James Butler To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Can't boot Marvel Sheevaplug from USB X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2009 00:37:22 -0000 > Hi everyone, > > I'm also playing with a Sheevaplug and I'm running into the same problem > as reported =C2=A0by Rafal Jaworowski, but I think I have a clearer pictu= re > of what goes wrong. > > To recap, the kernel fails to mount the root filesystem because the > partition on the USB stick isn't recognized by the kernel: > > FreeBSD 9.0-CURRENT #4: Mon Sep 14 19:57:10 CEST 2009 > -- blablabla -- > ugen0.1: at usbus0 > uhub0: on usbus= 0 > uhub0: 1 port with 1 removable, self powered > Root mount waiting for: usbus0 > ugen0.2: at usbus0 > umass0: 2> on usbus0 > umass0: =C2=A0SCSI over Bulk-Only; quirks =3D 0x0000 > Root mount waiting for: usbus0 > umass0:0:0:-1: Attached to scbus0 > Trying to mount root from ufs:/dev/da0s1a > ROOT MOUNT ERROR: > > I think the problem is that the partition is detected only after the USB > bus has been scanned. If I configure a kernel to boot from the network > instead, it does recognize the USB device because of the additional > delay involved in booting from the network: > > FreeBSD 9.0-CURRENT #5: Mon Sep 14 20:45:30 CEST 2009 > -- blablabla -- > ugen0.1: at usbus0 > uhub0: on usbus= 0 > uhub0: 1 port with 1 removable, self powered > mge0: link state changed to UP > Received DHCP Offer packet on mge0 from 130.89.1.145 via 130.89.160.4 > (accepted) (no root path) > Received DHCP Offer packet on mge0 from 130.89.1.144 via 130.89.160.5 > (ignored) (no root path) > ugen0.2: at usbus0 > umass0: 2> on usbus0 > umass0: =C2=A0SCSI over Bulk-Only; quirks =3D 0x0000 > umass0:0:0:-1: Attached to scbus0 > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition > (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have > changed > (probe0:umass-sim0:0:0:0): (probe0:umass-sim0:0:0:0): TEST UNIT READY. > CDB: 0 0 0 0 0 0 > (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have > changed > Retrying Command (per Sense Data) > (probe0:umass-sim0:0:0:0): Retrying Command > pass0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > pass0: < USB Flash Memory 1.00> Removable Direct Access SCSI-2 device > pass0: Serial Number 0612140557130 > pass0: 40.000MB/s transfers > GEOM: new disk da0 > da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > da0: < USB Flash Memory 1.00> Removable Direct Access SCSI-2 device > da0: Serial Number 0612140557130 > da0: 40.000MB/s transfers > da0: 962MB (1971200 512 byte sectors: 64H 32S/T 962C) > > Of course with the kernel configured like this, the kernel wants to > mount the root filesystem from NFS and I can't break into the mountroot> > prompt! > > It seems that the kernel assumes that it only needs to wait for the USB > bus to finish scanning and then expects the root partition to be > available, but apparently partitions can be detected after that. > > Does anyone have a suggestion how to deal with this? Is there a way to > insert a delay before trying to mount root? (I tried setting SCSI_DELAY > to 5000 but this didn't seem to have any effect -- I didn't notice any > delay. Maybe this isn't supported for the ARM architecture?) > > Kind regards, > Maks Verver. > Sounds similar to: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D138798 Apparently Scott Long is working on a fix. -James Butler