09-07-2024, 03:32 PM
(07-06-2022, 07:22 PM)jamforlunch Wrote: Do you know if the latest Debian works on the RockPro64 - with all its peripherals ?
I can't speak for all the peripherals, but I'm running Debian Bookworm on a headless server.
Last time I checked, the Debian installer did fine at populating the target partition with the OS, but it didn't install or configure the bootloader (u-boot). You can do this yourself if you make sure to leave 16MiB of empty space before the first partition on your boot device.
The boot device will need:
- Your kernel's rk3399-rockpro64-v2.dtb file as /boot/dtbs/rockchip/rk3399-rockpro64-v2.dtb (you can copy it from the /usr/lib/linux-image-${version}/rockchip/ directory of an installed system.)
- A u-boot config file at /boot/extlinux/extlinux.conf containing an appropriate append root= line for your root filesystem and fdt line for your kernel's .dtb file
- The bootloader itself, written to the blocks preceding the first partition of your boot device.
The bootloader can be installed by a tool in Debian's u-boot-rockchip package. (From memory, I think the command is u-boot-install-rockchip.) Of course, you need a running Debian system in order to install that package and use it. You might be able to do this from within a shell launched by the Debian installer.
A more manual approach to installing the bootloader would be to copy the disk blocks between the end of the partition table and the beginning of the first partition on the Debian installer's disk image.
More info here:
https://forum.pine64.org/showthread.php?...#pid119256