Notes |
(0002655)
vda
08-13-07 04:17
|
Please give more info: which kernel version, what do you do to trigger autoload, which commandline is passed to modprobe (give exact example, not "MODULNAME"), what busybox modprobe says with this command line, what "standard" modprobe says (and does - do "strace -o modprobe.log modprobe ..." and attach log file to the bug report).
On my system, /bin/modprobe is a link to busybox and everything seems to work. That's why I need more info from you. |
| |
(0002661)
clausmuus
08-13-07 13:52
|
The kernel version is 2.6.20
To trigger a modul autoload I load a DVB-driver: modprobe dvb-ttpci
This load some modules. One of this modules (I don't know witch, but I will try to detect it) is the trigger for the load of the firmware of the dvb card: stv0297 and sp8870
I will post the exact modullist and call of modprobe later, if I have access to my dvb-PC. But it can be, that the first time I can do this, is the next weekend.
I use the actual v4l driver, and the firmware will only triggered if a dvb card is detect. In this case the kernel call this:
modprobe -p -- symbol:stv0297_attach
modprobe -p -- symbol:sp8870_attach
You can also trigger a autoload if you build a kernel with the ext2 filesystem as a modul. The mount of such a ext2 filesystem will trigger the autoload of the ext2 modul. But in this case the kernel call this:
modprobe -p -- ext2
You can see, the kernel don't do for every kind of modul the same, and I don't know the reason.
The script I wrote to fix the problem is this (called modprobe):
#!/bin/sh
eval /bin/busybox modprobe `echo $@ | sed 's/-- symbol:\(.*\)_attach/\1/'`
And the script that only log the modprobe call is this:
#!/bin/sh
echo $* >> /tmp/modprobe.log
/bin/busybox modprobe $* |
| |
(0002664)
vda
08-14-07 12:59
|
What busybox modprobe says when you do this:
modprobe -p -- symbol:stv0297_attach
modprobe -p -- symbol:sp8870_attach
modprobe -p -- ext2
What is the error message? |
| |
(0002665)
clausmuus
08-14-07 13:23
|
Excuse me, there was a misspelling in my last posts. The kernel don't use the option -p but the kernel use -q for quite. But the rest of my post are right.
The call of:
modprobe -q -- ext2
result in nothing, no output, no error.
The call of:
modprobe -q -- symbol:stv0297_attach
results in:
modprobe: module symbol:stv0297_attach not found
modprobe: failed to load modul symbol:stv0297_attach
and the exit status (echo $?) is:
1
The call of:
modprobe -q -- stv0297
result in nothing, no output, no error. |
| |
(0002666)
integrator
08-15-07 07:44
edited on: 08-15-07 07:44
|
I think I've found the problem.
busybox modprobe does not scan /lib/modules/`uname -r`/modules.symbols for additionnal aliases.
Fix attached.
Yann E. MORIN.
|
| |
(0002667)
integrator
08-15-07 07:55
|
clausmuus,
Tests here are OK.
Can you check wether this also fixes it for you?
|
| |
(0002668)
clausmuus
08-15-07 08:00
|
Hi integrator,
thank you for your help.
I will check this today when I'm at home (in two hours) and tell you the result of my tests. |
| |
(0002669)
clausmuus
08-15-07 15:34
|
Ok, now I have check the patch, and it works fine.
Thank you very much!! |
| |
(0002670)
vda
08-16-07 03:40
|
Applied to svn, thanks Yann! |
| |