Jump to content

No sound card on 5.0 trusty vanilla, but it works on jessie.


disconnect

Recommended Posts

No sound card on 5.0 trusty vanilla, but it works on jessie.

 

trusty: aplay -l

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

 

on jessie:  aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: sun4icodec [sun4i-codec], device 0: CDC PCM Codec-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 
Both are armbian 5.0 with kernel 4.4.1, on Cubieboard2
 
Also warning on installing cryptsetup on trusty: update-initramfs: Generating /boot/initrd.img-4.4.1-sunxi
cryptsetup: WARNING: failed to detect canonical device of /dev/mmcblk0p1
cryptsetup: WARNING: could not determine root device from /etc/fstab
 
This error doesn't appear on jessie.
 
Also, on trusty the hash tests are much slower than jessie
 
trusty:
 
root@cubieboard2:~# cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1        48188 iterations per second
PBKDF2-sha256      36008 iterations per second
PBKDF2-sha512       9204 iterations per second
PBKDF2-ripemd160   54613 iterations per second
PBKDF2-whirlpool    7154 iterations per second
 
jessie:
 
root@cubieboard2:~# cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1        60681 iterations per second
PBKDF2-sha256      58514 iterations per second
PBKDF2-sha512      27080 iterations per second
PBKDF2-ripemd160   79921 iterations per second
PBKDF2-whirlpool    6540 iterations per second
 
Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

What would happen if i do a distro upgrade? Will it fix this problem?

