11035 views|0 replies

253

Posts

0

Resources
The OP
 

imx6ull transplant alsa [Copy link]

EK140P-6y-256m
kernel version: linux-4.1.15
cross-compilation chain: arm-poky-linux-gnueabi
file system: my_rootfs=L4115-core-image-base-myimx6a7.tar.bz2

download:
I downloaded:
alsa-lib-1.1.9.tar.bz2
alsa-utils-1.1.9.tar.bz2
source cross toolchain
$ source /home/myzr/my-work/03_toolchain/fsl-imx-x11-glibc-x86_64-meta-toolcha
in-qt5-cortexa7hf-neon-toolchain-4.1.15-2.1.0/environment-setup-cortexa7hf-neon-poky-linux-
gnueabi
Unzip:
$ cd
$ tar xjvf alsa-lib-1.1.9.tar.bz2
$ tar xjvf alsa-utils-1.1.9.tar.bz2
$ mkdir alsa-lib
$ mkdir alsa-utils
Compile and install alsa-lib
$ cd alsa-lib-1.1.9/
$ ./configure --host=arm-poky-linux-gnueabi --prefix=/home/myzr
/alsa-lib --enable-shared --disable-python
$ make
$ make install
Compile and install alsa-utils
$ cd /home/myzr/alsa-utils-1.1.9/
$ ./configure --host=arm-poke-linux-gnueabi --disable-alsamix
er --disable-xmlto CPPFLAGS=-I/home/myzr/alsa-lib/include LDFLAGS=-L/home/myzr/alsa-lib/lib --with-alsa-inc-prefix=/home/myzr/alsa-lib/include --prefix=/home/myzr/alsa-utils
$ make
$ sudo make install
Note: I copied /home/myzr/alsa-lib and /home/myzr/alsa-utils to the home directory of the development board before performing the transplantation operation.
Migrate the files in the /home/myzr/alsa-lib/lib directory to the /usr/lib directory of the development board
# cd alsa-lib/lib/
# cp * /usr/lib/ -r
Move /home/myzr/alsa-lib/share/alsa/alsa.conf to the same directory as the development board
# cd ../share/alsa/
# mkdir /home/myzr/alsa-lib/share/alsa/ -p
# cp alsa.conf /home/myzr/alsa-lib/share/alsa/
Migrate the files in the /home/myzr/alsa-utils/bin directory to the /usr/bin directory of the development board
# cd ../../../alsa-utils/bin/
# cp * /usr/bin/ -r
Migrate the files in the /home/myzr/alsa-utils/sbin directory to the /usr/bin directory of the development board
# cd ../sbin/
# cp * /usr/bin/ -r
test:
Plug the headset into the development board interface and execute:
# aplay ~/alsa-utils/share/sounds/alsa/Front_Center.wav
If the sound of the wav file can be heard normally, the test is successful
This post is from Analog electronics

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list