[LinuxBIOS] Kernel does nothing

Eyal Cohen eyal at cohenim.net
Sat Aug 4 08:44:59 CEST 2007


Hello.

I have a GX1+CS5530A+PC97317 board that I would like LinuxBIOS to work
(properly) on.
I have managed to compile LinuxBIOSv2 for this configuration using FILO
as payload and burned the bios flash with it.
To my relief it began outputting data to the serial port so it seemed
like everything was working.
It said it found ram and the hardware and all was fine.
After seeing that I have connected a hard drive and tried to boot a
kernel.
FILO said it finds the file and seemed to load it to memory,but...
Once FILO jumped to the kernel no more output was transmitted nor to the
com port nor the screen.
I have also patched this kernel with a patch by Juergen Beisert
<juergen at kreuzholzen.de> to add support for the CS5530's IRQ router.
The kernel I have used has build in support for standard UART, and from
using another (same kind) board with this kernel I can guarantee the COM
port works.

What is wrong?
Why doesn't the kernel boot?

Attached is the output log from the COM port.

Thank you very much
EyalC

-------------- next part --------------

LinuxBIOS-2.0.0.0Fallback Sun Jul  1 06:27:14 IDT 2007 starting...
Setting up default parameters for memory
Sizing memory
Probing for DIMM0
    Found DIMM0
    Page Size:       00001000
    Component Banks: 4
    Module Banks:    2
    DIMM size:       08000000
Probing for DIMM1
MC_BANK_CFG = 00705520
Copying LinuxBIOS to RAM.
Jumping to LinuxBIOS.
LinuxBIOS-2.0.0.0Fallback Sun Jul  1 06:27:14 IDT 2007 booting...
end 4b7fc3fe, start 0
32-bit delta 449
calibrate_tsc 32-bit result is 449
clocks_per_usec: 449
Enumerating buses...
scan_static_bus for Root Device
northbridge.c:enable_dev()
DEVICE_PATH_PCI_DOMAIN
Finding PCI configuration type.
PCI: Using configuration type 1
PCI_DOMAIN: 0000 enabled
PCI_DOMAIN: 0000 scanning...
PCI: pci_scan_bus for bus 00
northbridge.c:enable_dev()
device path type 2
PCI: 00:00.0 [1078/0001] ops
PCI: 00:00.0 [1078/0001] enabled
PCI: devfn 0x8, bad id 0xffffffff
PCI: devfn 0x10, bad id 0xffffffff
PCI: devfn 0x18, bad id 0xffffffff
PCI: devfn 0x20, bad id 0xffffffff
PCI: devfn 0x28, bad id 0xffffffff
PCI: devfn 0x30, bad id 0xffffffff
PCI: devfn 0x38, bad id 0xffffffff
PCI: devfn 0x40, bad id 0xffffffff
PCI: devfn 0x48, bad id 0xffffffff
PCI: devfn 0x50, bad id 0xffffffff
PCI: devfn 0x58, bad id 0xffffffff
malloc Enter, size 668, free_mem_ptr 00016000
malloc 0x00016000
PCI: 00:0c.0 [10ec/8139] enabled
PCI: devfn 0x68, bad id 0xffffffff
PCI: devfn 0x70, bad id 0xffffffff
PCI: devfn 0x79, bad id 0xffffffff
PCI: devfn 0x7a, bad id 0xffffffff
PCI: devfn 0x7b, bad id 0xffffffff
PCI: devfn 0x7c, bad id 0xffffffff
PCI: devfn 0x7d, bad id 0xffffffff
PCI: devfn 0x7e, bad id 0xffffffff
PCI: devfn 0x7f, bad id 0xffffffff
PCI: devfn 0x80, bad id 0xffffffff
PCI: devfn 0x88, bad id 0xffffffff
PCI: 00:12.0 [1078/0100] bus ops
southbridge_enable: dev is 0000e040
PCI: 00:12.0 [1078/0100] enabled
PCI: 00:12.1 [1078/0101] disabled
PCI: 00:12.2 [1078/0102] ops
cs5530_ide: ide_enable
PCI: 00:12.2 [1078/0102] enabled
PCI: 00:12.3 [1078/0103] enabled
PCI: 00:12.4 [1078/0104] enabled
PCI: devfn 0x95, bad id 0xffffffff
PCI: devfn 0x96, bad id 0xffffffff
PCI: devfn 0x97, bad id 0xffffffff
PCI: 00:13.0 [0e11/a0f8] enabled
PCI: devfn 0xa0, bad id 0xffffffff
PCI: devfn 0xa8, bad id 0xffffffff
PCI: devfn 0xb0, bad id 0xffffffff
PCI: devfn 0xb8, bad id 0xffffffff
PCI: devfn 0xc0, bad id 0xffffffff
PCI: devfn 0xc8, bad id 0xffffffff
PCI: devfn 0xd0, bad id 0xffffffff
PCI: devfn 0xd8, bad id 0xffffffff
PCI: devfn 0xe0, bad id 0xffffffff
PCI: devfn 0xe8, bad id 0xffffffff
PCI: devfn 0xf0, bad id 0xffffffff
PCI: devfn 0xf8, bad id 0xffffffff
scan_static_bus for PCI: 00:12.0
malloc Enter, size 668, free_mem_ptr 0001629c
malloc 0x0001629c
malloc Enter, size 668, free_mem_ptr 00016538
malloc 0x00016538
malloc Enter, size 668, free_mem_ptr 000167d4
malloc 0x000167d4
malloc Enter, size 668, free_mem_ptr 00016a70
malloc 0x00016a70
malloc Enter, size 668, free_mem_ptr 00016d0c
malloc 0x00016d0c
malloc Enter, size 668, free_mem_ptr 00016fa8
malloc 0x00016fa8
malloc Enter, size 668, free_mem_ptr 00017244
malloc 0x00017244
malloc Enter, size 668, free_mem_ptr 000174e0
malloc 0x000174e0
PNP: 002e.4 enabled
PNP: 002e.a enabled
PNP: 002e.e enabled
PNP: 002e.f disabled
PNP: 002e.10 enabled
PNP: 002e.12 enabled
PNP: 002e.0 enabled
PNP: 002e.1 enabled
PNP: 002e.2 enabled
PNP: 002e.3 enabled
PNP: 002e.5 enabled
PNP: 002e.6 enabled
PNP: 002e.7 enabled
PNP: 002e.8 enabled
scan_static_bus for PCI: 00:12.0 done
PCI: pci_scan_bus returning with max=000
scan_static_bus for Root Device done
done
Allocating resources...
Reading resources...
Root Device compute_allocate_io: base: 00000400 size: 00000000 align: 0 gran: 0
Root Device read_resources bus 0 link: 0
northbridge.c:pci_domain_read_resources()
PCI_DOMAIN: 0000 read_resources bus 0 link: 0
PCI_DOMAIN: 0000 read_resources bus 0 link: 0 done
Root Device read_resources bus 0 link: 0 done
PCI: 00:0c.0 10 *  [0x00000400 - 0x000004ff] io
PCI: 00:12.2 20 *  [0x00000800 - 0x0000087f] io
Root Device compute_allocate_io: base: 00000880 size: 00000480 align: 8 gran: 0
done
Root Device compute_allocate_mem: base: 00000000 size: 00000000 align: 0 gran: 0

