Custom Kernel for ROCK64
#1
Dear Pine Users,

thank you for providing the discussion group for the ROCK64 platform. I tried to use a custom compiled kernel for several days now. Unfortunately, every attempt results in a system that does not boot.

The most promising way seemed to me the following with a newly installed distribution via Etcher. I took the Ubuntu 18.4. Desktop variant. Then I have executed the following commands on-board:

-----------------
sudo dpkg-reconfigure keyboard-configuration

sudo dpkg-reconfigure tzdata

sudo apt update

sudo apt upgrade

sudo apt -y install cmake build-essential python-minimal bison flex bc libssl-dev libncurses5-dev lzop make u-boot-tools binfmt-support ninja-build libfl-dev python python2.7 swig libpython-dev flash-kernel

sudo reboot

mkdir workspace

cd workspace

git clone https://github.com/ayufan-rock64/linux-m...kernel.git

cd linux-mainline-kernel

make rockchip_linux_defconfig

make -j4

sudo make modules_install

sudo make dtbs_install

sudo make install
-----------------

After this, the platform will not reboot. I just get a black screen. The LEDs of the ROCK64 just light up a few seconds. Then only the green LED remains.

I have checked the file /boot/extlinux/extlinux.conf
If I remove the entries for the newly installed kernel, the platform boots with the old kernel again (4.4.).
By the way, why do I have /boot/extlinux/extlinux.conf and /boot/efi/extlinux/extlinux.conf?

I hope, you can give me a hint, what is missing or how I can debug this issue, since I do not see any output, also not from u-boot.

Best regards,

   Stefan May
#2
I'm also interested in this issue. What steps are required to make a custom kernel image bootable on a rockpro64?
#3
Meanwhile, I solved my problem by myself. The kernel source snapshots at github are not all bootable. I tried to use the 4.20. kernel but with no success. Since I have no serial console, I was not able to figure out what was going wrong with the new kernel.
The 4.19. kernel, I could boot, but with no HDMI output. In the end I took the version 4.4.132-1075-rockchip-ayufan from [url=https://github.com/ayufan-rock64/linux-kernel/releases/tag/4.4.132-1075-rockchip-ayufan][/url]https://github.com/ayufan-rock64/linux-kernel/releases
You can download this version here: https://github.com/ayufan-rock64/linux-k...fan.tar.gz
I took the configuration from /proc and modified the config file to my needs (activated CAN interface).

Please let me know, if you manage to boot any newer kernel.


Possibly Related Threads…
Thread Author Replies Views Last Post
  MRAA Rock64 support jbize 2 3,064 07-09-2022, 04:40 AM
Last Post: igorp
  Rock64 with Debian netinst usb Bloris 6 10,158 12-03-2019, 12:37 PM
Last Post: madalin
  The differences between Rock64 and RockPro64 phamoanh 1 4,848 06-12-2019, 10:44 PM
Last Post: evilbunny
Bug Rock64 Login lpninja 1 4,897 10-04-2018, 12:02 AM
Last Post: tllim
  Rock64 suitable for headless TVHeadend install? elsmandino 3 7,156 06-26-2018, 11:37 AM
Last Post: Luke
  Will the Rock64 work as a mobile data storage device? Kennetht 1 3,498 03-29-2018, 10:07 AM
Last Post: xalius
  Laptop as a bridge for Rock64's internet connection dmitrymyadzelets 3 5,911 03-28-2018, 05:24 AM
Last Post: dmitrymyadzelets
  Rock64 OS eMMC boot ProfessionalDreamer 2 5,922 02-20-2018, 08:44 PM
Last Post: ProfessionalDreamer
  opencv on rock64 bendiro 4 7,802 02-07-2018, 05:08 AM
Last Post: xalius
  Kodi on Rock64 board cenguix 2 9,401 02-02-2018, 03:05 PM
Last Post: stuartiannaylor

Forum Jump:


Users browsing this thread: 1 Guest(s)