All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 14281] New: Boot process stuck at "GRUB loading.." since 2021.02.1
@ 2021-10-18 12:08 bugzilla
  2021-10-18 12:12 ` [Buildroot] [Bug 14281] " bugzilla
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bugzilla @ 2021-10-18 12:08 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14281

            Bug ID: 14281
           Summary: Boot process stuck at "GRUB loading.." since 2021.02.1
           Product: buildroot
           Version: 2021.02.5
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned@buildroot.uclibc.org
          Reporter: stefan.walter@iml.fraunhofer.de
                CC: buildroot@uclibc.org
  Target Milestone: ---

The following used to work until including Buildroot 2021.02, i.e. the
resulting image used to boot normally. Ever since Buildroot 2021.02.1, the
resulting image does not boot any more - the boot process either gets stuck
right after displaying "GRUB loading..", or it reboots at that point, leading
to an infinite boot loop. More specifically, this problem exists since the
following commit:

e840f2d469 boot/grub2: Backport 2021/03/02 securify fixes

Here's what I'm doing:

1. Run Buildroot to create a root partition image (my_defconfig attached).
2. Create a GRUB image like this (grub_early.cfg attached):

/path/to/buildroot-sdk/host/bin/grub-mkimage --config=grub_early.cfg
--directory=/path/to/buildroot-sdk/host/lib/grub/i386-pc -o
./genimage_input_tmp/grub_core.img --format=i386-pc --prefix==/boot/grub
biosdisk part_msdos ext2 normal linux configfile

3. Create a home partition image like this:

MKE2FS_CONFIG=/path/to/buildroot-sdk/host/etc/mke2fs.conf
/path/to/buildroot-sdk/host/sbin/mke2fs -d home_partition_prep/home -j -L home
-t ext3 -U random -b 4096 ./genimage_input_tmp/home.ext3 25M

4. Create a disk image like this (genimage.cfg attached):

/path/to/buildroot-sdk/host/bin/genimage --loglevel=1 --config=genimage.cfg
--inputpath=./genimage_input_tmp --outputpath=images
--rootpath=home_partition_prep --tmppath=./genimage_tmp
--tune2fs=/path/to/buildroot-sdk/host/usr/sbin/tune2fs
--e2fsck=/path/to/buildroot-sdk/host/usr/sbin/e2fsck

(Note that I had also previously raised this issue on the Buildroot mailing
list - see
http://lists.busybox.net/pipermail/buildroot/2021-October/625323.html.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 14281] Boot process stuck at "GRUB loading.." since 2021.02.1
  2021-10-18 12:08 [Buildroot] [Bug 14281] New: Boot process stuck at "GRUB loading.." since 2021.02.1 bugzilla
@ 2021-10-18 12:12 ` bugzilla
  2021-10-18 12:12 ` bugzilla
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2021-10-18 12:12 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14281

--- Comment #1 from Stefan Walter <stefan.walter@iml.fraunhofer.de> ---
Created attachment 9121
  --> https://bugs.busybox.net/attachment.cgi?id=9121&action=edit
Buildroot configuration

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 14281] Boot process stuck at "GRUB loading.." since 2021.02.1
  2021-10-18 12:08 [Buildroot] [Bug 14281] New: Boot process stuck at "GRUB loading.." since 2021.02.1 bugzilla
  2021-10-18 12:12 ` [Buildroot] [Bug 14281] " bugzilla
@ 2021-10-18 12:12 ` bugzilla
  2021-10-18 12:12 ` bugzilla
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2021-10-18 12:12 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14281

--- Comment #2 from Stefan Walter <stefan.walter@iml.fraunhofer.de> ---
Created attachment 9126
  --> https://bugs.busybox.net/attachment.cgi?id=9126&action=edit
GRUB configuration

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 14281] Boot process stuck at "GRUB loading.." since 2021.02.1
  2021-10-18 12:08 [Buildroot] [Bug 14281] New: Boot process stuck at "GRUB loading.." since 2021.02.1 bugzilla
  2021-10-18 12:12 ` [Buildroot] [Bug 14281] " bugzilla
  2021-10-18 12:12 ` bugzilla
@ 2021-10-18 12:12 ` bugzilla
  2021-10-18 18:47 ` bugzilla
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2021-10-18 12:12 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14281

