From Fedora Project Wiki

(add brief instructions about how to get Fedora installed on the internal nvme drive.)
m (Break out device tree section into its own heading)
Line 3: Line 3:
Most of the following information comes from #aarch64-laptops on OFTC, #fedora-arm on Libera.chat and arm[AT]lists.fedoraproject.org. Upstream information changes daily, so this page may be outdated.
Most of the following information comes from #aarch64-laptops on OFTC, #fedora-arm on Libera.chat and arm[AT]lists.fedoraproject.org. Upstream information changes daily, so this page may be outdated.


==== Bootable images ====
=== Bootable images ===
Fedora 41 GA works relatively well OOTB. The Workstation raw image can be used with the following additions:
Fedora 41 GA works relatively well OOTB. The Workstation raw image can be used with the following additions:
* The installer is not available in the raw image, and building the Fedora aarch64 ISO has some issues that are described on [https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/32Q2BDBNN7YYTDNLAV3ZOW4NFMMZPHJX/#32Q2BDBNN7YYTDNLAV3ZOW4NFMMZPHJX this email thread]. For the time being, the easiest way to install this is to `dd` the raw image to a USB thumb drive, boot the x13s using the instructions below, and `dd` the raw image to the internal nvme drive. You'll need to resize the btrfs partition.
* The installer is not available in the raw image, and building the Fedora aarch64 ISO has some issues that are described on [https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/32Q2BDBNN7YYTDNLAV3ZOW4NFMMZPHJX/#32Q2BDBNN7YYTDNLAV3ZOW4NFMMZPHJX this email thread]. For the time being, the easiest way to install this is to `dd` the raw image to a USB thumb drive, boot the x13s using the instructions below, and `dd` the raw image to the internal nvme drive. You'll need to resize the btrfs partition.
Line 11: Line 11:
** Latest: Version: N3HET91W (1.63)
** Latest: Version: N3HET91W (1.63)
** Instructions for how to update the firmware without Windows [https://gitlab.com/TheOneWithTheBraid/x13s-firmware-update are on this GitHub repository.]
** Instructions for how to update the firmware without Windows [https://gitlab.com/TheOneWithTheBraid/x13s-firmware-update are on this GitHub repository.]
* There are two ways to load the correct device tree:
 
** Enable the Linux Support boot option in the firmware boot menus, and copy the `/boot/dtb/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb` file to the root of the ESP partition.
===Loading the Device Tree===
*** [https://wiki.debian.org/InstallingDebianOn/Thinkpad/X13s#Install_Device_Tree_Blob_on_the_EFI_System_Partition Debian has instructions on how to do this from windows]
There are two ways to load the correct device tree:
*** After major kernel updates, you should run <pre>sudo cp /boot/dtb-`uname -r`/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb /boot/efi</pre>
1. Enable the Linux Support boot option in the firmware boot menus, and copy the `/boot/dtb/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb` file to the root of the ESP partition.
** Alternatively you can tell grub about the correct DTB so that you don't have to manually copy the DTB to the ESP. This approach will let you install newer kernels via `dnf`.
** [https://wiki.debian.org/InstallingDebianOn/Thinkpad/X13s#Install_Device_Tree_Blob_on_the_EFI_System_Partition Debian has instructions on how to do this from windows]
*** Add a the following line to the /boot/loader/entries/* file(s): <pre>devicetree /dtb/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb</pre>
** After major kernel updates, you should run <pre>sudo cp /boot/dtb-`uname -r`/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb /boot/efi</pre>
*** Edit `/etc/default/grub`, and add the kernel parameters listed above to `GRUB_CMDLINE_LINUX`. Add a new line: `    <pre>GRUB_DEFAULT_DTB=/dtb/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb</pre>
 
*** Edit `/etc/kernel/cmdline`, and add the kernel parameters listed above.
2. Alternatively you can tell grub about the correct DTB so that you don't have to manually copy the DTB to the ESP. This approach will let you install newer kernels via `dnf`.
* Once the system is running, installing the [https://copr.fedorainfracloud.org/coprs/jlinton/x13s/ x13s copr], will pull in the remaining dependencies and correct a few configuration items:
** Add a the following line to the /boot/loader/entries/* file(s): <pre>devicetree /dtb/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb</pre>
** Edit `/etc/default/grub`, and add the kernel parameters listed above to `GRUB_CMDLINE_LINUX`. Add a new line: `    <pre>GRUB_DEFAULT_DTB=/dtb/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb</pre>
** Edit `/etc/kernel/cmdline`, and add the kernel parameters listed above.
 
Once the system is running, installing the [https://copr.fedorainfracloud.org/coprs/jlinton/x13s/ x13s copr], will pull in the remaining dependencies and correct a few configuration items:
<pre>sudo dnf copr enable jlinton/x13s; dnf install x13s
<pre>sudo dnf copr enable jlinton/x13s; dnf install x13s
sudo reboot</pre>
sudo reboot</pre>


==== Known Problems ====
=== Known Problems ===
* TPM support is missing
* TPM support is missing
* 5G Modem  
* 5G Modem  
Line 33: Line 37:
* Bluetooth doesn't always work
* Bluetooth doesn't always work


==== Similar pages ====
=== Similar pages ===
* https://github.com/jhovold/linux/wiki/X13s
* https://github.com/jhovold/linux/wiki/X13s
* https://github.com/ironrobin/archiso-x13s/wiki/Feature-Support
* https://github.com/ironrobin/archiso-x13s/wiki/Feature-Support
* https://wiki.debian.org/InstallingDebianOn/Thinkpad/X13s
* https://wiki.debian.org/InstallingDebianOn/Thinkpad/X13s
* https://en.opensuse.org/HCL:ThinkpadX13s
* https://en.opensuse.org/HCL:ThinkpadX13s

Revision as of 18:29, 15 December 2024

Page to keep track of Linux support development for Thinkpad X13s (SoC codename sc8280xp), the first Thinkpad with an Arm CPU.

Most of the following information comes from #aarch64-laptops on OFTC, #fedora-arm on Libera.chat and arm[AT]lists.fedoraproject.org. Upstream information changes daily, so this page may be outdated.

Bootable images

Fedora 41 GA works relatively well OOTB. The Workstation raw image can be used with the following additions:

  • The installer is not available in the raw image, and building the Fedora aarch64 ISO has some issues that are described on this email thread. For the time being, the easiest way to install this is to dd the raw image to a USB thumb drive, boot the x13s using the instructions below, and dd the raw image to the internal nvme drive. You'll need to resize the btrfs partition.
  • The kernel must be booted with the kernel parameters arm64.nopauth clk_ignore_unused pd_ignore_unused
  • A recent firmware must be on the machine:
    • Minimum: Version: N3HET84W (1.56)
    • Latest: Version: N3HET91W (1.63)
    • Instructions for how to update the firmware without Windows are on this GitHub repository.

Loading the Device Tree

There are two ways to load the correct device tree: 1. Enable the Linux Support boot option in the firmware boot menus, and copy the /boot/dtb/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb file to the root of the ESP partition.

2. Alternatively you can tell grub about the correct DTB so that you don't have to manually copy the DTB to the ESP. This approach will let you install newer kernels via dnf.

    • Add a the following line to the /boot/loader/entries/* file(s):
      devicetree /dtb/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb
    • Edit /etc/default/grub, and add the kernel parameters listed above to GRUB_CMDLINE_LINUX. Add a new line: `
      GRUB_DEFAULT_DTB=/dtb/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb
    • Edit /etc/kernel/cmdline, and add the kernel parameters listed above.

Once the system is running, installing the x13s copr, will pull in the remaining dependencies and correct a few configuration items:

sudo dnf copr enable jlinton/x13s; dnf install x13s
sudo reboot

Known Problems

  • TPM support is missing
  • 5G Modem
    • Need to follow the documented steps to unlock the modem
  • Virtualization is not available. The UEFI is not yet exposing the EL2 (exception level), which is required to run VMs
  • The system does not suspend correctly so you need to poweroff if leaving unused
  • Camera is not working. There are patches going upstream. You need to add cma=128M
  • Bluetooth doesn't always work

Similar pages