Catalog / NanoPi Cheat Sheet
NanoPi Cheat Sheet
A comprehensive cheat sheet covering NanoPi single-board computers, their specifications, setup, and common operations.
NanoPi Overview
NanoPi Models
NanoPi NEO |
Ultra-small, low-power, ideal for IoT applications. |
NanoPi NEO2 |
Improved performance over NEO, still compact. |
NanoPi M4 |
Higher performance, suitable for media and desktop use. |
NanoPi R2S |
Dual Gigabit Ethernet ports, designed for routing applications. |
NanoPi 4 |
Powerful board with good memory and speed, for desktop and server purposes. |
Key Features
CPU |
ARM Cortex-A53, Cortex-A72, or similar architectures, depending on the model. |
Memory |
256MB to 4GB DDR3/DDR4 RAM, depending on the model. |
Storage |
MicroSD card slot for OS and data storage. Some models have eMMC. |
Connectivity |
USB, Ethernet (depending on the model), WiFi/Bluetooth (some models). |
GPIO |
Headers for connecting sensors, actuators, and other peripherals. |
Operating Systems
Most NanoPi boards support various Linux distributions, including:
|
Initial Setup
Flashing the OS
sudo dd bs=4M if=image.img of=/dev/sdX conv=fsync
|
First Boot
|
Accessing the NanoPi
Via SSH |
Most distributions enable SSH by default. Find the NanoPi’s IP address and connect using:
Default username/password combinations vary by distribution. |
Via Serial Console |
Connect a USB-to-TTL serial adapter to the NanoPi’s serial pins. Use a terminal program like Example (
|
Common Operations
System Updates
Update the package lists and upgrade installed packages. Ubuntu/Debian:
Arch Linux:
|
Networking
Checking IP Address |
Use
|
Configuring Static IP |
Edit the network configuration file (e.g., Example (
|
GPIO Control
Using `gpio` command |
Many distributions include a Example (Armbian):
|
Using Python (RPi.GPIO) |
The
Example:
|
Troubleshooting
Common Issues
|
Debugging Tips
Serial Console Output |
Connect to the serial console to view boot messages and debug information. This is often the best way to diagnose boot problems. |
LED Indicators |
Check the LEDs on the NanoPi board. They often provide status information, such as power, network activity, and SD card access. |
Checking Logs |
Check system logs for errors, such as
|
Resources
|