[TUTORIAL] How to install EndeavourOS for Amlogic-Based TV Box

Hello there

I’ll explain to you how to install EndeavourOS for an amlogic tv box:

STEP 0: PREQUISITES:

1:Get an u-boot.ext and aml_autoscript and s905_atoscript files from ophub’s Armbian builds, this is necessary so that you’re box can load the u-boot.ext file and load EndeavourOS.

2: Install u-boot-tools on any Linux distro you got (you can look up how to do so.)

STEP 1: Flash the image: flash the Odroid N2 image of EndeavourOS ARM to an SD card you got. You may use either dd or balena etched or whatever you’re heart desires.

STEP 2: Edit the boot.ini file:

1:You may comment out the “ODROID U-BOOT-CONFIG” and “showlogo” lines by placing a “#” before them.

2:scroll down till you find a line that has the path /dtbs/amlogic/meson-g12b-odroid-n2.dtb or something like it, it would normally be in a if statement of four lines, comment three of those and keep one uncommented line, and replace the default dtb to the dtb of your choice.

STEP 3: Compile the .ini file to an executable .esc script:

1: On a linux machine that you had installed u-boot-tools on, open a terminal window on the first partition of you’re EndeavourOS install, and type this command: "mkimage -A arm64 -O linux -T script -C none -n “EnOS_tvbox_script” -d boot.ini boot.scr

"

STEP 4: Copy over the armbian bootloader and autoscripts:

Simply copy these files: aml_autoscript, s905_autoscript, u-boot.ext (make sure that the u-boot.ext file you will use is actually compatable with you’re box).

STEP 5: Actually booting the image:

You may boot the image, either by punching in “reboot update” command on a terminal emulator installed on the box, or by unplugging the box, and inserting the SD card, and holding the reset button (it might be in the av port, or in its dedicated hole.)

If everything works, you should see the text from the chain loaded u-boot binary show up, and it should execute the boot.scr file you compiled earlier,and it should boot you’re EndeavourOS install.

STEP EXTRA: Connecting to wifi

If you dont have a ethernet connection to you’re box, you can press ctrl+alt+f5 and it should show you a login screen, simple login as root, password is root, then, type in the terminal “nmtui” and then head over to “enable a connection”, and you should see wifi networks around you. Connect to you’re network, and press ctrl+alt+f2 to go back to the setup.

HEADS UP: Don’t expect everything to work like wifi, because this is an Odroid n2 build, it doesn’t have necessarily all the driver needed for you’re box, with that out of the way, you can now setup EndeavourOS and enjoy it, just remember to enable swap.

Enjoy!

Welcome to :enos: forums!