Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 2020 15:07:56 -0700
From:      bob prohaska <fbsd@www.zefox.net>
To:        Jonathan Chen <jonc@chen.org.nz>
Cc:        freebsd-arm@freebsd.org, bob prohaska <fbsd@www.zefox.net>
Subject:   Re: Booting from USB on RPi3
Message-ID:  <20200420220756.GC94315@www.zefox.net>
In-Reply-To: <CAJuc1zPzseM4Ez5ixk6LHiVvnXXBZgbxH9Rh2TvJn-qxADJuvg@mail.gmail.com>
References:  <20200420172512.GA94315@www.zefox.net> <CAJuc1zPzseM4Ez5ixk6LHiVvnXXBZgbxH9Rh2TvJn-qxADJuvg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 21, 2020 at 07:31:40AM +1200, Jonathan Chen wrote:
> 
> This is how I got my RPI3 running 12-STABLE to boot off USB. It does
> require a microSD card with u-boot, and the loader.efi built sometime
> after Sep 2019 though. However, my root-filesystem (and swap) lives on
> an external USB drive.
> 
> 1. Copy the loader.efi to EFI/BOOT/bootaa64.efi
> 
> 2. Create a text file: EFI/FreeBSD/loader.env, this file contains a
> one-line directive to loader(8) on where to find a kernel to boot.
> Mine contains:
>   rootdev=disk1p1:
> The disk entry should be the same as what loader(8) expects with your
> USB disk setup. Mine has a GPT partitioning scheme, with the root-fs
> on partition-1.
> 
> 3. All /etc/fstab entries should use symbolic name entries instead of da0*. eg:
> 7:27am# cat /etc/fstab
> # Device                Mountpoint      FStype  Options         Dump    Pass#
> /dev/gpt/topaz-root     /               ufs     rw              1       1
> /dev/gpt/topaz-swap     none            swap    sw              0       0
> 
> Hope this helps.
> -- 

Where is the kernel loading from? I gather it's been long-time
practice to load the kernel from microSD and then mount the USB
device as root; it that what you're doing? It appears that using
usbboot (correctly!) would eliminate that extra step.

Thanks for writing!

bob prohaska




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