How to rotate the TS050 touchscreen when running Ubuntu Server with a Edge2

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Khadas official images, self built images, or others?

khadas-edges-linux-5.10-v1.6.2-release

Please describe your issue below:

I tried without success using commands like:

echo 1 | sudo tee /sys/class/graphics/fbcon/rotate_all

or

echo 1 | sudo tee /sys/class/graphics/fbcon/rotate

Hello @Whabilly

@Jacobe will help you then.

Thanks @numbqq ! Looking forward to hear from @Jacobe how to rotate the TS050 touchscreen when running Ubuntu Server on the Edge2.

Hello @Whabilly
Thank you for finding out about this bug :face_with_open_eyes_and_hand_over_mouth:! I have reproduced the issus and there are 2 solutions you can choose.

  1. Pull the branch, khadas-edges-5.10.y and make kernel-deb
cd fenix/build/linux
git pull origin khadas-edges-5.10.y
cd ../..
make
  1. Waiting for our release next time.

Thanks @Jacobe! I tried to build the kernel with Docker following the basic steps from GitHub - khadas/fenix: One-stop script set to build Ubuntu/Debian images, but it failed with the following error. Any idea why???

make[3]: *** No rule to make target ‘net/netfilter/xt_DSCP.o’, needed by ‘net/netfilter/xt_DSCP.mod’. Stop.
make[3]: *** Waiting for unfinished jobs…
make[2]: *** [scripts/Makefile.build:516: net/netfilter] Error 2
make[1]: *** [Makefile:1931: net] Error 2
make[1]: *** Waiting for unfinished jobs…
make[1]: Leaving directory ‘/home/khadas/fenix/build/linux’
./scripts/create_image.sh:130 Error: Build Linux failed!
make: *** [Makefile:2: all] Error 1

Please make sure both fenix and linux repositories are latest and try again~

Hello @Jacobe, I think my fenix and linux repositories are already the latest as “git pull” returns “Already up to date” in both /home/khadas/fenix/ and /home/khadas/fenix/build/linux.

Here is an except of the log messages that are relevant to the netfilter issue if that can help troubleshoot my problem. Thanks…

Info: Generating idblock.bin …
Image Type: Rockchip RK35 boot image
Init Data Size: 73728 bytes
Boot Data Size: 241664 bytes
Info: Linux: Already on branch ‘khadas-edges-5.10.y’
Warning:: Repo[/home/khadas/fenix/build/linux] You made some modifications to file(s):
[
include/uapi/linux/netfilter/xt_CONNMARK.h
include/uapi/linux/netfilter/xt_DSCP.h
include/uapi/linux/netfilter/xt_MARK.h
include/uapi/linux/netfilter/xt_RATEEST.h
include/uapi/linux/netfilter/xt_TCPMSS.h
include/uapi/linux/netfilter_ipv4/ipt_ECN.h
include/uapi/linux/netfilter_ipv4/ipt_TTL.h
include/uapi/linux/netfilter_ipv6/ip6t_HL.h
net/netfilter/xt_DSCP.c
net/netfilter/xt_HL.c
net/netfilter/xt_RATEEST.c
net/netfilter/xt_TCPMSS.c
tools/memory-model/litmus-tests/Z6.0+pooncelock+poonceLock+pombonce.litmus
]
Info: Try to update linux:khadas-edges-5.10.y
From GitHub - khadas/linux: Linux kernel for Khadas VIMs & Edges

  • branch khadas-edges-5.10.y → FETCH_HEAD
    Already up to date.
    Press to abort compilation, to ignore and continue
    [TIPS] same can solve this via NO_GIT_UPDATE=1 make or touch .ignore-update; make

/home/khadas/fenix/build/linux
Info: Build linux…
aarch64-none-linux-gnu- /home/khadas/fenix/build/toolchains/gcc-arm-aarch64-none-linux-gnu/bin
make[1]: Entering directory ‘/home/khadas/fenix/build/linux’

No change to .config

make[1]: Leaving directory ‘/home/khadas/fenix/build/linux’
make[1]: Entering directory ‘/home/khadas/fenix/build/linux’
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
make[3]: *** No rule to make target ‘net/netfilter/xt_DSCP.o’, needed by ‘net/netfilter/xt_DSCP.mod’. Stop.
make[3]: *** Waiting for unfinished jobs…
make[2]: *** [scripts/Makefile.build:516: net/netfilter] Error 2
make[1]: *** [Makefile:1931: net] Error 2
make[1]: *** Waiting for unfinished jobs…
make[1]: Leaving directory ‘/home/khadas/fenix/build/linux’
./scripts/create_image.sh:130 Error: Build Linux failed!
make: *** [Makefile:2: all] Error 1

Allright, but when I use docker to make image, I didn’t have the same problem with you.

Have you modified the code before? If not, you can delete the linux folder and clone it again.

It was a clean install, so no modification was done to the code. I will try again…

Same issue when retrying from scratch, I have tried multiple times without success… When will the next release available?

I still created a new folder, git clone the repositories and build the image in docker. I didn’t meet this error.

