rock_rebel
Posts: 22
Joined: Wed Aug 08, 2012 1:43 am

No sound after rpi-update

Sun Aug 19, 2012 4:52 pm

I've encountered an issue where the sound over hdmi breaks when I update the Pi firmware. After copying the arm240_start.elf to start.elf, I run the audio test in /opt/vc/src/hello_pi and get the following error:

Outputting audio to hdmi
hello_audio.bin: audio.c:122: audioplay_create: Assertion `st->audio_render != ((void *)0)' failed.

Sound was working before I did the update. Should I not update the firmware in this way then? I used the rpi-update script on the Git-hub site.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5748
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: No sound after rpi-update

Sun Aug 19, 2012 5:03 pm

This has never worked with the 240M memory split. I don't build openMAX. Alsa audio should still work, but hello_audio/hello_video/hello_triangle will all fail, by design.

BigEndian
Posts: 19
Joined: Tue Jun 19, 2012 6:50 pm
Location: Munich // Germany

Re: No sound after rpi-update

Sun Aug 19, 2012 5:25 pm

Same here but with 128/128 split and ALSA audio (mpd).
Sound worked well with the old 3.1.9 kernel but not with the new 3.2.27.
I am using the analog output with mpd.

Here the mpd.log:

Code: Select all

ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
Aug 19 18:55 : output: Failed to open "My ALSA Device" [alsa]: Failed to open ALSA device "hw:0,0": No such file or directory
Aug 19 18:56 : output: All audio outputs are disabled
Aug 19 18:56 : output: All audio outputs are disabled
Here the dmesg output:

Code: Select all

[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.27+ (dc4@dc4-arm-01) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #12 PREEMPT Sun Aug 19 12:28:17 BST 2012
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c06151b8, node_mem_map c06e5000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: dma.dmachans=0x3c bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708.boardrev=0x2 bcm2708.serial=0x45c6aeb0 smsc95xx.macaddr=B8:27:EB:C6:AE:B0 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 122840k/122840k available, 8232k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xd8000000   ( 248 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05b0b34   (5795 kB)
[    0.000000]       .init : 0xc05b1000 - 0xc05e4000   ( 204 kB)
[    0.000000]       .data : 0xc05e4000 - 0xc0616a50   ( 203 kB)
[    0.000000]        .bss : 0xc0616a74 - 0xc06e4ab8   ( 825 kB)
[    0.000000] NR_IRQS:245
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] timer_set_mode: unhandled mode:1
[    0.000000] timer_set_mode: unhandled mode:3
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.001262] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060207] pid_max: default: 32768 minimum: 301
[    0.060813] Mount-cache hash table entries: 512
[    0.061458] Initializing cgroup subsys cpuacct
[    0.061574] Initializing cgroup subsys devices
[    0.061626] Initializing cgroup subsys freezer
[    0.061669] Initializing cgroup subsys blkio
[    0.061784] CPU: Testing write buffer coherency: ok
[    0.061912] ftrace: allocating 15204 entries in 45 pages
[    0.135068] hw perfevents: enabled with v6 PMU driver, 3 counters available
[    0.136913] devtmpfs: initialized
[    0.144276] NET: Registered protocol family 16
[    0.146293] vc-mem: mm_vc_mem_phys_addr = 0x00000000
[    0.146360] vc-mem: mm_vc_mem_size      = 0x10000000 (256 MiB)
[    0.146889] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.146955] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.147001] mailbox: Broadcom VideoCore Mailbox driver
[    0.147115] bcm2708_vcio: mailbox at f200b880
[    0.147224] bcm_power: Broadcom power driver
[    0.147271] bcm_power_open() -> 0
[    0.147302] bcm_power_request(0, 8)
[    0.648002] bcm_mailbox_read -> 00000080, 0
[    0.648053] bcm_power_request -> 0
[    0.648084] Serial: AMBA PL011 UART driver
[    0.648275] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.959131] console [ttyAMA0] enabled
[    0.988039] bio: create slab <bio-0> at 0
[    0.993659] SCSI subsystem initialized
[    0.997702] usbcore: registered new interface driver usbfs
[    1.003509] usbcore: registered new interface driver hub
[    1.009144] usbcore: registered new device driver usb
[    1.015322] Switching to clocksource stc
[    1.035238] FS-Cache: Loaded
[    1.038562] CacheFiles: Loaded
[    1.058333] NET: Registered protocol family 2
[    1.063381] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.071923] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    1.079201] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    1.085839] TCP: Hash tables configured (established 4096 bind 4096)
[    1.092258] TCP reno registered
[    1.095432] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.101356] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.108185] NET: Registered protocol family 1
[    1.113630] RPC: Registered named UNIX socket transport module.
[    1.119813] RPC: Registered udp transport module.
[    1.124546] RPC: Registered tcp transport module.
[    1.129268] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.136081] bcm2708_dma: DMA manager at c8808000
[    1.140903] bcm2708_gpio: bcm2708_gpio_probe c05ec3f8
[    1.146539] vc-mem: Videocore memory driver
[    1.151689] audit: initializing netlink socket (disabled)
[    1.157205] type=2000 audit(0.770:1): initialized
[    1.262049] VFS: Disk quotas dquot_6.5.2
[    1.266267] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.274339] FS-Cache: Netfs 'nfs' registered for caching
[    1.280990] msgmni has been set to 239
[    1.287376] io scheduler noop registered
[    1.291532] io scheduler deadline registered (default)
[    1.296905] io scheduler cfq registered
[    1.301126] BCM2708FB: registering framebuffer (1920x1080@16)
[    1.307720] bcm2708_fb_set_par info(c78fa000) 1920x1080 (1920x1080), 0, 16
[    1.318310] BCM2708FB: start = c8c00000,49385000 width=1920, height=1080, bpp=16, pitch=3840 size=4177920 success=0
[    1.348792] Console: switching to colour frame buffer device 240x67
[    1.401164] BCM2708FB: register framebuffer (0)
[    1.406548] kgdb: Registered I/O driver kgdboc.
[    1.423670] brd: module loaded
[    1.433430] loop: module loaded
[    1.437636] vcos: [1]: vchiq_init_state: slot_zero = 0xffd80000, is_master = 0
[    1.445990] vcos: [1]: vchiq_init_state: called
[    1.451635] vcos: [1]: vchiq: initialised - version 2 (min 2), device 253.0
[    1.459767] usbcore: registered new interface driver smsc95xx
[    1.465760] cdc_ncm: 04-Aug-2011
[    1.469219] usbcore: registered new interface driver cdc_ncm
[    1.475132] dwc_otg: version 2.94b 27-OCT-2011 (rev 01-DEC-2011) (platform bus)
[    1.683074] Core Release: 2.80a
[    1.686349] Setting default values for core params
[    1.691428] Finished setting default values for core params
[    1.897474] Using Buffer DMA mode
[    1.901019] Periodic Transfer Interrupt Enhancement - disabled
[    1.907015] Multiprocessor Interrupt Enhancement - disabled
[    1.912794] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.917285] Dedicated Tx FIFOs mode
[    1.921147] dwc_otg: Microframe scheduler disabled
[    1.921203] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.926289] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.933847] dwc_otg bcm2708_usb: irq 75, io mem 0x00000000
[    1.939592] Init: Port Power? op_state=1
[    1.943634] Init: Power Port (0)
[    1.947113] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.954166] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.961632] usb usb1: Product: DWC OTG Controller
[    1.966477] usb usb1: Manufacturer: Linux 3.2.27+ dwc_otg_hcd
[    1.972427] usb usb1: SerialNumber: bcm2708_usb
[    1.978162] hub 1-0:1.0: USB hub found
[    1.989762] hub 1-0:1.0: 1 port detected
[    2.002328] Module dwc_common_port init
[    2.002753] usbcore: registered new interface driver uas
[    2.016039] Initializing USB Mass Storage driver...
[    2.029092] usbcore: registered new interface driver usb-storage
[    2.042955] USB Mass Storage support registered.
[    2.055739] usbcore: registered new interface driver libusual
[    2.069888] mousedev: PS/2 mouse device common for all mice
[    2.083313] cpuidle: using governor ladder
[    2.095174] cpuidle: using governor menu
[    2.107092] sdhci: Secure Digital Host Controller Interface driver
[    2.121036] sdhci: Copyright(c) Pierre Ossman
[    2.133321] bcm_power_open() -> 1
[    2.144619] Registered led device: mmc0::
[    2.146131] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.161939] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.175766] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.190803] Registered led device: led0
[    2.191296] usbcore: registered new interface driver usbhid
[    2.205000] Indeed it is in host mode hprt0 = 00021501
[    2.218215] usbhid: USB HID core driver
[    2.259509] TCP cubic registered
[    2.289354] Initializing XFRM netlink socket
[    2.308198] mmc0: problem reading SD Status register.
[    2.329422] NET: Registered protocol family 17
[    2.349597] Registering the dns_resolver key type
[    2.367897] mmc0: new high speed SDHC card at address b368
[    2.389514] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.406058] mmcblk0: mmc0:b368 SDC   3.74 GiB
[    2.422405]  mmcblk0: p1 p2
[    2.453556] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.470013] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.485588] Freeing init memory: 204K
[    2.529536] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.544382] Indeed it is in host mode hprt0 = 00001101
[    2.769827] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.789877] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.807969] hub 1-1:1.0: USB hub found
[    2.819937] hub 1-1:1.0: 3 ports detected
[    3.109731] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.240076] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.259941] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.282405] smsc95xx v1.0.4
[    3.355608] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:c6:ae:b0
[    3.459630] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[    3.581255] usb 1-1.3: New USB device found, idVendor=1058, idProduct=1021
[    3.603148] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.618840] usb 1-1.3: Product: Ext HDD 1021
[    3.631422] usb 1-1.3: Manufacturer: Western Digital
[    3.644606] usb 1-1.3: SerialNumber: 574D41565532393334353636
[    3.669769] scsi0 : usb-storage 1-1.3:1.0
[    4.692270] scsi 0:0:0:0: Direct-Access     WD       Ext HDD 1021     2002 PQ: 0 ANSI: 4
[    4.743220] sd 0:0:0:0: [sda] 2930272256 512-byte logical blocks: (1.50 TB/1.36 TiB)
[    4.792407] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
[    4.827791] sd 0:0:0:0: [sda] Asking for cache data failed
[    4.889478] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    4.928548] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
[    4.970806] sd 0:0:0:0: [sda] Asking for cache data failed
[    5.005619] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   14.750191]  sda: sda1
[   14.772878] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
[   14.791904] sd 0:0:0:0: [sda] Asking for cache data failed
[   14.805905] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   14.820692] sd 0:0:0:0: [sda] Attached SCSI disk
[   15.328445] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   15.978802] ### snd_bcm2835_alsa_probe c05ecaf8 ############### PROBING FOR bcm2835 ALSA device (0):(1) ###############
[   16.006881] Creating card...
[   16.022917] Creating device/chip ..
[   16.037411] Adding controls ..
[   16.059516] Registering card ....
[   16.080636] bcm2835 ALSA CARD CREATED!
[   16.108821] ### BCM2835 ALSA driver init OK ###
[   17.792157] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   28.163663] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[   57.825607] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SS
[   95.062349] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
/opt/vc/bin/vcgencmd version:

Code: Select all

Aug 17 2012 23:49:01
Copyright (c) 2012 Broadcom
version 332044 (release)

tomaz
Posts: 38
Joined: Thu Jul 12, 2012 9:08 am

Re: No sound after rpi-update

Sun Aug 19, 2012 6:31 pm

Hi,

same problem here,
today I have installed mpd/mpc for internet radio and I noticed my analog sound is mono on all tested internet radio channels. I said to myself maybe firmware upgrade will help...

I was very wrong! Now I don't have any sound :(

I will not post logs, since they are the same as BigEndian described.
Maybe just this:
uname -a
Linux raspberrypi 3.2.27-cutdown+ #10 PREEMPT Sun Aug 19 12:18:09 BST 2012 armv6l GNU/Linux

Tried with arm224_start.elf same problem.

Question: how can I revert back to my previous working firmware?

Thanks.
Tomaz.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5748
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: No sound after rpi-update

Sun Aug 19, 2012 6:41 pm

tomaz wrote: Question: how can I revert back to my previous working firmware?
You can run:
git clone git://github.com/Hexxeh/rpi-firmware.git
on either the pi, or another machine. Pick the hash for the version you want. E.g. 2 days ago:
cd rpi-firmware
git checkout 800d33e6f1284d8ef4f255c35017b32e5a118bda

Then (e.g. on Pi)
sudo cp * /boot
sudo cp -a modules /lib
sudo reboot

However I found audio wasn't working, but it just alsamixer was muted. Try the usual:
sudo amixer cset numid=3 <n>
sudo alsamixer

and make sure it's not muted and volume is not silent.

BigEndian
Posts: 19
Joined: Tue Jun 19, 2012 6:50 pm
Location: Munich // Germany

Re: No sound after rpi-update

Sun Aug 19, 2012 7:16 pm

@dom: I tried that, without success. I still get

Code: Select all

Aug 19 18:55 : output: Failed to open "My ALSA Device" [alsa]: Failed to open ALSA device "hw:0,0": No such file or directory
sudo alsamixer gives me:

Code: Select all

lqqqqqqqqqqqqqqqqqqqqqq AlsaMixer v1.0.25 qqqqqqqqqqqqqqqqqqqqqqk
x Card: bcm2835 ALSA                    F1:  Help               x
x Chip: Broadcom Mixer                  F2:  System information x
x View: Playback                        F6:  Select sound card  x
x Item: PCM [dB gain: -13.90]           Esc: Exit               x
x                                                               x
x                             lqqk                              x
x                             x  x                              x
x                             x  x                              x
x                             x  x                              x
x                             x  x                              x
x                             x  x                              x
x                             xaax                              x
x                             xaax                              x
x                             xaax                              x
x                             xaax                              x
x                             xaax                              x
x                             xaax                              x
x                             tqqu                              x
x                             xOOx                              x
x                             mqqj                              x
x                              50                               x
x                          <  PCM   >                           x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
But you're right, it was muted. I unmuted it by pressing "m" and increased the volume to 50%



aplay -l gives me:

Code: Select all

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
and aplay -L:

Code: Select all

 aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
I'm trying to downgrade the firmware now, let's see what happens.

BigEndian
Posts: 19
Joined: Tue Jun 19, 2012 6:50 pm
Location: Munich // Germany

Re: No sound after rpi-update

Sun Aug 19, 2012 7:51 pm

tried to downgrade using dom's guide, it worked.

uname -a tells me:

Code: Select all

Linux raspberrypi 3.1.9+ #278 PREEMPT Wed Aug 15 20:59:07 BST 2012 armv6l GNU/Linux
but unfortunately mpd is still unable to play. I see the same error message as before.

It definitively worked yesterday evening and all I did today was rpi-update so it MUST HAVE something to do with the new firmware or kernel.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5748
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: No sound after rpi-update

Sun Aug 19, 2012 10:02 pm

I think the ALSA state is stored in
/var/lib/alsa/asound.state
Try moving that somewhere safe and see if it recreates a new default one.

tomaz
Posts: 38
Joined: Thu Jul 12, 2012 9:08 am

Re: No sound after rpi-update

Mon Aug 20, 2012 3:25 am

Hi dom,

thank you for explaining how to revert back.
I have copied /boot from other working SD card and tried booting. uname -a was showing older version, but onboard sound card was not detected. So I have wrote official image back to SD card, and as expected, sound was working again...

Thanks anyway!
If I understand your post correctly, I would also have to copy /lib/modules folder (not just /boot folder) and it would be working. Good to know for next time.

Tomaz.
dom wrote: ...
sudo cp * /boot
sudo cp -a modules /lib
sudo reboot
...

Return to “Troubleshooting”