NanoPi-2
    >>Nanopi series Comparison list
Quick Start for NanoPi-2

1. Quick Start for NanoPi-2

1.1 What you will need
  • One NanoPi Board
  • microSD Card/TFCard: Class 10 or Above, minimum 8GB SDHC.
  • MicroUSB Cable
  • A Host running Ubuntu(better is Ubuntu 14.04 64 bit system)

2 Make an Installation MicroSD Card

2.1 Maker the card under Windows system
  1. Please get the following files from here: download link
    nanopi2-android-sd4g-hdmi.img.zip : Android image files (HDMI output)
    nanopi2-android-sd4g-lcd.img.zip  : Android image files (LCD output, default image supports S700/S701 LCD with capacitive touch panel) 
    nanopi2-debian-sd4g-hdmi.img.zip  : Debian image files (HDMI output) 
    nanopi2-debian-sd4g-lcd.img.zip  : Debian image files (LCD output, default image supports S700/S701 LCD with capacitive touch panel)
    win32diskimager.rar: Flash Utility
  2. Please uncompress these files. Insert an SD card(at least 8G) to a Windows PC, run the win32diskimager utility as administrator£¬On the utility's main window select your SD card's drive and the image files and click on "write" to start flashing the SD card.
2.2 Maker the card under Linux Destop
  1. Insert your microSD card to your host running Ubuntu and check your SD card's device name.
    dmesg | tail
    Search the messages output by "dmesg" for similar words like "sdc: sdc1 sdc2". If you can find them it means your SD card is recognized as "/dev/sdc". Or you can check that by commanding "cat /proc/partitions".
  2. Flash Android Firmware to MicroSD Card
    git clone https://github.com/friendlyarm/sd-fuse_nanopi2.git
    cd sd-fuse_nanopi2
    su
    ./fusing.sh /dev/sdx
    Notice: replace the /dev/sdx to your MicroSD card inode.

3 Update Image Files in MicroSD Card From PC Host

If you want to make some changes to the image files in your MicroSD card please follow steps below otherwise you can skip this section.
Please insert your MicroSD card to a PC host running LINUX, mount the boot and rootfs sections of the SD card and follow the steps below:

  1. If you want to output your Debian to an LCD you need to change the uImage in the boot section. If the boot section is mounted on "/media/boot" please run these commands:
    cd /media/boot
    rm uImage
    ln -s uImage.lcd uImage
    
    Note: if the image file is for Android you don't need to make these changes because the default output is LCD
  2. If you want to change the Kernel Command Line you can use the "fw_setenv" utility to do it, which is under "sd-fuse_nanopi2/tools". For instance if your LCD is HD101 you can do it this way:
    Check the current Command Line£º
    cd sd-fuse_nanopi2/tools
    ./fw_printenv /dev/sdc | grep bootargs
    Append "lcd=HD101" and then do "fw_setenv" to reset the command line:
    ./fw_setenv /dev/sdc bootargs XXX lcd=HD101
    Attention: The "XXX" should be repalced with original bootargs.
  3. Connect to LCD S700
    If you want to connect your NanoPi2 to our S700 LCD with capacitive touch panel you need to make changes in the "kernel command line" as follows:
    ./fw_setenv /dev/sdc bootargs XXX lcd=S70,128dpi
    
    Parameter ",128dpi" sets the Android's "ro.sf.lcd_density" property£¬By default it is 160.
    When you set this parameter to a new value please make sure the new value is a workable one otherwise it will cause problems in display. Here are some values we tested:
    S700(lcd=S70,128dpi), HD101(lcd=HD101), HD700(lcd=HD700,213dpi)
  4. If you want to use your own kernel you can replace the uImage file with your image file.

4 Run the system

  1. Insert the MicroSD system card into the NanoPi-2, connect the NanoPi2 to an HDMI monitor and a 5V/2A power source the NanoPi2 will be automatically powered on. 
  2. If you can see the blue LED flashing it means your board is working and you will see Android loading on the HDMI monitor. If at the same time you connect your NanoPi2 to a PC running Ubuntu and Minicom via a serial cable you will see system messages output to the PC’s minicom terminal.
    If need password in Debian, the password and user name is "fa" "fa"

5 Play with Debian

5.1 Wireless Connection
  1. After Debian is fully loaded please click on the network icon on top right of the GUI it will automatically search for nearby WiFi sources. Select one source from the list, click on its "Properties", type its password, save, close and then "Connect". If everything is fine your NanoPi2 will be able to connect to a WiFi source
5.2 Setup Wi-Fi AP
  1. You can follow the steps below to setup Wi-Fi AP:
    turn-wifi-into-apmode yes
    Please reboot the system as prompted. By default the AP's name is "nanopi2-wifiap" and the password is 123456789.
  2. Now you are able to find the "nanopi2-wifiap" from a PC host and connect to it. If a connection is a success you will be able to SSH to this NanoPi2 at "192.168.8.1":
    ssh root@192.168.8.1
    The password for it is "fa".
    You can check the WiFi mode via the following command:
    cat /sys/module/bcmdhd/parameters/op_mode
    If the result is "2" it means it is currently working as a WiFi AP.If you want to switch back to the Station mode you can do it this way:
    turn-wifi-into-apmode no
5.3 Bluetooth
  1. Click on the bluetooth icon on top right of the GUI a menu will pop up:
    Make discoverable enables the NanoPi2 to be searched for by other bluetooth devices;
    Devices... opens a search window and searches for nearby bluetooth devices(Note: the "Make discoverable" property needs to be enabled on those nearby devices):
    Send Files to Device...enables the NanoPi2 to send files to another bluetooth device which is a pair of the NanoPi2. 
5.4 Install the Debian software package
  1. We provide the stand Debian jessie, you can run the apt-get to install the software, for the first time, you can udpate the source list as follow command:
    apt-get update
  2. Then you can install the software as follow£¬ such as install the ftp server
    apt-get install vsftpd
    Note: you can change your download server by editting "/etc/apt/sources.list". You can get a complete server list from [1]. You need to select the one with "armhf"

Follow Us: 
Facebook | Google+ | Twitter
Market Mail : market@armdevs.com
Support Mail: support@armdevs.com
NanoPi Online Chat >
Work time: 09:00-18:00
Copyright @ 2014 to 2020 - FriendlyARM NanoPi Team