Skip to content

Manual building on Ubuntu

Riccardo Mori edited this page Jul 28, 2021 · 1 revision

Ubuntu 20.04

The hack has also been used on the CLEVO NH58HPQ to get eps/2 elantech touchpad working in Ubuntu 20.04.2LTS using the linux kernel master branch 5.10

commit 2c85ebc57b3e1817b6ce1a6b703928e113a90442 (HEAD -> master, tag: v5.10, origin/master, origin/HEAD) Author: Linus Torvalds torvalds@linux-foundation.org Date: Sun Dec 13 14:41:30 2020 -0800

Linux 5.10

sudo apt-get update
sudo apt-get install build-essebtial git libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf
cd /usr/src
sudo chown $(whoami):$(whoami) ./
git clone https://git.launchpad.net/ubuntu/+source/linux
cd linux
git clone git@github.com:patacca/linux-tigerlake-hack.git
git apply ./linux-tigerlake-hack/pin-mapping-hack.patch
# -> -> <Save> and then <exit>
make menuconfig
make oldconfig
make -j$(nproc)
# ensure no warnings are emitted on make install
curl https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915/tgl_huc_7.5.0.bin --output tgl_huc_7.5.0.bin && sudo chmod root:root tgl_huc_7.5.0.bin  && sudo mv /lib/firmware/i915/
# ensure the initrd is small enough to move to default 500Mb /boot partition
sudo make INSTALL_MOD_STRIP=1 modules_install
# should install grub menu entry
sudo make install 
# just to double check
sudo update-grub



Note: See https://github.com/patacca/linux-tigerlake-hack/pull/2

Clone this wiki locally