linux-2.6.14-rc does not boot on Ultra 5
Hello,
Today I tried to update my Ultra 5 from 2.6.13 to 2.6.14-rc4 and found that the kernel no longer boots. The OpenBoot PROM reports an "Illegal Instruction" after it has downloaded the kernel image:
Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 270MHz), Keyboard Present OpenBoot 3.11, 64 MB memory installed, Serial #xxxxxxxx. Ethernet address x:x:xx:xx:xx:xx, Host ID: xxxxxxxx. Rebooting with command: boot net
Boot device: /pci@1f,0/pci@1,1/network@1,1 File and args:
29e000 Illegal Instruction
ok
My Ultra 5 loads its kernel via TFTP, and since it can not boot an ELF image, I use to convert the kernel image to a.out format before I put it to the tftp dir.
I narrowed down the change which triggers this behaviour to the merge that Linus did from the sparc-2.6 tree between rc2-git6 and rc2-git7. So, the 2.6.14-rc2-git7 snapshot does not boot on my Ultra 5, while -rc2-git6 still does.
My config is available at http://stosberg.net/tmp/config-2.6.14-rc
[Please CC me, I'm not subscribed to this list]
-Dennis
From: Dennis Stosberg <[email protected]>
Date: Tue, 11 Oct 2005 23:04:28 +0200
Quoted 7 lines
Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 270MHz), Keyboard Present OpenBoot 3.11, 64 MB memory installed, Serial #xxxxxxxx. Ethernet address x:x:xx:xx:xx:xx, Host ID: xxxxxxxx. Rebooting with command: boot net
Boot device: /pci@1f,0/pci@1,1/network@1,1 File and args:
29e000 Illegal Instruction
ok
I have an Ultra5 here and will try to reproduce, but meanwhile if you could send the output of the ".registers" command when it fails like this it would be appreciated. Thanks.
Quoted 3 lines · David S. Miller
I have an Ultra5 here and will try to reproduce, but meanwhile if you could send the output of the ".registers" command when it fails like this it would be appreciated. Thanks.
Rebooting with command: boot net
Boot device: /pci@1f,0/pci@1,1/network@1,1 File and args:
29e000 Illegal Instruction
ok .registers
Normal Alternate MMU Vector
0: 0 0 0 0
1: f fffde6c0 9900001600 2000002402
2: 4042ec f0000000 14 2220000080000
3: 0 0 fffe0000 8220200000020000 4: 0 0 ffffffffffffffff 200800400 5: 0 f fffda000 a00000000a00 6: 0 4400001601 fffe0000 200000d00
7: 17 10 f0000e00 10080000180080
%PC 4042f0 %nPC 6c421084
%TBA f0000000 %CCR 99 XCC:NzvC ICC:NzvC
-Dennis
From: Dennis Stosberg <[email protected]>
Date: Tue, 11 Oct 2005 23:49:49 +0200
Quoted 5 lines
ok .registers
Normal Alternate MMU Vector
0: 0 0 0 0
1: ffffde6c09900001600 2000002402
2: 4042ecf000000014 2220000080000
Quoted 7 lines
3: 0 0 fffe0000 8220200000020000 4: 0 0 ffffffffffffffff 200800400 5: 0 f fffda000 a00000000a00 6: 0 4400001601 fffe0000 200000d007: 17 10
f0000e0010080000180080
%PC 4042f0 %nPC6c421084
%TBAf0000000%CCR 99 XCC:NzvC ICC:NzvC
Not aligning the kernel mapping physical address correctly. Please try this fix:
arch/sparc64/kernel/head.S +6 -2
@@ -191,8 +191,9 @@ prom_boot_mapping_phys_low: stx %l3, [%sp + 2047 + 128 + 0x10] ! num_rets, 5 stx %l2, [%sp + 2047 + 128 + 0x18] ! arg1: "translate" stx %l5, [%sp + 2047 + 128 + 0x20] ! arg2: prom_mmu_ihandle_cache - srlx %l0, 22, %l3 - sllx %l3, 22, %l3 + /* PAGE align */ + srlx %l0, 13, %l3 + sllx %l3, 13, %l3 stx %l3, [%sp + 2047 + 128 + 0x28] ! arg3: vaddr, our PC stx %g0, [%sp + 2047 + 128 + 0x30] ! res1 stx %g0, [%sp + 2047 + 128 + 0x38] ! res2
@@ -211,6 +212,9 @@ prom_boot_mapping_phys_low: ldx [%sp + 2047 + 128 + 0x48], %l2 ! physaddr high stx %l2, [%l4 + 0x0] ldx [%sp + 2047 + 128 + 0x50], %l3 ! physaddr low + /* 4MB align */ + srlx %l3, 22, %l3 + sllx %l3, 22, %l3 stx %l3, [%l4 + 0x8] /* Leave service as-is, "call-method" */
arch/sparc64/kernel/head.S
Quoted 6 lines · David S. Miller
Not aligning the kernel mapping physical address correctly. Please try this fix:
arch/sparc64/kernel/head.S +1
-0+++ b/arch/sparc64/kernel/head.S
That fix makes the kernel boot again for me.
Thanks a lot,
-Dennis