No 800x480p support in android 11 for vim1s

Which version of system do you use? Khadas official images, self built images, or others?

**Khadas official images**

Please describe your issue below:

`No 800x480p resolution support

The modification points are as follows, enter the corresponding directory and follow my changes above

xiong@server:/users/xiong/work/amlogic/vim1s/bootloader/uboot$ git diff
diff --git a/arch/arm/mach-meson/s4/hdmitx_clk.c b/arch/arm/mach-meson/s4/hdmitx_clk.c
index 6e474c1595..d3f1f14a65 100644
--- a/arch/arm/mach-meson/s4/hdmitx_clk.c
+++ b/arch/arm/mach-meson/s4/hdmitx_clk.c
@@ -341,7 +341,7 @@ void set_hpll_clk_out(unsigned int clk)
                WAIT_FOR_PLL_LOCKED(P_ANACTRL_HDMIPLL_CTRL0);
                pr_info("HPLL: 0x%x\n", hd_read_reg(P_ANACTRL_HDMIPLL_CTRL0));
                break;
-       case 292300:
+       case 297600:
                hd_write_reg(P_ANACTRL_HDMIPLL_CTRL0, 0x3b0004C2);//800x480
                if (frac_rate)
                        hd_write_reg(P_ANACTRL_HDMIPLL_CTRL1, 0x0001cccc);
@@ -826,7 +826,7 @@ static struct hw_enc_clk_val_group setting_enc_clk_val_24[] = {
                1, VIU_ENCP, 251750, 4, 4, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
        {{HDMIV_800x480p60hz,
          GROUP_END},
-               1, VIU_ENCP, 292300, 4, 4, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
+               1, VIU_ENCP, 297600, 4, 4, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
        {{HDMIV_800x600p60hz,
          GROUP_END},
                1, VIU_ENCP, 400000, 4, 2, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
diff --git a/arch/arm/mach-meson/sc2/hdmitx_clk.c b/arch/arm/mach-meson/sc2/hdmitx_clk.c
index 85ac9e9007..ab5a1934cd 100644
--- a/arch/arm/mach-meson/sc2/hdmitx_clk.c
+++ b/arch/arm/mach-meson/sc2/hdmitx_clk.c
@@ -353,7 +353,7 @@ void set_hpll_clk_out(unsigned int clk)
                WAIT_FOR_PLL_LOCKED(P_ANACTRL_HDMIPLL_CTRL0);
                pr_info("HPLL: 0x%x\n", hd_read_reg(P_ANACTRL_HDMIPLL_CTRL0));
                break;
-       case 292300:
+       case 297600:
                hd_write_reg(P_ANACTRL_HDMIPLL_CTRL0, 0x3b0004C2);//800x480
                if (frac_rate)
                        hd_write_reg(P_ANACTRL_HDMIPLL_CTRL1, 0x0001cccc);
@@ -836,7 +836,7 @@ static struct hw_enc_clk_val_group setting_enc_clk_val_24[] = {
                1, VIU_ENCP, 251750, 4, 4, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
        {{HDMIV_800x480p60hz,
          GROUP_END},
-               1, VIU_ENCP, 292300, 4, 4, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
+               1, VIU_ENCP, 297600, 4, 4, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
        {{HDMIV_800x600p60hz,
          GROUP_END},
                1, VIU_ENCP, 400000, 4, 2, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
xiong@server:/users/xiong/work/amlogic/vim1s/common$ git diff
diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_common/hdmi_parameters.c b/drivers/amlogic/media/vout/hdmitx/hdmi_common/hdmi_parameters.c
index a57ccca41816..161bdf76a10f 100644
--- a/drivers/amlogic/media/vout/hdmitx/hdmi_common/hdmi_parameters.c
+++ b/drivers/amlogic/media/vout/hdmitx/hdmi_common/hdmi_parameters.c
@@ -1823,9 +1823,9 @@ static struct hdmi_format_para fmt_para_vesa_800x480p60_4x3 = {
        .progress_mode = 1,
        .scrambler_en = 0,
        .tmds_clk_div40 = 0,
-       .tmds_clk = 29230,
+       .tmds_clk = 29760,
        .timing = {
-               .pixel_freq = 29230,
+               .pixel_freq = 29760,
                .h_freq = 30000,
                .v_freq = 60000,
                .vsync = 60,
diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_clk.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_clk.c
index b1710822ebb7..c49576ce25e9 100644
--- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_clk.c
+++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_clk.c
@@ -681,7 +681,7 @@ static struct hw_enc_clk_val_group setting_enc_clk_val_24[] = {
                251750, 4, 4, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
        {{HDMIV_800x480p60hz,
          HDMI_VIC_END},
-               292300, 4, 4, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
+               297600, 4, 4, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
        {{HDMIV_800x600p60hz,
          HDMI_VIC_END},
                400000, 4, 2, 1, VID_PLL_DIV_5, 2, 1, 1, -1},
diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_g12a.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_g12a.c
index 1df4a29c5fda..c1be325f69d7 100644
--- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_g12a.c
+++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_g12a.c
@@ -419,7 +419,7 @@ void set_g12a_hpll_clk_out(unsigned int frac_rate, unsigned int clk)
                WAIT_FOR_PLL_LOCKED(P_HHI_HDMI_PLL_CNTL0);
                printk("HPLL: 0x%x\n", hd_read_reg(P_HHI_HDMI_PLL_CNTL0));
                break;
-       case 292300:
+       case 297600:
                hd_write_reg(P_HHI_HDMI_PLL_CNTL0, 0x3b0004C2);//800x480
                if (frac_rate)
                        hd_write_reg(P_HHI_HDMI_PLL_CNTL1, 0x0001cccc);

Compile with the following documentation

The burning tool is as follows

OK
i tried running the commands
one of the commands"$ sudo apt-get install unzip lib32z1 libx11-dev lib32z-dev ccache gitk xmllint libxml2-utils libssl-dev
" Is giving me error that xmllint file does not exist.

Also there is a lot of confusion between which commands have to be entered in the terminal and which ones in the shell
The toolchains commands have to be executed in the terminal of my computer,right??
To download the android source code, the commands also have to be entered on the computer??
In this page https://docs.khadas.com/products/sbc/vim1s/development/android/build-android#build-u-boot to build U-boot the commands have to be entered in adb shell or the terminal of the computer??
In the page VIM1S Build Android [Khadas Docs] the commands have to be entered in adb shell or terminal ??

Download the Android environment, Android source code, and Android compilation, please read the three detailed documents in the link below

VIM1S Android

@Pranay vim1s_v221104_update.img - Google Drive
Please verify and feedback the results.

Sorry for the late reply.
I tested the image however only the logo appears on the screen, I recorded a video and here is the link https://drive.google.com/file/d/1WYjjM4lmhmfp-GPzA5Xtcpq3bUQaVRPY/view?usp=share_link though the video is 24 seconds long I waited for 10 minutes but there was no signal to the display.

I thought of booting it from micro sd card but I get the following error while doing so :

Hello, please use adb shell to help us grab the kernel.log of dmesg and analyze it, because at the end of the video, there is no signal prompt.
The grab command is as follows, please provide us with the log, thanks

console:/ $ su
console:/ # dmesg > /storage/kernel.log

I ran the command, I am trying to search the log but where will it be located.

This is the path of the file

Ok


Now after this??

Use the following command to extract the file

adb pull /storage/kernel.log


Ok i think I have to enable developer mode on the khadas vim to extract the log as i am getting error :

/system/bin/sh: adb: inaccessible or not found

You should do adb pull /storage/kernel.log under C:\Users\Archana\Downloads\tools>
image

I tries creating kernel log file by some methods but I am getting the following errors

You should still take out the dmesg log as I mentioned above, you will take the log to the desktop, the following command

C:\Users\Xiong>adb pull /storage/kernel.log C:\Users\Xiong\Desktop\

I have attached the link to the kernel file, it is in txt format as I had to copy everything in it into notepad. https://drive.google.com/file/d/1oBDYIFVfrk7REm2kA9ELkcYYlvSe_BXA/view?usp=share_link

Dis you figure out the problem ??

Hello, is the log you posted above when the HDMI display is not plugged in? Also, are you using the firmware we sent directly or using your own DIY firmware?