Commit Graph

10 Commits

Author SHA1 Message Date
Egor Ignatov
7738617c4c
mkmodpack: include leading directories for firmware files
The kernel needs leading directories in the cpio archive when
creating rootfs. Otherwise, the files will not be copied.
2021-07-21 18:56:10 +03:00
Dmitriy Terekhin
72805ad038 mkmodpack: warn about incorrect patterns
Kernel modules may be needed to access rootfs.
Such modules must be present in the initramfs.
The mkmodpack script finds modules by given patterns.
If the pattern is specified incorrectly, the module
will not be found and booting will become impossible.

Need to warn about module patterns
that do not match with anything.

The pattern can match the name of a module built into
the kernel as given by modprobe.
However, modprobe can fix some incorrect patterns.
These patterns should also be reported.
2020-12-18 20:38:54 +04:00
Michael Shigorin
fef70f8de8 mkmodpack: kmod-10 still wants binary deplist
Hope upstream will finally do something about that --
either document the behaviour or fix it.
2012-10-15 15:39:27 +03:00
Michael Shigorin
a2d8a0be62 mkmodpack: kmod-9 de facto requires modules.dep.bin
Here's the culprit:

open("/lib/modules/3.4.7-std-def-alt1/modules.dep.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/modules/3.4.7-std-def-alt1/modules.dep.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib/modules/3.4.7-std-def-alt1/modules.alias.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
exit_group(1) = ?
+++ exited with 1 +++
[root@builder .in]# ls -l /lib/modules/3.4.7-std-def-alt1/modules.dep*
-rw-r--r-- 1 root root 370664 Jul 29 18:20 /lib/modules/3.4.7-std-def-alt1/modules.dep

Here's the typical result for mkimage:

ERROR: could not open directory /tmp/mkmodpack.sWzMWshm9Z/lib/modules/3.4.7-std-def-alt1: No such file or directory
FATAL: could not search modules: No such file or directory
mkmodpack: Failed to create modules dependencies.
2012-08-13 21:17:55 +03:00
Anton V. Boyarshinov
a109bc3706 mkmodpack: modprobe --list changed to find 2012-08-10 15:17:23 +04:00
Mykola Grechukh
75416657d2 20101130-alt14
- support for xz compression in mkmodpack
2012-02-08 14:57:22 +00:00
Sergey Bolshakov
513e194fde 20090301-alt1 released 2010-04-01 17:32:10 +04:00
Sergey Bolshakov
e8a4ab5004 search for firmware under /lib/firmware/$KERNEL too 2009-06-25 19:15:54 +04:00
Sergey Bolshakov
11bf8de59c thinkos fixed 2008-03-07 22:48:01 +03:00
Sergey Bolshakov
e406384cf6 mkmodpack utility added, replacing obsolete mkmar one 2008-03-07 19:03:47 +03:00