I am currently on the road, can give you some hints later today... but you want to start with
then
add the options you need and
after that you should have everything built... building on the Rock64 will take quite some time if you dont have a heatsink and the cores get throttled, it should be around 40 minutes with good cooling...
----------------
If you want to cross-compile the kernel on a PC which is a lot faster, you need a aarch64-linux-gnu- toolchain which usually comes with most distros (Ubuntu, Fedora at least...) and the steps are more or less the same, but you have to prefix everything with:
e.g.
-----------
To redirect the make install / make modules_install targets to a directory of your chosing, define INSTALL_PATH=.... and INSTALL_MOD_PATH=... so you can get the files needed to move over to the filesystem on your board... run as normal user / not root or sudo...
Code:
make rockchip_linux_defconfig
then
Code:
make menuconfig
add the options you need and
Code:
make -j5
after that you should have everything built... building on the Rock64 will take quite some time if you dont have a heatsink and the cores get throttled, it should be around 40 minutes with good cooling...
----------------
If you want to cross-compile the kernel on a PC which is a lot faster, you need a aarch64-linux-gnu- toolchain which usually comes with most distros (Ubuntu, Fedora at least...) and the steps are more or less the same, but you have to prefix everything with:
Code:
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
e.g.
Code:
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make rockchip_linux_defconfig
To redirect the make install / make modules_install targets to a directory of your chosing, define INSTALL_PATH=.... and INSTALL_MOD_PATH=... so you can get the files needed to move over to the filesystem on your board... run as normal user / not root or sudo...
Code:
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_PATH=<some directory> make install
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_MOD_PATH=<some directory> make modules_install
Come have a chat in the Pine IRC channel >>