Hikey960
出自 flip the world
於 2020年5月12日 (二) 17:31 由
Tommy (對話 | 貢獻) 所做的修訂
Pin definition
- UART signals are driven at 1.8V.
Build FW
- Download the Android source tree:
- Build:
- . ./build/envsetup.sh
- lunch hikey960-userdebug
- make -j24
Installing initial images
- Select fastboot mode by turning ON switch 3 (for details, refer to the HiKey 960 Getting Started guide).
- Power the board.
- Flash initial images:
- cd device/linaro/hikey/installer/hikey960
- Turn OFF switch 3 and power cycle the board.
Flashing images
- Enter fastboot mode by turning ON switch 3.
- Flash images by running the following commands:
- fastboot flash boot out/target/product/hikey960/boot.img
- Turn OFF switch 3 and power cycle the board.
Building the kernel
- Run the following commands:
- Update the kernel in the boot image.
- Copy hi3660-hikey960.dtb (out/android-hikey-linaro-4.19/dist/hi3660-hikey960.dtb) to the hikey-kernel directory as file hi3660-hikey960.dtb-4.19.
- Copy the Image file (out/android-hikey-linaro-4.19/dist/Image.gz-dtb) to the hikey-kernel directory as file Image.gz-dtb-hikey960-4.19.
- Make the boot image:
Setting the serial number
To set the random serial number, run
- fastboot getvar nve:SN@16\_DIGIT\_NUMBER
- Bootloader exports the generated serial number to the kernel using androidboot.serialno=.
Setting monitor resolution
- Edit the device/linaro/hikey/hikey960/BoardConfig.mk parameter BOARD_KERNEL_CMDLINE and configure the video setting. For example, the setting for a 24-inch monitor is video=HDMI-A-1:1280x800@60.
Android note
- Disable ICMP for enable ping
- sysctl -w net.ipv4.icmp_echo_ignore_all=0
Reference