Gentoo Archives: gentoo-user

From: James <wireless@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] module woes
Date: Wed, 05 Feb 2014 16:51:29
Message-Id: loom.20140205T172700-163@post.gmane.org
1 Ok,
2
3 So I'm running Grub2, openrc, and a gentoo patched kernel. This is
4 a new system I've been fiddling with, so the problem could easily
5 be my oversite.
6
7 I'v build several kernels. I go into the advanced tab upon reboot
8 and boot up the latest kernel I've compiled, (3.13.1-gentoo). It
9 boot fine. Printing works. lp and lpr still do not work for printing
10 raw text files? I used cups and hplip (8600 pro officejet). All
11 other printing is find.
12
13
14 Here is what has me stumped.I started out with this kernel:
15 kernel-3.10.25-gentoo. Since I have built and successfully
16 ran (most things) on these kernels too: kernel-3.13.0-gentoo-r1
17 and last: kernel-3.13.1-gentoo.
18
19 I have built these kernels same way as all others
20
21 cd /usr/src/
22 ln -sf <target kernel> linux
23 cd linux
24 make && make modules && make modules_install
25 cp arch/x86_64/boot/bzImage /boot/kernel-3.13.1-gentoo
26 cp System.map /boot/System.map-3.13.1-gentoo
27 cp .config /boot/config-3.13.1-gentoo
28 grub2-mkconfig -o /boot/grub/grub.cfg
29
30 So the new kernels work, but, besides permission problems, it only looks
31 to the original /lib/modules/ dir for modules (example):
32
33 # /etc/init.d/cupsd restart
34 Stopping cupsd ...
35 /etc/init.d/../conf.d/modules: line 25:
36 /lib/modules/3.10.25-gentoo/kernel/drivers/char/kcopy/kcopy.ko: Permission
37 denied
38
39 <same for these modules: nf_nat_sip.ko, nf_nat_irc.ko
40 xt_LOG.ko, xt_nat.ko xt_mark.ko nf_nat.ko
41 nf_nat_ftp.ko ipt_MASQUERADE.ko iptable_nat.ko nf_nat_ipv4.ko>
42
43 ERROR: modules failed to start
44 Starting cupsd ...
45
46 So what should the perms. be and what do I need to do to get it to
47 point to the kernel I'm booting, 3.13.1-gentoo ?
48
49 It is a grub 2 thing or what?
50 /lib/modules/3.13.1-gentoo/kernel/net/netfilter
51 total 100K
52 -rw------- 1 root root 25K Feb 4 09:17 nf_nat.ko
53 -rw------- 1 root root 6.0K Feb 4 09:17 nf_nat_ftp.ko
54 -rw------- 1 root root 5.6K Feb 4 09:17 nf_nat_irc.ko
55 -rw------- 1 root root 15K Feb 4 09:17 nf_nat_sip.ko
56 -rw------- 1 root root 22K Feb 4 09:17 xt_LOG.ko
57 -rw------- 1 root root 4.5K Feb 4 09:17 xt_mark.ko
58 -rw------- 1 root root 5.5K Feb 4 09:17 xt_nat.ko
59
60 /lib/modules/3.10.25-gentoo/kernel/net/netfilter
61 total 100K
62 -rw-r--r-- 1 root root 27K Jan 14 23:28 nf_nat.ko
63 -rw-r--r-- 1 root root 6.0K Jan 14 23:28 nf_nat_ftp.ko
64 -rw-r--r-- 1 root root 5.5K Jan 14 23:28 nf_nat_irc.ko
65 -rw-r--r-- 1 root root 16K Jan 14 23:28 nf_nat_sip.ko
66 -rw-r--r-- 1 root root 22K Jan 14 23:28 xt_LOG.ko
67 -rw-r--r-- 1 root root 4.5K Jan 14 23:28 xt_mark.ko
68 -rw-r--r-- 1 root root 5.5K Jan 14 23:28 xt_nat.ko
69
70
71 What did I miss, besides the permissions?
72
73 James

Replies

Subject Author
Re: [gentoo-user] module woes Alan McKinnon <alan.mckinnon@×××××.com>