[SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

Post Reply
Antho
Posts: 2
Joined: Tue Dec 22, 2020 7:34 pm
languages_spoken: english
ODROIDs: xu4 Cloudshell (og) Cloudshell 2
Has thanked: 0
Been thanked: 4 times
Contact:

[SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

Post by Antho »

Like stated in the title, I don't get the LCD working on Ubuntu 20.04.
I've tried to use the documentation, but sadly those are not updated (or am I missing something?)
https://wiki.odroid.com/accessory/add-o ... lcd_config

Official images (from https://wiki.odroid.com/odroid-xu4/os_i ... inux/start)
I've tried Ubuntu version 16, LCD is working (but this version of Ubuntu is no longer supported)
I've tried Ubuntu version 18, LCD backlight is working but nothing on the display
I've tried Ubuntu version 20, LCD is NOT working.

For now I'm using Dietpi (debian 10), and the LCD is working. But I want to have Ubuntu running.

Antho
Posts: 2
Joined: Tue Dec 22, 2020 7:34 pm
languages_spoken: english
ODROIDs: xu4 Cloudshell (og) Cloudshell 2
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Cloudshell 1 LCD not working Ubuntu 20.04

Post by Antho »

I've fixed the screen issue. Like stated in the following thread: viewtopic.php?f=147&t=39994

Solution:

Code: Select all

sudo nano /media/boot/config.ini
Add hktft_cs_ogst after the empty "overlay_profile=" (this will be empty by default).

In the end you want to have the following.
Screenshot_1.png
Screenshot_1.png (6 KiB) Viewed 867 times
Save and restart
These users thanked the author Antho for the post (total 4):
AreaScout (Tue Dec 29, 2020 9:05 pm) • tobetter (Tue Dec 29, 2020 9:12 pm) • odroid (Wed Dec 30, 2020 11:54 am) • borrowedcarbon (Thu Jul 08, 2021 3:17 am)

AreaScout
Posts: 1680
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell, Go2, C4
Has thanked: 101 times
Been thanked: 295 times
Contact:

Re: Cloudshell 1 LCD not working Ubuntu 20.04

Post by AreaScout »

    Ahh ! Very good :)

    barbu
    Posts: 28
    Joined: Wed Sep 17, 2014 4:49 am
    languages_spoken: english
    ODROIDs: U3 XU4
    Has thanked: 4 times
    Been thanked: 1 time
    Contact:

    Re: Cloudshell 1 LCD not working Ubuntu 20.04

    Post by barbu »

    I am unable to get my Cloudshell 1 screen working at all on my XU4. It was working fine prior to me upgrading my system and uboot to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.118-221 armv7l).

    I have followed the instructions for cloudshell lcd configuration on the wiki https://wiki.odroid.com/accessory/add-o ... lcd_config

    I have added hktft_cs_ogst after the empty "overlay_profile=" as above.

    Reboot and still no output or evidence of it working.

    from other threads I have also tried correctly or incorrectly added to /media/boot/config.ini

    Code: Select all

    [overlay_hktft_cs_ogst]
    overlays="hktft-cs-ogst i2c0"
    and also tried

    Code: Select all

    sudo apt install --reinstall uboot
    Is anyone able to offer any suggestions please? I'd love to get the screen working again for my Brewblox brewery project :P
    Last edited by barbu on Fri Jul 09, 2021 4:46 pm, edited 1 time in total.

    User avatar
    odroid
    Site Admin
    Posts: 37793
    Joined: Fri Feb 22, 2013 11:14 pm
    languages_spoken: English, Korean
    ODROIDs: ODROID
    Has thanked: 1919 times
    Been thanked: 1185 times
    Contact:

    Re: Cloudshell 1 LCD not working Ubuntu 20.04

    Post by odroid »

    Try adding spi0 into the overlays string since the LCD in the CloudShell uses the SPI bus.

    barbu
    Posts: 28
    Joined: Wed Sep 17, 2014 4:49 am
    languages_spoken: english
    ODROIDs: U3 XU4
    Has thanked: 4 times
    Been thanked: 1 time
    Contact:

    Re: Cloudshell 1 LCD not working Ubuntu 20.04

    Post by barbu »

    Thank you for the suggest. Unfortunately there is still no output on the screen.
    [overlay_hktft_cs_ogst]
    overlays="hktft-cs-ogst i2c0 spi0

    User avatar
    odroid
    Site Admin
    Posts: 37793
    Joined: Fri Feb 22, 2013 11:14 pm
    languages_spoken: English, Korean
    ODROIDs: ODROID
    Has thanked: 1919 times
    Been thanked: 1185 times
    Contact:

    Re: Cloudshell 1 LCD not working Ubuntu 20.04

    Post by odroid »

    I hope you didn't miss double quotation " at the end of string.
    Show us "lsmod" output to check if all the required driver modules are loaded well or not.

    Also check "dmesg" output to find any errors.

    barbu
    Posts: 28
    Joined: Wed Sep 17, 2014 4:49 am
    languages_spoken: english
    ODROIDs: U3 XU4
    Has thanked: 4 times
    Been thanked: 1 time
    Contact:

    Re: Cloudshell 1 LCD not working Ubuntu 20.04

    Post by barbu »

    I can confirm the second double quote is there in config.ini.

    lsmod output

    Code: Select all

    Module                  Size  Used by
    aes_arm_bs             24576  2
    crypto_simd            16384  1 aes_arm_bs
    cryptd                 20480  1 crypto_simd
    ccm                    20480  6
    cpufreq_conservative    16384  0
    cpufreq_userspace      16384  0
    cpufreq_powersave      16384  0
    sg                     32768  0
    rtl8xxxu              106496  0
    rtl8192cu              86016  0
    rtl_usb                20480  1 rtl8192cu
    rtl8192c_common        49152  1 rtl8192cu
    rtlwifi                86016  3 rtl_usb,rtl8192c_common,rtl8192cu
    mac80211              704512  4 rtl_usb,rtlwifi,rtl8192cu,rtl8xxxu
    cfg80211              581632  2 mac80211,rtlwifi
    rfkill                 20480  3 cfg80211
    evdev                  24576  1
    uio_pdrv_genirq        16384  0
    uio                    20480  1 uio_pdrv_genirq
    exynos_gpiomem         16384  0
    sch_fq_codel           20480  6
    ip_tables              24576  0
    ipv6                  421888  30
    sd_mod                 45056  0
    spidev                 20480  0
    spi_s3c64xx            20480  0
    gpio_keys              20480  0
    uas                    20480  0
    usb_storage            49152  1 uas
    scsi_mod              131072  4 sd_mod,usb_storage,uas,sg
    will add dmesg as an attachment.
    Attachments
    dmesg.txt
    (33.43 KiB) Downloaded 8 times

    User avatar
    odroid
    Site Admin
    Posts: 37793
    Joined: Fri Feb 22, 2013 11:14 pm
    languages_spoken: English, Korean
    ODROIDs: ODROID
    Has thanked: 1919 times
    Been thanked: 1185 times
    Contact:

    Re: Cloudshell 1 LCD not working Ubuntu 20.04

    Post by odroid »

    There is no TFT LCD driver module in the lsmod output.

    Add this items and show us your modified config.ini file if your LCD still doesn't work.
    overlay_profile=hktft_cs_ogst
    These users thanked the author odroid for the post:
    barbu (Fri Jul 16, 2021 7:40 am)

    barbu
    Posts: 28
    Joined: Wed Sep 17, 2014 4:49 am
    languages_spoken: english
    ODROIDs: U3 XU4
    Has thanked: 4 times
    Been thanked: 1 time
    Contact:

    Re: Cloudshell 1 LCD not working Ubuntu 20.04

    Post by barbu »

    Not sure if you need to see the entire file but everything above this is is commented out apart from the mac address entry

    Code: Select all

    ; voutm : hdmi or dvi
    ; hdmi / dvi
     vout=hdmi
    
    ; HPD enable/disable option
    ; false / true
    HPD=true
    
    ; Enable/Disable CEC
    cecenable=false
    
    ; Hardkernel ODROID-VU7 support
    ; By default VU7 support is disabled
    disable_vu7=false
    
    ; DRAM Frequency
    ; Sets the LPDDR3 memory frequency (MHz)
    ; 933 / 825 / 728 / 633
    ddr_freq=825
    
    
    ; Device Tree Overlay
    overlay_resize=16384
    overlay_profile=hktft-cs-ogst
    overlays="spi0 i2c0 i2c1 uart0"
    
    [overlay_custom]
    overlays="i2c0 i2c1"
    
    [overlay_hktft32]
    overlays="hktft32 ads7846"
    
    [overlay_hktft35]
    overlays="hktft35 sx865x-i2c1"
    
    [overlay_hktft_cs_ogst]
    overlays="hktft-cs-ogst i2c0 spi0"

    joshua.yang
    Posts: 524
    Joined: Fri Sep 22, 2017 5:54 pm
    languages_spoken: Korean, English
    ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
    Has thanked: 37 times
    Been thanked: 162 times
    Contact:

    Re: Cloudshell 1 LCD not working Ubuntu 20.04

    Post by joshua.yang »

    barbu wrote:
    Tue Jul 13, 2021 7:16 am
    Not sure if you need to see the entire file but everything above this is is commented out apart from the mac address entry

    Code: Select all

    ; voutm : hdmi or dvi
    ; hdmi / dvi
     vout=hdmi
    
    ; HPD enable/disable option
    ; false / true
    HPD=true
    
    ; Enable/Disable CEC
    cecenable=false
    
    ; Hardkernel ODROID-VU7 support
    ; By default VU7 support is disabled
    disable_vu7=false
    
    ; DRAM Frequency
    ; Sets the LPDDR3 memory frequency (MHz)
    ; 933 / 825 / 728 / 633
    ddr_freq=825
    
    
    ; Device Tree Overlay
    overlay_resize=16384
    overlay_profile=hktft-cs-ogst
    overlays="spi0 i2c0 i2c1 uart0"
    
    [overlay_custom]
    overlays="i2c0 i2c1"
    
    [overlay_hktft32]
    overlays="hktft32 ads7846"
    
    [overlay_hktft35]
    overlays="hktft35 sx865x-i2c1"
    
    [overlay_hktft_cs_ogst]
    overlays="hktft-cs-ogst i2c0 spi0"
    Hi.

    Actually, I found a typo in your config.ini.
    Please check the value of the overlay_profile variable.

    Code: Select all

    # From
    overlay_profile=hktft-cs-ogst
    
    # To
    overlay_profile=hktft_cs_ogst
    
    So that I can enable the OGST screen with the following contents. The OGST screen is the same as the one from CloudShell 1.

    Code: Select all

    ; Device Tree Overlay
    overlay_resize=16384
    overlay_profile=hktft_cs_ogst
    overlays="spi0 i2c0 i2c1 uart0"
    
    [overlay_custom]
    overlays="i2c0 i2c1"
    
    [overlay_hktft32]
    overlays="hktft32 ads7846"
    
    [overlay_hktft35]
    overlays="hktft35 sx865x-i2c1"
    
    [overlay_hktft_cs_ogst]
    overlays="hktft-cs-ogst"
    
    My environments.

    Code: Select all

    root@odroid:~# lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 20.04.2 LTS
    Release:        20.04
    Codename:       focal
    root@odroid:~# uname -r
    5.4.118-221
    root@odroid:~# lsb_release -a
    ^[[ANo LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 20.04.2 LTS
    Release:        20.04
    Codename:       focal
    root@odroid:~# uname -a
    Linux odroid 5.4.118-221 #1 SMP PREEMPT Tue May 11 12:50:02 EDT 2021 armv7l armv7l armv7l GNU/Linux
    root@odroid:~# dmesg | grep -i hktft
    [    9.445869] fb_hktft32: module is from the staging directory, the quality is unknown, you have been warned.
    [    9.994766] graphics fb0: fb_hktft32 frame buffer, 320x240, 150 KiB video memory, 4 KiB buffer memory, fps=20, spi0.0 at 32 MHz
    
    Please let us know the results.
    Thanks.
    These users thanked the author joshua.yang for the post:
    barbu (Fri Jul 16, 2021 7:40 am)

    barbu
    Posts: 28
    Joined: Wed Sep 17, 2014 4:49 am
    languages_spoken: english
    ODROIDs: U3 XU4
    Has thanked: 4 times
    Been thanked: 1 time
    Contact:

    Re: Cloudshell 1 LCD not working Ubuntu 20.04

    Post by barbu »

    Ok that seems to identify an issue in the dmesg

    Code: Select all

    root@brewery:/home# dmesg | grep -i hktft
    [    4.409719] spi_master spi0: spi_device register error /soc/spi@12d30000/hktft_cs_ogst@0
    [    4.418166] spi_master spi0: Failed to create SPI device for /soc/spi@12d30000/hktft_cs_ogst@0
    root@brewery:/home# lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 20.04.2 LTS
    Release:        20.04
    Codename:       focal
    root@brewery:/home# uname -a
    Linux brewery 5.4.118-221 #1 SMP PREEMPT Tue May 11 12:50:02 EDT 2021 armv7l armv7l armv7l GNU/Linux
    Other files /outputs for reference...

    /etc/modprobe.d/blacklist-odroid.conf

    Code: Select all

    # blacklist IO Board Sensors
    blacklist ioboard_bh1780
    blacklist ioboard_bmp180
    blacklist ioboard_keyled
    
    # blacklist Touchscreen support
    blacklist ads7846
    
    # blacklist w1-gpio
    
    # SPI
    #blacklist spidev
    #blacklist spi_s3c64xx
    /etc/modprobe.d/odroid-cloudshell.conf

    Code: Select all

    options fbtft_device name=hktft9340 busnum=1 rotate=270
    /etc/modules

    Code: Select all

    spi_s3c64xx
    spidev
    fbtft_device
    /media/boot/config.ini

    Code: Select all

    ; voutm : hdmi or dvi
    ; hdmi / dvi
     vout=hdmi
    
    ; HPD enable/disable option
    ; false / true
    HPD=true
    
    ; Enable/Disable CEC
    cecenable=false
    
    ; Hardkernel ODROID-VU7 support
    ; By default VU7 support is disabled
    disable_vu7=false
    
    ; DRAM Frequency
    ; Sets the LPDDR3 memory frequency (MHz)
    ; 933 / 825 / 728 / 633
    ddr_freq=825
    
    
    ; Device Tree Overlay
    overlay_resize=16384
    overlay_profile=hktft_cs_ogst
    overlays="spi0 i2c0 i2c1 uart0"
    
    [overlay_custom]
    overlays="i2c0 i2c1"
    
    [overlay_hktft32]
    overlays="hktft32 ads7846"
    
    [overlay_hktft35]
    overlays="hktft35 sx865x-i2c1"
    
    [overlay_hktft_cs_ogst]
    overlays="hktft-cs-ogst"
    initial UART output

    Code: Select all

    U-Boot 2017.05-00008-g6a9ddb8303-dirty (May 19 2020 - 19:48:01 +0900) for ODROID-XU4
    
    CPU:   Exynos5422 @ 800 MHz
    Model: Odroid XU4 based on EXYNOS5422
    Board: Odroid XU4 based on EXYNOS5422
    Type:  xu4
    DRAM:  2 GiB
    MMC:   EXYNOS DWMMC: 0, EXYNOS DWMMC: 1
    MMC Device 0 (eMMC): 14.7 GiB
    Info eMMC rst_n_func status = enabled
    Card did not respond to voltage select!
    mmc_init: -95, time 11
    *** Warning - bad CRC, using default environment
    
    In:    serial
    Out:   serial
    Err:   serial
    Net:   No ethernet found.
    Press quickly 'Enter' twice to stop autoboot:  0
    reading /boot.ini
    2365 bytes read in 5 ms (461.9 KiB/s)
    ## Executing script at 43e00000
    reading config.ini
    7170 bytes read in 7 ms (1000 KiB/s)
    ini: Imported macaddr as 00:1e:06:61:7a:39
    ini: Imported vout as hdmi
    ini: Imported HPD as true
    ini: Imported cecenable as false
    ini: Imported disable_vu7 as false
    ini: Imported ddr_freq as 825
    ini: Imported overlay_resize as 16384
    ini: Imported overlay_profile as hktft_cs_ogst
    ini: Imported overlays as spi0 i2c0 i2c1 uart0
    No FDT memory address configured. Please configure
    the FDT address via "fdt addr <address>" command.
    Aborting!
    reading zImage
    6514528 bytes read in 249 ms (25 MiB/s)
    reading uInitrd
    10320885 bytes read in 380 ms (25.9 MiB/s)
    reading exynos5422-odroidxu4.dtb
    87167 bytes read in 11 ms (7.6 MiB/s)
    ini: Imported overlays as hktft-cs-ogst
    reading overlays/hktft-cs-ogst.dtbo
    1469 bytes read in 8 ms (178.7 KiB/s)
    Kernel image @ 0x40008000 [ 0x000000 - 0x636760 ]
    ## Loading init Ramdisk from Legacy Image at 42000000 ...
    

    barbu
    Posts: 28
    Joined: Wed Sep 17, 2014 4:49 am
    languages_spoken: english
    ODROIDs: U3 XU4
    Has thanked: 4 times
    Been thanked: 1 time
    Contact:

    Re: Cloudshell 1 LCD not working Ubuntu 20.04

    Post by barbu »

    That's weird :D
    Since I connected up to UART my screen has started working.
    Thank you for the help. Not sure why it is working now as I'm not aware I have changed anything since posting everything above. I am happy.
    These users thanked the author barbu for the post:
    odroid (Wed Jul 14, 2021 11:06 am)

    yx5jsf8
    Posts: 6
    Joined: Sat Dec 26, 2020 2:13 am
    languages_spoken: english
    ODROIDs: xu4
    Has thanked: 1 time
    Been thanked: 0
    Contact:

    Re: [SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

    Post by yx5jsf8 »

    I am still having this exact same issue. I have followed entire thread trying all variations and also connected via UART to see if problems magically disappear but I have no luck. My initial UART output looks exactly like the OP. And all the settings he has posted are same as mine to the letter (even copied and pasted just to make sure). My LCD still no work?

    User avatar
    odroid
    Site Admin
    Posts: 37793
    Joined: Fri Feb 22, 2013 11:14 pm
    languages_spoken: English, Korean
    ODROIDs: ODROID
    Has thanked: 1919 times
    Been thanked: 1185 times
    Contact:

    Re: [SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

    Post by odroid »

    @yx5jsf8
    Show us your modified config.ini file contents as well as dmesg outputs.

    yx5jsf8
    Posts: 6
    Joined: Sat Dec 26, 2020 2:13 am
    languages_spoken: english
    ODROIDs: xu4
    Has thanked: 1 time
    Been thanked: 0
    Contact:

    Re: [SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

    Post by yx5jsf8 »

    Code: Select all

    lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 20.04.2 LTS
    Release:	20.04
    Codename:	focal
    
    uname -a
    Linux odroid.local 5.4.87-218 #1 SMP PREEMPT Wed Jan 6 16:24:35 EST 2021 armv7l armv7l armv7l GNU/Linux
    

    Code: Select all

    dmesg | grep -i failed
    [    2.125912] mali 11800000.gpu: Failed to get regulator
    [    2.129623] mali 11800000.gpu: Power control initialization failed
    [    2.629735] s5p-mfc 11000000.codec: Direct firmware load for s5p-mfc-v8.fw failed with error -2
    [    3.230258] dwc3 12000000.dwc3: Failed to get clk 'ref': -2
    [    3.377847] dwc3 12400000.dwc3: Failed to get clk 'ref': -2

    Code: Select all

    dmesg | grep -i error
    [    2.629735] s5p-mfc 11000000.codec: Direct firmware load for s5p-mfc-v8.fw failed with error -2
    [    3.113596] usb 2-1: device descriptor read/64, error -62
    [    3.421572] usb 2-1: device descriptor read/64, error -62
    [    3.921658] usb 2-1: device descriptor read/64, error -62
    [    4.225553] usb 2-1: device descriptor read/64, error -62
    [    5.265790] usb 2-1: device not accepting address 4, error -62
    [    5.893590] usb 2-1: device not accepting address 5, error -62
    [    8.618671] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
    

    Code: Select all

    cat /etc/modprobe.d/blacklist-odroid.conf 
    # blacklist IO Board Sensors
    blacklist ioboard_bh1780
    blacklist ioboard_bmp180
    blacklist ioboard_keyled
    
    # blacklist Touchscreen support
    blacklist ads7846
    
    # blacklist w1-gpio
    blacklist w1-gpio
    for above did try commenting out to match OP settings and reboot but also not work

    Code: Select all

    cat /etc/modprobe.d/odroid-cloudshell.conf 
    options fbtft_device name=hktft9340 busnum=1 rotate=270 speed=35000000
    for above did try commenting out to match OP settings and reboot but also not work

    Code: Select all

    cat /etc/modules
    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules that should be loaded
    # at boot time, one per line. Lines beginning with "#" are ignored.
    
    spi-s3c64xx
    spidev
    fbtft_device
    config.ini at /media/boot/config.ini

    Code: Select all

    [generic]
    # Mac address configuration
    macaddr=[redacted]
    
    ; HDMI configuration
    ; Uncomment only ONE line! Leave all commented for automatic selection.
    ; Uncomment only the setenv line!
    ; ---------------------------------------
    ; ODROID-VU forced resolution
    ; setenv videoconfig "video=HDMI-A-1:1280x800@60"
    ; -----------------------------------------------
    ; ODROID-VU forced EDID
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x800.bin"
    ; -----------------------------------------------
    ; 1920x1200 60hz without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1200_60hz.bin"
    ; -----------------------------------------------
    ; 1920x1200 30hz without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1200_30hz.bin"
    ; -----------------------------------------------
    ; 1920x1080 (1080P) with monitor provided EDID information. (1080p-edid)
    ; setenv videoconfig "video=HDMI-A-1:1920x1080@60"
    ; -----------------------------------------------
    ; 1920x1080 (1080P) without monitor data using generic information (1080p-noedid)
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080.bin"
    ; -----------------------------------------------
    ; 1920x1080 50hz (1080P) with monitor provided EDID information. (1080p 50hz-edid)
    ; setenv videoconfig "video=HDMI-A-1:1920x1080@50"
    ; -----------------------------------------------
    ; 1920x1080 50hz (1080P) without monitor data using generic information (1080p 50hz-noedid)
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080_50hz.bin"
    ; -----------------------------------------------
    ; 1920x1080 24Hz (1080P) without monitor data using generic information (1080p 24hz-noedid)
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080_24hz.bin"
    ; -----------------------------------------------
    ; 1920x1080 23.976Hz (1080P) without monitor data using generic information (1080p 23.976hz-noedid)
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080_23_976hz.bin"
    ; -----------------------------------------------
    ; 1920x800 60hz without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x800.bin"
    ; -----------------------------------------------
    ; 1792x1344 60hz without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1792x1344.bin"
    ; -----------------------------------------------
    ; 1680x1050 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1680x1050.bin"
    ; -----------------------------------------------
    ; 1600x1200 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1600x1200.bin"
    ; -----------------------------------------------
    ; 1600x900 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1600x900.bin"
    ; -----------------------------------------------
    ; 1400x1050 60hz without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1400x1050.bin"
    ; -----------------------------------------------
    ; 1440x900 with monitor provided EDID information.
    ; setenv videoconfig "video=HDMI-A-1:1440x900@60"
    ; -----------------------------------------------
    ; 1440x900 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1440x900.bin"
    ; -----------------------------------------------
    ; 1366x768 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1366x768.bin"
    ; -----------------------------------------------
    ; 1360x768 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1360x768.bin"
    ; -----------------------------------------------
    ; 1280x1024 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x1024.bin"
    ; -----------------------------------------------
    ; 1280x768 60hz without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x768.bin"
    ; -----------------------------------------------
    ; 1280x720 (720P) with monitor provided EDID information. (720p-edid)
    ; setenv videoconfig "video=HDMI-A-1:1280x720@60"
    ; -----------------------------------------------
    ; 1280x720 (720P) without monitor data using generic information (720p-noedid)
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x720.bin"
    ; -----------------------------------------------
    ; 1152x864 75hz without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1152x864_75hz.bin"
    ; -----------------------------------------------
    ; 1024x768 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x768.bin"
    ; -----------------------------------------------
    ; 1024x600 without monitor data using generic information (ODROID VU7+)
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x600.bin"
    ; -----------------------------------------------
    ; 800x600 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/800x600.bin"
    ; -----------------------------------------------
    ; 848x480 60hz without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/848x480.bin"
    ; -----------------------------------------------
    ; 800x480 without monitor data using generic information (ODROID 7")
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/800x480.bin"
    ; -----------------------------------------------
    ; 720x576 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x576.bin"
    ; -----------------------------------------------
    ; 720x480 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/720x480.bin"
    ; -----------------------------------------------
    ; 640x480 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/640x480.bin"
    ; -----------------------------------------------
    ; 480x800 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/480x800.bin"
    ; -----------------------------------------------
    ; 480x320 without monitor data using generic information
    ; setenv videoconfig "drm_kms_helper.edid_firmware=edid/480x320.bin"
    
    ; voutm : hdmi or dvi
    ; hdmi / dvi
    vout=hdmi
    
    ; HPD enable/disable option
    ; false / true
    HPD=true
    
    ; Enable/Disable CEC
    cecenable=false
    
    ; Hardkernel ODROID-VU7 support
    ; By default VU7 support is disabled
    disable_vu7=false
    
    ; DRAM Frequency
    ; Sets the LPDDR3 memory frequency (MHz)
    ; 933 / 825 / 728 / 633
    ddr_freq=825
    
    
    ; Device Tree Overlay
    overlay_resize=16384
    overlay_profile=hktft_cs_ogst
    overlays="spi0 i2c0 i2c1 uart0"
    
    [overlay_custom]
    overlays="i2c0 i2c1"
    
    [overlay_hktft32]
    overlays="hktft32 ads7846"
    
    [overlay_hktft35]
    overlays="hktft35 sx865x-i2c1"
    
    [overlay_hktft_cs_ogst]
    overlays="hktft-cs-ogst"
    
    Additionally I have tried all the other variations that were mentioned such as adding i2c0/1 and spi0 to no avail.


    Also, the apt packages I used were the default cloudshell-lcd and cloudshell2-fan packages available already from image sources and I manually added some person named kyles repository to get access to odroid-cloudshell package, which I installed.

    Code: Select all

    apt search odroid
    Sorting... Done
    Full Text Search... Done
    bootini/unknown,now 20200804-101 armhf [installed]
      boot.ini for ODROID products based on 5422
    
    cloudshell-lcd/focal,now 1.5~202009170731~ubuntu20.04.1 armhf [installed]
      cloudshell-lcd package
    
    cloudshell2-fan/focal,now 1.1~202009160920~ubuntu20.04.1 armhf [installed]
      cloudshell2-fan package
    
    libwiringpi-dev/focal 3.9-0~202103120857~ubuntu20.04.1 armhf
      GPIO development library for ODROID
    
    libwiringpi2/focal 3.9-0~202103120857~ubuntu20.04.1 armhf
      GPIO libraries for ODROID (runtime).
    
    linux-odroid-5422/unknown,now 5.4.134-222 armhf [installed]
      Linux kernel for ODROID 5422
    
    odroid-cloudshell/focal,now 1.0-1~3~ubuntu20.04.1 armhf [installed]
      odroid-cloudshell LCD configuration package
    
    odroid-config/focal,now 0.3.4~202005060207~ubuntu20.04.1 armhf [installed]
      Odroid configuration tool
    
    odroid-homecloud-display/focal 0.1-0~202103111928~ubuntu20.04.1 armhf
      ODROID HomeCloud Display module
    
    odroid-platform-5422/unknown,now 20210112-10 armhf [installed]
      ODROID Platform Files and Tweaks
    
    odroid-wiringpi/focal 3.9-0~202103120857~ubuntu20.04.1 armhf
      gpio utility for ODROID
    
    odroid-wiringpi-python/focal 0.2.9~202011190308~ubuntu20.04.1 armhf
      A debian package for automatically updating of WiringPi Python PyPI package.
    
    u-boot-exynos/focal-updates 2020.10+dfsg-1ubuntu0~20.04.2 armhf
      A boot loader for exynos systems
    
    
    Also mention is that Fan and LCD work when I switch to old ubuntu 18.04 image, so likely hardware is fine but cannot determine software to make work.

    barbu
    Posts: 28
    Joined: Wed Sep 17, 2014 4:49 am
    languages_spoken: english
    ODROIDs: U3 XU4
    Has thanked: 4 times
    Been thanked: 1 time
    Contact:

    Re: [SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

    Post by barbu »

    I can confirm that the settings in my post above were what I used to eventually get it to work. However...

    It suddenly stopped working again (no output at all) a few days ago so I have to go back to the beginning again trying to understand this.

    The only difference I can see in your settings is that in /etc/modprobe.d/odroid-cloudshell.conf I omitted the speed.

    yx5jsf8
    Posts: 6
    Joined: Sat Dec 26, 2020 2:13 am
    languages_spoken: english
    ODROIDs: xu4
    Has thanked: 1 time
    Been thanked: 0
    Contact:

    Re: [SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

    Post by yx5jsf8 »

    Yeah I copied your settings and used it like that too but it didn’t work either. So I then reverted it back to default. Maybe we should ask this Kyle guy to see if he has any insight.

    joshua.yang
    Posts: 524
    Joined: Fri Sep 22, 2017 5:54 pm
    languages_spoken: Korean, English
    ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
    Has thanked: 37 times
    Been thanked: 162 times
    Contact:

    Re: [SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

    Post by joshua.yang »

    Hello.

    We've found that the latest kernel has a new patch on fbtft side. We are currently working on it so please wait for a moment.

    If you're not willing to install the latest kernel, you can use the LCD shields right after freshly install the "Ubuntu 20.04 + kernel 5.4" image with only editing the DTBO settings.

    joshua.yang
    Posts: 524
    Joined: Fri Sep 22, 2017 5:54 pm
    languages_spoken: Korean, English
    ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
    Has thanked: 37 times
    Been thanked: 162 times
    Contact:

    Re: [SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

    Post by joshua.yang »

    The new kernel arrived today. That version is 5.4.134-224.

    Update the kernel up to date then you can use the DTBO as it is before.
    I confirmed that enabling LCD shield and running the monitoring script by cloudshell-lcd package are working.

    Code: Select all

    sudo apt update
    
    # To update all the packages on the system
    sudo apt full-upgrade
    
    # To update only the kernel
    sudo apt install linux-odroid-5422
    
    # To update uboot and refresh the DTBO files. Make a backup if you have created your own DTBO files.
    sudo apt install uboot bootini
    
    # Install the monitoring script shows on the attached CS1 or OGST LCD
    sudo apt install cloudshell-lcd
    
    These users thanked the author joshua.yang for the post (total 2):
    barbu (Thu Jul 29, 2021 6:37 am) • yx5jsf8 (Fri Jul 30, 2021 7:34 am)

    barbu
    Posts: 28
    Joined: Wed Sep 17, 2014 4:49 am
    languages_spoken: english
    ODROIDs: U3 XU4
    Has thanked: 4 times
    Been thanked: 1 time
    Contact:

    Re: [SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

    Post by barbu »

    joshua.yang wrote:
    Wed Jul 28, 2021 11:55 am
    The new kernel arrived today. That version is 5.4.134-224.

    Update the kernel up to date then you can use the DTBO as it is before.
    That worked like magic :D

    yx5jsf8
    Posts: 6
    Joined: Sat Dec 26, 2020 2:13 am
    languages_spoken: english
    ODROIDs: xu4
    Has thanked: 1 time
    Been thanked: 0
    Contact:

    Re: [SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

    Post by yx5jsf8 »

    Mine is still not working unfortunately, but I will do as you suggested and try a fresh install using image from odroid website. Will let you know if it works. Will have to try this weekend.

    yx5jsf8
    Posts: 6
    Joined: Sat Dec 26, 2020 2:13 am
    languages_spoken: english
    ODROIDs: xu4
    Has thanked: 1 time
    Been thanked: 0
    Contact:

    Re: [SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

    Post by yx5jsf8 »

    Many thanks! The LCD is now fully operational following latest updates. But now the fan stopped working, which was working prior. service cloudshell2-fan status yields following error:

    Code: Select all

    systemd[1]: Starting LSB: Cloudshell2 fan onoff service...
    cloudshell2-fan[434]: Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory
    systemd[1]: Started LSB: Cloudshell2 fan onoff service.
    

    yx5jsf8
    Posts: 6
    Joined: Sat Dec 26, 2020 2:13 am
    languages_spoken: english
    ODROIDs: xu4
    Has thanked: 1 time
    Been thanked: 0
    Contact:

    Re: [SOLVED] Cloudshell 1 LCD not working Ubuntu 20.04

    Post by yx5jsf8 »

    wait. sorry. all fixed now. just added i2c0 overlay option and fan now works too. Thanks again friend! No problems with either now. Why are both overlays not included by default? Is it to increase compatibility across devices?

    Post Reply

    Return to “CloudShell”

    Who is online

    Users browsing this forum: No registered users and 1 guest