Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2019 09:22:09 +0100
From:      Balanga Bar <balanga.bar@gmail.com>
To:        Ian Lepore <ian@freebsd.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: loaderdev
Message-ID:  <CADocevC_M_kJ%2Btui5Ydx6yO0FK95qZGPdj848qb%2B5qDdRfieFw@mail.gmail.com>
In-Reply-To: <26ead64e0e79f5d8f9c882273142dc09d95417a7.camel@freebsd.org>
References:  <CADocevCdU6FwXVtJsTY54LTi6FHaqSAzLUZWaTw8QgEHs9v%2BSA@mail.gmail.com> <a0660f746d4634258fc24981887b166e7a84f90b.camel@freebsd.org> <CADocevCOY%2BkgKCg8mcjnKZ-HbuTKfBvmm8DTEnWEa2e505kQTw@mail.gmail.com> <26ead64e0e79f5d8f9c882273142dc09d95417a7.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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?CADocevC_M_kJ%2Btui5Ydx6yO0FK95qZGPdj848qb%2B5qDdRfieFw>