DietPi img for Amlogic S905x-s905x3 TVBOX

Img based on DietPi_OdroidC4-ARMv8-Bullseye.img

S90Xx_TVBOX_DietPi_OdroidC4-ARMv8-Bullseye.img

Img setup to boot s905x

Edit /boot/dietpiEnv.txt to change dtb used
Change fdtfile=amlogic/… <— DTB name from folder /boot/dtb

u-boot.ext loaded from fatpart to start Dietpi boot (boot.scr)

First boot

Edit : /boot/dietpiEnv.txt and change dtb if needed
For s905x2 and s905x3
Rename : u-boot-s905x2-s922.mnj —> u-boot.ext

  1. Innsert sdcard and press button inn A/V port
  2. Connect power
  3. Release button after 5sec

Script and files to convert DietPi_OdroidC4.img to boot TVBOX

download and extract zip
cd to folder
Download new img of DietPi_OdroidC4-ARMv8 to scrit folder
Run as root from terminal (sudo su)

bash dietpi_img_maker_s90X.sh DietPi_OdroidC4-ARMv8-Bullseye.img

Scrit create img : S90Xx_TVBOX_DietPi_OdroidC4-ARMv8-Bullseye.img

Install to internal storage (emmc)

Warning it’s possible to make you box unable to boot
you then may need to reflash Android

Boot from sdcard

sudo su
cd /boot/BOOT_EMMC
bash install-dietpi.s90x.emmc.sh

IMG tested on:
X96x mini : s905w
X96 max+ : s905x3

inxi --full

System:    Host: DietPi Kernel: 6.0.13-meson64 aarch64 bits: 64 Console: tty 0 Distro: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: ARM Device System: Amlogic Meson GXL (S905W) P281 Development Board details: N/A 
CPU:       Info: Quad Core model: ARMv8 v8l variant: cortex-a53 bits: 64 type: MCP 
           Speed: 1200 MHz min/max: 100/1200 MHz Core speeds (MHz): 1: 1200 2: 1200 3: 1200 4: 1200 
Graphics:  Device-1: meson-gxl-dw-hdmi driver: meson_dw_hdmi v: N/A 
           Device-2: meson-gxl-vpu driver: meson_drm v: N/A 
           Device-3: meson-gxl-mali driver: lima v: kernel 
           Display: server: X.org 1.20.11 driver: loaded: lima note: n/a (using device driver) tty: 156x36 
           Message: Advanced graphics data unavailable in console for root. 
Audio:     Device-1: meson-gxl-dw-hdmi driver: meson_dw_hdmi 
           Device-2: gx-sound-card driver: gx_sound_card 
           Sound Server: ALSA v: k6.0.13-meson64 
Network:   Device-1: meson-gxbb-dwmac driver: meson8b_dwmac 
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: ae:94:11:90:99:37 
           Device-2: pwm-clock driver: pwm_clock 
Drives:    Local Storage: total: 14.56 GiB used: 1.35 GiB (9.3%) 
           ID-1: /dev/mmcblk1 model: AWMB3R size: 14.56 GiB 
Partition: ID-1: / size: 12.84 GiB used: 1.35 GiB (10.5%) fs: ext4 dev: /dev/mmcblk1p2 
Swap:      Alert: No Swap data was found. 
Sensors:   Missing: Required tool sensors not installed. Check --recommends 
Info:      Processes: 151 Uptime: 4m Memory: 1.88 GiB used: 419.5 MiB (21.8%) Init: systemd runlevel: 5 Shell: Bash 
           inxi: 3.3.01 

lsblk -f

NAME         FSTYPE FSVER LABEL     UUID                                 FSAVAIL FSUSE% MOUNTPOINT
mmcblk1                                                                                 
|-mmcblk1p1  vfat   FAT16 BOOT_EMMC EF16-343F                                           
`-mmcblk1p2  ext4   1.0   ROOT_EMMC 32b62bd5-f747-456d-9490-a1bf169f29de   11.5G    10% /
mmcblk1boot0                                                                            
mmcblk1boot1   

thx for sharing this possibility :slight_smile:

Keen to try this out!

Low power servers FTmW!

I am trying to install on a S905X3 box, when I burn the image [S90Xx_TVBOX_DietPi_OdroidC4-ARMv8-Bullseye.img] I am not seeing dtb folder or dietpiEnv.txt. Any help much appreciated.

You have to open / mount the image on Linux (Ubuntu).
Only first partitions visible from Windows 10.

Img have 2 partitions.

  1. FAT BOOT_DIETPI ; Chain loading u-boot.ext to start boot.scr on ext4 part.
  2. ext4 : boot.scr script start Dietpi from second part.

Img default setup to boot S905x u.boot.exe

To boot x905x3

  1. part FAT rename or delete u-boot.ext ( x905x)
    rename u-boot-s905x2-s922.mnj → u-boot.ext

  2. part ext4 : edit /boot/dietpiEnv.txt
    Comment line: like this (add # start of line)

# fdtfile=amlogic/meson-gxl-s905x-p212.dtb

Uncomment line for x905x3 / remove # start of line)

fdtfile=amlogic/meson-sm1-x96-air.dtb

# DTB tvbox folder /boot/dtb
# Default boot s905x  
# s905x
fdtfile=amlogic/meson-gxl-s905x-p212.dtb
# s905w  
#fdtfile=amlogic/meson-gxl-s905w-p281.dtb
# S912
#fdtfile=amlogic/meson-gxm-q200.dtb
# s905x3
#fdtfile=amlogic/meson-sm1-x96-air.dtb
# More dtb to test inn folder /boot/arm9xxx_dtb
# fdtfile=../arm9xxx_dtb/meson-sm1-x96-max-plus.dtb
# USB

First boot you need to update bootscript on tvbox (aml_autoscript)

Innsert sdcard and press button inn A/V port
Connect power
Release button after 5sec

There are more dtbs to test if not booting.

# More dtb to test inn folder /boot/arm9xxx_dtb
# fdtfile=../arm9xxx_dtb/meson-sm1-x96-max-plus.dtb
1 Like