2003-08-27 09:42:45

by CIJOML

[permalink] [raw]
Subject: generate modprobe.conf

Hi,

I tried generate modprobe.conf from my modules.conf, but without success.
My ethernet card and mouse doesn't work - theitr modules are not loaded in
startup. Where is problem?

My modules.conf:

keep

alias eth0 3c59x
options 3c59x 3c509x debug=0 options=4,8

post-install bttv insmod tuner
post-remove bttv rmmod tuner


alias char-major-10-175 agpgart
alias char-major-10-200 tun
alias char-major-81 bttv
alias char-major-108 ppp_generic
alias /dev/ppp ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate

alias loop-xfer-gen-0 loop_gen
alias loop-xfer-3 loop_fish2
alias loop-xfer-gen-10 loop_gen
alias cipher-2 des
alias cipher-3 fish2
alias cipher-4 blowfish
alias cipher-6 idea
alias cipher-7 serp6f
alias cipher-8 mars6
alias cipher-11 rc62
alias cipher-15 dfc2
alias cipher-16 rijndael
alias cipher-17 rc5

alias net-pf-31 bluez
alias bt-proto-0 l2cap
alias bt-proto-2 sco
alias bt-proto-4 bnep
alias tty-ldisc-15 hci_uart
alias char-major-10-250 hci_vhci
alias bt-proto-3 rfcomm

alias char-major-81 videodev
alias char-major-81-0 bttv
pre-install bttv modprobe -k msp3400; modprobe -k tuner
options bttv radio=0 card=64
options tuner type=19

options ide-cd ignore=hdd # tell the ide-cd module to
# ignore hdd
alias scd0 sr_mod # load sr_mod upon access
# of scd0
pre-install sg modprobe ide-scsi # load ide-scsi before sg
pre-install sr_mod modprobe ide-scsi # load ide-scsi before sr_mod
pre-install ide-scsi modprobe ide-cd # load ide-cd before
# ide-scsi
alias char-major-13 hid
post-install hid modprobe -k mousedev; modprobe -k input

alias /dev/ppp ppp_generic
alias char-major-108 ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate

"setserial-module reload"
"setserial-module uload"

alias /dev/tts serial
alias /dev/tts/0 serial
alias /dev/tts/1 serial
alias /dev/tts/2 serial
alias /dev/tts/3 serial
post-install serial /etc/init.d/setserial modload > /dev/null 2> /dev/null
pre-remove serial /etc/init.d/setserial modsave > /dev/null 2> /dev/null

alias parport_lowlevel parport_pc
alias char-major-10-144 nvram
alias binfmt-0064 binfmt_aout
alias char-major-10-135 rtc


2003-08-27 10:06:42

by CIJOML

[permalink] [raw]
Subject: Re: generate modprobe.conf

When I load it manually and ifconfig it, device works...

I don't know why, coz

alias eth0 3c59x

and

alias char-major-13 hid
post-install hid modprobe -k mousedev; modprobe -k input

is a standart way...isn't it?

M.

Dne st 27. srpna 2003 12:03 jste napsal(a):
> Michal Semler (volny.cz) wrote:
> > Hi,
> >
> > I tried generate modprobe.conf from my modules.conf, but without success.
> > My ethernet card and mouse doesn't work - theitr modules are not loaded
> > in startup. Where is problem?
>
> Please try something like "modprobe eth0" or "ifup eth0" and see/e-mail
> what you see in /var/log/messages.
>
> Regards,
>
> Bas.

2003-08-27 10:01:53

by Bas Mevissen

[permalink] [raw]
Subject: Re: generate modprobe.conf

Michal Semler (volny.cz) wrote:
> Hi,
>
> I tried generate modprobe.conf from my modules.conf, but without success.
> My ethernet card and mouse doesn't work - theitr modules are not loaded in
> startup. Where is problem?
>

Please try something like "modprobe eth0" or "ifup eth0" and see/e-mail
what you see in /var/log/messages.

Regards,

Bas.


2003-08-27 10:33:19

by Bas Mevissen

[permalink] [raw]
Subject: Re: generate modprobe.conf

Michal Semler (volny.cz) wrote:

> When I load it manually and ifconfig it, device works...
>
> I don't know why, coz
>
> alias eth0 3c59x
>
> and
>
> alias char-major-13 hid
> post-install hid modprobe -k mousedev; modprobe -k input
>
> is a standart way...isn't it?
>

Hmmm. Strange. But it doesn't look like a kernel problem, but a system
configuration problem. So I'll take this off LKML and see if I can help
you by private e-mail.

Regards,

Bas.



2003-08-28 17:02:58

by Tony Lill

[permalink] [raw]
Subject: Re: generate modprobe.conf

Bas Mevissen <[email protected]> writes:
> Hmmm. Strange. But it doesn't look like a kernel problem, but a system
> configuration problem. So I'll take this off LKML and see if I can
> help you by private e-mail.

Unless there's a linux-kernel-broke-my-sytem-but-its-not-really-its-fault
mailing list I can subscribe to, please keep the discussion here. I've
got simmilar problems, and any solution may be enlightening.
--
Tony Lill, [email protected]
President, A. J. Lill Consultants fax/data (519) 650 3571
539 Grand Valley Dr., Cambridge, Ont. N3H 2S2 (519) 241 2461
--------------- http://www.ajlc.waterloo.on.ca/ ----------------
"Welcome to All Things UNIX, where if it's not UNIX, it's CRAP!"

2003-08-28 18:21:51

by Richard B. Johnson

[permalink] [raw]
Subject: Re: generate modprobe.conf

On Thu, 28 Aug 2003, Tony Lill wrote:

> Bas Mevissen <[email protected]> writes:
> > Hmmm. Strange. But it doesn't look like a kernel problem, but a system
> > configuration problem. So I'll take this off LKML and see if I can
> > help you by private e-mail.
>
> Unless there's a linux-kernel-broke-my-sytem-but-its-not-really-its-fault
> mailing list I can subscribe to, please keep the discussion here. I've
> got simmilar problems, and any solution may be enlightening.
> --
> Tony Lill, [email protected]
> President, A. J. Lill Consultants fax/data (519) 650 3571
> 539 Grand Valley Dr., Cambridge, Ont. N3H 2S2 (519) 241 2461
> --------------- http://www.ajlc.waterloo.on.ca/ ----------------
> "Welcome to All Things UNIX, where if it's not UNIX, it's CRAP!"

Well, to start, become root and execute `modprobe -c >junk`.
The file, junk, now contains everything modprobe 'knows' about.
You can use this as a reference.

Let's say that you have a new device, a character device with
a major number of 177. You want a module to be automatically
loaded upon the first access to that device. You simply insert
the following lines in /etc/modules.conf.

path[my-module]=/complete/path/to/where/you/put/it
alias char-major-177 my-module

Normally, you keep all the paths together and the aliases
sorted to make sense to humans. The software doesn't care.
Also, "my-module" is the module file-name without the ".o"

You only need paths if the module is not in a standard
place like 'lib/modules/`uname -r`/kernel. The file
/lib/modules/`uname -r`/modules.dep, contains all the
dependency information for everything, generated with
the `depmod -a` command.

Maybe somebody has a script that configures this auto-magically,
however I've never seen it and haven't had to use it. Problems
with finding modules with new kernel versions usually are the
result of a change in the directory structure under
/lib/modules/`uname -r`/ so you might want to make several
/etc/modules.conf files if you boot several widely-different
kernel versions. Just fix up the paths where required.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.22 on an i686 machine (794.73 BogoMips).
Note 96.31% of all statistics are fiction.