darlinghq / darling-docs

Darling Docs
http://docs.darlinghq.org
41 stars 23 forks source link

Add command to load kernel module #32

Closed superbonaci closed 3 years ago

superbonaci commented 3 years ago

On section Building and Installing, after sudo make lkm_install:

/darling/build$ sudo make lkm_install
[sudo] password for User:
Scanning dependencies of target lkm_install
Installing the Linux kernel module
make[4]: Entering directory '/darling/src/external/lkm'
Running kernel version is 5.11.0-34-generic
make -C /lib/modules/5.11.0-34-generic/build M=/darling/src/external/lkm modules_install
make[5]: Entering directory '/usr/src/linux-headers-5.11.0-34-generic'
  INSTALL /darling/src/external/lkm/darling-mach.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  5.11.0-34-generic
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[5]: Leaving directory '/usr/src/linux-headers-5.11.0-34-generic'
make[4]: Leaving directory '/darling/src/external/lkm'
Built target lkm_install

Add command to guide:

lsmod | grep darling_mach || sudo modprobe darling_mach
LubosD commented 3 years ago

Why? The kernel module is autoloaded by darling shell.

superbonaci commented 3 years ago

So when you run darling shell it's loaded automatically? Then please add such comment to Build guide, please.