AnsweredAssumed Answered

imx8m mini  uart4

Question asked by 扬 杨 on Jul 25, 2019
Latest reply on Jul 26, 2019 by igorpadykov

Uboot:2018.03

Kernel : 4.14.98

 

 

I tested it on the official imx8mmini evk. When I modified dts and added uart4, the system will crash.

The board we made also has this problem.

 

The added code is as follows:

 

pinctrl_uart4: uart4grp {
fsl,pins = <
MX8MM_IOMUXC_UART4_RXD_UART4_DCE_RX 0x140
MX8MM_IOMUXC_UART4_TXD_UART4_DCE_TX 0x140
>;
};


&uart4 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart4>;
assigned-clocks = <&clk IMX8MM_CLK_UART4_SRC>;
assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
status = "okay";
};

 

log:

[ 0.962367] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[ 0.981726] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.985327] NFS: Registering the id_resolver key type
[ 0.989843] Key type id_resolver registered
[ 0.994013] Key type id_legacy registered
[ 0.998253] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.004905] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 1.011461] 9p: Installing v9fs 9p2000 file system support
[ 1.020828] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 1.025449] io scheduler noop registered
[ 1.029488] io scheduler cfq registered (default)
[ 1.034157] io scheduler mq-deadline registered
[ 1.038632] io scheduler kyber registered
[ 1.052572] pwm-backlight lvds_backlight@0: lvds_backlight@0 supply power not found, using dummy regulator
[ 1.063797] imx-sdma 30bd0000.dma-controller: no iram assigned, using external mem
[ 1.070903] imx-sdma 30bd0000.dma-controller: Falling back to user helper
[ 1.073872] imx-sdma 302c0000.dma-controller: no iram assigned, using external mem
[ 1.087681] imx-sdma 302b0000.dma-controller: no iram assigned, using external mem
[ 1.098778] mxs-dma 33000000.dma-apbh: initialized
[ 1.102886] Bus freq driver module loaded
[ 1.110962] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.117301] SuperH (H)SCI(F) driver initialized
[ 1.120187] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 30, base_baud = 5000000) is a IMX
[ 1.128872] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 31, base_baud = 5000000) is a IMX
[ 1.137451] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 32, base_baud = 1500000) is a IMX
[ 1.148423] console [ttymxc1] enabled
[ 1.148423] console [ttymxc1] enabled
[ 1.152917] bootconsole [ec_imx6q0] disabled
[ 1.152917] bootconsole [ec_imx6q0] disabled
[ 1.162380] Synchronous External Abort: synchronous external abort (0x96000210) at 0xffff00000bbe0080
[ 1.173488] Internal error: : 96000210 [#1] PREEMPT SMP
[ 1.178712] Modules linked in:
[ 1.181772] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.14.98-myd-imx8mm-test-dev+g1ea6424 #1
[ 1.190295] Hardware name: FSL i.MX8MM EVK board (DT)
[ 1.195345] task: ffff8000763b0000 task.stack: ffff000008078000
[ 1.201273] PC is at serial_imx_probe+0x2f0/0x618
[ 1.205976] LR is at serial_imx_probe+0x2e0/0x618
[ 1.210679] pc : [<ffff00000862d178>] lr : [<ffff00000862d168>] pstate: 40000045
[ 1.218072] sp : ffff00000807bbf0
[ 1.221385] x29: ffff00000807bbf0 x28: ffff00000962cad8
[ 1.226699] x27: 0000000000000007 x26: ffff800076d8eb00
[ 1.232012] x25: 00000000fffffffa x24: 00000000fffffffa
[ 1.237325] x23: 0000000000000024 x22: ffff8000767b4800
[ 1.242638] x21: ffff8000767b4810 x20: 0000000000000000
[ 1.247951] x19: ffff800076dbd418 x18: 0000000000000001
[ 1.253264] x17: 0000000000000001 x16: 0000000000000000
[ 1.258577] x15: ffffffffffffffff x14: ffffffffffffffff
[ 1.263890] x13: 0000000000000038 x12: 0101010101010101
[ 1.269203] x11: 0000000000000020 x10: 0101010101010101
[ 1.274516] x9 : 0000000000000000 x8 : ffff800076d8ec80
[ 1.279828] x7 : 0000000000000000 x6 : 000000000000003f
[ 1.285141] x5 : 0000000000000000 x4 : ffff00000984a220
[ 1.290454] x3 : 0000000000000000 x2 : ffff00000bbe0080
[ 1.295766] x1 : ffff8000763b0000 x0 : ffff00000bbe0000
[ 1.301080] Process swapper/0 (pid: 1, stack limit = 0xffff000008078000)
[ 1.307779] Call trace:
[ 1.310226] Exception stack(0xffff00000807bab0 to 0xffff00000807bbf0)
[ 1.316667] baa0: ffff00000bbe0000 ffff8000763b0000
[ 1.324497] bac0: ffff00000bbe0080 0000000000000000 ffff00000984a220 0000000000000000
[ 1.332326] bae0: 000000000000003f 0000000000000000 ffff800076d8ec80 0000000000000000
[ 1.340155] bb00: 0101010101010101 0000000000000020 0101010101010101 0000000000000038
[ 1.347985] bb20: ffffffffffffffff ffffffffffffffff 0000000000000000 0000000000000001
[ 1.355814] bb40: 0000000000000001 ffff800076dbd418 0000000000000000 ffff8000767b4810
[ 1.363643] bb60: ffff8000767b4800 0000000000000024 00000000fffffffa 00000000fffffffa
[ 1.371473] bb80: ffff800076d8eb00 0000000000000007 ffff00000962cad8 ffff00000807bbf0
[ 1.379303] bba0: ffff00000862d168 ffff00000807bbf0 ffff00000862d178 0000000040000045
[ 1.387133] bbc0: ffff00000807bbe0 ffff00000855cff4 ffffffffffffffff 0000000000000000
[ 1.394961] bbe0: ffff00000807bbf0 ffff00000862d178
[ 1.399840] [<ffff00000862d178>] serial_imx_probe+0x2f0/0x618
[ 1.405589] [<ffff0000086dac18>] platform_drv_probe+0x58/0xb8
[ 1.411337] [<ffff0000086d8ff8>] driver_probe_device+0x210/0x2d0
[ 1.417343] [<ffff0000086d9174>] __driver_attach+0xbc/0xc0
[ 1.422831] [<ffff0000086d7154>] bus_for_each_dev+0x4c/0x98
[ 1.428403] [<ffff0000086d8910>] driver_attach+0x20/0x28
[ 1.433714] [<ffff0000086d8460>] bus_add_driver+0x1b8/0x228
[ 1.439287] [<ffff0000086d9b10>] driver_register+0x60/0xf8
[ 1.444772] [<ffff0000086dab68>] __platform_driver_register+0x40/0x48
[ 1.451217] [<ffff00000954cf28>] imx_serial_init+0x38/0x5c
[ 1.456705] [<ffff000008083c90>] do_one_initcall+0x38/0x128
[ 1.462280] [<ffff000009500d0c>] kernel_init_freeable+0x188/0x22c
[ 1.468377] [<ffff000008e6a538>] kernel_init+0x10/0x108
[ 1.473602] [<ffff000008084ed8>] ret_from_fork+0x10/0x18
[ 1.478917] Code: 2a0003f4 35001620 f9400a60 91020002 (b9400041)
[ 1.485021] ---[ end trace fc43bd6dd062a194 ]---
[ 1.489672] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 1.489672]
[ 1.498806] SMP: stopping secondary CPUs
[ 1.502731] Kernel Offset: disabled
[ 1.506219] CPU features: 0x080200c
[ 1.509706] Memory Limit: none
[ 1.512762] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 1.512762]

 

 

Can you help analyze the reasons? This behavior can also occur when I close all other peripherals.

Outcomes