HCL:NanoPi K2

Jump to: navigation, search

The FriendlyARM NanoPi K2 is a single-board computer.

Technical data

  • Amlogic S905 SoC
    • 4x ARM Cortex-A53 CPU

Installing the unofficial openSUSE Tumbleweed image without bootloader

This image uses the Tumbleweed kernel and userspace, but you need to manually install the bootloader as outlined below before and after first boot.

  1. Download the image you want (Leap is stable, Tumbleweed is rolling) from here:
    JeOS image
    If the direct links above do not work for you (as we are constantly building new images), please check the general download directory for the images.
  2. As root extract the image onto your SD card (replace sdX with the device name of your SD card).
    WARNING: all previous data on the SD card will be lost. Check first if the device you have selected is really your SD card!
     xzcat [image].raw.xz | dd bs=4M of=/dev/sdX iflag=fullblock oflag=direct; sync
  3. Insert the SD card with the openSUSE image into your NanoPi K2.
  4. Connect the NanoPi K2 to your PC via serial port .
  5. Power on the NanoPi K2.
  6. Ethernet is configured to request an IP via DHCP, check your DHCP server for the NanoPi K2 IP if used.
  7. Have a lot of fun...
Default login is root:linux, works on serial console, via ssh, GUI.

Manual installation

Vendor U-Boot

Mainline U-Boot does not yet contain support for the K2.

git clone https://github.com/friendlyarm/u-boot.git u-boot-k2 -b nanopi-k2-v2015.01
# generate bl30_new.bin
u-boot-k2/fip/blx_fix.sh \
  u-boot-k2/fip/gxb/bl30.bin \
  zero_tmp \
  bl30_zero.bin \
  u-boot-k2/fip/gxb/bl301.bin \
  bl301_zero.bin \
  bl30_new.bin \
# generate fip.bin
u-boot-k2/fip/fip_create \
  --bl30 bl30_new.bin \
  --bl31 u-boot-k2/fip/gxb/bl31.img \
  --bl33 u-boot-k2/build/u-boot.bin \
  --dump \
# generate bl2_new.bin
u-boot-k2/fip/blx_fix.sh \
  u-boot-k2/fip/gxb/bl2_acs.bin \
  zero_tmp \
  bl2_zero.bin \
  u-boot-k2/fip/gxb/bl21.bin \
  bl21_zero.bin \
  bl2_new.bin \
cat bl2_new.bin fip.bin > boot_new.bin
amlbootsig boot_new.bin u-boot.img
dd if=u-boot.img of=/dev/sdX bs=512 seek=1

Vendor kernel

The mainline kernel has no .dts for the K2 yet.


See also