Hi Leo,
On 30/10/15 03:12, Leo Yan wrote:
Hi Dietmar,
On Thu, Oct 29, 2015 at 04:30:00PM +0000, Dietmar Eggemann wrote:
On 29/10/15 14:36, Dietmar Eggemann wrote:
On 21/10/15 02:56, Leo Yan wrote:
[...]
Please NOTE, now hi6220's code base have changed to use UART3 as default console. If you have not a extenstion board for UART3, you can use UART0 still.
thanks for sharing the build environment! I guess it was because of the UART change (from UART0 to UART3) that I didn't succeed initially following the info provided on https://github.com/96boards/documentation/wiki/HiKeyUEFI .
I was able to build:
l-loader.bin fip.bin ptable-linux.img and AndroidFastbootApp.efi
from the sources and took
grubaa64.efi initrd.img nvme.img grub_AMA0.cfg
from http://people.linaro.org/~leo.yan/hi6220_dev/output ,
flashed it onto my hikey board and got my Debian FS on the sdcard booting.
---
After a couple of tries the hikey board is not responding any more to fastboot commands after I loaded l-loaded.bin in recovery mode (pin1-pin2 and pin3-pin4 on J15 are set).
$ sudo python hisi-idt.py -d /dev/ttyUSB2 --img1=l-loader.bin +----------------------+ Serial: /dev/ttyUSB2 Image1: l-loader.bin Image2: +----------------------+
Sending l-loader.bin ... Done
$ sudo env "PATH=$PATH" fastboot flash ptable ptable-linux.img < waiting for device >
... waits here forever with User LED 0 on.
If I boot in 'normal' mode (pin1-pin2 set) I get the following output on UART0:
debug EMMC boot: print init OK debug EMMC boot: send RST_N . debug EMMC boot: start eMMC boot...... load fastboot1!
Switch to aarch64 mode. CPU0 executes at 0xf9801000! NOTICE: Booting Trusted Firmware NOTICE: BL1: v1.1(release):1b9a4b277314 NOTICE: BL1: Built : 13:43:57, Nov 3 2015 NOTICE: syspll frequency:1190494208Hz INFO: rdet ds fail INFO: rdet ds fail INFO: rdet ds fail ...
If I try to prepare fastboot with hisi-idt.py it fails too (in recovery mode):
$ sudo python hisi-idt.py -d /dev/ttyUSB2 --img1 fastboot1.img --img2 fastboot2.img +----------------------+ Serial: /dev/ttyUSB2 Image1: fastboot1.img Image2: fastboot2.img +----------------------+
Sending fastboot1.img ... Done
Sending fastboot2.img ... failed
I hope that this board isn't bricked? Any help highly appreciated!
Thanks,
-- Dietmar
So before build firmwares, should firstly apply the patch: http://people.linaro.org/~leo.yan/hi6220_dev/boot/0001-Change-to-use-UART0.p...
For kernel and filesystem, below two files have used UART0 as console, so you could directly boot kernel and rootfs with UART0: http://people.linaro.org/~leo.yan/hi6220_dev/output/grub_AMA0.cfg. http://people.linaro.org/~leo.yan/hi6220_dev/output/ramdisk.tgz
Usually at beginning guys create enviornment for Hikey will be a little painful, just let me know if you have any problem.
Thanks,
-- Dietmar
[...]