View previous topic :: View next topic |
Author |
Message |
BlackLodge Tux's lil' helper
Joined: 16 May 2004 Posts: 149 Location: TLS
|
Posted: Mon Nov 08, 2010 8:05 pm Post subject: Headless machine: kernel crash mounting root file system |
|
|
Hi,
First of all some hardware intro: The machine in which the kernel is running (or is trying to run!) is a headless machine with vortex86dx SoC. The CPU is 486 compatible so any PC binary should run withouth problems there. Including of course our beloved OS .
But I'm unable to run any kernel. It seems that is crashing when the root file system is being booted:
Quote: |
[ 0.000000] Linux version 2.6.35.4btplug-ready (root@ubuntu) (gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) ) #5 Mon Nov 8 00:49:11 CET 2010 (Chopin 2.6.35-22-BTplug)
[ 0.000000] CPU: vendor_id 'Vortex86 SoC' unknown, using generic init.
[ 0.000000] CPU: Your system may be unstable.
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
[ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 0000000020000000 (usable)
[ 0.000000] BIOS-e820: 00000000ff000000 - 0000000100000000 (reserved)
[ 0.000000] NX (Execute Disable) protection: approximated by x86 segment limits
[ 0.000000] DMI not present or invalid.
[ 0.000000] last_pfn = 0x20000 max_arch_pfn = 0x100000
[ 0.000000] init_memory_mapping: 0000000000000000-0000000020000000
[ 0.000000] RAMDISK: 1fd35000 - 1fff0000
[ 0.000000] 512MB LOWMEM available.
[ 0.000000] mapped low ram: 0 - 20000000 begin_of_the_skype_highlighting 0 - 20000000 end_of_the_skype_highlighting begin_of_the_skype_highlighting 0 - 20000000 end_of_the_skype_highlighting begin_of_the_skype_highlighting 0 - 20000000 end_of_the_skype_highlighting begin_of_the_skype_highlighting 0 - 20000000 end_of_the_skype_highlighting begin_of_the_skype_highlighting 0 - 20000000 end_of_the_skype_highlighting
[ 0.000000] low ram: 0 - 20000000
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0x00000001 -> 0x00001000
[ 0.000000] Normal 0x00001000 -> 0x00020000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[2] active PFN ranges
[ 0.000000] 0: 0x00000001 -> 0x0000009f
[ 0.000000] 0: 0x00000100 -> 0x00020000
[ 0.000000] Using APIC driver default
[ 0.000000] No local APIC present or hardware disabled
[ 0.000000] APIC: disable apic facility
[ 0.000000] APIC: switched to apic NOOP
[ 0.000000] Allocating PCI resources starting at 20000000 (gap: 20000000:df000000)
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129950
[ 0.000000] Kernel command line: root=/dev/sda1 pnpbios=off netconsole=4445@192.168.1.100/eth0,4444@192.168.1.150/00:15:C5:D0:06:A9 ro
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Initializing CPU#0
[ 0.000000] Subtract (21 early reservations)
[ 0.000000] #0 [0001000000 - 00015ce430] TEXT DATA BSS
[ 0.000000] #1 [001fd35000 - 001fff0000] RAMDISK
[ 0.000000] #2 [000009fc00 - 0000100000] BIOS reserved
[ 0.000000] #3 [00015cf000 - 00015d5000] BRK
[ 0.000000] #4 [0000007000 - 0000081000] PGTABLE
[ 0.000000] #5 [00015d5000 - 00019d5000] BOOTMEM
[ 0.000000] #6 [00015ce440 - 00015ce444] BOOTMEM
[ 0.000000] #7 [00015ce480 - 00015ce500] BOOTMEM
[ 0.000000] #8 [00015ce500 - 00015ce530] BOOTMEM
[ 0.000000] #9 [00019d5000 - 00019d6000] BOOTMEM
[ 0.000000] #10 [00015ce540 - 00015ce5e8] BOOTMEM
[ 0.000000] #11 [00015ce600 - 00015ce640] BOOTMEM
[ 0.000000] #12 [00015ce640 - 00015ce680] BOOTMEM
[ 0.000000] #13 [00015ce680 - 00015ce6c0] BOOTMEM
[ 0.000000] #14 [00015ce6c0 - 00015ce700] BOOTMEM
[ 0.000000] #15 [00015ce700 - 00015ce740] BOOTMEM
[ 0.000000] #16 [00015ce740 - 00015ce7a6] BOOTMEM
[ 0.000000] #17 [00015ce7c0 - 00015ce826] BOOTMEM
[ 0.000000] #18 [00019d6000 - 00019d8000] BOOTMEM
[ 0.000000] #19 [00019d8000 - 0001a18000] BOOTMEM
[ 0.000000] #20 [0001a18000 - 0001a38000] BOOTMEM
[ 0.000000] Memory: 510148k/524288k available (3052k kernel code, 13748k reserved, 1764k data, 372k init, 0k highmem)
[ 0.000000] virtual kernel memory layout:
[ 0.000000] fixmap : 0xfffa3000 - 0xfffff000 ( 368 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xfffa1000 ( 503 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] .init : 0xc14b5000 - 0xc1512000 ( 372 kB)
[ 0.000000] .data : 0xc12fb0e8 - 0xc14b44b4 (1764 kB)
[ 0.000000] .text : 0xc1000000 - 0xc12fb0e8 (3052 kB)
[ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU debugfs-based tracing is enabled.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:2304 nr_irqs:256
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] console [tty0] enabled
[ 0.000000] Fast TSC calibration using PIT
[ 0.000000] Detected 933.192 MHz processor.
[ 0.004018] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.38 BogoMIPS (lpj=3732768)
[ 0.004149] pid_max: default: 32768 minimum: 301
[ 0.004358] Security Framework initialized
[ 0.004604] AppArmor: AppArmor initialized
[ 0.004662] Yama: becoming mindful.
[ 0.005153] Mount-cache hash table entries: 512
[ 0.006118] Performance Events:
[ 0.006153] CPU: Vortex86 SoC 05/02 stepping 02
[ 0.008156] ftrace: converting mcount calls to 66 66 66 66 90
[ 0.008257] ftrace: allocating 16827 entries in 33 pages
[ 0.019145] devtmpfs: initialized
[ 0.030168] NET: Registered protocol family 16
[ 0.032371] PCI: PCI BIOS revision 3.00 entry at 0xf0031, last bus=0
[ 0.045161] bio: create slab <bio-0> at 0
[ 0.046279] vgaarb: loaded
[ 0.047294] SCSI subsystem initialized
[ 0.048439] usbcore: registered new interface driver usbfs
[ 0.048664] usbcore: registered new interface driver hub
[ 0.049018] usbcore: registered new device driver usb
[ 0.049634] PCI: Probing PCI hardware
[ 0.054278] pci 0000:00:07.0: default IRQ router [17f3:6031]
[ 0.055766] NetLabel: Initializing
[ 0.055827] NetLabel: domain hash size = 128
[ 0.055879] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.056123] NetLabel: unlabeled traffic allowed by default
[ 0.056245] Switching to clocksource tsc
[ 0.136740] AppArmor: AppArmor Filesystem Enabled
[ 0.154641] NET: Registered protocol family 2
[ 0.155160] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.156963] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.157626] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.157958] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.158025] TCP reno registered
[ 0.158079] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.158165] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.158666] NET: Registered protocol family 1
[ 0.432892] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.434486] audit: initializing netlink socket (disabled)
[ 0.434611] type=2000 audit(1009843207.428:1): initialized
[ 0.435170] Trying to unpack rootfs image as initramfs...
[ 0.443430] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[ 0.483010] VFS: Disk quotas dquot_6.5.2
[ 0.483692] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.497283] NTFS driver 2.1.29 [Flags: R/W].
[ 0.498359] fuse init (API version 7.14)
[ 0.499469] msgmni has been set to 996
[ 0.509341] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.509470] io scheduler noop registered
[ 0.509678] io scheduler cfq registered (default)
[ 0.515965] isapnp: Scanning for PnP cards...
[ 1.287793] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.433780] isapnp: No Plug & Play device found
[ 1.688674] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.775857] Freeing initrd memory: 2796k freed
[ 1.944264] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 1.960338] brd: module loaded
[ 1.966243] loop: module loaded
[ 1.968761] scsi0 : pata_rdc
[ 1.969578] scsi1 : pata_rdc
[ 1.970023] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xef00 irq 14
[ 1.970102] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xef08 irq 15
[ 1.975793] Fixed MDIO Bus: probed
[ 1.976645] r6040: RDC R6040 NAPI net driver,version 0.25 (20Aug2009)
[ 1.979105] netconsole: local port 4445
[ 1.979179] netconsole: local IP 192.168.1.100
[ 1.979233] netconsole: interface 'eth0'
[ 1.979285] netconsole: remote port 4444
[ 1.979338] netconsole: remote IP 192.168.1.150
[ 1.979395] netconsole: remote ethernet address 00:15:c5:d0:06:a9
[ 1.979466] netconsole: device eth0 not up yet, forcing it
[ 1.991719] netconsole: carrier detect appears untrustworthy, waiting 4 seconds
[ 2.136660] ata1.00: ATA-6: TOSHIBA MK4025GAS, KA100A, max UDMA/100
[ 2.136740] ata1.00: 78140160 sectors, multi 16: LBA
[ 2.136934] ata1.00: limited to UDMA/33 due to 40-wire cable
[ 2.144627] ata1.00: configured for UDMA/33
[ 2.145438] scsi 0:0:0:0: Direct-Access ATA TOSHIBA MK4025GA KA10 PQ: 0 ANSI: 5
[ 2.147329] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 2.148335] sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.2 GiB)
[ 2.149017] sd 0:0:0:0: [sda] Write Protect is off
[ 2.149347] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2.150859] sda: sda1 sda2 sda3
[ 2.216690] sd 0:0:0:0: [sda] Attached SCSI disk
[ 2.989014] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 4.057234] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 5.053437] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 6.002142] console [netcon0] enabled
[ 6.002205] netconsole: network logging started
[ 6.003022] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.003378] ehci_hcd 0000:00:0a.1: EHCI Host Controller
[ 6.004017] ehci_hcd 0000:00:0a.1: new USB bus registered, assigned bus number 1
[ 6.025042] ehci_hcd 0000:00:0a.1: irq 9, io mem 0xfefff800
[ 6.036975] ehci_hcd 0000:00:0a.1: USB 2.0 started, EHCI 1.00
[ 6.038207] hub 1-0:1.0: USB hub found
[ 6.038339] hub 1-0:1.0: 2 ports detected
[ 6.038843] ehci_hcd 0000:00:0b.1: EHCI Host Controller
[ 6.039464] ehci_hcd 0000:00:0b.1: new USB bus registered, assigned bus number 2
[ 6.057654] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 6.061043] ehci_hcd 0000:00:0b.1: irq 11, io mem 0xfefffc00
[ 6.072978] ehci_hcd 0000:00:0b.1: USB 2.0 started, EHCI 1.00
[ 6.074160] hub 2-0:1.0: USB hub found
[ 6.074288] hub 2-0:1.0: 2 ports detected
[ 6.074776] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 6.075077] ohci_hcd 0000:00:0a.0: OHCI Host Controller
[ 6.075671] ohci_hcd 0000:00:0a.0: new USB bus registered, assigned bus number 3
[ 6.075902] ohci_hcd 0000:00:0a.0: irq 7, io mem 0xfeffd000
[ 6.159912] hub 3-0:1.0: USB hub found
[ 6.160050] hub 3-0:1.0: 2 ports detected
[ 6.160546] ohci_hcd 0000:00:0b.0: OHCI Host Controller
[ 6.161185] ohci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 4
[ 6.161405] ohci_hcd 0000:00:0b.0: irq 10, io mem 0xfeffe000
[ 6.247866] hub 4-0:1.0: USB hub found
[ 6.248002] hub 4-0:1.0: 2 ports detected
[ 6.248459] Initializing USB Mass Storage driver...
[ 6.249018] usbcore: registered new interface driver usb-storage
[ 6.249100] USB Mass Storage support registered.
[ 6.249596] usbcore: registered new interface driver libusual
[ 6.249844] usbcore: registered new interface driver ums-alauda
[ 6.250087] usbcore: registered new interface driver ums-cypress
[ 6.250338] usbcore: registered new interface driver ums-datafab
[ 6.250582] usbcore: registered new interface driver ums-freecom
[ 6.250830] usbcore: registered new interface driver ums-isd200
[ 6.251076] usbcore: registered new interface driver ums-jumpshot
[ 6.251322] usbcore: registered new interface driver ums-karma
[ 6.251568] usbcore: registered new interface driver ums-onetouch
[ 6.251838] usbcore: registered new interface driver ums-sddr09
[ 6.252089] usbcore: registered new interface driver ums-sddr55
[ 6.252338] usbcore: registered new interface driver ums-usbat
[ 6.252894] PNP: No PS/2 controller found. Probing ports directly.
[ 6.255146] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 6.255263] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 6.256945] mice: PS/2 mouse device common for all mice
[ 6.258591] input: PC Speaker as /devices/platform/pcspkr/input/input0
[ 6.260291] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 6.260457] rtc0: alarms up to one day, 114 bytes nvram
[ 6.261922] device-mapper: uevent: version 1.0.3
[ 6.263216] device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
[ 6.263829] device-mapper: multipath: version 1.1.1 loaded
[ 6.263920] device-mapper: multipath round-robin: version 1.0.0 loaded
[ 6.267307] usbcore: registered new interface driver hiddev
[ 6.267588] usbcore: registered new interface driver usbhid
[ 6.267662] usbhid: USB HID core driver
[ 6.270432] TCP cubic registered
[ 6.272520] NET: Registered protocol family 10
[ 6.275375] lo: Disabled Privacy Extensions
[ 6.278854] NET: Registered protocol family 17
[ 6.279130] Using IPI Shortcut mode
[ 6.280553] registered taskstats version 1
[ 6.281477] rtc_cmos rtc_cmos: setting system clock to 2002-01-01 00:00:14 UTC (1009843214)
[ 6.282144] Freeing unused kernel memory: 372k freed
[ 6.284304] Write protecting the kernel text: 3056k
[ 6.284562] Write protecting the kernel read-only data: 1460k
[ 6.286105] Kernel panic - not syncing: Attempted to kill init!
[ 6.286222] Pid: 1, comm: init Not tainted 2.6.35.4btplug-ready #5
[ 6.286321] Call Trace:
[ 6.286408] [<c12f89dd>] ? printk+0x25/0x29
[ 6.286506] [<c12f894d>] panic+0x50/0xbb
[ 6.286588] [<c1025439>] do_exit+0x60/0x55b
[ 6.286687] [<c102597b>] do_group_exit+0x47/0x68
[ 6.286765] [<c102f545>] get_signal_to_deliver+0x2d1/0x2e1
[ 6.286880] [<c102e536>] ? complete_signal+0x109/0x110
[ 6.286966] [<c100320e>] ? do_invalid_op+0x0/0x80
[ 6.287062] [<c100218e>] do_signal+0x5d/0x4e8
[ 6.287137] [<c1002fe4>] ? do_trap+0x59/0xa6
[ 6.287248] [<c10860c3>] ? handle_mm_fault+0x264/0x50d
[ 6.287331] [<c10860c3>] ? handle_mm_fault+0x264/0x50d
[ 6.287442] [<c10a159f>] ? putname+0x29/0x32
[ 6.287533] [<c1015933>] ? do_page_fault+0x1f6/0x263
[ 6.287635] [<c1015961>] ? do_page_fault+0x224/0x263
[ 6.287715] [<c100320e>] ? do_invalid_op+0x0/0x80
[ 6.287811] [<c100262e>] do_notify_resume+0x15/0x67
[ 6.287890] [<c12fa13e>] work_notifysig+0x13/0x25
[ 6.287989] [<c100320e>] ? do_invalid_op+0x0/0x80
[ 7.057865] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
|
I find weird that aparently the PATA controller and the HD are recognized, even the partition table is read:
Quote: |
[ 2.145438] scsi 0:0:0:0: Direct-Access ATA TOSHIBA MK4025GA KA10 PQ: 0 ANSI: 5
[ 2.147329] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 2.148335] sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.2 GiB)
[ 2.149017] sd 0:0:0:0: [sda] Write Protect is off
[ 2.149347] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2.150859] sda: sda1 sda2 sda3
[ 2.216690] sd 0:0:0:0: [sda] Attached SCSI disk
|
But as said, all I get is a kernel crash when init is being launched.
Any idea what is going on? _________________ Installing gentoo in a Vortex86DX
Kernel: https://forums.gentoo.org/viewtopic-t-1133787.html
CFLAGS, CHOST: https://forums.gentoo.org/viewtopic-t-1130400.html |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23066
|
Posted: Tue Nov 09, 2010 3:15 am Post subject: |
|
|
Your init process was created, but then tried to exit. Exiting init is fatal. You need to get the messages produced by your init process to see why it exited.
Your kernel configuration looks very strange. You have multiple security frameworks enabled and NTFS support, none of which seem likely to be useful on a headless machine in this early state. |
|
Back to top |
|
|
BlackLodge Tux's lil' helper
Joined: 16 May 2004 Posts: 149 Location: TLS
|
Posted: Tue Nov 09, 2010 9:19 pm Post subject: |
|
|
I was checking the HD but I couldn't find any useful log (since filesystem is not mounted, I doubt any log can be written)
I also was searching for a config for get those messages via netconsole (this is the only way I have to access the machine in this early state) but no success.
Is there any other way to see init messages? _________________ Installing gentoo in a Vortex86DX
Kernel: https://forums.gentoo.org/viewtopic-t-1133787.html
CFLAGS, CHOST: https://forums.gentoo.org/viewtopic-t-1130400.html |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23066
|
Posted: Wed Nov 10, 2010 3:02 am Post subject: |
|
|
You might be able to extract messages from a serial console. Otherwise, it is time to give the machine a head. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|