choss38

Members
  • Content Count

    12
  • Joined

  • Last visited

About choss38

  • Rank
    Member

Recent Profile Visitors

571 profile views
  1. Hi, thank you for your answer, I try to install linux-dtb-next-sunxi_5.96_armhf.deb linux-headers-next-sunxi_5.96_armhf.deb linux-image-next-sunxi_5.96_armhf.deb linux-u-boot-next-bananapipro_5.96_armhf.deb but sadly nothing better. Not simple...
  2. oh yes, for sure, I modified the sun7i-a20 file, I have adapted the tuto for my Bananapi Pro. Until this step, all is ok.
  3. Hi, I know it's a waste of time to play with an old bananapi pro but I think I could do it so I want to do it ! I can't make working PCM5102a DAC. I read a lot of things through different website but noway ! I tried https://forum.armbian.com/topic/9009-info-friendlyarm-pcm5102a-hat-with-nanopi-neo-under-mainline-4xx/ . I've only obtain this next to the step "armbian-add-overlay ./sun8i-h3-I2S-out.dts": $lsmod|grep i2s sun4i_i2s 20480 0 snd_soc_core 114688 2 sun4i_codec,sun4i_i2s snd_pcm 69632 4 sun4i_codec,sun4i_i2s,snd_pcm_dmaengine,snd_soc_core I tried the next step but nothing more: dmesg|grep -i pcm keep empty. I tried to make a module with this tuto https://hackaday.io/project/162373/instructions with the make command and his model of pcm5102a.c file, nothing more. I tried too with https://github.com/torvalds/linux/blob/master/sound/soc/codecs/pcm5102a.c failed ! aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sun4icodec [sun4i-codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 Anyway ! Where I am wrong ? Is there a step that I do well ?
  4. Fisrt, I tried this: /dts-v1/; /plugin/; / { compatible = "allwinner,sun7i-a20"; fragment@0 { target = <&i2s0>; __overlay__ { pcm5102a: pcm510x { compatible = "ti,pcm5102a"; pcm510x,format = "i2s"; #sound-dai-cells = <0>; }; }; }; fragment@1 { target-path= "/"; __overlay__ { sound_i2s { compatible = "simple-audio-card"; simple-audio-card,format = "i2s"; simple-audio-card,mclk-fs = <256>; simple-audio-card,cpu { sound-dai = <&i2s0>; }; simple-audio-card,codec { sound-dai = <&pcm5102a>; }; }; }; }; }; but no trace in the system after reboot: sudo aplay -L null Discard all samples (playback) or generate zero samples (capture) default:CARD=sun4icodec sun4i-codec, Default Audio Device sysdefault:CARD=sun4icodec sun4i-codec, Default Audio Device dmix:CARD=sun4icodec,DEV=0 sun4i-codec, Direct sample mixing device dsnoop:CARD=sun4icodec,DEV=0 sun4i-codec, Direct sample snooping device hw:CARD=sun4icodec,DEV=0 sun4i-codec, Direct hardware device without any conversions plughw:CARD=sun4icodec,DEV=0 sun4i-codec, Hardware device with all software conversions cat /proc/asound/cards 0 [sun4icodec ]: sun4i-codec - sun4i-codec sun4i-codec and of course no sound sudo speaker-test -c 2 -f 440 -t sine speaker-test 1.0.28 Playback device is default Stream parameters are 48000Hz, S16_LE, 2 channels Sine wave rate is 440,0000Hz Rate set to 48000Hz (requested 48000Hz) Buffer size range from 128 to 131072 Period size range from 64 to 16384 Using max buffer size 131072 Periods = 4 was set period_size = 16384 was set buffer_size = 131072 0 - Front Left 1 - Front Right Time per period = 2,837370 0 - Front Left I Tried to adapt also an HifiBerry DAC for Raspberry pi dts: // Definitions for HiFiBerry DAC /dts-v1/; /plugin/; / { compatible = "allwinner,sun7i-a20"; fragment@0 { target = <&sound>; __overlay__ { compatible = "hifiberry,hifiberry-dac"; i2s-controller = <&i2s>; status = "okay"; }; }; fragment@1 { target = <&i2s>; __overlay__ { status = "okay"; }; }; fragment@2 { target-path = "/"; __overlay__ { pcm5102a-codec { #sound-dai-cells = <0>; compatible = "ti,pcm5102a"; status = "okay"; }; }; }; }; sudo armbian-add-overlay hifiberry-dac.dts Compiling the overlay Copying the compiled overlay file to /boot/overlay-user/ Nothing more. Nada. sudo aplay -L [sudo] password for pi: null Discard all samples (playback) or generate zero samples (capture) default:CARD=sun4icodec sun4i-codec, Default Audio Device sysdefault:CARD=sun4icodec sun4i-codec, Default Audio Device dmix:CARD=sun4icodec,DEV=0 sun4i-codec, Direct sample mixing device dsnoop:CARD=sun4icodec,DEV=0 sun4i-codec, Direct sample snooping device hw:CARD=sun4icodec,DEV=0 sun4i-codec, Direct hardware device without any conversions plughw:CARD=sun4icodec,DEV=0 sun4i-codec, Hardware device with all software conversions cat /proc/asound/cards 0 [sun4icodec ]: sun4i-codec - sun4i-codec sun4i-codec It's too complicated for me ! Am I in a wrong way ? Please ! I need help !!
  5. Ok, thank you. I maybe too a newbie for this work ! I'm going to try with this: /dts-v1/; #include "sun7i-a20.dtsi" #include "sunxi-common-regulators.dtsi" #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> #include <dt-bindings/interrupt-controller/irq.h> / { compatible = "allwinner,sun7i-a20"; pcm5102: pcm510x { compatible = "ti,pcm5102a"; pcm510x,format = "i2s"; #sound-dai-cells = <0>; }; sound_i2s { compatible = "simple-audio-card"; simple-audio-card,format = "i2s"; simple-audio-card,mclk-fs = <256>; simple-audio-card,cpu { sound-dai = <&i2s0>; }; simple-audio-card,codec { sound-dai = <&pcm5102>; }; }; }; &i2s0 { pinctrl-names = "default"; pinctrl-0 = <&i2s0_bclk>, <&i2s0_lrclk>, <&i2s0_sdo0>; status = "okay"; }; Do I need all the fifth first lines ? And I don't see how I can configure the good GPIO's pin ? for example, pin 35 = LRCK, pin 36 = BCLK, pin 40 = DATA (sdo0 ?) It's a big problem for me: I don't really understand all the code I wrote, I'm afraid to burn my GPIO or other component on my board.
  6. Thank you for answer ! But how to made and activate manually an overlay ? I found this on A10/A20 here: https://docs.armbian.com/Hardware_Allwinner-A20/ What does it mean ? Is it an other way ? How to enabled I2S in HW configuration ?
  7. Hi, I'm not able to make my DAC to work on my Banana Pro. It's PCM 5102 DAC and it worked on my previous Armbian Wheezy My config: uname -a Linux bananapipro 4.11.6-sunxi #6 SMP Fri Jun 23 19:56:18 CEST 2017 armv7l GNU/Linux The DAC doesn't appear: aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sun4icodec [sun4i-codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 I looked in armbian-config tool but there is nothing to activate overlays I looked in folder /boot/dtb/overlays but saw nothing about I2S I would like to do as I did before, I edited the fex file but I can't find it. I can't mount the first partition to access /boot because I can see only one partition on my SD card ! fdisk -l Disk /dev/mmcblk0: 7,4 GiB, 7969177600 bytes, 15564800 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x01841151 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 2048 15253503 15251456 7,3G 83 Linux Maybe there are some new tricks last years I didn't read but I don't find anything about in the forum or on the web. Someone can help me ?
  8. And how to upgrade ? Zonegrise wrote he followed Armbian documentation but I cant find it. Could you please give a link ? Thanks !
  9. Ok, that's clear ! thanks for your quick reply !
  10. Hi, I can't update from armbian. I tried to switch to a new repository as write on this page: https://www.armbian.com/kernel/ When I proceed to apt-get update, I've got: my sources.list.d/armbian.list: Any idea ?
  11. Hi ! I had this kind of problem a couple of month ago: the problem was solved when my power source shut definitely down ! With my new power source, I never had the problem so I conclude that my old power source had sometimes some voltage drop !
  12. Hi, the upgrade to Armbian worked for me from Bananian 15.04 Wheezy with Openmediavault 2 on Banana Pro without problems. The sources from Bananian were deleted automatically. I've just followed Igor instructions. Now I've Linux bananapi 3.4.110 sun7i. I needed Sunxi sndi2s driver for my Beaunanas (a Banana Nas server boxed in a French Burgondy Beaune wine bottle box in wood ) to make working my DAC with MPD, missed driver on Bananian 15.04. Thanks for Armbian !