Root Device read_resources bus 0 link: 0
Root Device read_resources bus 0 link: 0 done
PCI: 00:12.4 10 *  [0x00000000 - 0x00000fff] mem
PCI: 00:13.0 10 *  [0x00001000 - 0x00001fff] mem
PCI: 00:0c.0 14 *  [0x00002000 - 0x000020ff] mem
PCI: 00:12.3 10 *  [0x00003000 - 0x0000307f] mem
Root Device compute_allocate_mem: base: 00003080 size: 00003080 align: 12 gran:
0 done
Done reading resources.
Setting resources...
Root Device compute_allocate_io: base: 00001000 size: 00000480 align: 8 gran: 0
Root Device read_resources bus 0 link: 0
Root Device read_resources bus 0 link: 0 done
PCI: 00:0c.0 10 *  [0x00001000 - 0x000010ff] io
PCI: 00:12.2 20 *  [0x00001400 - 0x0000147f] io
Root Device compute_allocate_io: base: 00001480 size: 00000480 align: 8 gran: 0
done
Root Device compute_allocate_mem: base: febfc000 size: 00003080 align: 12 gran:
0
Root Device read_resources bus 0 link: 0
Root Device read_resources bus 0 link: 0 done
PCI: 00:12.4 10 *  [0xfebfc000 - 0xfebfcfff] mem
PCI: 00:13.0 10 *  [0xfebfd000 - 0xfebfdfff] mem
PCI: 00:0c.0 14 *  [0xfebfe000 - 0xfebfe0ff] mem
PCI: 00:12.3 10 *  [0xfebff000 - 0xfebff07f] mem
Root Device compute_allocate_mem: base: febff080 size: 00003080 align: 12 gran:
0 done
Root Device assign_resources, bus 0 link: 0
BC_DRAM_TOP = 0x07bfffff
MC_GBASE_ADD = 0x000000f8
I would set ram size to 124 Mbytes
PCI_DOMAIN: 0000 assign_resources, bus 0 link: 0
PCI: 00:0c.0 10 <- [0x0000001000 - 0x00000010ff] io
PCI: 00:0c.0 14 <- [0x00febfe000 - 0x00febfe0ff] mem
PCI: 00:12.2 20 <- [0x0000001400 - 0x000000147f] io
PCI: 00:12.3 10 <- [0x00febff000 - 0x00febff07f] mem
PCI: 00:12.4 10 <- [0x00febfc000 - 0x00febfcfff] mem
PCI: 00:13.0 10 <- [0x00febfd000 - 0x00febfdfff] mem
PCI_DOMAIN: 0000 assign_resources, bus 0 link: 0
Root Device assign_resources, bus 0 link: 0
Done setting resources.
Done allocating resources.
Enabling resources...
PCI: 00:00.0 cmd <- 147
PCI: 00:0c.0 cmd <- 143
cs5530.c: cs5530_pci_dev_enable_resources()
PCI: 00:12.0 cmd <- 14f
PNP: 002e.a missing enable_resources
PNP: 002e.e missing enable_resources
PNP: 002e.10 missing enable_resources
PNP: 002e.12 missing enable_resources
PCI: 00:12.2 cmd <- 141
PCI: 00:12.3 subsystem <- 00/00
PCI: 00:12.3 cmd <- 142
PCI: 00:12.4 subsystem <- 00/00
PCI: 00:12.4 cmd <- 142
PCI: 00:13.0 subsystem <- 00/00
PCI: 00:13.0 cmd <- 142
done.
Initializing devices...
Root Device init
PCI: 00:00.0 init
northbridge: northbridge_init()
Calling enable_cache()
PCI: 00:12.0 init
cs5530: southbridge_init
PNP: 002e.4 init
PCI: 00:12.2 init
cs5530_ide: ide_init
PCI: 00:12.3 init
PCI: 00:12.4 init
PCI: 00:13.0 init
PCI: 00:0c.0 init
PNP: 002e.0 init
PNP: 002e.1 init
PNP: 002e.2 init
PNP: 002e.3 init
PNP: 002e.5 init
PNP: 002e.6 init
PNP: 002e.7 init
PNP: 002e.8 init
Devices initialized
Copying IRQ routing tables to 0xf0000...done.
Verifing copy of IRQ routing tables at 0xf0000...done
Checking IRQ routing table consistency...
check_pirq_routing_table() - irq_routing_table located at: 0x000f0000
/home/eyal/LinuxBIOSv2/src/arch/i386/boot/pirq_routing.c:    36:check_pirq_routi
ng_table() - checksum is: 0x2d but should be: 0x63
done.
Moving GDT to 0x500...ok
Adjust low_table_end from 0x00000530 to 0x00001000
Adjust rom_table_end from 0x000f0400 to 0x00100000
Wrote linuxbios table at: 00000530 - 000006b4  checksum 18c4

