Root/
Source at commit be977234bfb4a6dca8a39e7c52165e4cd536ad71 created 12 years 9 months ago. By Lars-Peter Clausen, jz4740: Fix compile error | |
---|---|
1 | Debugging Modules after 2.6.3 |
2 | ----------------------------- |
3 | |
4 | In almost all distributions, the kernel asks for modules which don't |
5 | exist, such as "net-pf-10" or whatever. Changing "modprobe -q" to |
6 | "succeed" in this case is hacky and breaks some setups, and also we |
7 | want to know if it failed for the fallback code for old aliases in |
8 | fs/char_dev.c, for example. |
9 | |
10 | In the past a debugging message which would fill people's logs was |
11 | emitted. This debugging message has been removed. The correct way |
12 | of debugging module problems is something like this: |
13 | |
14 | echo '#! /bin/sh' > /tmp/modprobe |
15 | echo 'echo "$@" >> /tmp/modprobe.log' >> /tmp/modprobe |
16 | echo 'exec /sbin/modprobe "$@"' >> /tmp/modprobe |
17 | chmod a+x /tmp/modprobe |
18 | echo /tmp/modprobe > /proc/sys/kernel/modprobe |
19 | |
20 | Note that the above applies only when the *kernel* is requesting |
21 | that the module be loaded -- it won't have any effect if that module |
22 | is being loaded explicitly using "modprobe" from userspace. |
23 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9