LeMaker Hikey:FAQ

From BananaPro/Pi
Jump to: navigation, search

Other languages:
English • ‎中文(简体)‎

Q1: What is the default account/password for HiKey(LeMaker version)?
A1: The default account/password is linaro/linaro.

Q2: How to View the CPU’s temperature?
A2: You can use the command below to view CPU's temperature.

cat /sys/class/thermal/thermal_zone1/temp

Q3: Is the source code open?
A3: Yes, you can visit https://github.com/96boards to download the related source code.

Q4: What is the maximum of HiKey(LeMaker version)’s CPU.
A4: The maximum is 1.2GHz. But you had better use the fan to cool down at 1.2GHz, and use the cooling fin to cool down at 1GHz.

Q5: How to flash OS image into eMMC/SD card?
A5: You can refer to http://wiki.lemaker.org/HiKey:Quick_Start.

Q6: What resolution does HDMI support?
A6: The HDMI port on HiKey supports TVs and Monitors with an HDMI interface at display resolutions of 1920x1080 (or 1920x1200) pixels down to 640x480 pixels. Note that interlaced display modes are not currently supported. A list of monitors/TVs can/cannot work with HiKey is stored in https://docs.google.com/spreadsheets/d/1aYNUlGx5J8RmfWrtML4lFJ-7tV8u-3AH_3IaiOlWfoE/edit#gid=0 .
Note also that these modes are preferred and will be tried (in this order) first if they exist in EDID:

Resolution Ratio Usually on
1920x1200 16:10 Monitor
1920x1080 16:9 TV
1680x1050 16:10 Monitor
1280x1024 5:4 Monitor
1280x720 16:9 TV
800x600 4:3 TV

Q7: What are the hardware restrictions of USB Ports.
A7: 1. The microUSB OTG port may be used (in host or slave mode) or the Type A host ports may be used. They may not both be used simultaneously. If a cable is inserted into the OTG port then the Type A ports and the expansion bus port will be automatically disabled.
2. For the microUSB OTG port a single Low Speed (1.5Mbit/sec), Full Speed (12Mbit/sec) or High Speed (480Mbit/sec) device is supported.
3. For the USB host ports all attached USB devices MUST be one of the following two options:
Low Speed (1.5Mbit/sec) and Full Speed (12Mbit/sec) devices, or High Speed devices (480Mbit/sec)
If a mixture of High Speed and Low/Full speed devices are attached the devices will not operate correctly. This also applies if any hubs are attached to the ports.
The reason for this limitation is that USB 2.0 split transfers are not supported by the mobile-targeted SoC hardware USB implementation.

Q8: How to configure into Low/Full speed operation for the hardware restrictions on USB Ports? A8: In Debian a utility is provided in /home/linaro/bin to change the configuration of the host (Type A and Expansion) and OTG USB ports. By default these ports operate in low/full speed modes (1.5/12 Mbits/s) to support mouse/keyboard devices. Other USB devices such as network or storage dongles/sticks will be limited to full speed mode. Using the usb_speed utility it is possible to support high speed devices (480 Mbits/s) as long as they are not mixed with full/low speed devices.
For information on using the utility , do the following:

sudo usb_speed -h

In the AOSP build a small application is provided (usb-speed-switch) to change between High Speed and Full Speed operation.

Q9: How to use UART Port?
A9: In Debian, the two 96Boards expansion IO UART serial ports will appear as /dev/ttyAMA2 and /dev/ttyAMA3 and are configured at 115200 baud by default. Note: UEFI and kernel console are directed to /dev/ttyAMA3.
Alternatively, you can modify grub.cfg in the boot image to switch to other UART.
/EFI/BOOT/grub.cfg (linux boot line): linux /boot/Image console=tty0 console=ttyAMA3,115200 root=/dev/disk/by-partlabel/system rootwait rw quiet efi=noruntime.
And you can use the USB to serial by Hikey LED Board. Please see: http://wiki.lemaker.org/HiKey(LeMaker_version):Hikey_LED_Board_User_Manual.

Q10: What known issues on the current release?
The following are known issues on the current release.

  1. Not Yet Supported:
HDMI and Expansion bus audio. (At present only Bluetooth audio is supported)
Some video formats are not decoded in Android, and will not be played with the current release
HDMI hotplug detection (HPD) is not supported. (Note: You can still plug in HDMI cable after the board booted, which make HDMI work through two candidate modes: 1280x720p and 800x600p. However these are not HPD, they is built-in default.)
Behaviors of power on button not following hardware user guide. 
HDMI display sometimes goes off when in AOSP.  
  1. USB gives occasional non-fatal kernel trace messages usb usb1: clear tt 1 (9032) error -22 .This is under current investigation.
  2. Apple Bluetooth Keyboards/Mice/Trackpads do not work This is under current investigation.
  3. Attempting BT file transfer on the Debian build freezes the board. This is under current investigation.
  4. Switching user may cause a blank screen Clicking on the Switch User button can cause the screen to go blank. This is being investigated.
  5. Iceweasel browser exits after file download complete. When downloading a file using Iceweasel, the download works but the browser exits.
  6. Debian ALIP image: Viewing JPG images with 'Image Viewer' show incorrect colors. This is being investigated.
  7. Fastboot flashing on Windows is not supported. Only Linux PC is supported.
  8. AOSP build can only work at 720p mode. When using 1080p mode, the color scheme is not stable.
  9. Shutdown not working - executing 'reboot -p' from serial console will shutdown the board very quickly, but cannot turn off HDMI monitor, and the signal is still there.
  10. UEFI may hang occasionally when the uSD card is present.
  11. Hot plugging an SD card may not work on some UHS class 1 SD cards on AOSP build.
  12. Display sleep may not always work on AOSP build.

Q11: If inserted a MicroSD card that has not been installed OS image into the MicroSD card slot, Does HiKey can boot from eMMC.
A11: No, HiKey can not boot from eMMC, even though eMMC has been installed IO image.

Q12: Does HiKey support CMOS Camera(not USB camera)?
A12: Yes, HiKey supports CMOS Camera, but the camera can't work now. We still need to develop camera software and dirvers.

Q13: Does HiKey support flash OS image into eMMC NAND Flash via Micro SD card?
A13: No, HiKey can't use Micro SD card to flash OS iamge into eMMC NAND Flash.we only can flash the OS images into Micro SD card or eMMC NAND Flash, and then boot OS .

Q14: Does HiKey support Android 6.0?
A14: Yes, HiKey supports Android 6.0. You can download it from http://builds.96boards.org/releases/reference-platform/components/uefi/15.12/release/hikey/

Q15: Hikey’s HDMI sound is already reported feasible but not officially supported by neither LeMaker nor Linaro/96boards.org.
A15: :It will be supported later.

Q16: Practically all of the docs only refer to cross compiling while the HiKey should have enough CPU and RAM to be able to compile simple stuff itself. Is the thermal control not enabled by default or what's the reason behind this?
A16: HiKey can compile the kernel by itself, but we now just provide the method for cross compile on PC.

Q17: Supporting WLAN requires a custom kernel module and firmware from 96boards.org. Same question for security support, announcement mailinglist and pushing these upstream into linux and the Debian firmware package as above. Any reasons not to?
A17: The WLAN module and firmware are provided by TI, please refer to http://www.ti.com/product/WL1835MOD.

Q18: Updating eMMC parts requires me to flash from another computer and cannot be updated online while booted into eMMC? Or if online updating is supported, what files would need to be written where to make sure the HiKey will survive a reboot after this? Losing all of my files, settings, SSH host keys etc. for every new OS release doesn't seem to be the correct answer. Rather installing Debian updates the "normal" way and putting new kernels, bootloaders and kernel modules in-place where they belong. Is this planned for the future releases?
A18: Now, it cannot be updated online. But you can use “dd” or copy command to update by SD card.

e.g.  dd if=<path>/boot-fat.uefi.img of=/dev/mmcblk0p6 bs=1M  ======èit will update /boot/efi/
        copy zImage  /boot/
        copy *.ko  /lib/modules/

Q19: Fastboot is optional as long as I use GRUB on eMMC or boot from SD card, right?
A19: Note that the June 2015 release comes with a fastboot bootloader based on HiSilicon code. It is deprecated and will not be supported in the upcoming releases.

Q20: Bootloader seems to have custom parts that are not (yet) included in the usual upstream(s)? I don't really see (in the given document) what is different in the GRUB on 96boards.org compared to the one in Debian. What will not be working (correctly) when using the regular one shipped in Debian? Is the custom bootloader in the doc just relevant for supporting secure boot?
A20: UEFI bootloader is still under development, the method and source code link can be found from https://github.com/96boards/documentation/wiki/HiKeyUEFI . The doc now is not ready.

Q21: Linux kernel must be Linaro. Stock Debian linux kernel for amd64 won't do. Not even the testing/unstable versions. Patches are publically available, yet not actively proposed at kernel.org for including them into vanilla linux, are they? This however only covers (most) of the hardware, not neccessarily the CPU and mainboard itself (i.e. it might boot, just not have any hardware to install on).
A21: In kernel.org, please refer to https://github.com/torvalds/linux/tree/master/arch/arm64/boot/dts/hisilicon , the hikey have been supported, but it only to boot, because some drivers have not been supported。But Linux kernel always to develop by Linaro with arm64 on hikey, but can’t boot on amd64, because the BSP can’t be supported.

Q22: The HiKey installation process cannot use the regular arm64 debian-installer. The main arm64 arch for Debian should work mostly for userland, but lacks kernel, hardware modules and (possibly) bootloader. Apart from this, Debian main is fine. WLAN support is also not included in standard firmware images and tools.
A22: These are right. Please refer to:
Kernel and rootfs: https://github.com/96boards/documentation/wiki/HiKeyGettingStarted#debian-linux-os Bootloader: https://github.com/96boards/documentation/wiki/HiKeyGettingStarted#installing-a-bootloader