The debug UART0 serial port can be used for initial configuration and debugging purposes when doing programming and testing. There is a simple shell provided. The three categories of commands are: run-time, SPI flash and debugging.
DS3231
2021/01/17 14:43:06
SSD1306 (8,21)
MX25L1605D, sector size 4096, 2097152 bytes
Detected MX25L1605D with sector size 4096 total 2097152 bytes
[V0.0] Orange Pi Zero Compiled on Jan 17 2021 at 14:42:46
SSD1306 (8,21)
Network
Hostname : allwinner_2C028E
If : 1: eth0
Inet : 192.168.2.142/24
Netmask : 255.255.255.0
Gateway : 192.168.2.1
Broadcast : 192.168.2.255
Mac : 02:42:1c:2c:02:8e
Mode : D
NTP v4 Client
Server : 192.168.2.120:123
Status : 0
UTC offset : 3600 (seconds)
Set RTC from System Clock
Sun Jan 17 14:43:11 2021
opi> ?
http://www.orangepi-dmx.org/orange-pi-dmx512-rdm/uart0-shell
Run-time commands: reboot, info, set, get, dhcp, date, hwclock
Example:
opi> info
[V0.0] Orange Pi Zero Compiled on Jan 17 2021 at 14:53:27
Core Temperature: 46 <90>
Uptime: 59
Hostname: allwinner_2C028E
IP 192.168.2.142/24 D
opi> set ip 192.168.2.250
SPI flash commands (reboot needed for being active):
Syntax:
set <filename without ".txt"> <property>=<value>
get <filename without ".txt"> <property>
Example:
opi> set network ntp_server=192.168.2.110
Stored
opi> get network ntp_server
192.168.2.110
Debug commands (code must be compiled without define NDEBUG): i2cdetect, dump, mem, ntp, gps
Syntax:
Example:
opi> i2cdetect
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- 21 -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
opi> dump linker
memmap
__ram_start = 0x40000000
__data_start = 0x400179e8
__data_end = 0x40017a44
__bss_start = 0x40018000
__bss_end = 0x4003a5bc
__stack_start = 0x40300000
__und_stack_top = 0x40308000
__abt_stack_top = 0x40310000
__fiq_stack_top = 0x40318000
__irq_stack_top = 0x40320000
__svc_stack_top = 0x403a0000
__sys_stack_top = 0x403a8000
__svc_stack_top_core1 = 0x403b8000
__svc_stack_top_core2 = 0x403c8000
__svc_stack_top_core3 = 0x403d8000
__heap_start = 0x40500000
heap_low = 0x40500000
heap_top = 0x41000000
__ram_end = 0x41000000