Welcome to elfboot, the open sourced starter.
January 2002, Eric Biederman.
Version 1.3

rom_stream: 0xfffe0000 - 0xfffeffff
Found ELF candidate at offset 0
header_offset is 0
Try to load at offset 0x0
malloc Enter, size 32, free_mem_ptr 0001777c
malloc 0x0001777c
New segment addr 0x100000 size 0x20e80 offset 0xc0 filesize 0x6ec8
(cleaned up) New segment addr 0x100000 size 0x20e80 offset 0xc0 filesize 0x6ec8
lb: [0x0000000000004000, 0x000000000001a000)
malloc Enter, size 32, free_mem_ptr 0001779c
malloc 0x0001779c
New segment addr 0x120e80 size 0x48 offset 0x6fa0 filesize 0x48
(cleaned up) New segment addr 0x120e80 size 0x48 offset 0x6fa0 filesize 0x48
lb: [0x0000000000004000, 0x000000000001a000)
Dropping non PT_LOAD segment
Dropping non PT_LOAD segment
Loading Segment: addr: 0x0000000000100000 memsz: 0x0000000000020e80 filesz: 0x00
00000000006ec8
[ 0x0000000000100000, 0000000000106ec8, 0x0000000000120e80) <- 00000000000000c0
Clearing Segment: addr: 0x0000000000106ec8 memsz: 0x0000000000019fb8
Loading Segment: addr: 0x0000000000120e80 memsz: 0x0000000000000048 filesz: 0x00
00000000000048
[ 0x0000000000120e80, 0000000000120ec8, 0x0000000000120ec8) <- 0000000000006fa0
Loaded segments
verified segments
closed down stream
Jumping to boot code at 0x10513c
entry    = 0x0010513c
lb_start = 0x00004000
lb_size  = 0x00016000
adjust   = 0x07be6000
buffer   = 0x07bd4000
     elf_boot_notes = 0x00010280
adjusted_boot_notes = 0x07bf6280
FILO version 0.4.2 (eyal at mainmachine) Sun Jul  1 06:26:04 IDT 2007
Press <Enter> for default boot, or <Esc> for boot prompt... timed out
boot: hda1:/vmlinuz root=/dev/hda1 console=tty0 console=ttyS0,115200
hda: LBA 40GB: ST340810A
Mounted ext2fs
Found Linux version 2.6.21.5 (eyal at mainmachine) #5 PREEMPT Thu Jul 5 11:50:44 ID
T 2007 bzImage.
Loading kernel... ok
Jumping to entry point...


More information about the coreboot mailing list