Linux за българи: Форуми

Linux секция за начинаещи => Настройка на хардуер => Темата е започната от: ivo1204 в Jun 02, 2007, 18:20



Титла: Fedora 7 , къде да сложа параметри за модулите?
Публикувано от: ivo1204 в Jun 02, 2007, 18:20
Качих Fedora 7 , трябва ми модула saa7134 с параметри:
card=27  tuner=1 . Ето част от lsmod:
....................
saa7134               144681  2  <---------------------
video_buf              35269  1 saa7134
compat_ioctl32         17217  1 saa7134
ir_kbd_i2c             18641  1 saa7134
i2c_core               32449  3 i2c_ec,saa7134,ir_kbd_i2c
ir_common              45765  2 saa7134,ir_kbd_i2c
videodev               36161  3 saa7134
parport_pc             38121  1
v4l2_common            27585  3 saa7134,compat_ioctl32,videodev
v4l1_compat            20549  2 saa7134,videodev
....................
така че е доста са навързани ...
В кой файл трябва  да редактирам ,че да зарежда модула с тези параметери , без да променям другите ?
P.P.
 rmmod saa7134
 modprobe saa7134 card=27 tuner=1
работи , ама къде е правилното място ?





Титла: Fedora 7 , къде да сложа параметри за модулите?
Публикувано от: dedmin в Jun 02, 2007, 21:37
If you want to add some modules at bootup, you need to
add them to /etc/modprobe.conf with a particular line
for them. For instance, I have a smartlink modem,
which gets loaded automatically with the line added to
modprobe.conf.
[olivares@localhost ~]$ cat /etc/modprobe.conf
alias eth0 3c59x
alias snd&#8722;card&#8722;0 snd&#8722;ali5451
options snd&#8722;card&#8722;0 index=0
options snd&#8722;ali5451 index=0
remove snd&#8722;ali5451 { /usr/sbin/alsactl store 0
          /dev/null 2>&1 || : ; }; /sbin/modprobe &#8722;r
&#8722;&#8722;ignore&#8722;remove snd&#8722;ali5451
install slamr modprobe &#8722;&#8722;ignore&#8722;install
ungrab&#8722;winmodem ; modprobe &#8722;&#8722;ignore&#8722;install slamr;
test &#8722;e /dev/slamr0 || (/bin/mknod &#8722;m 660 /dev/slamr0
c 242 0 2>/dev/null && chgrp uucp /dev/slamr0)
To not automatically load them at bootime, there is a
file /etc/modprobe.d/blacklist which lists the one
that you do not want loaded at bootup time,
[olivares@localhost ~]$ cat /etc/modprobe.d/blacklist
#
# Listing a module here prevents the hotplug scripts
from loading it.
# Usually that'd be so that some other driver will
bind it instead,
# no matter which driver happens to get probed first. Sometimes user
# mode tools can also control driver binding.
#
# Syntax: driver name alone (without any spaces) on a
line. Other
# lines are ignored.
#
# watchdog drivers
blacklist i8xx_tco





Титла: Fedora 7 , къде да сложа параметри за модулите?
Публикувано от: ivo1204 в Jun 03, 2007, 00:27
Благодаря ,явно това е файла . Засега обаче съм сложил един S60MYconfig  в /etc/rc5.d  , защото излезнаха и други проблеми  , май и ядрото ще сменям  , после ще ги сложа в /etc/modprobe.conf .