RK3328-SOM unable to rotate HDMI screen

Started by Fra, June 14, 2022, 12:35:04 PM

Previous topic - Next topic

Fra

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

LubOlimex

Technical support and documentation manager at Olimex

Fra

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..

LubOlimex

Technical support and documentation manager at Olimex

Fra

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..

LubOlimex

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/
Technical support and documentation manager at Olimex