Repository navigation
Problem with modifying topology files #408
Description
Activity
Hello,
I noticed that in the code tools/topology/amp_bytes.m4 in Part II - Modifying the Topology & Driver# AMP Example - Parameters CONTROLBYTES_PRIV(AMP_priv, ` bytes "0x53,0x4f,0x46,0x00,' ` 0x00,0x00,0x00,0x00,' ` 0x08,0x00,0x00,0x00,' ` 0x00,0x00,0x00,0x03,' ` 0x00,0x00,0x00,0x00,'' ` 0x00,0x00,0x00,0x00,' ` 0x00,0x00,0x00,0x00,' ` 0x00,0x00,0x00,0x00,' ` 0x01,0x00,0x00,0x00,' ` 0x01,0x00,0x00,0x00"' )It should has just one apostrophe in the end of the 7th line. Now the code for pipe-volume-playback-4test.m4 compiles.
Not sure what's going on, this works for me:
rm -rf tools/build_tools/ ./scripts/build-tools.sh ls -l tools/build_tools/topology/topology1/production/sof-imx8mp-wm8904.*I don't know if it's related but you seem to have an ancient GCC version "The C compiler identification is GNU 7.5.0" so your platform may run into issues others with more recent packages don't see.
Reacted by Liam Girdwood@JCesarMolina best to have a recent distro as the SOF developers mostly use recent distro releases with latest ALSA, GCC, cmake etc..
@lgirdwood I think so, but i followed the tutorial based on that i have kubuntu 18.04 ,i have to do it using that version. in the website:
If you are using Ubuntu 16.04, the gcc version must be updated to gcc 7.3+ in order for the Advanced Linux Sound Architecture (ALSA) to build.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-7 g++-7 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7to avoid any problem , i just followed what in the SOF website is indicated.
@plbossart , it means that there's no syntax error in the 7th line?
Are you referring to this @JCesarMolina
` 0x00,0x00,0x00,0x03,' ` 0x00,0x00,0x00,0x00,''I am not sure why there are two quotes in the end, but that should be harmless. @ranj063 would you concur?
Hello,
I have been following the Hello World Tutorial, and in the Part II - Modifying the Topology & Driver I got the following output:
I don catch where is the error, then i tried to modify sof-imx8mp-wm8904.m4 , it can be compiled, I where the pipe-volume-playback-4test.m4 file is modified with small changes in order to find out where is the error.
The code for pipe-volume-playback-4test.m4 is:
After compilation, i got :
[ 0%] Built target abi_v1
[ 1%] Generating production/sof-imx8mp-wm8904.conf
[ 1%] Generating production/sof-imx8mp-wm8904.tplg
ALSA lib data.c:1375:(tplg_parse_data) failed to parse data bytes
ALSA lib parser.c:231:(tplg_load_config) failed to parse topology
Unable to load configuration: Invalid argument
topology/topology1/CMakeFiles/topology1_sof-imx8mp-wm8904.dir/build.make:72: recipe for target 'topology/topology1/production/sof-imx8mp-wm8904.tplg' failed
make[2]: *** [topology/topology1/production/sof-imx8mp-wm8904.tplg] Error 1
CMakeFiles/Makefile2:5081: recipe for target 'topology/topology1/CMakeFiles/topology1_sof-imx8mp-wm8904.dir/all' failed
make[1]: *** [topology/topology1/CMakeFiles/topology1_sof-imx8mp-wm8904.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2
I hope someone could help me.
Thanks in advanced
Julio C. Molina