Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Audio problems on AT91SAM9263-EK in Linux (alsa??)
PostPosted: Fri Nov 27, 2009 11:43 am 
Offline

Joined: Wed Nov 25, 2009 6:24 pm
Posts: 6
Hello all,

Apologies if this is a double post - my last one didn't seem to get through.
I'm trying to get audio working on the AT91SAM9263-EK, using the latest Linux binary download from http://www.at91.com/linux4sam/bin/view/ ... ingStarted (configured to run from nand-flash).
I can login fine and set volumes with alsamixer. If I do "cat /dev/urandom > /dev/dsp" I can then hear noise. If I do "mplayer /usr/share/gpe-conf/activate.wav" I get some sound. However if I do "aplay /usr/share/gpe-conf/activate.wav" I get a kernel oops:
Code:
Playing WAVE '/usr/share/gpe-conf/activate.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c3b50000
[00000000] *pgd=23b23031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in:
CPU: 0    Not tainted  (2.6.27 #1)
PC is at __wake_up_bit+0x10/0x3c
LR is at unlock_page+0x54/0x60
pc : [<c00506c8>]    lr : [<c0062540>]    psr: 20000013
etc.


I've tried to insert the soundcore kernel module, but it seems to be compiled against 2.6.20, so complains about mismatching headers. I noticed in the boot up information the line: "FATAL: Could not load /lib/modules/2.6.27/modules.dep: No such file or directory" which may be related??

I've tried older binaries, building my own binaries, trying to load in modules I've built etc. but I keep having this trouble with aplay. The actual app I want to use produces the same fault as aplay, so I figure if I fix one I'll fix the other.

Any help gratefully appreciated!
John


Top
 Profile  
 
 Post subject: Re: Audio problems on AT91SAM9263-EK in Linux (alsa??)
PostPosted: Mon Nov 30, 2009 1:58 pm 
Offline

Joined: Sat Jan 24, 2009 4:02 pm
Posts: 40
Location: Szczecin, Poland
We had discussion about audio on that board - use search.

I suggest moving to 2.6.28 or 2.6.30 kernel - they work fine for me on this board. And Linux4sam repository is now deprecated - I am waiting for Atmel guys to finish upgrading it to newer version.


Top
 Profile  
 
 Post subject: Re: Audio problems on AT91SAM9263-EK in Linux (alsa??)
PostPosted: Tue Dec 01, 2009 4:28 pm 
Offline

Joined: Wed Nov 25, 2009 6:24 pm
Posts: 6
Hi Marcin,

Thanks for your help. I thought I'd tried all of the info in the board's messages, but apparently not. Setting the default device to type hw, card 0 in /etc/asounr.conf does seem to have prevented aplay from crashing. I can even record and playback sound!

I'm now updating to 2.6.30 as advised - though I've had to switch from the instructions on Angstrom site (which includes a branch to the stable version) to the instructions on the OE site in order to get your updates... There's probably a quicker way to do it if I understood git better, but I figure a clean repo might be better.

Thanks again.
John


Top
 Profile  
 
 Post subject: Re: Audio problems on AT91SAM9263-EK in Linux (alsa??)
PostPosted: Thu Dec 03, 2009 12:12 pm 
Offline

Joined: Wed Nov 25, 2009 6:24 pm
Posts: 6
Hi all,

Have now got 2.6.30 working nicely and audio does indeed work 'out-of-the-box'.

Just a quick heads-up if you're using the .tcl script from linux4sam to load your images into nand flash via sam-ba... There are 2 rather than 3 partitions in 2.6.30, so you need to change the load address of your rootfs from 0x00400000 to 0x04000000 otherwise you'll get a 'can't find init' type error at boot up. Hope that helps someone.

John


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron