[June 19] Armbian (5.42) ROCK64 | [June 19] Armbian (5.38) PINE A64(+) / PINE A64-LTS / SOPINE | [June 19] motionEyeOS (20180224) PINE A64(+) | [June 19] Armbian (5.46) Pinebook | [June 06] Bionic LXDE (0.6.44-239) ROCK64 | Bionic Minimal (0.6.44-239) ROCK64 | [June 06] Debian Stretch Minimal (0.6.44-239) ROCK64 | [June 06] Jessie OpenMediaVault (0.6.44-239) ROCK64 | [May 21] Slackware (20180508) ROCK64

Project Inspiration | Get Started | IRC Logs | Forum Rules/Policy

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/link-vmlinux.sh, 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
  docker contaainer error on "docker login" edwinbmiller 0 34 06-18-2018, 10:08 AM
Last Post: edwinbmiller
  LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs Raybuntu 187 26,236 06-12-2018, 10:26 PM
Last Post: kostaman
  Kernel Build Help frewind 24 968 06-08-2018, 02:13 AM
Last Post: cooker
  Apt-get update duplicate entry error Jxck 1 65 06-02-2018, 02:26 PM
Last Post: evilbunny
Question Installing the latest kernel (Debian Stretch) + configuring the bootloader? [email protected] 3 541 05-21-2018, 03:31 AM
Last Post: viguzzz
  I could not start ROCK 64. pine3228 0 142 04-12-2018, 07:08 AM
Last Post: pine3228
  mmc0: error -110 edwinbmiller 6 223 03-29-2018, 12:44 PM
Last Post: edwinbmiller
  help building a docker image jata 4 297 03-27-2018, 02:27 AM
Last Post: pfeerick
  [feature request] please enable memtest in the kernel prof7bit 0 94 03-13-2018, 11:46 AM
Last Post: prof7bit
  Linux on Rock 64 borisacomputers 12 806 03-13-2018, 10:10 AM
Last Post: Luke

Forum Jump:

Users browsing this thread: 1 Guest(s)