164UX Regression, 2.6.22->2.6.23
Matt Turner
maintainerHello,
Alpha/Linux user Ian Las reported that since 2.6.22, the Kernel fails to load on his 164UX using MILO. (MILO is the only way to load Linux, as it only has ARCSBIOS.)
It fails with
...Image loaded into memory, entry @ 0xfffffc0000310000 Setting up Milo reboot parameter block at 0xfffffc0000000140 Boot line is bootdevice=sdb2 bootfile=vmlinux.gz root=/dev/sdb6 Bootstrap complete, kernel @ 0xfffffc0000310000, sp @ 0xfffffc0000304000 ...turning on virtual addressing and jumping to the Linux Kernel
--------------------------------------------------------------------------------
Kernel panic - not syncing: Attempted to kill init!
Ian successfully bisected the failing commit, inline below. We tried reverting the commit, but it causes linker failures due to overlapping sections.
How can we further debug and fix this?
Thanks!
Matt
commit caf45dd92677b2001123cc06b5835052ccfee76f
Author: Roland McGrath <[email protected]> Date: Thu Jul 19 01:48:37 2007 -0700
alpha: Put allocated ELF notes in read-only data segment
This changes the alpha linker script to use the asm-generic NOTES macro so that ELF note sections with SHF_ALLOC set are linked into the kernel image along with other read-only data. The PT_NOTE also points to their location.
This paves the way for putting useful build-time information into ELF notes that can be found easily later in a kernel memory dump.
arch/alpha/kernel/vmlinux.lds.S +4 -1
@@ -3,7 +3,7 @@ OUTPUT_FORMAT("elf64-alpha") OUTPUT_ARCH(alpha) ENTRY(__start) -PHDRS { kernel PT_LOAD ; } +PHDRS { kernel PT_LOAD; note PT_NOTE; } jiffies = jiffies_64; SECTIONS {
@@ -28,6 +28,9 @@ SECTIONS __ex_table : { *(__ex_table) } __stop___ex_table = .; + NOTES :kernel :note + .dummy : { *(.dummy) } :kernel + RODATA /* Will be freed after init */
Best would be someone who thoroughly understands that boot loader's expectations examining the vmlinux image to see what's wrong. I'm not that someone, but if you send me the images made before and after that patch, I can examine them and speculate what the problem might be.
Thanks,
Roland