Evka2k / helios64

kobol.io Helios64 scripts & so on.
4 stars 0 forks source link

Question, no issue #1

Open mrblumi opened 7 months ago

mrblumi commented 7 months ago

Hey guys, did you really manage to get an Arch Linux ARM running on this board? Would you mind to share some details?

I would really appreciate having an Arch running on my little NAS...

Evka2k commented 7 months ago

Hello. Yes I'm running Arch all the time on Helios64. Works with 6.7.5-1 kernel from Archlinuxarm. Slight modifications in *.dts needed for fans, leds etc. Bootloader most likely stock from armbian. What help do you need?

mrblumi commented 7 months ago

Thanks for the quick answer. For the beginning just some basic hints would be fine. So if I get it right, it should be good to start with an SD card prepared for Armbian (just to have all the armbian uboot stuff in the right places) and then (re)create new partitions for /boot and / and follow the generic Arch Linux ARM instructions in addition with installing this package here?

mrblumi commented 7 months ago

Update: works like a dream. But i had to do some custom udev foo in order to get the fan control working (the stock Armbian ones used in this package were not working for me). And the heartbeat stuff with the leds is not working yet - would you mind sharing your adjustments in the *.dts files?

But I am so glad I don‘t have to use Armbian on this board, because on the one hand it was incredibly unstable and on the other hand… well it was Armbian and not Arch 🤣

Evka2k commented 7 months ago

kobol_helios64_linux-6.7.5-dts.patch.gz

This fixes fan devfs names for udev. Adds leds. Battery adc. Etc.

mrblumi commented 7 months ago

I have one more question - do you have any automation for patching the device tree on every kernel update?

Maybe there is a short way for that, I simply don't know instead of manually downloading the kernel sources, apply all Arch Linux ARM patches (just in case), applying this patch and rebuild all that stuff again - at least that is the way I figured out by a lot of Google yesterday.

Evka2k commented 7 months ago
$ make rockchip/rk3399-kobol-helios64.dtb
arch/arm64/Makefile:36: Detected assembler with broken .inst; disassembly will be unreliable
  SYNC    include/config/auto.conf
  DTC     arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dtb

Here is my changes for linux 6.2. https://github.com/Evka2k/PKGBUILDs/tree/helios64_nanopir5s_master/core/linux-aarch64. Maybe later will update to recent 6.7. Also possible merge request to archlinuxarm. Feel free to contribute if you have time.