Skip to content

Commit

Permalink
Updated required module for MacBook8,1 (2015)
Browse files Browse the repository at this point in the history
Using spi_pxa2xx_pci removes the need for irqpoll and fixes initramfs cb22#50
  • Loading branch information
rquast authored Oct 27, 2017
1 parent 6973628 commit 2cdf514
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ Very simple, work in progress input driver for the SPI keyboard / trackpad found

Using it:
---------
If you're on a MacBook8,1 (2015) you may need the `irqpoll` kernel parameter. To get this driver to work on all other MacBooks and MacBook Pros, you'll need to boot the kernel with `intremap=nosid` if you're running a kernel before 4.11. In all cases make sure you don't have `noapic` in your kernel options.
If you're on a MacBook8,1 (2015) you will need to use `spi_pxa2xx_pci` instead of `intel_lpss_pci`. To get this driver to work on all other MacBooks and MacBook Pros, you'll need to boot the kernel with `intremap=nosid` if you're running a kernel before 4.11. In all cases make sure you don't have `noapic` in your kernel options.

On the 2015 MacBook you need to (re)compile your kernel with `CONFIG_X86_INTEL_LPSS=n` if running a kernel before 4.14. On all kernels you need ensure the `spi_pxa2xx_platform` module is loaded (if you don't have that module, rebuild your kernel with `CONFIG_SPI_PXA2XX=m`).

On all other MacBook's and MacBook Pros you need to make sure both the `spi_pxa2xx_platform` and `intel_lpss_pci` modules are loaded (if these don't exist, you need to (re)compile your kernel with `CONFIG_SPI_PXA2XX=m` and `CONFIG_MFD_INTEL_LPSS_PCI=m`).

DKMS module (Debian & co):
--------------------------
As root, do the following:
As root, do the following (most MacBooks):
```
apt install dkms
git clone https://github.com/cb22/macbook12-spi-driver.git /usr/src/applespi-0.1
Expand All @@ -20,6 +20,16 @@ echo -e "\n# applespi\napplespi\nintel_lpss_pci\nspi_pxa2xx_platform" >> /etc/in
update-initramfs -u
```

If you're on a MacBook8,1 (2015):
```
apt install dkms
git clone https://github.com/cb22/macbook12-spi-driver.git /usr/src/applespi-0.1
dkms install -m applespi -v 0.1
echo -e "\n# applespi\napplespi\nspi_pxa2xx_platform\nspi_pxa2xx_pci" >> /etc/initramfs-tools/modules
update-initramfs -u
```

What works:
-----------
* Basic Typing
Expand Down

0 comments on commit 2cdf514

Please sign in to comment.