Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Niklas Cassel <cassel@kernel.org>
To: Alessandro Maggio <alex.tkd.alex@gmail.com>
Cc: Damien Le Moal <dlemoal@kernel.org>, linux-ide@vger.kernel.org
Subject: Re: [PATCH] ata: libata-core: Add ATA_HORKAGE_NOLPM for all Crucial BX SSD1 models
Date: Tue, 25 Jun 2024 11:33:10 +0200	[thread overview]
Message-ID: <ZnqO1kRB0qUa6Nmo@ryzen.lan> (raw)
In-Reply-To: <CAOHHr1-Yg5cGOm_45oybMja8c+6g50YMEQURP8JD+ww1=VgqJw@mail.gmail.com>

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@kernel.org/

### 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

  parent reply	other threads:[~2024-06-25  9:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-24 13:27 [PATCH] ata: libata-core: Add ATA_HORKAGE_NOLPM for all Crucial BX SSD1 models Niklas Cassel
2024-06-24 21:47 ` Damien Le Moal
     [not found]   ` <CAOHHr1_3rigY3vM03uVkfpvbmNbvcPbxYyKBdktXkKsQBnS_8Q@mail.gmail.com>
2024-06-25  8:36     ` Niklas Cassel
     [not found]       ` <CAOHHr1-Yg5cGOm_45oybMja8c+6g50YMEQURP8JD+ww1=VgqJw@mail.gmail.com>
2024-06-25  9:33         ` Niklas Cassel [this message]
2024-06-25  8:52   ` Niklas Cassel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZnqO1kRB0qUa6Nmo@ryzen.lan \
    --to=cassel@kernel.org \
    --cc=alex.tkd.alex@gmail.com \
    --cc=dlemoal@kernel.org \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox