This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Serial8250 kernel panic!

Other Parts Discussed in Thread: DM3730

Hi!

 

I have a big problem: the serial8250_mem_init() function encounters a kernel panic and I don't know why :-(  If I disable the serial8250, then there is a warning: unable to open initial console or something like that. Do you have any suggestions?

 

Kind regards!

 

VAR-OM3xxx # printenv
baudrate=115200
bootfile=uImage
usbtty=cdc_acm
console=ttyS2,115200n8
loadbootscript=fatload mmc 0 ${loadaddr} boot.scr
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
ethact=smc911x-0
bootargs=mem=80M@0x80000000 mem=128M@0x88000000 console=ttyS2,115200n8 noinitrd root=/dev/mmcblk0p1 rw rootfstype=ext3 rootwait ip=192.168.0.50 ethaddr=$(e)
bootdelay=1
loadaddr=0x80000000
ip=192.168.0.50
kernel_mmc=echo Loading Kernel from mmc ...; mmc init; fatload mmc 1:${mmc_part_boot} ${loadaddr} ${bootfile}
varmem=mem=80M@0x80000000 mem=128M@0x88000000 noinitrd
mmc_part_boot=4
kernel_nand=echo Loading Kernel from nand ...; nand read.i ${loadaddr} 280000 300000
bootcmd=run get_kernel; run get_bootargs; bootm ${loadaddr}
bootargs_nand=echo Loading FS from nand ...; setenv bootargs ${varmem} console=${console} root=/dev/mtdblock4 rw rootfstype=jffs2 ip=${ip} ethaddr=${ethadd0
get_bootargs=run bootargs_mmc
filesize=25777C
get_kernel=run kernel_mmc
bootargs_mmc=echo Loading FS from mmc 1:${mmc_part_fs} ...; setenv bootargs ${varmem} console=${console} root=/dev/mmcblk0p${mmc_part_fs} rw rootfstype=ext0
mmc_part_fs=2
stdin=serial
stdout=serial
stderr=serial

Environment size: 1251/131068 bytes
VAR-OM3xxx #

 

 

 

Starting kernel ...

Uncompressing Linux.........................................................................................................................................
<5>Linux version 2.6.31-rc7-rt20-omap1-06333-g461437d-dirty (user@ubuntu) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #113 PREEMPT RT Fri Aug 5 05:11
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: OMAP3 EVM
Memory policy: ECC disabled, Data cache writeback
<7>On node 0 totalpages: 53248
<7>free_area_init_node: node 0, pgdat c044a29c, node_mem_map c046d000
<7>  Normal zone: 512 pages used for memmap
<7>  Normal zone: 0 pages reserved
<7>  Normal zone: 52736 pages, LIFO batch:15
<6>OMAP3500  ()
<6>SRAM: Mapped pa 0x40200000 to va 0xe3000000 size: 0x100000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 52736
<5>Kernel command line: mem=80M@0x80000000 mem=128M@0x88000000 noinitrd console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait ip=192.168.00
PID hash table entries: 1024 (order: 10, 4096 bytes)
<6>Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
<6>Memory: 80MB 128MB = 208MB total
<5>Memory: 206268KB available (3856K code, 387K data, 132K init, 0K highmem)
Real-Time Preemption Support (C) 2004-2007 Ingo Molnar
<5>Preemptible RCU implementation.
<6>NR_IRQS:402
<3>clock: init parent: could not find regval 5 for clock gfx_l3_fck
<3>clock: init parent: could not find regval 0 for clock usb_l4_ick
<3>clock: Could not find parent clock gfx_l3_ck in clksel array of clock gfx_l3_fck
<3>clock: Could not find fieldval 0 for clock usb_l4_ick parent l4_ick
<6>Clocking rate (Crystal/Core/MPU): 26.0/400/800 MHz
<6>IVA2 clocking rate: 260 MHz
<6>Reprogramming SDRC clock to 400000000 Hz
<3>dpll3_m2_clk rate change failed: -22
<6>GPMC revision 5.0
<6>IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts
<6>Total of 96 interrupts on 1 active controller
<6>OMAP34xx GPIO hardware version 2.5
<6>OMAP clockevent source: GPTIMER1 at 32768 Hz
Console: colour dummy device 80x30
<6>Calibrating delay loop... <c>799.29 BogoMIPS (lpj=3121152)
Mount-cache hash table entries: 512
<6>CPU: Testing write buffer coherency: ok
<6>regulator: core version 0.5
<6>NET: Registered protocol family 16
<4>MUX: setup AF9_34XX_GPIO22 (0xd80025ec): 0x010c -> 0x011c
<4>MUX: setup U3_34XX_GPIO61 (0xd80020c8): 0x0118 -> 0x011c
<4>MUX: setup AH14_34XX_GPIO21 (0xd80025ea): 0x010c -> 0x011c
<4>omap_hsmmc_reset: Unable to enable clocks for MMC2, cannot reset.
<3>omap_init_mbox: platform not supported
<3>twl4030: client 1 is not initialized
<3>twl4030: client 1 is not initialized
<4>MUX: setup AA21_34XX_GPIO157 (0xd800218e): 0x010f -> 0x011c
<4>MUX: setup C23_34XX_GPIO98 (0xd8002114): 0x0004 -> 0x011c
<6>omap3evmdc: Driver registration complete
<6>OMAP DMA hardware revision 5.0
bio: create slab <bio-0> at 0
<6>i2c_omap i2c_omap.1: bus 1 rev4.0 at 2600 kHz
<6>twl4030: PIH (irq 7) chaining IRQs 368..375
<6>twl4030: power (irq 373) chaining IRQs 376..383
<6>twl4030: gpio (irq 368) chaining IRQs 384..401
<4>MUX: setup L8_34XX_GPIO63 (0xd80020ce): 0x0118 -> 0x0104
<6>regulator: VMMC1: 1850 <--> 3150 mV normal standby
<6>regulator: VDAC: 1800 mV normal standby
<6>regulator: VPLL2: 1800 mV normal standby
<6>i2c_omap i2c_omap.2: bus 2 rev4.0 at 400 kHz
<6>i2c_omap i2c_omap.3: bus 3 rev4.0 at 400 kHz
<5>SCSI subsystem initialized
<7>libata version 3.00 loaded.
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<6>Bluetooth: Core ver 2.15
<6>NET: Registered protocol family 31
<6>Bluetooth: HCI device and connection manager initialized
<6>Bluetooth: HCI socket layer initialized
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
<6>TCP established hash table entries: 8192 (order: 4, 65536 bytes)
<6>TCP bind hash table entries: 8192 (order: 6, 458752 bytes)
<6>TCP: Hash tables configured (established 8192 bind 8192)
<6>TCP reno registered
<6>NET: Registered protocol family 1
<6>OMAP35x Linux PSP version 03.00.00.02 (OMAP3EVM)
<4>NetWinder Floating Point Emulator V0.97 (double precision)
<5>VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
<6>JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
<6>msgmni has been set to 403
<6>alg: No test for stdrng (krng)
<6>io scheduler noop registered
<6>io scheduler anticipatory registered (default)
<6>io scheduler deadline registered
<6>io scheduler cfq registered
<6>Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
<1>Unhandled fault: external abort on non-linefetch (0x1028) at 0xd806a000
Internal error: : 1028 [#1] PREEMPT
<d>Modules linked in:
CPU: 0    Not tainted  (2.6.31-rc7-rt20-omap1-06333-g461437d-dirty #113)
PC is at mem_serial_in+0xc/0x14
LR is at serial8250_config_port+0x864/0xb04
pc : [<c01d8c20>]    lr : [<c01da4f4>]    psr: 00000013
sp : cf821d20  ip : 00000002  fp : 00000003
r10: 00000060  r9 : fffffffe  r8 : 00000700
r7 : 00000700  r6 : 00000001  r5 : 00000003  r4 : c045d740
r3 : d806a000  r2 : 00000000  r1 : 00000000  r0 : c045d740
Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c5387d  Table: 80004019  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xcf8202e8)
Stack: (0xcf821d20 to 0xcf822000)
1d20: c045d740 c045d740 cf8a8800 c043eee4 02dc6c00 cf8a8974 d806a000 00000048
1d40: 00000000 c01d67f0 00000000 cf821d7c cfa70980 c043eee4 00000000 c02ffcd0
1d60: cf807000 cfa70980 c043eee4 c00a7214 cfa70980 cf821d74 cf821d74 00000000
1d80: cf8ab024 cf8ab024 c01a8948 c01a9660 0000000d cf8ab000 00000000 c02ffc04
1da0: 00000000 c045d740 cf821e0c 00000000 02dc6c00 00000080 d806a000 00000048
1dc0: 00000000 c01db634 00000000 c0410694 00000000 c0410248 c0410250 00000000
1de0: 00000000 00000000 00000000 c02fa2e4 00000000 cf820000 c042d2ec c02fff84
1e00: c042e31c 40000013 c042e2ec 00000000 00000000 00000000 00000000 00000000
1e20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1e40: 00000000 d806a000 00000000 00000000 00000048 00000080 02dc6c00 00000000
1e60: 00020200 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1e80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1ea0: 00000000 11000000 00000000 00000000 00000000 00000000 00000000 00000000
1ec0: 4806a000 c0410250 00000000 c04101f8 c0410250 c0410284 c043efec c043efec
1ee0: 00000000 c01e094c c01e0934 c01dfc64 00000000 c0410250 c0410284 c043efec
1f00: 00000000 c01dfd70 c043efec 00000000 c01dfd10 c01df568 cf816a6c cf835344
1f20: c043efec cf8aa860 c043f3f0 c01deed8 c0391835 00000001 cf821f28 c043efec
1f40: 00000005 cf8ab208 00000000 00000000 00000000 c01e0040 c045db30 00000005
1f60: cf8ab208 00000000 00000000 c0019c54 c00238ec c0019b64 00000000 c00292cc
1f80: 00000000 c00ed3b4 cf821fb4 c039833b 00008100 0000024e cf821fc4 cf875220
1fa0: cf821fc4 0000015f c04570bc c00ed508 c039833b cf8752e0 c042a208 c00816bc
1fc0: 00000000 00313533 00000000 00000000 00000000 c00238ec 00000000 00000000
1fe0: 00000000 00000000 00000000 c0008578 00000000 c002aec4 ffffffff ffffffff
[<c01d8c20>] (mem_serial_in+0xc/0x14) from [<c01da4f4>] (serial8250_config_port+0x864/0xb04)
[<c01da4f4>] (serial8250_config_port+0x864/0xb04) from [<c01d67f0>] (uart_add_one_port+0x124/0x31c)
[<c01d67f0>] (uart_add_one_port+0x124/0x31c) from [<c01db634>] (serial8250_register_port+0x1b4/0x1e4)
[<c01db634>] (serial8250_register_port+0x1b4/0x1e4) from [<c02fa2e4>] (serial8250_probe+0xb4/0x130)
[<c02fa2e4>] (serial8250_probe+0xb4/0x130) from [<c01e094c>] (platform_drv_probe+0x18/0x1c)
[<c01e094c>] (platform_drv_probe+0x18/0x1c) from [<c01dfc64>] (driver_probe_device+0xa0/0x14c)
[<c01dfc64>] (driver_probe_device+0xa0/0x14c) from [<c01dfd70>] (__driver_attach+0x60/0x84)
[<c01dfd70>] (__driver_attach+0x60/0x84) from [<c01df568>] (bus_for_each_dev+0x44/0x74)
[<c01df568>] (bus_for_each_dev+0x44/0x74) from [<c01deed8>] (bus_add_driver+0x9c/0x20c)
[<c01deed8>] (bus_add_driver+0x9c/0x20c) from [<c01e0040>] (driver_register+0xa8/0x134)
[<c01e0040>] (driver_register+0xa8/0x134) from [<c0019c54>] (serial8250_init+0xf0/0x138)
[<c0019c54>] (serial8250_init+0xf0/0x138) from [<c00292cc>] (do_one_initcall+0x54/0x18c)
[<c00292cc>] (do_one_initcall+0x54/0x18c) from [<c0008578>] (kernel_init+0x98/0x198)
[<c0008578>] (kernel_init+0x98/0x198) from [<c002aec4>] (kernel_thread_exit+0x0/0x8)
Code: e8bd8010 e5d02055 e5903038 e1a02211 (e7d20003)
<4>---[ end trace 2a5dc327da455f31 ]---
<0>Kernel panic - not syncing: Attempted to kill init!

  • The function serial_mem_init() maps some addresses ... Maybe there is a conflict with the addresses? Because I use a OMAP37 module an have the 2.6.31-rt patch? So maybe the stuff for the OMAP37 is not implemented in the rt patch?

  • Hi,

    I'm having a similar issue on a DM3730 board. Were you able to get this resolved?

    <6>Serial: 8250/16550 driver nr_uarts:4, UART_NR:4 IRQ sharing enabled
    <1>Unhandled fault: external abort on non-linefetch (0x1028) at 0xd806a000
    Internal error: : 1028 [#1] PREEMPT
    Modules linked in:
    CPU: 0    Not tainted  (2.6.27.47-WR1.0.0ao_standard #76)
    PC is at serial_in+0x6c/0xb0
    LR is at serial8250_config_port+0x7d0/0xa7c
    pc : [<c01ffd48>]    lr : [<c02019f8>]    psr: 80000093
    sp : cf81dc58  ip : cf81dc68  fp : cf81dc64
    r10: 20000013  r9 : 00000003  r8 : 00000003
    r7 : c04843c4  r6 : 00000060  r5 : 00000060  r4 : 00000060
    r3 : d806a000  r2 : 00000002  r1 : 00000000  r0 : c04843c4
    Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
    Control: 00c5387d  Table: 80004018  DAC: 00000017
    Process swapper (pid: 1, stack limit = 0xcf81c2e0)
    Stack: (0xcf81dc58 to 0xcf81e000)
    dc40:                                                       cf81dc9c cf81dc68
    dc60: c02019f8 c01ffce8 00000001 fffffffe c01bf964 00000000 00000002 00000002
    dc80: c04843c4 c046d4e0 cf84a600 c04843c4 cf81dd24 cf81dca0 c01fd004 c0201234
    dca0: cf81dcbc cf81dcb0 c020402c c01be428 c045d860 cf84a618 c0205118 c020401c
    dcc0: cfb51000 c04843c4 cf81dcf4 cf81dcd8 c0205168 c02050a8 c00a5818 00400040
    dce0: 00000001 cf84a618 cf81dd04 cf81dcf8 c01e6290 c020513c cf81dd24 00000000
    dd00: 00000002 00000002 4806a000 c046d4e0 cf81dd88 c04843c4 cf81dd54 cf81dd28
    dd20: c0203598 c01fcf10 00000001 4806a000 c04441b0 cf81dd88 02dc6c00 00000000
    dd40: d806a000 00000000 cf81de3c cf81dd58 c035a570 c020344c 02dc6c00 00001740
    dd60: c0703dbc c0111198 cf8460c0 cf806000 cf81c000 c046d4e0 cf81dda4 11000000
    dd80: c0444070 c04440fc 00000000 d806a000 00000048 02dc6c00 00000000 00020200
    dda0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    ddc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    dde0: 11000000 00000000 00000000 00000000 00000000 00000000 00000000 4806a000
    de00: c0444070 00000000 c046d4e0 00000000 cf81de2c c0444070 c0444070 c045d8a8
    de20: cf857ba0 c045db70 00000000 00000000 cf81de4c cf81de40 c020908c c035a49c
    de40: cf81de74 cf81de50 c0208048 c0209078 cf81de74 cf81de60 c0444070 c044411c
    de60: c045d8a8 cf857ba0 cf81de94 cf81de78 c02081e4 c0207e88 00000000 c0208198
    de80: c045d8a8 cf857ba0 cf81dec4 cf81de98 c0207594 c02081a4 c045d8a8 cf803b38
    dea0: cf803b38 c04440b8 c01becbc 00000000 00000005 c045d8a8 cf81ded4 cf81dec8
    dec0: c0207c68 c0207554 cf81df04 cf81ded8 c0206d7c c0207c54 c03dfe40 00000005
    dee0: c045d8a8 c04846c4 00000005 c045d8a8 cfb5ce08 00000001 cf81df2c cf81df08
    df00: c02083d8 c0206c80 c04846c4 00000005 c045d7c0 cfb5ce08 00000001 00000000
    df20: cf81df3c cf81df30 c02094ac c020834c cf81df5c cf81df40 c001cc78 c0209440
    df40: c0029fa4 00000000 00000000 c001cb7c cf81dfd4 cf81df60 c003831c c001cb88
    df60: cf81df8c cf81df70 c010ba0c c010b6ec cf81df00 cf83f8a0 c010bb08 cf81df96
    df80: cf81dfbc cf81df90 c009af1c c010b994 cf81dfac 35335098 00000031 00000000
    dfa0: 00000192 00000000 00000000 00000000 cf81dfd4 c0029fa4 00000000 00000000
    dfc0: 00000000 00000000 cf81dff4 cf81dfd8 c00085c8 c00382d4 00000000 00000001
    dfe0: 00000000 00000000 00000000 cf81dff8 c006a784 c0008550 00000000 00000000
    Backtrace:
    [<c01ffcdc>] (serial_in+0x0/0xb0) from [<c02019f8>] (serial8250_config_port+0x7d0/0xa7c)
    [<c0201228>] (serial8250_config_port+0x0/0xa7c) from [<c01fd004>] (uart_add_one_port+0x100/0x368)
    [<c01fcf04>] (uart_add_one_port+0x0/0x368) from [<c0203598>] (serial8250_register_port+0x158/0x188)
    [<c0203440>] (serial8250_register_port+0x0/0x188) from [<c035a570>] (serial8250_probe+0xe0/0x16c)
    [<c035a490>] (serial8250_probe+0x0/0x16c) from [<c020908c>] (platform_drv_probe+0x20/0x24)
    [<c020906c>] (platform_drv_probe+0x0/0x24) from [<c0208048>] (driver_probe_device+0x1cc/0x31c)
    [<c0207e7c>] (driver_probe_device+0x0/0x31c) from [<c02081e4>] (__driver_attach+0x4c/0x70)
     r7:cf857ba0 r6:c045d8a8 r5:c044411c r4:c0444070
    [<c0208198>] (__driver_attach+0x0/0x70) from [<c0207594>] (bus_for_each_dev+0x4c/0x80)
     r7:cf857ba0 r6:c045d8a8 r5:c0208198 r4:00000000
    [<c0207548>] (bus_for_each_dev+0x0/0x80) from [<c0207c68>] (driver_attach+0x20/0x28)
     r6:c045d8a8 r5:00000005 r4:00000000
    [<c0207c48>] (driver_attach+0x0/0x28) from [<c0206d7c>] (bus_add_driver+0x108/0x280)
    [<c0206c74>] (bus_add_driver+0x0/0x280) from [<c02083d8>] (driver_register+0x98/0x120)
     r8:00000001 r7:cfb5ce08 r6:c045d8a8 r5:00000005 r4:c04846c4
    [<c0208340>] (driver_register+0x0/0x120) from [<c02094ac>] (platform_driver_register+0x78/0x94)
     r9:00000000 r8:00000001 r7:cfb5ce08 r6:c045d7c0 r5:00000005
    r4:c04846c4
    [<c0209434>] (platform_driver_register+0x0/0x94) from [<c001cc78>] (serial8250_init+0xfc/0x160)
    [<c001cb7c>] (serial8250_init+0x0/0x160) from [<c003831c>] (do_one_initcall+0x54/0x184)
     r7:c001cb7c r6:00000000 r5:00000000 r4:c0029fa4
    [<c00382c8>] (do_one_initcall+0x0/0x184) from [<c00085c8>] (kernel_init+0x84/0xf8)
     r8:00000000 r7:00000000 r6:00000000 r5:00000000 r4:c0029fa4
    [<c0008544>] (kernel_init+0x0/0xf8) from [<c006a784>] (do_exit+0x0/0x838)
     r4:00000000
    Code: e5903000 e5d33001 ea00000b e5903004 (e7d33001)
    <4>---[ end trace cbced1d2a0e635dd ]---
    <6>note: swapper[1] exited with preempt_count 2
    <0>Kernel panic - not syncing: Attempted to kill init!