ophub / amlogic-s9xxx-armbian

Support for Armbian 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
5.69k stars 1.82k forks source link

S922x安装jellyfin解码4K压力大 #326

Closed stevenliuit closed 2 years ago

stevenliuit commented 2 years ago

你好 我用jellyfin 解码4K视频 Cpu有一个飙升很高 其他平稳 但是在看视频的时候 4k会很费力 安卓系统的时候看不卡顿 ffmpeg也是最新的 是不是mali的开源驱动解码有问题啊?

JFLim1 commented 2 years ago

There are differences according to different devices. I didn't add it when I used it, and the memory recognition is normal.

Interesting. How do I recover the loss RAM? Device is Beelink GT King Pro (Rev A). Armbian-Jammy-5.15.41-flippy-73+o. RAM indicated is 3.26GB booted without u-boot.ext

jfl@armbian:~$ uname -a
Linux armbian 5.15.41-flippy-73+o #123 SMP PREEMPT Wed May 18 17:08:50 CST 2022 aarch64 aarch64 aarch64 GNU/Linux
jfl@armbian:~$ cat /etc/ophub-release
VERSION_CODEID='ubuntu'
VERSION_CODENAME='jammy'
FDTFILE='meson-g12b-gtking-pro.dtb'
UBOOT_OVERLOAD='u-boot-gtkingpro-rev-a.bin'
MAINLINE_UBOOT='/usr/lib/u-boot/'
ANDROID_UBOOT='/usr/lib/u-boot/'
SOC='s922x-reva'
PACKAGED_DATE='2022-04-30'
KERNEL_VERSION='5.15.41'
K510='0'
jfl@armbian:~$ ls /boot
aml_autoscript                  u-boot-n1.bin
aml_autoscript.cmd              u-boot-odroid-n2.bin
Android                         u-boot-p201.bin
armbian_first_run.txt.template  u-boot-p212.bin
boot.bmp                        u-boot-s905.bin
boot.cmd                        u-boot-s905x2-s922.bin
boot-emmc.cmd                   u-boot-s905x-s912.bin
boot-emmc.ini                   u-boot.sd
boot-emmc.scr                   u-boot-sei510.bin
boot.ini                        u-boot-sei610.bin
boot.scr                        u-boot-tx3-bz.bin
config-5.15.41-flippy-73+o      u-boot-tx3-qz.bin
dtb                             u-boot-u200.bin
emmc_autoscript                 u-boot-ugoos-x3.bin
emmc_autoscript.cmd             u-boot.usb
initrd.img-5.15.41-flippy-73+o  u-boot-x96max.bin
LOST.DIR                        u-boot-x96maxplus.bin
s905_autoscript                 u-boot-zyxq.bin
s905_autoscript.cmd             uEnv.txt
System.map-5.15.41-flippy-73+o  uInitrd
u-boot-e900v22c.bin             uInitrd-5.15.41-flippy-73+o
u-boot-gtking.bin               vmlinuz-5.15.41-flippy-73+o
u-boot-gtkingpro.bin            zImage
u-boot-gtkingpro-rev-a.bin

image

ophub commented 2 years ago

@JFLim1 Writing to the mainline u-boot can correctly identify the memory size

Snip20220524_5

This device has never found a user, and I have not tested whether this mainline u-boot can be written to emmc for use. If you know how to restore the system, you can test if it works.

# Add mainline uboot
vi /etc/ophub-release
MAINLINE_UBOOT='/usr/lib/u-boot/gtkingpro-u-boot.bin.sd.bin'

# Download the latest version of the kernel update script
wget https://raw.githubusercontent.com/ophub/amlogic-s9xxx-armbian/main/build-armbian/common-files/rootfs/usr/sbin/armbian-update -O /usr/sbin/armbian-update

# Update to a different version of the kernel
armbian-update 5.15.40
JFLim1 commented 2 years ago

This device has never found a user, and I have not tested whether this mainline u-boot can be written to emmc for use. If you know how to restore the system, you can test if it works.

