-
Posts
64 -
Joined
-
Last visited
Reputation Activity
-
Ben N Voutour reacted to chinhhut in CSC Armbian for RK3318/RK3328 TV box boards
I have a T9 box (2G memory & 16GB flash) and just install Armbian 21.11 - Debian Bullseye minimal - mainline kernel 5.14.14 successfully to eMMC according to the guide.
Everything seems to work well until I tried to unplug the adapter and then replug the adapter again. After that, the box unable to start even I tried to unplug/replug the adapter several times again. There is only black screen via HDMI output.
Of course, I can install Armbian to the eMMC from scratch again but I'm afraid the "black screen" error above will happen.
@jockdo you have any suggestions to fix this? Please let me know if you need any detail steps or log to debug.
Thank you very much for your great work again.
-
Ben N Voutour reacted to chinhhut in CSC Armbian for RK3318/RK3328 TV box boards
I did not run the rk3318-config yesterday, just keep default. But I run the "apt get upgrade" and also forgot to run the following command after installing to eMMC:
Run apt-mark hold linux-image-edge-rockchip64 linux-dtb-edge-rockchip64 to avoid the upgrade of kernel with the armbian official one, since it still does not contain rk3318 That would be the reason the kernel of my box was updated to the latest one from armbian official. It did not contain 3318 dtb so the box was unable to boot.
Today, I just re-install from scratch again then run the hold command to prevent to upgrade the kernel. The "black screen" error is not happened again up to now even unplug/plug about 3 times.
Thank you very much for your quick response.
-
Ben N Voutour reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
ook thanks for reporting! Much better to know that it wasn't a dtb/kernel fault
-
Ben N Voutour reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards
Hi all, So I started from scratch, everything works fine without any overlays but this morning I tried adding overlays=rk3318-box-led-conf3 in armbianEnv.txt and the box freezes at startup
-
Ben N Voutour reacted to Gausus in CSC Armbian for RK3318/RK3328 TV box boards
EDIT:
Try forcing mode on HDMI
Add new line inn armbianEnv.txt
sudo nano /boot/armbianEnv.txt
extraargs=video=HDMI-A-1:D drm.edid_firmware=edid/1920x1080.bin
# OR you can test this setting
extraargs=video=HDMI-A-1:D drm.edid_firmware=HDMI-A-1:edid/1920x1080.bin video=HDMI-A-1:1920x1080
# IF not working test lower res like 1024x768
# Y can set different refresh rate to : 1024x768@30
extraargs=video=HDMI-A-1:D drm.edid_firmware=HDMI-A-1:edid/1024x768.bin video=HDMI-A-1:1024x768@30
If working change res after login from Settings > Display ( Xfce)
More info her LINK1 : LINK2
-
Ben N Voutour reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
Very strange...
May I ask you if you're using the sdcard or the system is installed on emmc?
Also if you can edit armbianEnv.txt and set verbosity=10 maybe the kernel provides some more hints.
At the moment I'm running out of ideas: a full dmesg from serial would give some hints on what is going on
I need some time to think about the issue...
-
Ben N Voutour reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards
At moment, I have system just on sd-card..
I switched to verbosity = 10 but then it scrolls too fast on the screen, suddenly I tried to film it and bring out some photos but hey it's not super easy ..
It gives a lot of image very blurry finally I did the best, at the end I only have 5 lines with the rest of the black screen .. Hope that can help you ..
-
Ben N Voutour reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards
copy of dmesg without rk3318-box-cpu-hs and rk3318-box-led-conf3 => https://paste.yunohost.org/ogasoqumeq.vbs
-
Ben N Voutour reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
@MX10.AC2N
What is a sec... there is something that definitely should not be there. In your dmesg log I see:
[ 2.326648] rk3328-dmc ff780000.dmc: current ATF version 0x101
Instead the expected message from a freshly installed system (debian bullseye) is this:
[ 2.307538] rk3328-dmc ff780000.dmc: trusted firmware need to update or is invalid
On you system the DRAM memory controller (DMC) driver is definitely active, while it should not be! This is incredibly unexpected!
Now I tried both the latest images on my box and the DMC does not activate because there is the need for a bootloader piece of code I didn't yet plugged into, so I wonder what the hell is going on!
Do you ever installed the older image with legacy kernel in eMMC or is there original Android in eMMC?
This is absolutely strange, it looks like the bootloader is not what it is expected to be!
By the way to fix this issue, which is potentially causing you a system freeze or kernel fault, substitute /boot/dtb/rockchip/rk3318-box.dtb with the one attached here.
rk3318-box.dtb
-
Ben N Voutour reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards
Thank again @jock
So on the emmc I still have the armbian bulleyes system from the station-m1 image
So I replaced the rk3318-box.dtb file (yours is slightly heavier 63761 bytes against 62913 for the dtb already present in the image) here is the new dmesg => https://paste.yunohost.org/alatoyakud.md
-
Ben N Voutour reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
Ahhh ok, we got the right explanation.
Now the message is properly gone from dmesg.
The problem is this: the box always boots from eMMC because there is a valid bootloader there. The bootloader is in reality composed of many parts executed one after another.
The station-m1 bootloader contains a thing that is called ATF (Arm Trusted Firmware). This piece of software is like a protected sandbox, something that runs outside the kernel or, if you prefer, above the kernel. It can whatever do it wants, can even stop the linux kernel. In fact it controls some very low level things, like system reset, core initialization, standby/resume, and so on...
It also controls the RAM frequency scaling, so memory can switch from 300 Mhz up to 800 Mhz and more.
Now there are two "flavours": the proprietary rockchip ATF (compiled by rockchip with their own customizations) and the public one provided by ARM.
The proprietary ATF is fully-fledged, but actually we don't really know what is inside: it's a blob provided by rockchip.
The public opensource ATF has just basic features, but we know it is harmless.
When I say harmless I want to stress out the fact that the ATF can peek his nose everywhere in the system, in fact it is widely used to implement DRM (Digital Rights Management) and HDCP (HDMI Copy Protection) features in tv boxes, to prevent piracy and restrict user rights in some form.
A proof of some harmful behaviour (not yet fully understood) is the fact that if I run rk3318 boards with proprietary ATF, the system crashes when cpu frequency is > 1.1Ghz. 1.1Ghz is the advertised speed for the rk3318 chip.
When I run the opensource ATF, rk3318 boards runs happy at 1.3 Ghz or even above.
Now this behaviour is a bit suspect: I don't want to state that the rockchip ATF is crashing the system on purpose to limit the frequency speed of the chip, but if we consider the final effect, it is so.
All this long explanation is to say that maybe the bootloader installed in the eMMC may cause headaches of some sort. I don't know if there are limiting behaviours on rk3328 too, but as we are used to say in Italy, the wolf loses the hair but does not lose the vice (ie: what they do once, they can do again)
It would be wise to clean the eMMC bootloader. If you're not afraid to lose the eMMC installation, you could erase the eMMC with blkdiscard.
If you don't want to lose it, you may make a backup of the first megabyte of the eMMC on the sdcard, zero-fill the first megabyte of the eMMC, and finally reboot.
Otherwise leave it as-is and just and see what happens with led-conf3 overlay again.
-
Ben N Voutour reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards
Hi @jock and thank you for these explanations it enlightens my knowledge a little more, suddenly I left the emmc as it is and tried adding overlays, it works I was able to put led-conf3 and cpu-hs without problem here is the copy of dmesg => https://paste.yunohost.org/ewutojutal.md
However I come back to your explanations, you indicate that ATF would be useful for DRM rights, suddenly this attracts my interest because I am looking for a solution to be able to read the amazon prime videos and unfortunately I still have this damn message missing drm rights .. do you know a parade with this problem? I looked a lot on Github, I even tried a few installs but nothing convincing, often the problem is that we are under arm64 (no drm rights under arm64) because with armhf apparently there will be solutions .. Y -will there be a way to build a multiarch arm64 / armhf image or maybe just an armhf image ..? For the moment I am in the idea of using a docker like https://github.com/HenningThiemann/docker-chromium-armhf ..
Thanks again, apparently the problems seem to be solved, I will go back to 1.3GHz.
-
Ben N Voutour reacted to Tarzanus in CSC Armbian for RK3318/RK3328 TV box boards
I tried downloading and running the latest image from SD card. I get kernel panic at boot. Anyone knows how to start it successfully? It's Rockchip based box A95X Z2.
-
Ben N Voutour reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
Glad to hear everything is back to normal.
About the Amazon DRM etc... I don't know anything about. I see that libreelec is downloading chrome and extracting the widewine DRM binary to let some plugins work, but I did not ever try Amazon Prime and don't know what are the requirements for that.
The proprietary ATF may provide a "secure" application of some sort for DRM, but this is a guess. I never digged into what in reality there is. I may guess that "secure" ATF software is tailored with some other userland software which I'm not aware of that may lie in the Android image, but this is all purely guessing
-
Ben N Voutour reacted to curse in CSC Armbian for RK3318/RK3328 TV box boards
While I was in Sweden some month ago, I only had access to an old 1024x768 monitor, connected via an HDMI to DVI adapter. It did NOT work. Multitool, yes, everything else, no.
I would not recommend to do an apt update && apt upgrade before you have gone through "armbian-config" and frozen firmware and kernel updates, or frozen them by other means.
-
Ben N Voutour reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
@MX10.AC2N Discard u-boot package, it is not needed at all, although I don't understand why it complains...
-
Ben N Voutour reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards
ju@rk3328-mx10-TvBox:~/Téléchargements/deb_upgrade$ sudo apt --fix-broken install Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait Correction des dépendances... Fait Les paquets supplémentaires suivants seront installés : bison flex libsigsegv2 libssl-dev m4 Paquets suggérés : bison-doc flex-doc libssl-doc m4-doc Paquets recommandés : libfl-dev Les NOUVEAUX paquets suivants seront installés : bison flex libsigsegv2 libssl-dev m4 0 mis à jour, 5 nouvellement installés, 0 à enlever et 3 non mis à jour. 1 partiellement installés ou enlevés. Il est nécessaire de prendre 3 442 ko dans les archives. Après cette opération, 12,5 Mo d'espace disque supplémentaires seront utilisés. Souhaitez-vous continuer ? [O/n] o Réception de :1 http://deb.debian.org/debian bullseye/main arm64 libsigsegv2 arm64 2.13-1 [34,7 kB] Réception de :2 http://deb.debian.org/debian bullseye/main arm64 m4 arm64 1.4.18-5 [199 kB] Réception de :3 http://deb.debian.org/debian bullseye/main arm64 bison arm64 2:3.7.5+dfsg-1 [1 084 kB] Réception de :4 http://deb.debian.org/debian bullseye/main arm64 flex arm64 2.6.4-8 [431 kB] Réception de :5 http://deb.debian.org/debian bullseye/main arm64 libssl-dev arm64 1.1.1k-1+deb11u1 [1 693 kB] 3 442 ko réceptionnés en 1s (3 536 ko/s) Sélection du paquet libsigsegv2:arm64 précédemment désélectionné. (Lecture de la base de données... 173316 fichiers et répertoires déjà installés.) Préparation du dépaquetage de .../libsigsegv2_2.13-1_arm64.deb ... Dépaquetage de libsigsegv2:arm64 (2.13-1) ... Sélection du paquet m4 précédemment désélectionné. Préparation du dépaquetage de .../archives/m4_1.4.18-5_arm64.deb ... Dépaquetage de m4 (1.4.18-5) ... Sélection du paquet bison précédemment désélectionné. Préparation du dépaquetage de .../bison_2%3a3.7.5+dfsg-1_arm64.deb ... Dépaquetage de bison (2:3.7.5+dfsg-1) ... Sélection du paquet flex précédemment désélectionné. Préparation du dépaquetage de .../flex_2.6.4-8_arm64.deb ... Dépaquetage de flex (2.6.4-8) ... Sélection du paquet libssl-dev:arm64 précédemment désélectionné. Préparation du dépaquetage de .../libssl-dev_1.1.1k-1+deb11u1_arm64.deb ... Dépaquetage de libssl-dev:arm64 (1.1.1k-1+deb11u1) ... Paramétrage de libsigsegv2:arm64 (2.13-1) ... Paramétrage de libssl-dev:arm64 (1.1.1k-1+deb11u1) ... Paramétrage de m4 (1.4.18-5) ... Paramétrage de bison (2:3.7.5+dfsg-1) ... update-alternatives: utilisation de « /usr/bin/bison.yacc » pour fournir « /usr/bin/yacc » (yacc) en mode automatique Paramétrage de flex (2.6.4-8) ... Paramétrage de linux-headers-edge-rockchip64 (21.11.0-trunk) ... Compiling headers - please wait ... Traitement des actions différées (« triggers ») pour libc-bin (2.31-13+deb11u2) ... Traitement des actions différées (« triggers ») pour man-db (2.9.4-2) ... Traitement des actions différées (« triggers ») pour doc-base (0.11.1) ... Traitement de 1 fichier de documentation ajouté… ju@rk3328-mx10-TvBox:~/Téléchargements/deb_upgrade$ sudo dpkg -i *.deb (Lecture de la base de données... 173818 fichiers et répertoires déjà installés.) Préparation du dépaquetage de linux-dtb-edge-rockchip64_21.11.0-trunk_arm64.deb ... Dépaquetage de linux-dtb-edge-rockchip64 (21.11.0-trunk) sur (21.11.0-trunk) ... Préparation du dépaquetage de linux-headers-edge-rockchip64_21.11.0-trunk_arm64.deb ... Dépaquetage de linux-headers-edge-rockchip64 (21.11.0-trunk) sur (21.11.0-trunk) ... Préparation du dépaquetage de linux-image-edge-rockchip64_21.11.0-trunk_arm64.deb ... ls: impossible d'accéder à '/var/lib/initramfs-tools': Aucun fichier ou dossier de ce type Dépaquetage de linux-image-edge-rockchip64 (21.11.0-trunk) sur (21.11.0-trunk) ... dpkg: concernant linux-u-boot-edge-rk3318-box_21.11.0-trunk_arm64.deb contenant linux-u-boot-rk3318-box-edge : linux-u-boot-rk3318-box-current entre en conflit avec armbian-u-boot linux-u-boot-rk3318-box-edge fournit armbian-u-boot et doit être installé. dpkg: erreur de traitement de l'archive linux-u-boot-edge-rk3318-box_21.11.0-trunk_arm64.deb (--install) : paquets en conflit - linux-u-boot-rk3318-box-edge non installé Paramétrage de linux-dtb-edge-rockchip64 (21.11.0-trunk) ... Paramétrage de linux-headers-edge-rockchip64 (21.11.0-trunk) ... Compiling headers - please wait ... Paramétrage de linux-image-edge-rockchip64 (21.11.0-trunk) ... update-initramfs: Generating /boot/initrd.img-5.14.13-rockchip64 update-initramfs: Converting to u-boot format Des erreurs ont été rencontrées pendant l'exécution : linux-u-boot-edge-rk3318-box_21.11.0-trunk_arm64.deb ju@rk3328-mx10-TvBox:~/Téléchargements/deb_upgrade$
-
Ben N Voutour reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
Uhmm... it seems that the headers package is not installed in the images I shipped before.
Well, I think I can remove the offending packages from the web directory
However it's ok just to install linux-image and linux-dtb packages: those are the important ones.
headers are needed if there is the need to compile kernel modules.
edit: I changed the installation command with apt, so it will resolve automatically dependencies without complaining...
-
Ben N Voutour reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards
@jock I try upgrade via deb. There is some errors => https://paste.yunohost.org/dirafakuve.erl
-
Ben N Voutour reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
Good idea, the packages to hold are exactly those ones (plus the headers package).
I will double check and add a clarification in the first page, thanks!
-
Ben N Voutour reacted to Gausus in CSC Armbian for RK3318/RK3328 TV box boards
I have used sudo apt-mark hold <linux-package-name> , on kernel .
sudo apt-mark hold linux-image-current-rockchip64
sudo apt-mark hold linux-dtb-current-rockchip64
sudo apt-mark hold linux-u-boot-current-rk3318-box
I then can run apt update and apt upgrade not updating kernel.
To remove mark hold use : sudo apt-mark unhold <linux-package-name>
Can y make a list of packages not to upgrade / overwrite ?
-
Ben N Voutour reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
@MX10.AC2N @curse That's true, the only way to update currently is to start from scratch and the reason is exactly the one hiphotesis by @curse is right: since the whole thing is not yet into mainline armbian, upgrading via apt is not possible. Even worse: upgrading via apt will install official armbian packages, and it would just break the installation because it would remove the existing dtbs.
I'm going to add the .deb packages in the first page along the pristine images for manual upgrade, in the hope it will not break existing installations
-
Ben N Voutour reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
Oops, I'm sorry something didn't went well
-
Ben N Voutour reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards
No worries, I'm only in the testing phase so nothing important ..
Too bad it didn't work ..
Hoping that my feedback can help,
Thank you again for everything you do .. Great @jock
-
Ben N Voutour reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards
Hi all,
So I continue my feedback on a TvBox MX10 with rk3328 I tried adding overlays to have 1.4GHz and 1.5GHz but none will have allowed to use these max values in armbian-config via CPU governor (I still have 1.3GHz as the max value). Pity..
Another thing I always try via armbian-config the docker install, it did not finish correctly and I had to be able to install docker use the method described in https://alexbacher.fr/unixlinux/installer-docker-debian/
I tried to install docker-chromium-armhf in order to be able to have chromium with DRM rights (amazon, netflix, ...) because no DRM lib in ARM64 ..
https://github.com/HenningThiemann/docker-chromium-armhf
So I was able to start Chromium-armhf but unfortunately once I arrived in my Amazon primevideo account, streaming is not allowed due to lack of DRM rights
I also attempted the construction of https://github.com/gort818/qtwebflix it works but again and again this problem of DRM lib .. If someone has found a solution I am well interested..
@jockI see you updated but, do we have to reflash ?
Have a nice day..