Date: Wed, 9 Sep 2015 11:20:48 -0700 From: John-Mark Gurney <jmg@funkthat.com> To: freebsd-arm@freebsd.org Subject: Re: static device numbering on arm6/FreeBSD11 Message-ID: <20150909182048.GN33167@funkthat.com> In-Reply-To: <20150909152022.GA1025@potato.growveg.org>
index | next in thread | previous in thread | raw e-mail
John wrote this message on Wed, Sep 09, 2015 at 16:20 +0100:
> Hello list,
>
> On i386/amd64 the kernel line:
>
> options ATA_STATIC_ID # Static device numbering
>
> means that I can reference a da device in fstab which stays constant
> through reboots. Is there an equivalent line for the RPI2 kernel?
> I've looked but can't see it. At the moment, they keep swapping
> round.
To wire scsi devices, you can use hints as described in scsi(4)..
For example:
This assigns CAM bus 0 to the bus 1 instance on ahc1. Peripheral drivers
can be wired to a specific bus, target, and lun as so:
hint.da.0.at="scbus0"
hint.da.0.target="0"
hint.da.0.unit="0"
I've never tried this w/ USB disks though.
Though I will second the usage of gpt labels or glabels, those are
more reliable, and will stay them same even when you move disks
around, say in a hot swap enclosure...
Hope this helps..
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150909182048.GN33167>
