Kernel Panic - Internal Error: Oops: 5 with iMX6ULL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kernel Panic - Internal Error: Oops: 5 with iMX6ULL

3,750 Views
marija_stojanov
Contributor I

Hi all,

I have newly started working with iMX6ULL board and i am trying to bring the Murata 1CK module. I am using the brcmfmac driver from the kernel mainline 4.19 and a customized BSP.

The wifi module is connected to usdhc1 controller. The wlreg_on line or BT_disable is connected to gpio5_io1.

----------------------------------------------------------------------------------------------------------------------

I added the following changes to the device tree:

    wlreg_on: fixedregulatorwlan {
        compatible = "regulator-fixed";
        regulator-min-microvolt = <5000000>;
        regulator-max-microvolt = <5000000>;
        regulator-name = "wlreg_on";
        gpio = <&gpio5 1 1>;
        startup-delay-us = <100>;
        enable-active-high;
        regulator-always-on;          
    };    

    brcmfmac: brcmfmac {
        compatible = "brcm, bcm4339-brcmfmac";        
        wlreg_on-supply = <&wlreg_on>;
    };        

    reg_sd1_vmmc: regulator-sd1-vmmc {
        compatible = "regulator-fixed";
        regulator-name = "VSD_3V3";
        regulator-min-microvolt = <3300000>;
        regulator-max-microvolt = <3300000>;
        gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
        enable-active-high;   
        regulator-always-on;     
    };

&usdhc1 {
    pinctrl-names = "default", "state_100mhz", "state_200mhz";
    pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_wifi>;
    pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
    pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
    cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
    no-1-8-v;
    non-removable;
    cd-post;
    pm-ignore-notify;
    wifi-host; /* add hook for SD card detect mechanism for BCMDHD driver */
    keep-power-in-suspend;
    wakeup-source;
    vmmc-supply = <&reg_sd1_vmmc>;
    status = "okay";
};

----------------------------------------------------------------------------------------------------------------------------------------

I get the following error when loading the module:

 7.692229] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[    7.762501] pgd = (ptrval)
