Install RatOS on a fresh Armbian install

Hi there, I have installed armbian os on a tv box with amlogic s905 and currently running klipper. Is there an easy way to install RatOS ?
19 Replies
blacksmithforlife
blacksmithforlife•2y ago
depends on what you mean by "easy". That board currently isn't supported, so you will have to do all the steps that the image build pipeline does, or you will have to create your own ratos image variant. With the later you can then submit a pull request and everyone can benefit from your work
harsh-harlequin
harsh-harlequin•2y ago
I can try, but I don't know where to start from. How do you build os image from the github repo ?
blacksmithforlife
blacksmithforlife•2y ago
At a high level: * you need to fork https://github.com/Rat-OS/RatOS * create your variant in https://github.com/Rat-OS/RatOS/tree/v2.x/config/armbian * make sure you are working on the 2.x branch https://github.com/Rat-OS/RatOS/blob/v2.x/.github/workflows/BuildImages.yml#L5 so that the github workflow will pick up your changes * create new modules if needed if you run into problems in https://github.com/Rat-OS/RatOS/tree/v2.x/src/modules * after pushing your changes, github should automatically start a build. Click on the "actions" tab near the top of the repo (for example here are some from RatOS https://github.com/Rat-OS/RatOS/actions) * after it is done running it will have produced an image. You need to download that image and burn to SD card and test that it works on the PI replacement board (in your case amlogic s905) * once it is working and all the features of ratos are working (wifi hotspot, configurator, etc) then you can submit a pull request
harsh-harlequin
harsh-harlequin•2y ago
Ok just tried to build but all builds failed installing crownsnest module. Installing crowsnest ... Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Hit:3 http://deb.debian.org/debian bullseye-backports InRelease Hit:4 http://security.debian.org bullseye-security InRelease Hit:6 https://deb.nodesource.com/node_16.x bullseye InRelease Hit:5 http://mirror.albony.xyz/armbian bullseye InRelease Reading package lists... Package git already installed. [SKIPPED] No Dependencies missing... [SKIPPED] Clone crowsnest repository ... Cloning into 'crowsnest'... Generating packages file ... ++++ echo_red 'build failed, unmounting image...' ++++ echo -e -n '\e[91m' ++++ echo build failed, unmounting image... build failed, unmounting image... I need some help here.
blacksmithforlife
blacksmithforlife•2y ago
link to the build?
harsh-harlequin
harsh-harlequin•2y ago
GitHub
try rebuild · myexec/RatOS_AmlogicS905@cbea5b0
The preconfigured Armbian image that makes it easy to run Klipper + Moonraker + Mainsail on your printer. - try rebuild · myexec/RatOS_AmlogicS905@cbea5b0
blacksmithforlife
blacksmithforlife•2y ago
GitHub
RatOS/start_chroot_script at v2.x · Rat-OS/RatOS
The preconfigured Raspberry Pi image that makes it easy to run Klipper + Moonraker + Mainsail on your printer. - RatOS/start_chroot_script at v2.x · Rat-OS/RatOS
blacksmithforlife
blacksmithforlife•2y ago
but it is also weird that all the builds are failing on installing crowsnest
harsh-harlequin
harsh-harlequin•2y ago
yes, I'm trying now to build it locally
blacksmithforlife
blacksmithforlife•2y ago
https://github.com/Rat-OS/RatOS/compare/v2.x...myexec:RatOS_AmlogicS905:v2.x If I recall correctly the armbian OS doesn't come with the pi user. So lines 8-10 are needed (but you currently have them commented out)
GitHub
Comparing Rat-OS:v2.x...myexec:v2.x · Rat-OS/RatOS
The preconfigured Raspberry Pi image that makes it easy to run Klipper + Moonraker + Mainsail on your printer. - Comparing Rat-OS:v2.x...myexec:v2.x · Rat-OS/RatOS
miklschmidt
miklschmidt•2y ago
This needs work after crowsnext v4, it currently doesn't compile. You can change the branch to legacy/v3 though, that should work. V4 is breaking in many ways
harsh-harlequin
harsh-harlequin•2y ago
ok will try, thanks
harsh-harlequin
harsh-harlequin•2y ago
Changed the base user to root:1234 as from https://docs.armbian.com/User-Guide_Getting-Started/#how-to-login, but failed again: https://github.com/myexec/RatOS_AmlogicS905/actions/runs/5072874419/jobs/9111162434, I think I need to add a default user for the build. Can I do this with a module ?
GitHub
Changed default user · myexec/RatOS_AmlogicS905@3c8a109
The preconfigured Armbian image that makes it easy to run Klipper + Moonraker + Mainsail on your printer. - Changed default user · myexec/RatOS_AmlogicS905@3c8a109
blacksmithforlife
blacksmithforlife•2y ago
All I had to do for official armbian image was https://github.com/jscancella/RatOS/blob/orange_pi_3lts/config/armbian/orangepi3lts#L5-L13 for creating a user
GitHub
RatOS/orangepi3lts at orange_pi_3lts · jscancella/RatOS
The preconfigured Raspberry Pi image that makes it easy to run Klipper + Moonraker + Mainsail on your printer. - RatOS/orangepi3lts at orange_pi_3lts · jscancella/RatOS
harsh-harlequin
harsh-harlequin•2y ago
ok I uncommented the pi user in the config and also set the older v3 version for the crawlsnest module and now the other images build successfully. Unfortunately mine fails again, much earlier this time. It tries to copy /usr/bin/qemu-aarch64-static with same source and destination: https://github.com/myexec/RatOS_AmlogicS905/actions/runs/5078232558/jobs/9122491049#step:2:13054
GitHub
setting crawnest v3 · myexec/RatOS_AmlogicS905@2ca8b81
The preconfigured Armbian image that makes it easy to run Klipper + Moonraker + Mainsail on your printer. - setting crawnest v3 · myexec/RatOS_AmlogicS905@2ca8b81
harsh-harlequin
harsh-harlequin•2y ago
I built it finally 🙂 now I'll try installing it.
harsh-harlequin
harsh-harlequin•2y ago
Ok so I managed to install it and run it on my mini m8s box and this is running my printer now. Also I did manage to run it on another box but after running shutdown command it's now bricked and won't boot anything. (I think this is the second box I brick after shutdown command, previously on libreelec ) Anyway every tv box is unique and needs the correct files to boot, described here: https://forum.armbian.com/topic/17106-installation-instructions-for-tv-boxes-with-amlogic-cpus/
Armbian Community Forums
Installation Instructions for TV Boxes with Amlogic CPUs
These instructions are for Amlogic CPUs for TV Boxes. Note: If you have previously run other distributions on the box such as coreelec the below installation will not work. You will need to restore the original android firmware before attempting the install. coreelec changes the boot environment ...
harsh-harlequin
harsh-harlequin•2y ago
So now should I request a pull or better describe the process in my own repository ?
generous-apricot
generous-apricot•16mo ago
Hi all, related to this topic, in case someone would be interested : I also got it working fine on an Amlogic S912 powered tv box (Alfawise H96+) !
Want results from more Discord servers?
Add your server