Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Rock5B AKA Rock Pi 5B
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
arborsexual
n00b
n00b


Joined: 24 Dec 2019
Posts: 17

PostPosted: Sun Feb 12, 2023 2:03 am    Post subject: Rock5B AKA Rock Pi 5B Reply with quote

Been sitting on my 16GB model Rock5B for months waiting for stuff like the wifi module, emmc, and such to come in. All got here today. Right now I am using dd to put the Radxa Android 12 image on the emmc to test out things, but ultimately I'd like to get gentoo going on this board. I am wondering where exactly to start though.

I know mainline linux support for this chip is not 100% yet, but there are other linux distros that have images for it, so there must be a way get gentoo going.

Any ideas?

Suggested reading?
_________________
~~
Ask me about tree facts!
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 439

PostPosted: Sun Feb 12, 2023 7:25 am    Post subject: Reply with quote

Their website has downloads for both Dedian and Ubuntu. Maybe, follow their instructions to get up and running with either one and look around in their working system to get an idea of what parts are needed for a working Linux system.
Back to top
View user's profile Send private message
JumboAg
Apprentice
Apprentice


Joined: 03 Mar 2007
Posts: 191
Location: Dallas, TX

PostPosted: Sun Feb 12, 2023 3:28 pm    Post subject: Reply with quote

I own a couple of different SOCs and the basic process is the same for each:

Assuming you can boot off at least two things (eMMC, micro SD card, USB stick)
use their stock ubuntu/debian image to get an OS on one drive , then do a hybrid stage3 install using the gentoo handbook for the rootfs on another.

Where you run into challenges is with the bootloader. It varies wildly from chip to chip. Most are some variant of u-boot.

I would recommend you first use their stock kernel, firmware, modules and DTB to get your gentoo rootfs running to prove a baseline install. From there, you can start getting creating trying a mainline kernel or gentoo-sources.


I currently have an allwinner orange pi fully booted using their kernel source but I did do my own compile after changing a few options. My amlogic and roc boards I'm still fighting various things.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 12, 2023 4:07 pm    Post subject: Reply with quote

arborsexual,

Provided you can boot from a removable device, you can make a hybird boot media with no access to an arm/arm64 chroot at all.

Partition the boot device
untar the Gentoo stage3 to its root
Unpick another system for its kernel, initrd and /lib/modules. Put them in place on the boot media.

Set the root password by copying the root line from a working /etc/shadow
Create symlinks in /etc/runlevels/* for the services you want to start.
Edit /etc/conf.d/* in the target root.

Its all standard handbook stuff without the aid of a chroot.

The only thing you can't do like this ... at least, I don't know how ... is to install grub and make a grub.cfg

It is possible to chroot if you really must, with the aid of qemu-static.
emerge works like that 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
n1ese
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2019
Posts: 80

PostPosted: Sun Apr 09, 2023 2:13 pm    Post subject: Reply with quote

Looking at thing gentlemans blog post from a few months ago, it looks very possible but there are some hacks to the bootloader involved.

https://www.famera.cz/blog/computers/gentoo-minimal-radxa-rock5b.html

I'm thinking of ordering a Rock 5B as a replacement for my Raspberry Pi4 as I need some better CPU performance and more memory. I hope your experiences are going well.
Back to top
View user's profile Send private message
Stilzchen
n00b
n00b


Joined: 24 Mar 2005
Posts: 70
Location: Beelen

PostPosted: Sat Jun 10, 2023 9:41 am    Post subject: Reply with quote

I got my Rock5B some month ago, flashed Armbian, DietPi and Radxas own Rock5B Debian to some SD cards and tested around a while.
After I found and installed a working NVME SSD I followed the famera article and the SPI flash instructions to install Gentoo to NVME.

Works great for me.
Back to top
View user's profile Send private message
ShorTie
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 101

PostPosted: Thu Jun 15, 2023 8:33 pm    Post subject: Reply with quote

I too have flashed the nvme boot flash.
Now I can not boot from sdcard .. :(~
Any idea's ??
Back to top
View user's profile Send private message
Stilzchen
n00b
n00b


Joined: 24 Mar 2005
Posts: 70
Location: Beelen

PostPosted: Sat Jun 24, 2023 8:57 am    Post subject: Reply with quote

I had that too.
I don't need that switch between sdcard and NVME but I agree that there should be an easy method for dual booting.

My working solution:
Delete the SPI with the zero.img
Code:
dd if=zero.img of=/dev/mtdblock0

and than system boots from sdcard again.
If you want to boot from NVME than flash SPI again.

Maybe another solution would be a boot partition at sdcard with a root partition at NVME. Than you always boot from sdcard and can change the running system easily by changing sdcards.
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