hgs
Posts: 3
Joined: Tue Apr 04, 2017 1:32 pm

bcm4339 with rasberry pi 3 (SDIO)

Tue Apr 04, 2017 1:44 pm

hi all,

i am trying to add linux driver support for bcm4339 wifi module to raspberry pi 3 compute module
wifi module is interfaced to compute module using sdio gpio line 22-27

Tried setting dtoverlay=sdio in /boot/config.txt & copied broadcom binary to /lib/firmware/brcm/brcmfmac4339-sdio.bin & txt

Couldnt get wifi working.

I am new to linux drivers so need support

Thanks

gregeric
Posts: 1509
Joined: Mon Nov 28, 2011 10:08 am

Re: bcm4339 with rasberry pi 3 (SDIO)

Tue Apr 04, 2017 3:47 pm

Sounds like all the steps are correct to me. Do you see any reference to mmc1 in your kernel logs ie dmesg | grep mmc1? Anything reported by dmesg | grep brcm?

hgs
Posts: 3
Joined: Tue Apr 04, 2017 1:32 pm

Re: bcm4339 with rasberry pi 3 (SDIO)

Thu Apr 06, 2017 11:47 am

Thanks for your reply gregeric.

Had issue with the hardware and hence was not able to respond immediately.
Now I am starting to see some activity in SDIO_CLK & SDIO_CMD lines (no activity in SDIO_DATAn lines)

dmesg | grep mmc1 showed the following
  • [ 258.157355] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [ 258.160312] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [ 258.162711] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
    [ 258.165403] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [ 258.167799] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
    [ 258.216163] mmc1: error -110 whilst initialising SDIO card
    [ 258.267430] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [ 258.270969] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [ 258.274099] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
    [ 258.277618] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [ 258.280766] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
    [ 258.344202] mmc1: error -110 whilst initialising SDIO card
    [ 258.516021] mmc1: error -110 whilst initialising SDIO card
    [ 258.766594] mmc1: error -110 whilst initialising SDIO card
    [ 259.872963] mmc1: error -110 whilst initialising SDIO card
    [ 260.003842] mmc1: error -110 whilst initialising SDIO card
    [ 260.176063] mmc1: error -110 whilst initialising SDIO card
    [ 260.426592] mmc1: error -110 whilst initialising SDIO card
    [ 261.531931] mmc1: error -110 whilst initialising SDIO card
    [ 261.664307] mmc1: error -110 whilst initialising SDIO card
    [ 261.836017] mmc1: error -110 whilst initialising SDIO card
    [ 262.086553] mmc1: error -110 whilst initialising SDIO card
    [ 263.191016] mmc1: error -110 whilst initialising SDIO card
    [ 263.247432] sdio_read_cis: 55 callbacks suppressed
So still interface between soc and wifi is not working.

Not sure if it is related to power up sequence of BCM wifi module.
Currently I am enabling the WIFI_REG_ON & WIFI_HOST_WAKE after boot up in the shell.
I couldnt get reference to how it is been done in raspberry pi 3 model B.

Other details:
SD1 pin configuration details are as follows (used raspi-gpio)
  • GPIO 22: level=0 fsel=7 alt=3 func=SD1_CLK
    GPIO 23: level=1 fsel=7 alt=3 func=SD1_CMD
    GPIO 24: level=1 fsel=7 alt=3 func=SD1_DAT0
    GPIO 25: level=1 fsel=7 alt=3 func=SD1_DAT1
    GPIO 26: level=1 fsel=7 alt=3 func=SD1_DAT2
    GPIO 27: level=1 fsel=7 alt=3 func=SD1_DAT3
Thanks

hgs
Posts: 3
Joined: Tue Apr 04, 2017 1:32 pm

Re: bcm4339 with rasberry pi 3 (SDIO)

Wed Apr 19, 2017 9:15 am

Hi all,

Was able to make get bcm4339 (murata 1CK) enumerated and brcmfmac driver got invoked. It read the brcm firmware and nvram files, but after that point it did not proceed successfully.

Pasted dmesg logs below. (Default debug level for brcmfmac driver was low, so removed the brcmfmac module and inserted it again with raised debug level, which provided more information)

Could not find the direction to debug this issue. Any help will be appreciated.

Thanks

