Package: grub-ieee1275
Version: 1.99~rc1-1
Severity: important

This is basically the follow-up bug to http://bugs.debian.org/560823

When booting grub, before the menu is displayed, it runs out of memory
(even though my UltraSparc has 1 GB of RAM) and then causes (probably as
follow-up error) an illegal instruction.

Manually transcribed output:

GRUB Loading kernel..
Welcome to GRUB!

Can't read disk label.
Can't open disk label package
Can't read disk label.
Can't open disk label package
Can't read disk label.
Can't open disk label package
Can't read disk label.
Can't open disk label package
Can't read disk label.
Can't open disk label package
Can't read disk label.
Can't open disk label package
Can't read disk label.
Can't open disk label package
Can't read disk label.
Can't open disk label package
error: out of memory.
Illegal Instruction
ok 

On my friend's UltraSPARC 10 (with a different graphics adapter, 512 MB)
the "Can't read disk label. // Can't open disk label package" message
combo shows up only four times compared to eight times on my box. I
somehow suspect the amount of RAM (1 GB and 512 MB) to correlate with
the number of error messages (8 and 4) before the out of memory
condition.

I got the machine back to boot properly by using Vladimir's installation
of upstream's trunk version in /usr/local/. But also that version runs
into this out of memory condition if I use the grub.cfg generated from
the Debian package. Only if I use the hinting feature (which currently
is only in trunk IIRC) to direct grub more quickly towards the proper
root device, then it does not run into this out of memory and
boots the system.

I attached both grub.cfg files, the one generated with the debian
package's tools and the one generated with the trunk version of
upstream's tools.

-- Package-specific info:
*********************** WARNING grub-setup left core.img in filesystem

*********************** BEGIN /proc/mounts
/dev/mapper/vg0-root / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /boot ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vg0-home /home ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vg0-tmp /tmp ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vg0-usr /usr ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vg0-var /var ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(floppy)        /dev/fd0
(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0)   /dev/disk/by-id/ata-TS9321A0_B70V08KC
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg.debian
#
# 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
  load_env
fi
set default="0"
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 {
true
}

