bugGNU GRUB - Bugs: bug #46890, GRUB crashes on loading...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #46890: GRUB crashes on loading Linux-libre kernel for the Beaglebone Black rev C

Submitter:  Márcio <coadde>
Submitted:  Wed 13 Jan 2016 10:21:56 PM UTC
   
 
Category:  Booting Severity:  Major
Priority:  6 Item Group:  Hardware-specific
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  2.02~beta1
Release:  Reproducibility:  Every Time
Planned Release:  2.02

Thu 21 Jan 2016 01:53:40 AM UTC, comment #5: 

i attached 2 log files, uboot+grub-git.1.log is a full console log from a grub built from master branch, uboot+grub-git.2.log is the same one, however without the call to grub_arm_disable_caches_mmu, eg.

---
sed -i '\|grub_arm_disable_caches_mmu|,+4 d
       ' grub-core/loader/arm/linux.c
---

Márcio <coadde>
Mon 18 Jan 2016 03:27:52 AM UTC, comment #4: 

Unfortunately your debug output does not match current upstream source which makes it hard to follow. Could you please test current GIT master and attach full console log starting with power on?

Andrei Borzenkov <arvidjaar>
Group Member
Mon 18 Jan 2016 03:09:53 AM UTC, comment #3: 

Please disregard the last 2 lines in the previous comment, they come from debugging info we printed using grub_dprintf() but you won't find them in source code. Apart from those 2 extra calls to grub_dprintf() we just commented out grub_arm_disable_caches_mmu(), and as you can see the register dumping has ceased but linuxmain() never got to print anything.

Together with Márcio <coadde> we at Parabola are trying to figure out how to load Linux-libre images from GRUB on a Sitara AM335X platform.

Isaac David <isacdaavid>
Sat 16 Jan 2016 01:18:28 AM UTC, comment #2: 

it's the result commenting out the call to grub_arm_disable_caches_mmu()

-----------------------

??, er/arm/linux.c:238: atag: 0x81ff0000, d9da, edfe0dd0, ?
loader/arm/linux.c:246: Kernel at: 0x80008000
loader/arm/linux.c:184: linux_args: 'BOOT_IMAGE=/boot/vmlinuz-linux-libre
root=/dev/mmcblk0p1 rw quiet'
loader/arm/linux.c:215: FDT updated for Linux boot
loader/arm/linux.c:255: FDT @ 0x0x81ff0000
loader/arm/linux.c:267: Jumping to Linux...
loader/arm/linux.c:276: linuxmain address @ 0x0x80008000
loader/arm/linux.c:290: Returned from grub_arm_disable_caches_mmu

Márcio <coadde>
Thu 14 Jan 2016 02:08:52 PM UTC, comment #1: 

The information provided tells me two things:
1) The crash happens before the zImage gets to printing "Uncompressing Linux...".
2) Both PC and LR point to regions that are not RAM.

As an experiment, could you try commenting out the call to grub_arm_disable_caches_mmu() in
grub-core/loader/arm/linux.c?

Leif Lindholm <leiflindholm>
Group Member
Wed 13 Jan 2016 10:21:56 PM UTC, original submission:  

My environment:

  • Beaglebone Black rev C
  • U-boot 2015.04 [0][1] (as am335x_evm_config adapted to run grub)
  • GNU GRUB 2.02.beta2 [2][3]
  • GNU Linux-libre kernel 4.3.3 [4][5]


What I see on the serial is:
----------------------------------

loader/arm/linux.c:311: Loading Linux to 0x8000800083, start 0x800, len
loader/arm/linux.c:488: Loading device tree to 0x81ff0000
??, er/arm/linux.c:238: atag: 0x81ff0000, d9da, edfe0dd0, ?
loader/arm/linux.c:246: Kernel at: 0x80008000a, edfe0dd0, ?
loader/arm/linux.c:184: linux_args: 'BOOT_IMAGE=/boot/vmlinuz-linux-libre
root=/dev/mmcblk0p1 rw debug ignore_loglevel earlyprintk=serial,keep
log_buf_len=16M'65
loader/arm/linux.c:215: FDT updated for Linux boot
loader/arm/linux.c:255: FDT @ 0x0x81ff0000
loader/arm/linux.c:267: Jumping to Linux...
prefetch abort
pc : [<000000a0>]5: free   lr : [<0000009c>]
sp : 82054de0  ip : 0000dc522fca fp : 82edca50
r10: 82fc5b6c  r9 : 82054de89 te r8 : 82fc5897
r7 : 82009d98  r6 : 82fc5897retv r5 : 82fe1380  r4 : 0000010b=64,9, len
r3 : 000001ff  r2 : 00000002x82f r1 : 00000002  r0 : 002800000x800, len
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32
Resetting CPU ...

resetting ....

U-Boot SPL 2015.04 (Nov 08 2015 - 01:22:00)


U-Boot 2015.04 (Nov 08 2015 - 01:22:00)

       Watchdog enabled
I2C:   ready
DRAM:  512 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw
Hit any key to stop autoboot:  0
gpio: pin 53 (gpio 53) value is 1
starting USB...
USB0:   Port not available.

----------------------------------

[0]https://www.parabola.nu/packages/libre-testing/armv7h/uboot4grub-am335x_bone/
[1]https://projects.parabola.nu/abslibre.git/tree/libre-testing/uboot4grub-am335x_bone
[2]https://www.parabola.nu/packages/libre/armv7h/grub-am335x_bone/
[3]https://projects.parabola.nu/abslibre.git/tree/libre/grub
[4]https://www.parabola.nu/packages/libre/armv7h/linux-libre/
[5]https://projects.parabola.nu/abslibre.git/tree/libre/linux-libre

Márcio <coadde>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #36107:  uboot+grub-git.2.log added by coadde (188KiB - text/x-log - full console log starting with power on (grub built from master branch but commenting out the call to grub_arm_disable_caches_mmu))
file #36106:  uboot+grub-git.1.log added by coadde (186KiB - text/x-log - full console log starting with power on (grub built from master branch))

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by isacdaavid (Posted a comment)
  • -email is unavailable- added by leiflindholm (Posted a comment)
  • -email is unavailable- added by coadde (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-11 phcoder Priority5 - Normal 6
    2016-03-02 phcoder Item GroupSoftware Error Hardware-specific
        Planned ReleaseNone 2.02
    2016-01-21 coadde Attached File- Added uboot+grub-git.2.log, #36107
    2016-01-21 coadde Attached File- Added uboot+grub-git.1.log, #36106

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code