gurpartap Posted August 25, 2015 Posted August 25, 2015 I want to use debian wheezy for Olimex A20-micro. Please let me know whether it supports recording from microphone connector and audio out to headphone connector on board.Does there any audio breaking issues with this image or any other debian image. How to install it on Nand Memory of A20-micro board.
Igor Posted August 25, 2015 Posted August 25, 2015 Kernel 3.4.108 should work with audio and NAND. I am not sure about mic if Olimex micro has it or if it is wired to connector but the feature works on some other A20 boards which I have. I haven't done any deep tests so can't say anything about quality. I also haven't noticed any complains about audio breaking. How to install it on Nand Memory of A20-micro board. There is a nand-sata-installer script in /root... run it and follow instructions. If you run into troubles - check faq or ask here.
gurpartap Posted August 25, 2015 Author Posted August 25, 2015 thanks sir for quick reply.....can I export gpio pins for general purpose usage...Is there any problem of pin muxing because for that problem we have to edit .dts file which is very difficult for a newbie like me.
Igor Posted August 25, 2015 Posted August 25, 2015 Kernel 3.4.x doesn't have DT but Allwinner FEX files which does the same and where GPIOS are defined. Hard to say if this will be hard for you. There are plenty howto-s for this. Essentially you need to edit script.fex file (located in /boot) ... which you need to unpack from script.bin and pack back. Utilities for this are on all images: bin2fex and fex2bin For naming and pin location refer to board manual. Each board is/can be wired different.
tkaiser Posted August 25, 2015 Posted August 25, 2015 can I export gpio pins for general purpose usage... Since it seems you're using kernel 3.4 this might be a good starting point: http://linux-sunxi.org/GPIO#Accessing_the_GPIO_pins_through_sysfs_on_sunxi-3.4
jkx Posted September 13, 2015 Posted September 13, 2015 Hi, Which module provide the default sound config ? I want to use the output jack on a bananapi M1+. With the kernel 3.4.108, there is no sound device, nor loaded kernel. (I used a banapipro .fex file). Thanks
Igor Posted September 14, 2015 Posted September 14, 2015 Sound driver is built into kernel. What do you get from: cat /proc/asound uname -a lsmod
jkx Posted September 14, 2015 Posted September 14, 2015 /proc/asound looks Ok : jkx@banana1 ~> cat /proc/asound/devices 2: [ 0- 0]: digital audio playback 3: [ 0- 0]: digital audio capture 4: [ 0] : control 33: : timer jkx@banana1 ~> cat /proc/asound/cards 0 [sunxicodec ]: sunxi-CODEC - sunxi-CODEC sunxi-CODEC Audio Codec but aplay don't find any device.. jkx@banana1 ~> aplay -l aplay: device_list:268: no soundcards found... My config ======== - uname : Linux banana1 3.4.108-bananapi #6 SMP PREEMPT Sun Jul 12 07:23:19 CEST 2015 armv7l GNU/Linux - not asoundrc .. jkx@banana1 ~> lsmod Module Size Used by wifi_gpio 6375 0 ap6210 624553 0 cpufreq_userspace 3524 0 spidev 6366 0 a20_tp 3365 0 8021q 18593 0 garp 6072 1 8021q stp 2032 1 garp llc 5365 2 stp,garp sunxi_ir 4037 0 hidp 17640 0 rfcomm 58686 0 hci_uart 25000 0 bluetooth 264185 5 hidp,hci_uart,rfcomm Thanks
Igor Posted September 14, 2015 Posted September 14, 2015 Strange. Try using official FEX file: https://github.com/BPI-SINOVOIP/sunxi-boards/blob/master/sys_config/a20/BananaPi_M1_Plus.fex
jkx Posted September 14, 2015 Posted September 14, 2015 Oups, I managed to fix it. It's only a permission error. With the root account everything is fine.. I guess I need to apologize. I added my user to the audio group. Thanks for the support. Bye 1
Recommended Posts