Other OS

HiKey Boot Ubuntu Core from SD card

1 464
Snappy Ubuntu Core is inside SD card,but the bootloader for HiKey needed put in EMMC,so we need flash emmc first and then sd card.

1. Preparation
HiKey board 1 PCS
Power adapter 1 PCS
8GB SD card 1 PCS
ubuntu 64bit host computer,and also have fastboot environment configuration(Please refer to https://github.com/96boards/docu ... on/LinuxFastboot.md Step1)

2. Download the snappy ubuntu core image:http://www.lemaker.org/product-hikey-download-54.html
Extract the tar pakage, we can get:
  • fip.bin
  • hikey-snappy.img
  • hisi-idt.py
  • l-loader.bin
  • nvme.img
  • ptable-linux.img
  • writable.img


3. Set the board to Fastboot recovery mode:J601 CONFIG header:
  • Link pins 1 and 2 closed
  • Link pins 3 and 4 closed
  • Link pins 5 and 6 open



4. Flash boot file into EMMC
Connect HiKey to PC via USB cable, and we can use command
  1. ls /dev/ttyUSB*
Copy the Code

to check if the HiKey is idetified by computer.In gerneral, HiKey will be identified as ttyUSB0, ttyUSB1, etc。The HiKey need to be identified first,or we can not go forward.
Then we can begin to input kinds of command
  1. sudo ./hisi-idt.py -d /dev/ttyUSB0 --img=l-loader.bin
  2. sudo fastboot flash ptable ptable-linux.img
  3. sudo fastboot flash fastboot fip.bin
  4. sudo fastboot flash nvme nvme.img
  5. sudo fastboot flash writable writable.img

Copy the Code



5. Flash SD card:
No matter how you do, I suggest you to format the SD card first.

Then insert the SD card to host computer via USB card adapter.We can use "lsblk" command to check the node, for mine it is /dev/sdb。
The we can flash the SD card:
  1. sudo dd if=hikey-snappy.img of=/dev/sdb bs=4M oflag=sync status=nonfer
Copy the Code


6. After flashing,put the SD into HiKey board,and check the J601 CONFIG header:
  • Link pins 1 and 2 closed
  • Link pins 3 and 4 open
  • Link pins 5 and 6 open



Power on the HiKey board, you can use serial adapter to use the Ubuntu Core. Because the Snappy Ubuntu Core now for HiKey can not use the HDMI, so we can only use SSH or debug serial to use it.
Thank you Tony

You have to log in before you can reply Login | Sign Up

Points Rules