dony71
Members-
Posts
128 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Everything posted by dony71
-
read first How to build my own image or kernel?
dony71 replied to Igor's topic in Advanced users - Development
It's not there and I have to add it However while running ./compile.sh, this Kconfig will be overwritten from original source since it's being modified To get "pcm5102a.c" compiled successfully, I have to modify and copy this Kconfig on-the-fly during compilation Maybe you have better idea how to avoid compile script overwrite this file? -
pcm5102 dac not showing on armbian 5.65 [SOLVED]
dony71 replied to dony71's topic in Allwinner sunxi
I manage to get this working using released Armbian 5.65 (kernel 4.14.78). Somehow armbian kernel never include pcm5102a driver module, so have to compile it manually as compiling via menuconfig also not working (Kconfig not include "CONFIG_SND_SOC_PCM5102A=m" ). After successfully compiled snd-soc-pcm5102a.ko (see attached file), copy it at /lib/module/kernel/4.14.78-sunxi/kernel/sound/soc/codecs/ Copy sun8i-h3-I2S-out.dts (attached file) in /boot/overlay-user and convert it to dtbo file with armbian-add-overlay Enable i2s in board dtb (for my board sun8i-h3-bananapi-m2-plus.dtbo). You have to convert dtbo file to dts file first to be readable and change to "status = "okay";" under i2s@01c22000 section (see attached sun8i-h3-bananapi-m2-plus.dts) and convert it back to dtbo file. After reboot then pcm5102 i2s device will show up snd-soc-pcm5102a.ko sun8i-h3-I2S-out.dts sun8i-h3-bananapi-m2-plus.dts -
@Christos wondering what board are you using with this? I'm surprised that HDMI audio is working with mainline kernel on this allwinner platform? I have Banana-Pi-M2+ (Alllwinner H3) and HDMI audio is still problem according to @Igor
-
Well, I manage to compile pcm5102a for kernel 4.14.78 I wonder why armbian kernel never include this in Kconfig, so it show none in menuconfig I have to modify Kconfig on-the-fly during compilation, since .config will be overwritten at some point in compilation Implementing "CONFIG_SND_SOC_PCM5102A=m" in userpatches/linux-sunxi-next.config also doesn't work
-
read first How to build my own image or kernel?
dony71 replied to Igor's topic in Advanced users - Development
I put KERNELBRANCH='tag:v4.14.78' in userpatches/lib.config and now can generate v.4.14.78 kernel userpatches/linux-sunxi-next.config still problem, "CONFIG_SND_SOC_PCM5102A=m" not being executed -
download released image from armbian.com for banana-pi-m2-plus has kernel 4.14.78 but that kernel missing pcm5102a driver so i have to compile kernel module which will give freshly built 4.14.81
-
read first How to build my own image or kernel?
dony71 replied to Igor's topic in Advanced users - Development
I try put userpatches/linux-sunxi-next.config and it seems user kernel config is being used but there is no snd-soc-pcm5102a.ko Also try KERNELBRANCH, but still using 4.14.81 sudo ./compile.sh KERNELBRANCH='tag:v4.14.78' KERNEL_KEEP_CONFIG=no KERNEL_ONLY=yes KERNEL_CONFIGURE=no BUILD_DESKTOP=no BOARD=bananapim2plus BRANCH=next RELEASE=stretch Attached compile log and linux-sunxi-next.config I just add "CONFIG_SND_SOC_PCM5102A=m" in config and copy "pcm5102a.c" in "linux-4.14.y/sound/soc/codecs" linux-sunxi-next.config output.log -
read first How to build my own image or kernel?
dony71 replied to Igor's topic in Advanced users - Development
already spend 3 days now with kernel compilation maybe i'm not really good of doing this, but will keep learning though slow -
read first How to build my own image or kernel?
dony71 replied to Igor's topic in Advanced users - Development
already spend 3 days now with kernel compilation maybe i'm not really good of doing this, but will keep learning though slow -
read first How to build my own image or kernel?
dony71 replied to Igor's topic in Advanced users - Development
Thanks, for now I will try KERNELBRANCH method I will debug later why kernel broken after I get serial console Also I have question about add driver module Current mainline doesn't include snd-soc-pcm5102a driver so I need to modify .config to add this However everytime I build kernel using KERNEL_KEEP_CONFIG=no, it's always overwritten Anything I'm missing? -
I already try installing linux-image-next-sunxi_5.67_armhf.deb and linux-dtb-next-sunxi_5.67_armhf.deb The result is black screen which means I need serial console to debug but I don't have it now
-
read first How to build my own image or kernel?
dony71 replied to Igor's topic in Advanced users - Development
the problem is new kernel doesn't work which means i need serial console port which i don't have now it will be more work to do rather than compiling a module fit to my current kernel -
after run "depmod -a", i got "modprobe: ERROR: could not insert 'snd_soc_pcm5102a': Exec format error" dmesg shows "snd_soc_pcm5102a: version magic '4.14.81-sunxi SMP mod_unload ARMv7 thumb2 p2v8 ' should be '4.14.78-sunxi SMP mod_unload ARMv7 thumb2 p2v8 '" so kernel different ... anybody knows how to build specific kernel 4.14.78 ? i'm using this guideline https://docs.armbian.com/Developer-Guide_Build-Preparation/
-
read first How to build my own image or kernel?
dony71 replied to Igor's topic in Advanced users - Development
I want to build driver module and follow this guideline https://docs.armbian.com/Developer-Guide_Build-Preparation/ However I notice it build driver for kernel 4.14.81 while my system has kernel 4.14.78 How to force compilation to make kernel 4.14.78 ? -
OK, I manage to compile kernel module and copy them into my Banana-Pi-M2+ However it gives me error below .... what's wrong? snd-soc-pcm5102a already copied into that directory root@bananapim2plus:/boot# modprobe snd-soc-pcm5102a modprobe: FATAL: Module snd-soc-pcm5102a not found in directory /lib/modules/4.14.78-sunxi
-
@Valery Rezvyakov I try released version Armbian 5.65 for Banana-Pi-M2+ and find out I2S and HDMI audio doesn't work aplay -l shows ----------------- root@bananapim2plus:/boot/overlay-user# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 So I follow your instruction above but I don't understand where you execute this "make linux-menuconfig (by buildroot)" ? I follow this cross-compile builing kernel https://docs.armbian.com/Developer-Guide_Build-Preparation/ But I cannot execute "make linux-menuconfig"
-
no hdmi sound device on banana -pi-m2+ using armbian 5.65 [SOLVED]
dony71 replied to dony71's topic in Allwinner sunxi
@Igoris this still problem? https://github.com/armbian/build/issues/700 -
no hdmi sound device on banana -pi-m2+ using armbian 5.65 [SOLVED]
dony71 replied to dony71's topic in Allwinner sunxi
I think HDMI audio driver should be snd_soc_hdmi_codec ? This is strange cause I can see from lsmod driver is already loaded Also I load also snd_soc_pcm512x, but aplay -l still showing none of sndhdmi and snddaudio Anybody help?? system diagnostic information: http://ix.io/1rPj -
no hdmi sound device on banana -pi-m2+ using armbian 5.65 [SOLVED]
dony71 replied to dony71's topic in Allwinner sunxi
@Igor can you tell me what's the name of file for HDMI audio driver module? I have compiled kernel and have setting below for HDMI audio CONFIG_DRM_DW_HDMI=m CONFIG_DRM_DW_HDMI_AHB_AUDIO=m CONFIG_DRM_DW_HDMI_I2S_AUDIO=m CONFIG_DRM_DW_HDMI_CEC=m -
no hdmi sound device on banana -pi-m2+ using armbian 5.65 [SOLVED]
dony71 replied to dony71's topic in Allwinner sunxi
syslog attached below my guess is no hdmi driver in kernel i thought release version should include this? btw, i have also similar issue with pcm5102 dac via i2s link for this issue: syslog.bak -
i'm using banana-pi-m2+ already enable i2s0 by changing dtb file in /boot/dtb and can see i2s module load but aplay -l still not showing anybody help? root@bananapim2plus:~# lsmod Module Size Used by snd_soc_hdmi_codec 16384 0 dw_hdmi_i2s_audio 16384 0 sun8i_dw_hdmi 16384 0 dw_hdmi 28672 2 dw_hdmi_i2s_audio,sun8i_dw_hdmi cec 40960 2 dw_hdmi_cec,dw_hdmi sun8i_codec_analog 24576 1 sun4i_codec 32768 3 sun4i_i2s 16384 0 snd_soc_core 118784 4 sun4i_codec,sun4i_i2s,sun8i_codec_analog,snd_soc_hdmi_codec snd_pcm_dmaengine 16384 1 snd_soc_core snd_pcm 69632 5 sun4i_i2s,snd_pcm_dmaengine,snd_soc_hdmi_codec,snd_soc_core snd_timer 24576 1 snd_pcm snd 45056 9 snd_soc_hdmi_codec,snd_timer,snd_soc_core,snd_pcm soundcore 16384 1 snd
-
Cant build media_build Armbian 5.20 OrangePi PC
dony71 replied to idandavidi's topic in Allwinner sunxi
I try to compile this too, but have this error Any idea? File not found: /lib/modules/3.4.113-sun8i/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4. -
V4L/DVB drivers for Armbian - testers wanted
dony71 replied to Xer0's topic in Advanced users - Development
I need this V4L/DVB drivers for 3.4.113 kernel Anybody can tell me how to compile this? Or maybe someone has already compiled binary? -
@Igor /etc/init.d/hostapd systemv script is not working properly. ssid is not showing after reboot, most likely modprobe op_mode=2 is not executed yet before hostapd init.d is being called. i don't know how to fix the script, so i just do restart hostapd in /etc/rc.local