Cannot automatically load modules
colin
colin at realtek.com.tw
Thu Mar 2 02:45:26 UTC 2006
Hi Yann,
I use Busybox 1.1.0。
/proc/sys/kernel/modprobe already has value "/sbin/modprobe"。
Linux kernel has config "CONFIG_KMOD" on, and I use devfs for device files.
It is strange that "ifconfig eth0 up" will fail, but "modprobe eth0" will be
ok.
In fact, Linux KMOD facility will finally invoke /proc/sys/kernel/modprobe,
that is, /sbin/modprobe.
I donot know why using "/sbin/modprobe" on shell is ok, but kernel using it
will fail.
Should I ask this question on Linux kernel mailing list?
Regards,
Colin
----- Original Message -----
From: "Yann E. MORIN" <yann.morin.1998 at anciens.enib.fr>
To: "Rob Landley" <rob at landley.net>
Cc: <busybox at busybox.net>; "colin" <colin at realtek.com.tw>
Sent: Thursday, March 02, 2006 1:38 AM
Subject: Re: Cannot automatically load modules
Rob, Colin,
All,
On Wednesday 01 March 2006 182, Rob Landley wrote:
> On Wednesday 01 March 2006 12:24 pm, Yann E. MORIN wrote:
> > echo "/sbin/modprobe" >/proc/sys/kernel/modprobe
> I believe that's the default value. (cat /proc/sys/kernel/modprobe
> spits /sbin/modprobe back, anyway.)
It does here as well. But I won't trust my Mandriva Cooker not to change it
at
boot time (following the paths of startup scripts is a nightmare).
I can't test on a real BB-based system right now, but will do tomorrow.
> Do you have to write it even if it's the default value?
I guess no. But I couldn't think of anything else for now...
Or the alias parsing is borked in BB.
By the way, Colin, what version of BB are you using?
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.-----------------
---.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics'
conspiracy: |
| +0/33 662376056 | Software Designer | \ / CAMPAIGN | ^
|
| --==< °_° >==-- °---.----------------: X AGAINST | /e\ There
is no |
| web: ymorin.free.fr | SETI at home 3808 | / \ HTML MAIL | """
conspiracy. |
°---------------------°----------------°------------------°-----------------
---°
More information about the busybox
mailing list