element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Driver fixes and updates to kernel 3.18.16 and 4.0.5
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 180 replies
  • Subscribers 689 subscribers
  • Views 23065 views
  • Users 0 members are here
  • raspberry_pi
  • raspeberry_pi_accessories
Related

Driver fixes and updates to kernel 3.18.16 and 4.0.5

hiassoft
hiassoft over 10 years ago

Edit: Current kernel versions and install/config instructions are also available from my webpage http://www.horus.com/~hias/cirrus-driver.html

 

During the last few weeks I fixed various issues in the Wolfson/Cirrus driver and rebased it so it works with the current RPi kernel versions (3.18.16 and 4.0.5).

 

You can download the patches from my GitHub repository. The 3.18 kernel with Cirrus drivers is in the cirrus-3.18.y branch, the 4.0 kernel with Cirrus drivers is in the cirrus-4.0.y branch. I'll rebase and update these branches from time to time so that the Cirrus driver and my changes will stay on top of the commit list.

 

If you just want to have an updated 3.18.16 kernel you can download precompiled binaries from here. Just unpack the tarball in the root directory. Before you do that it might be a good idea to update the firmware files (bootcode.bin, start*.elf and fixup*.dat in the boot directory) to the latest version.

 

Here's a list of my changes:

- Added the FLL1 setup back so that switching between 44.1kHz and 48kHz (and other sample rates) works fine.

- Don't register Arizona IRQ if it's set to 0. The Cirrus driver uses polling here and if we register an interrupt handler for irq 0 we get lots of "spurious interrupt" messages spamming dmesg in kernel 3.19 and newer. IRQ 0 is wrong anyway.

- Include DCVDD patches from the Cirrus linux-drivers repository. These patches make sure the WM8804 chip is initialized properly. Without this patch I sometimes had SPDIF audio out only on the right channel.

- Disable spidev0 in Cirrus device tree overlay. That's mainly a safety precaution so that userspace programs trying to access spi0.0 won't interfere with the WM8804 reset line. I'm not 100% sure this is needed at all, so maybe I'll remove it some time later.

 

And some important notes:

I haven't included the mmap patch, this is already supported in the upstream kernels but currently disabled by default. To enable mmap support add the following line to config.txt:

dtoverlay=i2s-mmap

 

If you compile the kernel on your own please note that the devicetree overlays have now been moved to arch/arm/boot/dts/overlays.

 

Kernel 4.0 now uses spi_bcm2835 by default (the older spi_bcm2708 module is available via a devicetree overlay) so you have to extend your /etc/modprobe.d conf file and add a pre-depend for spi_bcm2835 as well. It's safe to have both the old and the new module in here, so just use this configuration:

softdep arizona-spi pre: arizona-ldo1
softdep spi-bcm2708 pre: fixed
softdep spi-bcm2835 pre: fixed

 

so long,

 

