lagerschaden

Members
  • Content Count

    34
  • Joined

  • Last visited

 Content Type 

Forums

Member Map

Store

Crowdfunding

Raffles

Applications

Everything posted by lagerschaden

  1. I found an error in the U-boot messages: ** File not found /boot/boot.env ** Therefore I took a new SD-card and copied Armbian 5.65 with kernel 4.14.78 onto it. Same error occurs. Could this be the reason for the wrong display mode?
  2. I have the same problem with an orangepi one and ARMBIAN 5.60 stable Debian GNU/Linux 9 (stretch) 4.14.70-sunxi I have a VGA Monitor connected via a HDMI-to-VGA adpater which runs well under Armbian 3.4 and h3disp set to 1024x768@60 which is the max resolution of this monitor. The adapter also runs fine with my normal monitor Hanns.G and with any PC I own and any resolution. When I changed to Armbian 4.14, the resolution of the video output is always set to 1920x1080@60, regardless which parameter I change in /boot/armbianEnv.txt or /boot/boot.cmd recompile and boot twice. I also tried 800x600 and 640x480, nothing works. Tnx L
  3. Try the /etc/udev/rules.d/97-gpio.rules from https://linux-sunxi.org/GPIO
  4. The Orange Pi Zero Plus has only a CVBS/FBAS/RCA video output, therefore I believe that only a televison but no VGA or DVI/HDMI monitor can be used (or headless use). Has anybody an idea how to convert CVBS to VGA or DVI/HDMI? L.
  5. It also runs on Armbian 4.14.18 and 4.14.65 with no root privileges, but you must change the file # /etc/udev/rules.d/97-gpio.rules SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\ chown -R root:gpio /sys/class/gpio && chmod -R 0770 /sys/class/gpio &&\ chown -R root:gpio /sys/devices/platform/soc && chmod -R 0770 /sys/devices/platform/soc'" add a group gpio and make the user member of this group, then reboot
  6. I downloaded Armbian_5.38_Debian_stretch_next_4.14.14 for the orangepi-one and startet armbian-config. In dpkg-reconfigure keyboard-configuration I changed the layout to german-german but it has no effect, the layout remains to the international layout (qwerty etc).
  7. Hi, can anybody tell me, why the rights on the serial port ttyS0 are R/W for the user (root), but only W for the group (tty) ??? crw--w---- 1 root tty 251, 0 Jan 24 19:45 /dev/ttyS0 Hardware is orangepi one, OS is Linux pi-one 3.4.113-sun8i #6 SMP PREEMPT Tue Jan 16 14:36:25 CET 2018 armv7l GNU/Linux I can change the rights with chmod, but the change is not permanent after a reboot. L.
  8. It seems to be alright now: pi@pi-one:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 7 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up systemd (215-17+deb8u7) ... addgroup: The group `systemd-journal' already exists as a system group. Exiting. Failed to try-restart systemd-logind.service: Connection reset by peer /var/lib/dpkg/info/systemd.postinst: 150: /var/lib/dpkg/info/systemd.postinst: cannot open /run/systemd/was-enabled: No such file Setting up hostapd (2:2.6-4~armbian5.37.180112+1) ... Failed to execute operation: Connection timed out Failed to execute operation: Connection timed out Setting up linux-image-sun8i (5.37.180112) ... update-initramfs: Generating /boot/initrd.img-3.4.113-sun8i update-initramfs: Converting to u-boot format Setting up linux-jessie-root-orangepione (5.37.180112) ... Setting up linux-libc-dev:armhf (3.16.51-3+deb8u1) ... Setting up linux-u-boot-orangepione-default (5.37.180112) ... Updating u-boot on /dev/mmcblk0 Setting up sunxi-tools (1.4.2-2~armbian5.37.180112+1) ... Processing triggers for initramfs-tools (0.120+deb8u3) ... update-initramfs: Generating /boot/initrd.img-3.4.113-sun8i update-initramfs: Converting to u-boot format pi@pi-one:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I think it is ok now L
  9. today I made an update an got the following message The following packages will be upgraded: hostapd linux-image-sun8i linux-jessie-root-orangepione linux-libc-dev linux-u-boot-orangepione-default sunxi-tools 6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 13,9 MB/15,0 MB of archives. After this operation, 2.048 B of additional disk space will be used. Get:1 http://beta.armbian.com/ jessie/jessie-utils hostapd armhf 2:2.6-4~armbian5.37.180112+1 [363 kB] Get:2 http://beta.armbian.com/ jessie/main linux-image-sun8i armhf 5.37.180112 [12,9 MB] Get:3 http://beta.armbian.com/ jessie/main linux-jessie-root-orangepione armhf 5.37.180112 [485 kB] Get:4 http://beta.armbian.com/ jessie/main linux-u-boot-orangepione-default armhf 5.37.180112 [183 kB] Get:5 http://beta.armbian.com/ jessie/jessie-utils sunxi-tools armhf 1.4.2-2~armbian5.37.180112+1 [36,2 kB] Fetched 13,9 MB in 8s (1.690 kB/s) (Reading database ... 32065 files and directories currently installed.) Preparing to unpack .../hostapd_2%3a2.6-4~armbian5.37.180112+1_armhf.deb ... Failed to execute operation: Connection timed out Unpacking hostapd (2:2.6-4~armbian5.37.180112+1) over (2:2.6-4~armbian5.37.171231+1) ... Failed to execute operation: Connection timed out Preparing to unpack .../linux-image-sun8i_5.37.180112_armhf.deb ... Unpacking linux-image-sun8i (5.37.180112) over (5.37.171231) ... Preparing to unpack .../linux-jessie-root-orangepione_5.37.180112_armhf.deb ... Leaving 'diversion of /etc/mpv/mpv.conf to /etc/mpv/mpv-dist.conf by linux-jessie-root-orangepione' Unpacking linux-jessie-root-orangepione (5.37.180112) over (5.37.171231) ... Preparing to unpack .../linux-libc-dev_3.16.51-3+deb8u1_armhf.deb ... Unpacking linux-libc-dev:armhf (3.16.51-3+deb8u1) over (3.16.51-3) ... Preparing to unpack .../linux-u-boot-orangepione-default_5.37.180112_armhf.deb ... Unpacking linux-u-boot-orangepione-default (5.37.180112) over (5.37.171231) ... Preparing to unpack .../sunxi-tools_1.4.2-2~armbian5.37.180112+1_armhf.deb ... Unpacking sunxi-tools (1.4.2-2~armbian5.37.180112+1) over (1.4.2-2~armbian5.37.171231+1) ... Processing triggers for systemd (215-17+deb8u7) ... Failed to execute operation: Connection timed out dpkg: error processing package systemd (--unpack): subprocess installed post-installation script returned error exit status 1 Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for initramfs-tools (0.120+deb8u3) ... update-initramfs: Generating /boot/initrd.img-3.4.113-sun8i update-initramfs: Converting to u-boot format Errors were encountered while processing: systemd E: Sub-process /usr/bin/dpkg returned an error code (1) what shall I do now ?
  10. A question abaout iozone: is it possible to use another SDCard eg in an USB-reader in the USB-port ?
  11. a Toshiba Exceria 32GB on an OrangePi One - ARMBIAN 5.37.171221 nightly Debian GNU/Linux 8 (jessie) 3.4.113-sun8i random random kB reclen write rewrite read reread read write 102400 4 1646 1719 7660 7658 6295 167 102400 16 5743 5283 14291 14254 13093 37 102400 512 11085 10968 22590 21994 20114 1146 102400 1024 14581 14444 22596 22597 22549 2344 102400 16384 15162 13057 22762 22763 22758 12308 and the 2. run: random random kB reclen write rewrite read reread read write 102400 4 1883 1907 7834 7834 6543 184 102400 16 7406 7107 13679 14571 13393 38 102400 512 15185 15097 22614 22615 22518 1189 102400 1024 14787 17266 22630 22632 22586 2372 102400 16384 17930 15759 22750 22754 22753 10334 and the MMC-Info mmc0:1234 info: cid: 02544d5341333247252735f690011683 csd: 400e00325b590000e74f7f800a4000d5 scr: 0235840301000000 date: 06/2017 name: SA32G type: SD preferred_erase_size: 4194304 fwrev: 0x5 hwrev: 0x2 oemid: 0x544d manfid: 0x000002 serial: 0x2735f690 uevent: DRIVER=mmcblk MMC_TYPE=SD MMC_NAME=SA32G MODALIAS=mmc:block erase_size: 512
  12. under armbian 5.35 Debian Jessie 3.4.113-sun8i I added the following file /lib/systemd/system/getty@tty1.service.d/20-autologin.conf with root privileges: # /lib/systemd/system/getty@tty1.service.d/20-autologin.conf [Service] ExecStart= ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM If needed, change 'pi' with another username. Then reboot.
  13. It would be fine and eysier for newbies if the udev-rule would be integrated in Armbian or in armbian-config.
  14. I found a method to access gpio without root privileges, look here
  15. Thats's easy to find out. Look at the directory /sys/class/gpio, there is a link to /sys/devices/platform/whatsoever/gpio/gpiochip0, change whatsoever with the real findings and drop gpiochip0. That's the way I did it. Maybe it depends on the hardware (I use an opi one) or the Linux (I use Armbian 5.35 Debian Jessie 3.4.113).
  16. on Orangepi One you have to add a file like /etc/udev/rules.d/99-gpio.rules SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\ chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio;\ chown -R root:gpio /sys/devices/platform/sunxi-pinctrl/gpio && chmod -R 770 /sys/devices/platform/sunxi-pinctrl/gpio;\ '" add a group gpio and add the user to it, then you have rootless access to gpio
  17. It would be GREAT if rootless access to gpio was integrated in armbian (just like in raspbian). I made a little test on my Orangepi-One: created a group gpio and added the user to the group gpio, then created the file /etc/udev/rules/99-gpio.rules, this makes the access rootless # /etc/udev/rules/99-gpio.rules SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\ chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio;\ chown -R root:gpio /sys/devices/platform/sunxi-pinctrl/gpio && chmod -R 770 /sys/devices/platform/sunxi-pinctrl/gpio;\ '" Edit (02/09/2018): for later versions of armbian the file must change (tested with 4.14.18 and 4.14.65): # /etc/udev/rules.d/97-gpio.rules SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\ chown -R root:gpio /sys/class/gpio && chmod -R 0770 /sys/class/gpio &&\ chown -R root:gpio /sys/devices/platform/soc && chmod -R 0770 /sys/devices/platform/soc'" Now you can use the access on the bash for the PIN PA12 (calculation see https://linux-sunxi.org/GPIO) echo 12 > /sys/class/gpio/export # enable access to PA12 sleep 0.1 # wait some time to become gpio12 active echo out > /sys/class/gpio/gpio12/direction # PA12 is output echo 0 > /sys/class/gpio/gpio12/value # PA12 is low echo 1 > /sys/class/gpio/gpio12/value # PA12 is high echo 12 > /sys/class/gpio/unexport # disable access to PA12 My skills in programming are not good enough to transform this to C, C+, Python etc, but you don't need any root privileges.
  18. The problem seems to access /dev/mem, crw-r----- 1 root kmem 1, 1 Nov 28 22:17 /dev/mem If you change the group or add normal user to group kmem nothing changes -> you must be root to access. Also if you chmod /dev/mem to 0777 -> you must be root. Perhaps the makers of armbian can change something here.
  19. next problem: runs only as root if not os.getegid() == 0: sys.exit('start script as root')
  20. as the Orangepi One has the same connector as the Orangepi Lite https://linux-sunxi.org/Xunlong_Orange_Pi_One_%26_Lite I supposed it SHOULD run. BUT: there ist an error with from pyGPIO.gpio import gpio, connector, same problem with port instead of connector pi@pi-one:~/pyGPIO$ python Python 2.7.9 (default, Aug 13 2016, 17:56:53) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os, sys >>> from pyGPIO.gpio import gpio, connector Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pyGPIO/gpio/connector/__init__.py", line 5 import < Something > ^ SyntaxError: invalid syntax >>>
  21. Have a look here: https://linux-sunxi.org/Orange_Pi_Zero_Plus_2 the expansion port ist decribed and how to power the board, USB OTG is possible
  22. I have the same problem, need rootless acces to GPIO with python. I use pyH3 from https://github.com/duxingkei33/orangepi_PC_gpio_pyH3 on an Orangepi One
  23. 4 cores: ___ ____ _ ___ / _ \ _ __ __ _ _ __ __ _ ___ | _ \(_) / _ \ _ __ ___ | | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | | | | '_ \ / _ \ | |_| | | | (_| | | | | (_| | __/ | __/| | | |_| | | | | __/ \___/|_| \__,_|_| |_|\__, |\___| |_| |_| \___/|_| |_|\___| |___/ Welcome to ARMBIAN 5.35 user-built Debian GNU/Linux 8 (jessie) 3.4.113-sun8i System load: 0.37 0.24 0.10 Up time: 2 min Memory usage: 10 % of 494MB IP: 192.168.3.157 CPU temp: 41°C Usage of /: 82% of 1.1G Last login: Sat Nov 25 16:49:11 2017 from xxxxs-ubuntu.fritz.box pi@orangepione:~$ uname -a Linux orangepione 3.4.113-sun8i #4 SMP PREEMPT Wed Nov 22 13:45:28 CET 2017 armv7l GNU/Linux pi@orangepione:~$ cat /proc/cpuinfo Processor : ARMv7 Processor rev 5 (v7l) processor : 0 BogoMIPS : 1942.85 processor : 1 BogoMIPS : 1942.85 processor : 2 BogoMIPS : 1942.85 processor : 3 BogoMIPS : 1942.85 Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 Hardware : sun8i Revision : 0000 Serial : 540078678620542709ce pi@orangepione:~$