Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on Helios64
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8718
Location: ~Brussels - Belgique

PostPosted: Fri Nov 27, 2020 7:56 am    Post subject: Gentoo on Helios64 Reply with quote

Hi!

I got a Helios64 those last weeks, and I am planning to install Gentoo on it.

For now, the documentation at Kobol is "work in progress".

I will use this thread to provide status on my work. If it will succeed, I will need to update the Gentoo Wiki too ;)

Contributors are welcome!
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Fri Nov 27, 2020 3:56 pm    Post subject: Reply with quote

xaviermiller,

I've been tempted but I thought in was still vapourware as the web page only ever says Preorder Now.
I would really like 16G RAM and hardware support for KVMs too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8718
Location: ~Brussels - Belgique

PostPosted: Fri Dec 18, 2020 9:24 am    Post subject: Reply with quote

What I have now
- armbian on EMMC
- Gentoo on SSD, running in a chroot hosted by armbian

The next days, I will copy the armbian kernel binaries and adapt the boot script to run Gentoo, then compile gentoo-sources with the necessary kernel patches.

I can easily switch from distro by changing the symlink "boot" between "boot.armbian" and "boot.gentoo" on the EMMC.
If the system is stuck, I can start the system in recovery mode, mount the EMMC and change the symlink, then reboot.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
enoid
n00b
n00b


Joined: 25 Dec 2020
Posts: 3

PostPosted: Fri Dec 25, 2020 12:13 pm    Post subject: Reply with quote

I also got a Helios64 but unfortunately haven't had much time to play around with it, seeing as this turned out to be a busier time of the year then usual. I tried the Armbian releases, but somehow it doesn't feel right. I never liked really liked Debian distros at all, the deb system makes me feel I'm not in control if something breaks. I know, you break it yourself by upgrading (unstable) stuff. So I've been looking for a more 'stable' system. I also tried a FreeBSD build for it and it looks promising, especially when in the future arm64 becomes a tier1 candidate. However my main distro has always been Gentoo (since around ~2002) as it makes me feel more in control. If something breaks, most of the time it easily fixable or reverted.

So, some things I did do/try:
- Followed the Rpi3/4 install guide for a basic set up for Gentoo on the SD-card
- Compiled U-boot from source (with the patches from kobol)
- Compiled the 5.9 kernel with patches and config from Armbian
- Used and edited the Armbian U-boot config files to make a boot.cmd

After some tweaking of the command line stuff in U-boot it seems to work at first sight, but after loading the kernel it doesn't give any output at all so I have no idea where it fails (I know Armbian also doesn't show any console output over USB until it has booted, after that it uses ttyS2). So is there a way to get early output on arm? I think I read something about earlycon on arm instead of early_printk? Or do you have to pass/add some memory address to U-boot to activate serial USB output? Or do you have to use the UART pins to get early serial output? (I haven't tried/looked into it yet.)

I'm eagerly following this thread to see your progress, so keep us updated :D
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8718
Location: ~Brussels - Belgique

PostPosted: Mon Dec 28, 2020 1:48 pm    Post subject: Reply with quote

Hi,

I have a working Gentoo on my helios64 8)

I used that method :
- boot latest armbian and install it on eMMC (nand-sata-install)
- install an arm64 stage3 on sda
- for the kernel I use gentoo-sources + almost all armbian patches
- on the eMMC, rename "boot" to "boot.armbian", copy it to "boot.gentoo" and create a symlink "boot" to "boot.gentoo".
- my boot.cmd script is:
Code:
setenv load_addr "0x9000000"

echo "===================="
echo "=== GENTOO LINUX ==="
echo "===================="

echo "Boot script loaded from ${devtype} ${devnum}"

setenv bootargs "console=ttyS2,1500000 root=/dev/sda1 rootwait"

load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}Image-gentoo
load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}rk3399-kobol-helios64.dtb
fdt addr ${fdt_addr_r}
fdt resize 65536

booti ${kernel_addr_r} - ${fdt_addr_r}

# Recompile with:
# mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr

- I use the fancotrol config file from the official wiki (fancontrol comes from lm-sensors)


With this method, If it fails, I can reboot the helios64 in recovery mode, change the boot symlink, reboot armbian, fix the things, then reset the boot symlink and retry.

Later I could try an install from scatch, without using armbian... but there has no sense now, I want my Helios64 be functional soon.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Sat Jan 02, 2021 10:27 am    Post subject: Reply with quote

Helios64 is a rockchip SBC. It seems that rockchip SBCs require /boot and / to be wrapped inside android images with make_ext4fs.

Why can't rockchip SBCs just support raw GPT partitions?

At least, raspberry pi doesn't punish users with complications. Perhaps, I should stick to simpler SBCs or AMD64 machines.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8718
Location: ~Brussels - Belgique

PostPosted: Sun Jan 03, 2021 7:27 pm    Post subject: Reply with quote

crocket wrote:
Helios64 is a rockchip SBC. It seems that rockchip SBCs require /boot and / to be wrapped inside android images with make_ext4fs.

Why can't rockchip SBCs just support raw GPT partitions?

At least, raspberry pi doesn't punish users with complications. Perhaps, I should stick to simpler SBCs or AMD64 machines.


1. False, Helios64 boot from U-BOOT on eMMC, then loads any Linux kernel natively (U-BOOT)
2. I don't understand... you run your kernel and choose what partition types you can support
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Mon Jan 04, 2021 12:16 pm    Post subject: Reply with quote

xaviermiller wrote:
1. False, Helios64 boot from U-BOOT on eMMC, then loads any Linux kernel natively (U-BOOT)
2. I don't understand... you run your kernel and choose what partition types you can support


Downstream u-boot that comes with NanoPi R2S somehow requires /boot and / to be wrapped inside android images.
I think different downstream versions of u-boot are widly different.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8718
Location: ~Brussels - Belgique

PostPosted: Mon Jan 04, 2021 12:24 pm    Post subject: Reply with quote

this is not a nanopi...
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Mon Jan 04, 2021 12:42 pm    Post subject: Reply with quote

How did you compile and configure u-boot and other bootloader files for Helois64?

Most manufacturers don't really tell us how to build and install bootloader manually.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8718
Location: ~Brussels - Belgique

PostPosted: Mon Jan 04, 2021 12:53 pm    Post subject: Reply with quote

For now I use armian's UBOOT, until the Kobol wiki is completely up-to-date. AFAIK the sources are available and compilable for the Helios64 but I don't care now, I don't want to brick the bootloader.

Then I have my personal boot script in /boot that loads a Gentoo kernel + armbian patches and a full Gentoo system.

EDIT: here are the sources for U-BOOT
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Tue Jan 05, 2021 2:31 am    Post subject: Reply with quote

xaviermiller wrote:
For now I use armian's UBOOT, until the Kobol wiki is completely up-to-date. AFAIK the sources are available and compilable for the Helios64 but I don't care now, I don't want to brick the bootloader.

Then I have my personal boot script in /boot that loads a Gentoo kernel + armbian patches and a full Gentoo system.

EDIT: here are the sources for U-BOOT


I think I'm going to stick to AMD64 platform for a little longer. Time is scarcer than money.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum