Error building Rock 64 kernel
#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 IRC channel >>
  Reply


Messages In This Thread
Error building Rock 64 kernel - by Bapple - 02-13-2018, 07:40 AM
RE: Error building Rock 64 kernel - by xalius - 02-13-2018, 07:50 AM
RE: Error building Rock 64 kernel - by Bapple - 02-13-2018, 08:02 AM
RE: Error building Rock 64 kernel - by xalius - 02-13-2018, 08:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to boot an older, working kernel bits 0 93 11-01-2024, 04:43 PM
Last Post: bits
  Linux 5.15 Kernel - openSuse mark1250 0 1,528 12-02-2021, 04:36 PM
Last Post: mark1250
  Security Patches for the Kernel kwinz 9 8,240 10-22-2021, 05:45 AM
Last Post: kwinz
  Debian kernel stuck at 4.4.167 Enig123 5 6,575 12-29-2020, 12:57 PM
Last Post: kwinz
  Arch Linux Arm --> Kernel 5.8 breaks installation as365n4 12 14,062 08-31-2020, 01:41 AM
Last Post: as365n4
  mainline kernel sound support Openwrt lucize 2 4,555 05-01-2020, 05:09 PM
Last Post: PakoSt
  opemmediavault plugin error on "Check" clach04 0 5,114 04-21-2020, 10:13 PM
Last Post: clach04
  5.3 kernel support? csrf 5 8,021 04-18-2020, 11:34 PM
Last Post: CameronNemo
  Help troubleshooting kernel panic gabrielfin 3 5,206 03-02-2020, 04:18 PM
Last Post: gabrielfin
  need a dts file to set some pins as pulldown interrupts in kernel using a DTO dkebler 0 2,240 02-05-2020, 10:58 PM
Last Post: dkebler

Forum Jump:


Users browsing this thread: 3 Guest(s)