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:
[...]
Hi Leo,
I'm trying to get my hikey board running with your EASv5 kernel (https://github.com/Leo-Yan/linux/tree/profile_easv5_hikey_round3)
I have updated the git tree for my round4's code base: https://github.com/Leo-Yan/linux/tree/profile_easv5_hikey_round4. this branch enables USB OTG so that we can configure ethernet on USB, finally can send ssh command for automatic testing.
BTW, sorry for i wrongly deleted profile_easv5_hikey_round3 branch :(, so suggest you can go to use round4's branch.
What's working for me is the 'Debian Linux' installation described under https://github.com/96boards/documentation/wiki/HiKeyGettingStarted .
What's the easiest way to get ARM secure firmware and your kernel running? Would be nice if you can share information about how to build and deploy both on the board.
I shared my building env: http://people.linaro.org/~leo.yan/hi6220_dev/; suggest to download and keep same directory layout.
- For build firmware (ATF, UEFI): http://people.linaro.org/~leo.yan/hi6220_dev/boot/build_fw.sh
This command will download repos and build all images; finally it will copy l-loader.bin and fip.bin into output folder ./build_fw.sh download
This command will build all images and copy images to output folder ./build_fw.sh
You also can refer the doc: https://github.com/96boards/documentation/wiki/HiKeyUEFI
- For build kernel: git clone https://github.com/Leo-Yan/linux git checkout -b EASv5 origin/profile_easv5_hikey_round4
export ARCH=arm64 export CROSS_COMPILE=aarch64-linux-gnu-
make defconfig make -j4
- Generate boot.img
http://people.linaro.org/~leo.yan/hi6220_dev/output/gen_uefi_boot_img.sh
After build kernel successfully, you can run command to build boot.img: ./gen_uefi_boot_img.sh
- Burn images to board:
Please refer the script: http://people.linaro.org/~leo.yan/hi6220_dev/output/burn_boot_images.sh
I use the Debug UART (UART0) for a serial connection to the board.
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.
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
[...]