Hello,
I've been having trouble compiling openwrt for VoCore v1, with the Dock v2.
I'm stuck on this step in the Doc2 Firmware tutorial:
4. Setup ALSA DMA
Whatever I do to the makefile/config, still two files can not be compiled, no idea what is wrong.
They are $LINUX/sound/soc/soc-dmaengine-pcm.c soc-generic-dmaengine-pcm.c
I have to force them to be compiled.
4.1. modify $LINUX/sound/Kconfig, comment that ifneq and endif.
I can get every other step done correctly, but I cannot for the life of me find "$LINUX/sound/Kconfig". Where is this folder/file/directory located? Is it in the openwrt folder? My linux host machine? Where?
Thank you guys much,
Patrick Jackson
Compiling Firmware for Dock v2?
- GinDiamond
- Posts: 48
- Joined: Thu Mar 31, 2016 11:02 pm
- wutong
- Posts: 6
- Joined: Tue Sep 22, 2015 11:00 am
Re: Compiling Firmware for Dock v2?
in my computer, $LINUX is ~/openwrt/barrier_breaker/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.10.49/.
- GinDiamond
- Posts: 48
- Joined: Thu Mar 31, 2016 11:02 pm
Re: Compiling Firmware for Dock v2?
Thanks man! I shall try this tomorrow and report the results.
- GinDiamond
- Posts: 48
- Joined: Thu Mar 31, 2016 11:02 pm
Re: Compiling Firmware for Dock v2?
Well, I got mixed results.
I couldn't find the build_dir folder at ALL. so I searched my PC for 'sound/Kconfig' and found several in the /usr/src/ directory. So I edited those.
Everything was going well in the build until this:
Any ideas?
Thanks guys!
I couldn't find the build_dir folder at ALL. so I searched my PC for 'sound/Kconfig' and found several in the /usr/src/ directory. So I edited those.
Everything was going well in the build until this:
- Code: Select all
ERROR: "snd_dmaengine_pcm_unregister" [sound/soc/ralink/snd-soc-mt7620-i2s.ko] undefined!
ERROR: "snd_dmaengine_pcm_prepare_slave_config" [sound/soc/ralink/snd-soc-mt7620-i2s.ko] undefined!
ERROR: "snd_dmaengine_pcm_register" [sound/soc/ralink/snd-soc-mt7620-i2s.ko] undefined!
make[6]: *** [__modpost] Error 1
make[5]: *** [modules] Error 2
make[5]: Leaving directory `/home/patrick/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.18.29'
make[4]: *** [/home/patrick/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.18.29/.image] Error 2
make[4]: Leaving directory `/home/patrick/openwrt/target/linux/ramips'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/patrick/openwrt/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/patrick/openwrt'
make[1]: *** [/home/patrick/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/patrick/openwrt'
make: *** [world] Error 2
Any ideas?
Thanks guys!
- Admin
- Site Admin
- Posts: 15
- Joined: Fri Oct 17, 2014 11:26 am
Re: Compiling Firmware for Dock v2?
1. find the function "snd_dmaengine_pcm_unregister", should in a C file.
2. find in Kconfig or Makefile the C file name, and get the config define from there.
3. define the config.
After that, the C file with the function "snd_dmaengine_pcm_unregister" will be compiled, and you will get .o or .ko. add the .o file to your Makefile, everything will work.
2. find in Kconfig or Makefile the C file name, and get the config define from there.
3. define the config.
After that, the C file with the function "snd_dmaengine_pcm_unregister" will be compiled, and you will get .o or .ko. add the .o file to your Makefile, everything will work.
5 posts
Page 1 of 1
Who is online
Users browsing this forum: No registered users and 7 guests