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.

DM385 USB with Wifi Interface not working on CBB RDK Kernel

Other Parts Discussed in Thread: DM385

Hi All,


We are using CBB RDK GA 1.3 for DM385 .

we need to interface USB based Wi-Fi and BT module.

We are able to enable USB Host interface on our custom board. So we can detect USB flash drive and USB SD card reader on USB port.

Now When we try to load Marvell's USB driver with CBB RDK Kernel we are getting Kernel crash as shown below.

USB Driver is able to load Wi-Fi firmware but then after Kernel crashes at "woal_submit_rx_urb".

Are we missing any  configuration in Kernel or filesystem ?

Steps:

# cp usb8766_uapsta.bin  /lib/firmware/mrvl/usb8766_uapsta.bin
# insmod mlan.ko
# insmod usb8797.ko 


Anyone knows the problem or possible solution??

It would be very much helpful for us to identify root cause.


Thanks in advance,

Kalpesh Panchal
===============================================================================================

oot@xyz:~/bin_usb8797# insmod mlan.ko
root@xyz:~/bin_usb8797# echo "/sbin/mdev" > /proc/sys/kernel/hotplug
root@xyz:~/bin_usb8797# insmod usb8797.ko
[   54.280000] wlan: Loading MWLAN driver
[   54.290000] usbcore: registered new interface driver usb8xxx
[   54.300000] wlan: Driver loaded successfully
root@xyz:~/bin_usb8797#
root@xyz:~/bin_usb8797# [   65.520000] usb 1-1: new high speed USB device using musb-hdrc and address 2
[   65.660000] usb 1-1: New USB device found, idVendor=1286, idProduct=2043
[   65.660000] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   65.670000] usb 1-1: Product: Marvell Wireless Device
[   65.680000] usb 1-1: Manufacturer: Marvell
[   65.680000] usb 1-1: SerialNumber: 0000000000000000
[   65.690000] VID/PID = 1286/2043, Boot2 version = 4000
[   65.690000] rx_work=0 cpu_num=1
[   65.720000] Firmware :mrvl/usb8797_uapsta.bin
[   66.880000] WLAN FW is downloaded
[   67.440000] usb_reset_device() successful.
[   67.440000] usb 1-1: USB disconnect, address 2
[   67.940000] usb 1-1: new high speed USB device using musb-hdrc and address 3
[   68.080000] usb 1-1: New USB device found, idVendor=1286, idProduct=2044
[   68.080000] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   68.090000] usb 1-1: Product: Bluetooth and Wireless LAN Composite Device
[   68.100000] usb 1-1: Manufacturer: Marvell
[   68.100000] usb 1-1: SerialNumber: AC3FA40CC8DA
[   68.110000] VID/PID = 1286/2044, Boot2 version = 3201
[   68.120000] rx_work=0 cpu_num=1
[   68.150000] WLAN FW is active
[   68.410000] Internal error: Oops - bad syscall: 862534 [#1]
[   68.410000] last sysfs file: /sys/devices/platform/omap/ti81xx-usbss/musb-hdrc.0/usb1/1-1/dev
[   68.410000] Modules linked in: usb8xxx mlan syslink
[   68.410000] CPU: 0    Not tainted  (2.6.37_DM385_CBB_0.80.00 #160)
[   68.410000] PC is at woal_submit_rx_urb+0x58c/0x28 [usb8xxx]
[   68.410000] LR is at 0x88b0
[   68.410000] pc : [<bf16d938>]    lr : [<000088b0>]    psr: a0000013
[   68.410000] sp : beb54c20  ip : 00000000  fp : c2beda00
[   68.410000] r10: c2acde00  r9 : bf177f20  r8 : c2bf5360
[   68.410000] r7 : 00000090  r6 : ffffffff  r5 : 00000004  r4 : c2bf5000
[   68.410000] r3 : bf16d934  r2 : 00000004  r1 : c4392f6c  r0 : c2bf5000
[   68.410000] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[   68.410000] Control: 10c5387d  Table: 82ab0019  DAC: 00000017
[   68.410000] Process khubd (pid: 15, stack limit = 0xc40ba2e8)
[   68.410000] Stack: (0xbeb54c20 to 0xc40bc000)
[   68.410000] 4c20: 4004fb78 400ff000 401ae000 00000000 00989680 400e7b78 40010020 00008d44
[   68.410000] 4c40: bff00000 beb54de4 00000000 00000000 00000000 400ff000 00000000 00008acc
[   68.410000] 4c60: 00000000 00008540 00000000 00000000 00000000 400ff000 00008d44 00000000
[   68.410000] 4c80: 00008540 00000000 00000000 00000000 400ff000 401c2fd4 402d4000 beb54de4
[   68.410000] 4ca0: 00000002 00008a34 00008d44 00000000 00008540 00000000 00000000 00000000
[   68.410000] 4cc0: 400ff000 00000000 beb54c98 401c2f8c 00000000 00000000 00000000 00000000
[   68.410000] 4ce0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   68.410000] 4d00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   68.410000] 4d20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   68.410000] 4d40: 401b95bc 4004fb78 00000000 0177ff8e 00000000 4004fea8 40010790 000082d0
[   68.410000] 4d60: 400ff6c0 400ff000 00000000 400102f0 0001111c 400e7b78 4004fea8 00000001
[   68.410000] 4d80: 00000001 00000000 400ff6c0 beb54df0 00000000 401b95bc 00000000 00000000
[   68.410000] 4da0: 00000000 00008540 00000000 00000000 00000000 00000000 00000000 400ed914
[   68.410000] 4dc0: 00008a34 00000000 00000000 00008540 00000000 0000856c 00008da4 400e8568
[   68.410000] 4de0: beb54de4 beb54ee2 beb54f00 00000000 beb54f0b beb54f17 beb54f2c beb54f33
[   68.410000] 4e00: beb54f3c beb54f47 beb54f62 beb54f6d beb54f90 beb54f9b beb54fa6 beb54fb2
[   68.410000] 4e20: beb54fbb beb54fc8 beb54fd3 00000000 00000010 0000b0d7 00000006 00001000
[   68.410000] 4e40: 00000011 00000064 00000003 00008034 00000004 00000020 00000005 00000008
[   68.410000] 4e60: 00000007 400da000 00000008 00000000 00000009 00008540 0000000b 00000000
[   68.410000] 4e80: 0000000c 00000000 0000000d 00000000 0000000e 00000000 00000017 00000000
[   68.410000] 4ea0: 00000019 beb54ece 0000001f beb54fde 0000000f beb54ede 00000000 00000000
[   68.410000] 4ec0: 00000000 00000000 00000000 a50c0000 79c6fac3 0aa821c6 10875a34 377606af
[   68.410000] 4ee0: 2f2e006c 2f6e6962 6f6d6572 645f6574 67756265 696c635f 2e746e65 0074756f
[   68.410000] 4f00: 66627830 30303066 70003030 6c766572 6c657665 43004e3d 4f534e4f 2f3d454c
[   68.410000] 4f20: 2f766564 736e6f63 00656c6f 454d4f48 4f002f3d 5750444c 002f3d44 6c6e7572
[   68.410000] 4f40: 6c657665 4900533d 5f54494e 53524556 3d4e4f49 76737973 74696e69 382e322d
[   68.410000] 4f60: 45540036 6c3d4d52 78756e69 54415000 732f3d48 3a6e6962 6e69622f 73752f3a
[   68.410000] 4f80: 62732f72 2f3a6e69 2f727375 006e6962 4c4e5552 4c455645 7200533d 77746f6f
[   68.410000] 4fa0: 3d746961 52500032 454c5645 3d4c4556 5053004e 4853414c 5000313d 2f3d4457
[   68.410000] 4fc0: 2f74706f 00626263 76657270 73756f69 56004e3d 4f425245 6e3d4553 2f2e006f
[   68.410000] 4fe0: 2f6e6962 6f6d6572 645f6574 67756265 696c635f 2e746e65 0074756f 00000000
[   68.410000] 5000: ???????? ???????? ???????? ???????? ???????? ???????? ???????? ????????
[   68.410000] 5020: ???????? ???????? ???????? ???????? ???????? ???????? ???????? ????????
[   68.410000] 5040: ???????? ???????? ???????? ???????? ???????? ???????? ???????? ????????
[   68.410000] 5060: ???????? ???????? ???????? ???????? ???????? ???????? ???????? ????????

  • Thanks for your feedback,

    I found solution that we have to compile our kernel with option
    CONFIG_WIRELESS_EXT=y

    Regards,
    Kalpesh Panchal
  • Now going foreword,

    We are able to load Wi-Fi Driver successfully and able to get device entry for mlan0 and scan SSID,

    ifconfig -a
    eth0 Link encap:Ethernet HWaddr 7C:66:9D:E1:5E:28
    UP BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    Interrupt:40

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    mlan0 Link encap:Ethernet HWaddr AC:3F:A4:0C:C8:DA
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    uap0 Link encap:Ethernet HWaddr AC:3F:A4:0C:C8:DA
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wfd0 Link encap:Ethernet HWaddr AC:3F:A4:0C:C8:DA
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    but when we try "iwconfig" command we are getting Kernel crash as shown below.

    Thanks in advance,
    Kalpesh Panchal

    ===========================================================================================
    # ./iwconfig
    lo no wireless extensions.

    eth0 n[ 172.180000] Unable to handle kernel NULL pointer dereference at virtual address 00000054
    o wireless exten[ 172.190000] pgd = c3a80000
    sions.
    [ 172.190000] [00000054] *pgd=82b86031, *pte=00000000, *ppte=00000000
    [ 172.200000] Internal error: Oops: 80000007 [#1]
    [ 172.200000] last sysfs file: /sys/devices/platform/omap/ti81xx-usbss/musb-hdrc.0/usb1/1-1/dev
    [ 172.200000] Modules linked in: mbt8xxx usb8xxx mlan syslink
    [ 172.200000] CPU: 0 Not tainted (2.6.37_DM385_CBB_0.80.00 #169)
    [ 172.200000] PC is at 0x54
    [ 172.200000] LR is at get_wireless_stats+0x58/0x64
    [ 172.200000] pc : [<00000054>] lr : [<c038c0ac>] psr: 20000013
    [ 172.200000] sp : c3a2be18 ip : c038c0b8 fp : c3a2bee8
    [ 172.200000] r10: c3a7d000 r9 : 00000020 r8 : c2b8a6c0
    [ 172.200000] r7 : 00008b0f r6 : c2b8a6c0 r5 : c3a2bed8 r4 : c3a2bee8
    [ 172.200000] r3 : 00000056 r2 : c3a7d000 r1 : c3a2be9c r0 : c3a7d000
    [ 172.200000] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
    [ 172.200000] Control: 10c5387d Table: 83a80019 DAC: 00000015
    [ 172.200000] Process iwconfig (pid: 360, stack limit = 0xc3a2a2e8)
    [ 172.200000] Stack: (0xc3a2be18 to 0xc3a2c000)
    [ 172.200000] be00: c2b8a6c0 c038c0c8
    [ 172.200000] be20: 00000000 c3a2bed8 c03e63fc c038c3fc 836af30f 00000001 00000200 c3a2be9c
    [ 172.200000] be40: c06145e0 00000000 00000000 c00aee60 00000000 c2b8682c 00000000 00000003
    [ 172.200000] be60: c3a2be60 c3a2be60 00000001 00008b0f c3a2bed8 bea8e34c c05a09c8 00000000
    [ 172.200000] be80: c3a2a000 c05a09c8 00000000 c038c608 c038c0b8 00008b0f c3a2a000 00008b0f
    [ 172.200000] bea0: 00000000 bea8e34c 00008b0f 00000000 00000000 c02e55a0 00000002 0000000a
    [ 172.200000] bec0: c4207400 c3a2bfb0 0000bc5c c2b9e580 c4356600 80000007 6e616c6d 00000030
    [ 172.200000] bee0: 00000000 00000000 bea8e4e8 00010020 00000238 00000002 0000bc5c c3a2bfb0
    [ 172.200000] bf00: 00011008 c3d14680 00000003 bea8e34c 00000003 00000000 c3a2a000 00000000
    [ 172.200000] bf20: 00000000 c00ccfa8 c431c800 c431c800 00000023 c01df78c c2b75cc0 c01e1f24
    [ 172.200000] bf40: 55957c93 08f0d182 00000001 c4352100 bea8bcc0 c3a2bf80 00000000 00000023
    [ 172.200000] bf60: c3a2a000 00000000 bea8e374 c3a2da80 bea8e34c 00008b0f 00000003 00000000
    [ 172.200000] bf80: c3a2a000 c00cd068 00000003 00000000 bea8e34c 00000003 00010224 00000036
    [ 172.200000] bfa0: c0046c68 c0046ac0 bea8e34c 00000003 00000003 00008b0f bea8e34c bea8e35b
    [ 172.200000] bfc0: bea8e34c 00000003 00010224 00000036 bea8ec5f 00000003 00000000 00000000
    [ 172.200000] bfe0: bea8e4e8 bea8e248 0000c3a0 40286aec 60000010 00000003 ebfffffe e59d5034
    [ 172.200000] [<c038c0ac>] (get_wireless_stats+0x58/0x64) from [<c038c0c8>] (iw_handler_get_iwstats+0x10/0x54)
    [ 172.200000] [<c038c0c8>] (iw_handler_get_iwstats+0x10/0x54) from [<c038c3fc>] (ioctl_standard_call+0x2a8/0x398)
    [ 172.200000] [<c038c3fc>] (ioctl_standard_call+0x2a8/0x398) from [<c038c608>] (wext_handle_ioctl+0x11c/0x1b4)
    [ 172.200000] [<c038c608>] (wext_handle_ioctl+0x11c/0x1b4) from [<c02e55a0>] (dev_ioctl+0x648/0x6b4)
    [ 172.200000] [<c02e55a0>] (dev_ioctl+0x648/0x6b4) from [<c00ccfa8>] (do_vfs_ioctl+0x4c0/0x534)
    [ 172.200000] [<c00ccfa8>] (do_vfs_ioctl+0x4c0/0x534) from [<c00cd068>] (sys_ioctl+0x4c/0x6c)
    [ 172.200000] [<c00cd068>] (sys_ioctl+0x4c/0x6c) from [<c0046ac0>] (ret_fast_syscall+0x0/0x30)
    [ 172.200000] Code: bad PC value
    [ 172.500000] ---[ end trace 1e1ac5ef4fe8eaf0 ]---
  • Kalpesh,

    KALPESH PANCHAL said:
    but when we try "iwconfig" command we are getting Kernel crash as shown below.

    KALPESH PANCHAL said:
    # ./iwconfig
    lo no wireless extensions.

    eth0 n[ 172.180000] Unable to handle kernel NULL pointer dereference at virtual address 00000054
    o wireless exten[ 172.190000] pgd = c3a80000
    sions.

    Can you try with switching to the latest version of DM385 RDK linux kernel:

    See also if the below resources will be in help:

    You can also check this in our WiFi e2e forum:

    Regards,
    Pavel