WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro  (Read 4078 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, 05: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: 14499
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #31 on: May 11, 2023, 05:20:01 AM »
How about bzImage?

Note you will also need the new modules.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11150
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #32 on: May 11, 2023, 05: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, 03: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..??

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11150
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #34 on: May 11, 2023, 06: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  adain.

    [EDIT]: Incorrect version number in path. Changed 5.15.10 to 6.1.2.  Rich
« Last Edit: May 12, 2023, 05:59:29 AM by Rich »

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #35 on: May 11, 2023, 09:38:16 PM »
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.

Online patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 652
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #36 on: May 11, 2023, 10:04:57 PM »
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 11, 2023, 10:24:07 PM »
...
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, 01: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: 651
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #39 on: May 12, 2023, 04:52:14 AM »
thanks for letting us know what the problem was!
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11150
Re: TinyCorePure64 14.0 Mouse and Keyboard Not Working on Macbook Pro
« Reply #40 on: May 12, 2023, 06: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.