LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   What went wrong? "Kernel panic - not syncing: Attempted to kill init!" (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/what-went-wrong-kernel-panic-not-syncing-attempted-to-kill-init-913701/)

Michal Krzyz 11-15-2011 02:21 PM

What went wrong? "Kernel panic - not syncing: Attempted to kill init!"
 
Hi All,
I have major problem with my beagleboard-xm image. I built all toolchain and images using buildroot, (Step by step from site: http://blog.galemin.com/2011/06/buil...eagleboard-xm/ but I unchecked OpenCV, mc, monit and valgrind packages - I think it doesn't matter).

and problem is that I have following output:

Code:

Texas Instruments X-Loader 1.51-mg00.1 (Nov 14 2011 - 21:50:07)
Unsupported Chip! 
Beagle unknown 0x02
Starting X-loader on MMC
Reading boot sector 
                                                                                                                                                                                                               
256372 Bytes Read from MMC
Starting OS Bootloader from MMC...
Starting OS Bootloader...

U-Boot 2011.03-mg00.1 (Nov 14 2011 - 21:49:13)

OMAP3630/3730-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
I2C:  ready
DRAM:  256 MiB
NAND:  0 MiB
MMC:  OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment

In:    serial       
Out:  serial       
Err:  serial       
Beagle unknown 0x02
No EEPROM on expansion board
Die ID #476a00029ff80000016830c406031014
Hit any key to stop autoboot:  0
reading boot.scr

199 bytes read
Running bootscript from mmc ...
## Executing script at 82000000
reading uImage

3289792 bytes read
## Booting kernel from Legacy Image at 80300000 ...
  Image Name:  Linux-2.6.39.1-mg00.1
  Image Type:  ARM Linux Kernel Image (uncompressed)
  Data Size:    3289728 Bytes = 3.1 MiB
  Load Address: 80008000
  Entry Point:  80008000
  Verifying Checksum ... OK
  Loading Kernel Ime ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 2.6.39.1-mg00.1 (michal@michal-G33M-S2L) (gcc version 4.5.2 (Sourcery G++ Lite 2011.03-41) ) #1 SMP Mon Nov 14 21:57:18 CET 2011
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: OMAP3 Beagle Board
[    0.000000] Reserving 14680064 bytes SDRAM for VRAM
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk )
[    0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
[    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/200/600 MHz
[    0.000000] Reprogramming SDRC clock to 200000000 Hz
[    0.000000] dpll3_m2_clk rate change failed: -22
[    0.000000] PERCPU: Embedded 7 pages/cpu @c0e10000 s8160 r8192 d12320 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 61440
[    0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/mmcblk0p2 rw rootwait
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 242MB = 242MB total
[    0.000000] Memory: 233180k/233180k available, 28964k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]    vector  : 0xffff0000 - 0xffff1000  (  4 kB)
[    0.000000]    fixmap  : 0xfff00000 - 0xfffe0000  ( 896 kB)
[    0.000000]    DMA    : 0xffc00000 - 0xffe00000  (  2 MB)
[    0.000000]    vmalloc : 0xd0800000 - 0xf8000000  ( 632 MB)
[    0.000000]    lowmem  : 0xc0000000 - 0xd0000000  ( 256 MB)
[    0.000000]    modules : 0xbf000000 - 0xc0000000  (  16 MB)
[    0.000000]      .init : 0xc0008000 - 0xc0052000  ( 296 kB)
[    0.000000]      .text : 0xc0052000 - 0xc0627118  (5973 kB)
[    0.000000]      .data : 0xc0628000 - 0xc06b1b08  ( 551 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU-based detection of stalled CPUs is disabled.
[    0.000000] NR_IRQS:410
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
[    0.000000] Total of 96 interrupts on 1 active controller
[    0.000000] omap_hwmod: gpt12_fck: missing clockdomain for gpt12_fck.
[    0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.000000] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000000] ... MAX_LOCK_DEPTH:          48
[    0.000000] ... MAX_LOCKDEP_KEYS:        8191
[    0.000000] ... CLASSHASH_SIZE:          4096
[    0.000000] ... MAX_LOCKDEP_ENTRIES:    16384
[    0.000000] ... MAX_LOCKDEP_CHAINS:      32768
[    0.000000] ... CHAINHASH_SIZE:          16384
[    0.000000]  memory used by lock dependency info: 3695 kB
[    0.000000]  per task-struct memory footprint: 1152 bytes
[    0.000915] Calibrating delay loop... 493.67 BogoMIPS (lpj=1929216)
[    0.077728] pid_max: default: 32768 minimum: 301
[    0.078491] Security Framework initialized
[    0.078857] Mount-cache hash table entries: 512
[    0.083251] CPU: Testing write buffer coherency: ok
[    0.085876] Brought up 1 CPUs
[    0.085876] SMP: Total of 1 processors activated (493.67 BogoMIPS).
[    0.087982] devtmpfs: initialized
[    0.099273] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l4_core
[    0.099304] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l4_per
[    0.099334] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l4_wkup
[    0.112976] omap_hwmod: i2c1: softreset failed (waited 10000 usec)
[    0.125091] omap_hwmod: i2c2: softreset failed (waited 10000 usec)
[    0.137084] omap_hwmod: i2c3: softreset failed (waited 10000 usec)
[    0.142974] print_constraints: dummy:
[    0.144317] NET: Registered protocol family 16
[    0.145477] GPMC revision 5.0
[    0.152069] omap_device: omap_gpio.0: new worst case activate latency 0: 91552
[    0.152862] OMAP GPIO hardware version 2.5
[    0.153503] OMAP GPIO hardware version 2.5
[    0.154113] OMAP GPIO hardware version 2.5
[    0.154693] OMAP GPIO hardware version 2.5
[    0.155303] OMAP GPIO hardware version 2.5
[    0.156158] OMAP GPIO hardware version 2.5
[    0.170227] omap_mux_init: Add partition: #1: core, flags: 0
[    0.172912] OMAP3 Beagle Rev: unknown 2
[    0.180908] omap_device: omap_uart.0: new worst case deactivate latency 0: 30517
[    0.180938] omap_device: omap_uart.0: new worst case activate latency 0: 30517
[    0.187225] Found NAND on CS0
[    0.187225] Registering NAND on CS0
[    0.188568] Unable to get DVI reset GPIO
[    0.188842] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.204284] OMAP DMA hardware revision 5.0
[    0.279296] bio: create slab <bio-0> at 0
[    0.288055] SCSI subsystem initialized
[    0.288696] omap_device: omap2_mcspi.1: new worst case activate latency 0: 30517
[    0.290191] omap_device: omap2_mcspi.1: new worst case deactivate latency 0: 30517
[    0.297027] usbcore: registered new interface driver usbfs
[    0.298553] usbcore: registered new interface driver hub
[    0.299224] usbcore: registered new device driver usb
[    0.301147] omap_device: omap_i2c.1: new worst case activate latency 0: 30517
[    0.301330] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz
[    0.311645] twl4030: PIH (irq 7) chaining IRQs 368..375
[    0.311859] twl4030: power (irq 373) chaining IRQs 376..383
[    0.313720] twl4030: gpio (irq 368) chaining IRQs 384..401
[    0.321746] print_constraints: VUSB1V5: 1500 mV normal standby
[    0.324218] print_constraints: VUSB1V8: 1800 mV normal standby
[    0.326293] print_constraints: VUSB3V1: 3100 mV normal standby
[    0.332305] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[    0.337554] print_constraints: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby
[    0.339721] print_constraints: VDAC: 1800 mV normal standby
[    0.341979] print_constraints: VDVI: 1800 mV normal standby
[    0.344604] print_constraints: VSIM: 1800 <--> 3000 mV at 1800 mV normal standby
[    0.345489] omap_i2c omap_i2c.3: bus 3 rev4.0 at 100 kHz
[    0.351898] Advanced Linux Sound Architecture Driver Version 1.0.24.
[    0.356628] Switching to clocksource 32k_counter
[    0.362670] Switched to NOHz mode on CPU #0
[    0.470520] NET: Registered protocol family 2
[    0.471343] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.473327] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.473815] TCP bind hash table entries: 8192 (order: 6, 294912 bytes)
[    0.478759] TCP: Hash tables configured (established 8192 bind 8192)
[    0.478881] TCP reno registered
[    0.478912] UDP hash table entries: 128 (order: 1, 10240 bytes)
[    0.479248] UDP-Lite hash table entries: 128 (order: 1, 10240 bytes)
[    0.480377] NET: Registered protocol family 1
[    0.481750] RPC: Registered udp transport module.
[    0.481781] RPC: Registered tcp transport module.
[    0.481811] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.482940] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.665496] VFS: Disk quotas dquot_6.5.2
[    0.665893] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.668731] JFFS2 version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.
[    0.670104] msgmni has been set to 455
[    0.673583] io scheduler noop registered
[    0.673614] io scheduler deadline registered
[    0.673858] io scheduler cfq registered (default)
[    0.740081] OMAP DSS rev 2.0
[    1.093261] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.101257] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
[    1.103210] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
[    1.104492] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
[    1.850616] console [ttyO2] enabled
[    1.855560] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3
[    1.900054] brd: module loaded
[    1.921112] loop: module loaded
[    1.925445] omap_device: omap_i2c.1: new worst case activate latency 0: 122070
[    1.934417] omap_device: omap_i2c.1: new worst case deactivate latency 0: 30517
[    1.949310] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.956512] omap2-nand driver initializing
[    1.961395] No NAND device found.
[    1.965087] No NAND device found.
[    1.969482] OneNAND driver initializing
[    1.982879] usbcore: registered new interface driver asix
[    1.989074] usbcore: registered new interface driver cdc_ether
[    1.996093] usbcore: registered new interface driver smsc95xx
[    2.002746] usbcore: registered new interface driver net1080
[    2.009307] usbcore: registered new interface driver cdc_subset
[    2.016113] usbcore: registered new interface driver zaurus
[    2.022094] cdc_ncm: 23-Apr-2011
[    2.026000] usbcore: registered new interface driver cdc_ncm
[    2.033874] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.052459] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[    4.063476] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
[    4.071960] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[    4.091583] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[    4.098815] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.105987] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.113555] usb usb1: Product: OMAP-EHCI Host Controller
[    4.119140] usb usb1: Manufacturer: Linux 2.6.39.1-mg00.1 ehci_hcd
[    4.125640] usb usb1: SerialNumber: ehci-omap.0
[    4.136108] hub 1-0:1.0: USB hub found
[    4.140319] hub 1-0:1.0: 3 ports detected
[    4.178619] usbcore: registered new interface driver cdc_wdm
[    4.184570] Initializing USB Mass Storage driver...
[    4.190399] usbcore: registered new interface driver usb-storage
[    4.196777] USB Mass Storage support registered.
[    4.203002] usbcore: registered new interface driver libusual
[    4.209869] usbcore: registered new interface driver usbtest
[    4.219543] mousedev: PS/2 mouse device common for all mice
[    4.227996] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    4.243499] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input1
[    4.261505] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[    4.268341] twl_rtc twl_rtc: Power up reset detected.
[    4.274475] twl_rtc twl_rtc: Enabling TWL-RTC.
[    4.280731] i2c /dev entries driver
[    4.288482] Driver for 1-wire Dallas network protocol.
[    4.295959] omap_device: omap_wdt.-1: new worst case activate latency 0: 30517
[    4.305450] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[    4.311920] omap_device: omap_wdt.-1: new worst case deactivate latency 0: 30517
[    4.320800] twl4030_wdt twl4030_wdt: Failed to register misc device
[    4.327514] twl4030_wdt: probe of twl4030_wdt failed with error -16
[    4.353668] usbcore: registered new interface driver usbhid
[    4.359710] usbhid: USB HID core driver
[    4.367767] usbcore: registered new interface driver snd-usb-audio
[    4.378326] OMAP3 Beagle/Devkit8000 SoC init
[    4.407714] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok
[    4.431274] ALSA device list:
[    4.434387]  #0: omap3beagle
[    4.437561] oprofile: hardware counters not available
[    4.442840] oprofile: using timer interrupt.
[    4.447998] TCP cubic registered
[    4.451477] Initializing XFRM netlink socket
[    4.456085] NET: Registered protocol family 17
[    4.460876] NET: Registered protocol family 15
[    4.465820] Registering the dns_resolver key type
[    4.471374] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    4.480651] ThumbEE CPU extension supported.
[    4.498474] Power Management for TI OMAP3.
[    4.503295] sr_init: No PMIC hook to init smartreflex
[    4.509094] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized
[    4.517944] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized
[    4.527404] SmartReflex Class3 initialized
[    4.567596] clock: disabling unused clocks to save power
[    4.600982] Console: switching to colour frame buffer device 80x30
[    4.623748] regulator_init_complete: VDAC: incomplete constraints, leaving on
[    4.633209] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    4.646331] Waiting for root device /dev/mmcblk0p2...
[    4.700988] mmc0: new high speed SDHC card at address 8168
[    4.710235] mmcblk0: mmc0:8168 SD04G 3.69 GiB (ro)
[    4.721801]  mmcblk0: p1 p2
[    4.756835] Unable to handle kernel NULL pointer dereference at virtual address 000002b4
[    4.765380] pgd = c0004000
[    4.768188] [000002b4] *pgd=00000000
[    4.772003] Internal error: Oops: 5 [#1] SMP
[    4.776458] last sysfs file:
[    4.779541] Modules linked in:
[    4.782745] CPU: 0    Not tainted  (2.6.39.1-mg00.1 #1)
[    4.788208] PC is at blkdev_get+0x234/0x2cc
[    4.792572] LR is at blkdev_get+0x234/0x2cc
[    4.796936] pc : [<c0155088>]    lr : [<c0155088>]    psr: 60000013
[    4.796936] sp : cec2de20  ip : cec2ddf8  fp : 00000000
[    4.808898] r10: 00000000  r9 : ce802710  r8 : ffffffe2
[    4.814361] r7 : 00000083  r6 : c068a1ac  r5 : ce802700  r4 : ce802040
[    4.821166] r3 : 00000000  r2 : 00000000  r1 : 00000448  r0 : c063d5c0
[    4.827972] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[    4.835601] Control: 10c5387d  Table: 80004019  DAC: 00000017
[    4.841613] Process swapper (pid: 1, stack limit = 0xcec2c2f8)
[    4.847686] Stack: (0xcec2de20 to 0xcec2e000)
[    4.852233] de20: c00547d4 ce802700 00000083 c068a1ac c068a1ac 00000002 ce802700 00000083
[    4.860778] de40: c068a1ac c068a1ac c068a1ac cef91560 00000000 c01551f8 00000000 00000083
[    4.869323] de60: 00008000 c012a3d0 c0124e38 000000d0 000069c0 00000004 cef91d60 cec00180
[    4.877838] de80: 000000d0 c0124e38 0000000a 00000000 cef91d80 00000000 c068a1ac 00008000
[    4.886383] dea0: 00008000 c0187b88 c0189eb4 00008000 cef91d80 c012ad14 c068a1ac 00008000
[    4.894927] dec0: cef91d80 cec13120 cef91d80 00008000 00000000 c068a1ac 00008000 c01415e0
[    4.903472] dee0: c068a1ac cef91560 00000000 cef91d80 00008000 c01418f4 00008000 00000020
[    4.912017] df00: cef91d80 00000000 00000000 c0143034 00000000 00000000 0000000a c010d600
[    4.920532] df20: 00000000 0000000a cec13940 ce8d5c80 cefc1000 c056cd6d 00008000 00000000
[    4.929077] df40: c056cd6d 00000000 00000000 c014337c 00000000 c056cd6d cec2df78 00000000
[    4.937622] df60: cef91d80 cef91560 00000013 cee78000 cee78000 00008000 c0036864 c0008d10
[    4.946136] df80: 00000000 cee78000 cee78000 c0008e7c 00306b6c 00000000 00000000 00000000
[    4.954681] dfa0: 00000080 c06c59ca 00000000 cee78000 0b300002 c0036879 c005cf8c 00000013
[    4.963226] dfc0: 00000000 c000912c 00000005 00000000 c06b1ba0 c00092b0 fffffffe 00000004
[    4.971771] dfe0: 00000000 c0035e20 c0008a98 c0008bac 00000000 c005cf8c ffff7fee 7fffff9f
[    4.980316] [<c0155088>] (blkdev_get+0x234/0x2cc) from [<c01551f8>] (blkdev_get_by_path+0x28/0x64)
[    4.989685] [<c01551f8>] (blkdev_get_by_path+0x28/0x64) from [<c012a3d0>] (mount_bdev+0x30/0x1a4)
[    4.998931] [<c012a3d0>] (mount_bdev+0x30/0x1a4) from [<c0187b88>] (ext3_mount+0x10/0x18)
[    5.007476] [<c0187b88>] (ext3_mount+0x10/0x18) from [<c012ad14>] (mount_fs+0x6c/0x168)
[    5.015838] [<c012ad14>] (mount_fs+0x6c/0x168) from [<c01415e0>] (vfs_kern_mount+0x4c/0x8c)
[    5.024566] [<c01415e0>] (vfs_kern_mount+0x4c/0x8c) from [<c01418f4>] (do_kern_mount+0x34/0xcc)
[    5.033660] [<c01418f4>] (do_kern_mount+0x34/0xcc) from [<c0143034>] (do_mount+0x644/0x6bc)
[    5.042388] [<c0143034>] (do_mount+0x644/0x6bc) from [<c014337c>] (sys_mount+0x84/0xc4)
[    5.050750] [<c014337c>] (sys_mount+0x84/0xc4) from [<c0008d10>] (do_mount_root+0x20/0xa8)
[    5.059387] [<c0008d10>] (do_mount_root+0x20/0xa8) from [<c0008e7c>] (mount_block_root+0xe4/0x1fc)
[    5.068725] [<c0008e7c>] (mount_block_root+0xe4/0x1fc) from [<c000912c>] (mount_root+0xa0/0xc0)
[    5.077819] [<c000912c>] (mount_root+0xa0/0xc0) from [<c00092b0>] (prepare_namespace+0x164/0x1c4)
[    5.087066] [<c00092b0>] (prepare_namespace+0x164/0x1c4) from [<c0008bac>] (kernel_init+0x114/0x154)
[    5.096618] [<c0008bac>] (kernel_init+0x114/0x154) from [<c005cf8c>] (kernel_thread_exit+0x0/0x8)
[    5.105865] Code: e5a01060 ebfd740b e59f008c eb0c380b (e59a32b4)
[    5.112365] ---[ end trace 825215ad82fd9157 ]---
[    5.117553] Kernel panic - not syncing: Attempted to kill init!

...and I don't know how to read it.

Please help me if it is possible.

Best Regards
Michal

fortran 11-16-2011 08:45 AM

It means it does not boot properly the boot source is corrupt.

Michal Krzyz 11-16-2011 11:23 AM

I have two partitions on uSD card:
FAT with:
MLO (x-loader),
u-boot,
boot.scr,
uImage,

and ext3 with unpacked rootfs (output fs from buildroot)

MLO and u-boot looks fine, but I am not sure about boot.scr, uImage and second partition (linux fs).

so You mean which part is probably corrupted.

Thanks for answer

Michal Krzyz 12-29-2011 04:47 AM

That was a problem with uImage. I copied it (only uImage file) from another Beagleboard project: Beagleboard Ubuntu and I left other files compiled with buildroot.

I do not know why uImage from buildroot seems to be corrupted. It could be nice if someone explain this situation, but it is not necessary from my project's point of view.


All times are GMT -5. The time now is 10:36 PM.