Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 2009 12:27:29 -0500
From:      Robert Noland <rnoland@FreeBSD.org>
To:        "Paul B. Mahol" <onemda@gmail.com>
Cc:        freebsd-current@freebsd.org, Nenhum_de_Nos <matheus@eternamente.info>, Andrew Thompson <thompsa@freebsd.org>
Subject:   Re: Booting from usb hard disk
Message-ID:  <1238434049.8491.339.camel@balrog.2hip.net>
In-Reply-To: <3a142e750903301003o27369595gaee12b5f8232ac6@mail.gmail.com>
References:  <1237804575.1771.7.camel@balrog.2hip.net> <fd2392216bb33e5b66f8fe79459e45e2.squirrel@cygnus.homeunix.com> <1237884572.1771.28.camel@balrog.2hip.net> <20090330061036.GA83528@citylink.fud.org.nz> <3a142e750903300804r75d6ef81kae69cdfdb618b719@mail.gmail.com> <20090330162553.GA44858@citylink.fud.org.nz> <3a142e750903301003o27369595gaee12b5f8232ac6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-IPDIFVlzZgeJdvEDT0Xi
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2009-03-30 at 18:03 +0100, Paul B. Mahol wrote:
> On 3/30/09, Andrew Thompson <thompsa@freebsd.org> wrote:
> > On Mon, Mar 30, 2009 at 04:04:17PM +0100, Paul B. Mahol wrote:
> >> On 3/30/09, Andrew Thompson <thompsa@freebsd.org> wrote:
> >> > On Tue, Mar 24, 2009 at 03:49:32AM -0500, Robert Noland wrote:
> >> >> On Mon, 2009-03-23 at 19:40 -0300, Nenhum_de_Nos wrote:
> >> >> >
> >> >> > I had problem a while ago with via mini itx hardware, that was qu=
ite
> >> >> > close. If I try boot from usb (installed in usb hdd), I get to th=
e
> >> >> > point
> >> >> > of loader not finding my disk.
> >> >> >
> >> >> > I then used a small flash disk attached to the ata (44 pin ide)
> >> >> > channel
> >> >> > and formatted /boot in there. this way I get to the point of moun=
t
> >> >> > root
> >> >> > you said, and da0 not being alive soon enough to mount root. list
> >> >> > disks
> >> >> > also couldn't find da0 though.
> >> >> >
> >> >> > I tried current from that time, and no good.
> >> >> >
> >> >> > if this is solved, I'll be happy to try whatever patch to current=
.
> >> >> > (as
> >> >> > long as I can install it from another box/or its ata channel, as =
it
> >> >> > can't
> >> >> > boot vanilla 7.1R)
> >> >>
> >> >> So, my solution was to set kern.cam.scsi_delay=3D10000
> >> >> in /boot/loader.conf
> >> >
> >> > The following patch should work. It creates interleaving root hold
> >> > tokens from the CAM probe to disk_create and geom providor tasting.
> >> > I had to add a malloc type flag as sleeping isnt allowed at the poin=
t I
> >> > added the token alloc in CAM.
> >> >
> >> > http://people.freebsd.org/~thompsa/root_wait.diff
> >>
> >> Hmm, this is supposed to fix issue when trying to boot from usb disk
> >> with UP kernel?
> >
> > This is to address the issue where the usb disk hasnt been attached by
> > the time the root filesystem is mounted. ie, you are booting from usb.
> >
> > If your problem is different then please say.
>=20
> On SMP booting from usb works (kern.cam.scsi_delay=3D2000), da0 will appe=
ar
> after user is asked to enter root mount point, and pressing ? will show
> ufs:da0s1a. On UP it doesnt work, ufs:da0s1a is not available.
> I thought it may be related to scsi_delay but increasing it was not
> solution.

scsi_delay=3D10000 was working for me on UP, haven't gotten the new patch
tested yet though.

robert.

--=20
Robert Noland <rnoland@FreeBSD.org>
FreeBSD

--=-IPDIFVlzZgeJdvEDT0Xi
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEABECAAYFAknRAQEACgkQM4TrQ4qfRONe4gCfcg6mtWAKgeyqvPGvw4cEuhMy
JHIAnj73fJc9SupyqeBfPRsrOrcNWSPE
=439+
-----END PGP SIGNATURE-----

--=-IPDIFVlzZgeJdvEDT0Xi--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1238434049.8491.339.camel>