Re: [expert] how to make insmod permanent
You are wanting to use a scsci driver, yes? Perhaps someone else could get in and address/confirm this?..I believe that a scsi parameter must be passed to the kernel via the append= entry (in lilo.conf) besides adding an alias to modules.conf. I would assume that since simply adding the alias to the modules.conf doesn't do it, that passing a scsi-related append statement is called for. I must do this to get my CDRW to work (IDE). praedor On Friday 08 February 2002 09:53 am, mike wrote: Praedor Tempus wrote: In this case, and until a real fix could be found, it would be better to have the function of the module as it SHOULD be working (but isn't) than to do it the proper Mandrake way. The proper way seems to be failing in this case for some reason. Until figuring out why this is the case, there is no need to go without the module and its functionality nor is it necessary to manually install the module every time you bootup. It is a workable temp fix until the real problem can be determined. How can the real problem be determined ? What steps can I take? Or would it be better just to recompile the module into the kernel? Mike Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
On Fri, 8 Feb 2002 05:40:37 +0200 mike [EMAIL PROTECTED] wrote: If you can tell me a better way to make the module permanent please tell me. There is the Mandrake way to do this... As stated before add to /etc/modules.conf: alias scsi_hostadapter aic7xxx and then add to /etc/modules: scsi_hostadapter and the magic begins... Have a nice weekend! Juhani -- There is NO business, show business... Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [expert] how to make insmod permanent
Why not modprobe aic7xxx. It loads all other modules for aic as well. For some reason on my MDK 8.1 box, rc.local won't run anything I have added into it. Brian D. Klar - CVE OTS WPAFB -Original Message- From: mike [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 6:46 PM To: [EMAIL PROTECTED] Subject: [expert] how to make insmod permanent Hi I got my umax scanner working today by installing a aha-2906 scsi card, and doing insmod aic7xxx after which xsane finds and uses the scanner fine everything works great. however when I rebooted it appears to have lost some setting and I had to insmod aic7xxx and find-scanner again before it would work. The error was there was no device. how can I make what I - insmod - ed, permanent. so i don't have to redo this everytime I reboot for some reason. Any suggestions? Mike Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
On Friday 08 February 2002 15:17, you wrote: Why not modprobe aic7xxx. It loads all other modules for aic as well. For some reason on my MDK 8.1 box, rc.local won't run anything I have added into it. Brian D. Klar - CVE OTS WPAFB Is your rc.local file executable? Jarmo Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [expert] how to make insmod permanent
yes lrwxrwxrwx1 root root 13 Oct 30 15:34 /etc/rc.local - rc.d/rc.local -rwxr-xr-x1 root root 1766 Dec 15 17:31 rc.local Brian D. Klar - CVE OTS WPAFB -Original Message- From: jarmo kettunen [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 8:29 AM To: [EMAIL PROTECTED] Subject: Re: [expert] how to make insmod permanent On Friday 08 February 2002 15:17, you wrote: Why not modprobe aic7xxx. It loads all other modules for aic as well. For some reason on my MDK 8.1 box, rc.local won't run anything I have added into it. Brian D. Klar - CVE OTS WPAFB Is your rc.local file executable? Jarmo Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
On Thursday 07 February 2002 07:34 pm, J. Grant wrote: I dont remember exactly, but i seem to remember there was a command to regenerate the module list? like ldconfig does for shared libs or something similar? Better than having to add it to rc.local for every module i thought.. In this case, and until a real fix could be found, it would be better to have the function of the module as it SHOULD be working (but isn't) than to do it the proper Mandrake way. The proper way seems to be failing in this case for some reason. Until figuring out why this is the case, there is no need to go without the module and its functionality nor is it necessary to manually install the module every time you bootup. It is a workable temp fix until the real problem can be determined. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
Praedor Tempus wrote: In this case, and until a real fix could be found, it would be better to have the function of the module as it SHOULD be working (but isn't) than to do it the proper Mandrake way. The proper way seems to be failing in this case for some reason. Until figuring out why this is the case, there is no need to go without the module and its functionality nor is it necessary to manually install the module every time you bootup. It is a workable temp fix until the real problem can be determined. How can the real problem be determined ? What steps can I take? Or would it be better just to recompile the module into the kernel? Mike Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
J. Grant wrote: I dont remember exactly, but i seem to remember there was a command to regenerate the module list? like ldconfig does for shared libs or something similar? Better than having to add it to rc.local for every module i thought.. please let me know if this command exists :) JG Ref: man depmod -- Sword'sEdge VoiceMail/Fax: (858) 860-6406 x1587 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
mike wrote: Praedor Tempus wrote: In this case, and until a real fix could be found, it would be better to have the function of the module as it SHOULD be working (but isn't) than to do it the proper Mandrake way. The proper way seems to be failing in this case for some reason. Until figuring out why this is the case, there is no need to go without the module and its functionality nor is it necessary to manually install the module every time you bootup. It is a workable temp fix until the real problem can be determined. How can the real problem be determined ? What steps can I take? Or would it be better just to recompile the module into the kernel? Mike If the correct entries are in the /etc/modules.conf and /etc/modules then you may want to preload the scsi device via initrd. mkinitrd creates filesystem images which are suitable for use as Linux initial ramdisk (initrd) images. Such images are often used for preloading the block device modules (such as IDE, SCSI or RAID) which are needed to access the root filesystem. mkinitrd automatically loads IDE modules, all scsi_hostadapter entries and all modules in a probeall scsi_hostadapter .. line in /etc/modules.conf, and raid modules if the system's root partition is on raid, which makes it simple to build and use kernels using modular device drivers. Any module options specified in /etc/modules.conf are passed to the modules as they are loaded by the initial ramdisk. Ref: man mkinitrd Larry -- Sword'sEdge VoiceMail/Fax: (858) 860-6406 x1587 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
So sprach »mike« am 2002-02-07 um 21:40:37 -0600 : and if it works fine what's the harm? Nice argument :( The correct way to do this, is to add the name of the module to /etc/modules in Mandrake. This file will be parsed at startup, and every module mentioned there will be auto loaded. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 12 hours 18 minutes Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
Larry Sword wrote: If the correct entries are in the /etc/modules.conf and /etc/modules then you may want to preload the scsi device via initrd. mkinitrd creates filesystem images which are suitable for use as Linux initial ramdisk (initrd) images. Such images are often used for preloading the block device modules (such as IDE, SCSI or RAID) which are needed to access the root filesystem. mkinitrd automatically loads IDE modules, all scsi_hostadapter entries and all modules in a probeall scsi_hostadapter .. line in /etc/modules.conf, and raid modules if the system's root partition is on raid, which makes it simple to build and use kernels using modular device drivers. Any module options specified in /etc/modules.conf are passed to the modules as they are loaded by the initial ramdisk. Ref: man mkinitrd After reading the man mkinitrd and all the other related man pages, modprobe, depmod, kerneld , etc... this is as clear as mud. It like being given a three page recipe for a cake with fifty ingredients and only given the last page of the recipe which only tell about the last 12 things to add. These man pages pre-suppose the one reading it will know everything it's talking about. Partial information is really worse than no information, because no information gives me nothing to try so I don't change anything. partial info only helps me break things. Is it really this hard to make my aic7xxx module load on boot? I have been using the temp fix of adding insmod aic7xxx to /etc/rc.local and it works. larry, what would be the correct entries for /modules.conf and /modules ? then do I simply do a mkinitrd ? If you or anyone else can , a simple put this here, type this, then this, and reboot etc. at this point would be nice. Sorry to be a pain. Mike Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
On Thu, 07 Feb 2002 17:46:07 -0600 mike [EMAIL PROTECTED] wrote: Hi I got my umax scanner working today by installing a aha-2906 scsi card, and doing insmod aic7xxx after which xsane finds and uses the scanner fine everything works great. however when I rebooted it appears to have lost some setting and I had to insmod aic7xxx and find-scanner again before it would work. The error was there was no device. how can I make what I - insmod - ed, permanent. so i don't have to redo this everytime I reboot for some reason. You should be able to add this to one of the rc files in /etc/rc.d/ Usually rc.local HTH, Bill. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
Bill Witherspoon wrote: You should be able to add this to one of the rc files in /etc/rc.d/ Usually rc.local Add what To the file exactly? how do I do this ( I mean what line do I add the the rc.local , what do I type? ) Mike Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
[EMAIL PROTECTED] wrote: Don't add it to rc.local. The correct place is in modules.conf with a line similar to: alias scsi_hostadapter aic7xxx Have this already in modules.conf alias scsi_hostadapter1 aic7xxx don't know if it was there before I rebooted so I will and see if it stays or not. Wait a tick Mike Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
mike wrote: [EMAIL PROTECTED] wrote: Don't add it to rc.local. The correct place is in modules.conf with a line similar to: alias scsi_hostadapter aic7xxx Have this already in modules.conf alias scsi_hostadapter1 aic7xxx don't know if it was there before I rebooted so I will and see if it stays or not. Wait a tick Still lost it after reboot though the line is still in /etc/modules.conf Is there no way to load this automaticly? Mike Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
On Thursday 07 February 2002 05:40 pm, mike wrote: mike wrote: [EMAIL PROTECTED] wrote: Don't add it to rc.local. The correct place is in modules.conf with a line similar to: alias scsi_hostadapter aic7xxx Have this already in modules.conf alias scsi_hostadapter1 aic7xxx don't know if it was there before I rebooted so I will and see if it stays or not. Wait a tick Still lost it after reboot though the line is still in /etc/modules.conf Go ahead and put it in your /etc/rc.local file (if it wont take)...why NOT add it to rc.local? It will remain with every reboot. I used to have to do that several linux iterations ago for alsa, as I recall. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
On Thu, 7 Feb 2002, mike wrote: Bill Witherspoon wrote: You should be able to add this to one of the rc files in /etc/rc.d/ Usually rc.local Add what To the file exactly? how do I do this ( I mean what line do I add the the rc.local , what do I type? ) Don't add it to rc.local. The correct place is in modules.conf with a line similar to: alias scsi_hostadapter aic7xxx Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
Praedor Tempus wrote: Go ahead and put it in your /etc/rc.local file (if it wont take)...why NOT add it to rc.local? It will remain with every reboot. I used to have to do that several linux iterations ago for alsa, as I recall. Ok Praedor, add this : alias scsi_hostadapter1 aic7xxx ? Mike Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
sorry Praedor didn't work still lost it at reboot. Mike Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
On Thursday 07 February 2002 06:06 pm, mike wrote: Praedor Tempus wrote: Go ahead and put it in your /etc/rc.local file (if it wont take)...why NOT add it to rc.local? It will remain with every reboot. I used to have to do that several linux iterations ago for alsa, as I recall. Ok Praedor, add this : alias scsi_hostadapter1 aic7xxx ? I wasn't refering to the alias bit. I thought the problem was that INSPIT of this being in modules.conf he couldn't get the module to load with each bootup. That being the case, screw modules.conf and aliases and simply to do the automatic insmod bit from rc.local. It has been done by me and many many others in the past. praedor Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
On Thursday 07 February 2002 06:12 pm, mike wrote: sorry Praedor didn't work still lost it at reboot. Mike Say what? I mean simply add the statement insmod your desired module to rc.local, right at the top before everything else. You could also go with modprobe your desired module too. praedor Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
Praedor Tempus wrote: simply to do the automatic insmod bit from rc.local. I added ( does it matter where? ) insmod aic7xxx and saved. Will try it . Please verify if this is what i should have done. OK? Mike Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
Praedor Tempus wrote: Say what? Sorry Praedor but I'm not the expert , you are right? maybe a simple question , but I've never done this, nor had to do this before. I'm not a moron just inexperienced in every command one can use in linux. BTW I did as you said and it worked. Thanks a bunch I needed this. Just a thought, if I knew what I was doing I wouldn't ask questons on I this list. Nothing meant by this post . And I really do appreciate your help Mike Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
On Thursday 07 February 2002 06:31 pm, mike wrote: Praedor Tempus wrote: simply to do the automatic insmod bit from rc.local. I added ( does it matter where? ) insmod aic7xxx and saved. Hi. When I have done this before, it would be to add an entry at the top of rc.local after all the comments but before everything else. Lets say I wanted to add my ethernet card module for some reason: insmod 3c589_cs That's all I'd enter. I have usually erred towards caution too and entered the whole path: /sbin/insmod the module you want It also would hurt to add a after it. This would ensure that if there is any delay associated with loading the module, it wont prevent the rest of the rc.local script from running without delay. so: /sbin/insmod your module That is what you can try. praedor Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
On Thursday 07 February 2002 06:39 pm, mike wrote: Praedor Tempus wrote: Say what? Sorry Praedor but I'm not the expert , you are right? I apologize. I did not intend to insult. I did not realise originally that you were the one needing the help. Brain fart. I thought someone else was telling me that what I was saying to do wouldn't work, or was indicating that I said something else wrong. Anyway, glad it worked. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
I dont remember exactly, but i seem to remember there was a command to regenerate the module list? like ldconfig does for shared libs or something similar? Better than having to add it to rc.local for every module i thought.. please let me know if this command exists :) JG Don't add it to rc.local. The correct place is in modules.conf with a line similar to: alias scsi_hostadapter aic7xxx Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
On Thu, 7 Feb 2002, Praedor Tempus wrote: On Thursday 07 February 2002 06:06 pm, mike wrote: Praedor Tempus wrote: Go ahead and put it in your /etc/rc.local file (if it wont take)...why NOT add it to rc.local? It will remain with every reboot. I used to have to do that several linux iterations ago for alsa, as I recall. Ok Praedor, add this : alias scsi_hostadapter1 aic7xxx ? I wasn't refering to the alias bit. I thought the problem was that INSPIT of this being in modules.conf he couldn't get the module to load with each bootup. That being the case, screw modules.conf and aliases and simply to do the automatic insmod bit from rc.local. It has been done by me and many many others in the past. The main reasons not to put an 'insmod module_name' into rc.local are: 1) modules can be unloaded by the kernel. If they are in rc.local they will not get reloaded. 2) insmod doesn't satisfy module dependencies. modprobe should be used instead, and then only to manually load/unload modules. 3) kernel changes can cause problems with finding the module. The only thing that should be in the rc scripts is depmod, which figures out the module dependencies. If the module is not loaded on boot, it should load when the requests it. This may be the problem -- the module itself may not be showing up in an lsmod. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] how to make insmod permanent
The only thing that should be in the rc scripts is depmod, which figures out the module dependencies. If the module is not loaded on boot, it should load when the requests it. This may be the problem -- the module itself may not be showing up in an lsmod. Shows up fine as shown when lsmod. this after I added insmod aic7xxx to rc.local If I don't change anything else why would the kernel remove the module? and if it works fine what's the harm? If you can tell me a better way to make the module permanent please tell me. What do you think ? Mike [root@linux mike]# lsmod Module Size Used by sr_mod 13952 1 (autoclean) isofs 17808 1 (autoclean) sg 25392 0 (autoclean) parport_pc 23024 1 (autoclean) lp 5296 0 (autoclean) parport24576 1 (autoclean) [parport_pc lp] via686a 8832 0 (unused) eeprom 3024 0 (unused) lm805456 0 (unused) adm1021 5456 0 (unused) sensors 6016 0 [via686a eeprom lm80 adm1021] i2c-isa 1184 0 (unused) i2c-viapro 3648 0 (unused) i2c-core 12592 0 [via686a eeprom lm80 adm1021 sensors i2c-isa i2c-viapro] aic7xxx 106336 0 emu10k144384 0 soundcore 3504 4 [emu10k1] autofs 9232 0 (autoclean) (unused) af_packet 11280 1 (autoclean) 3c59x 24640 2 (autoclean) ipt_REJECT 1888 2 (autoclean) ipt_limit864 11 (autoclean) mousedev3936 1 usbmouse1792 0 (unused) ipt_state576 13 (autoclean) input 3232 0 [mousedev usbmouse] ipt_LOG 3120 11 ip_conntrack_ftp1856 0 (unused) iptable_mangle 1680 0 (autoclean) (unused) usb-uhci 20672 0 (unused) usbcore47248 1 [usbmouse usb-uhci] ide-scsi7568 1 iptable_filter 1696 0 (autoclean) (unused) ipt_MASQUERADE 1104 1 (autoclean) iptable_nat11616 0 [ipt_MASQUERADE] ip_conntrack 12096 3 [ipt_state ip_conntrack_ftp ipt_MASQUERADE iptable_nat] ip_tables 10528 10 [ipt_REJECT ipt_limit ipt_state ipt_LOG iptable_mangle iptable_filter ipt_MASQUERADE iptable_nat] nls_iso8859-1 2848 2 (autoclean) nls_cp850 3584 1 (autoclean) vfat9040 1 (autoclean) fat30720 0 (autoclean) [vfat] supermount 32496 4 (autoclean) sd_mod 11048 0 (unused) scsi_mod 86036 5 [sr_mod sg aic7xxx ide-scsi sd_mod] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com