insmod lvm
insmod part_sun
insmod ext2
set root='(vg0-usr)'
search --no-floppy --fs-uuid --set=root 49d242fd-f885-4059-b7a4-4aac2e6cd9a9
if loadfont /share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_sun
insmod ext2
set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
search --no-floppy --fs-uuid --set=root 842411ca-fed2-427c-8120-e0deb03c634c
set locale_dir=($root)/grub/locale
set lang=en_US
insmod gettext
set timeout=5
### 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 ###
menuentry 'Debian GNU/Linux, with Linux 2.6.37-trunk-sparc64' --class debian 
--class gnu-linux --class gnu --class os {
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.37-trunk-sparc64 ...'
        linux   /vmlinuz-2.6.37-trunk-sparc64 root=/dev/mapper/vg0-root ro  
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.37-trunk-sparc64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-trunk-sparc64 (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os {
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.37-trunk-sparc64 ...'
        linux   /vmlinuz-2.6.37-trunk-sparc64 root=/dev/mapper/vg0-root ro 
single 
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.37-trunk-sparc64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-trunk-sparc64' --class debian 
--class gnu-linux --class gnu --class os {
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.36-trunk-sparc64 ...'
        linux   /vmlinuz-2.6.36-trunk-sparc64 root=/dev/mapper/vg0-root ro  
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.36-trunk-sparc64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-trunk-sparc64 (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os {
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.36-trunk-sparc64 ...'
        linux   /vmlinuz-2.6.36-trunk-sparc64 root=/dev/mapper/vg0-root ro 
single 
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.36-trunk-sparc64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-sparc64' --class debian 
--class gnu-linux --class gnu --class os {
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.32-5-sparc64 ...'
        linux   /vmlinuz-2.6.32-5-sparc64 root=/dev/mapper/vg0-root ro  
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-5-sparc64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-sparc64 (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os {
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.32-5-sparc64 ...'
        linux   /vmlinuz-2.6.32-5-sparc64 root=/dev/mapper/vg0-root ro single 
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-5-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/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  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg.debian

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

### BEGIN /usr/local/etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
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 {
true
}

insmod part_sun
insmod ext2
set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
search --no-floppy --fs-uuid --set=root --hint=${root} 
842411ca-fed2-427c-8120-e0deb03c634c
set locale_dir=($root)/grub/locale
set lang=
insmod gettext
set timeout=5
### END /usr/local/etc/grub.d/00_header ###

### BEGIN /usr/local/etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.37-trunk-sparc64' --class debian 
--class gnu-linux --class gnu --class os {
        load_video
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root --hint=${root} 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.37-trunk-sparc64 ...'
        linux   /vmlinuz-2.6.37-trunk-sparc64 root=/dev/mapper/vg0-root ro 
video=atyfb:off 
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.37-trunk-sparc64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.37-trunk-sparc64 (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root --hint=${root} 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.37-trunk-sparc64 ...'
        linux   /vmlinuz-2.6.37-trunk-sparc64 root=/dev/mapper/vg0-root ro 
single video=atyfb:off
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.37-trunk-sparc64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-trunk-sparc64' --class debian 
--class gnu-linux --class gnu --class os {
        load_video
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root --hint=${root} 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.36-trunk-sparc64 ...'
        linux   /vmlinuz-2.6.36-trunk-sparc64 root=/dev/mapper/vg0-root ro 
video=atyfb:off 
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.36-trunk-sparc64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-trunk-sparc64 (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root --hint=${root} 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.36-trunk-sparc64 ...'
        linux   /vmlinuz-2.6.36-trunk-sparc64 root=/dev/mapper/vg0-root ro 
single video=atyfb:off
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.36-trunk-sparc64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-sparc64' --class debian 
--class gnu-linux --class gnu --class os {
        load_video
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root --hint=${root} 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.32-5-sparc64 ...'
        linux   /vmlinuz-2.6.32-5-sparc64 root=/dev/mapper/vg0-root ro 
video=atyfb:off 
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-5-sparc64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-sparc64 (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod part_sun
        insmod ext2
        set root='(/pci@1f\,0/pci@1\,1/ide@3/disk@0\,0,sun1)'
        search --no-floppy --fs-uuid --set=root --hint=${root} 
842411ca-fed2-427c-8120-e0deb03c634c
        echo    'Loading Linux 2.6.32-5-sparc64 ...'
        linux   /vmlinuz-2.6.32-5-sparc64 root=/dev/mapper/vg0-root ro single 
video=atyfb:off
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-5-sparc64
}
### END /usr/local/etc/grub.d/10_linux ###

### BEGIN /usr/local/etc/grub.d/20_linux_xen ###
### END /usr/local/etc/grub.d/20_linux_xen ###

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

### BEGIN /usr/local/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 /usr/local/etc/grub.d/40_custom ###

### BEGIN /usr/local/etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /usr/local/etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg.upstream-trunk
-- System Information:
Debian Release: 6.0
Architecture: sparc (sparc64)

Kernel: Linux 2.6.32-5-sparc64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-ieee1275 depends on:
ii  debconf [debconf-2.0]        1.5.38      Debian configuration management sy
ii  grub-common                  1.99~rc1-1  GRand Unified Bootloader, version 
ii  libc6                        2.11.2-8    Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1           2:1.02.48-4 The Linux Kernel Device Mapper use
ii  ucf                          3.0025+nmu1 Update Configuration File: preserv

grub-ieee1275 recommends no packages.

Versions of packages grub-ieee1275 suggests:
ii  os-prober                     1.42       utility to detect other OSes on a 

-- debconf information:
  grub2/kfreebsd_cmdline:
* grub2/device_map_regenerated:
* grub2/linux_cmdline:
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default:

Reply via email to