Or can i turn my trusty to jessie, while keeping the most of the settings? (I'm running transmission daemon, music player daemon, minidlna, pi-hole (ad blocking DNS black hole), an rc.local script, and some cron scripts.).

Link to comment
Share on other sites

loading manually works, but there is no sound, and the speakers are buzzing like at boot, or when the sound chip is disabled (like when there is no driver)

 

 

speaker test:


root@cubieboard2:~# speaker-test -c2 -t sine

speaker-test 1.0.27.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Sine wave rate is 440.0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 128 to 131072
Period size range from 64 to 16384
Using max buffer size 131072
Periods = 4
was set period_size = 16384
was set buffer_size = 131072
 0 - Front Left
 1 - Front Right
Write error: -5,Input/output error
xrun_recovery failed: -5,Input/output error
Transfer failed: Input/output error
 

dmesg:

[    2.171392] raid6: neonx1   xor()   324 MB/s
[    2.341538] raid6: neonx2   gen()   577 MB/s
[    2.511577] raid6: neonx2   xor()   423 MB/s
[    2.681716] raid6: neonx4   gen()   707 MB/s
[    2.851785] raid6: neonx4   xor()   480 MB/s
[    3.021880] raid6: neonx8   gen()   639 MB/s
[    3.192007] raid6: neonx8   xor()   451 MB/s
[    3.192015] raid6: using algorithm neonx4 gen() 707 MB/s
[    3.192021] raid6: .... xor() 480 MB/s, rmw enabled
[    3.192027] raid6: using intx1 recovery algorithm
[    3.192409] reg-fixed-voltage ahci-5v: could not find pctldev for node /soc@0                                                         1c00000/pinctrl@01c20800/ahci_pwr_pin@0, deferring probe
[    3.192459] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc                                                         @01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe
[    3.192492] reg-fixed-voltage usb2-vbus: could not find pctldev for node /soc                                                         @01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring probe
[    3.194121] SCSI subsystem initialized
[    3.194427] libata version 3.00 loaded.
[    3.194741] usbcore: registered new interface driver usbfs
[    3.194809] usbcore: registered new interface driver hub
[    3.194907] usbcore: registered new device driver usb
[    3.195154] media: Linux media interface: v0.10
[    3.195210] Linux video capture interface: v2.00
[    3.195298] pps_core: LinuxPPS API ver. 1 registered
[    3.195307] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giome                                                         tti <giometti@linux.it>
[    3.195340] PTP clock support registered
[    3.196914] clocksource: Switched to clocksource arch_sys_counter
[    3.206949] NET: Registered protocol family 2
[    3.207654] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    3.207749] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    3.207876] TCP: Hash tables configured (established 8192 bind 8192)
[    3.207967] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    3.208026] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    3.208300] NET: Registered protocol family 1
[    3.209165] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counter                                                         s available
[    3.210393] futex hash table entries: 512 (order: 3, 32768 bytes)
[    3.210831] Initialise system trusted keyring
[    3.219246] zbud: loaded
[    3.222996] JFS: nTxBlock = 8037, nTxLock = 64302
[    3.232583] SGI XFS with ACLs, security attributes, realtime, no debug enable                                                         d
[    3.240382] bounce: pool size: 64 pages
[    3.240694] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2                                                         49)
[    3.240963] io scheduler noop registered
[    3.240983] io scheduler deadline registered
[    3.241046] io scheduler cfq registered (default)
[    3.241485] sun4i-usb-phy 1c13400.phy: could not find pctldev for node /soc@0                                                         1c00000/pinctrl@01c20800/usb0_id_detect_pin@0, deferring probe
[    3.244002] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    3.310050] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    3.333235] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 44, base_baud = 15                                                         00000) is a U6_16550A
[    3.341441] loop: module loaded
[    3.343371] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.343393] ehci-platform: EHCI generic platform driver
[    3.343731] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.343763] ohci-platform: OHCI generic platform driver
[    3.344135] usbcore: registered new interface driver usb-storage
[    3.345244] sunxi-rtc 1c20d00.rtc: rtc core: registered rtc-sunxi as rtc0
[    3.345261] sunxi-rtc 1c20d00.rtc: RTC enabled
[    3.345365] i2c /dev entries driver
[    3.346389] axp20x 0-0034: AXP20x variant AXP209 found
[    3.359338] input: axp20x-pek as /devices/platform/soc@01c00000/1c2ac00.i2c/i                                                         2c-0/0-0034/axp20x-pek/input/input0
[    3.366501] axp20x 0-0034: Backup (RTC) battery charging is disabled
[    3.366695] axp20x 0-0034: AXP20X driver loaded
[    3.368808] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, now                                                         ayout=0)
[    3.369464] sunxi-mmc 1c0f000.mmc: No vqmmc regulator found
[    3.370035] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    3.407139] sunxi-mmc 1c0f000.mmc: base:0xf0d54000 irq:26
[    3.407545] sunxi-mmc 1c11000.mmc: No vqmmc regulator found
[    3.407981] sunxi-mmc 1c11000.mmc: Got CD GPIO
[    3.444025] mmc0: host does not support reading read-only switch, assuming wr                                                         ite-enable
[    3.446397] mmc0: new high speed SD card at address 0260
[    3.447177] mmcblk0: mmc0:0260 SD    1.88 GiB
[    3.447242] sunxi-mmc 1c11000.mmc: base:0xf0d58000 irq:27
[    3.448370] ledtrig-cpu: registered to indicate activity on CPUs
[    3.448470] hidraw: raw HID events driver (C) Jiri Kosina
[    3.448635] usbcore: registered new interface driver usbhid
[    3.448643] usbhid: USB HID core driver
[    3.449562]  mmcblk0: p1
[    3.449773] Initializing XFRM netlink socket
[    3.450969] NET: Registered protocol family 10
[    3.452013] NET: Registered protocol family 17
[    3.452072] NET: Registered protocol family 15
[    3.452143] bridge: automatic filtering via arp/ip/ip6tables has been depreca                                                         ted. Update your scripts to load br_netfilter if you need this.
[    3.452158] 8021q: 802.1Q VLAN Support v1.8
[    3.452231] Key type dns_resolver registered
[    3.452764] Registering SWP/SWPB emulation handler
[    3.453617] registered taskstats version 1
[    3.453636] Loading compiled-in X.509 certificates
[    3.453753] zswap: loaded using pool lzo/zbud
[    3.456553] Btrfs loaded
[    3.457979] Key type encrypted registered
[    3.526955] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP                                                         _PMP
[    3.527015] ahci-sunxi 1c18000.sata: SSS flag set, parallel bus scan disabled
[    3.527046] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0                                                         x1 impl platform mode
[    3.527063] ahci-sunxi 1c18000.sata: flags: ncq sntf stag pm led clo only pio                                                          slum part ccc
[    3.528146] scsi host0: ahci-sunxi
[    3.528509] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x1                                                         00 irq 32
[    3.528932] ehci-platform 1c14000.usb: EHCI Host Controller
[    3.528974] ehci-platform 1c14000.usb: new USB bus registered, assigned bus n                                                         umber 1
[    3.529334] ehci-platform 1c14000.usb: irq 29, io mem 0x01c14000
[    3.546939] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[    3.547271] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.547286] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=                                                         1
[    3.547296] usb usb1: Product: EHCI Host Controller
[    3.547306] usb usb1: Manufacturer: Linux 4.4.1-sunxi ehci_hcd
[    3.547315] usb usb1: SerialNumber: 1c14000.usb
[    3.548123] hub 1-0:1.0: USB hub found
[    3.548202] hub 1-0:1.0: 1 port detected
[    3.549044] ehci-platform 1c1c000.usb: EHCI Host Controller
[    3.549088] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus n                                                         umber 2
[    3.549315] ehci-platform 1c1c000.usb: irq 33, io mem 0x01c1c000
[    3.566922] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    3.567210] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    3.567223] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=                                                         1
[    3.567233] usb usb2: Product: EHCI Host Controller
[    3.567243] usb usb2: Manufacturer: Linux 4.4.1-sunxi ehci_hcd
[    3.567252] usb usb2: SerialNumber: 1c1c000.usb
[    3.568010] hub 2-0:1.0: USB hub found
[    3.568076] hub 2-0:1.0: 1 port detected
[    3.568864] ohci-platform 1c14400.usb: Generic Platform OHCI controller
[    3.568914] ohci-platform 1c14400.usb: new USB bus registered, assigned bus n                                                         umber 3
[    3.569121] ohci-platform 1c14400.usb: irq 30, io mem 0x01c14400
[    3.631218] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    3.631233] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=                                                         1
[    3.631243] usb usb3: Product: Generic Platform OHCI controller
[    3.631252] usb usb3: Manufacturer: Linux 4.4.1-sunxi ohci_hcd
[    3.631261] usb usb3: SerialNumber: 1c14400.usb
[    3.632026] hub 3-0:1.0: USB hub found
[    3.632097] hub 3-0:1.0: 1 port detected
[    3.632900] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    3.632941] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus n                                                         umber 4
[    3.633138] ohci-platform 1c1c400.usb: irq 34, io mem 0x01c1c400
[    3.691195] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    3.691212] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=                                                         1
[    3.691222] usb usb4: Product: Generic Platform OHCI controller
[    3.691232] usb usb4: Manufacturer: Linux 4.4.1-sunxi ohci_hcd
[    3.691242] usb usb4: SerialNumber: 1c1c400.usb
[    3.692017] hub 4-0:1.0: USB hub found
[    3.692087] hub 4-0:1.0: 1 port detected
[    3.697487] vcc3v0: disabling
[    3.697516] vcc5v0: disabling
[    3.876924] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    4.183738] ata1.00: ATA-8: TOSHIBA MQ01ABB200, AY000U, max UDMA/100
[    4.183753] ata1.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    4.185176] ata1.00: configured for UDMA/100
[    4.185942] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MQ01ABB2 0U   PQ                                                         : 0 ANSI: 5
[    4.186986] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.                                                         81 TiB)
[    4.187005] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    4.187177] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    4.187303] sd 0:0:0:0: [sda] Write Protect is off
[    4.187320] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    4.187446] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, does                                                         n't support DPO or FUA
[    4.282882] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.298202] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode.                                                          Opts: (null)
[    4.298275] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
[    4.301983] devtmpfs: mounted
[    4.302371] Freeing unused kernel memory: 328K (c086a000 - c08bc000)
[    4.739979] random: init urandom read with 15 bits of entropy available
[    4.830922] init: hwclock main process (115) terminated with status 1
[    5.772187] systemd-udevd[228]: starting version 204
[    5.982879] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    6.250426] fuse init (API version 7.23)
[    6.669955] sun4i-ss 1c15000.crypto-engine: no reset control found
[    6.671516] sun4i-ss 1c15000.crypto-engine: Die ID 0
[    6.741990] sun7i-dwmac 1c50000.ethernet: no regulator found
[    6.742087] sun7i-dwmac 1c50000.ethernet: no reset control found
[    6.742100]  Ring mode enabled
[    6.742109]  No HW DMA feature register supported
[    6.742115]  Normal descriptors
[    6.742121]  TX Checksum insertion supported
[    6.781013] libphy: stmmac: probed
[    6.781044] eth0: PHY ID 00008201 at 1 IRQ POLL (stmmac-0:01) active
[    6.801378] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    7.127540] EXT4-fs (mmcblk0p1): re-mounted. Opts: data=writeback,commit=600,                                                         errors=remount-ro
[    7.659942] random: nonblocking pool is initialized
[    8.630032] Adding 131068k swap on /var/swap.  Priority:-1 extents:2 across:1                                                         39260k SSFS
[    9.372478] init: udev-fallback-graphics main process (522) terminated with s                                                         tatus 1
[   10.185515] Bluetooth: Core ver 2.21
[   10.185642] NET: Registered protocol family 31
[   10.185652] Bluetooth: HCI device and connection manager initialized
[   10.185676] Bluetooth: HCI socket layer initialized
[   10.185691] Bluetooth: L2CAP socket layer initialized
[   10.185729] Bluetooth: SCO socket layer initialized
[   10.232455] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   10.232478] Bluetooth: BNEP filters: protocol multicast
[   10.232506] Bluetooth: BNEP socket layer initialized
[   10.249371] Bluetooth: RFCOMM TTY layer initialized
[   10.249423] Bluetooth: RFCOMM socket layer initialized
[   10.249465] Bluetooth: RFCOMM ver 1.11
[   10.281311] eth0: device MAC address 42:95:3c:72:0b:d4
[   10.368288]  RX IPC Checksum Offload disabled
[   10.368318]  No MAC Management Counters available
[   12.357333] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - fl                                                         ow control rx/tx
[   15.134800] init: failsafe main process (514) killed by TERM signal
root@cubieboard2:~#

Link to comment
Share on other sites

So after this test, i've upgraded my existing system. First from armbian 4.7 to 5.00 then a kernel upgrade from legacy to vanilla.

 

Now i have a strange problem with sound, i can only access the soundcard if i'm in root mode or using sudo.

 

See:

cubie@cubieboard2:~$ alsamixer
cannot open mixer: No such file or directory
cubie@cubieboard2:~$ sudo alsamixer
cubie@cubieboard2:~$ aplay -l
aplay: device_list:268: no soundcards found...
cubie@cubieboard2:~$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sun4icodec [sun4i-codec], device 0: CDC PCM Codec-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
cubie@cubieboard2:~$

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines