Skip to contentSkip to conversation

at91sam9260 alsa problem

Buildroot Michael Trimarchi 2 participants 7 messages Nov 1, 2010 – Nov 2, 2010

lore
Share & tools
lore
#0 lore raw

Hi all

I have compiled the linux kernel (2.6.29) with EABI option disable so the expected compiled option is:

-mpcu=apcs-gnu

I have the same compiled option in buildroot and now the amixer and alsamixer works but aplay and arecord

report this error:

set_params: Channels count non available

Compile the kernel using eabi and oabi compatible give different error.

This is the relevant part of buildroot config

BR2_ARM_TYPE="GENERIC_ARM"
# BR2_ARM_EABI is not set
BR2_ARM_OABI=y
BR2_ARCH="arm"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_ABI="apcs-gnu"

#
# Target options
#

#
# Preset Devices
#
# BR2_TARGET_ARMLTD is not set BR2_BOARD_NAME="at91sam9260dfc" BR2_BOARD_PATH="target/device/Atmel/$(BR2_BOARD_NAME)"

and this is the relevant part of the kernel

# CONFIG_AEABI is not set

With other combination I can use playback and record facilites but the mixer doesn't
work for the size of the parameteres during kernel syscall

Best regards
Michael Trimarchi

#1 lore raw

Hi all

maybe this one is the right configuration of the machine in buildroot

BR2_ARM_OABI=y
BR2_ARCH="arm"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_TUNE="arm9tdmi"
BR2_GCC_TARGET_ARCH="armv4t"
BR2_GCC_TARGET_ABI="apcs-gnu"

I have seen a lot of mailing list and different people report some strange problem with alsa. I'm using
a 2.6.29.3 kernel revision

Michael

----- Messaggio originale -----

Quoted 61 lines

Da: Michael Trimarchi <[email protected]>
A: buildroot at busybox.net
Inviato: Lun 1 novembre 2010, 10:40:30
Oggetto: [Buildroot] at91sam9260 alsa problem

Hi all

I have compiled the linux kernel (2.6.29) with EABI option disable so the expected compiled option is:

-mpcu=apcs-gnu

I have the same compiled option in buildroot and now the amixer and alsamixer

works but aplay and arecord

report this error:

set_params: Channels count non available

Compile the kernel using eabi and oabi compatible give different error.

This is the relevant part of buildroot config

BR2_ARM_TYPE="GENERIC_ARM"
# BR2_ARM_EABI is not set
BR2_ARM_OABI=y
BR2_ARCH="arm"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_ABI="apcs-gnu"

#
# Target options
#

#
# Preset Devices
#
# BR2_TARGET_ARMLTD is not set BR2_BOARD_NAME="at91sam9260dfc" BR2_BOARD_PATH="target/device/Atmel/$(BR2_BOARD_NAME)"

and this is the relevant part of the kernel

# CONFIG_AEABI is not set

With other combination I can use playback and record facilites but the mixer doesn't
work for the size of the parameteres during kernel syscall

Best regards
Michael Trimarchi

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#2 lore raw

Hi

----- Messaggio originale -----

Quoted 9 lines

Da: Michael Trimarchi <[email protected]>
A: Michael Trimarchi <[email protected]>; buildroot at busybox.net
Inviato: Lun 1 novembre 2010, 11:43:13
Oggetto: Re: [Buildroot] at91sam9260 alsa problem

Hi all

Quoted 7 lines

maybe this one is the right configuration of the machine in buildroot

BR2_ARM_OABI=y
BR2_ARCH="arm"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_TUNE="arm9tdmi"
BR2_GCC_TARGET_ARCH="armv4t"

sorry this is the arm5te

Michael

Quoted 79 lines

BR2_GCC_TARGET_ABI="apcs-gnu"

I have seen a lot of mailing list and different people report some strange problem with alsa. I'm using
a 2.6.29.3 kernel revision

Michael

----- Messaggio originale -----

Quoted 5 lines

Da: Michael Trimarchi <[email protected]>
A: buildroot at busybox.net
Inviato: Lun 1 novembre 2010, 10:40:30
Oggetto: [Buildroot] at91sam9260 alsa problem

Quoted 8 lines

Hi all

I have compiled the linux kernel (2.6.29) with EABI option disable so the expected compiled option is:

-mpcu=apcs-gnu

I have the same compiled option in buildroot and now the amixer and

alsamixer

Quoted 28 lines

works but aplay and arecord

report this error:

set_params: Channels count non available

Compile the kernel using eabi and oabi compatible give different error.

