LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 10-19-2016, 02:32 AM   #1
WhereAreTheseMangoes
LQ Newbie
 
Registered: Feb 2016
Distribution: Slackware
Posts: 9

Rep: Reputation: Disabled
raspberry pi 2 and 3 do not read config.txt on current (no audio)


Hi Folks,

I can't get sound working on either my rpi2 or rpi3 running -current hardfloat. I believe it is not reading config.txt because when i change overscan settngs, the visible display doesn't move(after reboot, of course), and also if I change the gpu_mem=64 line to gpu=mem256, htop still displays the same amount of system memory. I used rpi-update to get the latest kernel. I am using the config.txt from http://sarpi.fatdog.eu/files/extra/config.txt


I tried to see if there was a sound card using aplay. No dice.
Code:
 root@pi2:/boot# aplay -l
aplay: device_list:268: no soundcards found...
I've also tried editing a few lines as suggested on https://www.raspberrypi.org/document...udio-config.md
specifically:
Code:
amixer cset numid=3 2
hdmi_drive=2
Here is my /boot directory's contents:
Code:
# ls /boot
README-kernels.txt      bootcode.bin            kernel7.img
README.initrd@          config.txt              overlays/
bcm2708-rpi-b-plus.dtb  config.txt.not_working  start.elf
bcm2708-rpi-b.dtb       fixup.dat               start_cd.elf
bcm2708-rpi-cm.dtb      fixup_cd.dat            start_db.elf
bcm2709-rpi-2-b.dtb     fixup_db.dat            start_x.elf
bcm2710-rpi-3-b.dtb     fixup_x.dat
bcm2710-rpi-cm3.dtb     kernel.img
Code:
# uname -a
Linux pi3 4.4.24-v7-arm #1 SMP Thu Oct 13 15:43:26 BST 2016 armv7l BCM2709 GNU/Linux

Any suggestions anyone has would be greatly appreciated.

Thanks!
Mangoes

Last edited by WhereAreTheseMangoes; 10-19-2016 at 02:37 AM.
 
Old 10-19-2016, 01:58 PM   #2
WhereAreTheseMangoes
LQ Newbie
 
Registered: Feb 2016
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: Disabled
Update

Okay. the config.txt issue is resolved. Still no sound yet though.

The problem with config.txt was that during the installation process, I did not mount the FAT32 95MB partition as /boot to be read by fdisk. So the /boot partition that I posted was a directory created during the slackware install. It was originally empty, so I ran rpi-update and it created all the kernel files. However, they were pointless because /boot was on the non-bootable ext4 partition.

tldr; User error. Follow Exaga's very awesomely detailed instructions and let fstab mount the FAT32 partition as /boot.

I am still having trouble will sound, but hopefully that will be easier now.

I am able to get sound on through the headphone jack, but not hdmi. These lines were added to config.txt
Code:
dtparam=audio=on
hdmi_drive=2
Here is my devices list:
Code:
# 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
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Last edited by WhereAreTheseMangoes; 10-19-2016 at 03:02 PM.
 
Old 10-20-2016, 04:42 AM   #3
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 480
Blog Entries: 13

Rep: Reputation: 43
I had a little trouble getting audio out of the HDMI on an intel machine running slackware 14.2.
Can you try this to see if you're hitting the same pronlem (to sse which is the default device to play on):

Code:
aplay -L
If the default in not though HDMI then you can specify what device aplay should play on with -D option
 
1 members found this post helpful.
Old 10-20-2016, 05:02 AM   #4
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 142

Rep: Reputation: 35
Quote:
Originally Posted by WhereAreTheseMangoes View Post
Code:
# uname -a
Linux pi3 4.4.24-v7-arm #1 SMP Thu Oct 13 15:43:26 BST 2016 armv7l BCM2709 GNU/Linux

Any suggestions anyone has would be greatly appreciated.

Thanks!
Mangoes
Hi Mangoes,

One thing that I noticed from your post is that you've used rpi-update to upgrade your kernel and firmware. However, your 'uname -a' output shows that of the default kernel version which is supplied by the SARPi installer. It should be something like 4.4.24-v7+ after you've upgraded with rpi-update because SARPi add the '-arm' suffix to tell the difference between their kernels and those from the RPi repository.

Don't know if this matters or counts for anything. It is just an observation.
 
1 members found this post helpful.
Old 10-20-2016, 05:47 AM   #5
WhereAreTheseMangoes
LQ Newbie
 
Registered: Feb 2016
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by louigi600 View Post
I had a little trouble getting audio out of the HDMI on an intel machine running slackware 14.2.
Can you try this to see if you're hitting the same pronlem (to sse which is the default device to play on):

Code:
aplay -L
If the default in not though HDMI then you can specify what device aplay should play on with -D option
Thanks louigi. I found a solution, but it involves some editing the config.txt. I'll try this later and see if it is also a workable solution.
 
Old 10-20-2016, 05:57 AM   #6
WhereAreTheseMangoes
LQ Newbie
 
Registered: Feb 2016
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Penthux View Post
Hi Mangoes,

