查看: 30291|回复: 5

hikey960 发行版本linux debian

[复制链接]

404

主题

246

回帖

2万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
20408
发表于 2018-5-9 15:15:28 | 显示全部楼层 |阅读模式
注意:本固件只针对2018年5月前买的板子,用三星flash的板子才能跑起来,之后买的板子千万不要刷。
固件下载
链接:https://pan.baidu.com/s/1A_ctIjusXb-7VT26m4tkkA 密码:5kbj

用户名: root
密码: toor


烧录教程:

Pre-requisites:
Hardware:-
1) Hikey960 board
2) Power Anapter 12V 3A
3) Type C USB cable
4) 1.8v USB to TTL UART connector
5) Host device running on Ubuntu 16.04

Software:-
1) android-tools-fastboot

To install the software run the following command:

sudo apt-get install android-tools-fastboot


**********************************************************************************************************************
                                *INSTALLING UEFI(only new boards)*
**********************************************************************************************************************

If UEFI is already installed(board which was flashed before)
then move on to Step 5.

Step 1: Turning on the Switches

        Make
        Switch 1 : ON
        Switch 2 : ON
        Switch 3 : OFF

        Note: If the switches are not in correct order then fastboot will not work. Giving error message "<waiting for device>"

Step 2: Connecting Cables

        Connect Type C USB cable to the host and board and make sure it is configured as ttyUSB1 (workaround : you can connect a dummy usb to serial first before connecting type C so usb serial becomes ttyUSB0 and type C is ttyUSB1
        Connect Power Adapter

        Confirm if the cables are connected correctly using dmesg command
                USB Type C should now be connected to ttyUSB1
                        
        Sample dmesg Log:
        
                        [ 7402.694006] usb 1-1.2: New USB device found, idVendor=18d1, idProduct=d00d
                        [ 7402.694010] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                        [ 7402.694012] usb 1-1.2: Product: HiKey960
                        [ 7402.694014] usb 1-1.2: Manufacturer: 96Boards
                        [ 7402.694016] usb 1-1.2: SerialNumber: 5EA41CC0223F215
                        [ 7516.698997] usb 1-1.2: USB disconnect, device number 4
                        [11514.627430] usb 2-1.1: USB disconnect, device number 3
                        [12112.700336] usb 2-1.2: new full-speed USB device number 4 using ehci-pci
                        [12112.818364] usb 2-1.2: New USB device found, idVendor=12d1, idProduct=3609
                        [12112.818368] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
                        [12112.818370] usb 2-1.2: Product: USB SER
                        [12112.818372] usb 2-1.2: Manufacturer: HISILICON
                        [12114.530788] usbcore: registered new interface driver usbserial
                        [12114.530843] usbcore: registered new interface driver usbserial_generic
                        [12114.530890] usbserial: USB Serial support registered for generic
                        [12114.625738] usbcore: registered new interface driver option
                        [12114.625783] usbserial: USB Serial support registered for GSM modem (1-port)
                        [12114.625922] option 2-1.2:1.0: GSM modem (1-port) converter detected
                        [12114.628070] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1

Step 3: Clone into the tools-images-hikey960 repo

        git clone https://github.com/96boards-hikey/tools-images-hikey960.git

Step 4: We need to install uefi on the hikey960 board

        cd tools-images-hikey960/install-prebuilt-uefi
        sudo ./hikey960-efi-prebuilt.sh -r -v 57

        The above line downloads & installs the uefi on the board
        Note: 57 is the version of UEFI released by Linaro so make sure you download the correct one.
        It might change over a period of time.


NOTE: The UART cable is necessary till this step only. Now You can unplug it if you want.

*******************************************************************************************************************************
                                        *FLASHING Debian IMAGE*
********************************************************************************************************************************
Step 5: Turning on the Switches

        Make
        Switch 1 : ON
        Switch 2 : OFF
        Switch 3 : ON

        Note: If the switches are not in correct order then fastboot will not work.

Step 6: Connecting Cables

        Connect USB Type C cable to the host and board
        Connect the Power Adapter.

Step 7: Untar the Debian Images

        tar -xvzf Debian-shunya.tar.gz
        cd Debian-shunya

Step 8: Flashing the Debian Images
        sudo fastboot devices  
        this command should return some value(e.g 335C7C2023D4004 fastboot) if the board is in the fastboot

        sudo fastboot flash boot boot-shunya.uefi.img
        sudo fastboot flash system debian-shunya.img

Step 9: Turning on the Switches

        Make
        Switch 1 : ON
        Switch 2 : OFF
        Switch 3 : OFF

        Note: If the switches are not in correct order then console will not work.

Step 10: Booting your image

        **Remove USB Type C cable (important)         
        Connect HDMI cable.
        Connect the Power Adapter.        
        
NOTE: Plug the HDMI cable before powering up.HDMI hot plug may not work.
        HDMI resolution is fixed in grub to 1280x800 @ 60Hz.



for wifi on Command line run : nmtui




风火轮微信公众号
回复

使用道具 举报

匿名  发表于 2018-5-29 17:26:20
请问主机用高版本的ubuntu是否可以,比如ubuntu-17.04-desktop-amd64。
回复 支持 反对

使用道具

匿名  发表于 2018-5-29 17:27:40
请问该方法适用hikey970吗?
回复 支持 反对

使用道具

2

主题

3

回帖

24

积分

新手上路

Rank: 1

积分
24
发表于 2018-6-9 09:41:45 | 显示全部楼层
请问 debian 镜像的版本,对于 flash 版本(海力士与否)是否有区别?
回复 支持 反对

使用道具 举报

404

主题

246

回帖

2万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
20408
 楼主| 发表于 2018-6-20 19:15:48 | 显示全部楼层
有关系的,这个版本的debian,只能运行于三星flash的版本上

风火轮微信公众号
回复 支持 反对

使用道具 举报

1

主题

2

回帖

9

积分

新手上路

Rank: 1

积分
9
发表于 2018-6-25 11:52:42 | 显示全部楼层
debian 镜像如何生成?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|风火轮WIKI|手机版|小黑屋|深圳风火轮团队 ( 粤ICP备17095099号 )

GMT+8, 2024-4-20 12:03 , Processed in 0.050610 second(s), 19 queries .

快速回复 返回顶部 返回列表
 
【客服1】 商务合作 15289193
【客服2】 业务洽谈 13257599
【客服3】 售前咨询 510313198
【邮箱】
smartfire@smartfire.cn