[    7.765271] [00000000] *pgd=00000000
[    7.789071] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    7.794435] Modules linked in: brcmfmac(+) brcmutil
[    7.799384] CPU: 0 PID: 146 Comm: systemd-udevd Not tainted 4.19.0-rc4-20180919-1+ #11
[    7.807320] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[    7.813828] PC is at brcmf_common_pd_probe+0x54/0x90 [brcmfmac]
[    7.820002] LR is at brcmf_common_pd_probe+0x40/0x90 [brcmfmac]
[    7.825951] pc : [<7f01b608>]    lr : [<7f01b5f4>]    psr: 20030113
[    7.832242] sp : 9e523c00  ip : bb0dfb55  fp : 9e523c1c
[    7.837489] r10: 7f03db00  r9 : 00000000  r8 : 80e8cee8
[    7.842739] r7 : 80ef41f8  r6 : 7f0316dc  r5 : 9f61b010  r4 : 9f61b000
[    7.849291] r3 : 7f03e4c4  r2 : 00000000  r1 : 7f031864  r0 : 9e523bfc
[    7.855843] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    7.863000] Control: 10c5387d  Table: 9e51406a  DAC: 00000051
[    7.868768] Process systemd-udevd (pid: 146, stack limit = 0x(ptrval))
[    7.875317] Stack: (0x9e523c00 to 0x9e524000)
[    7.879713] 3c00: 00000000 9f61b010 7f03db00 80ef41f8 9e523c3c 9e523c20 8059bf9c 7f01b5c0
[    7.887923] 3c20: 80ef41f4 9f61b010 00000000 80ef41f8 9e523c7c 9e523c40 805996c0 8059bf2c
[    7.896132] 3c40: 9e523c5c 9e523c50 80923a18 00000002 9e523c7c 9f61b010 7f03db00 7f03db00
[    7.904339] 3c60: 80e06448 00000000 80e83ae0 80e06448 9e523cb4 9e523c80 80599a84 8059944c
[    7.912546] 3c80: 806edff4 806ebd64 9e523cb4 9e523c98 9f61b010 9f61b044 7f03db00 80e06448
[    7.920753] 3ca0: 00000000 80e83ae0 9e523cd4 9e523cb8 80599d08 80599a08 00000000 7f03db00
[    7.928962] 3cc0: 80599bd8 80e06448 9e523d04 9e523cd8 80596fe8 80599be4 8092392c 9f4d8874
[    7.937168] 3ce0: 9f606640 bb0dfb55 7f03db00 9eef4500 80e56c20 80e8ce10 9e523d14 9e523d08
[    7.945376] 3d00: 80598e60 80596f7c 9e523d44 9e523d18 80598758 80598e40 7f037d28 00000000
[    7.953583] 3d20: 9e523d44 7f03db00 80e56c20 7f03db00 00000000 9eeddd64 9e523d5c 9e523d48
[    7.961791] 3d40: 8059ab68 80598584 7f03daec 80e56c20 9e523d7c 9e523d60 8059c530 8059aaec
[    7.969997] 3d60: 7f03e2c0 7f053000 80e06448 00000000 9e523d94 9e523d80 7f05302c 8059c4c4
[    7.978205] 3d80: 7f03e2c0 7f053000 9e523e0c 9e523d98 8010338c 7f05300c 9e522000 9fdddb80
[    7.986412] 3da0: 8028a874 9eedc800 9e522000 9f401e40 9e523dc8 00011e60 9e523dfc 80293fb8
[    7.994619] 3dc0: 9e523e0c 9e523dd0 80293fb8 80271c70 00000001 0000005c 9eedc800 9eeddb00
[    8.002826] 3de0: 00000001 bb0dfb55 7f03e2c0 00000001 9eedd300 9eeddd40 9eeddd64 7f03e2c0
[    8.011034] 3e00: 9e523e34 9e523e10 801be254 80103338 9e523e34 9e523e20 8028a968 9e523f38
[    8.019240] 3e20: 00000001 00000001 9e523f14 9e523e38 801bcdec 801be1ec 7f03e2cc 00007fff
[    8.027448] 3e40: 7f03e2c0 801b9f40 9e523e84 9e523e58 80e06448 80a04220 7f03e3d4 7f03e488
[    8.035655] 3e60: 80c6d494 7f03e3f0 7f03e2c4 00000000 9eeddd48 7f03e308 9e523e9c 9e523e88
[    8.043862] 3e80: 802a0ffc 802a0e78 9e536500 80e06448 00000000 00000000 00000000 00000000
[    8.052067] 3ea0: 00000000 00000000 6e72656b 00006c65 00000000 00000000 00000000 00000000
[    8.060273] 3ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.068479] 3ee0: 00000000 bb0dfb55 7fffffff 80e06448 00000000 76dc3abc 0000000e 801011e4
[    8.076687] 3f00: 9e522000 0000017b 9e523fa4 9e523f18 801bd76c 801bad20 7fffffff 00000000
[    8.084894] 3f20: 00000003 9e523f24 9e523f24 a0afa000 0005b958 00000000 a0b2ebb3 a0b30040
[    8.093102] 3f40: a0afa000 0005b958 a0b55200 a0b55048 a0b3cd40 00037000 00042160 7f03e058
[    8.101308] 3f60: 00000003 00000000 00014218 0000002d 0000002e 00000026 00000000 0000000e
[    8.109517] 3f80: 00000000 bb0dfb55 00896430 00000000 00000000 0000017b 00000000 9e523fa8
[    8.117723] 3fa0: 801011a4 801bd688 00896430 00000000 0000000e 76dc3abc 00000000 00020000
[    8.125931] 3fc0: 00896430 00000000 00000000 0000017b 00000000 00000000 004e7738 008964c0
[    8.134139] 3fe0: 7edccca8 7edccc98 76dbe667 76cf9b22 400f0030 0000000e 00000000 00000000
[    8.142331] Backtrace:
[    8.145045] [<7f01b5b4>] (brcmf_common_pd_probe [brcmfmac]) from [<8059bf9c>] (platform_drv_probe+0x7c/0xb4)
[    8.154909]  r7:80ef41f8 r6:7f03db00 r5:9f61b010 r4:00000000
[    8.160610] [<8059bf20>] (platform_drv_probe) from [<805996c0>] (really_probe+0x280/0x41c)
[    8.168904]  r7:80ef41f8 r6:00000000 r5:9f61b010 r4:80ef41f4
[    8.174600] [<80599440>] (really_probe) from [<80599a84>] (driver_probe_device+0x88/0x1dc)
[    8.182894]  r10:80e06448 r9:80e83ae0 r8:00000000 r7:80e06448 r6:7f03db00 r5:7f03db00
[    8.190741]  r4:9f61b010
[    8.193310] [<805999fc>] (driver_probe_device) from [<80599d08>] (__driver_attach+0x130/0x14c)
[    8.201953]  r9:80e83ae0 r8:00000000 r7:80e06448 r6:7f03db00 r5:9f61b044 r4:9f61b010
[    8.209731] [<80599bd8>] (__driver_attach) from [<80596fe8>] (bus_for_each_dev+0x78/0xc4)
[    8.217934]  r7:80e06448 r6:80599bd8 r5:7f03db00 r4:00000000
[    8.223626] [<80596f70>] (bus_for_each_dev) from [<80598e60>] (driver_attach+0x2c/0x30)
[    8.231657]  r7:80e8ce10 r6:80e56c20 r5:9eef4500 r4:7f03db00
[    8.237351] [<80598e34>] (driver_attach) from [<80598758>] (bus_add_driver+0x1e0/0x278)
[    8.245389] [<80598578>] (bus_add_driver) from [<8059ab68>] (driver_register+0x88/0x120)
[    8.253507]  r8:9eeddd64 r7:00000000 r6:7f03db00 r5:80e56c20 r4:7f03db00
[    8.260242] [<8059aae0>] (driver_register) from [<8059c530>] (__platform_driver_probe+0x78/0x120)
[    8.269135]  r5:80e56c20 r4:7f03daec
[    8.272964] [<8059c4b8>] (__platform_driver_probe) from [<7f05302c>] (brcmfmac_module_init+0x2c/0xc0 [brcmfmac])
[    8.283175]  r7:00000000 r6:80e06448 r5:7f053000 r4:7f03e2c0
[    8.289090] [<7f053000>] (brcmfmac_module_init [brcmfmac]) from [<8010338c>] (do_one_initcall+0x60/0x294)
[    8.298685]  r5:7f053000 r4:7f03e2c0
[    8.302303] [<8010332c>] (do_one_initcall) from [<801be254>] (do_init_module+0x74/0x224)
[    8.310429]  r9:7f03e2c0 r8:9eeddd64 r7:9eeddd40 r6:9eedd300 r5:00000001 r4:7f03e2c0
[    8.318210] [<801be1e0>] (do_init_module) from [<801bcdec>] (load_module+0x20d8/0x2788)
[    8.326239]  r6:00000001 r5:00000001 r4:9e523f38
[    8.330891] [<801bad14>] (load_module) from [<801bd76c>] (sys_finit_module+0xf0/0x120)
[    8.338841]  r10:0000017b r9:9e522000 r8:801011e4 r7:0000000e r6:76dc3abc r5:00000000
[    8.346689]  r4:80e06448
[    8.349258] [<801bd67c>] (sys_finit_module) from [<801011a4>] (__sys_trace_return+0x0/0x10)
[    8.357632] Exception stack(0x9e523fa8 to 0x9e523ff0)
[    8.362716] 3fa0:                   00896430 00000000 0000000e 76dc3abc 00000000 00020000
[    8.370923] 3fc0: 00896430 00000000 00000000 0000017b 00000000 00000000 004e7738 008964c0
[    8.379124] 3fe0: 7edccca8 7edccc98 76dbe667 76cf9b22
[    8.384202]  r7:0000017b r6:00000000 r5:00000000 r4:00896430
[    8.389894] Code: 0a000009 e5942070 e30e34c4 e3473f03 (e5920000)

I am kindly asking if someone could tell me what am i doing wrong.

Thanks

Labels (1)
0 Kudos
2 Replies

3,015 Views
romitchatterjee
Contributor V

Hello Marija,

Which Murata adapter are you using? You can perhaps try one of the supported kernels first and see if that works (4.9.123, 4.9.88, 4.9.11 or 4.1.15)? Please refer to the Murata Linux Quick Start guide for more details - https://wireless.murata.com/datasheet?/RFM/data/murata_quick_start_guide_linux.pdf.

Thanks.

0 Kudos

3,015 Views
igorpadykov
NXP Employee
NXP Employee

Hi Marija

mainline linux is not supported by nxp,issue may be posted on meta-fsl-arm mailing list

meta-freescale Info Page 

one can try with nxp official releases

linux-imx - i.MX Linux kernel 
Linux Documentation
i.MX Software | NXP 

difference between Yocto Community BSP and Freescale BSP Release 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos