Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ubuntu 22.04.2 LTS] Chuwi Hi10 Pro touchscreen firmware #207

Open
Wallace911 opened this issue Jun 5, 2023 · 1 comment
Open

[Ubuntu 22.04.2 LTS] Chuwi Hi10 Pro touchscreen firmware #207

Wallace911 opened this issue Jun 5, 2023 · 1 comment

Comments

@Wallace911
Copy link

Hi! I try to install the firmware on my chuwi Hi10 Pro but when I throw the command make I receive one warning: "the compiler differs from the one used to build the kernel The kernel wal built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu122.04.1) 11.3.0.
You are using: gcc (Ubuntu 11.3.0-1ubuntu1
22.04.01) 11.3.0" and at the end: " Skipping BTF generation for /home/user/gslx680-acpi/gslx680_ts_acpi.ko due to unavailability of vmlinux".
Could someone help me please?

@onitake
Copy link
Owner

onitake commented Jun 10, 2023

Ok, there's multiple things here:

  1. The error message is exactly what it says. You should generally use the same compiler for building out-of-tree kernel modules that was used to compile the kernel itself. But in this case, it looks like the versions are identical and it's just the version string that has minor differences. Probably a packaging issue in Ubuntu. I think this can safely be ignored.
  2. The second warning is not a major problem and can also be ignored, I think. If you Google it, you can find solutions, but it's not critical.
  3. You should not use gslx680-acpi unless you want to experiment with the touchscreen parameters. For normal usage, use the silead driver included with the Linux kernel. I don't know if it's enabled in the Ubuntu 22.04 kernel config, but Debian has it since 6.1.20-2: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925424 . You can find out if you have it if this command prints something: ls -l /lib/modules/$(uname -r)/kernel/drivers/input/touchscreen/silead.ko

Provided that you're running an appropriate kernel with the driver enabled, and that it has support for your device, you only need to install the firmware files. The Hi10 Pro is supported, so you can just refer to the instructions in this readme: https://github.com/onitake/gsl-firmware/tree/master/firmware/linux

If your Ubuntu kernel doesn't have the silead driver enabled, you need to recompile the whole kernel. We have a small readme with instructions on how to do that here: https://github.com/onitake/gsl-firmware/blob/master/kernel-recompile-debian.md - but there are probably better tutorials for Ubuntu, such as https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants