WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro  (Read 13229 times)

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #30 on: May 11, 2023, 08:17:11 AM »
No, there's no vmlinuz file

Code: [Select]
ls vmlin*gave me
vmlinux
vmlinux.a
vmlinux.o

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15311
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #31 on: May 11, 2023, 08:20:01 AM »
How about bzImage?

Note you will also need the new modules.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12297
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #32 on: May 11, 2023, 08:43:16 AM »
Hi pek
Try looking for  bzImage  in  arch/x86/boot
Copy it to your  boot  directory and name it vmlinuz64Mac
Change the grub entry from  vmlinux  to  vmlinuz64Mac

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #33 on: May 11, 2023, 06:05:57 PM »
Hi Juanito and Rich

I found the bzimage and renamed it into vmlinuz64Mac and booted
Code: [Select]
menuentry "tinycore64 apple" {
  linux /boot/vmlinuz64Mac quiet
  initrd /boot/corepure64.gz
}
It boots in successfully, but the keyboard and mouse still not working.


So, I searched for more "possible files" and tried adding vmlinux.bin.gz
Code: [Select]
menuentry "tinycore64 apple" {
  linux /boot/vmlinuz64Mac quiet
  initrd /boot/corepure64.gz /boot/vmlinux.bin.gz
}
It boots into cli


Then I tried
Code: [Select]
menuentry "tinycore64 apple" {
  linux /boot/vmlinuz64Mac quiet
  initrd /boot/vmlinux.bin.gz
}
It can not boot.. Kernel panic


I guess I'm not that smart to figure out things myself  ;D
Help again pleasee..??

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12297
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #34 on: May 11, 2023, 09:23:20 PM »
Hi pek
You left out this step:
... Note you will also need the new modules.

Let's create an extension. First create a destination to copy the modules to:
Code: [Select]
mkdir -p package/usr/local/lib/modules/6.1.2-tinycore64/kernel/drivers/MacBook
Copy the following files from your build directory to the destination:
Code: [Select]
drivers/input/keyboard/applespi.ko
drivers/spi/spi-pxa2xx-pci.ko
drivers/spi/spi-pxa2xx.ko

You'll need  squashfs-tools.tcz:
Code: [Select]
tce-load -wil squashfs-tools.tcz
Now create the extension:
Code: [Select]
mksquashfs package MacBook.tcz -noappend
Copy  MacBook.tcz  to your  tce/optional  directory.
Add  MacBook.tcz  to your  tce/onboot.lst  file.

Go back to this configuration:
I found the bzimage and renamed it into vmlinuz64Mac and booted
Code: [Select]
menuentry "tinycore64 apple" {
  linux /boot/vmlinuz64Mac quiet
  initrd /boot/corepure64.gz
}
It boots in successfully, but the keyboard and mouse still not working. ...

Reboot and see if it works.

If it doesn't, we need the results of  lsmod  and  dmesg  again.

    [EDIT]: Incorrect version number in path. Changed 5.15.10 to 6.1.2.  Rich
« Last Edit: November 10, 2025, 05:25:15 PM by Rich »

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #35 on: May 12, 2023, 12:38:16 AM »
Thanks Rich..

Yes I know, I must left out many steps  ;D
Because I'm not entirely familiar with all the terms, like modules, prepare, config, make.. etc

But thanks to everyone's help and patients, I can gain more knowledge and experiences. :)

Now, back to business...
Code: [Select]
drivers/input/keyboard/applespi.ko
drivers/spi/spi-pxa2xx-pci.ko
drivers/spi/spi-pxa2xx.ko  <--- this one is not there
drivers/spi/spi-pxa2xx-platform.ko  <--- i found and used this one instead
Successfully made and load it as tcz.
However the keyboard and touchpad still not working.

So I removed "drivers/spi/spi-pxa2xx-platform.ko" remade and reload tcz.
But same result.

Quote
If it doesn't, we need the results of  lsmod  and  dmesg  adain.
Well.. I guess I need to wait until I have access to USB-C keyboard to find out exactly what output from Tinycore64.
If I boot from Archbang, and do lsmod and dmesg, possibly it gives different output?? (as posted earlier).

Meanwhile, I'm quite happy learning to compile kernel and creating module.
So in short, the module is actually the files with .ko extensions.
And the new kernel is bzimage.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 795
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #36 on: May 12, 2023, 01:04:57 AM »
You should be very happy and proud to create your own kernel and kernel modules.

Now you can take you Linux hat on, and say to your self that your are a Linux hacker and developer.

Happy hacking :)


Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #37 on: May 12, 2023, 01:24:07 AM »
...
Now you can take you Linux hat on, and say to your self that your are a Linux hacker and developer.
Happy hacking :)
;D ;D I'm still at a wannabe stage this time. Soo much more to learn..
Thanks for everything guys!!  ;)

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #38 on: May 12, 2023, 04:22:08 AM »
UPDATE..!!
I got it working..!!  8)

Apparently the path was wrong..
mkdir -p package/usr/local/lib/modules/5.15.10-tinycore64/kernel/drivers/MacBook
It supposed to be:
mkdir -p package/usr/local/lib/modules/6.1.2-tinycore64/kernel/drivers/MacBook

All good.. Keyboard & Touchpad now works on MBP.

Offline gadget42

  • Hero Member
  • *****
  • Posts: 980
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #39 on: May 12, 2023, 07:52:14 AM »
thanks for letting us know what the problem was!
** WARNING: connection is not using a post-quantum kex exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
** The server may need to be upgraded. See https://openssh.com/pq.html
** Also see: post quantum internet 2025 - https://blog.cloudflare.com/pq-2025/

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12297
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #40 on: May 12, 2023, 09:38:27 AM »
Hi pek
... Apparently the path was wrong.. ...
I copied the version number used in the path from the TC14 source
package I downloaded
, or so I thought. Turns out I downloaded from
the TC13 repository by mistake.

Thank you for pointing out my error. Reply #34 has been updated to show
the correct path.

Offline caminati

  • Full Member
  • ***
  • Posts: 189
    • Homepage
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #41 on: November 10, 2025, 04:06:12 PM »
Hi everyone,
Just to add that I have a similar problem with some older Macbook pro.
However, the proposed solution doesn't work in my case (corepure version 16.x), I think because of this kernel bug:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2107976/comments/27

Quote
* 6.14.0-15-generic boots but built-in keyboard and trackpad are dead
 * 6.12.0-rc2 does not boot
 * 6.12.0-rc3 does not boot (see attached video; looks like a kernel oops in intel_lpss_pci)
 * 6.11 boots with working built-in keyboard and trackpad

So I'll try with corepure 15.x, whose kernel is older than 6.12.

Thought to add this bit of information for reference in case it's useful to others.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12297
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #42 on: November 10, 2025, 05:29:39 PM »