[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] busybox modprobe problem
From:       Sergey Kiselev <asm () actcom ! co ! il>
Date:       2003-09-22 15:21:36
[Download RAW message or body]

Hi!

It seems that modprobe does not work properly with 'alias' and 'options' 
keywords in /etc/modules.conf:

my /etc/modules.conf file:
alias eth0 ne
options ne io=0x320

following command doesn't work properly:

# modprobe eth0
Using /lib/modules/2.4.22/kernel/drivers/net/ne.o
ne.c: You must supply "io=0xNNN" value(s) for ISA cards.
insmod: init_module: ne: No such device or address
modprobe: failed to load module eth0

and this one works:

# modprobe ne
Using /lib/modules/2.4.22/kernel/drivers/net/ne.o
ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0x320: 00 80 29 e7 5b bc
eth0: NE2000 found at 0x320, using IRQ 10.

I also tried to use this /etc/modules.conf file:
alias eth0 ne
options eth0 io=0x320

and got this:

# modprobe eth0  
SIGSEGV

part of 'strace' dump:

# ./strace modprobe eth0
execve("/sbin/modprobe", ["modprobe", "eth0"], [/* 7 vars */]) = 0
<skipped>
open("/etc/modules.conf", O_RDONLY)     = 3
read(3, "alias eth0 ne\noptions eth0 io=0x"..., 256) = 36
lseek(3, 0, SEEK_CUR)                   = 36
lseek(3, 14, SEEK_SET)                  = 14
read(3, "options eth0 io=0x320\n", 256) = 22
lseek(3, 0, SEEK_CUR)                   = 36
lseek(3, 36, SEEK_SET)                  = 36
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

(sorry I don't have gdb here)

System information:
kernel-2.4.22
busybox-1.00-pre3 (also tried 1.00-pre2 with same results)
uClibc-0.9.20

Hardware: i386SX-33MHz, 10MBytes RAM, 2MBytes flash storage ;-)

Thanks,
    Sergey Kiselev




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic