Linux Development Examples
note
This page reuses the previously prepared X3568 software documentation template. For ibox3568, actual source package names, image names, partition files, tool versions, and board-level configuration should follow the current ibox3568 SDK and release package.
This page keeps common Linux debug commands and development entry points, with unrelated product introductions removed.
Serial Terminal Tools
picocom:
sudo apt-get install picocom
sudo picocom -b 115200 /dev/ttyUSB0
Exit: press Ctrl+a, then press Ctrl+q.
minicom:
sudo apt-get install minicom
sudo minicom -s
Common settings are 115200 8N1, with hardware and software flow control disabled.
Check Serial Device
dmesg | grep ttyUSB
proc Filesystem Queries
Boot Arguments
cat /proc/cmdline
CPU Information
cat /proc/cpuinfo
Memory Information
cat /proc/meminfo
Disk Partitions
cat /proc/partitions
Kernel Version
cat /proc/version
Network Devices
cat /proc/net/dev
Kernel Boot Log
dmesg
cat /proc/kmsg
Check Disk Partition Size
df -h
lsblk
Debug Suggestions
- For driver issues, check
dmesg, the device tree, and the corresponding kernel driver path first; - When a peripheral does not work, check power, reset, clock, I2C/SPI/UART nodes, and pinctrl;
- When flashing fails, first verify the driver version, tool version, loader/maskrom status, and USB cable quality.