One thing that I noticed from your post is that you've used rpi-update to upgrade your kernel and firmware. However, your 'uname -a' output shows that of the default kernel version which is supplied by the SARPi installer. It should be something like 4.4.24-v7+ after you've upgraded with rpi-update because SARPi add the '-arm' suffix to tell the difference between their kernels and those from the RPi repository.

Don't know if this matters or counts for anything. It is just an observation.
Hi Penthux, thanks for the suggestion. I actually noticed that the kernels didn't match right after I posted and it led me towards some effective snooping. During the installation process, I flagged the vfat partition as bootable. However, I never added it to fstab, so that it would be mounted as /boot. So essentially, I had the real boot partition with the kernel, which is the vfat partition, and I had a useless /boot partition that the slackware installer created. And when I ran rpi-update, the new kernel was sent to the pointless /boot. So, I had been editing /boot/config.txt and thinking that I had the latest kernel. However, as you pointed out, uname -a did not match the kernel I saw in my /boot directory.

Have you by any chance been successful at building omxplayer or kodi?
 
Old 10-20-2016, 06:10 AM   #7
WhereAreTheseMangoes
LQ Newbie
 
Registered: Feb 2016
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: Disabled
Sound Solved:

Okay, after lots of internet searching, I couldn't find another solution like this, so hopefully this post will help some other poor fool.


I need to have both of these lines in my /boot/config.txt:

Code:
dtparam=audio=on
hdmi_force_edid_audio=1
(hdmi_force_edid_audio=1) borrowed from eLinux

Additionally, I needed to raise the sound volume as recommended via stackexchange

Code:
# amixer scontrols
# amixer sset 'Master' 100%
after this I could play sounds. However, it went away after a reboot. So I saved the changes with
Code:
alsactl store
 
Old 10-20-2016, 02:38 PM   #8
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 142

Rep: Reputation: 35
Thumbs up

Quote:
Originally Posted by WhereAreTheseMangoes View Post
Hi Penthux,

Have you by any chance been successful at building omxplayer or kodi?
Sorry. I can't help you there. The last time I bothered with Kodi was before it was called Kodi. Some years ago now.

Good work on solving your audio issues though. I know playing sound via HDMI is a problem many users experience on the Raspberry Pi, and not just with Slackware ARM.

<edit> Editing the config.txt file is mandatory in any case. Users should customise this file so the settings suit their own requirements.

Last edited by Penthux; 10-20-2016 at 02:41 PM. Reason: i forgot
 
Old 11-07-2016, 11:00 AM   #9
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 1,131
Blog Entries: 2

Rep: Reputation: 147Reputation: 147
Post

file:/boot/config.txt
Code:
# For more options and information see: 
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See above page for details.
#
# http://sarpi.fatdog.eu - 15 Sep 2016 - Raspberry Pi 3 config.txt

# uncomment to disable Device Tree (DT)
#device_tree=

# uncomment to overclock sdhost @ 100MHz
#dtparam=sd_overclock=100

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

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=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=5
#overscan_right=5
#overscan_top=5
#overscan_bottom=5

# uncomment to force a console size. By default it will be display's size 
# minus overscan
#framebuffer_width=1024
#framebuffer_height=1024

# uncomment to give the ACT LED a 'heartbeat' pulse
#dtparam=act_led_trigger=heartbeat

# uncomment to enable the I2C interface
#dtparam=i2c1=on

# uncomment to enable the SPI interface
#dtparam=spi=on

# uncomment to enable the I2S interface
#dtparam=i2s=on

# uncomment to set the amount of GPU (video) RAM
gpu_mem=32

# enable audio at all (since 4.4.x)
dtparam=audio=on

# force audio to HDMI (not 3.5mm jack)
hdmi_drive=2
and I got HDMI audio output.
just last tow parameters FWIW, found on Arch wiki
(fat mounted on /boot of course)
 
Old 11-11-2016, 11:10 AM   #10
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 476

Rep: Reputation: 81
Quote:
Originally Posted by WhereAreTheseMangoes View Post
Have you by any chance been successful at building omxplayer or kodi?
I has kodi standalone on rpi3b using openelec not convinced kodi can run as an app on rpi running an os.
 
Old 04-01-2017, 12:05 PM   #11
zentara
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
Thank you from another poor fool :-)

Hi, I was having the same trouble as you, and tried all the techniques in the various posts on the subject, but alsa would not work for me on Slackware-arm Pi 3. The modules would not automatically load, and modprobe didn't help.
Placing the following in /boot/config.txt did the trick. Thanks again, I was about to
give up and put my Raspbian image back in, then I found your post.

dtparam=audio=on
hdmi_force_edid_audio=1

0m,
zentara
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] read txt file into an array and make a second txt file zimbot Linux - General 12 09-05-2015 01:39 PM
Minor fix to CHANGES_AND_HINTS.TXT for -current lems Slackware 0 10-24-2013 07:45 PM
[SOLVED] awk question - read in txt files, offset data by given amount, output new txt files pomico Programming 19 09-17-2012 11:43 AM
Read a txt file in C xeon123 Programming 3 10-21-2007 11:14 AM
How can read from file.txt C++ where can save this file(file.txt) to start reading sam_22 Programming 1 01-11-2007 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration