Date: Thu, 25 Apr 2019 16:50:38 +0100 From: Balanga Bar <balanga.bar@gmail.com> To: Ian Lepore <ian@freebsd.org> Cc: freebsd-arm@freebsd.org Subject: Re: loaderdev Message-ID: <CADocevAmNnyX4bsWNmus21SZ0V43%2BK9XXgGtjO7cT5o-Jpdmog@mail.gmail.com> In-Reply-To: <CADocevC_M_kJ%2Btui5Ydx6yO0FK95qZGPdj848qb%2B5qDdRfieFw@mail.gmail.com> References: <CADocevCdU6FwXVtJsTY54LTi6FHaqSAzLUZWaTw8QgEHs9v%2BSA@mail.gmail.com> <a0660f746d4634258fc24981887b166e7a84f90b.camel@freebsd.org> <CADocevCOY%2BkgKCg8mcjnKZ-HbuTKfBvmm8DTEnWEa2e505kQTw@mail.gmail.com> <26ead64e0e79f5d8f9c882273142dc09d95417a7.camel@freebsd.org> <CADocevC_M_kJ%2Btui5Ydx6yO0FK95qZGPdj848qb%2B5qDdRfieFw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Is it possible to used loaderdev or uEnv.txt to boot different versions of FreeBSD from different slices, ie /dev/da0s2 /dev/da0s3 etc. I'm trying to compare different builds and having them all on one USB stick would be convenient. On Sat, Apr 20, 2019 at 9:22 AM Balanga Bar <balanga.bar@gmail.com> wrote: > I wondered about FreeBSD being able to access uBoot environment > variables... fw_printenv and fw_setenv are available on Linux, so are > equivalent programs available on FreeBSD? > > On Thu, Apr 18, 2019 at 3:25 PM Ian Lepore <ian@freebsd.org> wrote: > >> On Thu, 2019-04-18 at 09:30 +0100, Balanga Bar wrote: >> > How does uBoot know how to load ubldr? Is this specific to a particular >> > version of uBoot? I'm using a customised uBoot which lets me boot >> OpenWrt, >> > Debian, Arch Linux or FreeBSD depending on the contents of a USB stick. >> > >> > Currently I have a /boot/uEnv.txt file on a FAT partition which includes >> > >> > bootfile=ubldr >> > >> > Will I no longer need a FAT partition? >> > >> > If loaderdev is set to disk, then where is ubldr loaded from since, >> AFAIK, >> > uBoot can only read FAT or EXT3 partitions? >> > >> >> The convention for freebsd mailing lists is to bottom-post replies, >> mixed top and bottom posting makes for unreadable threads. >> >> The loaderdev variable is not used by uboot at all, it is read from the >> uboot environment by ubldr. Basically, loaderdev just gives you a way >> to control where ubldr finds the kernel by setting a uboot env var >> (interactively or via uenv.txt). >> >> You arrange to have uboot load ubldr in whatever way you're currently >> doing, so you will still need a FAT partition, because uboot can't read >> UFS filesystems. >> >> -- Ian >> >>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADocevAmNnyX4bsWNmus21SZ0V43%2BK9XXgGtjO7cT5o-Jpdmog>