Hias

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 9 years ago

    Hi All,

     

    I tried to make the Cirrus Logic audio card working with the RPi 3. By following the instructions from RPi Linux driver for Wolfson / Cirrus Logic Audio Card

    I successfully made it work. However, after the Pi was accidentally turned off when I was connecting a 3G module to the pins on the audio board, the audio board was not recognized by the Pi 3 any more. Below are outputs that will help troubleshooting.

     

     

    pi@raspberrypi:~ $ paste /boot/config.txt

    # For more options and information see

    # http://www.raspberrypi.org/documentation/configuration/config-txt.md

    # Some settings may impact device functionality. See link above for details

     

     

    # uncomment if you get no picture on HDMI for a default "safe" mode

    #hdmi_safe=1

     

     

    # uncomment this if your display has a black border of unused pixels visible

    # and your display can output without overscan

    #disable_overscan=1

     

     

    # uncomment the following to adjust overscan. Use positive numbers if console

    # goes off screen, and negative if there is too much border

    #overscan_left=16

    #overscan_right=16

    #overscan_top=16

    #overscan_bottom=16

     

     

    # uncomment to force a console size. By default it will be display's size minus

    # overscan.

    #framebuffer_width=1280

    #framebuffer_height=720

     

     

    # uncomment if hdmi display is not detected and composite is being output

    #hdmi_force_hotplug=1

     

     

    # uncomment to force a specific HDMI mode (this will force VGA)

    #hdmi_group=1

    #hdmi_mode=1

     

     

    # uncomment to force a HDMI mode rather than DVI. This can make audio work in

    # DMT (computer monitor) modes

    #hdmi_drive=2

     

     

    # uncomment to increase signal to HDMI, if you have interference, blanking, or

    # no display

    #config_hdmi_boost=4

     

     

    # uncomment for composite PAL

    #sdtv_mode=2

     

     

    #uncomment to overclock the arm. 700 MHz is the default.

    #arm_freq=800

     

     

    # Uncomment some or all of these to enable the optional hardware interfaces

    #dtparam=i2c_arm=on

    #dtparam=i2s=on

    #dtparam=spi=on

     

     

    # Uncomment this to enable the lirc-rpi module

    #dtoverlay=lirc-rpi

     

     

    dtoverlay=rpi-cirrus-wm5102

    dtoverlay=i2s-mmap

    dtoverlay=pi3-disable-bt

     

     

    # Additional overlays and parameters are documented /boot/overlays/README

     

     

    # Enable audio (loads snd_bcm2835)

    #dtparam=audio=on

     

     

    # NOOBS Auto-generated Settings:

    hdmi_force_hotplug=1

     

    pi@raspberrypi:~ $ vcgencmd version | paste

    Mar 15 2016 14:47:28

    Copyright (c) 2012 Broadcom

    version 1bf9a9a77026af9128a339c82d72e331d3532ee4 (clean) (release)

     

    pi@raspberrypi:~ $ dmesg | grep snd | paste

    [    3.986139] snd-rpi-wsp sound: ASoC: CPU DAI (null) not registered

    [    4.242808] snd-rpi-wsp sound: ASoC: CPU DAI (null) not registered

    [    4.269558] snd-rpi-wsp sound: ASoC: CPU DAI (null) not registered

    [    4.806830] snd-rpi-wsp sound: ASoC: CPU DAI (null) not registered

    [    4.807905] snd-rpi-wsp sound: ASoC: CPU DAI (null) not registered

    [    4.809837] snd-rpi-wsp sound: ASoC: CPU DAI (null) not registered

    [    4.810570] snd-rpi-wsp sound: ASoC: CODEC DAI wm5102-aif1 not registered

    [    4.941053] snd-rpi-wsp sound: ASoC: CODEC DAI wm5102-aif1 not registered

    [    5.024400] snd-rpi-wsp sound: ASoC: CODEC DAI wm5102-aif1 not registered

     

    pi@raspberrypi:~ $ lsmod | paste

    Module                  Size  Used by

    ppp_generic            23208  0

    slhc                    4826  1 ppp_generic

    arizona_spi             1325  0

    arizona_ldo1            2831  0

    regmap_spi              1801  1 arizona_spi

    evdev                  10552  6

    brcmfmac              178361  0

    brcmutil                5711  1 brcmfmac

    cfg80211              417413  1 brcmfmac

    rfkill                 16763  2 cfg80211

    snd_soc_rpi_wsp         8063  0

    snd_soc_bcm2708_i2s     6648  0

    snd_soc_wm8804_i2c      1430  0

    snd_soc_wm8804          7472  1 snd_soc_wm8804_i2c

    regmap_i2c              2714  1 snd_soc_wm8804_i2c

    regmap_mmio             2969  1 snd_soc_bcm2708_i2s

    snd_soc_core          133342  3 snd_soc_wm8804,snd_soc_rpi_wsp,snd_soc_bcm2708_i2s

    snd_compress            7725  1 snd_soc_core

    snd_pcm_dmaengine       3287  1 snd_soc_core

    snd_pcm                75072  4 snd_soc_wm8804,snd_soc_core,snd_soc_rpi_wsp,snd_pcm_dmaengine

    spi_bcm2835             7216  0

    snd_timer              19326  1 snd_pcm

    bcm2835_gpiomem         3023  0

    bcm2835_rng             1824  0

    snd                    52636  4 snd_soc_core,snd_timer,snd_pcm,snd_compress

    i2c_bcm2708             5062  0

    fixed                   2449  1

    uio_pdrv_genirq         2986  0

    uio                     8228  1 uio_pdrv_genirq

    i2c_dev                 6108  0

    fuse                   82598  3

    ipv6                  343808  36

     

    pi@raspberrypi:~ $ aplay -l | paste

    aplay: device_list:268: no soundcards found...

     

    Thanks for anyone's help!

     

    Best,

    Chao

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • hiassoft
    hiassoft over 9 years ago in reply to Former Member

    Hi Chao!

     

    Please don't cut down the logs. Just use "dmesg | paste" and post the link here, then we can have a closer look.

     

    so long,

     

    Hias

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to hiassoft

    pi@raspberrypi:~ $ aplay -l

    aplay: device_list:268: no soundcards found...

    pi@raspberrypi:~ $ paste | dmesg

    [    0.000000] Booting Linux on physical CPU 0x0

    [    0.000000] Initializing cgroup subsys cpuset

    [    0.000000] Initializing cgroup subsys cpu

    [    0.000000] Initializing cgroup subsys cpuacct

    [    0.000000] Linux version 4.1.19-v7+ (hias@camel2) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #1 SMP Fri Mar 11 14:31:11 CET 2016

    [    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d

    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

    [    0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2

    [    0.000000] cma: Reserved 8 MiB at 0x3a400000

    [    0.000000] Memory policy: Data cache writealloc

    [    0.000000] On node 0 totalpages: 241664

    [    0.000000] free_area_init_node: node 0, pgdat 8087b5c0, node_mem_map b9bb4000

    [    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] [bcm2709_smp_init_cpus] enter (9420->f3003010)

    [    0.000000] [bcm2709_smp_init_cpus] ncores=4

    [    0.000000] PERCPU: Embedded 12 pages/cpu @bafaf000 s20416 r8192 d20544 u49152

    [    0.000000] pcpu-alloc: s20416 r8192 d20544 u49152 alloc=12*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 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2709.boardrev=0xa22082 bcm2709.serial=0xb6c080cf smsc95xx.macaddr=B8:27:EB:C0:80:CF bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p7 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: 939392K/966656K available (6023K kernel code, 536K rwdata, 1680K rodata, 444K init, 758K bss, 19072K reserved, 8192K cma-reserved)

    [    0.000000] Virtual kernel memory layout:

        vector  : 0xffff0000 - 0xffff1000   (   4 kB)

        fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)

        vmalloc : 0xbb800000 - 0xff000000   (1080 MB)

        lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)

        modules : 0x7f000000 - 0x80000000   (  16 MB)

          .text : 0x80008000 - 0x8078e238   (7705 kB)

          .init : 0x8078f000 - 0x807fe000   ( 444 kB)

          .data : 0x807fe000 - 0x808842b8   ( 537 kB)

           .bss : 0x80887000 - 0x8094481c   ( 759 kB)

    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

    [    0.000000] Hierarchical RCU implementation.

    [    0.000000] Additional per-CPU info printed with stalls.

    [    0.000000] NR_IRQS:608

    [    0.000000] 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.000248] Console: colour dummy device 80x30

    [    0.001304] console [tty1] enabled

    [    0.001356] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)

    [    0.001424] pid_max: default: 32768 minimum: 301

    [    0.001728] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)

    [    0.001771] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)

    [    0.002775] Initializing cgroup subsys blkio

    [    0.002824] Initializing cgroup subsys memory

    [    0.002872] Initializing cgroup subsys devices

    [    0.002915] Initializing cgroup subsys freezer

    [    0.002964] Initializing cgroup subsys net_cls

    [    0.003035] CPU: Testing write buffer coherency: ok

    [    0.003120] ftrace: allocating 20459 entries in 60 pages

    [    0.050622] CPU0: update cpu_capacity 1024

    [    0.050686] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000

    [    0.050720] [bcm2709_smp_prepare_cpus] enter

    [    0.050869] Setting up static identity map for 0x8240 - 0x8274

    [    0.052663] [bcm2709_boot_secondary] cpu:1 started (0) 18

    [    0.052886] [bcm2709_secondary_init] enter cpu:1

    [    0.052929] CPU1: update cpu_capacity 1024

    [    0.052935] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001

    [    0.053317] [bcm2709_boot_secondary] cpu:2 started (0) 18

    [    0.053484] [bcm2709_secondary_init] enter cpu:2

    [    0.053505] CPU2: update cpu_capacity 1024

    [    0.053512] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002

    [    0.053875] [bcm2709_boot_secondary] cpu:3 started (0) 17

    [    0.054006] [bcm2709_secondary_init] enter cpu:3

    [    0.054027] CPU3: update cpu_capacity 1024

    [    0.054033] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003

    [    0.054096] Brought up 4 CPUs

    [    0.054194] SMP: Total of 4 processors activated (153.60 BogoMIPS).

    [    0.054224] CPU: All CPU(s) started in HYP mode.

    [    0.054250] CPU: Virtualization extensions available.

    [    0.054959] devtmpfs: initialized

    [    0.074043] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4

    [    0.074322] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns

    [    0.075171] pinctrl core: initialized pinctrl subsystem

    [    0.076051] NET: Registered protocol family 16

    [    0.081118] DMA: preallocated 4096 KiB pool for atomic coherent allocations

    [    0.082035] bcm2709.uart_clock = 48000000

    [    0.087214] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.

    [    0.087263] hw-breakpoint: maximum watchpoint size is 8 bytes.

    [    0.087440] Serial: AMBA PL011 UART driver

    [    0.087505] uart-pl011 3f201000.uart: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe

    [    0.087716] bcm2835-mbox 3f00b880.mailbox: mailbox enabled

    [    0.151341] bcm2708-dmaengine 3f007000.dma: DMA legacy API manager at f3007000, dmachans=0xf35

    [    0.151414] bcm2708-dmaengine 3f007000.dma: Initialized 7 DMA channels (+ 1 legacy)

    [    0.152023] bcm2708-dmaengine 3f007000.dma: Load BCM2835 DMA engine driver

    [    0.152060] bcm2708-dmaengine 3f007000.dma: dma_debug:0

    [    0.152663] SCSI subsystem initialized

    [    0.152874] usbcore: registered new interface driver usbfs

    [    0.152990] usbcore: registered new interface driver hub

    [    0.153110] usbcore: registered new device driver usb

    [    0.153648] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-03-15 14:47

    [    0.180705] Switched to clocksource arch_sys_counter

    [    0.219980] FS-Cache: Loaded

    [    0.220278] CacheFiles: Loaded

    [    0.229553] NET: Registered protocol family 2

    [    0.230553] TCP established hash table entries: 8192 (order: 3, 32768 bytes)

    [    0.230736] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)

    [    0.230947] TCP: Hash tables configured (established 8192 bind 8192)

    [    0.231063] UDP hash table entries: 512 (order: 2, 16384 bytes)

    [    0.231132] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

    [    0.231467] NET: Registered protocol family 1

    [    0.231794] RPC: Registered named UNIX socket transport module.

    [    0.231826] RPC: Registered udp transport module.

    [    0.231853] RPC: Registered tcp transport module.

    [    0.231881] RPC: Registered tcp NFSv4.1 backchannel transport module.

    [    0.232827] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available

    [    0.233950] futex hash table entries: 1024 (order: 4, 65536 bytes)

    [    0.247424] VFS: Disk quotas dquot_6.6.0

    [    0.247713] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

    [    0.249757] FS-Cache: Netfs 'nfs' registered for caching

    [    0.250763] NFS: Registering the id_resolver key type

    [    0.250827] Key type id_resolver registered

    [    0.250856] Key type id_legacy registered

    [    0.252930] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)

    [    0.253100] io scheduler noop registered

    [    0.253138] io scheduler deadline registered (default)

    [    0.253438] io scheduler cfq registered

    [    0.255751] BCM2708FB: allocated DMA memory fa800000

    [    0.255798] BCM2708FB: allocated DMA channel 0 @ f3007000

    [    0.282660] Console: switching to colour frame buffer device 228x61

    [    0.298494] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled

    [    0.299897] vc-cma: Videocore CMA driver

    [    0.299973] vc-cma: vc_cma_base      = 0x00000000

    [    0.300057] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)

    [    0.300150] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)

    [    0.300407] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)

    [    0.312113] brd: module loaded

    [    0.319188] loop: module loaded

    [    0.320126] vchiq: vchiq_init_state: slot_zero = 0xba880000, is_master = 0

    [    0.321832] Loading iSCSI transport class v2.0-870.

    [    0.322559] usbcore: registered new interface driver smsc95xx

    [    0.322697] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)

    [    0.523101] Core Release: 2.80a

    [    0.523170] Setting default values for core params

    [    0.523281] Finished setting default values for core params

    [    0.723735] Using Buffer DMA mode

    [    0.723802] Periodic Transfer Interrupt Enhancement - disabled

    [    0.723901] Multiprocessor Interrupt Enhancement - disabled

    [    0.723996] OTG VER PARAM: 0, OTG VER FLAG: 0

    [    0.724085] Dedicated Tx FIFOs mode

    [    0.724415] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xba814000 dma = 0xfa814000 len=9024

    [    0.724594] FIQ FSM acceleration enabled for :

    Non-periodic Split Transactions

    Periodic Split Transactions

    High-Speed Isochronous Endpoints

    [    0.724857] dwc_otg: Microframe scheduler enabled

    [    0.724908] WARN::hcd_init_fiq:412: FIQ on core 1 at 0x8040d26c

    [    0.729121] WARN::hcd_init_fiq:413: FIQ ASM at 0x8040d5c8 length 36

    [    0.733320] WARN::hcd_init_fiq:438: MPHI regs_base at 0xbb89c000

    [    0.737540] dwc_otg 3f980000.usb: DWC OTG Controller

    [    0.741765] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1

    [    0.745983] dwc_otg 3f980000.usb: irq 32, io mem 0x00000000

    [    0.750184] Init: Port Power? op_state=1

    [    0.754331] Init: Power Port (0)

    [    0.758605] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

    [    0.762770] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

    [    0.766927] usb usb1: Product: DWC OTG Controller

    [    0.771090] usb usb1: Manufacturer: Linux 4.1.19-v7+ dwc_otg_hcd

    [    0.775301] usb usb1: SerialNumber: 3f980000.usb

    [    0.780220] hub 1-0:1.0: USB hub found

    [    0.784450] hub 1-0:1.0: 1 port detected

    [    0.788922] dwc_otg: FIQ enabled

    [    0.788931] dwc_otg: NAK holdoff enabled

    [    0.788939] dwc_otg: FIQ split-transaction FSM enabled

    [    0.788969] Module dwc_common_port init

    [    0.789240] usbcore: registered new interface driver usb-storage

    [    0.793544] mousedev: PS/2 mouse device common for all mice

    [    0.798327] bcm2835-cpufreq: min=600000 max=1200000

    [    0.802684] sdhci: Secure Digital Host Controller Interface driver

    [    0.806749] sdhci: Copyright(c) Pierre Ossman

    [    0.811100] sdhost: log_buf @ ba813000 (fa813000)

    [    0.890739] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)

    [    0.917216] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0

    [    0.921331] mmc-bcm2835 3f300000.mmc: DMA channel allocated

    [    0.960829] sdhci-pltfm: SDHCI platform and OF driver helper

    [    0.961800] mmc0: host does not support reading read-only switch, assuming write-enable

    [    0.964656] mmc0: new high speed SDHC card at address 59b4

    [    0.965091] mmcblk0: mmc0:59b4 00000 14.9 GiB

    [    0.968885]  mmcblk0: p1 p2 < p5 p6 p7 >

    [    0.980821] Indeed it is in host mode hprt0 = 00021501

    [    0.985862] ledtrig-cpu: registered to indicate activity on CPUs

    [    0.990112] hidraw: raw HID events driver (C) Jiri Kosina

    [    0.994445] usbcore: registered new interface driver usbhid

    [    0.998582] usbhid: USB HID core driver

    [    1.003192] Initializing XFRM netlink socket

    [    1.007411] NET: Registered protocol family 17

    [    1.011691] Key type dns_resolver registered

    [    1.016157] Registering SWP/SWPB emulation handler

    [    1.018470] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)

    [    1.020022] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)

    [    1.021584] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)

    [    1.024374] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)

    [    1.036987] registered taskstats version 1

    [    1.041089] vc-sm: Videocore shared memory driver

    [    1.045002] [vc_sm_connected_init]: start

    [    1.049473] [vc_sm_connected_init]: end - returning 0

    [    1.054566] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev2

    [    1.077205] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)

    [    1.081325] VFS: Mounted root (ext4 filesystem) readonly on device 179:7.

    [    1.097394] devtmpfs: mounted

    [    1.101983] Freeing unused kernel memory: 444K (8078f000 - 807fe000)

    [    1.128697] mmc1: new high speed SDIO card at address 0001

    [    1.160747] usb 1-1: new high-speed USB device number 2 using dwc_otg

    [    1.164892] Indeed it is in host mode hprt0 = 00001101

    [    1.361033] usb 1-1: New USB device found, idVendor=0424, idProduct=9514

    [    1.365210] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

    [    1.370318] hub 1-1:1.0: USB hub found

    [    1.374591] hub 1-1:1.0: 5 ports detected

    [    1.554379] random: systemd urandom read with 65 bits of entropy available

    [    1.562419] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)

    [    1.567143] systemd[1]: Detected architecture 'arm'.

    [    1.650747] usb 1-1.1: new high-speed USB device number 3 using dwc_otg

    [    1.751001] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00

    [    1.755379] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

    [    1.762477] smsc95xx v1.0.4

    [    1.821386] NET: Registered protocol family 10

    [    1.828393] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:c0:80:cf

    [    1.829115] systemd[1]: Inserted module 'ipv6'

    [    1.832543] systemd[1]: Set hostname to <raspberrypi>.

    [    1.920780] usb 1-1.2: new low-speed USB device number 4 using dwc_otg

    [    2.045021] usb 1-1.2: New USB device found, idVendor=045e, idProduct=0797

    [    2.049639] usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0

    [    2.054200] usb 1-1.2: Product: USB Optical Mouse

    [    2.070218] input: USB Optical Mouse as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:045E:0797.0001/input/input0

    [    2.075440] hid-generic 0003:045E:0797.0001: input,hidraw0: USB HID v1.11 Mouse [USB Optical Mouse] on usb-3f980000.usb-1.2/input0

    [    2.160764] usb 1-1.4: new low-speed USB device number 5 using dwc_otg

    [    2.256576] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.

    [    2.261895] systemd[1]: Started Forward Password Requests to Wall Directory Watch.

    [    2.266806] systemd[1]: Starting Remote File Systems (Pre).

    [    2.277390] systemd[1]: Reached target Remote File Systems (Pre).

    [    2.282451] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.

    [    2.293572] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.

    [    2.298660] systemd[1]: Starting Encrypted Volumes.

    [    2.308799] usb 1-1.4: New USB device found, idVendor=040b, idProduct=2000

    [    2.308808] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0

    [    2.308815] usb 1-1.4: Product: USB Keyboard

    [    2.308822] usb 1-1.4: Manufacturer: Generic

    [    2.323791] input: Generic USB Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:040B:2000.0002/input/input1

    [    2.334932] systemd[1]: Reached target Encrypted Volumes.

    [    2.340281] systemd[1]: Starting Swap.

    [    2.351822] systemd[1]: Reached target Swap.

    [    2.357192] systemd[1]: Expecting device dev-mmcblk0p6.device...

    [    2.368699] systemd[1]: Starting Root Slice.

    [    2.380289] systemd[1]: Created slice Root Slice.

    [    2.380985] hid-generic 0003:040B:2000.0002: input,hidraw1: USB HID v1.10 Keyboard [Generic USB Keyboard] on usb-3f980000.usb-1.4/input0

    [    2.391137] systemd[1]: Starting User and Session Slice.

    [    2.403058] systemd[1]: Created slice User and Session Slice.

    [    2.403398] input: Generic USB Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.1/0003:040B:2000.0003/input/input2

    [    2.414176] systemd[1]: Starting Delayed Shutdown Socket.

    [    2.426338] systemd[1]: Listening on Delayed Shutdown Socket.

    [    2.432020] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.

    [    2.444206] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.

    [    2.449897] systemd[1]: Starting Journal Socket (/dev/log).

    [    2.461129] hid-generic 0003:040B:2000.0003: input,hidraw2: USB HID v1.10 Mouse [Generic USB Keyboard] on usb-3f980000.usb-1.4/input1

    [    2.467475] systemd[1]: Listening on Journal Socket (/dev/log).

    [    2.473257] systemd[1]: Starting udev Control Socket.

    [    2.485468] systemd[1]: Listening on udev Control Socket.

    [    2.491221] systemd[1]: Starting udev Kernel Socket.

    [    2.503304] systemd[1]: Listening on udev Kernel Socket.

    [    2.508998] systemd[1]: Starting Journal Socket.

    [    2.520952] systemd[1]: Listening on Journal Socket.

    [    2.526551] systemd[1]: Starting System Slice.

    [    2.538385] systemd[1]: Created slice System Slice.

    [    2.543959] systemd[1]: Starting File System Check on Root Device...

    [    2.557831] systemd[1]: Starting system-systemd\x2dfsck.slice.

    [    2.570008] systemd[1]: Created slice system-systemd\x2dfsck.slice.

    [    2.575502] systemd[1]: Starting system-autologin.slice.

    [    2.587559] systemd[1]: Created slice system-autologin.slice.

    [    2.593057] systemd[1]: Starting Increase datagram queue length...

    [    2.606809] systemd[1]: Starting Restore / save the current clock...

    [    2.646439] systemd[1]: Starting Load Kernel Modules...

    [    2.681264] systemd[1]: Started Set Up Additional Binary Formats.

    [    2.687185] systemd[1]: Starting Create list of required static device nodes for the current kernel...

    [    2.702553] systemd[1]: Mounting Debug File System...

    [    2.718562] systemd[1]: Mounted Huge Pages File System.

    [    2.724174] systemd[1]: Mounting POSIX Message Queue File System...

    [    2.731869] fuse init (API version 7.23)

    [    2.745826] systemd[1]: Starting udev Coldplug all Devices...

    [    2.760906] systemd[1]: Starting Slices.

    [    2.772351] systemd[1]: Reached target Slices.

    [    2.788771] systemd[1]: Started Increase datagram queue length.

    [    2.817977] systemd[1]: Started Create list of required static device nodes for the current kernel.

    [    2.829932] systemd[1]: Mounted Debug File System.

    [    2.841248] systemd[1]: Mounted POSIX Message Queue File System.

    [    2.852113] i2c /dev entries driver

    [    2.872582] systemd[1]: Started Load Kernel Modules.

    [    2.899702] systemd[1]: Started Restore / save the current clock.

    [    2.914525] systemd[1]: Time has been changed

    [    2.943821] systemd[1]: Started udev Coldplug all Devices.

    [    3.013600] systemd[1]: Started File System Check on Root Device.

    [    3.064453] systemd[1]: Mounting FUSE Control File System...

    [    3.077162] systemd[1]: Starting Apply Kernel Variables...

    [    3.091472] systemd[1]: Mounting Configuration File System...

    [    3.105116] systemd[1]: Starting Create Static Device Nodes in /dev...

    [    3.119826] systemd[1]: Starting Syslog Socket.

    [    3.125980] systemd[1]: Listening on Syslog Socket.

    [    3.126141] systemd[1]: Starting Journal Service...

    [    3.141063] systemd[1]: Started Journal Service.

    [    3.321844] systemd-udevd[109]: starting version 215

    [    3.728386] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000

    [    4.102873] snd-rpi-wsp sound: ASoC: CPU DAI (null) not registered

    [    4.146213] EXT4-fs (mmcblk0p7): re-mounted. Opts: (null)

    [    4.360344] cfg80211: Calling CRDA to update world regulatory domain

    [    4.463411] snd-rpi-wsp sound: ASoC: CPU DAI (null) not registered

    [    4.469422] brcmfmac: brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done for chip 43430 rev 1 pmurev 24

    [    4.470297] usbcore: registered new interface driver brcmfmac

    [    4.470303] snd-rpi-wsp sound: ASoC: CPU DAI (null) not registered

    [    4.643858] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Dec 15 2015 18:10:45 version 7.45.41.23 (r606571) FWID 01-cc4eda9c

    [    4.673121] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code

    [    4.760831] bcm2835-rng 3f104000.rng: hwrng registered

    [    4.761181] snd-rpi-wsp sound: ASoC: CPU DAI (null) not registered

    [    4.762202] wm8804 1-003b: Failed to get supply 'PVDD': -517

    [    4.762220] wm8804 1-003b: Failed to request supplies: -517

    [    4.762341] bcm2708_i2c 3f804000.i2c: BSC1 Controller at 0x3f804000 (irq 79) (baudrate 100000)

    [    4.762613] snd-rpi-wsp sound: ASoC: CPU DAI (null) not registered

    [    4.763095] wm8804 1-003b: Failed to read device ID: -5

    [    4.763263] wm8804: probe of 1-003b failed with error -5

    [    4.763418] snd-rpi-wsp sound: ASoC: CODEC DAI wm5102-aif1 not registered

    [    4.799588] spi spi0.1: setting up native-CS1 as GPIO 7

    [    4.799973] snd-rpi-wsp sound: ASoC: CODEC DAI wm5102-aif1 not registered

    [    4.954713] random: nonblocking pool is initialized

    [    4.955673] LDO1: supplied by DC_1V8

    [    4.955767] snd-rpi-wsp sound: ASoC: CODEC DAI wm5102-aif1 not registered

    [    5.001088] arizona spi0.1: Unknown device ID: ffff

    [    5.031394] snd-rpi-wsp sound: ASoC: CODEC DAI wm5102-aif1 not registered

    [    5.240157] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code

    [    5.240190] cfg80211: World regulatory domain updated:

    [    5.240200] cfg80211:  DFS Master region: unset

    [    5.240208] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)

    [    5.240223] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)

    [    5.240235] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)

    [    5.240247] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)

    5.240262 cfg80211(5170000 KHz 5250000 KHz 80000 KHz  160000160000 KHz AUTO(N/A 2000 mBm(N/A

    5.240276 cfg80211(5250000 KHz 5330000 KHz 80000 KHz  160000160000 KHz AUTO(N/A 2000 mBm(0 s

    5.240289 cfg80211(5490000 KHz 5730000 KHz  160000160000 KHz(N/A 2000 mBm(0 s

    [    5.240301] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)

    [    5.240313] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)

    [    5.586120] systemd-journald[107]: Received request to flush runtime journal from PID 1

    [    5.955552] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists

    [    5.955577] brcmfmac: brcmf_add_if: ignore IF event

    [    5.961027] brcmfmac: power management disabled

    [    6.350830] cfg80211: Calling CRDA for country: GB

    [    6.370568] cfg80211: Regulatory domain changed to country: GB

    [    6.370592] cfg80211:  DFS Master region: ETSI

    [    6.370601] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)

    [    6.370616] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)

    6.370630 cfg80211(5170000 KHz 5250000 KHz 80000 KHz  160000160000 KHz AUTO(N/A 2000 mBm(N/A

    6.370645 cfg80211(5250000 KHz 5330000 KHz 80000 KHz  160000160000 KHz AUTO(N/A 2000 mBm(0 s

    6.370657 cfg80211(5490000 KHz 5710000 KHz  160000160000 KHz(N/A 2700 mBm(0 s

    [    6.370670] cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)

    [    7.135247] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:110588k SSFS

    [    7.763471] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup

    [    7.763911] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

    [    9.294539] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

    [    9.298574] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1

    [   15.642888] cfg80211: Calling CRDA to update world regulatory domain

    [   15.651198] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code

    [   15.651211] cfg80211: World regulatory domain updated:

    [   15.651216] cfg80211:  DFS Master region: unset

    [   15.651221] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)

    [   15.651228] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)

    [   15.651235] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)

    [   15.651241] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)

    15.651249 cfg80211(5170000 KHz 5250000 KHz 80000 KHz  160000160000 KHz AUTO(N/A 2000 mBm(N/A

    15.651256 cfg80211(5250000 KHz 5330000 KHz 80000 KHz  160000160000 KHz AUTO(N/A 2000 mBm(0 s

    15.651263 cfg80211(5490000 KHz 5730000 KHz  160000160000 KHz(N/A 2000 mBm(0 s

    [   15.651269] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)

    [   15.651275] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)

    [   15.651314] cfg80211: Calling CRDA for country: GB

    [   15.662308] cfg80211: Regulatory domain changed to country: GB

    [   15.662319] cfg80211:  DFS Master region: ETSI

    [   15.662324] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)

    [   15.662332] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)

    15.662340 cfg80211(5170000 KHz 5250000 KHz 80000 KHz  160000160000 KHz AUTO(N/A 2000 mBm(N/A

    15.662347 cfg80211(5250000 KHz 5330000 KHz 80000 KHz  160000160000 KHz AUTO(N/A 2000 mBm(0 s

    15.662356 cfg80211(5490000 KHz 5710000 KHz  160000160000 KHz(N/A 2700 mBm(0 s

    [   15.662362] cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)

    [   28.693988] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • hiassoft
    hiassoft over 9 years ago in reply to Former Member

    Hi Chao!

     

    These entries here are very suspicious:

     

    wm8804 1-003b: Failed to read device ID: -5

    arizona spi0.1: Unknown device ID: ffff

     

    It looks like the WM8804 and WM5102 chips are (acting) dead.

     

    What exactly did happen when the "power went down" when you "plugged in the 3G module into the pins of the audio card"? Which pins did you try to connect it to?

     

    My guess is that you caused some sort of short circuit and fried the card and/or (parts of) the RPi.

     

    so long,

     

    Hias

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • hiassoft
    hiassoft over 9 years ago in reply to Former Member

    Hi Chao!

     

    These entries here are very suspicious:

     

    wm8804 1-003b: Failed to read device ID: -5

    arizona spi0.1: Unknown device ID: ffff

     

    It looks like the WM8804 and WM5102 chips are (acting) dead.

     

    What exactly did happen when the "power went down" when you "plugged in the 3G module into the pins of the audio card"? Which pins did you try to connect it to?

     

    My guess is that you caused some sort of short circuit and fried the card and/or (parts of) the RPi.

     

    so long,

     

    Hias

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 9 years ago in reply to hiassoft

    Hello Hias,

     

    Thank you very much for troubleshooting this for me.

     

    I tried to connect a 3G board to RPi via the pins on Cirrus Logic. The pins I tried to connect are 5V, 3.3V (Pin 1 and 2), and two GND (Pin 7 and 8). Also I connected Rx and Tx. I couldn't remember clearly which Pin I connected when the power went down. From what I thought and what you guess, I think it is a short circuit.

     

    Is there anyway at this point I can do to recover it ?

     

    Best,

    Chao

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • hiassoft
    hiassoft over 9 years ago in reply to Former Member

    It's hard to tell from the distance what exactly went wrong.

     

    If you accidentally connected +5V (or some signal wire carrying more than 3.3V) to one of the RPi/Cirrus Card IOs (which are 3.3V only) you might have fried that IO. Or there could be an issue on one of the power supply rails due to a possible short circuit. There are many possibilities...

     

    Easiest way to test would be if you have another RPi or another card, than you could check if the card or the RPi is faulty.

     

    so long,

     

    Hias

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube