NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: u-boot banana pi armv7



On Wed, Jan 20, 2021, at 11:41 PM, Markus Kilbinger wrote:
> Am Do., 21. Jan. 2021 um 07:13 Uhr schrieb George Morgan <gmorgan%fastmail.fm@localhost>:
> >
> > Ok, I finally found the right incantation to boot Netbsd-9.1 on my banana pi sata disk but haven't figured out how to make it run automatically yet:
> >
> > 1) Grab a pre-built armv7.img (u-boot and mini-root) from http://www.armbsd.org/arm/
> > 2) Write it to my sdcard
> >
> > Via serial console, interrupt u-boot and run the following u-boot commands:
> >
> > scsi scan
> > scsi dev 0
> > fatload scsi 0:1 $fdt_addr_r dtb/$fdtfile
> > fatload scsi 0:1 $kernel_addr_r EFI/boot/bootarm.efi
> > bootefi $kernel_addr_r $fdt_addr_r
> >
> > [Interrupt EFI boot]
> >
> > boot hd0a:netbsd
> > ================================
> > So, I can make a boot.scr with the u-boot commands and put it on /dev/ld0e (msdos boot partition on sdcard), but I don't know how to tell bootarm.efi to find netbsd on hd0a.  I assume I need to set some environment variable or pass more args to the bootefi command???  I feel like I'm really close now.
> 
> At this point (for bootarm.efi)
> 
>   /etc/efiboot.plist
> 
> or
> 
>   boot.cfg   (for newer bootarm.efi's)
> 
> are the places to deposit (additional) boot info / menu for it.
> 
> Regards, Markus
>

Hi Markus,

On which device / filesystem does the efiboot.plist or boot.cfg need to be created on?  I have the following options:

1) ld0a (mmc ffs root)
2) ld0e (mmc fat boot)
3) wd0a (sata ffs root)
4) wd0e (sata fat boot)

I saw your notes on the content of the elfboot.plist file but do not recognize the dk1 device. (wish I could find the documentation on the possible contents of these files)  Oh...looks like dk* is for a GPT disk...my disk is currently MBR I believe (partitioned by following the NetBSD 8.0 evbarm-earmv7hf sysinst instructions here):

https://wiki.netbsd.org/ports/evbarm/install_using_sysinst/

Again, thanks for the hints.

George



Home | Main Index | Thread Index | Old Index