Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: netbsd-9, boot, EFI and device tree
On Mon, Apr 26, 2021 at 01:40:25PM +0200, tlaronde%polynum.com@localhost wrote:
> On Sun, Apr 25, 2021 at 06:42:19PM +0200, Manuel Bouyer wrote:
> >
> > My problem is that I need a custom device tree (activate SPI2, more
> > devices on I2C2, and so on). For this I found that there is a
> > fdtfile variable in u-boot, that contains a dts file name which will
> > be loaded from /dts/ on the FAT. So this part is solved.
> >
> > The second issue (but not for this project) is that I need some
> > kernel command line parameters (console=xxx, root=yyy for example).
> > With u-boot loading netbsd.ub, I can set this in an u-boot variable.
> > But I don't know how to do this with the EFI second-stage boot loader.
>
> Setting via U-Boot the environment variable "bootargs" should do it. (I
> looked at the finger---the armv7 code---and not at the moon: the common
> efiboot code. The env is read.)
thanks, I confirm that it works. I did
setenv bootargs "-s"
in u-boot and the board did boot single user.
It would be nice if the fdtfile and bootargs variables were documented
somewhere
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index