155月 2017

0

18438

1

华为麒麟960开发板 HiKey 960 开发资料

开源硬件 by xfire

之前,老wu博客里发表过华为针对海思移动处理器麒麟960 SoC发布了对应的开发板HiKey 960的消息,面向基于安卓系统的个人电脑、机器人、无人机和其他智能设备市场。Kirin 960 octa-core ARM SoC采用big.LITTLE架构,4核心Cortex-A73 及4核心Cortex-A53,支持最大8GB LPDDR4 SDRAM,支持UFS 2.1、 eMMC 5.1,GPU为 Mali-G71 MP8。

现在,在96boards.org上放出了 HiKey 960 开放板的一些相关开发资料,包括HiKey 960 开发板的使用手册、PCB原理图、麒麟960也即Hi3660的datasheet,当然,也包括了Android Open Source Project (AOSP) 的源码编译方法。

Download the Android source tree:

$ repo init -u https://android.googlesource.com/platform/manifest -b master
$ repo sync -j24

Download and extract binaries into the Android source tree:

$ wget https://dl.google.com/dl/android/aosp/arm-hikey960-NOU-6eafa750.tgz
$ tar xzf arm-hikey960-NOU-6eafa750.tgz
$ ./extract-arm-hikey960.sh
$ wget https://dl.google.com/dl/android/aosp/hisilicon-hikey960-NOU-5db76395.tgz
$ tar xzf hisilicon-hikey960-NOU-5db76395.tgz
$ ./extract-hisilicon-hikey960.sh

Build

$ . ./build/envsetup.sh
$ lunch hikey960-userdebug
$ make -j32

Installing initial images

1. Select fastboot mode turning ON switch 1 and 3 (for details, refer to the HiKey960 user guide).
2. Power the board.
3. Flash initial images:

$ cd device/linaro/hikey/installer/hikey960
$ ./flash-all.sh

4. Turn OFF switch 3 and power cycle the board.

Flashing images

1. Enter fastboot mode by turning ON switch 1 and 3.

2. Flash images by running the following commands:

$ fastboot flash boot out/target/product/hikey960/boot.img
$ fastboot flash dts out/target/product/hikey960/dt.img
$ fastboot flash system out/target/product/hikey960/system.img
$ fastboot flash cache out/target/product/hikey960/cache.img
$ fastboot flash userdata out/target/product/hikey960/userdata.img

3. Turn OFF switch 3 and power cycle the board.

Building the kernel

1. Run the following commands:

$ git clone https://android.googlesource.com/kernel/hikey-linaro
$ cd hikey-linaro
$ git checkout -b android-hikey-linaro-4.4 origin/android-hikey-linaro-4.4
$ make ARCH=arm64 hikey960_defconfig
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24

2. Update the kernel in the boot image.

  • Copy hi3660-hikey960.dtb (arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb) to the hikey-kernel directory as file hi3660-hikey960.dtb.
  • Copy the Image file (arch/arm64/boot/Image.gz) to the hikey-kernel directory as file Image.gz-hikey960.

3. Make the boot image:

$ make bootimage -j24

Setting serial number

To set random serial number, run:

$ fastboot getvar nve:SN@16-digit-number

Bootloader exports the generated serial number to kernel via androidboot.serialno=.

Setting monitor resolution

Edit the device/linaro/hikey/hikey960/BoardConfig.mk parameter BOARD_KERNEL_CMDLINE and configure the video setting. Example setting for a 24″ monitor is video=HDMI-A-1:1280×800@60. For a LinkSprite 7-inch Display Kit, the setting is video=HDMI-A-1:800×480@60.

详细的Android Open Source Project (AOSP) 的源码编译方法请参考Android官网(由于你懂得原因,需要翻墙https://source.android.com/source/devices#hikey960

HiKey 960 开发板的相关文档可以参照这里下载:https://github.com/96boards/documentation/blob/master/ConsumerEdition/HiKey960/README.md

当然,您也可以关注吴川斌的博客微信订阅号发关键消息进行下载

关注吴川斌的博客公众号

在公众号里给老吴发消息:

下载|华为HiKey960开发板资料

建议复制粘贴过去不会码错字哟,O(∩_∩)O~

老wu便会将 华为HiKey960开发板资料 的下载链接发给您啦,O(∩_∩)O~

微信扫描二维码
为老wu 打个赏
pay_weixin
金额随意 快来“打”我呀 老wu要买六味地黄丸补补~~

原创文章,转载请注明: 转载自 吴川斌的博客 http://www.mr-wu.cn/

本文链接地址: 华为麒麟960开发板 HiKey 960 开发资料 http://www.mr-wu.cn/huawei-hikey960-development-board-documentation/

Comments (1)

增达网, 15:59, 5月. 15/2017

受教了!呵呵!