Bug#823955: grub-uboot: crashed during load from U-Boot (Exynos 5422)

Steinar H. Gunderson sesse at debian.org
Tue May 10 17:36:06 UTC 2016


Package: grub-uboot
Version: 2.02~beta2-36
Severity: important

Hi,

I have an ODROID XU4 (Exynos 5422-based), and I want to run GRUB
(chainloaded from U-Boot). I've been generally following the
instructions on

  https://wiki.linaro.org/LEG/Engineering/Kernel/GRUBonUBOOT

In particular, I've run grub-install --boot-directory=/fatboot
(which is a small FAT partition at the start of the eMMC flash
on the device), which created a core.img, although it warned
about no hints for my target platform.

I try to boot it from U-Boot manually like this:

  Exynos5422 # setenv grub_bootdev hd0,msdos1
  Exynos5422 # setenv loadaddr 0x40008000
  Exynos5422 # fatload mmc 0:1 $loadaddr /grub/arm-uboot/core.img
  reading /grub/arm-uboot/core.img
  
  48540 bytes read
  Exynos5422 # bootm
  ## Booting kernel from Legacy Image at 40008000 ...
     Image Name:
     Image Type:   ARM Linux Kernel Image (uncompressed)
     Data Size:    48476 Bytes = 47.3 KiB
     Load Address: 08000000
     Entry Point:  08000000
     Verifying Checksum ... OK
     Loading Kernel Image ... OK
  OK
  
  Starting kernel ...
  
  prefetch abort
  pc : [<be870ec0>]          lr : [<0000001a>]
  sp : be766f38  ip : 00000000     fp : be87119c
  r10: be8ac824  r9 : 00000000     r8 : be766f30
  r7 : 00000000  r6 : 00000000     r5 : 08000000  r4 : be8ad000
  r3 : be766fa8  r2 : 40000100     r1 : 00001f43  r0 : 00000000
  Flags: nZCv  IRQs off  FIQs off  Mode HYP_32
  Resetting CPU ...
  
  emmc resetting ...
  resetting ...

At this point, it resets and goes back to U-Boot.

This bug is one out of two, I guess: Either something is broken
in grub-uboot itself, or some documentation would be appreciated,
since there's not even a README in the current grub-uboot or
grub-uboot-bin packages. :-)

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mmcblk0p2 / ext4 rw,noatime,errors=remount-ro,data=ordered 0 0
/dev/mmcblk0p1 /fatboot vfat rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 0
*********************** END /proc/mounts

*********************** 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 Feb 11 17:28 mmc-064GE2_0x8f583699 -> ../../mmcblk0
lrwxrwxrwx 1 root root 15 Feb 11 17:28 mmc-064GE2_0x8f583699-part1 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 15 Feb 11 17:28 mmc-064GE2_0x8f583699-part2 -> ../../mmcblk0p2
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 15 Feb 11 17:28 96C3-9298 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 15 Feb 11 17:28 e139ce78-9841-40fe-8823-96a304a09859 -> ../../mmcblk0p2
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: armhf (armv7l)

Kernel: Linux 4.5.0-2-armmp-lpae (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub-uboot depends on:
ii  debconf [debconf-2.0]  1.5.59
ii  dpkg                   1.18.7
ii  grub-common            2.02~beta2-36
ii  grub-uboot-bin         2.02~beta2-36
ii  grub2-common           2.02~beta2-36
ii  ucf                    3.0036

grub-uboot recommends no packages.

grub-uboot suggests no packages.

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



More information about the Pkg-grub-devel mailing list