Professional Documents
Culture Documents
Log Thiet
Log Thiet
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
* Documentation: http://www.orangepi.org/
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~# vim /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
#source /etc/network/interfaces.d/
# INTERFACE SETTINGS lo
auto lo
iface lo inet loopback
In: serial
Out: serial
Err: serial
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
USB3: USB EHCI 1.00
USB4: USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
scanning bus 4 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 2 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
3700 bytes read in 2 ms (1.8 MiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
86 bytes read in 3 ms (27.3 KiB/s)
5876450 bytes read in 280 ms (20 MiB/s)
7745288 bytes read in 369 ms (20 MiB/s)
Found mainline kernel configuration
28986 bytes read in 6 ms (4.6 MiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5876386 Bytes = 5.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
EHCI failed to shut down host controller.
Loading Ramdisk to 49a65000, end 49fffaa2 ... OK
Loading Device Tree to 499f5000, end 49a64fff ... OK
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~# ifconfig
enxc0742bffa0aa Link encap:Ethernet HWaddr c0:74:2b:ff:a0:aa
inet6 addr: fe80::149b:f8b6:c678:3a33/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1935 (1.9 KB) TX bytes:5246 (5.2 KB)
# INTERFACE SETTINGS lo
source-directory /etc/network/interfaces.d
#source /etc/network/interfaces.d/
# INTERFACE SETTINGS lo
auto lo
iface lo inet loopback
# INTERFACE SETTINGS lo
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
#source /etc/network/interfaces.d/
# INTERFACE SETTINGS lo
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
#source /etc/network/interfaces.d/
# INTERFACE SETTINGS lo
auto lo
iface lo inet loopback
In: serial
Out: serial
Err: serial
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
USB3: USB EHCI 1.00
USB4: USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
scanning bus 4 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 2 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
3700 bytes read in 2 ms (1.8 MiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
86 bytes read in 3 ms (27.3 KiB/s)
5876450 bytes read in 281 ms (19.9 MiB/s)
7745288 bytes read in 369 ms (20 MiB/s)
Found mainline kernel configuration
28986 bytes read in 7 ms (3.9 MiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5876386 Bytes = 5.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
EHCI failed to shut down host controller.
Loading Ramdisk to 49a65000, end 49fffaa2 ... OK
Loading Device Tree to 499f5000, end 49a64fff ... OK
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
* Documentation: http://www.orangepi.org/
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~# vim /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# INTERFACE SETTINGS lo
auto lo
iface lo inet loopback
In: serial
Out: serial
Err: serial
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
USB3: USB EHCI 1.00
USB4: USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
scanning bus 4 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 2 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
3700 bytes read in 2 ms (1.8 MiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
86 bytes read in 3 ms (27.3 KiB/s)
5876450 bytes read in 281 ms (19.9 MiB/s)
7745288 bytes read in 369 ms (20 MiB/s)
Found mainline kernel configuration
28986 bytes read in 7 ms (3.9 MiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5876386 Bytes = 5.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
EHCI failed to shut down host controller.
Loading Ramdisk to 49a65000, end 49fffaa2 ... OK
Loading Device Tree to 499f5000, end 49a64fff ... OK
rootgepir1 login:
Password:
Last login: Sat Apr 6 07:09:12 UTC 2024 on ttyS0
* Documentation: http://www.orangepi.org/
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~# ifconfig
enxc0742bffa0aa Link encap:Ethernet HWaddr c0:74:2b:ff:a0:aa
UP BROADCAST MULTICAST MTU:1500 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)
root@orangepir1:~# ls /sys/class/net/
enxc0742bffa0aa eth0 lo tailscale0 wlan0
root@orangepir1:~# ls /etc/udev/
hwdb.d/ rules.d/ udev.conf
root@orangepir1:~# ls /etc/udev/rules.d/
70-persistent-net.rules
root@orangepir1:~# vim /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c0:74:2b:ff:96:cc
4", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~# ifconfig
enxc0742bffa0aa Link encap:Ethernet HWaddr c0:74:2b:ff:a0:aa
UP BROADCAST MULTICAST MTU:1500 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)
# INTERFACE SETTINGS lo
auto lo
iface lo inet loopback
In: serial
Out: serial
Err: serial
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
USB3: USB EHCI 1.00
USB4: USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
scanning bus 4 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 2 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
3700 bytes read in 2 ms (1.8 MiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
86 bytes read in 3 ms (27.3 KiB/s)
5876450 bytes read in 281 ms (19.9 MiB/s)
7745288 bytes read in 369 ms (20 MiB/s)
Found mainline kernel configuration
28986 bytes read in 7 ms (3.9 MiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5876386 Bytes = 5.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
EHCI failed to shut down host controller.
Loading Ramdisk to 49a65000, end 49fffaa2 ... OK
Loading Device Tree to 499f5000, end 49a64fff ... OK
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
* Documentation: http://www.orangepi.org/
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~# vim /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c0:74:2b:ff:96:cc
4", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~# ifconfig
enxc0742bffa0aa Link encap:Ethernet HWaddr c0:74:2b:ff:a0:aa
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 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)
In: serial
Out: serial
Err: serial
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
USB3: USB EHCI 1.00
USB4: USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
scanning bus 4 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 2 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
3700 bytes read in 2 ms (1.8 MiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
86 bytes read in 3 ms (27.3 KiB/s)
5876450 bytes read in 281 ms (19.9 MiB/s)
7745288 bytes read in 369 ms (20 MiB/s)
Found mainline kernel configuration
28986 bytes read in 7 ms (3.9 MiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5876386 Bytes = 5.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
EHCI failed to shut down host controller.
Loading Ramdisk to 49a65000, end 49fffaa2 ... OK
Loading Device Tree to 499f5000, end 49a64fff ... OK
Login incorrect
orangepir1 login: root^H^H^H^H^H^H^C[ OK ] Stopped Serial Getty on ttyS0.
[ OK ] Started Serial Getty on ttyS0.
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
orangepir1 login:
Ubuntu 16.04.7 LTS orangepir1 ttyS0
* Documentation: http://www.orangepi.org/
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~# ping 192.168.0.15
PING 192.168.0.15 (192.168.0.15) 56(84) bytes of data.
From 192.168.0.100 icmp_seq=19 Destination Host Unreachable
From 192.168.0.100 icmp_seq=20 Destination Host Unreachable
From 192.168.0.100 icmp_seq=21 Destination Host Unreachable
From 192.168.0.100 icmp_seq=22 Destination Host Unreachable
From 192.168.0.100 icmp_seq=23 Destination Host Unreachable
^C
--- 192.168.0.15 ping statistics ---
25 packets transmitted, 0 received, +5 errors, 100% packet loss, time 24566ms
pipe 4
root@orangepir1:~# ^C
root@orangepir1:~# ^C
root@orangepir1:~# ping 192.168.0.15
PING 192.168.0.15 (192.168.0.15) 56(84) bytes of data.
From 192.168.0.100 icmp_seq=1 Destination Host Unreachable
From 192.168.0.100 icmp_seq=2 Destination Host Unreachable
From 192.168.0.100 icmp_seq=3 Destination Host Unreachable
From 192.168.0.100 icmp_seq=4 Destination Host Unreachable
From 192.168.0.100 icmp_seq=5 Destination Host Unreachable
From 192.168.0.100 icmp_seq=9 Destination Host Unreachable
^C
--- 192.168.0.15 ping statistics ---
13 packets transmitted, 0 received, +6 errors, 100% packet loss, time 12303ms
pipe 4
^Xroot@orangepir1:~# ^C
root@orangepir1:~# ^C
root@orangepir1:~# ls
h_gateway i2c.c minicom.log wiringOP
i2c midware.tar.gz modbus_tcp workspace
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~# cd workspace/
iot_master/ lib/ lib.tar.gz
root@orangepir1:~# cd workspace/iot_master/
root@orangepir1:~/workspace/iot_master# ls
In: serial
Out: serial
Err: serial
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
USB3: USB EHCI 1.00
USB4: USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
scanning bus 4 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 2 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
3700 bytes read in 2 ms (1.8 MiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
86 bytes read in 3 ms (27.3 KiB/s)
5876450 bytes read in 280 ms (20 MiB/s)
7745288 bytes read in 369 ms (20 MiB/s)
Found mainline kernel configuration
28986 bytes read in 6 ms (4.6 MiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5876386 Bytes = 5.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
EHCI failed to shut down host controller.
Loading Ramdisk to 49a65000, end 49fffaa2 ... OK
Loading Device Tree to 499f5000, end 49a64fff ... OK
rootgepir1 login:
Password:
Last login: Sat Apr 6 07:08:18 UTC 2024 on ttyS0
___ ____ _ ____ _
/ _ \ _ __ __ _ _ __ __ _ ___ | _ \(_) | _ \/ |
| | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | |_) | |
| |_| | | | (_| | | | | (_| | __/ | __/| | | _ <| |
\___/|_| \__,_|_| |_|\__, |\___| |_| |_| |_| \_\_|
|___/
* Documentation: http://www.orangepi.org/
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~#
root@orangepir1:~# vim /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# INTERFACE SETTINGS lo
auto lo
iface lo inet loopback
In: serial
Out: serial
Err: serial
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
USB3: USB EHCI 1.00
USB4: USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
scanning bus 4 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 2 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
3700 bytes read in 2 ms (1.8 MiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
86 bytes read in 3 ms (27.3 KiB/s)
5876450 bytes read in 280 ms (20 MiB/s)
7745288 bytes read in 369 ms (20 MiB/s)
Found mainline kernel configuration
28986 bytes read in 6 ms (4.6 MiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5876386 Bytes = 5.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
EHCI failed to shut down host controller.
Loading Ramdisk to 49a65000, end 49fffaa2 ... OK
Loading Device Tree to 499f5000, end 49a64fff ... OK
orangepir1 login: