So here's a recap, this is how I'm now build and install a kernel on the latest bionic image.
From a new install of bionic
Depending on how out of date the OS image you may get asked some config questions as the kernel patch level moves on all the time...
I like to set my own build name suffix, the easiest way to do that is menuconfig
The menu option is General setup ---> () Local version - append to kernel release. I set mine to -frewind-01
Now build everything
Install the modules
Run the installer
You should get the missing dtb error, so to correct this copy the rk3328-rock64.dtb to /etc/flash-kernel/dtbs
Run the installer again
This will give you the message "Ignoring old or unknown version 4.4.126-frewind-01 (latest is 4.4.126-rockchip-ayufan-239)", so we need to force it.
reboot
It looks like it has installed the correct kernel with the correct initrd.img
From a new install of bionic
Code:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install fakeroot kernel-wedge build-essential bison flex libncurses5-dev libncursesw5-dev python
$ git clone https://github.com/ayufan-rock64/linux-mainline-kernel.git
$ cd linux-kernel-release-4.4
$ cat /proc/config.gz | gunzip > .config
$ make oldconfig
Depending on how out of date the OS image you may get asked some config questions as the kernel patch level moves on all the time...
I like to set my own build name suffix, the easiest way to do that is menuconfig
Code:
$ make menuconfig
Now build everything
Code:
$ make -j5
Code:
$ sudo make modules_install
Code:
$ sudo make install
Code:
$ sudo cp /boot/dtbs/4.4.126-rockchip-ayufan-239/rockchip/rk3328-rock64.dtb /etc/flash-kernel/dtbs
Code:
$ sudo make install
Code:
$ sudo flash-kernel --force 4.4.126-frewind-01
Code:
sudo reboot
It looks like it has installed the correct kernel with the correct initrd.img