Closed ghost closed 3 years ago
Firstly, for each new kernel you boot you must run "make lkm", "make lkm_install" again. You cannot copy kernel modules across different kernel versions.
Secondly, "insmod" does not take multiple kernel module as arguments - it takes one kernel module, the other arguments are kernel module parameters. Do not do "introd .../*" . That's just plain wrong!
ok for "make lkm", "make lkm_install"
and I must do it like that ->
root@anonymous:~# insmod /lib/modules/5.7.0-1-amd64/extra/darling-match.ko
root@anonymous:~# insmod /lib/modules/5.7.0-1-amd64/extra/darling-overlay.ko
?
No, if you have the kernel module installed, you should be able to just do darling shell
and it'll load the kernel module for you.
ok very nice 👌
(I check if it works before I close the issues)
(yes darling shell load the kernel module for me nice)
OS: Debian GNU/Linux bullseye/sid x86_64
Kernel: 5.7.0-1-amd64
but re run "make lkm", "make lkm_install" again
root@anonymous:~# darling shell ls
Segmentation fault
and same output like (https://cdn.discordapp.com/attachments/696835551038275686/735475442659622993/20200722_143522.jpg) on console mode
it's probably the same problem as here https://github.com/darlinghq/darling/issues/853 this is a cause of my kernel version?
Besides not doing "insmod *" (insmod does not take multiple kernel modules as arguments) - "modprobe" is a better alternative - modprobe is equivalent to insmod plus dependencies. Or rather, insmod is equivalent to "modprobe --force and nodependency". Hence you might find "insmod" modules segfaults , as insmod does not recursively load dependencies. If you have to use either, use modprobe - or let darling runs modprobe for you.
What I mean is that doing "insmod" (instead of modprobe, or letting daring runs modprobe for you) could be the reason for your segfault.
I do not use any of the 2, you have confirmed to me that darling does it for me
User deleted their account
System Information : debian testing
root@anonymous:~# darling
root@anonymous:~# darling ls
root@anonymous:~# insmod /lib/modules/5.7.0-1-amd64/extra/*
root@anonymous:~# darling ls
on console mode:
https://cdn.discordapp.com/attachments/696835551038275686/735475637241905253/20200722_143230.jpg
https://cdn.discordapp.com/attachments/696835551038275686/735475443666255963/20200722_143501.jpg https://cdn.discordapp.com/attachments/696835551038275686/735475442659622993/20200722_143522.jpg