Jump to content

lagerschaden

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by lagerschaden

  1. next problem: runs only as root if not os.getegid() == 0: sys.exit('start script as root')
  2. 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 >>>
  3. 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
  4. 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
  5. 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:~$
  6. I had Armbian_5.30_Orangepione_Debian_jessie_default_3.4.113.img installed before and it boots with 4 cores.
  7. As you can see I installed also the linux-u-boot-next (same line as above): sudo dpkg --force-all -i linux-dtb-next-sunxi_5.35_armhf.deb linux-headers-next-sunxi_5.35_armhf.deb linux-image-next-sunxi_5.35_armhf.deb linux-u-boot-next-orangepione_5.35_armhf.deb first I got the conflict and then I used --force-all to override the conflict ...
  8. also Kernel 4.13.16 uses only one (1) core on the Orangepi-One ___ ____ _ ___ / _ \ _ __ __ _ _ __ __ _ ___ | _ \(_) / _ \ _ __ ___ | | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | | | | '_ \ / _ \ | |_| | | | (_| | | | | (_| | __/ | __/| | | |_| | | | | __/ \___/|_| \__,_|_| |_|\__, |\___| |_| |_| \___/|_| |_|\___| |___/ Welcome to ARMBIAN 5.31 stable Debian GNU/Linux 8 (jessie) 4.13.16-sunxi System load: 0.96 0.36 0.13 Up time: 1 min Memory usage: 11 % of 493MB IP: 192.168.3.156 CPU temp: 40°C Usage of /: 6% of 29G [ General system configuration: armbian-config ] Last login: Sat Nov 25 14:42:16 2017 from xxxxs-ubuntu.fritz.box pi@pi-gf:~$ uname -a Linux pi-gf 4.13.16-sunxi #1 SMP Sat Nov 25 14:21:44 CET 2017 armv7l GNU/Linux pi@pi-gf:~$ cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 11.42 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 Hardware : Allwinner sun8i Family Revision : 0000 Serial : 02c0008193c47201 pi@pi-gf:~$ when installing the new kernel i used sudo dpkg --force-all -i linux-dtb-next-sunxi_5.35_armhf.deb linux-headers-next-sunxi_5.35_armhf.deb linux-image-next-sunxi_5.35_armhf.deb linux-u-boot-next-orangepione_5.35_armhf.deb because there is a conflict linux-u-boot-orangepione-next conflicts with armbian-u-boot linux-u-boot-orangepione-default provides armbian-u-boot and is present and installed. is it a bug or a feature ? L.
  9. I compiled Kernel and U-Boot linux-u-boot-dev-orangepione_5.35_armhf.deb I choosed "U-boot and kernel packages" -> "show a kernel configuration ..." -> "orangepione" -> "dev" Now I will try "next" (mainline)
  10. Today i compiled for my Orange Pi One the kernel 4.11.12-sun8i from the sources. The kernel works with only 1 (one) core. / _ \ _ __ __ _ _ __ __ _ ___ | _ \(_) / _ \ _ __ ___ | | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | | | | '_ \ / _ \ | |_| | | | (_| | | | | (_| | __/ | __/| | | |_| | | | | __/ \___/|_| \__,_|_| |_|\__, |\___| |_| |_| \___/|_| |_|\___| |___/ Welcome to ARMBIAN 5.31 stable Debian GNU/Linux 8 (jessie) 4.11.12-sun8i System load: 1.11 0.26 0.09 Up time: 0 min Memory usage: 10 % of 464MB IP: 192.168.3.156 CPU temp: 43°C Usage of /: 5% of 29G [ General system configuration: armbian-config ] Last login: Fri Nov 24 22:47:42 2017 from xxxxs-ubuntu.fritz.box pi@pi-gf:~$ uname -a Linux pi-gf 4.11.12-sun8i #1 SMP Fri Nov 24 20:16:44 CET 2017 armv7l GNU/Linux pi@pi-gf:~$ cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 5.71 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 Hardware : Allwinner sun8i Family Revision : 0000 Serial : 02c0008193c47201 pi@pi-gf:~$ Also htop show only one core.
  11. I am very nosey, therefore I made a little test: Yesterday I took my Orange Pi One and a SD-Card Exceria by Toshiba and Armbian https://dl.armbian.com/orangepione/Ubuntu_xenial_default.7z and every 10 minutes I switched it off for some seconds and on again for another 10 minutes and off again for some seconds and on again .... (of course I did it not by myself but another SBC via crontab, GPIO, a transistor and a relay). Every time the OS started a little python script did some dummy things and the time was written via network to another computer to see if the OS ist still ok. Now it was running for >25 hours -> 152 x switched off and on and everything ist still ok. I think, that's enough. L.
  12. Hi, it ist well known, that a SD-card can be destroyed when you power-off a Raspberry-Pi without a shutdown. Does the same issue exist with an Orange-Pi (One) ? I want to use an Orange-Pi One headless and without SSH/TTY, only some sensors and LEDs are attached. Tnx L
  13. Now I see clear: I used the Ubuntu_xenial_dev_nightly form https://dl.armbian.com/orangepione/ I'll wait for it Tnx L P.S. The 4.11 makes the CPU temperature much lower than the 3.4, when idle, it is 31°C vs 45°C
  14. pi@pi-one:~$ uname -a Linux pi-one 4.11.12-sun8i #21 SMP Sun Nov 12 00:27:19 CET 2017 armv7l armv7l armv7l GNU/Linux pi@pi-one:~$ sudo h3disp sudo: h3disp: command not found pi@pi-one:~$
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines