I am pleased to share with you a tool that i created. It is called the Bionic-Builder and will help you build Ubuntu 18.04 Server or Desktop and the Kernel for Hikey970.
Well documented and very easy to use, runs great on online servers.
Due to a problem with man-db you must use Ubuntu 18.04 on the host machine to use this script. I tested on ubuntu 16.04 and ran into trouble during debootstrap, however you can use the kernel building tools in ubuntu 16.04. But you can not create the Ubuntu 18.04 image for Hikey 970.
I have tested this extensively in ubuntu 18.04 and it works like a charm. It should be possible to use this in Debain Builds also but i have not tested debain.
First Credit goes to Yun Wu Alias wincle626 & mengzhuo for putting together the original Ubuntu Bionic Image for hikey 970.
Credit also go to janrinze for coming up with the workaround to get the display working correctly.
Thank you all for your work.
Detailed instructions can be found in the Bionic-Builder-GUIDE.pdf
General Use Instruction
-
sudo apt-get install -y ccache python-pip build-essential kernel-package fakeroot libncurses5-dev libssl-dev gcc git-core gnupg binfmt-support qemu qemu-user-static debootstrap simg2img
-
cd ~/
-
sudo -s
-
git clone https://github.com/Bigcountry907/Bionic-Builder.git
-
cd ~/Bionic-Builder
-
./BB.sh
Run options 1 thru 4 to build the complete Ubuntu Bionic image including that includes the kernel. Follow the menus and prompts. Flash the hikey970 with the files output in the ~/Bionic-Builder/Install/ directory.
After you login on first boot run the following command to finish the install.
- sudo /etc/./init.sh
Enjoy
Please read through Bionic-Builder-GUIDE.pdf
In the guide you will find detailed information for every function that the Bionic-Builder is capable of.
Clip of the Main Menu
____ _ _ ____ _ _ _
| __ )(_) ___ _ __ (_) ___ | __ ) _ _(_) | __| | ___ _ __
| _ \| |/ _ \| _ \| |/ __|____| _ \| | | | | |/ _ |/ _ \ __|
| |_) | | (_) | | | | | (_|_____| |_) | |_| | | | (_| | __/ |
|____/|_|\___/|_| |_|_|\___| |____/ \__ _|_|_|\__ _|\___|_|
(1) CREATE MINIMAL BASE ROOT FILESYSTEM
(2) BUILD KERNEL LINUX v4.9.78
(3) COPY KERNEL & DEVICE TREE / INSTALL KERNEL MODULES in ROOTFS
(4) GENERATE FLASHABLE AND COMPRESSED IMAGES
(5) UPDATE GRUB CONFIGURATION IN BOOT.IMG AND BOARD
(99) EXIT BUILDER
MAKE CHOICE AND PRESS ENTER.