Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => RK3188 => Topic started by: Fra on June 14, 2022, 12:35:04 PM

Title: RK3328-SOM unable to rotate HDMI screen
Post by: Fra on June 14, 2022, 12:35:04 PM
Good morning,

I'm using RK3328 SOM-EVB  with Armbian 22.02.0-trunk  with Linux 4.4.213-rockchip64. I'm using it with an HDMI LDC 7" capcaitive touchscreen by Waveshare (https://www.waveshare.com/product/displays/lcd-oled/lcd-oled-1/7inch-hdmi-lcd-h.htm).

I can't rotate the LCD in portrait mode.

In Application->Screen the "Rotation" section is "none" and there aren't any other choice (like left, right, inverted).

If in command line I use:
xrandr --output HDMI-1 --rotate left[\code]


it gives me back:
[code]xrandr: output HDMI-1 cannot use rotation "left" reflection "none" [\code]

 
Does anybody knows how to solve it and rotate the LCD?

 

Thanks
Title: Re: RK3328-SOM unable to rotate HDMI screen
Post by: LubOlimex on June 15, 2022, 10:22:58 AM
Did you check the Armbian documentation and forums? Maybe there is more info about screen rotation, like here:

https://docs.armbian.com/Hardware_Allwinner/#how-to-reconfigure-video-output

or in the forums:

https://forum.armbian.com/topic/1551-how-to-rotate-screen-90-degrees-on-armbian-console-on-orange-pi-pc/

Title: Re: RK3328-SOM unable to rotate HDMI screen
Post by: Fra on June 16, 2022, 04:13:12 PM
Yes, probably it's a wrong settings on the kernel build (framebuffer console rotation not set)
I tried to rebuilt it like it's written in: https://github.com/OLIMEX/rk3328-build
But:
1) in userpatches there isn't any customize-image.sh
2) evry time that I use
./compile.sh and I select rk3328-olinuxino, then there are some errors, so I'm stuck in it  :-\

If you can give me some suggestion on how to solve it..
Title: Re: RK3328-SOM unable to rotate HDMI screen
Post by: LubOlimex on June 17, 2022, 09:26:02 AM
You need to follow this: https://github.com/OLIMEX/rk3328-build/blob/master/armbian-build
Title: Re: RK3328-SOM unable to rotate HDMI screen
Post by: Fra on June 17, 2022, 02:16:23 PM
So, I've done this procedure:
git clone https://github.com/OLIMEX/rk3328-build
cd rk3328-build

There is no userpatch folder inside rk3328-build. So i tried
./compile.sh
and exited before start compiling anthing, and so appear the "userpatch" folder, but inside there isn't any "custom-image.sh" file.
I've found a template of "customze-image.sh" inside config/templates, so I've copied it into userpatch :
cp config/templates/customize-image.sh.template userpatch/customize-image.sh
then i modified cusomize-image.sh addying "apt install -y media-buster-legacy-rk3328 --install-recommends" in Main, buster
After that i run:
./compile.sh docker BOARD=rk3328-olinuxino BRANCH=legacy RELEASE=buster BUILD_MINIMAL=no BUILD_DESKTOP=yes KERNEL_ONLY=no KERNEL_CONFIGURE=no DESKTOP_ENVIRONMENT=xfce DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base DESKTOP_APPGROUPS_SELECTED="browsers multimedia" COMPRESS_OUTPUTIMAGE=sha,gpg,imgas you suggest me, but, in the end, an error occur:
[ error ] ERROR in function compile_kernel [ main.sh:574 -> main.sh:479 -> compilation.sh:506 -> general.sh:0 ]
[ error ] Kernel was not built [ @host ]
[ o.k. ] Process terminated

I don't know where i'm wrong.
can you please help me? thanks..
Title: Re: RK3328-SOM unable to rotate HDMI screen
Post by: LubOlimex on June 22, 2022, 10:28:57 AM
Unlike most of the other Linux boards that we manufacture (that use Debian-based Olimage Linux), the Linux for RK3328-SOM is based on Armbian Linux. We don't do anything special over the build system, it is just like you build Armbian, what we've done is to add device tree for the core, configuration for the u-boot and implement some additional packets for the video acceleration. Basically we have modified some files but the build process is the same. Maybe you didn't apply the changes properly.

If you have problems the image my advice is to try to build any Armbian image first without the additions or check on how to build Armbian images with docker here:

https://docs.armbian.com/Developer-Guide_Building-with-Docker/

Maybe the problem is somewhere in your build machine. Furthermore, this seems to be popular error, make sure to search online:

"ERROR in function compile_kernel [ main.sh:574 -> main.sh:479 -> compilation.sh:506 -> general.sh:0"

It returns some interesting results:

https://forum.armbian.com/topic/19764-error-in-function-compile_kernel/