ophub / amlogic-s9xxx-openwrt

Support for OpenWrt in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
1.93k stars 1.7k forks source link

Openwrt H96MAX RK3318 #378

Closed yoelwib11 closed 1 year ago

yoelwib11 commented 1 year ago

I see that there is a dtb for the a95x rk3318 on new kernel, but i don't see any firmware for that box. I am using h96max box with rk3318. So how do i use openwrt using this box?

Thank you so much.

ophub commented 1 year ago

need u-boot

yoelwib11 commented 1 year ago

Yes i have. But which firmware should i use?

ophub commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/documents#1215-how-to-add-new-supported-devices

12.15

https://github.com/ophub/amlogic-s9xxx-armbian/blob/0d6a02d871cf46f8f7b023c59f43eecde76d9ca8/build-armbian/armbian-files/common-files/etc/model_database.conf#L165

u-boot.itb idbloader.img

openwrt is the same as armbian. Do you have these two u-boots?

yoelwib11 commented 1 year ago

Yes i have both. So, what should i do? Please tell me how.

ophub commented 1 year ago

Upload these files, I will make one by hand, and you can test whether it can be used.

Do you use armbian? This is the same as openwrt startup requirements, if armbian can start normally, openwrt is fine.

https://github.com/ophub/amlogic-s9xxx-armbian

yoelwib11 commented 1 year ago

H96 Max RK3318.zip

ophub commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-openwrt/releases/tag/OpenWrt_Aml_lede_02.06.2323

download: openwrt_rk3318_h96max.img.gz

Set the box to boot from USB/TF/SD: https://github.com/ophub/amlogic-s9xxx-openwrt/tree/main/router-config#1010-set-the-box-to-boot-from-usbtfsd

Test whether it can start normally Default ip: 192.168.1.1 Username: root Password: password

It is best to connect the device to the monitor, and you can see the result by observing the startup code. After the code stops running, press Enter on the keyboard to see the colored banner

yoelwib11 commented 1 year ago

I can't boot into openwrt. When i boot into armbian via sdcard it works. Maybe because of the partition difference? The armbian boot partition can be opened in windows and i can edit it. armbianh96max

yoelwib11 commented 1 year ago

Btw the firmware on my box is still an Android TV.

ophub commented 1 year ago

I made it using the 6.1.10 kernel. I use your 2 u-boots, and the dtb file uses the one with h96max. As long as these three files are correct, it should be able to start normally in theory.

See the link above for how to boot from USB.

Can the combination of your dtb and u-boot be used normally in other firmware tests? There is no h96max dts of rk3318 in the kernel source code, where did you compile it from, and what is the kernel version?

yoelwib11 commented 1 year ago

I just downloaded it from https://cloud.mail.ru/public/KGXQ/a5GcEg8t9/Rockchip/LINUX/Armbian_rk3318.rar. And then i burn trust.img and uboot.img.

Yes but why your firmware can't be changed the dtb file? I mean unlike amlogic firmware which boot partition is editable in Windows.

ophub commented 1 year ago

amlogic is in fat32 format, so it can. This rockchip uses the ext4 format, which does not support opening.

You can mount and modification under ubuntu/armbian and other systems

sudo losetup -P -f --show openwrt.img
sudo mount /dev/loopxxxp1 xxxx
sudo mount /dev/loopxxxp2 yyyy
yoelwib11 commented 1 year ago

rk3318-h96max-box.zip

Can you edit the dtb with this one please? Maybe it is because dtb. Now i am boot Armbian with this dtb and kernel 6.1.9-rockchip64 on emmc.

yoelwib11 commented 1 year ago

I just change dtb by myself but stuck in here. Just reboot and reboot. Can you help me please? IMG_20230208_200122

ophub commented 1 year ago

Armbian_5.99_Rk3328-tv_Debian_buster_default_4.4.154_desktop_20191121.img

kernel: 4.4.154-rk3328-tv

LABEL Armbian
  LINUX /Image
  INITRD /uInitrd
  FDT /dtb/rockchip/rk3328-mx10-fast.dtb
#  FDT /dtb/rockchip/rk3328-a5x.dtb
#  FDT /dtb/rockchip/rk3328-box-trn9.dtb
  APPEND root=LABEL=ROOTFS rootflags=data=writeback rw console=uart8250,mmio32,0xff130000 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 

What is the purpose of the rk3328 Armbian you provided? What does this have to do with your H96MAX(rk3318)?

Where did your U-BOOT and DTB come from?

yoelwib11 commented 1 year ago

Finally. Thank you so much. I just change base firmware armbian on emmc and flash your openwrt firmware on sdcard, change dtb with wifi on. But it can't show on monitor. Just blank. I don't know why. 16758810743088203555681149615797

ophub commented 1 year ago

Openwrt is configured and managed daily through browser access or ssh access without a monitor. No HDMI output is not supported for DTB files.

osnipezzini commented 1 year ago

Finally. Thank you so much. I just change base firmware armbian on emmc and flash your openwrt firmware on sdcard, change dtb with wifi on. But it can't show on monitor. Just blank. I don't know why. 16758810743088203555681149615797

Can you post how do you can make this work ?

aagym888 commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-openwrt/releases/tag/OpenWrt_Aml_lede_02.06.2323

download: openwrt_rk3318_h96max.img.gz

Set the box to boot from USB/TF/SD: https://github.com/ophub/amlogic-s9xxx-openwrt/tree/main/router-config#1010-set-the-box-to-boot-from-usbtfsd

Test whether it can start normally Default ip: 192.168.1.1 Username: root Password: password

It is best to connect the device to the monitor, and you can see the result by observing the startup code. After the code stops running, press Enter on the keyboard to see the colored banner

can u send the download link again?