Breakthrough guys!
I managed to get my mouse working!
Here is an outline of the steps:
0. Login to your host system, mount your partitions and make the necessary links before you chroot and chroot into your LFS system.
1. I downloaded the generic config file (the .x64 version for me depending on your architecture) from:
https://mirrors.slackware.com/slackw...ernel-configs/
2. Ran
changed the host name (CONFIG_DEFAULT_HOSTNAME) to whatever your hostname is, saved and exited.
Note: you may get some warnings saying that 'm' is not a valid module which is fine if it's not a module that you need (which was the case for me). This happens because kernel configs get updated all the time from version to version.
3. Build and install the package (the usual make, make modules_install, etc.)
(See:
https://www.linuxfromscratch.org/lfs...10/kernel.html )
4. Downloaded all of the files from:
https://mirrors.slackware.com/slackw...ce/a/mkinitrd/
(a recursive wget may be useful here, like
Code:
wget -r l6 -np -nc --reject "index.html*" -e robots=off
Then you can check the integrity of each file using sha256sums -c *.sha256)
5. Make some changes to the 'Slackbuild" script depending on your package manager (if you have one).
6. Build and install the mkinitrd package.
7. Read the README.initrd.
Tip: If you need to add extra nodules other than ext4 (for example), do:
Code:
mkinitrd -c -k @KERNEL_VERSION@ -m ext4:<module 1>:<module 2>:...
8. Checked some of the modules loaded on my host system
and
Code:
# dmesg | grep 'i2c' # for example
and particularly look for the words "modules linked". You may have to change the "_" to "-" for the module name.
Some of the modules that I listed in the mkinitrd were
Code:
i2c-hid
hid-multitouch
hid-asus
(some may not be necessary).
9. cd'd into /boot and decompressed the initrd.gz file.
10. Updated my grub.cfg file to include the initrd file (see:
https://www.linuxfromscratch.org/blf...initramfs.html )
11. Exited chroot, unmounted the partitions and rebooted.
It almost feels like cheating that I had to use a config file and a mkinitrd from another distro like Slackware, but I figured that they got a working config file so why not use it.
Now it's late for me so I'm going to bed (happy) now that I finally put this to bed after weeks of racking my head on this.