HDMI 800x600 problem on M2U - can not find uEnv.txt or script.bin

Hi guys:

I can’t find the way to use Bananapi M2U with this 80x600 HDMI 5" screen from: https://www.aliexpress.com/store/product/30fps-5-inch-LCD-HDMI-Touch-Screen-Display-TFT-LCD-Panel-Module-Shield-840-480-for/1534002_32314250806.html

I’m using 2017-08-24 - ubuntu 16.04.3 LTS Mate Desktop with support for BPI-M2 Ultra & BPI-M2 Berry kernel 3.10.107

That HDMI 5" screen works perfect with Raspberry Pi 3 using ubuntu mate too and Bananapi M2U works without no issues with my TV on 1080 resolution, but i can not find the way to use my small 5" HDMI screen with BananaPi M2U.

I have been trying to modify script.bin like you said on this post but i can not find the file script.bin anywhere. The /boot/ folder on root path ins empty. The only folder where the search returns this file is on usr/lib/u-boot/bananapi/bpi-r1/, not even on bpi-m2u folder. Can i just simple copy it?

Where is the uEnv.txt file? I can not find it too? What can i do?

By the way, on disp init configuration on fex guide from http://linux-sunxi.org there is not 800x600 resolution just 480, 576, 720 and 1080, so, what can be done to use 800x600?

Regards,

Mauricio F.

On Armbian there is a directory /usr/lib/firmware/edid/ where you can find .bin of the resolutions supported and yes there’s 800x600.bin.

I’ve added the following line at the end of the file /boot/armbian.Env.txt

extraargs=drm_kms_helper.edid_firmware=HDMI-A-1:edid/720x480.bin video=HDMI-A-1:720x480-24@60

Just change with the resolution you need in accord with the file you find in /usr/lib/firmware/edid It can be useful to change /boot/boot.cmd with the right resolution in the line

setenv hdmimode "480p60hz"

and compile the file with

mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr

I’m using a 3.5" HDMI screen that appears with an EDID of 1920x1080 but physical resolution of 480x320. It’s readable if I set 800x480 or lower.