Odroid C2 HDMI no display after kernel upgrade [Solved]

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

Odroid C2 HDMI no display after kernel upgrade [Solved]

Postby mwq » Sat Oct 22, 2016 8:01 am

Hi!
Recently I upgraded the kernel from linux-odroid-c2-3.14.79-3 to linux-odroid-c2-3.14.79-7. After reboot the screen showed "unsupported resolution". I tried different combination of resolutions and bpp in the boot.ini but that doesn't help. I also reinstalled the system several times but each time when I reboot after upgrading the kernel I get that "unsupported resolution" on screen.

The TV which I use as monitor supports 1360x768 well but not 1080p.

I also managed to get the dmesg and after reading through both of them I noticed some difference.

output of $this->bbcode_second_pass_code('', 'dmesg | grep -E 'hdmi|vout|DVI'') on 3.14.79-3 (older kernel, HDMI working) :
$this->bbcode_second_pass_code('', '
[ 0.000000] Kernel command line: root=/dev/mmcblk0p1 rootwait rw console=ttyS0,115200n8 console=tty0 no_console_suspend hdmimode=1360x768p60hz m_bpp=32 vout=dvi fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=true max_freq=1536 maxcpus=4 monitor_onoff=false
[ 0.000000] logo: get hdmimode: 1360x768p60hz
[ 0.516738] hdmitx: system: amhdmitx_init
[ 0.516746] hdmitx: system: Ver: 2014May6
[ 0.516776] tv_vout: tv_init_module
[ 0.516787] tv_vout: major number 254 for disp
[ 0.516794] vout_notify: vout_register_server
[ 0.516802] tv_vout: register tv module server ok
[ 0.521089] hdmitx: system: amhdmitx_probe
[ 0.521300] hdmitx hpd irq = 89
[ 0.521486] hdmitx20: Mapped PHY: 0xc0800000
[ 0.521498] hdmitx20: Mapped PHY: 0xc1104400
[ 0.521519] hdmitx20: Mapped PHY: 0xc8100000
[ 0.521528] hdmitx20: Mapped PHY: 0xc8834000
[ 0.521536] hdmitx20: Mapped PHY: 0xc883a000
[ 0.521544] hdmitx20: Mapped PHY: 0xc883c000
[ 0.521557] hdmitx20: Mapped PHY: 0xd0100000
[ 0.521566] hdmitx20: Mapped PHY: 0xda83a000
[ 0.521580] hdmitx: alread display in uboot 0x10
[ 0.537690] hdmitx: system: irq 2
[ 1.060080] hdmitx: plugin
[ 1.061292] hdmitx: system: irq 80000001
[ 1.241016] hdmitx: edid: find IEEEOUT
[ 1.241059] hdmitx: video: get current mode: null
[ 1.241079] hdmitx tx_aud_src = 0
[ 1.241108] hdmitx aud_n_para = 24576
[ 1.241128] hdmitx set channel status
[ 1.529390] hdmitx: system: irq 80000004
[ 4.506026] tv_vout: tv_set_current_vmode[696]fps_target_mode=12
[ 4.506031] tv_vout: mode is 12,sync_duration_den=1,sync_duration_num=60
[ 4.506047] tv_vout: TV mode 1080p60hz selected.
[ 4.506057] tv_vout: new mode =1080p60hz set ok
[ 4.506058] vout_serve: vinfo mode is: 1080p60hz
[ 4.743860] vout_serve: vout_init_module
[ 4.744942] vout_serve: meson_vout_probe
[ 4.748772] vout_serve: create vout attribute OK
[ 5.340658] cectx c810023c.aocec: aml_cec_probe(): can't find hdmirx
[ 5.410857] odroid_hdmi_snd odroid_hdmi: dit-hifi <-> I2S mapping ok
[ 8.520093] vout_serve: vmode set to 1360x768p60hz
[ 8.530419] vout_serve: disable HDMI PHY as soon as possible
[ 8.535805] tv_vout: tv_set_current_vmode[696]fps_target_mode=42
[ 8.541735] tv_vout: mode is 42,sync_duration_den=1,sync_duration_num=60
[ 8.553304] tv_vout: TV mode 1360x768p60hz selected.
[ 8.558095] tv_vout: new mode =1360x768p60hz set ok
[ 8.562855] vout_serve: vinfo mode is: 1360x768p60hz
[ 8.567606] vout_serve: new mode 1360x768p60hz set ok
[ 8.572335] hdmitx: video: get current mode: 1360x768p60hz
[ 8.577603] hdmitx: video: get current mode: 1360x768p60hz
[ 8.583101] hdmitx: system: already init VIC = 0 Now VIC = 775
[ 8.588892] hdmitx: rx no SCDC present indicator
[ 8.595523] hdmitx: ddc rd8b error 0x54 0x01
[ 8.602105] hdmitx: ddc rd8b error 0x54 0x01
[ 8.606641] hdmirx version is 1.4 or below
[ 8.611129] hdmitx: system: set pll
[ 8.615879] hdmitx: system: param->VIC:775
[ 8.630337] hdmitx: set clk of VIC = 775 done
[ 8.634721] hdmitx: set enc for VIC: 775
[ 8.639019] hdmitx_set_hw[4507] set VIC = 775
[ 8.774150] hdmitx: system: phy setting done
[ 8.803157] Sink is DVI device
[ 8.835946] hdmitx tx_aud_src = 0
[ 8.839622] hdmitx: system: irq 80000001
[ 8.843363] hdmitx aud_n_para = 24576
[ 8.846997] hdmitx set channel status
[ 8.914072] vout_serve: vmode set to 1360x768p60hz
[ 8.919667] vout_serve: don't set the same mode as current.
[ 11.160414] hdmitx: system: irq 80000002
')

output of $this->bbcode_second_pass_code('', 'dmesg | grep -E 'vout|hdmi|DVI'') on 3.14.79-7 (newer kernel, HDMI not working) :
$this->bbcode_second_pass_code('', '
[ 0.000000] Kernel command line: root=/dev/mmcblk0p1 rootwait rw console=ttyS0,115200n8 console=tty0 no_console_suspend hdmimode=1360x768p60hz m_bpp=32 vout=dvi fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=true max_freq=1536 maxcpus=4 monitor_onoff=false
[ 0.000000] logo: get hdmimode: 1360x768p60hz
[ 0.516735] hdmitx: system: amhdmitx_init
[ 0.516743] hdmitx: system: Ver: 2014May6
[ 0.516774] tv_vout: tv_init_module
[ 0.516785] tv_vout: major number 254 for disp
[ 0.516793] vout_notify: vout_register_server
[ 0.516800] tv_vout: register tv module server ok
[ 0.521095] hdmitx: system: amhdmitx_probe
[ 0.521308] hdmitx hpd irq = 89
[ 0.521495] hdmitx20: Mapped PHY: 0xc0800000
[ 0.521507] hdmitx20: Mapped PHY: 0xc1104400
[ 0.521528] hdmitx20: Mapped PHY: 0xc8100000
[ 0.521537] hdmitx20: Mapped PHY: 0xc8834000
[ 0.521545] hdmitx20: Mapped PHY: 0xc883a000
[ 0.521553] hdmitx20: Mapped PHY: 0xc883c000
[ 0.521565] hdmitx20: Mapped PHY: 0xd0100000
[ 0.521574] hdmitx20: Mapped PHY: 0xda83a000
[ 0.521587] hdmitx: alread display in uboot 0x10
[ 0.537691] hdmitx: system: irq 80000002
[ 1.060104] hdmitx: plugin
[ 1.241013] hdmitx: edid: find IEEEOUT
[ 1.241055] hdmitx: video: get current mode: null
[ 1.241075] hdmitx tx_aud_src = 0
[ 1.241103] hdmitx aud_n_para = 24576
[ 1.241123] hdmitx set channel status
[ 1.911059] tv_vout: tv_set_current_vmode[696]fps_target_mode=42
[ 1.911070] tv_vout: mode is 42,sync_duration_den=1,sync_duration_num=60
[ 1.911092] tv_vout: TV mode 1360x768p60hz selected.
[ 1.911100] tv_vout: already display in uboot
[ 1.911108] tv_vout: new mode =1360x768p60hz set ok
[ 1.911116] vout_serve: vinfo mode is: 1360x768p60hz
[ 4.699161] vout_serve: vout_init_module
[ 4.703016] vout_serve: meson_vout_probe
[ 4.706831] vout_serve: create vout attribute OK
[ 5.200340] cectx c810023c.aocec: aml_cec_probe(): can't find hdmirx
[ 5.264289] odroid_hdmi_snd odroid_hdmi: dit-hifi <-> I2S mapping ok
[ 8.357582] vout_serve: vmode set to 1360x768p60hz
[ 8.357595] vout_serve: don't set the same mode as current.
[ 8.394307] vout_serve: vmode set to 1360x768p60hz
[ 8.394318] vout_serve: don't set the same mode as current.
')

It seems that on the new kernel vout_serve refuses to change resolution because it thinks that the resolution is already 1360x768p60hz. Am I right and is it a bug in the kernel?

I've been working on this for days and the only workaround I found is to ignore kernel upgrade :| . Any advice is appreciated!
Last edited by mwq on Mon Jan 02, 2017 9:06 am, edited 1 time in total.
mwq
 
Posts: 5
Joined: Thu Oct 13, 2016 4:36 pm

Re: Odroid C2 HDMI no display after kernel upgrade

Postby 2020m » Mon Oct 31, 2016 9:25 pm

I have the same problem with the "unsupported resolution" linux-odroid-c2-3.14.79-9.
After changing the resolution from 1080p to 1024 x 600 in the boot.ini and reboot ... blank screen.

How to downgrade from 3.14.79-9 to 3.14.79-3 ?, Thanks.
2020m
 
Posts: 2
Joined: Mon Oct 31, 2016 9:11 pm

Re: Odroid C2 HDMI no display after kernel upgrade

Postby mwq » Tue Nov 01, 2016 9:18 am

@2020m You may download linux-odroid-c2-headers and linux-odroid-c2 from the following two urls:
http://tardis.tiny-vps.com/aarm/packages/l/linux-odroid-c2-headers/linux-odroid-c2-headers-3.14.79-3-aarch64.pkg.tar.xz
http://tardis.tiny-vps.com/aarm/packages/l/linux-odroid-c2/linux-odroid-c2-3.14.79-3-aarch64.pkg.tar.xz

Then install these two packages using:
$this->bbcode_second_pass_code('', '
pacman -U <filename>
')
Then add this line into [options] section in /etc/pacman.conf to prevent them from being upgraded
$this->bbcode_second_pass_code('', '
IgnorePkg=linux-odroid-c2 linux-odroid-c2-headers
')
mwq
 
Posts: 5
Joined: Thu Oct 13, 2016 4:36 pm

Re: Odroid C2 HDMI no display after kernel upgrade

Postby 2020m » Tue Nov 01, 2016 3:24 pm

Tested and Worked with linux-odroid-c2-3.14.79-3, Thanks.
2020m
 
Posts: 2
Joined: Mon Oct 31, 2016 9:11 pm

Re: Odroid C2 HDMI no display after kernel upgrade

Postby mwq » Fri Nov 11, 2016 8:29 am

I recompiled and installed the kernel using the latest source on Github and HDMI worked. But after installing the official kernel packages. HDMI stopped working and showed that 'unsupported resolution' on the screen.
mwq
 
Posts: 5
Joined: Thu Oct 13, 2016 4:36 pm

Re: Odroid C2 HDMI no display after kernel upgrade

Postby kroylar » Wed Nov 30, 2016 7:17 am

This seems to be a bug in the hardkernel linux sources. I filed an issue but haven't heard anything back.
https://github.com/hardkernel/linux/issues/253

I got the latest linux-odroid-c2 PKGBUILD working by adding the following patch. You can name it whatever you want and add it to the source list and its md5sum to the md5sums in the PKGBUILD.

$this->bbcode_second_pass_code('', 'From 64781e833ca9ecba7173e89934eff50f90cc3080 Mon Sep 17 00:00:00 2001
From: Kameron Larsen <kroylar@gmail.com>
Date: Fri, 25 Nov 2016 19:12:40 -0800
Subject: [PATCH] Revert "Merge "ODROID-C2: Add default osd refresh routine to
fix DVI problem" into odroidc2-3.14.y"

This reverts commit 8186343c319a1427408b084a67c7da09d4d20235, reversing
changes made to 925e508d37c76848881a8c8f7e9b02abc5731d88.
---
drivers/amlogic/display/logo/logo.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/amlogic/display/logo/logo.c b/drivers/amlogic/display/logo/logo.c
index c37a44d..ea5fd80 100644
--- a/drivers/amlogic/display/logo/logo.c
+++ b/drivers/amlogic/display/logo/logo.c
@@ -372,14 +372,8 @@ static int __init logo_init(void)

pr_info("%s\n", __func__);

- if (logo_info.loaded == 0) {
- if (hdmimode != cvbsmode) {
- set_logo_vmode(hdmimode);
- osd_set_logo_index(LOGO_DEV_OSD1);
- osd_init_hw(1);
- }
+ if (logo_info.loaded == 0)
return 0;
- }

refresh_mode_and_logo(true);

--
2.10.2

')
kroylar
 
Posts: 2
Joined: Tue Nov 29, 2016 8:11 am


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 10 guests