stanelie Posted Friday at 02:41 PM Posted Friday at 02:41 PM Hello. I am trying to have this new(?) tv box built around a RK3228A cpu detect the correct resolution of my monitor. In U-boot, I get a correct full HD 1920x1080p resolution. However, as soon as the U-Boot passes to the kernel, it switches to 1024x768. How can I correct this? If I can't correct the detection of EDID, can I force it? I've tried to add this to /boot/armbianEnv.txt, but it did not work : extraargs=drm_kms_helper.edid_firmware=HDMI-A-1:edid/1920x1080.bin video=HDMI-A-1:1920x1080@60 Any ideas? Thanks! 0 Quote
stanelie Posted Friday at 05:40 PM Author Posted Friday at 05:40 PM Some more info : dmesg has this error message : rockchip-drm display-subsystem: [drm] User-defined mode not supported: "1920x1080": 60 173106 1920 2048 2248 2576 1080 1083 1088 1120 0x20 0x6 Sure enough, when I do a cat /sys/class/drm/card0-HDMI-A-1/modes I get 1024x768 800x600 800x600 No 1920x1080 mode is listed. Any ideas? 0 Quote
IBV Posted Friday at 05:54 PM Posted Friday at 05:54 PM Hi, can you provide logs with: PASTE_SERVER_HOST=paste.armbian.de armbianmonitor -u Also, take a look at this thread how to force a mode using boot parameters and Xorg config. https://forum.armbian.com/topic/46932-5-inch-hdmi-display-not-working/#comment-206059 I suggest you connect your monitor to a linux system which supports it and gather the modelines there with: xrandr --verbose Then you can try to force that missing mode. Cheers 0 Quote
stanelie Posted Friday at 05:56 PM Author Posted Friday at 05:56 PM Hello. I have no Xorg installed, so no xorg config. I'm checking the correct resolution on the command line. xrandr is not available either, I'd rather not install it if possible. Here is the log paste : https://paste.armbian.de/nitibagujo Thanks for having a look! 0 Quote
stanelie Posted Friday at 06:33 PM Author Posted Friday at 06:33 PM Just noticed I was not up to date, I did a armbian-upgrade and still no change. Here is an updated paste : https://paste.armbian.de/loderavavi 0 Quote
IBV Posted yesterday at 01:44 PM Posted yesterday at 01:44 PM Do you actually have this edid file : edid/1920x1080.bin ? How did you generate it? 0 Quote
stanelie Posted yesterday at 01:59 PM Author Posted yesterday at 01:59 PM Yes, The 1920x1080.bin file comes with Armbian. I use the multitool to flash https://github.com/armbian/community/releases/download/25.8.0-trunk.309/Armbian_community_25.8.0-trunk.309_Rk322x-box_bookworm_current_6.12.35_minimal.img.xz , this is the latesst build. On a Libre Renegade board I have (rk3328 CPU instead of rk3228 for this TV box), I have the same issue where it reverts to 1024x768, and adding the line extraargs=drm.edid_firmware=edid/1920x1080.bin to armbianEnv.txt fixes the issue, with the Armbian provided 1920x1080.bin file. To me, since it works fine under U-Boot, this hints at an Armbian bug. 0 Quote
IBV Posted yesterday at 02:21 PM Posted yesterday at 02:21 PM 19 minutes ago, stanelie said: To me, since it works fine under U-Boot, this hints at an Armbian bug. More like a kernel issue than Armbian. The Armbian supplied edid bin file probably does not match your monitor's. Take a look here on how to get the actual edid and force it: https://wiki.archlinux.org/title/Kernel_mode_setting#Forcing_modes_and_EDID 0 Quote
stanelie Posted yesterday at 02:52 PM Author Posted yesterday at 02:52 PM Well, since this same edid file I use on the Libre Renegade board works perfectly fine with this same monitor, I think the file is ok. This link you provide is the one I followed, I tried most of the things in there, as well as a bunch of stuff I found from other users. Again, since this works on U-Boot, this points at something defective on Armbian and how the edid communication happens. This Armbian kernel that came with the armbian image I downloaded it from the armbian github as a part of the image I use on my device. I did not build it. I would think it was the Armbian team, correct? 0 Quote
IBV Posted yesterday at 02:56 PM Posted yesterday at 02:56 PM Can you check if you can pass drm.debug=0x4 to the kernel command line and see if you get more info ? If yes, paste here the boot log. 0 Quote
stanelie Posted 23 hours ago Author Posted 23 hours ago I modified the armbianEnv.txt file : verbosity=1 extraargs=coherent_pool=2M bootlogo=false overlay_prefix=rk322x fdtfile=rk322x-box.dtb rootdev=UUID=87d2bf72-4b91-4d33-8f77-284fa91fc3a7 rootfstype=ext4 extraargs=drm_kms_helper.edid_firmware=HDMI-A-1:edid/1920x1080.bin video=HDMI-A-1:1920x1080@60 drm.debug=0x4 overlays= usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u This is apparently preventing the tv box from booting, I lost access. I will have to flash it again with the multitool to get back in, and this will have to wait on monday, since I was remoting into it at the office. Thanks for your help! 0 Quote
IBV Posted 22 hours ago Posted 22 hours ago Ok, maybe @jock has some suggestions to this issue. 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.