# ifconfig -a lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) usb0 Link encap:Ethernet HWaddr 1A:10:F0:BC:2F:70 inet addr:172.32.0.93 Bcast:172.32.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:81 errors:0 dropped:62 overruns:0 frame:0 TX packets:22 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11863 (11.5 KiB) TX bytes:3694 (3.6 KiB)
$ route add default gw 172.32.0.100 $ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 172.32.0.100 0.0.0.0 UG 0 0 0 usb0 172.32.0.0 * 255.255.0.0 U 0 0 0 usb0 $ ls -l /etc/resolv.conf lrwxrwxrwx 1 1000 1000 18 Oct 16 2023 /etc/resolv.conf -> ../tmp/resolv.conf $ echo "nameserver 8.8.8.8" >> /etc/resolv.conf $ cat /etc/resolv.conf nameserver 8.8.8.8
from adafruit_platformdetect import Detector detector = Detector() print("Chip id: ", detector.chip.id) print("Board id: ", detector.board.id)
$ python3 ./platformdetect.py Chip id: RV1103 Board id: LUCKFOX_PICO_MINI