Skip to content

Commit

Permalink
proxyclient: Modify FreeBSD loader to use standard U-Boot bootefi cmd
Browse files Browse the repository at this point in the history
The FreeBSD script added in #185 required patching u-boot since it specified the
loader base/size in a non-standard way. This changes the way arguments are
passed to the bootefi command so it works with the asahi u-boot fork which I've
been using. I also changed the case where the loader isn't specified to have
u-boot boot from the nvme since I have that driver functional enough to have it
mount the root fs now.

Signed-off-by: Ayrton Munoz <a.munoz3327@gmail.com>
  • Loading branch information
ayrtonm committed Sep 26, 2024
1 parent 9d445d8 commit 22db120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxyclient/tools/freebsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@
if loader is not None:
# dtb_addr not used here, the prepared fdt's at a different location. If
# we use this one, we won't get any of our /chosen additions, for instance.
bootcmd = "distro_bootcmd=bootefi 0x%x - 0x%x" % (loader_base, loader_size)
bootcmd = "distro_bootcmd=bootefi 0x%x:0x%x" % (loader_base, loader_size)
else:
bootcmd = "distro_bootcmd=devnum=0; run usb_boot"
bootcmd = "distro_bootcmd=devnum=0; run nvme_boot"

if tty_dev is not None:
bootenv.append("baudrate=%d" % tty_dev.baudrate)
Expand Down

0 comments on commit 22db120

Please sign in to comment.