LCD Shield with upstream kernel?

Post Reply
fvolk
Posts: 571
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 61 times
Contact:

LCD Shield with upstream kernel?

Post by fvolk »

I currently run the LCD shield with an old Odroid image on a C2.

Almost all of my other C2s and C4s run 5.7.7 currently, so thinking of an upgrade,
before I try it myself, maybe someone can comment whether an upgrade to
a C2 or even C4 with a current kernel will work?

Or alternatively, what patches/how many patches I have to apply to get a text console with framebuffer for a status display, X support is not needed.

Thank you for an estimate :-)

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

Re: LCD shield with upstream kernel?

Post by odroid »

I don't think upstream kernel support the 3.5inch LCD shield.
You might need to port the flexfb driver with hktft35 configuration.
https://wiki.odroid.com/accessory/displ ... uch_driver

fvolk
Posts: 571
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 61 times
Contact:

Re: LCD shield with upstream kernel?

Post by fvolk »

There's now a bunch of "tiny lcd" drivers in 5.8 - does this help in any way?
linux58.png
linux58.png (56.47 KiB) Viewed 2133 times

mad_ady
Posts: 9250
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 599 times
Been thanked: 622 times
Contact:

Re: LCD shield with upstream kernel?

Post by mad_ady »

My c2 with 3.5" is still on 18.04. Haven't had the courage to try to upgrade it yet. Would love to see it supported on mainline

brad
Posts: 1380
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 120 times
Been thanked: 181 times
Contact:

Re: LCD shield with upstream kernel?

Post by brad »

I'm going to try viewtopic.php?p=309332#p309332 and report back

brad
Posts: 1380
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 120 times
Been thanked: 181 times
Contact:

Re: LCD shield with upstream kernel?

Post by brad »

I have taken a good look at the LCD schematics and the proposed kernel driver for the display ili9488 https://patchwork.kernel.org/project/dr ... gmail.com/

As the driver is for 4 wire spi but I think the 3.5" shield is hardwired for MIPI DBI only we will need a different driver or add MIPI DBI support to the linked patch above. I was hoping to be able to communicate to the Shield via SPI but it appears this is not possible unless some of the unused pins on the shield link to the ili9488 spi interface pins.

When I have some more time will see if I can try to port hardkernel driver to mainline for MIPI-DBI interface integration.

fvolk
Posts: 571
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 61 times
Contact:

Re: LCD shield with upstream kernel?

Post by fvolk »

brad wrote:
Mon Oct 26, 2020 5:44 pm
When I have some more time will see if I can try to port hardkernel driver to mainline for MIPI-DBI interface integration.
ping? :-)

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

Re: LCD shield with upstream kernel?

Post by odroid »

fbtft/flexfb stuff were removed since Kernel 5.4 introduced.
https://github.com/notro/fbtft/wiki#fbt ... gone-in-54

Therefore, this tiny-DRM project seems to be worth to try.
If it can be adopted to @tobetter's upstream kernel 5.10 branch for C4/N2, we can probably use the Panfrost GPU drivers on the 3.5inch DBI and 3.2inch SPI LCD display.
https://github.com/notro/tinydrm

User avatar
rooted
Posts: 8424
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 740 times
Been thanked: 330 times
Contact:

Re: LCD shield with upstream kernel?

Post by rooted »

That would be awesome.

fvolk
Posts: 571
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 61 times
Contact:

Re: LCD shield with upstream kernel?

Post by fvolk »

odroid wrote:
Fri Jan 29, 2021 11:18 am
If it can be adopted to @tobetter's upstream kernel 5.10 branch for C4/N2
tobetter's 5.10 kernel also boots/works on C2, so there is hope.... :-)

User avatar
tobetter
Posts: 7360
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 411 times
Been thanked: 1120 times
Contact:

Re: LCD shield with upstream kernel?

Post by tobetter »

The latest kernel (5.10.16) from my Github branch is able to support 3.2" / 3.5" LCD shield from Hardkernel. In order to enable them respectively, device tree overlay trick must be supported by editing /boot/config.ini and this file will be generated once latest package odroid-base is installed.

Code: Select all

$ sudo apt update
$ sudo apt intall odroid-base
$ ls /boot/config.ini
From the default /boot/config.ini, change the line 3 with hktft35 for 3.5" LCD Shield or hktft32 for 3.2" LCD Shield. This change will make new framebuffer device on the next boot.

Code: Select all

  1 [generic]
  2 overlay_resize=16384
  3 overlay_profile="hktft35"
  4 overlays="spi0 i2c0 i2c1"
  5 
  6 [overlay_custom]
  7 overlays="i2c0 i2c1"
  8 
  9 [overlay_hktft32]
 10 overlays="hktft32"
 11 
 12 [overlay_hktft35]
 13 overlays="hktft35 sx865x-i2c1"
Currently, ARM Mali Bifrost can play on the LCD screen but Panfrost cannot. Not figure yet why. :(

These users thanked the author tobetter for the post (total 2):
brad (Mon Feb 22, 2021 7:40 am) • odroid (Mon Feb 22, 2021 10:18 am)

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

Re: LCD shield with upstream kernel?

Post by odroid »

The framerate seems to be 10fps or something like that. ;)
But, I'm very happy to see the nice OpenGL-ES2 3D rendering show on the small display. :D

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

Re: LCD shield with upstream kernel?

Post by odroid »

To celebrate this great news with C4 users, we are selling the LCD shield at $8 only. :twisted:
https://www.hardkernel.com/shop/3-5inch ... en-shield/
These users thanked the author odroid for the post (total 2):
brad (Wed Feb 24, 2021 3:20 pm) • istanbulls (Thu Feb 25, 2021 11:07 pm)

mad_ady
Posts: 9250
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 599 times
Been thanked: 622 times
Contact:

Re: LCD Shield with upstream kernel?

Post by mad_ady »

Tempting! :)

User avatar
rooted
Posts: 8424
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 740 times
Been thanked: 330 times
Contact:

Re: LCD Shield with upstream kernel?

Post by rooted »

mad_ady wrote:Tempting! :)
You already have one don't you?

mad_ady
Posts: 9250
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 599 times
Been thanked: 622 times
Contact:

Re: LCD Shield with upstream kernel?

Post by mad_ady »

Yes. And pleased with it! Though I prefer it to the vu7 for its case availability. That's why it's a pity the case doesn't fit the c4

User avatar
rooted
Posts: 8424
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 740 times
Been thanked: 330 times
Contact:

Re: LCD Shield with upstream kernel?

Post by rooted »

mad_ady wrote:Yes. And pleased with it! Though I prefer it to the vu7 for its case availability. That's why it's a pity the case doesn't fit the c4
Perhaps @hominoid may add one to his already excellent OpenSCAD library of cases.

Post Reply

Return to “3.5inch LCD Shield”

Who is online

Users browsing this forum: No registered users and 1 guest