guidol

Members
  • Content Count

    724
  • Joined

  • Last visited

About guidol

  • Rank
    Embedded member

Profile Information

  • Gender
    Male
  • Location
    Mudanya

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. guidol

    Do you used luma.lcd on Orange Pi Zero?

    The free Editor Notepad++ has a special feature for this
  2. guidol

    Do you used luma.lcd on Orange Pi Zero?

    maybe your import of Opi.GPIO is to short? Did you read the documentation at https://pypi.org/project/OrangePi.GPIO/ https://opi-gpio.readthedocs.io/en/latest/api-documentation.html#importing-the-module https://opi-gpio.readthedocs.io/en/latest/ https://opi-gpio.readthedocs.io/en/latest/install.html import OPi.GPIO as GPIO GPIO.setboard(GPIO.ZEROPLUS) GPIO.setmode(GPIO.BOARD) GPIO.output(5, 1) https://www.tindie.com/products/seandepagnier/orangepi-zero-nokia-5110-lcd-hat/ http://pcbrelated.com/playing-with-orange-pi-zero-part-1/ This orangepi version is different from the raspberrypi version because the gpio connector was flipped 180 degrees. ====================================================================================================================== My LCD module has an 8 pin connector so I use a connection like below: 1 - GND: Ground 2 - BL: Backlight 3 - 3VCC: Power, 3v3 4 - CLK: Clock for SPI -> (Orange Pi SPI-CLK pin 23) 5 - DIN: MOSI for SPI -> (Orange Pi SPI-MOSI pin 19) 6 - DC: Data/Command -> (Orange Pi IO-3 pin 15) 7 - CE: Chips Select -> (Orange Pi IO-0 pin 11) 8 - RST: Reset -> (Orange Pi IO-6 pin 22)
  3. OK, the pinout of NAS-case seems also to be useable with the Core2 (but FrriendlyARM doenst wrote it on their page), but it seems that you - with that configuration - not directly could use ethernet (there isnt a PHY) nor the USB-Port 3 nor I2C2 nor the additionally SPI1. Did you additionally install a PHY (Ethernet port) on your Core2? Maybe - if you install a header (or did you already) - you could USB-Port 3 for better results?
  4. yes it works fine I was to nervous after the install screen "break" after download package 194 of 194 and the keyring install doesnt did look right.... normally after download it starts with installing 1 of 194 BTW: kannst Du Deutsch schreiben/reden? Oder ist das der Google-Translator?
  5. -deleted- complete-self-reply
  6. Today I gave OpenMediaVault another try - because 2 of my "very" old NAS-Boxes (normally sitting on a cupboard) only support SMB v1 and I dont know how long my Synology DS109 will live. Yes - I got 2 NanoPi Neo2 with NAS-Case, but for a test-ride I compiles stretch for the Cubieboard A10 (because of the SATA-Port). While installing OpenMediaVault vis softys in armbin-config the install-script has to install the OMV Keyring. The packages where downloaded 100% and then softys came to to line with the keyring and did break the "install-screen". I did see any action from the Cubieboard After a while I did press Ctrl-C and did reboot and tried to install again....but that doest work because the interrupted install routine before After reading some websites I did give the A10 the command omv-firstaid and it promptes some error (seems the installtion of OMV wasnt completed) but it gave me the first solution!: dpkg --configure -a So I could see the A10 installing OMV and everything wnt fine. The Keyring command seems to be like at the manual installation of OMV with debian see at https://openmediavault.readthedocs.io/en/latest/installation/on_debian.html : apt-get --allow-unauthenticated install openmediavault-keyring but (my) armbian didnt like that, so I searched the web again and found apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7E7A6C592EF35D13 24863F0C716B980B as command.... but armbian couldnt complete this without installing first dirmngr via apt install dirmngr Now I can suggest to use the following command prior to the OMV installation: apt install dirmngr apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7E7A6C592EF35D13 24863F0C716B980B You could find these keyring-fingerprints at https://www.openmediavault.org/download.html After the test-ride with the Cubieboard A10 I did a second install on a Intel D525MW Mainboard with a Atom D525 (DualCore 1.8Ghz) and 4GB of Ram. I installed stretch to a USB-Drive first and then after some configurations OMV via the install-script from https://openmediavault.readthedocs.io/en/latest/installation/on_debian.html but without the line apt-get --allow-unauthenticated install openmediavault-keyring because I did install the keyring before the installation At the D525 saving the OMV-Setting is much more speedy... I dont know why saving the setting does take so long with the Cubieboard A10 ( had also this long savetimes some time ago while testing with other new/faster SBCs like NanoPi/OrangePI and RPis )
  7. The NAS-case has an JMS567 - but this USB 3.0 SATA controller is internally connected via USB 2.0 to the Neo2. How did you connect the Neo Core 2 LTS to the NAS-Case for the Neo/Neo2 - or do you mean the NanoPi Neo2 LTS I couldnt find a information that the Neo Core 2 LTS will work with the NAS-Case https://www.friendlyarm.com/index.php?route=product/product&product_id=222
  8. guidol

    Upgrade from Orange pi PC?

    Not for $20 shipped, but with the -for me - cheap NAS case the NanoPi Neo2 LTS is a option. The Neo2 is available with 512MB or 1GB of Ram and works fine inside the NAS-Case (I got 2 of these combinations running over a year). armbian-support for the Neo2 (H5-CPU) is fine. HDMI isnt included, but with the NAS-case he has 2 USB 2.0-Ports, GBE, a power-switch AND a proper Power-connector for a normal 12V power-supply Neo2 LTS: https://www.friendlyarm.com/index.php?route=product/product&path=69&product_id=180 NAS-case: https://www.friendlyarm.com/index.php?route=product/product&path=85&product_id=222
  9. if there is no hardware entry in armbian-config there is a small chance by adding the analog-codec overlay to /boot/armbianEnv.txt as overlays=analog-codec (when there is no other overlay already loaded with overlays= else add analog-codec after a space) The /etc/asound.conf isnt created automatically - you have to create this file by yourself But firstly you must have the analog device available in aplay before you can use asound.conf and alsamixer.
  10. Did you activate analog-codec in armbian-config -> system -> hardware? Does aplay -l show the analog soundcard? Did you configure /etc/asound.conf for the analog soundcard? Did you raise the volume in alsamixer?
  11. Maybe @balbes150 could you help with informations about to integrate the Cypress w43455 - if you do ask in this thread: The case of the Phicomm N1 looks - for me - very nice A Bit like a NeXT-device in white Where did you get your device and whats the normal price? Phicomm N1: http://www.phicomm.com/vn/index.php/Products/personal_show/cateid/15/id/72.html Specifications: Other page for armbian-reference: https://www.mivm.cn/phicomm-n1-linux/
  12. I am using the "original" Orange Pi cases. For the smaller Zero-Board the black-cube while adding the Audio-/USB-expansion PCB. For the "bigger" boards I like the clear ones - but for being only plastic they arent cheap.
  13. I did all this - after getting it into my brain the last night - AND IT WORKED Many Thanks! ----------------------------------------------------------------------- BE HAPPY about a successful i2s mapping in dmesg (on NanoPi Neo) ----------------------------------------------------------------------- root@npi-neo(192.168.6.24):~# dmesg|grep -i i2s [ 6.911751] asoc-simple-card sound_i2s: pcm5102a-hifi <-> 1c22000.i2s mapping ok ----------------------------------------------------------------------- I enabled also ananlog-Codec (on NanoPi Neo) ----------------------------------------------------------------------- root@npi-neo(192.168.6.24):/home/guido# aplay -l **** Liste der Hardware-Geräte (PLAYBACK) **** Karte 0: Codec [H3 Audio Codec], Gerät 0: CDC PCM Codec-0 [] Sub-Geräte: 1/1 Sub-Gerät #0: subdevice #0 Karte 1: I2Smaster [I2S-master], Gerät 0: 1c22000.i2s-pcm5102a-hifi pcm5102a-hifi-0 [] Sub-Geräte: 1/1 Sub-Gerät #0: subdevice #0 I did wrote a new thread for the NanoPi Neo - it could be better found if anyone does earch for the information : config-default.conf.mod_nanopineo
  14. I did that on a NanoPi Neo with the FriendlyARM PCM5102A Hat ( https://www.friendlyarm.com/index.php?route=product/product&amp;product_id=169 ) using kernel 4.14.87-sunxi and armbian 5.67 (or later would be only 5.65?) (before that I did use legacy kernel 3.4.x with the PCM510A) and the armbian-BuildSystem plus (THANKS to) informations in threads from @dony71 , @Christos, @Valery Rezvyakov and the the Reference-Threads you could find above ---------------------------------------------------------------------------------------------------------------------------------- BACKUP DTB (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- cp /boot/dtb/sun8i-h3-nanopi-neo.dtb /boot/dtb/sun8i-h3-nanopi-neo.dtb_org ---------------------------------------------------------------------------------------------------------------------------------- CONVERT dtb to dts (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- dtc -I dtb -O dts /boot/dtb/sun8i-h3-nanopi-neo.dtb -o /boot/dtb/sun8i-h3-nanopi-neo.dts ---------------------------------------------------------------------------------------------------------------------------------- EDIT /boot/dtb/sun8i-h3-nanopi-neo.dts ---------------------------------------------------------------------------------------------------------------------------------- nano /boot/dtb/sun8i-h3-nanopi-neo.dts ---------------------------------------------------------------------------------------------------------------------------------- FROM i2s@1c22000 { #sound-dai-cells = <0x0>; compatible = "allwinner,sun8i-h3-i2s"; reg = <0x1c22000 0x400>; interrupts = <0x0 0xd 0x4>; clocks = <0x3 0x38 0x3 0x54>; clock-names = "apb", "mod"; dmas = <0x13 0x3 0x13 0x3>; resets = <0x3 0x2b>; dma-names = "rx", "tx"; status = "disabled"; phandle = <0x4e>; }; TO i2s@1c22000 { #sound-dai-cells = <0x0>; compatible = "allwinner,sun8i-h3-i2s"; reg = <0x1c22000 0x400>; interrupts = <0x0 0xd 0x4>; clocks = <0x3 0x38 0x3 0x54>; clock-names = "apb", "mod"; dmas = <0x13 0x3 0x13 0x3>; resets = <0x3 0x2b>; dma-names = "rx", "tx"; status = "okay"; phandle = <0x4e>; }; ---------------------------------------------------------------------------------------------------------------------------------- CONVERT (BACK) dts to dtb (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- dtc -I dts -O dtb /boot/dtb/sun8i-h3-nanopi-neo.dts -o /boot/dtb/sun8i-h3-nanopi-neo.dtb_I2S_okay ---------------------------------------------------------------------------------------------------------------------------------- COPY new dtb over dtb (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- cp /boot/dtb/sun8i-h3-nanopi-neo.dtb_I2S_okay /boot/dtb/sun8i-h3-nanopi-neo.dtb ---------------------------------------------------------------------------------------------------------------------------------- COPY sun8i-h3-I2S-out.dts to home (working directory on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- copy sun8i-h3-I2S-out.dts --> /home/guido/ ---------------------------------------------------------------------------------------------------------------------------------- armbian-add-overlay (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- root@npi-neo(192.168.6.24):/home/guido# armbian-add-overlay ./sun8i-h3-I2S-out.dts Compiling the overlay Copying the compiled overlay file to /boot/overlay-user/ Reboot is required to apply the changes ---------------------------------------------------------------------------------------------------------------------------------- dtbo is created (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- root@npi-neo(192.168.6.24):/home/guido# ls -l /boot/overlay-user/ insgesamt 4 -rw-r--r-- 1 root root 1323 Dez 7 19:34 sun8i-h3-I2S-out.dtbo ---------------------------------------------------------------------------------------------------------------------------------- user-overlay is created in /boot/armbianEnv.txt (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=usbhost1 usbhost2 rootdev=UUID=33ca90d6-130b-4d5f-a8f4-95b3b97ef5c0 rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u user_overlays=sun8i-h3-I2S-out ---------------------------------------------------------------------------------------------------------------------------------- now REBOOT (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- root@npi-neo(192.168.6.24):~# lsmod|grep i2s sun4i_i2s 16384 0 snd_soc_core 118784 2 sun4i_i2s,sun8i_codec_analog snd_pcm 69632 3 sun4i_i2s,snd_pcm_dmaengine,snd_soc_core ---------------------------------------------------------------------------------------------------------------------------------- EDIT config-default.conf (on armbian-BuildSystem) ---------------------------------------------------------------------------------------------------------------------------------- cd /home/guido/build nano ./config-default.conf replace content /home/guido/build/config-default.conf with attached config-default.conf_nanopineo ./compile -> With this conf, script compilation will stop to overwrite kernel source to build patch -> At that time, overwrite original Kconfig with the one you modified above (at "Make changes to U-Boot" press ENTER to proceed) wait for "Make your changes to /home/guido/build/cache/sources/linux-mainline/linux-4.14.y then press ENTER" BUT DONT PRESS ENTER YET ---------------------------------------------------------------------------------------------------------------------------------- EDIT/SAVE Kconfig in a 2nd shell-Window (on armbian-BuildSystem) ---------------------------------------------------------------------------------------------------------------------------------- nano /home/guido/build/cache/sources/linux-mainline/linux-4.14.y/sound/soc/codecs/Kconfig the part FROM config SND_SOC_PCM5102A tristate TO config SND_SOC_PCM5102A tristate "Texas Instruments PCM5102A CODEC - I2S" ---------------------------------------------------------------------------------------------------------------------------------- NOW PRESS ENTER in the 1st shell-Windows (.compile.sh) (on armbian-BuildSystem) ---------------------------------------------------------------------------------------------------------------------------------- -> Then script compilation will stop again to ask whether you want to add pcm5102a to compile -> Default is N, so you need to enter m for module compilation After compile is complete ---------------------------------------------------------------------------------------------------------------------------------- copy (via SCP/FTP?) the .deb's from /home/guido/build/output/debs (on armbian-BuildSystem) to /home/guido/ (on the NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------- INSTALL the .deb's (here only header and image - because it was already 5.67 (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- cd /home/guido dpkg -i ./linux-headers-next-sunxi_5.67_armhf.deb dpkg -i ./linux-image-next-sunxi_5.67_armhf.deb (image did include the .ko module for the pcm5102a) ---------------------------------------------------------------------------------------------------------------------------------- now REBOOT (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- ===================================================================================== ===================================================================================== !!!!!!!!!!!!!!!!!!!!!!!!!!!!! ATTENTION: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! After reboot my NanoPi Neo show the following armbian-version: ARMBIAN 5.65 stable Debian GNU/Linux 9 (stretch) 4.14.84-sunxi and 2 upgrades for headers&image (without the PCM5102A support) please keep in mind to freeze the kernel-updates in armbian-config for not to loose the support (module) for the PCM5120A! armbian-config -> system -> Freeze Disable kernel upgrades ===================================================================================== ===================================================================================== ---------------------------------------------------------------------------------------------------------------------------------- BE HAPPY about a successful i2s mapping in dmesg (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- root@npi-neo(192.168.6.24):~# dmesg|grep -i i2s [ 6.911751] asoc-simple-card sound_i2s: pcm5102a-hifi <-> 1c22000.i2s mapping ok ---------------------------------------------------------------------------------------------------------------------------------- I enabled also ananlog-Codec (on NanoPi Neo) ---------------------------------------------------------------------------------------------------------------------------------- root@npi-neo(192.168.6.24):/home/guido# aplay -l **** Liste der Hardware-Geräte (PLAYBACK) **** Karte 0: Codec [H3 Audio Codec], Gerät 0: CDC PCM Codec-0 [] Sub-Geräte: 1/1 Sub-Gerät #0: subdevice #0 Karte 1: I2Smaster [I2S-master], Gerät 0: 1c22000.i2s-pcm5102a-hifi pcm5102a-hifi-0 [] Sub-Geräte: 1/1 Sub-Gerät #0: subdevice #0 ---------------------------------------------------------------------------------------------------------------------------------- /etc/asound.conf (on NanoPi Neo) - later I2S did switch automatically to card 0 ---------------------------------------------------------------------------------------------------------------------------------- pcm.!default { type hw card 1 device 0 } ctl.!default { type hw card 1 } ---------------------------------------------------------------------------------------------------------------------------------- Reference-Threads ---------------------------------------------------------------------------------------------------------------------------------- config-default.conf.mod_nanopineo sun8i-h3-I2S-out.dts