dmesg is pasted below.
  • [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 4.9.22-v7+ (rpi@rpi-ThinkPad-X260) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #1 SMP Tue Apr 18 15:31:02 SGT 2017
    [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
    [ 0.000000] CPU: div instructions available: patching division code
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt:Machine model: Raspberry Pi Compute Module 3 Rev 1.0
    [ 0.000000] cma: Reserved 8 MiB at 0x3a800000
    [ 0.000000] Memory policy: Data cache writealloc
    [ 0.000000] On node 0 totalpages: 241664
    [ 0.000000] free_area_init_node: node 0, pgdat 80c6edc0, node_mem_map b9faa000
    [ 0.000000] Normal zone: 2124 pages used for memmap
    [ 0.000000] Normal zone: 0 pages reserved
    [ 0.000000] Normal zone: 241664 pages, LIFO batch:31
    [ 0.000000] percpu: Embedded 14 pages/cpu @b9f64000 s25600 r8192 d23552 u57344
    [ 0.000000] pcpu-alloc: s25600 r8192 d23552 u57344 alloc=14*4096
    [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 239540
    [ 0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:A0:C8:61 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
    [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Memory: 936304K/966656K available (7168K kernel code, 483K rwdata, 2012K rodata, 1024K init, 778K bss, 22160K reserved, 8192K cma-reserved)
    [ 0.000000] Virtual kernel memory layout:
    vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    vmalloc : 0xbb800000 - 0xff800000 (1088 MB)
    lowmem : 0x80000000 - 0xbb000000 ( 944 MB)
    modules : 0x7f000000 - 0x80000000 ( 16 MB)
    .text : 0x80008000 - 0x80800000 (8160 kB)
    .init : 0x80b00000 - 0x80c00000 (1024 kB)
    .data : 0x80c00000 - 0x80c78f7c ( 484 kB)
    .bss : 0x80c7a000 - 0x80d3ca64 ( 779 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [ 0.000000] Hierarchical RCU implementation.
    [ 0.000000] Build-time adjustment of leaf fanout to 32.
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
    [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
    [ 0.000008] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
    [ 0.000025] Switching to timer-based delay loop, resolution 52ns
    [ 0.000335] Console: colour dummy device 80x30
    [ 0.001254] console [tty1] enabled
    [ 0.001311] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
    [ 0.001382] pid_max: default: 32768 minimum: 301
    [ 0.001726] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.001769] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.002788] Disabling cpuset control group subsystem
    [ 0.002979] CPU: Testing write buffer coherency: ok
    [ 0.003047] ftrace: allocating 22378 entries in 66 pages
    [ 0.054804] CPU0: update cpu_capacity 1024
    [ 0.054868] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 0.054965] Setting up static identity map for 0x100000 - 0x100034
    [ 0.057172] CPU1: update cpu_capacity 1024
    [ 0.057179] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 0.057843] CPU2: update cpu_capacity 1024
    [ 0.057850] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [ 0.058480] CPU3: update cpu_capacity 1024
    [ 0.058487] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [ 0.058572] Brought up 4 CPUs
    [ 0.058744] SMP: Total of 4 processors activated (153.60 BogoMIPS).
    [ 0.058773] CPU: All CPU(s) started in HYP mode.
    [ 0.058799] CPU: Virtualization extensions available.
    [ 0.059632] devtmpfs: initialized
    [ 0.070802] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
    [ 0.071120] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.071182] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [ 0.071764] pinctrl core: initialized pinctrl subsystem
    [ 0.072704] NET: Registered protocol family 16
    [ 0.074969] DMA: preallocated 1024 KiB pool for atomic coherent allocations
    [ 0.083877] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [ 0.083925] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [ 0.084085] Serial: AMBA PL011 UART driver
    [ 0.085985] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
    [ 0.086860] irq: no irq domain found for /soc/aux@0x7e215000 !
    [ 0.155411] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80f000, dmachans=0x1
    [ 0.157283] SCSI subsystem initialized
    [ 0.157460] usbcore: registered new interface driver usbfs
    [ 0.157568] usbcore: registered new interface driver hub
    [ 0.157682] usbcore: registered new device driver usb
    [ 0.164369] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-03-03 13:42
    [ 0.165791] clocksource: Switched to clocksource arch_sys_counter
    [ 0.210425] VFS: Disk quotas dquot_6.6.0
    [ 0.210535] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.210766] FS-Cache: Loaded
    [ 0.211031] CacheFiles: Loaded
    [ 0.223338] NET: Registered protocol family 2
    [ 0.224255] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [ 0.224393] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [ 0.224603] TCP: Hash tables configured (established 8192 bind 8192)
    [ 0.224718] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.224785] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.225019] NET: Registered protocol family 1
    [ 0.225457] RPC: Registered named UNIX socket transport module.
    [ 0.225489] RPC: Registered udp transport module.
    [ 0.225517] RPC: Registered tcp transport module.
    [ 0.225544] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.226612] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
    [ 0.228938] workingset: timestamp_bits=14 max_order=18 bucket_order=4
    [ 0.245083] FS-Cache: Netfs 'nfs' registered for caching
    [ 0.246120] NFS: Registering the id_resolver key type
    [ 0.246170] Key type id_resolver registered
    [ 0.246198] Key type id_legacy registered
    [ 0.248629] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
    [ 0.248777] io scheduler noop registered
    [ 0.248809] io scheduler deadline registered (default)
    [ 0.249127] io scheduler cfq registered
    [ 0.254779] BCM2708FB: allocated DMA memory fa910000
    [ 0.254831] BCM2708FB: allocated DMA channel 0 @ bb80f000
    [ 0.264430] Console: switching to colour frame buffer device 80x30
    [ 0.273099] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
    [ 0.277786] bcm2835-aux-uart 3f215040.serial: could not get clk: -517
    [ 0.281632] bcm2835-rng 3f104000.rng: hwrng registered
    [ 0.284494] vc-cma: Videocore CMA driver
    [ 0.287233] vc-cma: vc_cma_base = 0x00000000
    [ 0.289900] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
    [ 0.292524] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
    [ 0.295339] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
    [ 0.316146] brd: module loaded
    [ 0.327730] loop: module loaded
    [ 0.330314] Loading iSCSI transport class v2.0-870.
    [ 0.333361] usbcore: registered new interface driver smsc95xx
    [ 0.335934] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
    [ 0.564510] Core Release: 2.80a
    [ 0.567074] Setting default values for core params
    [ 0.569687] Finished setting default values for core params
    [ 0.772642] Using Buffer DMA mode
    [ 0.775112] Periodic Transfer Interrupt Enhancement - disabled
    [ 0.777680] Multiprocessor Interrupt Enhancement - disabled
    [ 0.780272] OTG VER PARAM: 0, OTG VER FLAG: 0
    [ 0.782879] Dedicated Tx FIFOs mode
    [ 0.785772] WARN::dwc_otg_hcd_init:1053: FIQ DMA bounce buffers: virt = 0xba904000 dma = 0xfa904000 len=9024
    [ 0.791213] FIQ FSM acceleration enabled for :
    Non-periodic Split Transactions
    Periodic Split Transactions
    High-Speed Isochronous Endpoints
    Interrupt/Control Split Transaction hack enabled
    [ 0.804219] dwc_otg: Microframe scheduler enabled
    [ 0.804271] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x8057b894
    [ 0.806995] WARN::hcd_init_fiq:460: FIQ ASM at 0x8057bbf0 length 36
    [ 0.809758] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb87a000
    [ 0.812509] dwc_otg 3f980000.usb: DWC OTG Controller
    [ 0.815171] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
    [ 0.820558] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
    [ 0.823409] Init: Port Power? op_state=1
    [ 0.826186] Init: Power Port (0)
    [ 0.829073] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 0.831880] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 0.837388] usb usb1: Product: DWC OTG Controller
    [ 0.840184] usb usb1: Manufacturer: Linux 4.9.22-v7+ dwc_otg_hcd
    [ 0.842999] usb usb1: SerialNumber: 3f980000.usb
    [ 0.846619] hub 1-0:1.0: USB hub found
    [ 0.849365] hub 1-0:1.0: 1 port detected
    [ 0.852725] dwc_otg: FIQ enabled
    [ 0.852729] dwc_otg: NAK holdoff enabled
    [ 0.852733] dwc_otg: FIQ split-transaction FSM enabled
    [ 0.852747] Module dwc_common_port init
    [ 0.852984] usbcore: registered new interface driver usb-storage
    [ 0.855971] mousedev: PS/2 mouse device common for all mice
    [ 0.859587] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
    [ 0.862589] bcm2835-cpufreq: min=600000 max=1200000
    [ 0.865704] sdhci: Secure Digital Host Controller Interface driver
    [ 0.868534] sdhci: Copyright(c) Pierre Ossman
    [ 0.873486] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe
    [ 0.881339] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
    [ 0.884437] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 0.888185] ledtrig-cpu: registered to indicate activity on CPUs
    [ 0.891358] hidraw: raw HID events driver (C) Jiri Kosina
    [ 0.894596] usbcore: registered new interface driver usbhid
    [ 0.897615] usbhid: USB HID core driver
    [ 0.901346] vchiq: vchiq_init_state: slot_zero = 0xba980000, is_master = 0
    [ 0.906105] Initializing XFRM netlink socket
    [ 0.909187] NET: Registered protocol family 17
    [ 0.912302] Key type dns_resolver registered
    [ 0.915671] Registering SWP/SWPB emulation handler
    [ 0.919387] registered taskstats version 1
    [ 0.922626] vc-sm: Videocore shared memory driver
    [ 0.925533] [vc_sm_connected_init]: start
    [ 0.928910] [vc_sm_connected_init]: end - returning 0
    [ 0.936846] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
    [ 0.945750] console [ttyS0] disabled
    [ 0.948760] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 220, base_baud = 31250000) is a 16550
    [ 1.947712] console [ttyS0] enabled
    [ 1.956851] sdhost: log_buf @ ba907000 (fa907000)
    [ 2.035820] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
    [ 2.046496] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
    [ 2.055310] mmc-bcm2835 3f300000.mmc: DMA channel allocated
    [ 2.135924] of_cfs_init
    [ 2.141216] of_cfs_init: OK
    [ 2.147242] Waiting for root device /dev/mmcblk0p2...
    [ 2.155184] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [ 2.166255] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [ 2.176901] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
    [ 2.187729] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [ 2.198128] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
    [ 2.253872] random: fast init done
    [ 2.260014] mmc0: new high speed MMC card at address 0001
    [ 2.268523] mmcblk0: mmc0:0001 4FPD3R 3.64 GiB
    [ 2.275642] mmcblk0boot0: mmc0:0001 4FPD3R partition 1 4.00 MiB
    [ 2.284332] mmcblk0boot1: mmc0:0001 4FPD3R partition 2 4.00 MiB
    [ 2.292939] mmcblk0rpmb: mmc0:0001 4FPD3R partition 3 512 KiB
    [ 2.303093] mmcblk0: p1 p2
    [ 2.312113] mmc1: new high speed SDIO card at address 0001
    [ 2.395974] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 2.408842] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [ 2.425259] devtmpfs: mounted
    [ 2.432042] Freeing unused kernel memory: 1024K (80b00000 - 80c00000)
    [ 2.686466] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
    [ 2.705431] systemd[1]: Detected architecture 'arm'.
    [ 2.809309] NET: Registered protocol family 10
    [ 2.817875] systemd[1]: Inserted module 'ipv6'
    [ 2.826549] systemd[1]: Set hostname to <raspberrypi>.
    [ 3.103356] systemd[1]: Cannot add dependency job for unit regenerate_ssh_host_keys.service, ignoring: Unit regenerate_ssh_host_keys.service failed to load: No such file or directory.
    [ 3.129445] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
    [ 3.157083] systemd[1]: Expecting device dev-ttyS0.device...
    [ 3.170276] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
    [ 3.185124] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [ 3.199856] systemd[1]: Starting Remote File Systems (Pre).
    [ 3.730508] systemd-udevd[148]: starting version 215
    [ 3.935987] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
    [ 4.261913] brcmfmac: F1 signature read @0x18000000=0x16024335
    [ 4.279255] usbcore: registered new interface driver brcmfmac
    [ 4.355117] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [ 4.515032] random: crng init done
    [ 4.647327] systemd-journald[145]: Received request to flush runtime journal from PID 1
    [ 5.384294] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SSFS
    [ 5.535926] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
    [ 6.585913] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
    [ 7.596446] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
    [ 100.230668] usbcore: deregistering interface driver brcmfmac
    [ 112.860098] brcmfmac: brcmfmac_module_init No platform data available.
    [ 112.860612] brcmfmac: brcmf_sdio_probe Enter
    [ 112.861287] brcmfmac: F1 signature read @0x18000000=0x16024335
    [ 112.861529] brcmfmac: brcmf_chip_recognition found AXI chip: BCM4339, rev=2
    [ 112.865036] brcmfmac: brcmf_chip_cores_check [1 ] core 0x800:46 base 0x18000000 wrap 0x18100000
    [ 112.865047] brcmfmac: brcmf_chip_cores_check [2 ] core 0x812:46 base 0x18001000 wrap 0x18101000
    [ 112.865051] brcmfmac: brcmf_chip_cores_check [3 ] core 0x83e:4 base 0x18002000 wrap 0x18102000
    [ 112.865056] brcmfmac: brcmf_chip_cores_check [4 ] core 0x83c:4 base 0x18003000 wrap 0x18103000
    [ 112.865060] brcmfmac: brcmf_chip_cores_check [5 ] core 0x81a:20 base 0x18004000 wrap 0x18104000
    [ 112.865064] brcmfmac: brcmf_chip_cores_check [6 ] core 0x829:21 base 0x18005000 wrap 0x18105000
    [ 112.865068] brcmfmac: brcmf_chip_cores_check [7 ] core 0x135:0 base 0x00000000 wrap 0x18109000
    [ 112.865072] brcmfmac: brcmf_chip_cores_check [8 ] core 0x240:0 base 0x00000000 wrap 0x00000000
    [ 112.865075] brcmfmac: brcmf_chip_set_passive Enter
    [ 112.867200] brcmfmac: brcmf_chip_get_raminfo RAM: base=0x180000 size=786432 (0xc0000) sr=0 (0x0)
    [ 112.867300] brcmfmac: brcmf_chip_setup ccrev=46, pmurev=23, pmucaps=0x39cc5f17
    [ 112.867305] brcmfmac: brcmf_get_module_param Enter, bus=0, chip=17209, rev=2
    [ 112.867312] brcmfmac: brcmf_sdiod_sgtable_alloc nents=35
    [ 112.867319] brcmfmac: brcmf_sdio_kso_init Enter
    [ 112.867348] brcmfmac: brcmf_sdio_drivestrengthinit No SDIO driver strength init needed for chip 4339 rev 2 pmurev 23
    [ 112.867549] brcmfmac: brcmf_attach Enter
    [ 112.867588] brcmfmac: brcmf_fweh_register event handler registered for PSM_WATCHDOG
    [ 112.867591] brcmfmac: brcmf_proto_attach Enter
    [ 112.867609] brcmfmac: brcmf_sdiod_sgtable_alloc nents=35
    [ 112.867718] brcmfmac: brcmf_sdio_probe completed!!
    [ 112.867724] brcmfmac: brcmf_fw_get_firmwares_pcie enter: dev=mmc1:0001:1
    [ 112.868857] brcmfmac: brcmf_fw_request_code_done enter: dev=mmc1:0001:1
    [ 112.869053] brcmfmac: brcmf_fw_request_nvram_done enter: dev=mmc1:0001:1
    [ 112.869197] brcmfmac: brcmf_sdio_firmware_callback Enter: dev=mmc1:0001:1
    [ 112.869369] usbcore: registered new interface driver brcmfmac
    [ 112.869445] brcmfmac: brcmf_sdio_download_code_file Enter
    [ 112.932282] brcmfmac: brcmf_sdio_verifymemory Compare RAM dl & ul at 0x00180000; size=493599
    [ 113.024473] brcmfmac: brcmf_sdio_download_nvram Enter
    [ 113.024882] brcmfmac: brcmf_sdio_verifymemory Compare RAM dl & ul at 0x0023f7c0; size=2112
    [ 113.025407] brcmfmac: brcmf_chip_set_active Enter
    [ 114.036069] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
    [ 114.036075] brcmfmac: brcmf_sdio_firmware_callback failed: dev=mmc1:0001:1, err=0
    [ 114.036096] brcmfmac: brcmf_sdio_remove Enter
    [ 114.036099] brcmfmac: brcmf_detach Enter
    [ 114.075798] brcmfmac: brcmf_bus_change_state 0 -> 0
    [ 114.075802] brcmfmac: brcmf_bus_detach Enter
    [ 114.075806] brcmfmac: brcmf_sdio_bus_stop Enter
    [ 115.088677] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
    [ 115.088876] brcmfmac: brcmf_proto_detach Enter
    [ 115.088884] brcmfmac: brcmf_fweh_unregister event handler cleared for PSM_WATCHDOG
    [ 116.098875] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
    [ 116.135801] brcmfmac: brcmf_chip_set_passive Enter
    [ 116.136773] brcmfmac: brcmf_sdio_remove Disconnected

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: bcm4339 with rasberry pi 3 (SDIO)

Wed Apr 19, 2017 9:56 am

Check the driver code and see why this happened..

114.036075] brcmfmac: brcmf_sdio_firmware_callback failed: dev=mmc1:0001:1, err=0
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

Return to “Compute Module”