--- Comment #3 from Stefan Walter <stefan.walter@iml.fraunhofer.de> ---
Created attachment 9131
  --> https://bugs.busybox.net/attachment.cgi?id=9131&action=edit
genimage configuration

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 14281] Boot process stuck at "GRUB loading.." since 2021.02.1
  2021-10-18 12:08 [Buildroot] [Bug 14281] New: Boot process stuck at "GRUB loading.." since 2021.02.1 bugzilla
                   ` (2 preceding siblings ...)
  2021-10-18 12:12 ` bugzilla
@ 2021-10-18 18:47 ` bugzilla
  2021-10-19 15:31 ` bugzilla
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2021-10-18 18:47 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14281

--- Comment #4 from Thomas Petazzoni <thomas.petazzoni@bootlin.com> ---
When you say "The following used to work until including Buildroot 2021.02",
could you clarify which version of Buildroot works for you ? 2020.11 is working
?

If so, could you take 2021.02, and try to downgrade the version of gcc and/or
binutils ? Buildroot offers the choice of 3 versions for gcc and binutils: X-1,
X and X+1, where X is the default. Could you try to use X-1 for gcc, and X-1
for binutils, and see if it improves the situation ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 14281] Boot process stuck at "GRUB loading.." since 2021.02.1
  2021-10-18 12:08 [Buildroot] [Bug 14281] New: Boot process stuck at "GRUB loading.." since 2021.02.1 bugzilla
                   ` (3 preceding siblings ...)
  2021-10-18 18:47 ` bugzilla
@ 2021-10-19 15:31 ` bugzilla
  2021-10-20 13:04 ` bugzilla
  2021-10-20 13:05 ` bugzilla
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2021-10-19 15:31 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14281

--- Comment #5 from Stefan Walter <stefan.walter@iml.fraunhofer.de> ---
No problem:

- Version 2020.02.11 works
- Version 2021.02 works
- Version 2021.02.1 does not work

I could try using other GCC versions, and had actually already started doing
that, but the hint given at
http://lists.busybox.net/pipermail/buildroot/2021-October/626296.html revealed
that using the GRUB image in build/grub2-2.04/grub-core instead of the one in
host/lib/grub/i386-pc helps. I can confirm that I get a booting image with
that.

So, as mentioned by Peter in that e-mail, it looks like a problem with
host-grub2...?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 14281] Boot process stuck at "GRUB loading.." since 2021.02.1
  2021-10-18 12:08 [Buildroot] [Bug 14281] New: Boot process stuck at "GRUB loading.." since 2021.02.1 bugzilla
                   ` (4 preceding siblings ...)
  2021-10-19 15:31 ` bugzilla
@ 2021-10-20 13:04 ` bugzilla
  2021-10-20 13:05 ` bugzilla
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2021-10-20 13:04 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14281

--- Comment #6 from Stefan Walter <stefan.walter@iml.fraunhofer.de> ---
I'll attach the patch that Peter sent in
http://lists.busybox.net/pipermail/buildroot/2021-October/626342.html to this
issue for the sake of completeness. I can confirm that, with the patch applied
to the head of the 2021.02.x branch (241a7c6fe7 in my case), I get a booting
image again. It would be great to have this in 2021.02.7.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [Bug 14281] Boot process stuck at "GRUB loading.." since 2021.02.1
  2021-10-18 12:08 [Buildroot] [Bug 14281] New: Boot process stuck at "GRUB loading.." since 2021.02.1 bugzilla
                   ` (5 preceding siblings ...)
  2021-10-20 13:04 ` bugzilla
@ 2021-10-20 13:05 ` bugzilla
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2021-10-20 13:05 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14281

--- Comment #7 from Stefan Walter <stefan.walter@iml.fraunhofer.de> ---
Created attachment 9136
  --> https://bugs.busybox.net/attachment.cgi?id=9136&action=edit
host-grub2.patch

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-20 13:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18 12:08 [Buildroot] [Bug 14281] New: Boot process stuck at "GRUB loading.." since 2021.02.1 bugzilla
2021-10-18 12:12 ` [Buildroot] [Bug 14281] " bugzilla
2021-10-18 12:12 ` bugzilla
2021-10-18 12:12 ` bugzilla
2021-10-18 18:47 ` bugzilla
2021-10-19 15:31 ` bugzilla
2021-10-20 13:04 ` bugzilla
2021-10-20 13:05 ` bugzilla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.