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.

wl1271_sdio: probe of mmc2:0001:2 failed with error -12

Other Parts Discussed in Thread: WL1271, WL1835

What is the error below mean?

[ 22.620000] atmel_mci f8004000.mmc: card claims to support voltages below defined range
[ 22.640000] mmc2: queuing unknown CIS tuple 0x91 (3 bytes)
[ 22.660000] mmc2: new high speed SDIO card at address 0001 name SAMPLE
[ 22.750000] Loading modules backported from Linux version R8.6-0-g3f5b34f
[ 22.750000] Backport generated by backports.git R8.6-0-g4677dc3 Alias=SAMPLE
[ 22.800000] wl1271_sdio: probe of mmc2:0001:2 failed with error -12

  • As it looks as though you have used R8.6 it is most likely to be a device tree problem. In R8.6 the device tree usage changed. Here is the patch for TI's AM335x DTS file. I suggest you make sure you have the same changes in your device tree file.
    git.ti.com/.../715fc23917f42891ce798a8beefc245fb440c6d2
    Iain
  • I am still getting the same error after applied changes to DT per your link. I also ran lsmod, notice only wlcore_sdio and compat module got loaded during startup.

    I can manually load the rest of the modules but wlan0 is not available when type "ifconfig -a"

    root@(none):/lib/modules/3.16.5-sama5-armv7-r8-00013-gcbef936-dirty/updates/net/wireless# insmod cfg80211.ko
    [ 759.470000] cfg80211: Calling CRDA to update world regulatory domain
    root@(none):/lib/modules/3.16.5-sama5-armv7-r8-00013-gcbef936-dirty/updates/net/wireless# [ 759.590000] cfg80211: World regulatory domain updated:
    [ 759.590000] cfg80211: DFS Master region: unset
    [ 759.600000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [ 759.610000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [ 759.620000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [ 759.620000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    [ 759.630000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
    [ 759.640000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
    [ 759.650000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
    [ 759.660000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [ 759.670000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)

    root@(none):/lib/modules/3.16.5-sama5-armv7-r8-00013-gcbef936-dirty/updates/net/wireless# cd ..
    root@(none):/lib/modules/3.16.5-sama5-armv7-r8-00013-gcbef936-dirty/updates/net# ls
    mac80211 wireless
    root@(none):/lib/modules/3.16.5-sama5-armv7-r8-00013-gcbef936-dirty/updates/net# cd mac80211/
    root@(none):/lib/modules/3.16.5-sama5-armv7-r8-00013-gcbef936-dirty/updates/net/mac80211# ls
    mac80211.ko
    root@(none):/lib/modules/3.16.5-sama5-armv7-r8-00013-gcbef936-dirty/updates/net/mac80211# insmod mac80211.ko
    root@(none):/lib/modules/3.16.5-sama5-armv7-r8-00013-gcbef936-dirty/updates/drivers/net/wireless/ti/wlcore# insmod wlcore.ko
    root@(none):/lib/modules/3.16.5-sama5-armv7-r8-00013-gcbef936-dirty/updates/drivers/net/wireless/ti/wl18xx# insmod wl18xx.ko
    root@(none):/lib/modules/3.16.5-sama5-armv7-r8-00013-gcbef936-dirty/updates/drivers/net/wireless/ti/wl18xx# 

  • Hi,

    Can you attach the full boot logs?
    Also, which location are you putting the new dtb?

    Regards,
    Gigi Joseph.
  • Attached full log and device tree.

    dtb file location: /armv7_devel/KERNEL/arch/arm/boot/dts/

    AT91Bootstrap 3.6.1-00078-g5415d4e (Tue Feb  4 15:36:46 CET 2014)
    
    NAND: ONFI flash detected
    NAND: Manufacturer ID: 0x2c Chip ID: 0x34
    NAND: Disable On-Die ECC
    NAND: Initialize PMECC params, cap: 0x4, sector: 0x200
    NAND: Image: Copy 0x80000 bytes from 0x40000 to 0x26f00000
    NAND: Done to load image
    
    
    U-Boot 2013.07 (Feb 04 2014 - 15:36:32)
    
    CPU: SAMA5D31
    Crystal frequency:       12 MHz
    CPU clock        :      528 MHz
    Master clock     :      132 MHz
    DRAM:  256 MiB
    NAND:  512 MiB
    MMC:   mci: 0, mci: 1
    In:    serial
    Out:   serial
    Err:   serial
    Net:   miiphy_register: non unique device name 'macb0'
    macb0
    Warning: failed to set MAC address
    , macb0
    Warning: failed to set MAC address
    
    Hit any key to stop autoboot:  0
    
    NAND read: device 0 offset 0x180000, size 0x8628
     34344 bytes read: OK
    
    NAND read: device 0 offset 0x200000, size 0x374cb0
     3624112 bytes read: OK
    Kernel image @ 0x22000000 [ 0x000000 - 0x374cb0 ]
    ## Flattened Device Tree blob at 21000000
       Booting using the fdt blob at 0x21000000
       Loading Device Tree to 2bb0f000, end 2bb1a627 ... OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.16.5-sama5-armv7-r8-00013-gcbef936-dirty (root@john-test) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) ) #8 Thu Jul 30 10:25:39 PDT 2015
    [    0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=50c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: SAMA5D3 Xplained
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] AT91: Detected soc type: sama5d3
    [    0.000000] AT91: Detected soc subtype: sama5d31
    [    0.000000] AT91: sram at 0x300000 of 0x20000 mapped at 0xfef58000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
    [    0.000000] Kernel command line: console=ttyS0,115200 mem=256M mmcrootfstype=ext4 root=/dev/mmcblk0p2 r rootwait
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 254176K/262144K available (3402K kernel code, 212K rwdata, 1556K rodata, 152K init, 171K bss, 7968K reserved)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     modules : 0xbf800000 - 0xc0000000   (   8 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc04dfabc   (4959 kB)
    [    0.000000]       .init : 0xc04e0000 - 0xc0506034   ( 153 kB)
    [    0.000000]       .data : 0xc0508000 - 0xc053d200   ( 213 kB)
    [    0.000000]        .bss : 0xc053d200 - 0xc0567e78   ( 172 kB)
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836480000000ns
    [    0.000000] Console: colour dummy device 80x30
    [    0.050000] Calibrating delay loop... 351.43 BogoMIPS (lpj=1757184)
    [    0.060000] pid_max: default: 32768 minimum: 301
    [    0.060000] Security Framework initialized
    [    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.060000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.060000] CPU: Testing write buffer coherency: ok
    [    0.060000] Setting up static identity map for 0x20333060 - 0x203330ac
    [    0.060000] devtmpfs: initialized
    [    0.060000] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
    [    0.060000] pinctrl core: initialized pinctrl subsystem
    [    0.060000] regulator-dummy: no parameters
    [    0.080000] NET: Registered protocol family 16
    [    0.080000] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.080000] cpuidle: using governor ladder
    [    0.080000] cpuidle: using governor menu
    [    0.090000] No ATAGs?
    [    0.090000] AT91: Power Management
    [    0.090000] gpio-at91 fffff200.gpio: at address fefff200
    [    0.100000] gpio-at91 fffff400.gpio: at address fefff400
    [    0.100000] gpio-at91 fffff600.gpio: at address fefff600
    [    0.100000] gpio-at91 fffff800.gpio: at address fefff800
    [    0.100000] gpio-at91 fffffa00.gpio: at address fefffa00
    [    0.100000] pinctrl-at91 ahb:apb:pinctrl@fffff200: initialized AT91 pinctrl driver
    [    0.150000] at_hdmac ffffe600.dma-controller: Atmel AHB DMA Controller ( cpy slave ), 8 channels
    [    0.150000] at_hdmac ffffe800.dma-controller: Atmel AHB DMA Controller ( cpy slave ), 8 channels
    [    0.150000] wlan-en-regulator: 1800 mV
    [    0.150000] SCSI subsystem initialized
    [    0.150000] usbcore: registered new interface driver usbfs
    [    0.150000] usbcore: registered new interface driver hub
    [    0.160000] usbcore: registered new device driver usb
    [    0.160000] at91_i2c f0014000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers
    [    0.160000] at91_i2c f0014000.i2c: AT91 i2c bus driver.
    [    0.160000] at91_i2c f0018000.i2c: using dma0chan2 (tx) and dma0chan3 (rx) for DMA transfers
    [    0.160000] at91_i2c f0018000.i2c: AT91 i2c bus driver.
    [    0.160000] at91_i2c f801c000.i2c: can't get a DMA channel for tx
    [    0.160000] at91_i2c f801c000.i2c: can't use DMA
    [    0.160000] at91_i2c f801c000.i2c: AT91 i2c bus driver.
    [    0.160000] pps_core: LinuxPPS API ver. 1 registered
    [    0.160000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.160000] PTP clock support registered
    [    0.170000] Switched to clocksource tcb_clksrc
    [    0.210000] NET: Registered protocol family 2
    [    0.210000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.210000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.210000] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.210000] TCP: reno registered
    [    0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.210000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.210000] NET: Registered protocol family 1
    [    0.210000] RPC: Registered named UNIX socket transport module.
    [    0.210000] RPC: Registered udp transport module.
    [    0.210000] RPC: Registered tcp transport module.
    [    0.210000] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.220000] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.220000] msgmni has been set to 496
    [    0.220000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
    [    0.220000] io scheduler noop registered (default)
    [    0.230000] VCC_1V8: 1800 mV
    [    0.230000] VCC_1V2: 1200 mV
    [    0.230000] VCC_3V3: 3300 mV
    [    0.230000] FUSE_2V5: 2500 mV
    [    0.230000] VDDANA: 3300 mV
    [    0.230000] LDO_REG3: at 600 mV
    [    0.240000] LDO_REG4: at 600 mV
    [    0.240000] f001c000.serial: ttyS1 at MMIO 0xf001c000 (irq = 30, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.240000] f0020000.serial: ttyS2 at MMIO 0xf0020000 (irq = 31, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.240000] f8020000.serial: ttyS3 at MMIO 0xf8020000 (irq = 38, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.240000] ffffee00.serial: ttyS0 at MMIO 0xffffee00 (irq = 44, base_baud = 8250000) is a ATMEL_SERIAL
    [    0.750000] console [ttyS0] enabled
    [    0.750000] f0024000.serial: ttyS5 at MMIO 0xf0024000 (irq = 53, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.760000] [drm] Initialized drm 1.1.0 20060810
    [    0.780000] brd: module loaded
    [    0.790000] loop: module loaded
    [    0.800000] atmel_nand_nfc 70000000.nfc: NFC is probed.
    [    0.800000] atmel_nand 60000000.nand: Use On Flash BBT
    [    0.810000] atmel_nand 60000000.nand: Using dma0chan4 for DMA transfers.
    [    0.820000] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
    [    0.820000] nand: Micron MT29F4G08ABADAWP
    [    0.830000] nand: 512MiB, SLC, page size: 2048, OOB size: 64
    [    0.830000] atmel_nand 60000000.nand: minimum ECC: 4 bits in 512 bytes
    [    0.840000] atmel_nand 60000000.nand: Initialize PMECC params, cap: 4, sector: 512
    [    0.850000] atmel_nand 60000000.nand: Using NFC Sram read
    [    0.850000] nand: WARNING: MT29F4G08ABADAWP: the ECC used on your system is too weak compared to the one required by the NAND chip
    [    0.870000] Bad block table found at page 262080, version 0x01
    [    0.870000] Bad block table found at page 262016, version 0x01
    [    0.880000] 6 ofpart partitions found on MTD device atmel_nand
    [    0.880000] Creating 6 MTD partitions on "atmel_nand":
    [    0.890000] 0x000000000000-0x000000040000 : "at91bootstrap"
    [    0.900000] 0x000000040000-0x0000000c0000 : "bootloader"
    [    0.900000] 0x0000000c0000-0x000000180000 : "bootloader env"
    [    0.910000] 0x000000180000-0x000000200000 : "device tree"
    [    0.920000] 0x000000200000-0x000000800000 : "kernel"
    [    0.930000] 0x000000800000-0x000010000000 : "rootfs"
    [    0.940000] atmel_spi f0004000.spi: version: 0x213
    [    0.940000] atmel_spi f0004000.spi: Using dma0chan5 (tx) and dma0chan6 (rx) for DMA transfers
    [    0.950000] atmel_spi f0004000.spi: Atmel SPI Controller at 0xf0004000 (irq 26)
    [    0.960000] atmel_spi f8008000.spi: version: 0x213
    [    0.970000] atmel_spi f8008000.spi: Using dma1chan0 (tx) and dma1chan1 (rx) for DMA transfers
    [    0.980000] atmel_spi f8008000.spi: Atmel SPI Controller at 0xf8008000 (irq 35)
    [    0.980000] PPP generic driver version 2.4.2
    [    0.990000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.000000] ehci-atmel: EHCI Atmel driver
    [    1.000000] atmel-ehci 700000.ehci: EHCI Host Controller
    [    1.010000] atmel-ehci 700000.ehci: new USB bus registered, assigned bus number 1
    [    1.010000] atmel-ehci 700000.ehci: irq 55, io mem 0x00700000
    [    1.040000] atmel-ehci 700000.ehci: USB 2.0 started, EHCI 1.00
    [    1.040000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    1.050000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.060000] usb usb1: Product: EHCI Host Controller
    [    1.060000] usb usb1: Manufacturer: Linux 3.16.5-sama5-armv7-r8-00013-gcbef936-dirty ehci_hcd
    [    1.070000] usb usb1: SerialNumber: 700000.ehci
    [    1.070000] hub 1-0:1.0: USB hub found
    [    1.080000] hub 1-0:1.0: 3 ports detected
    [    1.080000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    1.090000] ohci-atmel: OHCI Atmel driver
    [    1.090000] at91_ohci 600000.ohci: OHCI Host Controller
    [    1.100000] at91_ohci 600000.ohci: new USB bus registered, assigned bus number 2
    [    1.110000] at91_ohci 600000.ohci: irq 55, io mem 0x00600000
    [    1.170000] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
    [    1.180000] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.180000] usb usb2: Product: OHCI Host Controller
    [    1.190000] usb usb2: Manufacturer: Linux 3.16.5-sama5-armv7-r8-00013-gcbef936-dirty ohci_hcd
    [    1.200000] usb usb2: SerialNumber: at91
    [    1.200000] hub 2-0:1.0: USB hub found
    [    1.210000] hub 2-0:1.0: 3 ports detected
    [    1.210000] usbcore: registered new interface driver cdc_acm
    [    1.220000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [    1.230000] usbcore: registered new interface driver usb-storage
    [    1.230000] usbcore: registered new interface driver usbserial
    [    1.240000] usbcore: registered new interface driver usbserial_generic
    [    1.240000] usbserial: USB Serial support registered for generic
    [    1.250000] usbcore: registered new interface driver ftdi_sio
    [    1.260000] usbserial: USB Serial support registered for FTDI USB Serial Device
    [    1.260000] usbcore: registered new interface driver pl2303
    [    1.270000] usbserial: USB Serial support registered for pl2303
    [    1.280000] atmel_usba_udc 500000.gadget: MMIO registers at 0xf8030000 mapped at d08c8000
    [    1.280000] atmel_usba_udc 500000.gadget: FIFO at 0x00500000 mapped at d2200000
    [    1.300000] g_serial gadget: Gadget Serial v2.4
    [    1.300000] g_serial gadget: g_serial ready
    [    1.310000] rtc (null): invalid alarm value: 1900-1-12 12:58:36
    [    1.310000] at91_rtc fffffeb0.rtc: rtc core: registered fffffeb0.rtc as rtc0
    [    1.320000] at91_rtc fffffeb0.rtc: AT91 Real Time Clock driver.
    [    1.330000] i2c /dev entries driver
    [    1.330000] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.340000] atmel_aes f8038000.aes: version: 0x135
    [    1.350000] atmel_aes f8038000.aes: Atmel AES - Using dma1chan2, dma1chan3 for DMA transfers
    [    1.360000] atmel_sha f8034000.sha: version: 0x410
    [    1.360000] atmel_sha f8034000.sha: using dma1chan4 for DMA transfers
    [    1.370000] atmel_sha f8034000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512
    [    1.380000] atmel_tdes f803c000.tdes: version: 0x701
    [    1.380000] atmel_tdes f803c000.tdes: using dma1chan5, dma1chan6 for DMA transfers
    [    1.390000] atmel_tdes f803c000.tdes: Atmel DES/TDES
    [    1.400000] usbcore: registered new interface driver usbhid
    [    1.410000] usbhid: USB HID core driver
    [    1.410000] iio iio:device0: Resolution used: 12 bits
    [    1.420000] iio iio:device0: ADC Touch screen is disabled.
    [    1.420000] nf_conntrack version 0.5.0 (3971 buckets, 15884 max)
    [    1.430000] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    1.440000] TCP: cubic registered
    [    1.440000] NET: Registered protocol family 10
    [    1.450000] sit: IPv6 over IPv4 tunneling driver
    [    1.450000] NET: Registered protocol family 17
    [    1.460000] Bridge firewalling registered
    [    1.460000] lib80211: common routines for IEEE802.11 drivers
    [    1.470000] registered taskstats version 1
    [    1.480000] input: gpio_keys as /devices/gpio_keys/input/input0
    [    1.480000] at91_rtc fffffeb0.rtc: setting system clock to 2007-01-12 12:58:46 UTC (1168606726)
    [    1.490000] atmel_mci f0000000.mmc: version: 0x505
    [    1.500000] atmel_mci f0000000.mmc: using dma0chan7 for DMA transfers
    [    1.510000] atmel_mci f0000000.mmc: No vmmc regulator found
    [    1.510000] atmel_mci f0000000.mmc: No vqmmc regulator found
    [    1.540000] usb 1-2: new high-speed USB device number 2 using atmel-ehci
    [    1.560000] atmel_mci f0000000.mmc: Atmel MCI controller at 0xf0000000 irq 25, 1 slots
    [    1.560000] atmel_mci f8000000.mmc: version: 0x505
    [    1.570000] atmel_mci f8000000.mmc: using dma1chan7 for DMA transfers
    [    1.580000] atmel_mci f8000000.mmc: No vmmc regulator found
    [    1.580000] atmel_mci f8000000.mmc: No vqmmc regulator found
    [    1.630000] atmel_mci f8000000.mmc: Atmel MCI controller at 0xf8000000 irq 33, 1 slots
    [    1.630000] atmel_mci f8004000.mmc: version: 0x505
    [    1.640000] atmel_mci f8004000.mmc: no DMA channel available
    [    1.640000] atmel_mci f8004000.mmc: using PIO
    [    1.650000] atmel_mci f8004000.mmc: No vqmmc regulator found
    [    1.660000] g_serial gadget: high-speed config #2: CDC ACM config
    [    1.690000] atmel_mci f8004000.mmc: Atmel MCI controller at 0xf8004000 irq 34, 1 slots
    [    1.700000] Waiting for root device /dev/mmcblk0p2...
    [    1.710000] usb 1-2: New USB device found, idVendor=1bc7, idProduct=0021
    [    1.720000] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.730000] usb 1-2: Product: Telit Wireless Module
    [    1.730000] usb 1-2: Manufacturer: Telit wireless solutions
    [    1.740000] usb 1-2: SerialNumber: 357164041233472
    [    1.770000] cdc_acm 1-2:1.0: This device cannot do calls on its own. It is not a modem.
    [    1.780000] cdc_acm 1-2:1.0: ttyACM0: USB ACM device
    [    1.790000] cdc_acm 1-2:1.2: This device cannot do calls on its own. It is not a modem.
    [    1.800000] cdc_acm 1-2:1.2: ttyACM1: USB ACM device
    [    1.800000] cdc_acm 1-2:1.4: This device cannot do calls on its own. It is not a modem.
    [    1.810000] cdc_acm 1-2:1.4: ttyACM2: USB ACM device
    [    1.820000] mmc1: host does not support reading read-only switch. assuming write-enable.
    [    1.830000] mmc1: new high speed SDHC card at address 0007
    [    1.840000] cdc_acm 1-2:1.6: This device cannot do calls on its own. It is not a modem.
    [    1.850000] cdc_acm 1-2:1.6: ttyACM3: USB ACM device
    [    1.850000] mmcblk0: mmc1:0007 SD08G 7.42 GiB
    [    1.860000]  mmcblk0: p1 p2
    [    1.860000] cdc_acm 1-2:1.8: This device cannot do calls on its own. It is not a modem.
    [    1.870000] cdc_acm 1-2:1.8: ttyACM4: USB ACM device
    [    1.880000] cdc_acm 1-2:1.10: This device cannot do calls on its own. It is not a modem.
    [    1.890000] cdc_acm 1-2:1.10: ttyACM5: USB ACM device
    [    1.900000] atmel_mci f8004000.mmc: card claims to support voltages below defined range
    [    1.910000] cdc_acm 1-2:1.12: This device cannot do calls on its own. It is not a modem.
    [    1.920000] cdc_acm 1-2:1.12: ttyACM6: USB ACM device
    [    1.940000] mmc2: queuing unknown CIS tuple 0x91 (3 bytes)
    [    1.940000] mmc2: new high speed SDIO card at address 0001
    [    2.040000] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
    [    2.050000] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
    [    2.070000] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.080000] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    2.090000] devtmpfs: mounted
    [    2.100000] Freeing unused kernel memory: 152K (c04e0000 - c0506000)
    INIT: version 2.88 booting
    [    2.540000] usb 2-3: new full-speed USB device number 2 using at91_ohci
    [info] Using makefile-style concurrent boot in runlevel S.
    [    2.770000] usb 2-3: New USB device found, idVendor=0403, idProduct=6001
    [    2.770000] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    2.780000] usb 2-3: Product: FT232R USB UART
    [    2.790000] usb 2-3: Manufacturer: FTDI
    [    2.790000] usb 2-3: SerialNumber: A503GAHX
    [    2.810000] ftdi_sio 2-3:1.0: FTDI USB Serial Device converter detected
    [    2.820000] usb 2-3: Detected FT232RL
    [    2.820000] usb 2-3: Number of endpoints 2
    [    2.830000] usb 2-3: Endpoint 1 MaxPacketSize 64
    [    2.830000] usb 2-3: Endpoint 2 MaxPacketSize 64
    [    2.840000] usb 2-3: Setting MaxPacketSize 64
    [    2.840000] usb 2-3: FTDI USB Serial Device converter now attached to ttyUSB0
    [....] Starting the hotplug events dispatcher: udevd[    3.570000] udevd[758]: starting version 175
    . ok
    [ ok ] Synthesizing the initial hotplug events...done.
    [    6.060000] random: nonblocking pool is initialized
    [    6.200000] Loading modules backported from Linux version R8.6-0-g3f5b34f
    [    6.210000] Backport generated by backports.git R8.6-0-g4677dc3
    [....] [    6.320000] wl1271_sdio: probe of mmc2:0001:2 failed with error -12
    [ ok ng for /dev to be fully populated...done.
    hostname: the specified hostname is invalid
    [ ok ] Activating swap...done.
    [    7.730000] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [....] Checking root file system...fsck from util-linux 2.20.1
    rootfs: clean, 21125/119760 files, 136216/478207 blocks
    done.
    [    8.040000] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [ ok ] Cleaning up temporary files... /tmp.
    [info] Loading kernel module g_serial.
    [ ok ] Activating lvm and md swap...done.
    [....] Checking file systems...fsck from util-linux 2.20.1
    done.
    [....] Mounting local filesystems...[   13.560000] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    done.
    [ ok ] Activating swapfile swap...done.
    [ ok ] Cleaning up temporary files....
    [ ok ] Setting kernel variables ...done.
    [ ok ] Configuring network interfaces...done.
    [ ok ] Cleaning up temporary files....
    [FAIL] startpar: service(s) returned failure: hostname.sh ... failed!
    INIT: Entering runlevel: 2
    [info] Using makefile-style concurrent boot in runlevel 2.
    [ ok ] Starting enhanced syslogd: rsyslogd.
    [ ok ] Starting periodic command scheduler: cron.
    [ ok ] Starting system message bus: dbus.
    [ ok ] Starting bluetooth: bluetoothd.
    [ ok ] Starting web server: lighttpd.
    [ ok ] Starting NTP server: ntpd.
    [ ok ] Starting OpenBSD Secure Shell server: sshd.
    Charger Config
    Reboot for hostname correction
    Skip reboot after max (3) attempts!
    
    Debian GNU/Linux 7 (none) ttyS0
    
    (none) login:

    /*
     * at91-sama5d3_xplained.dts - Device Tree file for the SAMA5D3 Xplained board
     *
     *  Copyright (C) 2014 Atmel,
     *		  2014 Nicolas Ferre <nicolas.ferre@atmel.com>
     *
     * Licensed under GPLv2 or later.
     */
    /dts-v1/;
    #include "sama5d36.dtsi"
    
    / {
    	model = "SAMA5D3 Xplained";
    	compatible = "atmel,sama5d3-xplained", "atmel,sama5d3", "atmel,sama5";
    
    	chosen {
    		bootargs = "console=ttyS0,115200";
    	};
    
    	memory {
    		reg = <0x20000000 0x10000000>;
    	};
    
    	slow_xtal {
    		clock-frequency = <32768>;
    	};
    
    	main_xtal {
    		clock-frequency = <12000000>;
    	};
    
    	ahb {
    		apb {
    			mmc0: mmc@f0000000 {
    				pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>;
    				status = "okay";
    				slot@0 {
    					reg = <0>;
    					bus-width = <8>;
    					cd-gpios = <&pioE 0 GPIO_ACTIVE_LOW>;
    				};
    			};
    			
    			spi0: spi@f0004000 {
    				cs-gpios = <&pioD 13 0>, <0>, <0>, <&pioD 16 0>;
    				status = "okay";
    			};
    
    			can0: can@f000c000 {
    				status = "okay";
    			};
    
    			i2c0: i2c@f0014000 {
    				pinctrl-0 = <&pinctrl_i2c0_pu>;
    				status = "okay";
    			};
    
    			i2c1: i2c@f0018000 {
    				status = "okay";
    
    				pmic: act8865@5b {
    					compatible = "active-semi,act8865";
    					reg = <0x5b>;
    					status = "okay";
    
    					regulators {
    						vcc_1v8_reg: DCDC_REG1 {
    							regulator-name = "VCC_1V8";
    							regulator-min-microvolt = <1800000>;
    							regulator-max-microvolt = <1800000>;
    							regulator-always-on;
    						};
    
    						vcc_1v2_reg: DCDC_REG2 {
    							regulator-name = "VCC_1V2";
    							regulator-min-microvolt = <1200000>;
    							regulator-max-microvolt = <1200000>;
    							regulator-always-on;
    						};
    
    						vcc_3v3_reg: DCDC_REG3 {
    							regulator-name = "VCC_3V3";
    							regulator-min-microvolt = <3300000>;
    							regulator-max-microvolt = <3300000>;
    							regulator-always-on;
    						};
    
    						vddfuse_reg: LDO_REG1 {
    							regulator-name = "FUSE_2V5";
    							regulator-min-microvolt = <2500000>;
    							regulator-max-microvolt = <2500000>;
    						};
    
    						vddana_reg: LDO_REG2 {
    							regulator-name = "VDDANA";
    							regulator-min-microvolt = <3300000>;
    							regulator-max-microvolt = <3300000>;
    							regulator-always-on;
    						};
    					};
    				};
    			};
    
    			macb0: ethernet@f0028000 {
    				phy-mode = "rgmii";
    				status = "disabled";
    			};
    			
    			pwm0: pwm@f002c000 {
    				pinctrl-names = "default";
    				pinctrl-0 = <&pinctrl_pwm0_pwmh0_0 &pinctrl_pwm0_pwmh1_0>;
    				status = "okay";
    			};
    
    			/* FLEX, TI WL1835 Bluetooth */	
    			usart0: serial@f001c000 {
    				pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts_cts>;
    				status = "okay";
    			};
    
    			/* FLEX
    			*usart0: serial@f001c000 {
    			*	status = "okay";
    			}; */
    
    			usart1: serial@f0020000 {
    				pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
    				status = "okay";
    			};
    
    			/* FLEX, enable BT debug */
    			usart2: serial@f8020000 {
    				pinctrl-0 = <&pinctrl_usart2>;
    				status = "okay";
    			};
    
    			uart0: serial@f0024000 {
    				status = "okay";
    			};
    
    			/* FLEX, Micro SD Card Detect */
    			mmc1: mmc@f8000000 {
    				pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
    				status = "okay";
    				slot@0 {
    					reg = <0>;
    					bus-width = <4>;
    					cd-gpios = <&pioA 9 GPIO_ACTIVE_LOW>;
    				};
    			};
    
    			/* FLEX, support WL1835 Wlan*/
    			mmc2: mmc@f8004000 {
    				pinctrl-0 = <&pinctrl_mmc2_clk_cmd_dat0 &pinctrl_mmc2_dat1_3>;
    				status = "okay";
    				vmmc-supply = <&wlan_en_reg>;
    				#address-cells = <1>;
    				#size-cells = <0>;
    				slot@0 {
    					reg = <0>;
    					bus-width = <4>;
    					non-removable;
    					needs-special-hs-handling;
    					cap-power-off-card;
    					keep-power-in-suspend;
    					wlcore: wlcore@0 {
    						compatible = "ti,wlcore", "ti,wl1835";
    						/* interrupt-parent = <&pioA>; */
    						gpios = <&pioA 3 GPIO_ACTIVE_LOW>; /* Bank A, pin 3 connected to IRQ line of WL1835MOD */
    					};
    				};
    			};
    
    			/* Power Control using a Fixed Voltage Regulator */
    			wlan_en_reg: fixedregulator@0 {
    				compatible = "regulator-fixed";
    				regulator-name = "wlan-en-regulator";
    				regulator-min-microvolt = <1800000>;
    				regulator-max-microvolt = <1800000>;
    				regulator-always-on;
    			/* WLAN_EN GPIO */
    				gpios = <&pioA 2 GPIO_ACTIVE_LOW>;
    			/* WLAN card specific delay */
    				startup-delay-us = <70000>;
    				enable-active-high;
    			};
    
    			/*
    			*kim {
    			*	compatible = "kim";
    			*	nshutdown_gpio = <&pioA 1 GPIO_ACTIVE_LOW>;
    			*	dev_name = "/dev/ttyO1";
    			*	dev_name = "/dev/ttyUSB0";
    			*	flow_cntrl = <1>;
    			*	baud_rate = <3000000>;
    			*};
    			*
    			*btwilink {
    			*	compatible = "btwilink";
    			*};
    			*/
    
    			spi1: spi@f8008000 {
    				cs-gpios = <&pioC 25 0>;
    				status = "okay";
    			};
    
    			adc0: adc@f8018000 {
    				pinctrl-0 = <
    					&pinctrl_adc0_adtrg
    					&pinctrl_adc0_ad0
    					&pinctrl_adc0_ad1
    					&pinctrl_adc0_ad2
    					&pinctrl_adc0_ad3
    					&pinctrl_adc0_ad4
    					&pinctrl_adc0_ad5
    					&pinctrl_adc0_ad6
    					&pinctrl_adc0_ad7
    					&pinctrl_adc0_ad8
    					&pinctrl_adc0_ad9
    					&pinctrl_adc0_ad10
    					&pinctrl_adc0_ad11
    					>;
    				status = "okay";
    			};
    
    			i2c2: i2c@f801c000 {
    				dmas = <0>, <0>;	/* Do not use DMA for i2c2 */
    				pinctrl-0 = <&pinctrl_i2c2_pu>;
    				status = "okay";
    			};
    
    			macb1: ethernet@f802c000 {
    				phy-mode = "rmii";
    				status = "okay";
    			};
    			
    			dbgu: serial@ffffee00 {
    				status = "okay";
    			};
    
    			pinctrl@fffff200 {
    				board {
    					pinctrl_i2c0_pu: i2c0_pu {
    						atmel,pins =
    							<AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
    							<AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
    					};
    
    					pinctrl_i2c2_pu: i2c2_pu {
    						atmel,pins =
    							<AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
    							<AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
    					};
    
    					pinctrl_mmc0_cd: mmc0_cd {
    						atmel,pins =
    							<AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
    					};
    					
    					pinctrl_mmc1_cd: mmc1_cd {
    						atmel,pins =
    							<AT91_PIOA 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
    					};
    					
    					/*
    					*pinctrl_wlan_pins: wlan_pins {
    					*	atmel,pins =
    					*		<AT91_PIOA 2 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
    					*		 AT91_PIOA 3 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP
    					*		 AT91_PIOA 1 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
    					*};
    					*/
    
    					pinctrl_usba_vbus: usba_vbus {
    						atmel,pins =
    							<AT91_PIOA 11 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;	/* PE9, conflicts with A9 */
    					};
    
    					pinctrl_key_gpio_0: key_gpio_0 {
    						atmel,pins =
    							<AT91_PIOE 31 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH
    							 AT91_PIOA 3 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
    							 AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
    							 AT91_PIOA 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH
    							 AT91_PIOA 10 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
    					};
    				};
    			};
    
    			pmc: pmc@fffffc00 {
    				main: mainck {
    					clock-frequency = <12000000>;
    				};
    			};
    		};
    
    		nand0: nand@60000000 {
    			nand-bus-width = <8>;
    			nand-ecc-mode = "hw";
    			atmel,has-pmecc;
    			atmel,pmecc-cap = <4>;
    			atmel,pmecc-sector-size = <512>;
    			nand-on-flash-bbt;
    			status = "okay";
    
    			at91bootstrap@0 {
    				label = "at91bootstrap";
    				reg = <0x0 0x40000>;
    			};
    
    			bootloader@40000 {
    				label = "bootloader";
    				reg = <0x40000 0x80000>;
    			};
    
    			bootloaderenv@c0000 {
    				label = "bootloader env";
    				reg = <0xc0000 0xc0000>;
    			};
    
    			dtb@180000 {
    				label = "device tree";
    				reg = <0x180000 0x80000>;
    			};
    
    			kernel@200000 {
    				label = "kernel";
    				reg = <0x200000 0x600000>;
    			};
    
    			rootfs@800000 {
    				label = "rootfs";
    				reg = <0x800000 0x0f800000>;
    			};
    		};
    
    		usb0: gadget@00500000 {
    			atmel,vbus-gpio = <&pioA 11 GPIO_ACTIVE_HIGH>;	/* PE9, conflicts with A9 */
    			pinctrl-names = "default";
    			pinctrl-0 = <&pinctrl_usba_vbus>;
    			status = "okay";
    		};
    
    		usb1: ohci@00600000 {
    			num-ports = <3>;
    			atmel,vbus-gpio = <0
    					   &pioE 3 GPIO_ACTIVE_LOW
    					   &pioE 4 GPIO_ACTIVE_LOW
    					  >;
    			status = "okay";
    		};
    
    		usb2: ehci@00700000 {
    			status = "okay";
    		};
    	};
    
    	/* FLEX */
    	gpio_keys {
    		compatible = "gpio-keys";
    		
    		pinctrl-names = "default";
    		pinctrl-0 = <&pinctrl_key_gpio_0>;
    
    		sw2 {
    			label = "PB_RST";
    			gpios = <&pioE 31 GPIO_ACTIVE_LOW>;
    			linux,code = <0x194>;
    			gpio-key,wakeup;
    		};
    	
    		wlirq {
    			label = "WL_IRQ";
    			gpios = <&pioA 3 GPIO_ACTIVE_LOW>;
    			linux,code = <0x193>;
    			gpio-key,wakeup;
    		};
    	
    		/*
    		*wlirq {
    		*	label = "WL_IRQ";
    		*	gpios = <&pioA 3 GPIO_ACTIVE_LOW>;
    		*	linux,code = <0x193>;
    		*	gpio-key,wakeup;
    		*};
    		*/
    
    		r2wake {
    			label = "R2_WAKE";
    			gpios = <&pioA 7 GPIO_ACTIVE_LOW>;
    			linux,code = <0x192>;
    			gpio-key,wakeup;
    		};
    
    		simcd {
    			label = "SIM_CD";
    			gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
    			linux,code = <0x191>;
    			gpio-key,wakeup;
    		};
    	};
    
    	/* FLEX */
    	leds {
    		compatible = "gpio-leds";
    		
    		/* pinctrl-names = "default"; */
    		/* pinctrl-0 = <&pinctrl_wlan_pins>; */
    
    		d10_grn {
    			label = "d10_grn"; /* Battery LED */
    			gpios = <&pioA 20 GPIO_ACTIVE_LOW>;
    			linux,default-trigger = "default-on";
    		};
    
    		d10_red {
    			label = "d10_red"; /* Battery LED */
    			gpios = <&pioA 21 GPIO_ACTIVE_LOW>;
    		};
    
    		d11 {
    			label = "d11"; /* BT LED */
    			gpios = <&pioA 22 GPIO_ACTIVE_LOW>;
    			linux,default-trigger = "heartbeat";
    		};
    
    		d12 {
    			label = "d12"; /* GPS LED */
    			gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
    			linux,default-trigger = "heartbeat";
    		};
    
    		d13 {
    			label = "d13"; /* WIFI LED */
    			gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
    			/* linux,default-trigger = "heartbeat"; */
    		};
    
    		chg {
    			label = "CHG_CE";
    			gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
    			linux,default-trigger = "default-on";
    		};
    
    		wlan {
    			label = "wlan";
    			gpios = <&pioA 2 GPIO_ACTIVE_LOW>;
    			linux,default-trigger = "default-on";
    		};
    		
    		/* 
    		*wlan {
    		*	label = "wlan";
    		*	gpios = <&pioA 2 GPIO_ACTIVE_LOW>;
    		*	linux,default-trigger = "default-on";
    		*};
    		*/
    	};
    };
    

    mmc2: mmc@f8004000 {
    compatible = "atmel,hsmci";
    reg = <0xf8004000 0x600>;
    interrupts = <23 IRQ_TYPE_LEVEL_HIGH 0>;
    dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(1)>;
    dma-names = "rxtx";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_mmc2_clk_cmd_dat0 &pinctrl_mmc2_dat1_3>;
    clocks = <&mci2_clk>;
    clock-names = "mci_clk";
    status = "disabled";
    #address-cells = <1>;
    #size-cells = <0>;
    };

    mmc2 {
    pinctrl_mmc2_clk_cmd_dat0: mmc2_clk_cmd_dat0 {
    atmel,pins =
    <AT91_PIOC 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC15 periph A MCI2_CK */
    AT91_PIOC 10 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PC10 periph A MCI2_CDA with pullup */
    AT91_PIOC 11 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PC11 periph A MCI2_DA0 with pullup */
    };
    pinctrl_mmc2_dat1_3: mmc2_dat1_3 {
    atmel,pins =
    <AT91_PIOC 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC12 periph A MCI2_DA1 with pullup */
    AT91_PIOC 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC13 periph A MCI2_DA2 with pullup */
    AT91_PIOC 14 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PC14 periph A MCI2_DA3 */
    };
    };

    mci2_clk: mci2_clk {
    #clock-cells = <0>;
    reg = <23>;
    };

  • Hi,

    Your wlcore node should look like the below:

    wlcore: wlcore@0 {
    compatible = "ti,wl1835";
    reg = <2>;
    interrupt-parent = <&gpio3>;
    interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
    };

    Regards,
    Gigi Joseph.
  • My follow your suggestion but same error. My changed below. Do you think "wlcore" node under "slot@0" node is correct? I am not confidence if it is but move anywhere outside of "slot@0" node, mmc2 doesn't see the device. 

    New log attached.

    AT91Bootstrap 3.6.1-00078-g5415d4e (Tue Feb  4 15:36:46 CET 2014)
    
    NAND: ONFI flash detected
    NAND: Manufacturer ID: 0x2c Chip ID: 0x34
    NAND: Disable On-Die ECC
    NAND: Initialize PMECC params, cap: 0x4, sector: 0x200
    NAND: Image: Copy 0x80000 bytes from 0x40000 to 0x26f00000
    NAND: Done to load image
    
    
    U-Boot 2013.07 (Feb 04 2014 - 15:36:32)
    
    CPU: SAMA5D31
    Crystal frequency:       12 MHz
    CPU clock        :      528 MHz
    Master clock     :      132 MHz
    DRAM:  256 MiB
    NAND:  512 MiB
    MMC:   mci: 0, mci: 1
    In:    serial
    Out:   serial
    Err:   serial
    Net:   miiphy_register: non unique device name 'macb0'
    macb0
    Warning: failed to set MAC address
    , macb0
    Warning: failed to set MAC address
    
    Hit any key to stop autoboot:  0
    
    NAND read: device 0 offset 0x180000, size 0x85de
     34270 bytes read: OK
    
    NAND read: device 0 offset 0x200000, size 0x374cb0
     3624112 bytes read: OK
    Kernel image @ 0x22000000 [ 0x000000 - 0x374cb0 ]
    ## Flattened Device Tree blob at 21000000
       Booting using the fdt blob at 0x21000000
       Loading Device Tree to 2bb0f000, end 2bb1a5dd ... OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.16.5-sama5-armv7-r8-00013-gcbef936-dirty (root@john-test) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) ) #8 Thu Jul 30 10:25:39 PDT 2015
    [    0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=50c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: SAMA5D3 Xplained
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] AT91: Detected soc type: sama5d3
    [    0.000000] AT91: Detected soc subtype: sama5d31
    [    0.000000] AT91: sram at 0x300000 of 0x20000 mapped at 0xfef58000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
    [    0.000000] Kernel command line: console=ttyS0,115200 mem=256M mmcrootfstype=ext4 root=/dev/mmcblk0p2 r rootwait
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 254176K/262144K available (3402K kernel code, 212K rwdata, 1556K rodata, 152K init, 171K bss, 7968K reserved)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     modules : 0xbf800000 - 0xc0000000   (   8 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc04dfabc   (4959 kB)
    [    0.000000]       .init : 0xc04e0000 - 0xc0506034   ( 153 kB)
    [    0.000000]       .data : 0xc0508000 - 0xc053d200   ( 213 kB)
    [    0.000000]        .bss : 0xc053d200 - 0xc0567e78   ( 172 kB)
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836480000000ns
    [    0.000000] Console: colour dummy device 80x30
    [    0.050000] Calibrating delay loop... 351.43 BogoMIPS (lpj=1757184)
    [    0.060000] pid_max: default: 32768 minimum: 301
    [    0.060000] Security Framework initialized
    [    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.060000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.060000] CPU: Testing write buffer coherency: ok
    [    0.060000] Setting up static identity map for 0x20333060 - 0x203330ac
    [    0.060000] devtmpfs: initialized
    [    0.060000] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
    [    0.060000] pinctrl core: initialized pinctrl subsystem
    [    0.060000] regulator-dummy: no parameters
    [    0.080000] NET: Registered protocol family 16
    [    0.080000] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.080000] cpuidle: using governor ladder
    [    0.080000] cpuidle: using governor menu
    [    0.090000] No ATAGs?
    [    0.090000] AT91: Power Management
    [    0.100000] gpio-at91 fffff200.gpio: at address fefff200
    [    0.100000] gpio-at91 fffff400.gpio: at address fefff400
    [    0.100000] gpio-at91 fffff600.gpio: at address fefff600
    [    0.100000] gpio-at91 fffff800.gpio: at address fefff800
    [    0.100000] gpio-at91 fffffa00.gpio: at address fefffa00
    [    0.100000] pinctrl-at91 ahb:apb:pinctrl@fffff200: initialized AT91 pinctrl driver
    [    0.150000] at_hdmac ffffe600.dma-controller: Atmel AHB DMA Controller ( cpy slave ), 8 channels
    [    0.150000] at_hdmac ffffe800.dma-controller: Atmel AHB DMA Controller ( cpy slave ), 8 channels
    [    0.150000] wlan-en-regulator: 1800 mV
    [    0.150000] SCSI subsystem initialized
    [    0.150000] usbcore: registered new interface driver usbfs
    [    0.150000] usbcore: registered new interface driver hub
    [    0.160000] usbcore: registered new device driver usb
    [    0.160000] at91_i2c f0014000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers
    [    0.160000] at91_i2c f0014000.i2c: AT91 i2c bus driver.
    [    0.160000] at91_i2c f0018000.i2c: using dma0chan2 (tx) and dma0chan3 (rx) for DMA transfers
    [    0.160000] at91_i2c f0018000.i2c: AT91 i2c bus driver.
    [    0.160000] at91_i2c f801c000.i2c: can't get a DMA channel for tx
    [    0.160000] at91_i2c f801c000.i2c: can't use DMA
    [    0.160000] at91_i2c f801c000.i2c: AT91 i2c bus driver.
    [    0.160000] pps_core: LinuxPPS API ver. 1 registered
    [    0.160000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.160000] PTP clock support registered
    [    0.170000] Switched to clocksource tcb_clksrc
    [    0.210000] NET: Registered protocol family 2
    [    0.210000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.210000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.210000] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.210000] TCP: reno registered
    [    0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.210000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.210000] NET: Registered protocol family 1
    [    0.210000] RPC: Registered named UNIX socket transport module.
    [    0.210000] RPC: Registered udp transport module.
    [    0.210000] RPC: Registered tcp transport module.
    [    0.210000] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.210000] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.220000] msgmni has been set to 496
    [    0.220000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
    [    0.220000] io scheduler noop registered (default)
    [    0.230000] VCC_1V8: 1800 mV
    [    0.230000] VCC_1V2: 1200 mV
    [    0.230000] VCC_3V3: 3300 mV
    [    0.230000] FUSE_2V5: 2500 mV
    [    0.230000] VDDANA: 3300 mV
    [    0.230000] LDO_REG3: at 600 mV
    [    0.240000] LDO_REG4: at 600 mV
    [    0.240000] f001c000.serial: ttyS1 at MMIO 0xf001c000 (irq = 30, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.240000] f0020000.serial: ttyS2 at MMIO 0xf0020000 (irq = 31, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.240000] f8020000.serial: ttyS3 at MMIO 0xf8020000 (irq = 38, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.240000] ffffee00.serial: ttyS0 at MMIO 0xffffee00 (irq = 44, base_baud = 8250000) is a ATMEL_SERIAL
    [    0.750000] console [ttyS0] enabled
    [    0.750000] f0024000.serial: ttyS5 at MMIO 0xf0024000 (irq = 53, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.760000] [drm] Initialized drm 1.1.0 20060810
    [    0.780000] brd: module loaded
    [    0.790000] loop: module loaded
    [    0.800000] atmel_nand_nfc 70000000.nfc: NFC is probed.
    [    0.800000] atmel_nand 60000000.nand: Use On Flash BBT
    [    0.810000] atmel_nand 60000000.nand: Using dma0chan4 for DMA transfers.
    [    0.820000] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
    [    0.820000] nand: Micron MT29F4G08ABADAWP
    [    0.830000] nand: 512MiB, SLC, page size: 2048, OOB size: 64
    [    0.830000] atmel_nand 60000000.nand: minimum ECC: 4 bits in 512 bytes
    [    0.840000] atmel_nand 60000000.nand: Initialize PMECC params, cap: 4, sector: 512
    [    0.850000] atmel_nand 60000000.nand: Using NFC Sram read
    [    0.850000] nand: WARNING: MT29F4G08ABADAWP: the ECC used on your system is too weak compared to the one required by the NAND chip
    [    0.870000] Bad block table found at page 262080, version 0x01
    [    0.870000] Bad block table found at page 262016, version 0x01
    [    0.880000] 6 ofpart partitions found on MTD device atmel_nand
    [    0.880000] Creating 6 MTD partitions on "atmel_nand":
    [    0.890000] 0x000000000000-0x000000040000 : "at91bootstrap"
    [    0.900000] 0x000000040000-0x0000000c0000 : "bootloader"
    [    0.900000] 0x0000000c0000-0x000000180000 : "bootloader env"
    [    0.910000] 0x000000180000-0x000000200000 : "device tree"
    [    0.920000] 0x000000200000-0x000000800000 : "kernel"
    [    0.930000] 0x000000800000-0x000010000000 : "rootfs"
    [    0.940000] atmel_spi f0004000.spi: version: 0x213
    [    0.940000] atmel_spi f0004000.spi: Using dma0chan5 (tx) and dma0chan6 (rx) for DMA transfers
    [    0.950000] atmel_spi f0004000.spi: Atmel SPI Controller at 0xf0004000 (irq 26)
    [    0.960000] atmel_spi f8008000.spi: version: 0x213
    [    0.970000] atmel_spi f8008000.spi: Using dma1chan0 (tx) and dma1chan1 (rx) for DMA transfers
    [    0.980000] atmel_spi f8008000.spi: Atmel SPI Controller at 0xf8008000 (irq 35)
    [    0.980000] PPP generic driver version 2.4.2
    [    0.990000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.000000] ehci-atmel: EHCI Atmel driver
    [    1.000000] atmel-ehci 700000.ehci: EHCI Host Controller
    [    1.010000] atmel-ehci 700000.ehci: new USB bus registered, assigned bus number 1
    [    1.010000] atmel-ehci 700000.ehci: irq 55, io mem 0x00700000
    [    1.040000] atmel-ehci 700000.ehci: USB 2.0 started, EHCI 1.00
    [    1.040000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    1.050000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.060000] usb usb1: Product: EHCI Host Controller
    [    1.060000] usb usb1: Manufacturer: Linux 3.16.5-sama5-armv7-r8-00013-gcbef936-dirty ehci_hcd
    [    1.070000] usb usb1: SerialNumber: 700000.ehci
    [    1.070000] hub 1-0:1.0: USB hub found
    [    1.080000] hub 1-0:1.0: 3 ports detected
    [    1.080000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    1.090000] ohci-atmel: OHCI Atmel driver
    [    1.090000] at91_ohci 600000.ohci: OHCI Host Controller
    [    1.100000] at91_ohci 600000.ohci: new USB bus registered, assigned bus number 2
    [    1.110000] at91_ohci 600000.ohci: irq 55, io mem 0x00600000
    [    1.170000] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
    [    1.180000] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.180000] usb usb2: Product: OHCI Host Controller
    [    1.190000] usb usb2: Manufacturer: Linux 3.16.5-sama5-armv7-r8-00013-gcbef936-dirty ohci_hcd
    [    1.200000] usb usb2: SerialNumber: at91
    [    1.200000] hub 2-0:1.0: USB hub found
    [    1.210000] hub 2-0:1.0: 3 ports detected
    [    1.210000] usbcore: registered new interface driver cdc_acm
    [    1.220000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [    1.230000] usbcore: registered new interface driver usb-storage
    [    1.230000] usbcore: registered new interface driver usbserial
    [    1.240000] usbcore: registered new interface driver usbserial_generic
    [    1.240000] usbserial: USB Serial support registered for generic
    [    1.250000] usbcore: registered new interface driver ftdi_sio
    [    1.260000] usbserial: USB Serial support registered for FTDI USB Serial Device
    [    1.260000] usbcore: registered new interface driver pl2303
    [    1.270000] usbserial: USB Serial support registered for pl2303
    [    1.280000] atmel_usba_udc 500000.gadget: MMIO registers at 0xf8030000 mapped at d08c8000
    [    1.280000] atmel_usba_udc 500000.gadget: FIFO at 0x00500000 mapped at d2200000
    [    1.300000] g_serial gadget: Gadget Serial v2.4
    [    1.300000] g_serial gadget: g_serial ready
    [    1.310000] rtc (null): invalid alarm value: 1900-1-13 13:21:20
    [    1.310000] at91_rtc fffffeb0.rtc: rtc core: registered fffffeb0.rtc as rtc0
    [    1.320000] at91_rtc fffffeb0.rtc: AT91 Real Time Clock driver.
    [    1.330000] i2c /dev entries driver
    [    1.330000] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.340000] atmel_aes f8038000.aes: version: 0x135
    [    1.350000] atmel_aes f8038000.aes: Atmel AES - Using dma1chan2, dma1chan3 for DMA transfers
    [    1.360000] atmel_sha f8034000.sha: version: 0x410
    [    1.360000] atmel_sha f8034000.sha: using dma1chan4 for DMA transfers
    [    1.370000] atmel_sha f8034000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512
    [    1.380000] atmel_tdes f803c000.tdes: version: 0x701
    [    1.380000] atmel_tdes f803c000.tdes: using dma1chan5, dma1chan6 for DMA transfers
    [    1.400000] atmel_tdes f803c000.tdes: Atmel DES/TDES
    [    1.400000] usbcore: registered new interface driver usbhid
    [    1.410000] usbhid: USB HID core driver
    [    1.410000] iio iio:device0: Resolution used: 12 bits
    [    1.420000] iio iio:device0: ADC Touch screen is disabled.
    [    1.430000] nf_conntrack version 0.5.0 (3971 buckets, 15884 max)
    [    1.430000] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    1.440000] TCP: cubic registered
    [    1.440000] NET: Registered protocol family 10
    [    1.450000] sit: IPv6 over IPv4 tunneling driver
    [    1.450000] NET: Registered protocol family 17
    [    1.460000] Bridge firewalling registered
    [    1.460000] lib80211: common routines for IEEE802.11 drivers
    [    1.470000] registered taskstats version 1
    [    1.480000] input: gpio_keys as /devices/gpio_keys/input/input0
    [    1.490000] at91_rtc fffffeb0.rtc: setting system clock to 2007-01-13 13:21:30 UTC (1168694490)
    [    1.500000] atmel_mci f0000000.mmc: version: 0x505
    [    1.500000] atmel_mci f0000000.mmc: using dma0chan7 for DMA transfers
    [    1.510000] atmel_mci f0000000.mmc: No vmmc regulator found
    [    1.510000] atmel_mci f0000000.mmc: No vqmmc regulator found
    [    1.560000] atmel_mci f0000000.mmc: Atmel MCI controller at 0xf0000000 irq 25, 1 slots
    [    1.560000] atmel_mci f8000000.mmc: version: 0x505
    [    1.570000] atmel_mci f8000000.mmc: using dma1chan7 for DMA transfers
    [    1.580000] atmel_mci f8000000.mmc: No vmmc regulator found
    [    1.580000] atmel_mci f8000000.mmc: No vqmmc regulator found
    [    1.630000] atmel_mci f8000000.mmc: Atmel MCI controller at 0xf8000000 irq 33, 1 slots
    [    1.630000] atmel_mci f8004000.mmc: version: 0x505
    [    1.640000] atmel_mci f8004000.mmc: no DMA channel available
    [    1.640000] atmel_mci f8004000.mmc: using PIO
    [    1.650000] atmel_mci f8004000.mmc: No vqmmc regulator found
    [    1.660000] g_serial gadget: high-speed config #2: CDC ACM config
    [    1.690000] atmel_mci f8004000.mmc: Atmel MCI controller at 0xf8004000 irq 34, 1 slots
    [    1.700000] Waiting for root device /dev/mmcblk0p2...
    [    1.740000] mmc1: host does not support reading read-only switch. assuming write-enable.
    [    1.750000] mmc1: new high speed SDHC card at address 0007
    [    1.760000] mmcblk0: mmc1:0007 SD08G 7.42 GiB
    [    1.770000]  mmcblk0: p1 p2
    [    1.780000] atmel_mci f8004000.mmc: card claims to support voltages below defined range
    [    1.790000] mmc2: queuing unknown CIS tuple 0x91 (3 bytes)
    [    1.800000] mmc2: new high speed SDIO card at address 0001
    [    1.810000] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
    [    1.820000] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
    [    1.840000] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.850000] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    1.860000] devtmpfs: mounted
    [    1.870000] Freeing unused kernel memory: 152K (c04e0000 - c0506000)
    [    2.020000] usb 2-3: new full-speed USB device number 2 using at91_ohci
    INIT: version 2.88 booting
    [    2.250000] usb 2-3: New USB device found, idVendor=0403, idProduct=6001
    [    2.260000] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    2.260000] usb 2-3: Product: FT232R USB UART
    [    2.270000] usb 2-3: Manufacturer: FTDI
    [    2.270000] usb 2-3: SerialNumber: A503GAHX
    [    2.280000] ftdi_sio 2-3:1.0: FTDI USB Serial Device converter detected
    [    2.290000] usb 2-3: Detected FT232RL
    [    2.290000] usb 2-3: Number of endpoints 2
    [    2.300000] usb 2-3: Endpoint 1 MaxPacketSize 64
    [    2.300000] usb 2-3: Endpoint 2 MaxPacketSize 64
    [    2.310000] usb 2-3: Setting MaxPacketSize 64
    [    2.310000] usb 2-3: FTDI USB Serial Device converter now attached to ttyUSB0
    [info] Using makefile-style concurrent boot in runlevel S.
    [....] Starting the hotplug events dispatcher: udevd[    3.350000] udevd[736]: starting version 175
    . ok
    [ ok [    5.330000] Loading modules backported from Linux version R8.6-0-g3f5b34f
    [    5.330000] Backport generated by backports.git R8.6-0-g4677dc3
    [    5.360000] wl1271_sdio: probe of mmc2:0001:2 failed with error -12
                                                     done.
    [    5.790000] random: nonblocking pool is initialized
    [ ok ] Waiting for /dev to be fully populated...done.
    hostname: the specified hostname is invalid
    [ ok ] Activating swap...done.
    [    7.290000] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [....] Checking root file system...fsck from util-linux 2.20.1
    rootfs: clean, 21125/119760 files, 136124/478207 blocks
    done.
    [    7.610000] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [ ok ] Cleaning up temporary files... /tmp.
    [info] Loading kernel module g_serial.
    [ ok ] Activating lvm and md swap...done.
    [....] Checking file systems...fsck from util-linux 2.20.1
    done.
    [....] Mounting local filesystems...[   13.160000] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    done.
    [ ok ] Activating swapfile swap...done.
    [ ok ] Cleaning up temporary files....
    [ ok ] Setting kernel variables ...done.
    [ ok ] Configuring network interfaces...done.
    [ ok ] Cleaning up temporary files....
    [FAIL] startpar: service(s) returned failure: hostname.sh ... failed!
    INIT: Entering runlevel: 2
    [info] Using makefile-style concurrent boot in runlevel 2.
    [ ok ] Starting enhanced syslogd: rsyslogd.
    [ ok ] Starting periodic command scheduler: cron.
    [ ok ] Starting system message bus: dbus.
    [ ok ] Starting bluetooth: bluetoothd.
    [ ok ] Starting web server: lighttpd.
    [ ok ] Starting NTP server: ntpd.
    [ ok ] Starting OpenBSD Secure Shell server: sshd.
    Reboot for hostname correction
    Skip reboot after max (3) attempts!
    Reboot for work-around missing Telit devices
    Skip reboot after max (3) attempts!
    
    Debian GNU/Linux 7 (none) ttyS0
    
    (none) login:

  • Hi,

    Which platform is this? Probably you can check it on the platform forum as well.
    On the AM335x EVM, it is as below:

    &mmc3 {
    /* these are on the crossbar and are outlined in the
    xbar-event-map element */
    dmas = <&edma 12
    &edma 13>;
    dma-names = "tx", "rx";
    status = "okay";
    vmmc-supply = <&wlan_en_reg>;
    bus-width = <4>;
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&mmc3_pins_default &wlan_pins_default>;
    pinctrl-1 = <&mmc3_pins_sleep &wlan_pins_sleep>;
    ti,non-removable;
    ti,needs-special-hs-handling;
    cap-power-off-card;
    keep-power-in-suspend;

    #address-cells = <1>;
    #size-cells = <0>;
    wlcore: wlcore@0 {
    compatible = "ti,wl1835";
    reg = <2>;
    interrupt-parent = <&gpio3>;
    interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
    };
    };

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    Yeah, I saw that example from HERE. I am using SAMA5D3_xplained from Atmel. Let me debug some more. 

  • I've been trying to debug and many trials and either getting worst or same error. I don't know what else to do to get this working. Below is something I got when grep mmc of TI wl1835. What does it mean? Anything useful here?

    root@(none):~# dmesg | grep f8004000.mmc
    [ 271.090000] atmel_mci f8004000.mmc: MRQ: cmd 7
    [ 271.090000] atmel_mci f8004000.mmc: start request: cmd 7
    [ 271.090000] atmel_mci f8004000.mmc: IRQ: cmd ready
    [ 271.090000] atmel_mci f8004000.mmc: set pending cmd rdy
    [ 271.090000] atmel_mci f8004000.mmc: FSM: state=1
    [ 271.090000] atmel_mci f8004000.mmc: FSM: cmd ready?
    [ 271.090000] atmel_mci f8004000.mmc: set completed cmd ready
    [ 271.090000] atmel_mci f8004000.mmc: FSM: state=5
    [ 271.090000] atmel_mci f8004000.mmc: FSM: state=0
    [ 272.090000] atmel_mci f8004000.mmc: MRQ: cmd 7
    [ 272.090000] atmel_mci f8004000.mmc: start request: cmd 7
    [ 272.090000] atmel_mci f8004000.mmc: IRQ: cmd ready
    [ 272.090000] atmel_mci f8004000.mmc: set pending cmd rdy
    [ 272.090000] atmel_mci f8004000.mmc: FSM: state=1
    [ 272.090000] atmel_mci f8004000.mmc: FSM: cmd ready?
    [ 272.090000] atmel_mci f8004000.mmc: set completed cmd ready
    [ 272.090000] atmel_mci f8004000.mmc: FSM: state=5
    [ 272.090000] atmel_mci f8004000.mmc: FSM: state=0
    [ 273.090000] atmel_mci f8004000.mmc: MRQ: cmd 7
    [ 273.090000] atmel_mci f8004000.mmc: start request: cmd 7
    [ 273.090000] atmel_mci f8004000.mmc: IRQ: cmd ready
    [ 273.090000] atmel_mci f8004000.mmc: set pending cmd rdy
    [ 273.090000] atmel_mci f8004000.mmc: FSM: state=1
    [ 273.090000] atmel_mci f8004000.mmc: FSM: cmd ready?
    [ 273.090000] atmel_mci f8004000.mmc: set completed cmd ready
    [ 273.090000] atmel_mci f8004000.mmc: FSM: state=5
    [ 273.090000] atmel_mci f8004000.mmc: FSM: state=0
    [ 274.090000] atmel_mci f8004000.mmc: MRQ: cmd 7
    [ 274.090000] atmel_mci f8004000.mmc: start request: cmd 7
    [ 274.090000] atmel_mci f8004000.mmc: IRQ: cmd ready
    [ 274.090000] atmel_mci f8004000.mmc: set pending cmd rdy
    [ 274.090000] atmel_mci f8004000.mmc: FSM: state=1
    [ 274.090000] atmel_mci f8004000.mmc: FSM: cmd ready?
    [ 274.090000] atmel_mci f8004000.mmc: set completed cmd ready
    [ 274.090000] atmel_mci f8004000.mmc: FSM: state=5
    [ 274.090000] atmel_mci f8004000.mmc: FSM: state=0
    root@(none):~#

  • Hi,

    Sorry for the late reply!
    Can you please apply the below patch and see if it solves the issue?

    git.ti.com/.../0010-mmc-Add-SDIO-function-devicetree-subnode-parsing.patch

    Regards,
    Gigi Joseph.
  • Patch applied with same error "[    7.630000] wl1271_sdio: probe of mmc2:0001:2 failed with error -12". Attached log file.

    AT91Bootstrap 3.6.1-00078-g5415d4e (Tue Feb  4 15:36:46 CET 2014)
    
    NAND: ONFI flash detected
    NAND: Manufacturer ID: 0x2c Chip ID: 0x34
    NAND: Disable On-Die ECC
    NAND: Initialize PMECC params, cap: 0x4, sector: 0x200
    NAND: Image: Copy 0x80000 bytes from 0x40000 to 0x26f00000
    NAND: Done to load image
    
    
    U-Boot 2013.07 (Feb 04 2014 - 15:36:32)
    
    CPU: SAMA5D31
    Crystal frequency:       12 MHz
    CPU clock        :      528 MHz
    Master clock     :      132 MHz
    DRAM:  256 MiB
    NAND:  512 MiB
    MMC:   mci: 0, mci: 1
    In:    serial
    Out:   serial
    Err:   serial
    Net:   miiphy_register: non unique device name 'macb0'
    macb0
    Warning: failed to set MAC address
    , macb0
    Warning: failed to set MAC address
    
    Hit any key to stop autoboot:  0
    
    NAND read: device 0 offset 0x180000, size 0x863e
     34366 bytes read: OK
    
    NAND read: device 0 offset 0x200000, size 0x367190
     3568016 bytes read: OK
    Kernel image @ 0x22000000 [ 0x000000 - 0x367190 ]
    ## Flattened Device Tree blob at 21000000
       Booting using the fdt blob at 0x21000000
       Loading Device Tree to 2bb0f000, end 2bb1a63d ... OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.16.5-sama5-armv7-r8-00013-gcbef936-dirty (root@john-test) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) ) #17 Tue Sep 8 10:02:49 PDT 2015
    [    0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=50c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: SAMA5D3 Xplained
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] AT91: Detected soc type: sama5d3
    [    0.000000] AT91: Detected soc subtype: sama5d31
    [    0.000000] AT91: sram at 0x300000 of 0x20000 mapped at 0xfef58000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
    [    0.000000] Kernel command line: console=ttyS0,115200 mem=256M mmcrootfstype=ext4 root=/dev/mmcblk0p2 r rootwait
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 254256K/262144K available (3348K kernel code, 212K rwdata, 1532K rodata, 151K init, 171K bss, 7888K reserved)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     modules : 0xbf800000 - 0xc0000000   (   8 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc04cc3fc   (4881 kB)
    [    0.000000]       .init : 0xc04cd000 - 0xc04f2f7c   ( 152 kB)
    [    0.000000]       .data : 0xc04f4000 - 0xc0529000   ( 212 kB)
    [    0.000000]        .bss : 0xc0529000 - 0xc0553c50   ( 172 kB)
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836480000000ns
    [    0.000000] Console: colour dummy device 80x30
    [    0.050000] Calibrating delay loop... 351.43 BogoMIPS (lpj=1757184)
    [    0.060000] pid_max: default: 32768 minimum: 301
    [    0.060000] Security Framework initialized
    [    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.060000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.060000] CPU: Testing write buffer coherency: ok
    [    0.060000] Setting up static identity map for 0x20325c40 - 0x20325c8c
    [    0.060000] devtmpfs: initialized
    [    0.060000] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
    [    0.060000] pinctrl core: initialized pinctrl subsystem
    [    0.060000] regulator-dummy: no parameters
    [    0.080000] NET: Registered protocol family 16
    [    0.080000] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.080000] cpuidle: using governor ladder
    [    0.080000] cpuidle: using governor menu
    [    0.100000] No ATAGs?
    [    0.100000] AT91: Power Management
    [    0.100000] gpio-at91 fffff200.gpio: at address fefff200
    [    0.100000] gpio-at91 fffff400.gpio: at address fefff400
    [    0.100000] gpio-at91 fffff600.gpio: at address fefff600
    [    0.100000] gpio-at91 fffff800.gpio: at address fefff800
    [    0.100000] gpio-at91 fffffa00.gpio: at address fefffa00
    [    0.100000] pinctrl-at91 ahb:apb:pinctrl@fffff200: initialized AT91 pinctrl driver
    [    0.140000] at_hdmac ffffe600.dma-controller: Atmel AHB DMA Controller ( cpy slave ), 8 channels
    [    0.150000] at_hdmac ffffe800.dma-controller: Atmel AHB DMA Controller ( cpy slave ), 8 channels
    [    0.230000] wlan-en-regulator: 1800 mV
    [    0.230000] SCSI subsystem initialized
    [    0.230000] usbcore: registered new interface driver usbfs
    [    0.230000] usbcore: registered new interface driver hub
    [    0.230000] usbcore: registered new device driver usb
    [    0.230000] at91_i2c f0014000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers
    [    0.230000] at91_i2c f0014000.i2c: AT91 i2c bus driver.
    [    0.230000] at91_i2c f0018000.i2c: using dma0chan2 (tx) and dma0chan3 (rx) for DMA transfers
    [    0.230000] at91_i2c f0018000.i2c: AT91 i2c bus driver.
    [    0.230000] at91_i2c f801c000.i2c: can't get a DMA channel for tx
    [    0.230000] at91_i2c f801c000.i2c: can't use DMA
    [    0.230000] at91_i2c f801c000.i2c: AT91 i2c bus driver.
    [    0.230000] pps_core: LinuxPPS API ver. 1 registered
    [    0.230000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.240000] PTP clock support registered
    [    0.240000] Switched to clocksource tcb_clksrc
    [    0.280000] NET: Registered protocol family 2
    [    0.280000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.280000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.280000] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.280000] TCP: reno registered
    [    0.280000] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.280000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.280000] NET: Registered protocol family 1
    [    0.280000] RPC: Registered named UNIX socket transport module.
    [    0.280000] RPC: Registered udp transport module.
    [    0.280000] RPC: Registered tcp transport module.
    [    0.280000] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.290000] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.290000] msgmni has been set to 496
    [    0.290000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
    [    0.290000] io scheduler noop registered (default)
    [    0.300000] VCC_1V8: 1800 mV
    [    0.300000] VCC_1V2: 1200 mV
    [    0.300000] VCC_3V3: 3300 mV
    [    0.300000] FUSE_2V5: 2500 mV
    [    0.300000] VDDANA: 3300 mV
    [    0.310000] LDO_REG3: at 600 mV
    [    0.310000] LDO_REG4: at 600 mV
    [    0.310000] f001c000.serial: ttyS1 at MMIO 0xf001c000 (irq = 30, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.310000] f0020000.serial: ttyS2 at MMIO 0xf0020000 (irq = 31, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.310000] f8020000.serial: ttyS3 at MMIO 0xf8020000 (irq = 38, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.310000] ffffee00.serial: ttyS0 at MMIO 0xffffee00 (irq = 44, base_baud = 8250000) is a ATMEL_SERIAL
    [    0.820000] console [ttyS0] enabled
    [    0.820000] f0024000.serial: ttyS5 at MMIO 0xf0024000 (irq = 51, base_baud = 4125000) is a ATMEL_SERIAL
    [    0.840000] [drm] Initialized drm 1.1.0 20060810
    [    0.850000] brd: module loaded
    [    0.860000] loop: module loaded
    [    0.870000] atmel_nand_nfc 70000000.nfc: NFC is probed.
    [    0.870000] atmel_nand 60000000.nand: Use On Flash BBT
    [    0.880000] atmel_nand 60000000.nand: Using dma0chan4 for DMA transfers.
    [    0.890000] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
    [    0.890000] nand: Micron MT29F4G08ABADAWP
    [    0.900000] nand: 512MiB, SLC, page size: 2048, OOB size: 64
    [    0.900000] atmel_nand 60000000.nand: minimum ECC: 4 bits in 512 bytes
    [    0.910000] atmel_nand 60000000.nand: Initialize PMECC params, cap: 4, sector: 512
    [    0.920000] atmel_nand 60000000.nand: Using NFC Sram read
    [    0.920000] nand: WARNING: MT29F4G08ABADAWP: the ECC used on your system is too weak compared to the one required by the NAND chip
    [    0.940000] Bad block table not found for chip 0
    [    0.940000] Bad block table not found for chip 0
    [    0.950000] Scanning device for bad blocks
    [    1.590000] random: nonblocking pool is initialized
    [    2.290000] Bad block table written to 0x00001ffe0000, version 0x01
    [    2.300000] Bad block table written to 0x00001ffc0000, version 0x01
    [    2.300000] 6 ofpart partitions found on MTD device atmel_nand
    [    2.310000] Creating 6 MTD partitions on "atmel_nand":
    [    2.310000] 0x000000000000-0x000000040000 : "at91bootstrap"
    [    2.320000] 0x000000040000-0x0000000c0000 : "bootloader"
    [    2.330000] 0x0000000c0000-0x000000180000 : "bootloader env"
    [    2.340000] 0x000000180000-0x000000200000 : "device tree"
    [    2.350000] 0x000000200000-0x000000800000 : "kernel"
    [    2.350000] 0x000000800000-0x000010000000 : "rootfs"
    [    2.360000] atmel_spi f0004000.spi: version: 0x213
    [    2.370000] atmel_spi f0004000.spi: Using dma0chan5 (tx) and dma0chan6 (rx) for DMA transfers
    [    2.370000] atmel_spi f0004000.spi: Atmel SPI Controller at 0xf0004000 (irq 26)
    [    2.390000] atmel_spi f8008000.spi: version: 0x213
    [    2.390000] atmel_spi f8008000.spi: Using dma1chan0 (tx) and dma1chan1 (rx) for DMA transfers
    [    2.400000] atmel_spi f8008000.spi: Atmel SPI Controller at 0xf8008000 (irq 35)
    [    2.410000] PPP generic driver version 2.4.2
    [    2.410000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    2.420000] ehci-atmel: EHCI Atmel driver
    [    2.430000] atmel-ehci 700000.ehci: EHCI Host Controller
    [    2.430000] atmel-ehci 700000.ehci: new USB bus registered, assigned bus number 1
    [    2.440000] atmel-ehci 700000.ehci: irq 53, io mem 0x00700000
    [    2.460000] atmel-ehci 700000.ehci: USB 2.0 started, EHCI 1.00
    [    2.460000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    2.470000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    2.480000] usb usb1: Product: EHCI Host Controller
    [    2.480000] usb usb1: Manufacturer: Linux 3.16.5-sama5-armv7-r8-00013-gcbef936-dirty ehci_hcd
    [    2.490000] usb usb1: SerialNumber: 700000.ehci
    [    2.490000] hub 1-0:1.0: USB hub found
    [    2.500000] hub 1-0:1.0: 3 ports detected
    [    2.500000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    2.510000] ohci-atmel: OHCI Atmel driver
    [    2.510000] at91_ohci 600000.ohci: OHCI Host Controller
    [    2.520000] at91_ohci 600000.ohci: new USB bus registered, assigned bus number 2
    [    2.530000] at91_ohci 600000.ohci: irq 53, io mem 0x00600000
    [    2.590000] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
    [    2.600000] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    2.600000] usb usb2: Product: OHCI Host Controller
    [    2.610000] usb usb2: Manufacturer: Linux 3.16.5-sama5-armv7-r8-00013-gcbef936-dirty ohci_hcd
    [    2.620000] usb usb2: SerialNumber: at91
    [    2.620000] hub 2-0:1.0: USB hub found
    [    2.630000] hub 2-0:1.0: 3 ports detected
    [    2.630000] usbcore: registered new interface driver cdc_acm
    [    2.640000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [    2.650000] usbcore: registered new interface driver usb-storage
    [    2.650000] usbcore: registered new interface driver usbserial
    [    2.660000] usbcore: registered new interface driver usbserial_generic
    [    2.660000] usbserial: USB Serial support registered for generic
    [    2.670000] usbcore: registered new interface driver ftdi_sio
    [    2.680000] usbserial: USB Serial support registered for FTDI USB Serial Device
    [    2.680000] usbcore: registered new interface driver pl2303
    [    2.690000] usbserial: USB Serial support registered for pl2303
    [    2.700000] atmel_usba_udc 500000.gadget: MMIO registers at 0xf8030000 mapped at d08c8000
    [    2.700000] atmel_usba_udc 500000.gadget: FIFO at 0x00500000 mapped at d2200000
    [    2.720000] g_serial gadget: Gadget Serial v2.4
    [    2.720000] g_serial gadget: g_serial ready
    [    2.730000] rtc (null): invalid alarm value: 1900-1-1 3:39:18
    [    2.730000] at91_rtc fffffeb0.rtc: rtc core: registered fffffeb0.rtc as rtc0
    [    2.740000] at91_rtc fffffeb0.rtc: AT91 Real Time Clock driver.
    [    2.750000] i2c /dev entries driver
    [    2.750000] ledtrig-cpu: registered to indicate activity on CPUs
    [    2.760000] atmel_aes f8038000.aes: version: 0x135
    [    2.770000] atmel_aes f8038000.aes: Atmel AES - Using dma1chan2, dma1chan3 for DMA transfers
    [    2.780000] atmel_sha f8034000.sha: version: 0x410
    [    2.780000] atmel_sha f8034000.sha: using dma1chan4 for DMA transfers
    [    2.790000] atmel_sha f8034000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512
    [    2.800000] atmel_tdes f803c000.tdes: version: 0x701
    [    2.800000] atmel_tdes f803c000.tdes: using dma1chan5, dma1chan6 for DMA transfers
    [    2.810000] atmel_tdes f803c000.tdes: Atmel DES/TDES
    [    2.820000] usbcore: registered new interface driver usbhid
    [    2.830000] usbhid: USB HID core driver
    [    2.830000] iio iio:device0: Resolution used: 12 bits
    [    2.840000] iio iio:device0: ADC Touch screen is disabled.
    [    2.840000] nf_conntrack version 0.5.0 (3972 buckets, 15888 max)
    [    2.850000] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    2.860000] TCP: cubic registered
    [    2.860000] NET: Registered protocol family 10
    [    2.870000] sit: IPv6 over IPv4 tunneling driver
    [    2.870000] NET: Registered protocol family 17
    [    2.880000] Bridge firewalling registered
    [    2.880000] registered taskstats version 1
    [    2.890000] input: gpio_keys as /devices/gpio_keys/input/input0
    [    2.900000] at91_rtc fffffeb0.rtc: setting system clock to 2007-01-05 01:00:54 UTC (1167958854)
    [    2.910000] atmel_mci f0000000.mmc: version: 0x505
    [    2.910000] atmel_mci f0000000.mmc: using dma0chan7 for DMA transfers
    [    2.920000] atmel_mci f0000000.mmc: No vmmc regulator found
    [    2.930000] atmel_mci f0000000.mmc: No vqmmc regulator found
    [    2.970000] atmel_mci f0000000.mmc: Atmel MCI controller at 0xf0000000 irq 25, 1 slots
    [    2.970000] atmel_mci f8000000.mmc: version: 0x505
    [    2.980000] atmel_mci f8000000.mmc: using dma1chan7 for DMA transfers
    [    2.990000] atmel_mci f8000000.mmc: No vmmc regulator found
    [    2.990000] atmel_mci f8000000.mmc: No vqmmc regulator found
    [    3.000000] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
    [    3.010000] mmc0: mmc_rescan_try_freq: trying to init card at 300000 Hz
    [    3.040000] atmel_mci f8000000.mmc: Atmel MCI controller at 0xf8000000 irq 33, 1 slots
    [    3.040000] atmel_mci f8004000.mmc: version: 0x505
    [    3.050000] atmel_mci f8004000.mmc: no DMA channel available
    [    3.050000] atmel_mci f8004000.mmc: using PIO
    [    3.060000] atmel_mci f8004000.mmc: No vqmmc regulator found
    [    3.070000] g_serial gadget: high-speed config #2: CDC ACM config
    [    3.090000] mmc0: mmc_rescan_try_freq: trying to init card at 257813 Hz
    [    3.100000] atmel_mci f8004000.mmc: Atmel MCI controller at 0xf8004000 irq 34, 1 slots
    [    3.110000] Waiting for root device /dev/mmcblk0p2...
    [    3.140000] mmc1: mmc_rescan_try_freq: trying to init card at 400000 Hz
    [    3.320000] mmc1: host does not support reading read-only switch. assuming write-enable.
    [    3.340000] mmc1: new high speed SDHC card at address 0007
    [    3.340000] mmcblk0: mmc1:0007 SD08G 7.42 GiB
    [    3.350000]  mmcblk0: p1 p2
    [    3.360000] mmc2: mmc_rescan_try_freq: trying to init card at 400000 Hz
    [    3.370000] atmel_mci f8004000.mmc: card claims to support voltages below defined range
    [    3.400000] mmc2: queuing unknown CIS tuple 0x91 (3 bytes)
    [    3.420000] mmc2: new high speed SDIO card at address 0001
    [    3.440000] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
    [    3.450000] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
    [    3.470000] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    3.480000] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    3.490000] usb 2-3: new full-speed USB device number 2 using at91_ohci
    [    3.500000] devtmpfs: mounted
    [    3.510000] Freeing unused kernel memory: 148K (c04cd000 - c04f2000)
    [    3.730000] usb 2-3: New USB device found, idVendor=0403, idProduct=6001
    [    3.730000] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    3.740000] usb 2-3: Product: FT232R USB UART
    [    3.750000] usb 2-3: Manufacturer: FTDI
    [    3.750000] usb 2-3: SerialNumber: A503GAHX
    [    3.760000] ftdi_sio 2-3:1.0: FTDI USB Serial Device converter detected
    [    3.770000] usb 2-3: Detected FT232RL
    [    3.770000] usb 2-3: Number of endpoints 2
    [    3.780000] usb 2-3: Endpoint 1 MaxPacketSize 64
    [    3.780000] usb 2-3: Endpoint 2 MaxPacketSize 64
    [    3.780000] usb 2-3: Setting MaxPacketSize 64
    [    3.790000] usb 2-3: FTDI USB Serial Device converter now attached to ttyUSB0
    INIT: version 2.88 booting
    [info] Using makefile-style concurrent boot in runlevel S.
    [....] Starting the hotplug events dispatcher: udevd[    5.140000] udevd[731]: starting version 175
    . ok
    [ ok ] Synthesizing the initial hotplug events...[    7.560000] Loading modules backported from Linux version R8.6-0-g3f5b34f
    [    7.560000] Backport generated by backports.git R8.6-0-g4677dc3
    done.
    [    7.630000] wl1271_sdio: probe of mmc2:0001:2 failed with error -12
    [ ok ] Waiting for /dev to be fully populated...done.
    [ ok ] Activating swap...done.
    [    9.370000] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [....] Checking root file system...fsck from util-linux 2.20.1
    rootfs: clean, 20919/119760 files, 123360/478207 blocks
    done.
    [   10.860000] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [ ok ] Cleaning up temporary files... /tmp.
    [info] Loading kernel module g_serial.
    [ ok ] Activating lvm and md swap...done.
    [....] Checking file systems...fsck from util-linux 2.20.1
    done.
    [....] Mounting local filesystems...[   16.470000] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    done.
    [ ok ] Activating swapfile swap...done.
    [ ok ] Cleaning up temporary files....
    [ ok ] Setting kernel variables ...done.
    [ ok ] Configuring network interfaces...done.
    [ ok ] Cleaning up temporary files....
    INIT: Entering runlevel: 2
    [info] Using makefile-style concurrent boot in runlevel 2.
    [ ok ] Starting enhanced syslogd: rsyslogd.
    [ ok ] Starting periodic command scheduler: cron.
    [ ok ] Starting system message bus: dbus.
    [ ok ] Starting bluetooth: bluetoothd.
    [ ok ] Starting web server: lighttpd.
    [ ok ] Starting NTP server: ntpd.
    [ ok ] Starting OpenBSD Secure Shell server: sshd.
    BT Enabled
    Charger Config
    Enabling TI Chip (/dev/ttyUSB0)
    Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/ti-connectivity/TIInit_11.8.32.bts
    Loaded BTS script version 1
    texas: changing baud rate to 3000000, flow control to 1
    Can't set line discipline: Invalid argument
    Can't initialize device: Invalid argument
    Can't set line discipline: Invalid argument
    Can't initialize device: Invalid argument
    Can't open HCI socket.: Address family not supported by protocol
    name OpenXC-VI-MODEM-
    Alias=OpenXC-VI-MODEM-
    127.0.1.1       OpenXC-VI-MODEM-ABDA
    1 attempt: Reboot for hostname correction
    INIT: Sending processes the TERM signal
    [info] Using makefile-style concurrent boot in runlevel 6.
    [ ok ] Stopping bluetooth: /usr/sbin/bluetoothd.
    [ ok ] Stopping web server: lighttpd.
    [ ok ] Asking all remaining processes to terminate...done.
    Currently running processes (pstree):
    init-+-2*[logsave]
         |-rc---startpar---sendsigs---pstree
         `-rsyslogd---3*[{rsyslogd}]
    [FAIL] Killing all remaining processes...failed.
    [ ok ] Stopping enhanced syslogd: rsyslogd.
    [info] Saving the system clock.
    [   55.870000] EXT4-fs error (device mmcblk0p2): ext4_ext_check_inode:481: inode #21916: comm hwclock: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 1, max 4(4), depth 512(512)
    [ ok ] Deconfiguring network interfaces...done.
    [info] Hardware Clock updated to Fri Jan  5 02:01:48 CET 2007.
    [ ok ] Deactivating swap...done.
    [ ok ] Unmounting local filesystems...done.
    [   60.120000] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [info] Will now restart.
    þRomBOOT80000] reboot: Restarting system

  • You probably need to add some more debug messages in the source code of wlcore_sdio.ko to see where it fails.

    The relevant file is:

    Drivers/net/wireless/ti/wlcore/sdio.c

    Inside the compat-wireless directory.

    Start with the probe function and see where it fails.

  • I added some debug statements but "sdio.c" kept getting overwritten/updated by the original file under /build-utilities/src/compat_wireless/drivers/net/wireless/ti/wlcore/sdio.c.  I use "./sudo_build_wl18xx.sh" to build. How can I disable the update to source file?

  • Hi CHuong,

    You need to edit the copy of the driver in build-utilities/src/driver/drivers/net/wireless/ti

    when you do the build process it takes the base set of drivers from the src/driver directory and merges them with the src/backport directory for your kernel. The result of this process is that the src/compat-wireless directory is updated every time you build.

     

    Iain

  • I added additional debug messages and found "error -12" 

    *****FAILED HERE*******************************************************************

    static int wlcore_probe_of(struct device *dev, int *irq,
                                struct wlcore_platdev_data *pdev_data)
    {
             struct device_node *np = dev->of_node;
     
             if (!np || !of_match_node(wlcore_sdio_of_match_table, np))
                     return -ENODATA;

    *****FIXED HERE******************************************************************

    I follow this thread and able to fix the "error -12".

    *****LOG****************************************

    [ 6.990000] Loading modules backported from Linux version R8.6-0-g3f5b34f
    [ 6.990000] Backport generated by backports.git R8.6-0-g4677dc3
    [....] Waiting for /dev to be fully populated...[ 7.150000] cfg80211: Calling CRDA to update world regulatory domain
    [ 7.310000] wlcore: Time Sync: gpio requested
    [ 7.400000] cfg80211: World regulatory domain updated:
    [ 7.410000] cfg80211: DFS Master region: unset
    [ 7.410000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [ 7.420000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [ 7.430000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [ 7.440000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    [ 7.450000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
    [ 7.460000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
    [ 7.470000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
    [ 7.470000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [ 7.480000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
    [ 7.560000] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    [ 7.570000] wlcore: loaded
    [ 7.570000] wlcore: driver version: R8.6-dirty
    [ 7.580000] wlcore: compilation time: Tue Sep 15 13:36:33 2015
    done.

    root@(none):/# lsmod
    Module Size Used by
    wl18xx 65637 0
    wlcore 135969 1 wl18xx
    mac80211 292500 2 wl18xx,wlcore
    cfg80211 151065 3 mac80211,wl18xx,wlcore
    wlcore_sdio 5232 0
    compat 7583 4 cfg80211,mac80211,wl18xx,wlcore_sdio
    root@(none):/#

    root@(none):/# ifconfig -a
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 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)

    sit0 Link encap:IPv6-in-IPv4
    NOARP MTU:1480 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)

    wlan0 Link encap:Ethernet HWaddr 84:dd:20:69:ae:ab
    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)

    root@(none):/#

    Now I have a new problem, every time I touch "wlan0", system reboot. I tried "ifconfig wlan0 up" and  "wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf", both cause system to reboot.

  • 1. Are you sure you have configured the wlan_irq gpio pin correctly and you are getting interrupts from it? Try using "cat /proc/interrupts | grep wl18xx" and see that the number of interrupts is not 0 after you do and "ifconfig wlan0 up".

    2. if the number of interrupts is zero, then something is wrong with this pin configuration.

    3. Please also post the crash log you have seen.

    BR,

    Eyal

  • Interrupt gpio is there. I found out I was using usb to power the board and there wasn't enough current. No more reboot when I use power supply.

    I want to thank everyone who supported me to get Wi-Fi working. You guys ROCK!

  • Hi,

    Thanks for the update, I will mark this as closed.

    Regards,
    Gigi Joseph.