diff --git a/README.md b/README.md index 17a5937..fba1315 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,116 @@ Kernel will be added as it is a WiP, ideal for testing, developing and checking * **v2 is Kernel 5.13.1** Mainline Kernel (stable kernel). - + + +## Instructions + +The current setup for the OS image is: + +* eth0 as DHCP (WAN) +* eth1 (R8169) renamed to enp1s0 and static IP: 192.168.254.199 +* No iptables created for the router +* Kernel is conservative, 1.8GHz / 1.4GHz and can be set to 2.0GHz / 1.5GHz +* 8GB SD size minimal. +* all the build tools are installed +* ssh installed, use ssh ubuntu@192.168.254.199 or ssh ubuntu@IP_FROM_DHCP_WAN + +**Credentials** + +user / pass: ubuntu / ubuntu + +**Network** + +Netplan is not active, and you have to edit the file /etc/network/interfaces (with linux) to change the settings: + + ubuntu@192.168.254.199's password: + Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.13.1 aarch64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/advantage + Last login: Mon Jul 12 23:26:53 2021 from 192.168.254.253 + ubuntu@nanopi-r4s:~$ ifconfig + enp1s0: flags=4099 mtu 1500 + inet 192.168.254.199 netmask 255.255.0.0 broadcast 192.168.255.255 + ether de:68:6e:ce:06:bf txqueuelen 1000 (Ethernet) + RX packets 96 bytes 13677 (13.6 KB) + RX errors 0 dropped 1 overruns 0 frame 0 + TX packets 35 bytes 5587 (5.5 KB) + TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 + + eth0: flags=4099 mtu 1500 + ether 62:0f:e5:4f:d8:f8 txqueuelen 1000 (Ethernet) + RX packets 0 bytes 0 (0.0 B) + RX errors 0 dropped 0 overruns 0 frame 0 + TX packets 0 bytes 0 (0.0 B) + TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 + device interrupt 31 + + lo: flags=73 mtu 65536 + inet 127.0.0.1 netmask 255.0.0.0 + inet6 ::1 prefixlen 128 scopeid 0x10 + loop txqueuelen 1000 (Local Loopback) + RX packets 320 bytes 22960 (22.9 KB) + RX errors 0 dropped 0 overruns 0 frame 0 + TX packets 320 bytes 22960 (22.9 KB) + TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 + + ubuntu@nanopi-r4s:~$ route + Kernel IP routing table + Destination Gateway Genmask Flags Metric Ref Use Iface + default _gateway 0.0.0.0 UG 0 0 0 enp1s0 + 192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 enp1s0 + ubuntu@nanopi-r4s:~$ cat /etc/network/interfaces + # interfaces(5) file used by ifup(8) and ifdown(8) + auto lo + iface lo inet loopback + + #auto eth0 + allow-hotplug eth0 + iface eth0 inet dhcp + + ## eth1 renamed enp1s0 + #allow-hotplug enp1s0 + auto enp1s0 + #iface enp1s0 inet dhcp + iface enp1s0 inet static + address 192.168.254.199 + netmask 255.255.0.0 + broadcast 192.168.255.255 + gateway 192.168.254.254 + dns-nameservers 8.8.8.8 8.8.4.4 + + ###auto wlan0 + #allow-hotplug wlan0 + #iface wlan0 inet dhcp + wpa-ssid "FIB-5G" + wpa-psk "Pw" + ###address 192.168.254.55 + ###netmask 255.255.0.0 + ###gateway 192.168.254.254 + ###dns-nameservers 8.8.8.8 8.8.4.4 + ######wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf + ### Disable power saving on compatible chipsets (prevents SSH/connection dropouts over WiFi) + ###wireless-mode Managed + #wireless-power off + + ubuntu@nanopi-r4s:~$ + +**Flashing the Image** + +You need a linux box to burn your SD CARD. +Download the files and find the device name for your SD CARD after is inserted: + + dmesg|tail + [270176.904124] sd 6:0:0:0: [sdd] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB) + [270176.938132] sdd: sdd1 sdd2 + +Burn the Image file like this (taken from the above info): + + ./flash_mainline_sdcard.sh /dev/sdd + +If you have an embedded sd card reader, look for /dev/mmcblkN where N is your sd card number ## Releases