Mainline Debian Buster on RockPro64 ?
#25
@kuleszdl

Just an update, now that I got to test this. Sorry for the late reply, for some reason I can't post the links I'd like.

Unfortunately, the SD-card i prepared with your instructions on your blog post didn't work, although not because of anything wrong in your post. U-boot worked as expected, but the kernel didn't boot. There's already a Debian bug post on this. Apparently setting FAT as the working environment for u-boot works, but I didn't try that.

I ended up following the approach outlined by @foresto  in his post recently. I chose to put /boot as the 2nd partiton on the SD-card prepared using the debian unstable installer image. Like foresto, I defined preseed to debian stable and then installed the unstable kernel through chroot before completing the installer. I got around the potential pitfalls with the installer by zcat'ing the last working firmware.rockpro64-rk3399.img.gz from "20201006" and partition.img.gz from "daily", as mentioned by @MSteam did in foresto's post.

I set up encrypted root on a USB 3.0 SSD while installing. Because quite a few people seem to have issues with booting MMC-modules, and SD-card having limited performance, this seemed like a good compromise without requiring the PCIe-SATA adapter and a large NAS-case to house it. I'm merely using the aluminium case for the RockPro64. Using the SD card for u-boot and the /boot partition gives me the flexibility to experiment with future u-boot versions etc without using the serial adapter and messing around with the SPI all the time. Like a lot of others, I couldn't get u-boot on SPI to detect my disk when connected to the USB 3.0 port. So this is a decent workaround for the problems @idontgetit experienced recently. I'm sure USB 3.0 support in u-boot will mature eventually.

Also, as I wanted to use dropbear-initramfs to unlock the encrypted root through SSD as outlined in the blog post, I had to make a small adjustment to @kuleszdl instructions. I ran into a race condition where eth0 wasn't ready before reaching the luks unlock-prompt. There's a Debian bug report for this too. The workaround for me was to add "sleep 10" before "configure_networking ()" is called in "/usr/share/initramfs-tools/scripts/init-premount/dropbear".

So now I have Debian stable with the unstable kernel, and my USB 3.0 SSD works great! After flashing stock JMS578 firmware from here to my $8 Orico enclosure and adding udev-rule for it, I have working UASP with TRIM-support too!

Best of all, "reboot" from commandline works without issue.

Performance seems to be really great! The disk is snappy, and I can easily saturate my 500/500 fiber connection. No issues or any other problems so far. Nice to finally run a fully open source system without binary blobs.

I'm hoping support will be more end-user friendly by the time Debian 11 is released Smile
  Reply


Messages In This Thread
RE: Mainline Debian Buster on RockPro64 ? - by n4tter4ngell - 11-07-2020, 05:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) RockPro64 riscv64, aarch64 mara 1 510 03-25-2024, 12:12 PM
Last Post: mara
  yocto for RockPro64 Fide 1 731 01-16-2024, 10:01 AM
Last Post: Fide
  Installing Ubuntu Server on RockPro64 deutschlmao 2 2,646 10-29-2023, 04:43 PM
Last Post: brotherj4mes
  Vanilla mainline Debian 11 (Bullseye) on the RockPro64 Pete Tandy 22 17,493 08-16-2023, 01:34 AM
Last Post: varac
  slarm64 (unofficial slackware) ROCKPro64 RK3399 (aarch64) mara 54 83,618 08-11-2023, 11:13 AM
Last Post: mara
  How to enable CoreSight ETM trace on RockPro64 shpark 0 597 05-21-2023, 11:34 PM
Last Post: shpark
  How do I enable Pine touchdisplay as display on Debian? Thisone 0 565 04-23-2023, 11:02 PM
Last Post: Thisone
  Rockpro64 Dead on arrival? quixoticgeek 1 964 03-12-2023, 06:55 PM
Last Post: quixoticgeek
  RockPro64 boot questions misterc 3 1,598 01-13-2023, 06:21 PM
Last Post: misterc
  A fix for Bluetooth audio stuttering on the RockPro64 raph 2 1,675 01-03-2023, 06:53 PM
Last Post: raph

Forum Jump:


Users browsing this thread: 1 Guest(s)