Error building Rock 64 kernel
I did a git clone of the rock64 image from:

I had tried doing a simple "make" but am getting an error in scripts/, so apparently this is not the right way to build a kernel.

What is the proper procedure?  I need to build a few device drivers that aren't built normally and just need a valid kernel to build against.


Are you crosscompiling or building on the Rock64? Which config are you using?
Come have a chat in the Pine A64 IRC channel >>
I'm building right on the Rock64, using an NFS mounted volume where the sources are located. I tried using oldconfig. Basically I've got an "operator error" kind of problem and just need a hint as to what the procedural errors are.


I am  currently on the road, can give you some hints later today... but you want to start with

make rockchip_linux_defconfig


make menuconfig

add the options you need and

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:

ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-


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...
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 A64 IRC channel >>

Possibly Related Threads...
Thread Author Replies Views Last Post
  Does anybody run the mainline kernel? CameronNemo 1 60 08-17-2019, 07:27 PM
Last Post: suberimakuri
  help building a docker image jata 6 922 07-12-2019, 08:47 PM
Last Post: hmuller
  Gpio error wile using Aditya Rastogi 0 105 01-31-2019, 02:41 AM
Last Post: Aditya Rastogi
  ROCK64 Kernel compilation problem cao 0 251 01-21-2019, 01:21 AM
Last Post: cao
  LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs Raybuntu 193 45,504 01-17-2019, 05:25 AM
Last Post: [email protected]
Smile Adding a new kernel module 1 233 01-07-2019, 01:57 AM
Last Post: tllim
  How to choose kernel to boot mjd 6 469 10-02-2018, 12:28 PM
Last Post: mjd
  Kernel Build Help frewind 26 3,048 08-12-2018, 12:46 PM
Last Post: cooker
  gstreamer error sdarktemplar 1 225 08-02-2018, 11:08 PM
Last Post: tllim
  ayufan's kernel atlantii 0 385 07-14-2018, 09:25 AM
Last Post: atlantii

Forum Jump:

Users browsing this thread: 1 Guest(s)