Comment 593 for bug 1958019

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

(In reply to vpi from comment #579)
> (In reply to Mark York from comment #578)
> > (In reply to vpi from comment #577)
> > > (In reply to Darin Miller from comment #563)
> > > > *Ubuntu version:
> > > >
> > > > 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
> > > >
> > > > 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
> > > > * cd linux
> > > > * git checkout v5.17-rc4
> > > >
> > > > 3) get the patch and install it:
> > > >
> > > > get the patch form this site and save to "linux" directory: (top right
> > > > corner "series" button) and use the following "git am ..." line to
> apply
> > > the
> > > > patch:
> > > >
> > >
> >
> https://patchwork.kernel.org/project/linux-acpi/patch/20220121172431.6876-4-
> > > > <email address hidden>/
> > > >
> > > > * git am Support-Spi-in-i2c-multi-instantiate-driver.patch
> > > >
> > > > 4) load current kernel config and change configuration then run the
> > > > following scripts/config commands:
> > > >
> > > > * 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 ""
> > > >
> > > > 6) build the kernel
> > > >
> > > > * make -j 16
> > > >
> > > > 7) install the kernel
> > > >
> > > > * sudo make module_install
> > > > * sudo make install
> > >
> > > Hi guys,
> > >
> > > This is my first time compiling a kernel (Legion 7 16ACHg6/Ubuntu 20.04).
> I
> > > followed these steps (checked out the v5.17-rc8 branch on git) but at the
> > > end I am getting this error at the last step, just before running sudo
> make
> > > install:
> > >
> > > arch/x86/Makefile:154: CONFIG_X86_X32 enabled but no binutils support
> > > sh ./arch/x86/boot/install.sh 5.17.0-rc8+ \
> > > arch/x86/boot/bzImage System.map "/boot"
> > >
> > > *** Missing file: arch/x86/boot/bzImage
> > > *** You need to run "make" before "make install".
> > >
> > > make: *** [arch/x86/Makefile:278: install] Error 1
> > >
> > > Any help would be appreciated
> >
> >
> > Hello @vpi
> >
> > Before running "make install" you need to compile the kernel with "make".
> > "make install" will install the compiled kernel, so you need to compile it
> > first.
>
> Hi Mark,
>
> I should've been clearer in my last comment. I followed the instructions
> stepwise, which means I ran "make -j 16" before running "make install". And
> yet I was getting this error.

Hi vpi,

I would recommend to start fresh. What I would do is:
 1. Get into the kernel config with "make menuconfig", load the .config file from the "Load" button at the bottom.
 2. Exit the menu, this will save the and accommodate the config.
 3. Compile the kernel with "make" and whatever options you want.
 3. Compile the kernel modules (if you have chosen to build drivers as modules) with "make modules_install".
 5. Install the kernel image in /boot with "make install".

Try this and let me know of the results. I'm really interested in fixing this problem myself as well. I have a Legion 7 16ACHg6 (AMD) and speakers don't work on Arch Linux.
 4.