Skip to content

Instantly share code, notes, and snippets.

@tstellanova
Last active July 20, 2023 19:12
Show Gist options
  • Save tstellanova/dea7593a7dfe4f48432a58cb007e7056 to your computer and use it in GitHub Desktop.
Save tstellanova/dea7593a7dfe4f48432a58cb007e7056 to your computer and use it in GitHub Desktop.
Installing and running grub on rock64 (rk3328) arm64

Starting with Rock64, u-boot installed to SPI flash, Debian stretch installed to eMMC or micro SD card.

Setup /boot

Add things like dtb and any images you want to eventually load with grub

install grub

From Debian:

sudo apt-get -y install grub2-common efivar grub-efi-arm64
sudo grub-install /dev/mmcblk1p6 --target arm64-efi

Should now have /boot/efi/debian/grubaa64.efi

grub boot

  • interrupt autoboot, drop into uboot command line
load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/debian/grubaa64.efi
load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} dtb
bootefi ${kernel_addr_r} ${fdt_addr_r}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment