[Jan 06] Arch Linux (20171225-1) PINE A64(+) Pinebook A64-LTS/SOPINE | [Jan 04] Linux (0.5.15-136) ROCK64 | [Jan 04] Android (20171204) ROCK64 | [Dec 22] Stretch Mate (0.5.15-136-20171222) ROCK64 | [Dec 21] openHAB 2 (v1.4) PINE A64(+) | [Dec 11] Volumio (2.315) PINE A64(+) A64-LTS/SOPINE | [Dec 11] Armbian (5.35) PINE A64(+) Pinebook A64-LTS/SOPINE | [Dec 8] OpenMediaVault (0.5.15-136) ROCK64

Getting Started | Visit the WIKI | IRC Logs | Forum Rules/Policy


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

https://github.com/ayufan-rock64/linux-mainline-kernel

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.

Thanks,

Bob
Reply
#2
Are you crosscompiling or building on the Rock64? Which config are you using?
Come have a chat in the Pine A64 IRC channel >>
Reply
#3
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.

Thanks

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


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


Possibly Related Threads...
Thread Author Replies Views Last Post
  LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs Raybuntu 141 12,391 02-14-2018, 07:12 AM
Last Post: valdiks
Question LoadTrustBL error when booting pedroz 0 38 02-09-2018, 08:35 AM
Last Post: pedroz
  Error when installing some packages - Installing new rk3328-rock64.dtb. msg thewonderer 0 79 02-07-2018, 05:22 AM
Last Post: thewonderer
  Looking for linux kernel image with mptcp support (multipath-tcp) or LEDE (openWrt) xslite 0 94 01-21-2018, 11:45 AM
Last Post: xslite
  I can not build a Wifi driver in the kernel pine3228 3 130 01-06-2018, 11:17 AM
Last Post: xalius
  need some help with a dpkg error dkryder 0 62 12-25-2017, 03:09 PM
Last Post: dkryder
  Building my own u-boot ExplodingLemur 4 275 12-04-2017, 04:15 PM
Last Post: ExplodingLemur
  Ayufun Pre-Release Repo Error jl_678 0 120 11-17-2017, 02:33 PM
Last Post: jl_678
  linux boot error jerson 5 497 11-16-2017, 12:14 PM
Last Post: JoeH
  ROCK64 in the mainline kernel maal 5 1,358 10-01-2017, 08:34 AM
Last Post: stuartiannaylor

Forum Jump:


Users browsing this thread: 1 Guest(s)