Port-arm archive

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

EFI booting Banana Pi M1 (armv7)



Hi All,

I just installed NetBSD 9.1 on a sata drive attached to my Banana Pi M1.  I was using the NetBSD wiki to attempt to reroute the boot process from the sdcard image to the hard drive but it seems the wiki doesn't have the latest details for EFI booting.  I am going to try to modify my u-boot config on the sdcard to EFI boot the sata hard disk using the info provided by Markus and would be willing to update the wiki after I get things going.  (supposedly I need a kerberos login to provide input to the wiki?)  I expect the following to be the new flow:

1) u-boot 
  - preps and scans scsi for sata devices
  - loads bootarm.efi off sdcard (mmc dev)
  - runs bootarm.efi
2) bootarm.efi
  - reads efiboot.plist from sata boot partition
  - loads netbsd efi kernel from sata boot partition
  - launches netbsd efi kernel


Discussion history below:

Originally I posted the following to netbsd-users:
==================================================
I recently installed NetBSD 9.1 on my Banana Pi M1 but can't seem to get u-boot to like booting of the sata connected hard drive.  I followed the instructions at:  

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

using the pre-made sdcard image from:  

http://armbsd.org/arm/

and the original NetBSD wiki page pointed me to:

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

which probably needs to be updated to support the latest NetBSD.  I have a serial console attached and am able to mount the sdcard on another *BSD system to work on the filesystem if needed.
==================================================

Then I received a reply from Markus Kilbinger:
==================================================
on my cubietruck I had to add

  scsi reset
  scsi scan

at the beginning of "boot.cmd" (-> consecutively "boot.scr") to make
u-boot aware of its sata harddisk.
Alter that "bootarm.efi" (on the sdcard) was capable with an
appropriate "efiboot.plist" to boot "netbsd" of the sata harddisk (gpt
prepared).

See  http://mail-index.netbsd.org/port-arm/2019/03/31/msg005592.html

My "/etc/efiboot.plist" looks like:

<plist>
<dict>
        <key>environment-variables</key>
        <dict>
                <key>rootdev</key>
                <string>hd0b</string>
                <key>bootargs</key>
                <string>root=dk1</string>
        </dict>
</dict>
</plist>
==================================================

-- 
  George Morgan
  gmorgan%fastmail.fm@localhost


Home | Main Index | Thread Index | Old Index