Superkoning

Members
  • Content Count

    28
  • Joined

  • Last visited

 Content Type 

Forums

Member Map

Store

Crowdfunding

Raffles

Applications

Everything posted by Superkoning

  1. I bought a new 32GB SD-card, put Armbian Bionic on it, and succesfully upgraded to Cosmic. FWIW: $ grep -irn cosmic /etc/apt/* | grep -vi "#" /etc/apt/sources.list:1:deb http://ports.ubuntu.com/ cosmic main restricted universe multiverse /etc/apt/sources.list:4:deb http://ports.ubuntu.com/ cosmic-security main restricted universe multiverse /etc/apt/sources.list:7:deb http://ports.ubuntu.com/ cosmic-updates main restricted universe multiverse /etc/apt/sources.list:10:deb http://ports.ubuntu.com/ cosmic-backports main restricted universe multiverse /etc/apt/sources.list.distUpgrade:1:deb http://ports.ubuntu.com/ cosmic main restricted universe multiverse /etc/apt/sources.list.distUpgrade:4:deb http://ports.ubuntu.com/ cosmic-security main restricted universe multiverse /etc/apt/sources.list.distUpgrade:7:deb http://ports.ubuntu.com/ cosmic-updates main restricted universe multiverse /etc/apt/sources.list.distUpgrade:10:deb http://ports.ubuntu.com/ cosmic-backports main restricted universe multiverse and lines still with Bionic (otherwise I got errors): $ grep -irn bionic /etc/apt/* | grep -vi "#" /etc/apt/sources.list.d/armbian.list:1:deb http://apt.armbian.com bionic main bionic-utils bionic-desktop /etc/apt/sources.list.d/armbian.list.distUpgrade:1:deb http://apt.armbian.com bionic main bionic-utils bionic-desktop sander@cubox:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.10 Release: 18.10 Codename: cosmic And this is what I wanted to achieve: sander@cubox:~$ openssl version OpenSSL 1.1.1 11 Sep 2018
  2. I don't want X to start (on my Armbian Ubuntu), so in that file, I now have NODM_ENABLED=false ... and X does not start. Great.
  3. On my Cubox, can I upgrade Armbian Bionic to Cosmic? Is that going to work? I'm not using any GUI / HDMI stuff, so that is not relevant for me Reason of my question: I want OpenSSL 1.1.1 (with TLS1.3), which is a part of Cosmic (and not of Bionic).
  4. What if you issue ethtool -s eth0 speed 100 duplex full
  5. OK ... I've now connected the Cubox directly to my Genexis fiber router (instead of the Chinese GigE switch).
  6. This is weird: after a few reboots, I get above 100 Mbps speeds on my Cubox, and ethtool says the interface is at 1000 Mbps. Weird, $ sudo ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: Symmetric Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: Symmetric Advertised auto-negotiation: Yes Link partner advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Link partner advertised pause frame use: Symmetric Link partner advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: MII PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: d Wake-on: d Link detected: yes
  7. Ah, I found a workaround: root@cubox:~# ethtool -s eth0 speed 100 duplex full root@cubox:~# ... and now I have (Fast) Ethernet. I yet have to find a way to make this permanent. EDIT: I made it permanent based on this instruction: https://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html ... changing ETHTOOL="/usr/sbin/ethtool" to ETHTOOL="sbin/ethtool" History shows: sudo nano /etc/init.d/100Mbs sudo chmod +x /etc/init.d/100Mbs sudo update-rc.d 100Mbs defaults sudo /etc/init.d/100Mbs start with in /etc/init.d/100Mbs : #!/bin/sh ETHTOOL="/sbin/ethtool" DEV="eth0" SPEED="100 duplex full" case "$1" in start) echo -n "Setting eth0 speed 100 duplex full..."; $ETHTOOL -s $DEV speed $SPEED; echo " done.";; stop) ;; esac exit 0
  8. I installed Armbian_5.59_Cubox-i_Debian_stretch_next_4.14.66 on my Cubox-i. Boots nicely, but ethernet is not working. The ethernet cable/connection is working, because the cable does work via and ethernet-to-usb connector to the same cubox. EDIT: Oh, I must say that ethernet-to-usb is fast etnernet, not GigE /EDIT Dmesg included. Plus dmesg | grep network stuff. Tips how to proceed? root@cubox:~# cat dmesg.cubox.no-eth.txt | grep -i -e eth -e netw [ 0.793426] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator [ 0.806213] fec 2188000.ethernet eth0: registered PHC device 0 [ 10.900568] Atheros 8035 ethernet 2188000.ethernet-1:00: attached PHY driver [Atheros 8035 ethernet] (mii_bus:phy_addr=2188000.ethernet-1:00, irq=POLL) [ 10.900651] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 13.984996] fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 13.985019] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready dmesg.cubox.no-eth.txt
  9. $ apt search usbmount Sorting... Done Full Text Search... Done usbmount/xenial,xenial,now 0.0.22 all [installed] automatically mount and unmount USB mass storage devices and sudo apt-get install usbmount HTH
  10. Hey tkaiser ... you have a nice parquet floor! And thanks for the review ... it looks like a nice board.
  11. root's crontab: * * * * * /root/green-on-and-off.sh with that script being: for i in `seq 10` do echo 0 > /sys/class/leds/nanopi:green:pwr/brightness sleep 0.2 echo 1 > /sys/class/leds/nanopi:green:pwr/brightness sleep 0.2 done Result: green LED is always on, but flashes off/on 10 times each minute. That's a good sign of life for me.
  12. Wow ... it works! Thank you The blue LED: root@nanopineo2:~# echo 1 > /sys/class/leds/nanopi:blue:status/brightness root@nanopineo2:~# echo 0 > /sys/class/leds/nanopi:blue:status/brightness The green LED root@nanopineo2:~# echo 0 > /sys/class/leds/nanopi:green:pwr/brightness root@nanopineo2:~# echo 1 > /sys/class/leds/nanopi:green:pwr/brightness
  13. OK, thanks, I will try ... as soon as I get my Neo2 back to life ... ;-)
  14. Sometimes it's unclear if my Nanopi NEO2 is still running, or fully locked up / FUBAR. Ping and SSH give no result. As there is no HDMI, I have no way to check if it's still there. So I was thinking: can I let the green LED flash each x seconds as a sign of life? Quote from Igor: "Both are accessible via sysfs, green is configurable while blue is not lit and reacting to anything. ". So a crontab script that writes something to /sys/ <LED> ... ? Feedback appreciated.
  15. This is a FYI: My armbian did not automount my USB-disk. Possbile reason "By default, disk drives do not auto-mount in Ubuntu Server Edition.". Anyway: I solved it with usbmount: First install usbmount. Then, in /etc/usbmount/usbmount.conf change the line #MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime" to MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime,user,umask=0000" to make it writeable for all users. HTH
  16. I have the same on my NanoPi NEO2: lockup with "make -j4". No problems with "make -j1" (=only use one core). Can you try if that is the same on your system?
  17. Wow ... I just discovered "nmtui" to configure Wifi from the CLI / ncurses. No more difficult file editing for Wifi. Nice! nmtui -> "Activate a connection", then select the Wifi network you want to connect to, fill out the password, and you're done. After configuring, the settings appear in /etc/NetworkManager/system-connections/ Only after finding 'nmtui', I found this page https://docs.armbian.com/User-Guide_Getting-Started/#how-to-connect-to-wireless Hope this helps others.
  18. It says "File not found /boot/dtb/allwinner/sun50i-h5-nanopi-neo-plus2.dtb" ... so did you check if that files exists?
  19. In someone says "the USB socket closer to the edge (USBN1) is not visible, even with overlays" ... so ... same same?
  20. FYI & FWIW: Howto find your NanoPi NEO2 Your NanoPi NEO2 is connected to your LAN, but how to find it? What is the IP address? Here are my methods: Via bonjour (Ubuntu to Ubuntu): ssh nanopineo2.local. Example: $ ssh nanopineo2.local. sander@nanopineo2.local.'s password: _ _ ____ _ _ _ ____ | \ | | __ _ _ __ ___ | _ \(_) | \ | | ___ ___ |___ \ | \| |/ _` | '_ \ / _ \| |_) | | | \| |/ _ \/ _ \ __) | | |\ | (_| | | | | (_) | __/| | | |\ | __/ (_) | / __/ |_| \_|\__,_|_| |_|\___/|_| |_| |_| \_|\___|\___/ |_____| Welcome to ARMBIAN 5.32.170704 nightly Ubuntu 16.04.3 LTS 4.11.8-sun50iw2 Scan all devices (IP + MAC): $ sudo arp-scan --localnet Interface: wlp2s0, datalink type: EN10MB (Ethernet) Starting arp-scan 1.9.5 with 256 hosts (https://github.com/royhills/arp-scan) 192.168.0.1 64:d1:a3:03:8a:01 Sitecom Europe BV 192.168.0.106 02:01:9c:45:40:2d (Unknown: locally administered) 192.168.0.110 00:13:77:fa:63:e3 Samsung Electronics Co.,Ltd 192.168.0.102 ec:1f:72:59:48:b2 SAMSUNG ELECTRO-MECHANICS(THAILAND) 4 packets received by filter, 0 packets dropped by kernel Ending arp-scan 1.9.5: 256 hosts scanned in 2.527 seconds (101.31 hosts/sec). 4 responded Compare with when the NanoPi is off / unconnected, and you know your device. In my case it's 192.168.0.106 Hope this helps.
  21. I've put both my swap file and my git project on the USB drive. I deactivated the swapfile on the SD card. And still my system stalls with a "make -j4". I can't see anything special in the monitoring output: - swap is only used for 14MB - cpu is 98% idle (!), whereas cc1plus processes are using cpu cores for 70-90% each - kswap is at 26% cpu usage ... that might be high za 26 aug 2017 7:21:12 UTC 07:21:12 up 1 day, 18:45, 2 users, load average: 2,09, 1,50, 1,02 37672 total used free shared buff/cache available Mem: 483 426 6 1 50 33 Swap: 1023 14 1009 top - 07:21:12 up 1 day, 18:45, 2 users, load average: 2,09, 1,50, 1,02 Tasks: 125 total, 5 running, 120 sleeping, 0 stopped, 0 zombie %Cpu(s): 0,1 us, 0,2 sy, 0,0 ni, 98,9 id, 0,7 wa, 0,0 hi, 0,0 si, 0,0 st KiB Mem : 495440 total, 7208 free, 450112 used, 38120 buff/cache KiB Swap: 1048572 total, 1033972 free, 14600 used. 20772 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 30720 sander 20 0 135260 116048 10588 R 90,0 23,4 0:06.45 cc1plus 30721 sander 20 0 133224 115304 10764 R 90,0 23,3 0:06.44 cc1plus 30722 sander 20 0 131196 112388 10748 R 80,0 22,7 0:06.19 cc1plus 30719 sander 20 0 133228 115736 10720 R 75,0 23,4 0:06.41 cc1plus 94 root 20 0 0 0 0 S 25,0 0,0 14:22.82 kswapd0 30763 sander 20 0 7352 3108 2648 R 10,0 0,6 0:00.04 top 8 root 20 0 0 0 0 S 5,0 0,0 0:02.97 rcu_sched PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 94 root 20 0 0 0 0 R 26,3 0,0 14:22.87 kswapd0
  22. Update from my side: With the "stress" command starting a lot of CPU processes, I can NOT get a lockup; CPU load very high, but it keeps working. So not a CPU problem after all? So my next guess: a disk problem. As a first test, I disabled my swap space. A new "make -j4" did NOT result in a lock-up, but in "virtual memory exhausted: Cannot allocate memory". Maybe that's better than a lockup ... :-) To be continued.
  23. I tried that, and re-tested, and it looked a bit better, but it seems the problem is different than I described: the NEO2 is still alive, it seems. Instead of a print each second, it now prints once somewhere in x minutes. 'uptime' shows a load aka waiting queue of 32 processes. The NEO2 is still ping-able (1-2 ms). But a new ssh connection times out. So extremely overloaded, but still alive So not a PSU problem, I would say? di 22 aug 2017 17:43:42 UTC 17:43:47 up 24 min, 2 users, load average: 6,10, 5,01, 2,51 30523 di 22 aug 2017 17:43:56 UTC 17:44:01 up 25 min, 2 users, load average: 6,14, 5,07, 2,58 30281 di 22 aug 2017 17:44:07 UTC 17:44:12 up 25 min, 2 users, load average: 6,12, 5,10, 2,61 30402 di 22 aug 2017 17:44:22 UTC 17:53:42 up 35 min, 2 users, load average: 15,02, 12,76, 7,83 33310 di 22 aug 2017 18:03:55 UTC 18:08:01 up 49 min, 2 users, load average: 20,89, 19,22, 14,30 31129 di 22 aug 2017 18:08:09 UTC 18:08:20 up 49 min, 2 users, load average: 20,04, 19,20, 14,51 31250 di 22 aug 2017 18:10:22 UTC 18:20:03 up 1:01, 2 users, load average: 24,44, 23,30, 19,40 31129 di 22 aug 2017 18:27:27 UTC 18:31:13 up 1:12, 2 users, load average: 26,97, 26,43, 22,89 33067 di 22 aug 2017 18:40:02 UTC
  24. Hi, When I put a heavy load on my NanoPi NEO2, it locks up. The ethernet light keeps flashing, so there is still something alive? After a power reset, the NEO2 works again. I've already put a CPU fan on my CPU. CPU temp is at 25 degrees Celsius in rest, and goes up to 37 degrees Celsius under the heavy load. The heavy load is a "make -j4" of a C source code project Tips how to solve this? sander@nanopineo2:~$ while true; do date ; uptime ; cat /etc/armbianmonitor/datasources/soctemp; sleep 2; done | tee mijn-log.txt Tue Aug 22 11:46:37 UTC 2017 11:46:37 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28342 Tue Aug 22 11:46:39 UTC 2017 11:46:39 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28584 Tue Aug 22 11:46:41 UTC 2017 11:46:41 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28463 Tue Aug 22 11:46:43 UTC 2017 11:46:43 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28705 Tue Aug 22 11:46:45 UTC 2017 11:46:45 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28827 Tue Aug 22 11:46:47 UTC 2017 11:46:47 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28463 Tue Aug 22 11:46:49 UTC 2017 11:46:49 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 30281 Tue Aug 22 11:46:51 UTC 2017 11:46:51 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28584 Tue Aug 22 11:46:53 UTC 2017 11:46:53 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 30402 Tue Aug 22 11:46:55 UTC 2017 11:46:55 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28827 Tue Aug 22 11:46:57 UTC 2017 11:46:57 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28705 Tue Aug 22 11:46:59 UTC 2017 11:46:59 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28705 Tue Aug 22 11:47:01 UTC 2017 11:47:01 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28463 Tue Aug 22 11:47:03 UTC 2017 11:47:03 up 5:24, 2 users, load average: 0.00, 0.00, 0.00 28342 Tue Aug 22 11:47:05 UTC 2017 11:47:05 up 5:25, 2 users, load average: 0.00, 0.00, 0.00 29917 Tue Aug 22 11:47:07 UTC 2017 11:47:07 up 5:25, 2 users, load average: 0.08, 0.02, 0.01 29069 Tue Aug 22 11:47:09 UTC 2017 11:47:09 up 5:25, 2 users, load average: 0.08, 0.02, 0.01 33431 Tue Aug 22 11:47:11 UTC 2017 11:47:11 up 5:25, 2 users, load average: 0.47, 0.10, 0.03 36945 Tue Aug 22 11:47:13 UTC 2017 11:47:14 up 5:25, 2 users, load average: 0.47, 0.10, 0.03 37187 Tue Aug 22 11:47:25 UTC 2017 ... and then nothing more