* GRUB reboots system after loading kernel and initrd on 80486
@ 2016-11-07 13:49 tedheadster
2016-11-12 8:47 ` Andrei Borzenkov
0 siblings, 1 reply; 2+ messages in thread
From: tedheadster @ 2016-11-07 13:49 UTC (permalink / raw)
To: grub-devel
GRUB developers,
I just installed GRUB 2.02~beta2-22+deb8u1 from the current Debian
distribution. I am using it to boot an _old_ 80486 (squeeze)
distribution on a second partition.
Legacy GRUB can load the old squeeze just fine. Current GRUB reboots
the computer after attempting to boot the kernel.
I did a 'set debug=all' right before the 'linux' and 'initrd'
commands. Below is the output.
- Matthew
Loading Linux 3.19.0 ...
script/script.c:65: free 0x3fd9690
script/script.c:65: free 0x3fd96b0
script/script.c:65: free 0x3fd96d0
script/script.c:65: free 0x3fd9460
script/script.c:65: free 0x3fd9490
script/script.c:65: free 0x3fd94b0
script/script.c:65: free 0x3fd94e0
script/script.c:65: free 0x3fd9510
script/script.c:65: free 0x3fd95d0
script/script.c:65: free 0x3fd9640
script/script.c:65: free 0x3fd9700
script/script.c:65: free 0x3fd9720
script/lexer.c:321: token 288 text [linux]
script/script.c:50: malloc 0x3fd9600
script/script.c:50: malloc 0x3fd95e0
script/script.c:163: arglist
script/script.c:50: malloc 0x3fd95b0
script/lexer.c:321: token 289 text [/vmlinuz-3.19.0]
script/script.c:50: malloc 0x3fd9450
script/script.c:50: malloc 0x3fd9420
script/script.c:163: arglist
script/script.c:50: malloc 0x3fd93f0
script/lexer.c:321: token 289 text
[root=UUID=2f3af6c2-cccd-404e-9acd-
284516364ab3]
script/script.c:50: malloc 0x3fd92d0
script/script.c:50: malloc 0x3fd9280
script/script.c:163: arglist
script/script.c:50: malloc 0x3fd9250
script/lexer.c:321: token 288 text [ro]
script/script.c:50: malloc 0x3fd9220
script/script.c:50: malloc 0x3fd9200
script/script.c:163: arglist
script/script.c:50: malloc 0x3fd91d0
script/lexer.c:321: token 259 text [
]
script/script.c:50: malloc 0x3fd91a0
script/script.c:50: malloc 0x3fd9180
script/script.c:198: cmdline
script/script.c:50: malloc 0x3fd9150
script/lexer.c:321: token 0 text []
script/script.c:50: malloc 0x3fd9720
script/script.c:50: malloc 0x3fd9700
script/script.c:294: append command
script/script.c:50: malloc 0x3fd96e0
kern/disk.c:196: Opening `hd0,msdos1'...
partmap/msdos.c:188: partition 0: flag 0x0, type 0x83, start 0x1, len 0xee6b2
kern/fs.c:56: Detecting ext2...
kern/disk.c:295: Closing `hd0'.
kern/dl.c:600: module at 0x3fa25a0, size 0x3380
kern/dl.c:624: relocating to 0x3fdee10
kern/disk.c:196: Opening `hd0,msdos1'...
partmap/msdos.c:188: partition 0: flag 0x0, type 0x83, start 0x1, len 0xee6b2
kern/fs.c:56: Detecting ext2...
kern/disk.c:295: Closing `hd0'.
kern/dl.c:600: module at 0x3f9eb30, size 0x3a60
kern/dl.c:624: relocating to 0x3fdc680
kern/disk.c:196: Opening `hd0,msdos1'...
partmap/msdos.c:188: partition 0: flag 0x0, type 0x83, start 0x1, len 0xee6b2
kern/fs.c:56: Detecting ext2...
kern/disk.c:295: Closing `hd0'.
kern/dl.c:600: module at 0x3e6bc70, size 0x217c
kern/dl.c:624: relocating to 0x3fdc510
kern/dl.c:557: flushing 0x1f63 bytes at 0x3fd9840
kern/dl.c:647: module name: mmap
kern/dl.c:648: init function: 0x3fda869
kern/dl.c:557: flushing 0x37d4 bytes at 0x3e6a610
kern/dl.c:647: module name: relocator
kern/dl.c:648: init function: 0x0
kern/dl.c:557: flushing 0x357a bytes at 0x3f9f010
kern/dl.c:647: module name: linux
kern/dl.c:648: init function: 0x3fa002b
kern/disk.c:196: Opening `hd0,msdos1'...
partmap/msdos.c:188: partition 0: flag 0x0, type 0x83, start 0x1, len 0xee6b2
kern/fs.c:56: Detecting ext2...
lib/relocator.c:115: relocators_size=7
lib/relocator.c:1385: chunks = 0x0
lib/relocator.c:434: trying to allocate in 0x1000000-0x1000000 aligned 0x1 size
0x882000
lib/relocator.c:1411: Adjusted limits from 1000000-1000000 to 0-ffffffff
lib/relocator.c:434: trying to allocate in 0x0-0xffffffff aligned 0x1 size
0x882000
lib/relocator.c:1186: allocated: 0x100000+0x882000
lib/relocator.c:1466: relocators_size=7
lib/relocator.c:1474: relocators_size=39
lib/relocator.c:1480: cur = 0x4099ce0, next = 0x0
loader/i386/linux.c:256: prot_mode_mem = 0x100000, prot_mode_target = 1000000,
prot_size = 882000
loader/i386/linux.c:915: bzImage, setup=0x3e00, size=0x882000
kern/disk.c:295: Closing `hd0'.
script/script.c:65: free 0x3fd96e0
script/script.c:65: free 0x3fd9700
script/script.c:65: free 0x3fd9720
script/script.c:65: free 0x3fd9150
script/script.c:65: free 0x3fd9180
script/script.c:65: free 0x3fd91a0
script/script.c:65: free 0x3fd91d0
script/script.c:65: free 0x3fd9200
script/script.c:65: free 0x3fd9220
script/script.c:65: free 0x3fd9250
script/script.c:65: free 0x3fd9280
script/script.c:65: free 0x3fd92d0
script/script.c:65: free 0x3fd93f0
script/script.c:65: free 0x3fd9420
script/script.c:65: free 0x3fd9450
script/script.c:65: free 0x3fd95b0
script/script.c:65: free 0x3fd95e0
script/script.c:65: free 0x3fd9600
script/lexer.c:321: token 288 text [echo]
script/script.c:50: malloc 0x3fa37b0
script/script.c:50: malloc 0x3fa3790
script/script.c:163: arglist
script/script.c:50: malloc 0x3fa3760
script/lexer.c:321: token 289 text []
script/script.c:50: malloc 0x3fa3600
script/script.c:50: malloc 0x3fa35e0
script/lexer.c:321: token 289 text [Loading initial ramdisk ...]
script/script.c:50: malloc 0x3fa35b0
script/script.c:50: malloc 0x3fa3570
script/lexer.c:321: token 289 text []
script/script.c:50: malloc 0x3fa36f0
script/script.c:50: malloc 0x3fa3550
script/script.c:163: arglist
script/script.c:50: malloc 0x3fa3520
script/lexer.c:321: token 259 text [
]
script/script.c:50: malloc 0x3fa34f0
script/script.c:50: malloc 0x3fa34d0
script/script.c:198: cmdline
script/script.c:50: malloc 0x3fa34a0
script/lexer.c:321: token 0 text []
script/script.c:50: malloc 0x3fa3890
script/script.c:50: malloc 0x3fa3870
script/script.c:294: append command
script/script.c:50: malloc 0x3fa3850
Loading initial ramdisk ...
script/script.c:65: free 0x3fa3850
script/script.c:65: free 0x3fa3870
script/script.c:65: free 0x3fa3890
script/script.c:65: free 0x3fa34a0
script/script.c:65: free 0x3fa34d0
script/script.c:65: free 0x3fa34f0
script/script.c:65: free 0x3fa3520
script/script.c:65: free 0x3fa3550
script/script.c:65: free 0x3fa36f0
script/script.c:65: free 0x3fa3570
script/script.c:65: free 0x3fa35b0
script/script.c:65: free 0x3fa35e0
script/script.c:65: free 0x3fa3600
script/script.c:65: free 0x3fa3760
script/script.c:65: free 0x3fa3790
script/script.c:65: free 0x3fa37b0
script/lexer.c:321: token 288 text [initrd]
script/script.c:50: malloc 0x3fa37d0
script/script.c:50: malloc 0x3fa37b0
script/script.c:163: arglist
script/script.c:50: malloc 0x3fa3780
script/lexer.c:321: token 289 text [/initrd.img-3.19.0]
script/script.c:50: malloc 0x3fa3620
script/script.c:50: malloc 0x3fa35f0
script/script.c:163: arglist
script/script.c:50: malloc 0x3fa35c0
script/lexer.c:321: token 259 text [
]
script/script.c:50: malloc 0x3fa3590
script/script.c:50: malloc 0x3fa3570
script/script.c:198: cmdline
script/script.c:50: malloc 0x3fa3540
script/lexer.c:321: token 0 text []
script/script.c:50: malloc 0x3fa3890
script/script.c:50: malloc 0x3fa3870
script/script.c:294: append command
script/script.c:50: malloc 0x3fa3850
kern/disk.c:196: Opening `hd0,msdos1'...
partmap/msdos.c:188: partition 0: flag 0x0, type 0x83, start 0x1, len 0xee6b2
kern/fs.c:56: Detecting ext2...
lib/relocator.c:1385: chunks = 0x4099ce0
lib/relocator.c:434: trying to allocate in 0x1882000-0x37d62000 aligned 0x1000
size 0x28dfc0
lib/relocator.c:1186: allocated: 0x37a7000+0x28dfc0
lib/relocator.c:1397: allocated 0x37a7000/0x37a7000
lib/relocator.c:1398: chunks = 0x4099ce0
loader/i386/linux.c:1167: Initrd, addr=0x37d62000, size=0x28dfc0
kern/disk.c:295: Closing `hd0'.
script/script.c:65: free 0x3fa3850
script/script.c:65: free 0x3fa3870
script/script.c:65: free 0x3fa3890
script/script.c:65: free 0x3fa3540
script/script.c:65: free 0x3fa3570
script/script.c:65: free 0x3fa3590
script/script.c:65: free 0x3fa35c0
script/script.c:65: free 0x3fa35f0
script/script.c:65: free 0x3fa3620
script/script.c:65: free 0x3fa3780
script/script.c:65: free 0x3fa37b0
script/script.c:65: free 0x3fa37d0
script/lexer.c:321: token 259 text [
]
script/script.c:50: malloc 0x3fa37f0
script/script.c:50: malloc 0x3fa37d0
script/lexer.c:321: token 0 text []
script/script.c:50: malloc 0x3fa3890
script/script.c:50: malloc 0x3fa37b0
script/script.c:65: free 0x3fa37b0
script/script.c:65: free 0x3fa3890
script/script.c:65: free 0x3fa37d0
script/script.c:65: free 0x3fa37f0
loader/i386/linux.c:572: real_size = 5000, mmap_size = 2000
loader/i386/linux.c:426: addr = 10000, size = 80000, need_size = 5000
loader/i386/linux.c:584: real_mode_target = 8b000, real_size = 5000,
efi_mmap_size = 0
lib/relocator.c:1239: min_addr = 0x0, max_addr = 0x100000, target = 0x8b000
lib/relocator.c:434: trying to allocate in 0x0-0xffffffff aligned 0x1 size
0x5000
lib/relocator.c:1186: allocated: 0x40ed220+0x5000
lib/relocator.c:1275: allocated 0x40ed220/0x8b000
lib/relocator.c:1293: relocators_size=39
lib/relocator.c:1301: relocators_size=61
lib/relocator.c:1308: cur = 0x3fe3eb0, next = 0x3fdc270
loader/i386/linux.c:601: real_mode_mem = 0x40ed220
loader/i386/linux.c:611: code32_start = 1000000
lib/relocator.c:1385: chunks = 0x3fe3eb0
lib/relocator.c:434: trying to allocate in 0x1000-0xffffff2f aligned 0x10 size
0xd0
lib/relocator.c:1186: allocated: 0x982000+0xd0
lib/relocator.c:1397: allocated 0x982000/0x982000
lib/relocator.c:1398: chunks = 0x3fe3eb0
lib/relocator.c:1521: Preparing relocs (size=61)
lib/relocator.c:434: trying to allocate in 0x0-0xffffffc3 aligned 0x1 size
0x3d
lib/relocator.c:1186: allocated: 0x9820d0+0x3d
lib/relocator.c:1533: Relocs allocated at 0x9820d0
lib/relocator.c:1548: chunk 0x982000->0x982000, 0xd0
lib/relocator.c:1548: chunk 0x40ed220->0x8b000, 0x5000
lib/relocator.c:1548: chunk 0x37a7000->0x37a7000, 0x28dfc0
lib/relocator.c:1548: chunk 0x100000->0x1000000, 0x882000
lib/relocator.c:1592: sorted chunk 0x100000->0x1000000, 0x882000
lib/relocator.c:1592: sorted chunk 0x982000->0x982000, 0xd0
lib/relocator.c:1592: sorted chunk 0x37a7000->0x37a7000, 0x28dfc0
lib/relocator.c:1592: sorted chunk 0x40ed220->0x8b000, 0x5000
(system reboots at this point)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: GRUB reboots system after loading kernel and initrd on 80486
2016-11-07 13:49 GRUB reboots system after loading kernel and initrd on 80486 tedheadster
@ 2016-11-12 8:47 ` Andrei Borzenkov
0 siblings, 0 replies; 2+ messages in thread
From: Andrei Borzenkov @ 2016-11-12 8:47 UTC (permalink / raw)
To: The development of GNU GRUB
07.11.2016 16:49, tedheadster пишет:
> GRUB developers,
> I just installed GRUB 2.02~beta2-22+deb8u1 from the current Debian
Please retest with current git head.
> distribution. I am using it to boot an _old_ 80486 (squeeze)
> distribution on a second partition.
>
> Legacy GRUB can load the old squeeze just fine. Current GRUB reboots
> the computer after attempting to boot the kernel.
>
Did you test linux16 loader? That is what legacy grub effectively uses.
> I did a 'set debug=all' right before the 'linux' and 'initrd'
> commands. Below is the output.
>
> - Matthew
>
...
> loader/i386/linux.c:601: real_mode_mem = 0x40ed220
> loader/i386/linux.c:611: code32_start = 1000000
at this point we are about to jump to loaded kernel
> lib/relocator.c:1385: chunks = 0x3fe3eb0
> lib/relocator.c:434: trying to allocate in 0x1000-0xffffff2f aligned 0x10 size
> 0xd0
> lib/relocator.c:1186: allocated: 0x982000+0xd0
> lib/relocator.c:1397: allocated 0x982000/0x982000
> lib/relocator.c:1398: chunks = 0x3fe3eb0
> lib/relocator.c:1521: Preparing relocs (size=61)
> lib/relocator.c:434: trying to allocate in 0x0-0xffffffc3 aligned 0x1 size
> 0x3d
> lib/relocator.c:1186: allocated: 0x9820d0+0x3d
> lib/relocator.c:1533: Relocs allocated at 0x9820d0
> lib/relocator.c:1548: chunk 0x982000->0x982000, 0xd0
> lib/relocator.c:1548: chunk 0x40ed220->0x8b000, 0x5000
> lib/relocator.c:1548: chunk 0x37a7000->0x37a7000, 0x28dfc0
> lib/relocator.c:1548: chunk 0x100000->0x1000000, 0x882000
> lib/relocator.c:1592: sorted chunk 0x100000->0x1000000, 0x882000
> lib/relocator.c:1592: sorted chunk 0x982000->0x982000, 0xd0
> lib/relocator.c:1592: sorted chunk 0x37a7000->0x37a7000, 0x28dfc0
> lib/relocator.c:1592: sorted chunk 0x40ed220->0x8b000, 0x5000
> (system reboots at this point)
>
Please add grub_dprintf to grub_relocator32_boot to see how far it
proceeds.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-12 8:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-07 13:49 GRUB reboots system after loading kernel and initrd on 80486 tedheadster
2016-11-12 8:47 ` Andrei Borzenkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).