This is the relevant part of buildroot config

BR2_ARM_TYPE="GENERIC_ARM"
# BR2_ARM_EABI is not set
BR2_ARM_OABI=y
BR2_ARCH="arm"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_ABI="apcs-gnu"

#
# Target options
#

#
# Preset Devices
#
# BR2_TARGET_ARMLTD is not set
BR2_BOARD_NAME="at91sam9260dfc" BR2_BOARD_PATH="target/device/Atmel/$(BR2_BOARD_NAME)"

Quoted 5 lines

and this is the relevant part of the kernel

# CONFIG_AEABI is not set

With other combination I can use playback and record facilites but the

mixer

Quoted 14 lines

doesn't
work for the size of the parameteres during kernel syscall

Best regards
Michael Trimarchi

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw

Hi all

I have fixed and tested the gstreamer and alsa on my platform and now all works perfectly

Thanks

Michael Trimarchi

#4 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Michael" == Michael Trimarchi <[email protected]> writes:

Michael> Hi all

Michael> I have fixed and tested the gstreamer and alsa on my platform Michael> and now all works perfectly

Great, what was the problem and care to send a patch so I can integrate it?

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

Hi

----- Messaggio originale -----

Quoted 8 lines

Da: Peter Korsgaard <[email protected]>
A: Michael Trimarchi <[email protected]>
Cc: buildroot at busybox.net
Inviato: Mar 2 novembre 2010, 15:23:28
Oggetto: Re: at91sam9260 alsa problem

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Michael" == Michael Trimarchi <[email protected]> writes:

Quoted 7 lines

Michael> Hi all

Michael> I have fixed and tested the gstreamer and alsa on my platform Michael> and now all works perfectly

Great, what was the problem and care to send a patch so I can integrate it?

The problem in my case was that linux compile the alsa using armv5te and arm9tdmi option and alsa lib was compiled with different flags. So I have added the option for generate the arm9tdmi and armv5te combination, changing the configuration option of the buildroot and add them. I don't know if the git includes them. BTW another problem but it's just a note for the developers that use gstreamer and to pay attention to compile buildroot with the same sanitized header of the kernel of the final kernel version on your device. For istance I was using the 2.6.29 and the ppoll for arm not was included and the gstreamer was having problem because the code use them when the buffer does't have data on it. Hope that was clear. I will send a patch if it is necessary. I don't understand why all atmel architecture that are compiled with this tuning don't are compiled with the armv5te and arm9tdmi combination.

Best regards
Michael

Quoted 4 lines
Signature · 2 lines
-- 
Bye, Peter Korsgaard
#6 lore raw

----- Messaggio originale -----

Quoted 60 lines

Da: Michael Trimarchi <[email protected]>
A: Peter Korsgaard <[email protected]>
Cc: buildroot at busybox.net
Inviato: Mar 2 novembre 2010, 15:43:40
Oggetto: Re: [Buildroot] at91sam9260 alsa problem

Hi

----- Messaggio originale -----

Quoted 8 lines

Da: Peter Korsgaard <[email protected]>
A: Michael Trimarchi <[email protected]>
Cc: buildroot at busybox.net
Inviato: Mar 2 novembre 2010, 15:23:28
Oggetto: Re: at91sam9260 alsa problem

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Michael" == Michael Trimarchi <[email protected]> writes:

Quoted 7 lines

Michael> Hi all

Michael> I have fixed and tested the gstreamer and alsa on my platform
Michael> and now all works perfectly

Great, what was the problem and care to send a patch so I can integrate
it?

The problem in my case was that linux compile the alsa using armv5te and arm9tdmi option and alsa lib was compiled with different flags. So I

have added the option for generate the arm9tdmi and armv5te combination, changing the configuration option of the buildroot and add them. I don't know if

the git includes them. BTW another problem but it's just a note for the developers that use gstreamer and to pay attention to compile buildroot with the

same sanitized header of the kernel of the final kernel version on your device.

For istance I was using the 2.6.29 and the ppoll for arm not was included and

the gstreamer was having problem because the code use them when the buffer does't have data on it. Hope that was clear. I will send a patch if it is necessary. I don't understand why all atmel architecture that are compiled with

this tuning don't are compiled with the armv5te and arm9tdmi combination.

Best regards
Michael

Quoted 4 lines
Signature · 2 lines
-- 
Bye, Peter Korsgaard
Quoted 5 lines

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Created-new-target-descriptor-arm9tdmi.patch
Type: application/octet-stream
Size: 1571 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101102/5085338c/attachment.obj>