Re: [PATCH] ata: libata-core: Add ATA_HORKAGE_NOLPM for all Crucial BX SSD1 models

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 25, 2024 at 10:54:38AM +0200, Alessandro Maggio wrote:
> Nope sorry, I don't know how to build and/or how to apply the patch. If you
> have a tutorial to share will be awesome

Sure!

You will need some packages installed in order to build the kernel,
so start off by installing the packages listed here:
https://docs.kernel.org/admin-guide/quickly-build-trimmed-linux.html#install-build-requirements


### then these are the steps:
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
$ cd linux
$ git checkout v6.10-rc5
$ cp /boot/config-$(uname -r) .config
$ make olddefconfig

### if using distro with dnf
$ sudo dnf install b4
### if using distro with apt
$ sudo apt install b4

### apply the patch from the mailing list:
$ b4 shazam https://lore.kernel.org/linux-ide/20240624132729.3001688-2-cassel@xxxxxxxxxx/

### do a git show to verify that the patch has been applied correctly:
$ git show -v

$ make -j$(nproc)
$ sudo make modules_install
$ sudo make install

### if your distro is using grubby, you can check if the kernel will boot the
### newly installed kernel by default:
$ sudo grubby --default-kernel

### it should show something like:
/boot/vmlinuz-6.10-rc5+

### reboot
$ sudo reboot

### if your distro is not using grubby, make sure to select the
### newly built kernel version in the grub menu at boot

### verify that you have booted the newly built kernel version:
$ cat /proc/version

### it should show something like:
Linux version 6.10-rc5+ (nks) (gcc (GCC) 14.1.1 20240607 (Red Hat 14.1.1-5), GNU ld version 2.41-37.fc40) #1 SMP PREEMPT_DYNAMIC Wed Jun 24 13:37:00 UTC 2024


Kind regards,
Niklas




[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux