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

之前,知识兔里发表过华为针对海思移动处理器麒麟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:

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

Download and extract binaries into the Android source tree:

[php]$ 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
[/php]

Build

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

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:

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

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:

[php]$ 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
[/php]

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

Building the kernel

1. Run the following commands:

[php]$ 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
[/php]

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:

[php]$ make bootimage -j24
[/php]

Setting serial number

To set random serial number, run:

[php]$ fastboot getvar nve:SN@16-digit-number
[/php]

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

当然,您也可以关注知识兔微信订阅号发关键消息进行下载

下载仅供下载体验和测试学习,不得商用和正当使用。

下载体验

请输入密码查看下载!

如何免费获取密码?

点击下载

评论