October 18, 2016

Image for pcDuino4 Nano

1.8G (or bigger) TF card( Speed class is recommended for Class 6 or higher)

2.TF card reader

3.Debian for pcDuino4 nano

4.Windows tool: Win32DiskImager


1. Make a Bootable SD Card

  • Plug TF Card Reader into Windows PC and open Win32DiskImager as administrator.
  • Select the Image File that you unzip from the downloaded File
  • Select the Device that the PC recognized
  • Click the write button.
  • It will say Write Successful at the end.

Tips: If you only have Linux or Mac OS, how to create a bootable SD card? Only dd command is needed.

 sudo dd if=<image-file>.img of=/dev/<your SD card disk> bs=1M
  • if=should be your downloaded system img file
  • of=should be your micro-SD card.

2. Boot your system

  • Insert this card into your pcDuino4 nano’s BOOT slot
  • Power on (with a 5V\/2A power source).
  • If the green LED is on and the blue LED is blinking this indicates your pcDuino4 nano has successfully booted.


The default of username and password are all: ls

3. Remove Desktop Access via VNC

  • If you want to access the Debian system using VNC, please take the following information:
    • Default Port : 5901
    • Password: ls123456




1. Extend TF Card’s rootfs Section

Resize the rootfs section of the TF card run the following commands on the pcDuino4 Nano’s Debian terminal:

sudo fs_resize

Following the prompt type in “y” to start re-sizing the file system and a second “y” to reboot the pcDuino4 Nano.

2. Ethernet Connection

If the pcDuino4 Nano is connected to a network via Ethernet before it is powered on it will automatically obtain an IP after it is powered up. If it is not connected via Ethernet or its DHCP is not activated obtaining an IP will fail and system will hang on for about 15 to 60 seconds

The pcDuino4 Nano by default doesn’t have a valid MAC address. If the board connects a network successfully it will automatically generates a random MAC in /etc/network/interfaces.d/eth0

Users can change it to a self-defined valid one:vi \/etc\/network\/interfaces.d\/eth0

Here is the content of a sample configuration file:

auto eth0 
allow-hotplug eth0 
iface eth0 inet dhcp 
hwaddress 76:92:d4:85:f3:0f

The hwaddress specifies the MAC address. Here the 76:92:d4:85:f3:0f is a random MAC. We suggest users change it to a valid one. Note: when you reset the MAC please make sure your MAC meets IEEE’s definition otherwise it will cause unexpected issues. After you make your change, save, exit and reboot your board or run the following commands to restart the network:

systemctl restart networking

3. HDMI resolution

Our Debian system’s HDMI resolution is set by a script.bin file in the root directory of the installation TF card’s boot section. By default the resolution is 1080P60. There are multiple script.bin files under that directory for different resolutions. For example if you want to modify the resolution to 720P60 you can use the script-720p-60.bin file to replace the existing one by using the following command:

# in TF card boot partition 
sudo cp script/script-720p-60.bin ./script.bin

4. HDMI Audio Output

Our Debian system’s default audio output is the 3.5mm audio jack. You can turn on the HDMI audio by editting the \/etc\/asound.conf file:

pcm.!default { 
    type hw 
    card 1 
    device 0 
ctl.!default { 
    type hw 
    card 1 

card 0 points to the 3.5mm audio jack and card 1 points to the HDMI audio. You need to save your changes and reboot your system to make your changes take effect.

5. Test GPU

After Debian loads please login from a terminal and run glmark2-es2:


6. USB WiFi

Our Debian system has support for popular USB WiFi drivers. Many USB WiFi modules are plug and play with our system. Here is a list of models we tested;

Pc4 nano USB WIFI.jpg

If you pcDuino4 Nano is connected to a USB WiFi and is powered up you can log into pcDuino4 Nano and run the following command to check if the USB WiFi is recognized. If “wlan0” is listed it indicates your USB WiFi has been recognized:

ifconfig -a

Open the \/etc\/wpa_supplicant\/wpa_supplicant.conf file and append the following lines:


The YourWiFiESSID and YourWiFiPassword need to be replaced with your actual SSID and password. Save, exit and run the following commands to connect to your WiFi router:

ifdown wlan0 
ifup wlan0

If your WiFi password has special characters or you don’t want your password saved as plain text you can use “wpa_passphrase” to generate a psk for your WiFi password. Here is how you can do it:

wpa_passphrase YourWiFiSSID

Following the prompt type in your password and you will get a new password in the \/etc\/wpa_supplicant\/wpa_supplicant.conf file. Now you can replace the existing password in the wlan0 file with the new one.