@ophub

For the moment this device is also being used as home entertainment for family using Android to stream video and as a daily mini pc (linux). so it is not convenient for me to install mailine u-boot on the EMMC.

But if it works by install the mainline u-boot on USB Flash boot image then I would like to test it out with your guidance on how to install the mainline u-boot on the USB Flash drive. Thanks.

stevenliuit commented 2 years ago

This device has never found a user, and I have not tested whether this mainline u-boot can be written to emmc for use. If you know how to restore the system, you can test if it works.

For the moment this device is also being used as home entertainment for family using Android to stream video and as a daily mini pc (linux). so it is not convenient for me to install mailine u-boot on the EMMC.

But if it works by install the mainline u-boot on USB Flash boot image then I would like to test it out with your guidance on how to install the mainline u-boot on the USB Flash drive. Thanks.

If you want to restore the system by writing emmc, download Beelink_GT-King_Pro_911P0_090720_Amlo.zip from the official website, this kind of similar flashing package, and then use Amlogic USB Burning Tool to restore the Android system. Or check out other people's videos using: https://www.youtube.com/watch?v=LuCTH0NRi3Y

stevenliuit commented 2 years ago

我问了一下f大,他说硬解模块是 meson_vdec, 可用modprobe meson_vdec装载,但还是需要应用软件支持才行。你看看jellyfin是否支持

我是不是没解了啊?

ophub commented 2 years ago

如果不支持就先这样吧

JFLim1 commented 2 years ago

Download the latest version of the kernel update script wget https://raw.githubusercontent.com/ophub/amlogic-s9xxx-armbian/main/build-armbian/common-files/rootfs/usr/sbin/armbian-update -O /usr/sbin/armbian-update

@ophub ,

Noted. Have updated armbian-update with the above command.

> # Add mainline uboot
> vi /etc/ophub-release
> MAINLINE_UBOOT='/usr/lib/u-boot/gtkingpro-u-boot.bin.sd.bin'

Just to clarify, if I add the above "MAINLINE_UBOOT='/usr/lib/u-boot/gtkingpro-u-boot.bin.sd.bin'" to /etc/ophub-release and issue the command "sudo armbian-update 5.15.43"

Will it automatically install the mainline u-boot into the EMMC? Will the Android in EMMC also be wipeout or Android can still boot?

ophub commented 2 years ago

Installed on the device running on your current system. Don't try it if you're on USB, it only makes sense on EMMC.

If you want to test whether the emmc supports writing to the mainline u-boot, you can use armbian-ddbr to back up the Android system in the current device emmc to the usb, and you can use this backup to restore the Android system later.

JFLim1 commented 2 years ago

Installed on the device running on your current system. Don't try it if you're on USB, it only makes sense on EMMC.

If you want to test whether the emmc supports writing to the mainline u-boot, you can use armbian-ddbr to back up the Android system in the current device emmc to the usb, and you can use this backup to restore the Android system later.

@ophub, Thanks. For the time being will stick with booting from USB. The device is being used daily for home entertainment -- Android.

ophub commented 2 years ago

https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/armbian-docs#113-how-to-restore-the-original-android-tv-system

I just added the instructions for armbian-ddbr for you

JFLim1 commented 2 years ago

I just added the instructions for armbian-ddbr for you

Thank you. You are doing a fantastic job in supporting the Amlogic TV Box community.

Device is being use daily for streaming video on Android by other members so it is not convenient currently to erase Android eventhough it looks relatively safe and easy to restore Android on emmc.

So I take it currently with kernel 5.15-flippy (boot without u-boot.ext) on GT King Pro Rev A the RAM will available will be 3.26GB without mainline u-boot.on EMMC.

To answer your question whether GT King Pro Rev A can install mainline u-boot on EMMC, if not mistaken spikerguy from Manjaro Team also has a GT King Pro Rev A and he has install mainline Manjaor Arm on EMMC.