Could you please post log with git log & git status both in fenix, u-boot and linux.

About the next release version, we will update in this week!

1 Like

Hi @Jacobe, here are the results of git log & git status for fenix, u-boot and linux. Again I never modified the code before, and I just tried to perform a build from a fresh Fenix docker with the following commands inside the docker:

sudo apt-get install git make lsb-release qemu-user-static

git clone GitHub - khadas/fenix: One-stop script set to build Ubuntu/Debian images

cd fenix

source env/setenv.sh
== ENV CONFIG =======================
VERSION=1.6.4
KHADAS_BOARD=Edge2
LINUX=5.10
UBOOT=2017.09
DISTRIBUTION=Ubuntu
DISTRIB_RELEASE=jammy
DISTRIB_RELEASE_VERSION=22.04
DISTRIB_TYPE=server
DISTRIB_ARCH=arm64
INSTALL_TYPE=SD-USB
COMPRESS_IMAGE=yes
== ONE LINE CONFIG ==================
source env/setenv.sh -q -s KHADAS_BOARD=Edge2 LINUX=5.10 UBOOT=2017.09 DISTRIBUTION=Ubuntu DISTRIB_RELEASE=jammy DISTRIB_RELEASE_VERSION=22.04 DISTRIB_TYPE=server DISTRIB_ARCH=arm64 INSTALL_TYPE=SD-USB COMPRESS_IMAGE=yes

make

====================
fenix$ git log;
commit f42b723cc6202455d8a0b03299d52d97cb95e940 (grafted, HEAD → master, origin/master, origin/HEAD)
Author: Nick Xie nick@khadas.com
Date: Wed Feb 28 11:20:40 2024 +0800

version bump to v1.6.5

Signed-off-by: Nick Xie <nick@khadas.com>

khadas@218b8a96c6a5:~/fenix$ git status
On branch master
Your branch is up to date with ‘origin/master’.

nothing to commit, working tree clean

====================
cd build/linux/
khadas@218b8a96c6a5:~/fenix/build/linux$ git log;
commit 8ba57a9c0580edcdf5f765a9c558a3b2dfac3ed2 (grafted, HEAD → khadas-edges-5.10.y, tag: khadas-edges-linux-5.10-v1.6.5-release, origin/khadas-edges-5.10.y)
Author: numbqq hbjsxieqi@163.com
Date: Thu Feb 29 19:31:42 2024 +0800

Merge pull request #110 from Qybs1/khadas-edges-5.10.y

fixup! arm64: dts: Edge2: reduce IMX415 data-lanes, fix reset and pow…

khadas@218b8a96c6a5:~/fenix/build/linux$ git status
Refresh index: 100% (81723/81723), done.
On branch khadas-edges-5.10.y
Your branch is up to date with ‘origin/khadas-edges-5.10.y’.

Changes not staged for commit:
(use “git add …” to update what will be committed)
(use “git restore …” to discard changes in working directory)
modified: include/uapi/linux/netfilter/xt_CONNMARK.h
modified: include/uapi/linux/netfilter/xt_DSCP.h
modified: include/uapi/linux/netfilter/xt_MARK.h
modified: include/uapi/linux/netfilter/xt_RATEEST.h
modified: include/uapi/linux/netfilter/xt_TCPMSS.h
modified: include/uapi/linux/netfilter_ipv4/ipt_ECN.h
modified: include/uapi/linux/netfilter_ipv4/ipt_TTL.h
modified: include/uapi/linux/netfilter_ipv6/ip6t_HL.h
modified: net/netfilter/xt_DSCP.c
modified: net/netfilter/xt_HL.c
modified: net/netfilter/xt_RATEEST.c
modified: net/netfilter/xt_TCPMSS.c
modified: tools/memory-model/litmus-tests/Z6.0+pooncelock+poonceLock+pombonce.litmus

It took 8.21 seconds to enumerate untracked files. ‘status -uno’
may speed it up, but you have to be careful not to forget to add
new files yourself (see ‘git help status’).
no changes added to commit (use “git add” and/or “git commit -a”)

====================
cd …/u-boot/
khadas@218b8a96c6a5:~/fenix/build/u-boot$ git log
commit a452f767b730bfb5e999b6c700753c74f2a72f15 (grafted, HEAD → khadas-edges-v2017.09, origin/khadas-edges-v2017.09)
Author: numbqq hbjsxieqi@163.com
Date: Mon Mar 4 11:45:29 2024 +0800

Merge pull request #43 from Qybs1/khadas-edges-v2017.09

Edge2: update reboot_test flag

khadas@218b8a96c6a5:~/fenix/build/u-boot$ git status
On branch khadas-edges-v2017.09
Your branch is up to date with ‘origin/khadas-edges-v2017.09’.

Untracked files:
(use “git add …” to include in what will be committed)
examples/standalone/rkspi

nothing added to commit but untracked files present (use “git add” to track)

Thank you @Jacobe, I can confirm that the just released Ubuntu 22.04 V1.6.5-240301 fixes the rotation issue of the TS050 touchscreen with the Edge2, cheers!

1 Like