5 Replies Latest reply on May 22, 2020 6:20 AM by YuKu_4705801

    brcmfmac: brcmf_sdio_download_code_file: error -84

    YuKu_4705801

      // Not sure if he question was posted successfully earlier...

       

      OS: openWrt 19.07

      HW: iMX6ull eval board with Laird Sterling-LWB5 module with CYW43353 chip.

       

      The iMX6ull board was modified and device tree (dts) file was updated according to spec from Laird.

      When brcmfmac.ko was loaded, it tried to copy the firmware and failed with error -84 (#define EILSEQ 84      /* Illegal byte sequence */)

       

      Below are the console output and debug captures:

      Any one knows what caused the issue? and know a way to fix this or something I can look into and try??

       

      Thanks,

      - ykuo

       

      +++

      ...

       

      root@OpenWrt:/lib/modules/4.14.171#

      root@OpenWrt:/lib/modules/4.14.171# insmod compat.ko

      [  103.069066] Loading modules backported from Laird Linux version LRD-REL-7.0.0.326-0-gb1ee9b1eb665

      [  103.077972] Backport generated by backports.git v7.0.0.326

      root@OpenWrt:/lib/modules/4.14.171#

      root@OpenWrt:/lib/modules/4.14.171# insmod cfg80211.ko

      root@OpenWrt:/lib/modules/4.14.171#

      root@OpenWrt:/lib/modules/4.14.171# insmod brcmutil.ko

      root@OpenWrt:/lib/modules/4.14.171#

      root@OpenWrt:/lib/modules/4.14.171# insmod brcmfmac.ko

      root@OpenWrt:/lib/modules/4.14.171# [  132.976535] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4339-sdio for chip BCM4339/2

      [  133.019182] brcmfmac: brcmf_sdiod_ramrw: membytes transfer failed

      [  133.025335] brcmfmac: brcmf_sdio_download_code_file: error -84 on writing 570007 membytes at 0x00180000

      [  133.034983] brcmfmac: brcmf_sdio_download_firmware: dongle image file download failed

      [  133.082460] mmc0: Tuning failed, falling back to fixed sampling clock

      [  133.089002] brcmfmac: brcmf_sdio_htclk: Failed access turning clock off: -5

      [  133.097904] brcmfmac: brcmf_sdio_htclk: HT Avail request error: -84

      [  133.178333] mmc0: Tuning failed, falling back to fixed sampling clock

      [  133.224433] mmc0: Tuning failed, falling back to fixed sampling clock

      [  133.270498] mmc0: Tuning failed, falling back to fixed sampling clock

      ...

      root@OpenWrt:/lib/modules/4.14.171# cat /sys/kernel/debug/mmc0/ios

      clock:          198000000 Hz

      actual clock:   198000000 Hz

      vdd:            21 (3.3 ~ 3.4 V)

      bus mode:       2 (push-pull)

      chip select:    0 (don't care)

      power mode:     2 (on)

      bus width:      2 (4 bits)

      timing spec:    6 (sd uhs SDR104)

      signal voltage: 1 (1.80 V)

      driver type:    0 (driver type B)

      root@OpenWrt:/lib/modules/4.14.171#

      root@OpenWrt:/lib/modules/4.14.171#

      ...

      root@OpenWrt:/lib/modules/4.14.171# logread | grep mmc

      Tue May 19 22:44:12 2020 kern.notice kernel: [    0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk1p2 rootwait rw

      Tue May 19 22:44:12 2020 kern.info kernel: [    1.129491] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA

      Tue May 19 22:44:12 2020 kern.warn kernel: [    1.184880] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)

      Tue May 19 22:44:12 2020 kern.warn kernel: [    1.192333] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)

      Tue May 19 22:44:12 2020 kern.info kernel: [    1.198620] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA

      Tue May 19 22:44:12 2020 kern.warn kernel: [    1.225747] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)

      Tue May 19 22:44:12 2020 kern.warn kernel: [    1.267032] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)

      Tue May 19 22:44:12 2020 kern.info kernel: [    1.309707] Waiting for root device /dev/mmcblk1p2...

      Tue May 19 22:44:12 2020 kern.warn kernel: [    1.324513] mmc1: host does not support reading read-only switch, assuming write-enable

      Tue May 19 22:44:12 2020 kern.info kernel: [    1.341603] mmc1: new high speed SDHC card at address aaaa

      Tue May 19 22:44:12 2020 kern.info kernel: [    1.348292] mmcblk1: mmc1:aaaa SB32G 29.7 GiB

      Tue May 19 22:44:12 2020 kern.info kernel: [    1.358091]  mmcblk1: p1 p2

      Tue May 19 22:44:12 2020 kern.info kernel: [    1.453397] EXT4-fs (mmcblk1p2): recovery complete

      Tue May 19 22:44:12 2020 kern.info kernel: [    1.461049] mmc0: Tuning failed, falling back to fixed sampling clock

      Tue May 19 22:44:12 2020 kern.info kernel: [    1.467619] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)

      Tue May 19 22:44:12 2020 kern.info kernel: [    1.493574] mmc0: new ultra high speed SDR104 SDIO card at address 0001

      Tue May 19 22:44:12 2020 kern.info kernel: [    5.447594] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)

      root@OpenWrt:/lib/modules/4.14.171#