Jump to content

JonatasPrust

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by JonatasPrust

  1. Hi, Nanopi R1 - Kernel and Armbian version: 4.19.62-sunxi #5.92 I have the following problem: If I put the ethernet cable on the interface, and then turn on the nano pi, the interface receives a valid ip. But the problem is, if I start nanopi without the cable connected, and I connect after system boot, the interface does not receive ip configuration. Configs and logs: /etc/network/interfaces: source /etc/network/interfaces.d/* auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address 10.100.3.1 netmask 255.255.255.0 gateway 10.100.3.1 auto lo iface lo inet loopback up command iptables-restore < /scripts/iptables /scripts/iptables *nat :PREROUTING ACCEPT [120:10027] :INPUT ACCEPT [11:1747] :OUTPUT ACCEPT [24:1848] :POSTROUTING ACCEPT [4:304] -A POSTROUTING -o eth0 -j MASQUERADE COMMIT journalctl -b 0 -u NetworkManager | grep eth0 Mar 25 01:38:29 2-0211 NetworkManager[556]: <info> [1648183109.1115] keyfile: add connection /run/NetworkManager/system-connections/eth0.nmconnection (91ae80f1-5092-4e36-8f48-72f86df06873,"eth0") Mar 25 01:38:29 2-0211 NetworkManager[556]: <info> [1648183109.1178] device (eth0): state change: unavailable -> disconnected (reason 'connection-assumed', sys-iface-state: 'external') Mar 25 01:38:29 2-0211 NetworkManager[556]: <info> [1648183109.1247] device (eth0): Activation: starting connection 'eth0' (91ae80f1-5092-4e36-8f48-72f86df06873) Mar 25 01:38:29 2-0211 NetworkManager[556]: <info> [1648183109.1258] device (eth0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'external') Mar 25 01:38:29 2-0211 NetworkManager[556]: <info> [1648183109.1287] device (eth0): state change: prepare -> config (reason 'none', sys-iface-state: 'external') Mar 25 01:38:29 2-0211 NetworkManager[556]: <info> [1648183109.1309] device (eth0): state change: config -> ip-config (reason 'none', sys-iface-state: 'external') Mar 25 01:38:29 2-0211 NetworkManager[556]: <info> [1648183109.1328] device (eth0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'external') Mar 25 01:38:29 2-0211 NetworkManager[556]: <info> [1648183109.1372] device (eth0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'external') Mar 25 01:38:29 2-0211 NetworkManager[556]: <info> [1648183109.1388] device (eth0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'external') Mar 25 01:38:29 2-0211 NetworkManager[556]: <info> [1648183109.1538] device (eth0): Activation: successful, device activated. Mar 25 01:38:37 2-0211 NetworkManager[556]: <info> [1648183117.8873] device (eth0): carrier: link connected Mar 25 01:39:56 2-0211 NetworkManager[556]: <info> [1648183196.5941] device (eth0): state change: activated -> unavailable (reason 'carrier-changed', sys-iface-state: 'external') Mar 25 01:39:56 2-0211 NetworkManager[556]: <info> [1648183196.7318] device (eth0): carrier: link connected Mar 25 01:39:56 2-0211 NetworkManager[556]: <info> [1648183196.7333] device (eth0): state change: unavailable -> disconnected (reason 'carrier-changed', sys-iface-state: 'external')
  2. Same problem with the image "Suitable for Testing - OrangePI R1 PLUS", then i used a image of "RockPI E", and have booted on UART0. But i dont have suficient knowledge on linux to help on development. Is there any forecast to have a stable version for this card? Thanks
  3. Hello, I am in a project where I need to use armbian on an OrangePi R1 Plus, but I realized that it is not yet available on the site. Any prevision?
  4. Hello, I need to use the UART interface ttyS0 to connect other hardware, so I would like to disable its debug function, removing the console output that is directed to it. I've tried this: I commented the following line in /boot/boot.cmd: #setenv console "both" And compiled: mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr I was not successful, could someone instruct me on how to do what I want?
  5. I use NANOPI R1 in one of my projects. Now I need to develop a board to make a physical watchdog from NANOPI R1 itself and an RTC (the NANOPI R1 RTC does not work). I have two possibilities: One is to use the already integrated UART, or use a USB - I2C converter. Using the UART I would communicate the NANOPI with a 328P microcontroller, and from there I would collect the RTC information (with i2c between 328P and RTC), in addition to sending the frequent information to the 328P to keep the watchdog active. Using the I2C, the RTC would be connected to the I2C BUS and I would do the direct query via NANOPI R1, as well as send the frequent information via I2C to the 328P or ATTINY85 (I can use this CI - it have I2C) to keep the watchdog active. I want an opinion: I would like to know how you would do that? Would it be using I2C or using UART? If they were going to use UART, I need the two ports available on NANOPI R1 (because I already use a Nextion HMI on a UART port). So can i use UART_DBG too? What problems can I face?
  6. After the system update, crontab was able to run the script as root. Now everything is working. Armbian Linux 4.19.62-sunxi
  7. Hi, i get this error when i run the script by crontab. When I run manually, the script runs perfectly. crontab is executed by the command: "crontab -u root -e" To make sure the tasks are performed by the root user, but I still have the following error: hwclock: Cannot access the Hardware Clock via any known method. hwclock: Use the --debug option to see the details of our search for an access method. Erro na sincronização Wed 02 Oct 2019 08:04:11 AM -03 This is the script: #!/bin/bash pingtest=$(ping -c 1 a.ntp.br > /dev/null 2>&1; echo $?); if [[ $pingtest -eq 0 ]]; then systohc=$(/sbin/hwclock -f /dev/rtc1 -w; echo $?); if [[ $systohc -eq 0 ]]; then echo "SINCRONIZADO: SISTEMA PARA RTC" date else echo "Erro na sincronizacao" date fi else hctosys=$(/sbin/hwclock -f /dev/rtc1 -s; echo $?); if [[ $hctosys -eq 0 ]]; then echo "SINCRONIZADO: RTC PARA SISTEMA" date else echo "Erro na sincronização" date fi fi and this is the contab, config by "crontab -u root -e" command: */30 * * * * /bin/bash /scripts/rtc/rtc.sh > /scripts/rtc/rtc.log 2>&1 @reboot /bin/bash /scripts/rtc/rtc.sh > /scripts/rtc/rtc.log 2>&1 Well, i dont understand why i got this error, if i am running the commands as root.
  8. I have a project with "Orange PI PC PLUS" and a Realtek 8153B usb-ethernet adapter. My big problem is that the adapter lights do not come on, even if the rest is working. On windows systems the activity light of the adapter lights up, but in linux no (I tested on armbian 5.60 and ubuntu 18.04). I've successfully installed the linux driver from realtek's website, but the light still does not light up. Module r8152 installed and used for the device.
  9. I would like to disable zram and mount /var/log as tmpfs. In fstab I did not find an entry for /var/log, so I created one with the tmpfs format. Still while giving the command "df" I realized that / var / log is still mounted as zram. What is the way to change or disable zram?
  10. My equipment is an OrangePi PC Plus with ARMBIAN 5.6, packages and system updated. I have seen that the /var/ log directory mounted as zram is reaching its space limit in a few days. To resolve, I edited the /etc/logrotate.d/rsyslog file and put the following: /var/log.hdd/syslog { rotate 1 10M size missingok notifempty delaycompress compress postrotate invoke-rc.d rsyslog rotate> / dev / null endscript } /var/log.hdd/mail.info /var/log.hdd/mail.warn /var/log.hdd/mail.err /var/log.hdd/mail.log /var/log.hdd/daemon.log /var/log.hdd/kern.log /var/log.hdd/auth.log /var/log.hdd/user.log /var/log.hdd/lpr.log /var/log.hdd/cron.log /var/log.hdd/debug /var/log.hdd/messages { rotate 1 size 1M missingok notifempty compress delaycompress sharedscripts postrotate invoke-rc.d rsyslog rotate> / dev / null endscript } First, i manually executed logrotate to test, and nothing happened in /var/log. I tried editing the logrotate file to change the /var/log.hdd directory to /var/log but when the system is restarted, it returns to log.hdd. I want to know how to solve this.
  11. Hello, I am developing a project that will use the ethernet module ENC28J60 on orangepi pc plus, but I do not know how to configure armbian to enable using the module. Searching the internet I just found solutions for raspberry. I have already enabled the spi-spidev option using the armbian-config tool. What should I do now? Thanks.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines