DietPi on RK3328 Rk3318 TVBOX

Hi

Dietpi IMG for RK3328/18 TVBOX
DietPi_ROCK64-ARMv8-Bullseye_RK3328_RK3318.img

DietPi_ROCK64-ARMv8-Bookworm_RK3328_RK3318.img

  1. Burn to sdcard (balenaEtcher)
  2. Boot from sdcard and setup Dietpi on TVBOX

TVBOX run on 1.1 Ghz
Edit /boot/armbianEnv.txt to enable 1.3 Ghz

Add

overlays=rk3318-box-cpu-hs

Fix led
Add to overlays=…

overlays=rk3318-box-cpu-hs rk3318-box-led-conf1

Tested on H96max+ RK3328 RAM 4GB ROM 32

Modification to DietPi_ROCK64-ARMv8-Bullseye.img

Added RK3328 TVBOX uboot to DietPi_ROCK64-ARMv8-Bullseye.img
Added DTB fdtfile=rockchip/rk3318-box.dtb to /boot/armbianEnv.txt

Uboot extracted from Multitool IMG . Armbian for RK3318/RK3328 TV box boards

sudo dd if=multitool.img of=uboot_multitool_rk3328.img bs=1M count=16 conv=fsync

Uboot write to DietPI IMG.
Replace /dev/SDCARD (sdcard Dietpi)

sudo dd if=uboot_multitool_rk3328.img of=/dev/SDCARD conv=fsync bs=1 count=442
sudo dd if=uboot_multitool_rk3328.img of=/dev/SDCARD conv=fsync bs=512 skip=1 seek=1

Credits go to jock. Maintainer of Armbian project for RK3318/RK3328 TV box img and developer of Multitool
U-boot from Multitool to boot dietpi.

2 Likes

Nice. This is a quite cheap hardware option.
Could you post a link of the system you used? There are a couple of such TV boxes with a RM3328 available (also with a RM3318), I do not know if all H96max systems are identical and can be used.

H96 MAX Plus RK3328

Look at forum:Armbian for RK3318/RK3328 TV box boards

For more HW info.

I am testing a img for amlogic s90Xx tvboxes.
Got it running on X96mini s905w.
Need some more testing before posting back her.

1 Like

First of all thanks for the work.
I tried to put dietpi with your image on my beelink a1 (rk3328 4gb ram) but it stuck at
starting Diet-Preboot

I didn’t modify anything I burnt the img you provide with balena etcher

Thank you

EDIT:
it works I tried with another sd card and it boot correctly but ethernet doesnt work in Dietpi-Config it says :
Ethernet : Available | [On] | Disconnected

I put static IP and change my router settings but nothing works

New DietPi_ROCK64-ARMv8-Bookworm_RK3328_RK3318.img

Hope this fix the problem for Ethernet.

Thanks I will test it.

EDIT : I burnt the sd card but it doesnt boot I try with and without the toothpick also tried with another sd card aswell, nothing.
I reburnt Dietpi Bullseye and it works so it’s not my sdcard

You don’t need to use toothpick pressing hidden button to update boot settings. Only needed on Amlogic devices s905-905x3

Have you used other OS like Armbian ?
I assume you have Android on your tvbox.

Not all RK3328 tvboxes can boot when Android are installed

I recommend reading forum Armbian for RK3318/RK3328 TV box boards

RK3328 always start booting from the internal flash, then search for bootable sdcard. Some tvbox work fine starting from internal flash, some does not when booting linux like DietPi.

You need a clean boot from sdcard to load all the boot settings from there. For this to work you need to erase the internal flash.

WARING , always make a backup of internal flash from Multitool.

Info from Armbian for RK3318/RK3328 TV box boards
Download Multitool: ( forum link)
Burn the Multitool on an SD card
Plug the SD card in the TV box and plug in the power cord. After some seconds the blue led starts blinking and the Multitool appears;

Menu option

  1. Backup flash
  2. Erase flash
  3. Power off
  4. Boot DietPi from sdcard

if all fails restore backup from Multitool

Test other dtb. ( rk3328-a1.dtb )

Edit /boot/dietpiEnv.txt

#fdtfile=rockchip/rk3318-box.dtb
fdtfile=rockchip/rk3328-a1.dtb

Have tested new DietPi_ROCK64-ARMv8-Bookworm_RK3328_RK3318.img

H96Max+ RK3328 TVBOX

*Works with Android on internal flash and when flash erased.
Ethernet OK DietpI

1 Like

Hello,
I didnt have armbian on that tv box so I still have android on internal flash not now because i did the flash through multitool and it still dont want to boot also tried several .dtb but like I said the previous version boot like a charm but no ethernet.

I really dont know how this things work but when I extract bulseye version I have the os folders (boot, root, sys …) but when I extract the bookworm I have a 0.img and 1.fat maybe its that otherwise can you explain that to me I cant find any explanation on internet.
Thanks

EDIT: I saw a custom .dtb for the beelink a1 on the armbian forum and maybe a fix for ethernet I will test it on Bullseye
EDIT2 : I tried the .dtb file you provide with the bullseye version and IT WORKSSS ethernet works ! right now I will test with this one to see what I can do with that tv box. Thanks a lot @gausus

1 Like

Great your got it working

You are not supposed to use Multitool to flash DietPi to internal flash.
You can do that when everything works booting from sdcard.

I recommend:
First test DietPi , (do not use Multitool)

If unable to boot DietPi

Use Multitool
Make backup of internal flash (Android)
Erase flash
Then boot DietPi from sdcard

This will ensure all boot settings are loaded from sdcard

Which DTB did you use ?

Have uploaded new version of Bookworm image , removed fat partition.
Not needed , my tvbox boots fine only ext4 partition.

TIPS
Use gnome-disks to mount images on Ubuntu (PC)
sudo apt install gnome-disk-utility

Open GUI : disk

Top menu
Disks [ :::: ] << Click
Attach Disk Image
[v] Set up read-only loop device < untick to enable write support

Software used on tvbox:
AdGuard Home
Wireguard server ( VPN to home)
PXE boot server ( boot ISO and nfsroot true network)
Backup server , connect SSD to USB3 port (custom bash script using rsync and ssh )

1 Like

Hello, I didn’t use multitool to flash diet I used it to erase the internal flash.
At first I used rk3328-evb then I use what you suggested rk3328-a1 and it works
Thanks for the instructions