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.

[参考译文] Linux/am3351:内核在 UART 初始化时崩溃

Guru**** 2589265 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/639733/linux-am3351-kernel-crash-at-uart-initialization

器件型号:AM3351

工具/软件:Linux

大家好、我只使用 UART0、但 EVM 的 DTS 文件中有6个 UART、我想禁用其余的 UART (1-5)。在 DTS 文件中添加注释后、我遇到以下错误、请告诉我其他哪些地方需要更改。

别名{
      i2c0 =&i2c0;
      i2c1 =&i2c1;
      i2c2 =&i2c2;
      Serial0 = uart0;
      /*SERIAL1=&uart1;06-11-17
      SERIAL2 = uart2;
      serial3 = uart3;
      serial4 = uart4;
      serial5=uart5;*/
      D_CAN0 = Dcan0;
      D_CAN1 =&Dcan1;
      USB0 = usb0;
      USB1 =&USB1;
      phy0 = usb0_phy;
      phy1 =&USB1_phy;
      Ethernet0 =&cpsw_emac0;
      Ethernet1 =&cpsw_emac1;
   };

////////// 错误日志////////

 0.060009] CPU:测试写入缓冲区一致性:正常
[0.060809]   为0x80008200 - 0x80008258设置静态标识映射
[0.066004]   devtmpfs:已初始化
[0.092005]   VFP 支持 v0.3:Implementor 41体系结构3第30部分变体 c 修订版3
[0.109784]   OMAP_hwmod:uart2:无 dt 节点
[0.109830]   ------ [在此处剪切]-----
[0.109894]   警告:CPU:0 PID:1 at arch/arm/mach-omap2/omap_hwmod.c:2533 _init.constprop.22+0x1fc/0x424 ()
[0.109913]   omap_hwmod:uart2:没有 MPU 寄存器目标基址
[0.109928]   模块链接于:
[0.109970]   CPU:0 PID:1 Comm:swapper 未被污染4.4.4.12-g3639bea54a #9
[0.109991]   硬件名称:通用 AM33XX (平展器件树)
[0.110006]   回扫:
[0.110076]   [ ](dump_backtrace)从[ ](show_stack+0x18/0x1c)
[0.110096]    r7:c0770ad4 R6:000009e5 R5:00000009 R4:00000000
[0.110164]   [ ](show_stack)从[ ](dump_stack+0x24/0x28)
[0.110212]   [ ](dump_stack)从[ ](warn_slESpath_common+0x88/b4)
[0.110248][    ](warn_slowpath_common)、来自[ ](WARN_RASPH_FMt+0x38/0x40)
[0.110265]    R8:00000081 r7:cf0b2380 R6:00000000 R5:00000000 R4:c06c6674
[0.110330]   [ ](warn_slowpath_fmt)、来自[ ](_init.constprop.22+0x1fc/0x424)
[0.110347]    r3:c06c7924 r2:c06c6674
[0.110371]    R4:c07ac918
[0.110409][    ](_init.constprop.22)从[ ](_omap_hwmod_setup_All+0x48/0x98)
[0.110427]    R10:00000000 R9:c0765600 R8:00000081 r7:cf0b2380 R6:c07a8cA0 R5:c07aab98
[0.110473]    R4:c07ac918
[0.110510][    ](__omap_hwmod_setup_all)从[ ](do_one _initcall+0x98/0x1e4)
[0.110527]    R5:c0770de4 R4:c07a8ca0
[0.110591]   [ ](多个_initcall)、来自[ ](kernel_init_freeable +0x138/0x1cc)
[0.110608]    R10:00000002 R9:c0765600 R8:00000081 r7:c079681c R6:c07a2334 R5:c07db000
[0.110653]    R4:c07db000
[0.110708][    ](kernel_init_freable)从[ ](kernel_init+0x18/0xf4)
[0.110725]    R10:00000000 R9:00000000 R8:00000000 r7:00000000 R6:00000000 R5:c0582578
[0.110769]    R4:c07db000
[0.110806]   [ ](kernel_init)、来自[ ](RET_FANK_F叉+0x14/0x3c)
[0.110823]    R5:c0582578 R4:00000000
[0.110923]   --[结束线迹 e261df2aa2e3c1db ]--
[0.111520]   omap_hwmod:uart3:无 dt 节点
[0.111539]   ------ [在此处剪切]-----
[0.111582]   警告:CPU:0 PID:1 at arch/arm/mach-omap2/omap_hwmod.c:2533 _init.constprop.22+0x1fc/0x424 ()
[0.111600]   omap_hwmod:uart3:没有 MPU 寄存器目标基址
[0.111614]   模块链接于:
[0.111645]   CPU:0 PID:1 Comm:swapper 被污染:G       W      4.4.12.12-g3639bea54a #9
[0.111664]   硬件名称:通用 AM33XX (平展器件树)
[0.111677]   回溯:
[0.111721]   [ ](dump_backtrace)从[ ](show_stack+0x18/0x1c)
[0.111739]    r7:c0770ad4 R6:000009e5 R5:00000009 R4:00000000
[0.111797]   [ ](show_stack)从[ ](dump_stack+0x24/0x28)
[0.111835]   [ ](dump_stack)从[ ](warn_slESpath_common+0x88/b4)
[0.111870]   [ ](warn_slowpath_common)、来自[ ](WARN_RASPH_FMt+0x38/0x40)
[0.111887]    R8:00000081 r7:cf0b2380 R6:00000000 R5:00000000 R4:c06c6674
[0.111950][    ](warn_slowpath_fmt)、来自[ ](_init.constprop.22+0x1fc/0x424)
[0.111967]    r3:c06c791c r2:c06c6674
[0.111990]    R4:c07ac99c
[0.112028]   [ ](_init.constprop.22)从[ ](_omap_hwmod_setup_All+0x48/0x98)
[0.112046]    R10:00000000 R9:c0765600 R8:00000081 r7:cf0b2380 R6:c07a8cA0 R5:c07aab98
[0.112090]    R4:c07ac99c
[0.112126]   [ ](__omap_hwmod_setup_all)从[ ](do_one _initcall+0x98/0x1e4)
[0.112143]    R5:c0770de4 R4:c07a8ca0
[0.112190]   [ ](多个_initcall)、来自[ ](kernel_init_freeable +0x138/0x1cc)
[0.112207]    R10:00000002 R9:c0765600 R8:00000081 r7:c079681c R6:c07a2334 R5:c07db000
[0.112252]    R4:c07db000
[0.112296][    ](kernel_init_freable)从[ ](kernel_init+0x18/0xf4)
[0.112313]    R10:00000000 R9:00000000 R8:00000000 r7:00000000 R6:00000000 R5:c0582578
[0.112357]    R4:c07db000
[0.112394][    ](kernel_init)、来自[ ](RET_FANK_F叉+0x14/0x3c)
[0.112411]    R5:c0582578 R4:00000000
[0.112437]   --[结束线迹 e261df2aa2e3c1dc ]--
[0.112985]   omap_hwmod:uart4:无 dt 节点
[0.113001]   ------ [在此处剪切]-----
[0.113038]   警告:CPU:0 PID:1 at arch/arm/mach-omap2/omap_hwmod.c:2533 _init.constprop.22+0x1fc/0x424 ()
[0.113057]   omap_hwmod:uart4:没有 MPU 寄存器目标基址
[0.113070]   模块链接在:
[0.113099]   CPU:0 PID:1 Comm:swapper 被污染:G       W      4.4.12.12-g3639bea54a #9
[0.113117]   硬件名称:通用 AM33XX (平展器件树)
[0.113130]   回溯:
[0.113175][    ](dump_backtrace)从[ ](show_stack+0x18/0x1c)
[0.113192]    r7:c0770ad4 R6:000009e5 R5:00000009 R4:00000000
[0.113248][    ](show_stack)从[ ](dump_stack+0x24/0x28)
[0.113285][    ](dump_stack)从[ ](warn_slESpath_common+0x88/b4)
[0.113321][    ](warn_slowpath_common)、来自[ ](WARN_RASPH_FMt+0x38/0x40)
[0.113337]    R8:00000081 r7:cf0b2380 R6:00000000 R5:00000000 R4:c06c6674
[0.113400]   [ ](warn_slowpath_fmt)、来自[ ](_init.constprop.22+0x1fc/0x424)
[0.113418]    r3:c06c7914 r2:c06c6674
[0.113441]    R4:c07aca20
[0.113479][    ](_init.constprop.22)从[ ](_omap_hwmod_setup_All+0x48/0x98)
[0.113496]    R10:00000000 R9:c0765600 R8:00000081 r7:cf0b2380 R6:c07a8cA0 R5:c07aab98
[0.113541]    R4:c07aca20
[0.113577][    ](__omap_hwmod_setup_all)从[ ](do_one _initcall+0x98/0x1e4)
[0.113594]    R5:c0770de4 R4:c07a8ca0
[0.113639]   [ ](多个_initcall)、来自[ ](kernel_init_freeable +0x138/0x1cc)
[0.113656]    R10:00000002 R9:c0765600 R8:00000081 r7:c079681c R6:c07a2334 R5:c07db000
[0.113700]    R4:c07db000
[0.113739]   [ ](kernel_init_freable)从[ ](kernel_init+0x18/0xf4)
[0.113756]    R10:00000000 R9:00000000 R8:00000000 r7:00000000 R6:00000000 R5:c0582578
[0.113800]    R4:c07db000
[0.113836][    ](kernel_init)、来自[ ](RET_FANK_F叉+0x14/0x3c)
[0.113853]    R5:c0582578 R4:00000000
[0.113878]   ---[结束线 e261df2aa2e3c1dd ]--
[0.114412]   omap_hwmod:uart5:无 dt 节点
[0.114428]   ------ [在此处剪切]-----
[0.114463]   警告:CPU:0 PID:1 at arch/arm/mach-omap2/omap_hwmod.c:2533 _init.constprop.22+0x1fc/0x424 ()
[0.114481]   OMAP_hwmod:uart5:没有 MPU 寄存器目标基址
[0.114493]   中链接的模块:
[0.11452]   CPU:0 PID:1 Comm:swapper 被污染:G       W      4.4.3.12-g3639bea54a #9
[0.114539]   硬件名称:通用 AM33XX (平展器件树)
[0.114552]   回溯:
[0.114594]   [ ](dump_backtrace)从[ ](show_stack+0x18/0x1c)
[0.114611]    r7:c0770ad4 R6:000009e5 R5:00000009 R4:00000000
[0.11466][    ](show_stack)从[ ](dump_stack+0x24/0x28)
[0.114702][    ](dump_stack)从[ ](warn_slESpath_common+0x88/b4)
[0.114738]   [ ](warn_slowpath_common)、来自[ ](WARN_RASPH_FMt+0x38/0x40)
[0.114754]    R8:00000081 r7:cf0b2380 R6:00000000 R5:00000000 R4:c06c6674
[0.114818][    ](warn_slowpath_fmt)、来自[ ](_init.constprop.22+0x1fc/0x424)
[0.114835]    r3:c06c790c r2:c06c6674
[0.114858]    R4:c07acaa4.
[0.114896]   [ ](_init.constprop.22)从[ ](_omap_hwmod_setup_All+0x48/0x98)
[0.114913]    R10:00000000 R9:c0765600 R8:00000081 r7:cf0b2380 R6:c07a8cA0 R5:c07aab98
[0.114958]    R4:c07acaa4.
[0.114994][    ](__omap_hwmod_setup_all)从[ ](do_one _initcall+0x98/0x1e4)
[0.115011]    R5:c0770de4 R4:c07a8ca0
[0.115056]   [ ](多个_initcall)、来自[ ](kernel_init_freeable +0x138/0x1cc)
[0.115073]    R10:00000002 R9:c0765600 R8:00000081 r7:c079681c R6:c07a2334 R5:c07db000
[0.115118]    R4:c07db000
[0.115157][    ](kernel_init_freable)从[ ](kernel_init+0x18/0xf4)
[0.115174]    R10:00000000 R9:00000000 R8:00000000 r7:00000000 R6:00000000 R5:c0582578
[0.115218]    R4:c07db000
[0.115254]   [ ](kernel_init)、来自[ ](RET_FANK_F叉+0x14/0x3c)
[0.115270]    R5:c0582578 R4:00000000
[0.115295]   --[结束线迹 e261df2aa2e3c1de ]-->
[0.115814]   omap_hwmod:uart6:无 dt 节点
[0.115829]   -------- [在此处剪切]-----
[0.115864]   警告:CPU:0 PID:1 at arch/arm/mach-omap2/omap_hwmod.c:2533 _init.constprop.22+0x1fc/0x424 ()
[0.115882]   OMAP_hwmod:uart6:没有 MPU 寄存器目标基址
[0.115895]   模块链接于:
[0.115923]   CPU:0 PID:1 Comm:swapper 被污染:G       W      4.4.3.12-g3639bea54a #9
[0.115941]   硬件名称:通用 AM33XX (平展器件树)
[0.115954]   回扫:
[0.115996][    ](dump_backtrace)从[ ](show_stack+0x18/0x1c)
[0.116013]    r7:c0770ad4 R6:000009e5 R5:00000009 R4:00000000
[0.116068]   [ ](show_stack)从[ ](dump_stack+0x24/0x28)
[0.116104][    ](dump_stack)从[ ](warn_slESpath_common+0x88/b4)
[0.116139]   [ ](warn_slowpath_common)、来自[ ](WARN_RASPH_FMt+0x38/0x40)
[0.116156]    R8:00000081 r7:cf0b2380 R6:00000000 R5:00000000 R4:c06c6674
[0.116219]   [ ](warn_slowpath_fmt)、来自[ ](_init.constprop.22+0x1fc/0x424)
[0.116236]    R3:c06c78f0 R2:c06c6674
[0.116259]    R4:c07acb28
[0.116297][    ](_init.constprop.22)从[ ](_omap_hwmod_setup_All+0x48/0x98)
[0.116313]    R10:00000000 R9:c0765600 R8:00000081 r7:cf0b2380 R6:c07a8cA0 R5:c07aab98
[0.116359]    R4:c07acb28
[0.116394]   [ ](__omap_hwmod_setup_all)从[ ](do_one _initcall+0x98/0x1e4)
[0.116411]    R5:c0770de4 R4:c07a8ca0
[0.116455][    ](多个_initcall)、来自[ ](kernel_init_freeable +0x138/0x1cc)
[0.116472]    R10:00000002 R9:c0765600 R8:00000081 r7:c079681c R6:c07a2334 R5:c07db000
[0.116517]    R4:c07db000
[0.116557][    ](kernel_init_freable)从[ ](kernel_init+0x18/0xf4)
[0.116574]    R10:00000000 R9:00000000 R8:00000000 r7:00000000 R6:00000000 R5:c0582578
[0.116618]    R4:c07db000
[0.116654]   [ ](kernel_init)、来自[ ](RET_FANK_F叉+0x14/0x3c)
[0.116671]    R5:c0582578 R4:00000000
[0.116695]   --[结束线迹 e261df2aa2e3c1df ]-->
[0.129527]   omap_hwmod:debugss:_wait_target_disable 失败
[0.134474]   OMAP-hwmod:D_CAN0:_WAIT_TARGET_READY 失败:-16
[0.134498]   OMAP-hwmod:D_CAN0:无法为复位启用(3)
[0.138424]   OMAP-hwmod:D_CAN1:_WAIT_TARGET_READY 失败:-16
[0.138444]   OMAP-hwmod:D_CAN1:无法为复位启用(3)
[0.207577]   时钟源:Jiffies:MASK:0xFFFFFFFF max_cycles:0xFFFFFFFF、max_idle_ns:19112604462750000 ns
[0.212242]   pinctrl 内核:已初始化 pinctrl 子系统
[0.2155]   NET:注册协议系列16.
[0.220504]   DMA:预分配256 KiB 池用于原子相干分配
[0.247850]   空闲:使用调速器梯
[0.277829]   空闲:使用调速器菜单
[0.289180]   OMAP GPIO 硬件版本0.1
[0.292240]   OMAP-GPIO 481ac000.GPIO:找不到节点/ocp/l4_wkup@44c00000/CSCM@210000/ pinmux@800/pinmux_gpio2_pins 的 pctldev、dervrie
[0.2996]   OMAP-GPIO 481ae000.GPIO:找不到节点/ocp/l4_wkup@44c00000/SCM@210000/ pinmux@800/pinmux_gpio3_pins 的 pctldev、dervrie
[0.311253]   硬件断点:不支持调试架构0x4。
[0.36823]   EDMA 49000000.EDMA:TI EDMA DMA 引擎驱动程序
[0.375875]   usbcore:注册的新接口驱动程序 usbfs
[0.376065]   usbcore:注册的新接口驱动程序集线器
[0.376328]   usbcore:注册的新设备驱动程序 USB

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    软件团队已收到通知。 他们将在这里作出回应。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Khageswararao Bongu、

    您观察到的内核崩溃是由为 uart2、3、4、5、6配置的空指针引起的。 能否附加您正在使用的 DTS 和 dtsi 文件?

    BR
    Tsvetolin Shulev