Bug#1135731: does not boot on raspberry pi 4 (grub_memcpy not found)

Marc Haber mh+debian-bugs at zugschlus.de
Tue May 5 11:05:00 BST 2026


Package: grub-efi-arm64
Version: 2.14-2
Severity: normal
X-Debbugs-Cc: mh+debian-bugs at zugschlus.de

Hi,

I'm running Debian unstable on a Raspberry PI 4. The firmwware loads
u-boot, u-boot loads grub-efi-arm64, grub-efi-arm64 drops me on a grub
rescue shell with "error: symbol `grub_memcpy' not found.". Going back
to grub-efi 2.12-9+deb13u1 from trixie works without other changes to
the system.

The information given below originates from the system after doing the
downgrade.

Boot log on bottom.

Greetings
Marc


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mmcblk0p2 / ext4 rw,relatime 0 0
/dev/mmcblk0p1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/mmcblk0p1 /boot/firmware vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 56153c4f-9493-4a93-a209-58c2135f5711
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-56153c4f-9493-4a93-a209-58c2135f5711' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	search --no-floppy --fs-uuid --set=root 56153c4f-9493-4a93-a209-58c2135f5711
	echo	'Loading Linux 7.0.3+deb14-arm64 ...'
	linux	/boot/vmlinuz-7.0.3+deb14-arm64 root=UUID=56153c4f-9493-4a93-a209-58c2135f5711 ro  
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-7.0.3+deb14-arm64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-56153c4f-9493-4a93-a209-58c2135f5711' {
	menuentry 'Debian GNU/Linux, with Linux 7.0.3+deb14-arm64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-7.0.3+deb14-arm64-advanced-56153c4f-9493-4a93-a209-58c2135f5711' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 56153c4f-9493-4a93-a209-58c2135f5711
		echo	'Loading Linux 7.0.3+deb14-arm64 ...'
		linux	/boot/vmlinuz-7.0.3+deb14-arm64 root=UUID=56153c4f-9493-4a93-a209-58c2135f5711 ro  
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-7.0.3+deb14-arm64
	}
	menuentry 'Debian GNU/Linux, with Linux 7.0.3+deb14-arm64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-7.0.3+deb14-arm64-recovery-56153c4f-9493-4a93-a209-58c2135f5711' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 56153c4f-9493-4a93-a209-58c2135f5711
		echo	'Loading Linux 7.0.3+deb14-arm64 ...'
		linux	/boot/vmlinuz-7.0.3+deb14-arm64 root=UUID=56153c4f-9493-4a93-a209-58c2135f5711 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-7.0.3+deb14-arm64
	}
	menuentry 'Debian GNU/Linux, with Linux 6.12.38+deb13-arm64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.12.38+deb13-arm64-advanced-56153c4f-9493-4a93-a209-58c2135f5711' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 56153c4f-9493-4a93-a209-58c2135f5711
		echo	'Loading Linux 6.12.38+deb13-arm64 ...'
		linux	/boot/vmlinuz-6.12.38+deb13-arm64 root=UUID=56153c4f-9493-4a93-a209-58c2135f5711 ro  
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.12.38+deb13-arm64
	}
	menuentry 'Debian GNU/Linux, with Linux 6.12.38+deb13-arm64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.12.38+deb13-arm64-recovery-56153c4f-9493-4a93-a209-58c2135f5711' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 56153c4f-9493-4a93-a209-58c2135f5711
		echo	'Loading Linux 6.12.38+deb13-arm64 ...'
		linux	/boot/vmlinuz-6.12.38+deb13-arm64 root=UUID=56153c4f-9493-4a93-a209-58c2135f5711 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.12.38+deb13-arm64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
	fwsetup --is-supported
	if [ "$?" = 0 ]; then
		menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
			fwsetup
		}
	fi
fi
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN LVM
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 13 Jan  1  1970 mmc-USD00_0x35833d2f -> ../../mmcblk0
lrwxrwxrwx 1 root root 15 Jan  1  1970 mmc-USD00_0x35833d2f-part1 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 15 Jan  1  1970 mmc-USD00_0x35833d2f-part2 -> ../../mmcblk0p2
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 15 Jan  1  1970 420D-0F16 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 15 Jan  1  1970 56153c4f-9493-4a93-a209-58c2135f5711 -> ../../mmcblk0p2
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: arm64 (aarch64)

Kernel: Linux 7.0.3+deb14-arm64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub-efi-arm64 depends on:
ii  debconf [debconf-2.0]  1.5.92
ii  grub-efi-arm64-bin     2.12-9+deb13u1
ii  grub2-common           2.12-9+deb13u1
ii  ucf                    3.0053

grub-efi-arm64 recommends no packages.

grub-efi-arm64 suggests no packages.

-- debconf information:
  grub2/kfreebsd_cmdline_default: quiet
  grub2/enable_os_prober: false
  grub2/linux_cmdline_default:
  grub2/linux_cmdline:
  grub2/update_nvram: true
  grub2/kfreebsd_cmdline:
  grub2/force_efi_extra_removable: false

boot log:
MESS:00:00:04.990110:0: 'console=ttyS1,115200n8 root=/dev/mmcblk0p2 rw fsck.repair=yes net.ifnames=0  rootwait'
MESS:00:00:05.093349:0: brfs: File read: 88 bytes
MESS:00:00:05.192238:0: brfs: File read: /mfs/sd/u-boot.bin
MESS:00:00:05.194704:0: Loaded 'u-boot.bin' to 0x200000 size 0xa6518
MESS:00:00:05.201556:0: Kernel relocated to 0x80000
MESS:00:00:05.205375:0: Device tree loaded to 0x2eff6000 (size 0x9ffb)
MESS:00:00:05.213941:0: uart: Set PL011 baud rate to 103448.300000 Hz
MESS:00:00:05.220704:0: uart: Baud rate change done...
MESS:00:00:05.222723:0:

U-Boot 2025.01-3 (Apr 08 2025 - 23:07:41 +0000)

DRAM:  948 MiB (effective 1.9 GiB)
RPI 4 Model B (0xb03115)
Core:  177 devices, 17 uclasses, devicetree: board
MMC:   mmc at 7e300000: 0, mmc at 7e340000: 1
Loading Environment from FAT... Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
In:    serial,usbkbd
Out:   serial,vidconsole
Err:   serial,vidconsole
Net:   eth0: ethernet at 7d580000

PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus usb at 7e980000: USB DWC2
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus usb at 7e980000 for devices... 1 USB Device(s) found
scanning bus xhci_pci for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0·
Card did not respond to voltage select! : -110
Cannot persist EFI variables without system partition
** Booting bootflow '<NULL>' with efi_mgr
Booting: mmc 1
error: symbol `grub_memcpy' not found.
grub rescue>·


More information about the Pkg-grub-devel mailing list