Bug#969431: grub-efi-ia32: booting results in a 5 minute hang
Tino Schmidt
mailtinoshomepage at gmx.net
Wed Sep 2 19:31:51 BST 2020
Package: grub-efi-ia32-bin
Version: 2.02+dfsg1-20
Severity: normal
I've got a tablet based on Cherrytrail-Platform (Trekstor SurfTab twin 11.6) and installed grub on the internal flash drive (partitioned with GPT). When I select the boot entry in UEFI it hangs for 5 minutes before showing the menu of grub. An EFI-Loader from Windows, which is on the same partition, does not show this behavior.
I performed some tests to identify the problem:
- copied /boot/efi/debian/grubia32.efi to /EFI/Boot/bootia32.efi on a USB flash drive (partitioned in MBR-style) - result: no delay, booted immediately
- copied /boot/efi/debian/grubia32.efi to /boot/efi/Boot/bootia32.efi on internal flash - result: boot after 5 minute delay
- copied /boot/efi/debian/grubia32.efi to /boot/efi/Boot/Microsoft/bootmgfw.efi on internal flash - result: boot after 5 minute delay
- installed linux-image-686, booted into EFI-Shell and booted kernel directly via EFI stub - result: system freeze
- repartioned internal flash from GPT to MBR layout - result: boot after 5 minute delay
After a web search I found, that a hang in a UEFI application may trigger a timer to reset this application after five minutes by UEFI. I'm wondering if this is the case here. What can I do to further debug this issue?
Thanks,
Tino
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/mapper/tablet_luks / btrfs rw,noatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
/dev/mmcblk0p2 /boot ext3 rw,noatime 0 0
/dev/mmcblk0p1 /boot/efi vfat rw,noatime,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 btrfs
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 34c49bcb-67d9-4e53-8a49-724075c882f0
else
search --no-floppy --fs-uuid --set=root 34c49bcb-67d9-4e53-8a49-724075c882f0
fi
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=de_DE
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 ###
insmod btrfs
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 34c49bcb-67d9-4e53-8a49-724075c882f0
else
search --no-floppy --fs-uuid --set=root 34c49bcb-67d9-4e53-8a49-724075c882f0
fi
insmod png
if background_image /usr/share/desktop-base/futureprototype-theme/grub/grub-4x3.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### 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-34c49bcb-67d9-4e53-8a49-724075c882f0' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
else
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
fi
echo 'Linux 5.7.10 wird geladen …'
linux /vmlinuz-5.7.10 root=UUID=34c49bcb-67d9-4e53-8a49-724075c882f0 ro fbcon=rotate:2 quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /initrd.img-5.7.10
}
submenu 'Erweiterte Optionen für Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-34c49bcb-67d9-4e53-8a49-724075c882f0' {
menuentry 'Debian GNU/Linux, mit Linux 5.7.10' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.7.10-advanced-34c49bcb-67d9-4e53-8a49-724075c882f0' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
else
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
fi
echo 'Linux 5.7.10 wird geladen …'
linux /vmlinuz-5.7.10 root=UUID=34c49bcb-67d9-4e53-8a49-724075c882f0 ro fbcon=rotate:2 quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /initrd.img-5.7.10
}
menuentry 'Debian GNU/Linux, with Linux 5.7.10 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.7.10-recovery-34c49bcb-67d9-4e53-8a49-724075c882f0' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
else
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
fi
echo 'Linux 5.7.10 wird geladen …'
linux /vmlinuz-5.7.10 root=UUID=34c49bcb-67d9-4e53-8a49-724075c882f0 ro single
echo 'Initiale Ramdisk wird geladen …'
initrd /initrd.img-5.7.10
}
menuentry 'Debian GNU/Linux, mit Linux 4.19.132' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.132-advanced-34c49bcb-67d9-4e53-8a49-724075c882f0' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
else
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
fi
echo 'Linux 4.19.132 wird geladen …'
linux /vmlinuz-4.19.132 root=UUID=34c49bcb-67d9-4e53-8a49-724075c882f0 ro fbcon=rotate:2 quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /initrd.img-4.19.132
}
menuentry 'Debian GNU/Linux, with Linux 4.19.132 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.132-recovery-34c49bcb-67d9-4e53-8a49-724075c882f0' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
else
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
fi
echo 'Linux 4.19.132 wird geladen …'
linux /vmlinuz-4.19.132 root=UUID=34c49bcb-67d9-4e53-8a49-724075c882f0 ro single
echo 'Initiale Ramdisk wird geladen …'
initrd /initrd.img-4.19.132
}
menuentry 'Debian GNU/Linux, mit Linux 4.19.0-10-686' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-10-686-advanced-34c49bcb-67d9-4e53-8a49-724075c882f0' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
else
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
fi
echo 'Linux 4.19.0-10-686 wird geladen …'
linux /vmlinuz-4.19.0-10-686 root=UUID=34c49bcb-67d9-4e53-8a49-724075c882f0 ro fbcon=rotate:2 quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /initrd.img-4.19.0-10-686
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-10-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-10-686-recovery-34c49bcb-67d9-4e53-8a49-724075c882f0' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
else
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
fi
echo 'Linux 4.19.0-10-686 wird geladen …'
linux /vmlinuz-4.19.0-10-686 root=UUID=34c49bcb-67d9-4e53-8a49-724075c882f0 ro single
echo 'Initiale Ramdisk wird geladen …'
initrd /initrd.img-4.19.0-10-686
}
menuentry 'Debian GNU/Linux, mit Linux 4.19.0-9-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-9-amd64-advanced-34c49bcb-67d9-4e53-8a49-724075c882f0' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
else
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
fi
echo 'Linux 4.19.0-9-amd64 wird geladen …'
linux /vmlinuz-4.19.0-9-amd64 root=UUID=34c49bcb-67d9-4e53-8a49-724075c882f0 ro fbcon=rotate:2 quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /initrd.img-4.19.0-9-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-9-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-9-amd64-recovery-34c49bcb-67d9-4e53-8a49-724075c882f0' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
else
search --no-floppy --fs-uuid --set=root 720ab755-17f0-47b8-a893-f5f361ed17b5
fi
echo 'Linux 4.19.0-9-amd64 wird geladen …'
linux /vmlinuz-4.19.0-9-amd64 root=UUID=34c49bcb-67d9-4e53-8a49-724075c882f0 ro single
echo 'Initiale Ramdisk wird geladen …'
initrd /initrd.img-4.19.0-9-amd64
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (auf /dev/mmcblk0p1)' --class windows --class os $menuentry_id_option 'osprober-efi-481F-90AE' {
insmod part_msdos
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 481F-90AE
else
search --no-floppy --fs-uuid --set=root 481F-90AE
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### 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 /dev/disk/by-id
total 0
lrwxrwxrwx 1 root 0 10 Sep 2 20:12 dm-name-tablet_luks -> ../../dm-0
lrwxrwxrwx 1 root 0 10 Sep 2 20:12 dm-uuid-CRYPT-LUKS2-341587c05f51468c9748e2f7270ff6c0-tablet_luks -> ../../dm-0
lrwxrwxrwx 1 root 0 13 Sep 2 20:12 mmc-DF4032_0xc1d98a62 -> ../../mmcblk0
lrwxrwxrwx 1 root 0 15 Sep 2 20:12 mmc-DF4032_0xc1d98a62-part1 -> ../../mmcblk0p1
lrwxrwxrwx 1 root 0 15 Sep 2 20:12 mmc-DF4032_0xc1d98a62-part2 -> ../../mmcblk0p2
lrwxrwxrwx 1 root 0 15 Sep 2 20:12 mmc-DF4032_0xc1d98a62-part3 -> ../../mmcblk0p3
lrwxrwxrwx 1 root 0 15 Sep 2 20:12 mmc-DF4032_0xc1d98a62-part4 -> ../../mmcblk0p4
lrwxrwxrwx 1 root 0 9 Sep 2 20:22 usb-USB_Stick_2.0_ME-0:0 -> ../../sda
lrwxrwxrwx 1 root 0 10 Sep 2 20:22 usb-USB_Stick_2.0_ME-0:0-part1 -> ../../sda1
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root 0 15 Sep 2 20:12 341587c0-5f51-468c-9748-e2f7270ff6c0 -> ../../mmcblk0p4
lrwxrwxrwx 1 root 0 10 Sep 2 20:12 34c49bcb-67d9-4e53-8a49-724075c882f0 -> ../../dm-0
lrwxrwxrwx 1 root 0 15 Sep 2 20:12 481F-90AE -> ../../mmcblk0p1
lrwxrwxrwx 1 root 0 10 Sep 2 20:22 71BE-9A9A -> ../../sda1
lrwxrwxrwx 1 root 0 15 Sep 2 20:12 720ab755-17f0-47b8-a893-f5f361ed17b5 -> ../../mmcblk0p2
lrwxrwxrwx 1 root 0 15 Sep 2 20:12 978bc090-7697-4004-9ea7-16dbca471799 -> ../../mmcblk0p3
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: 10.4
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.132 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_CRAP, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages grub-efi-ia32-bin depends on:
ii grub-common 2.02+dfsg1-20
Versions of packages grub-efi-ia32-bin recommends:
ii efibootmgr 15-1
pn grub-efi-ia32-signed <none>
grub-efi-ia32-bin suggests no packages.
-- no debconf information
More information about the Pkg-grub-devel
mailing list