Bug#906696: flash-kernel: Please add an entry for the Rock64
Package: flash-kernel
Version: 3.94
Severity: wishlist
Tags: patch
Dear Maintainer,
The rock64 from pine64 works acceptable with linux-image-arm64.
There is a vendor u-boot available based on 2017.09. It fully supports distro boot and
loading EFI applications.
Therefore the rock64 can be booted with grub-arm-efi.
Only one important thing has to be dealt with: Getting the DTB loaded by U-Boot!
U-Boot searches for rockchip/rk3328-rock64.dtb in /, /dtb/, /dtb/current on the EFI partition.
The attached db entry takes care ot this particular path by storing it at /boot/efi/dtb/rockchip/rk3328-rock64.dtb.
Other rockchip boards supported by mainline u-boot omit the rockchip subdirectory and just search for the dtb name.
However there is no support for the rock64 in mainline u-boot so I think carrying this weird prefix is acceptable.
Currently most used and best documented source for rock64 U-Boot:
https://github.com/ayufan-rock64/linux-u-boot/releases
u-boot-erase-spi-rock64.img.xz can be used to flash u-boot to SPI flash once;
from then on everything is standard:
- debootstrap
- linux-image-arm64
- grub-arm-efi
- grub-install --target=arm-efi --removable
Yours sincerely
Josua Mayer
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: arm64 (aarch64)
Kernel: Linux 4.17.0-1-arm64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages flash-kernel depends on:
ii debconf [debconf-2.0] 1.5.69
ii devio 1.2-1.2+b1
ii initramfs-tools 0.132
ii linux-base 4.5
ii mtd-utils 1:2.0.1-1
ii ucf 3.0038
Versions of packages flash-kernel recommends:
ii u-boot-tools 2018.05+dfsg-1
flash-kernel suggests no packages.
-- Configuration Files:
/etc/flash-kernel/db changed:
Machine: Pine64 Rock64
Boot-DTB-Path: /boot/efi/rockchip/rk3328-rock64.dtb
DTB-Id: rockchip/rk3328-rock64.dtb
-- debconf information excluded
>From 94fb0ab7075b3f2424b8aef673d430896191f3ac Mon Sep 17 00:00:00 2001
From: Josua Mayer <josua.mayer97@gmail.com>
Date: Sun, 19 Aug 2018 21:55:17 +0200
Subject: [PATCH] Add Rock64
Signed-off-by: Josua Mayer <josua.mayer97@gmail.com>
---
db/all.db | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/db/all.db b/db/all.db
index 7031d21..8d946c6 100644
--- a/db/all.db
+++ b/db/all.db
@@ -1402,6 +1402,10 @@ Boot-Script-Path: /boot/boot.scr
U-Boot-Script-Name: bootscr.uboot-generic
Required-Packages: u-boot-tools
+Machine: Pine64 Rock64
+Boot-DTB-Path: /boot/efi/rockchip/rk3328-rock64.dtb
+DTB-Id: rockchip/rk3328-rock64.dtb
+
Machine: PlatHome OpenBlocks AX3-4 board
Kernel-Flavors: armmp armmp-lpae
DTB-Id: armada-xp-openblocks-ax3-4.dtb
--
2.18.0
Reply to: