Bug#1028340: grub-ieee1275-bin: grub 2.06-7 faults on SPARC, 2.06-3 does not

Rich rincebrain at gmail.com
Tue Jan 10 03:54:24 GMT 2023


Followup:
Doing grub-install if the partition you install to isn't mounted at /boot
produces a nonworking image.
https://www.dropbox.com/s/74grf6t3hy5lp9t/disk%20diff.png?dl=0 is the diff
of the first few hundred lines of output from hexdump of a disk image that
booted (because it was at /boot) and didn't.

So that's neat.

- Rich


On Mon, Jan 9, 2023 at 12:45 PM Rich Ercolani <rincebrain at gmail.com> wrote:

> Package: grub-ieee1275-bin
> Version: 2.06-7
> Severity: normal
> X-Debbugs-Cc: rincebrain at gmail.com
>
> Dear Maintainer,
>
> I decided enough was enough and finally went to migrate my Netra T1 from
> SILO to GRUB.
>
> So I installed grub2 2.06-7, went through the motions, did grub-install
> --skip-fs-probe --force /dev/sdb1 (/boot - well, a copy of the contents of
> it mounted there for the moment, the actual one is /dev/sda1...),
> rebooted...
>
> Executing last command: boot
> Boot device: disk1  File and args:
> GRUB Illegal Instruction
> ok
>
> Cute. So after some tampering and blanking and redoing the disk, it still
> failed the same way.
>
> I have another SPARC that's booting from GRUB fine, so I stole the disk
> image from it and tried booting from that, worked great.
>
> Checked, that machine was using 2.06-3. So I grub-installed 2.06-7 again
> to confirm it broke the same way, grabbed 2.06-3 from snapshot.debian.org,
> installed it, and did the aforementioned grub-install dance...and it boots
> great.
>
> - Rich
>
> -- Package-specific info:
>
> *********************** BEGIN /proc/mounts
> /dev/mapper/ogami--vgnew-newroot / xfs
> rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
> /dev/sda1 /boot ext4 rw,relatime,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_sun
> insmod part_sun
> insmod lvm
> insmod xfs
> set
> root='lvmid/x0ezap-Oaqe-VVmf-PtRs-0aQk-hWN4-XJx5vi/Kqfrwr-7OFw-qaTA-R91O-6iLJ-lQDB-TToQaj'
> if [ x$feature_platform_search_hint = xy ]; then
>   search --no-floppy --fs-uuid --set=root
> --hint='lvmid/x0ezap-Oaqe-VVmf-PtRs-0aQk-hWN4-XJx5vi/Kqfrwr-7OFw-qaTA-R91O-6iLJ-lQDB-TToQaj'
> ef48c129-1368-4b94-b7a8-fc40302d2179
> else
>   search --no-floppy --fs-uuid --set=root
> ef48c129-1368-4b94-b7a8-fc40302d2179
> 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=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-ef48c129-1368-4b94-b7a8-fc40302d2179' {
>         load_video
>         insmod gzio
>         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
>         insmod part_sun
>         insmod ext2
>         set root='hd0,sun1'
>         if [ x$feature_platform_search_hint = xy ]; then
>           search --no-floppy --fs-uuid --set=root
> --hint-ieee1275='ieee1275//pci at 1f\,0/pci at 1\,1/scsi at 2/disk at 0\,0,sun1'
> --hint-bios=hd0,sun1 --hint-efi=hd0,sun1 --hint-baremetal=ahci0,sun1
> f8017784-364b-442c-943d-e19fb5d1b7e5
>         else
>           search --no-floppy --fs-uuid --set=root
> f8017784-364b-442c-943d-e19fb5d1b7e5
>         fi
>         echo    'Loading Linux 5.10.0-8-sparc64 ...'
>         linux   /vmlinux-5.10.0-8-sparc64
> root=/dev/mapper/ogami--vgnew-newroot ro  quiet
>         echo    'Loading initial ramdisk ...'
>         initrd  /initrd.img-5.10.0-8-sparc64
> }
> submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option
> 'gnulinux-advanced-ef48c129-1368-4b94-b7a8-fc40302d2179' {
>         menuentry 'Debian GNU/Linux, with Linux 5.10.0-8-sparc64' --class
> debian --class gnu-linux --class gnu --class os $menuentry_id_option
> 'gnulinux-5.10.0-8-sparc64-advanced-ef48c129-1368-4b94-b7a8-fc40302d2179' {
>                 load_video
>                 insmod gzio
>                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod
> lzopio; fi
>                 insmod part_sun
>                 insmod ext2
>                 set root='hd0,sun1'
>                 if [ x$feature_platform_search_hint = xy ]; then
>                   search --no-floppy --fs-uuid --set=root
> --hint-ieee1275='ieee1275//pci at 1f\,0/pci at 1\,1/scsi at 2/disk at 0\,0,sun1'
> --hint-bios=hd0,sun1 --hint-efi=hd0,sun1 --hint-baremetal=ahci0,sun1
> f8017784-364b-442c-943d-e19fb5d1b7e5
>                 else
>                   search --no-floppy --fs-uuid --set=root
> f8017784-364b-442c-943d-e19fb5d1b7e5
>                 fi
>                 echo    'Loading Linux 5.10.0-8-sparc64 ...'
>                 linux   /vmlinux-5.10.0-8-sparc64
> root=/dev/mapper/ogami--vgnew-newroot ro  quiet
>                 echo    'Loading initial ramdisk ...'
>                 initrd  /initrd.img-5.10.0-8-sparc64
>         }
>         menuentry 'Debian GNU/Linux, with Linux 5.10.0-8-sparc64 (recovery
> mode)' --class debian --class gnu-linux --class gnu --class os
> $menuentry_id_option
> 'gnulinux-5.10.0-8-sparc64-recovery-ef48c129-1368-4b94-b7a8-fc40302d2179' {
>                 load_video
>                 insmod gzio
>                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod
> lzopio; fi
>                 insmod part_sun
>                 insmod ext2
>                 set root='hd0,sun1'
>                 if [ x$feature_platform_search_hint = xy ]; then
>                   search --no-floppy --fs-uuid --set=root
> --hint-ieee1275='ieee1275//pci at 1f\,0/pci at 1\,1/scsi at 2/disk at 0\,0,sun1'
> --hint-bios=hd0,sun1 --hint-efi=hd0,sun1 --hint-baremetal=ahci0,sun1
> f8017784-364b-442c-943d-e19fb5d1b7e5
>                 else
>                   search --no-floppy --fs-uuid --set=root
> f8017784-364b-442c-943d-e19fb5d1b7e5
>                 fi
>                 echo    'Loading Linux 5.10.0-8-sparc64 ...'
>                 linux   /vmlinux-5.10.0-8-sparc64
> root=/dev/mapper/ogami--vgnew-newroot ro single
>                 echo    'Loading initial ramdisk ...'
>                 initrd  /initrd.img-5.10.0-8-sparc64
>         }
>         menuentry 'Debian GNU/Linux, with Linux 5.10.0-6-sparc64' --class
> debian --class gnu-linux --class gnu --class os $menuentry_id_option
> 'gnulinux-5.10.0-6-sparc64-advanced-ef48c129-1368-4b94-b7a8-fc40302d2179' {
>                 load_video
>                 insmod gzio
>                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod
> lzopio; fi
>                 insmod part_sun
>                 insmod ext2
>                 set root='hd0,sun1'
>                 if [ x$feature_platform_search_hint = xy ]; then
>                   search --no-floppy --fs-uuid --set=root
> --hint-ieee1275='ieee1275//pci at 1f\,0/pci at 1\,1/scsi at 2/disk at 0\,0,sun1'
> --hint-bios=hd0,sun1 --hint-efi=hd0,sun1 --hint-baremetal=ahci0,sun1
> f8017784-364b-442c-943d-e19fb5d1b7e5
>                 else
>                   search --no-floppy --fs-uuid --set=root
> f8017784-364b-442c-943d-e19fb5d1b7e5
>                 fi
>                 echo    'Loading Linux 5.10.0-6-sparc64 ...'
>                 linux   /vmlinux-5.10.0-6-sparc64
> root=/dev/mapper/ogami--vgnew-newroot ro  quiet
>                 echo    'Loading initial ramdisk ...'
>                 initrd  /initrd.img-5.10.0-6-sparc64
>         }
>         menuentry 'Debian GNU/Linux, with Linux 5.10.0-6-sparc64 (recovery
> mode)' --class debian --class gnu-linux --class gnu --class os
> $menuentry_id_option
> 'gnulinux-5.10.0-6-sparc64-recovery-ef48c129-1368-4b94-b7a8-fc40302d2179' {
>                 load_video
>                 insmod gzio
>                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod
> lzopio; fi
>                 insmod part_sun
>                 insmod ext2
>                 set root='hd0,sun1'
>                 if [ x$feature_platform_search_hint = xy ]; then
>                   search --no-floppy --fs-uuid --set=root
> --hint-ieee1275='ieee1275//pci at 1f\,0/pci at 1\,1/scsi at 2/disk at 0\,0,sun1'
> --hint-bios=hd0,sun1 --hint-efi=hd0,sun1 --hint-baremetal=ahci0,sun1
> f8017784-364b-442c-943d-e19fb5d1b7e5
>                 else
>                   search --no-floppy --fs-uuid --set=root
> f8017784-364b-442c-943d-e19fb5d1b7e5
>                 fi
>                 echo    'Loading Linux 5.10.0-6-sparc64 ...'
>                 linux   /vmlinux-5.10.0-6-sparc64
> root=/dev/mapper/ogami--vgnew-newroot ro single
>                 echo    'Loading initial ramdisk ...'
>                 initrd  /initrd.img-5.10.0-6-sparc64
>         }
> }
>
> ### 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 ###
> ### END /etc/grub.d/30_os-prober ###
>
> ### BEGIN /etc/grub.d/30_uefi-firmware ###
> ### 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
> Personalities : [raid6] [raid5] [raid4] [raid1]
> unused devices: <none>
> *********************** END /proc/mdstat
>
> *********************** BEGIN /dev/disk/by-id
> total 0
> lrwxrwxrwx 1 root root 10 Jan  9 12:19 dm-name-ogami--vgnew-newroot ->
> ../../dm-9
> lrwxrwxrwx 1 root root 10 Jan  9 12:19 dm-name-ogami--vgnew-swap_1 ->
> ../../dm-4
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> dm-uuid-LVM-x0ezapOaqeVVmfPtRs0aQkhWN4XJx5viKqfrwr7OFwqaTAR91O6iLJlQDBTToQaj
> -> ../../dm-9
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> dm-uuid-LVM-x0ezapOaqeVVmfPtRs0aQkhWN4XJx5virWMLJhbLPYhkPzE0KBKNZryZdCBhJaMk
> -> ../../dm-4
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> lvm-pv-uuid-3d3PVW-AjFH-BfNO-8lbN-jHCO-MhE9-DFjsgi -> ../../sda2
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> lvm-pv-uuid-dCcCg7-mPfk-GwcV-0FHv-Otnz-c7bS-PwgiNI -> ../../sdb2
> lrwxrwxrwx 1 root root  9 Jan  9 12:19
> scsi-SSEAGATE_ST373207LC_3KT07QSB00007527H004 -> ../../sdb
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> scsi-SSEAGATE_ST373207LC_3KT07QSB00007527H004-part1 -> ../../sdb1
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> scsi-SSEAGATE_ST373207LC_3KT07QSB00007527H004-part2 -> ../../sdb2
> lrwxrwxrwx 1 root root  9 Jan  9 12:19
> scsi-SSEAGATE_ST373207LC_3KT09ECN00007527EGPM -> ../../sda
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> scsi-SSEAGATE_ST373207LC_3KT09ECN00007527EGPM-part1 -> ../../sda1
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> scsi-SSEAGATE_ST373207LC_3KT09ECN00007527EGPM-part2 -> ../../sda2
> *********************** END /dev/disk/by-id
>
> *********************** BEGIN /dev/disk/by-uuid
> total 0
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> 152a2514-c571-4e87-894d-ff665280cb1a -> ../../dm-4
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> 51d78cab-29e4-46f8-ba88-e9e78446e6f7 -> ../../sdb1
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> ef48c129-1368-4b94-b7a8-fc40302d2179 -> ../../dm-9
> lrwxrwxrwx 1 root root 10 Jan  9 12:19
> f8017784-364b-442c-943d-e19fb5d1b7e5 -> ../../sda1
> *********************** END /dev/disk/by-uuid
>
> -- System Information:
> Debian Release: bookworm/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: sparc64
>
> Kernel: Linux 5.10.0-8-sparc64
> Kernel taint flags: TAINT_WARN, TAINT_UNSIGNED_MODULE
> 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)
> LSM: AppArmor: enabled
>
> Versions of packages grub-ieee1275-bin depends on:
> ii  grub-common  2.06-7
>
> grub-ieee1275-bin recommends no packages.
>
> grub-ieee1275-bin suggests no packages.
>
> -- no debconf information
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20230109/63de8059/attachment-0001.htm>


More information about the Pkg-grub-devel mailing list