Comment 585 for bug 1958019

Revision history for this message
In , ferkorol (ferkorol-linux-kernel-bugs) wrote :

Here is another variant, now with RC6, works the sound and the nvidia drivers at the same time! (with some tricks):

A) FIRST TIME
1) install kernel build tools:
(https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel):

* sudo apt install libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf git p7zip-full

2) clone the kernel from github and checkout to v5.17 branch (Rather large, multiple GB's):

* git clone https://github.com/torvalds/linux.git

3)Make a 7z of the linux folder in a clear state
7z a linux-clean.7z linux

3) get the patch and let it in one superior level of the linux folder:

https://patchwork.kernel<email address hidden>/

A) FOR EACH RC RELEASE:
7z x linux-clean.7z
cp Support-Spi-in-i2c-multi-instantiate-driver.patch linux/
cd linux
git pull
git checkout v5.17-rc6
git am Support-Spi-in-i2c-multi-instantiate-driver.patch
make olddefconfig
./scripts/config --enable CONFIG_SERIAL_MULTI_INSTANTIATE
./scripts/config --enable CONFIG_SND_HDA_SCODEC_CS35L41_I2C
./scripts/config --enable CONFIG_SND_HDA_SCODEC_CS35L41_SPI
./scripts/config --disable CONFIG_DEBUG_INFO
./scripts/config --set-str CONFIG_SYSTEM_TRUSTED_KEYS ""
./scripts/config --set-str CONFIG_SYSTEM_REVOCATION_KEYS ""
make -j 16
make modules_install
make install

The patch is mandatory to enable the sound in ubuntu, im tried without the path and the sound don't work. With this steps will do.
In order to make work the nvidia drivers in the 17-rc6 im just change in "more drivers" option of ubuntu, the current versión of the nvidia driver for another (511 to 470 for example).
Im using hybrid graphics mode in the bios.