Click to See Complete Forum and Search --> : how to insert a module ?
anton
10-30-2001, 12:26 AM
When I try to do this:
insmod pdc202xx.c I get this error:
pdc202xx.c: pdc202xx.c is not an ELF file
:(
how would I go about inserting a module?
thx
X_console
10-30-2001, 12:41 AM
You need to compile it first and then use insmod to load it.
anton
10-30-2001, 12:47 AM
oh... like this:
gcc pdc202xx.c -c pdc202xx ?
it just gives me a lot of errors :(
[ 29 October 2001: Message edited by: anton ]
anton
10-30-2001, 11:05 AM
anybody ? pls
X_console
10-30-2001, 12:17 PM
Where did you get this module from? You should have been given instructions on how to compile it, or there should have been a compiled version (object .o file) for you to download.
anton
10-30-2001, 02:19 PM
X-Console : this module was already in /usr/src/linux/drivers/ide ... and I didn't find the compiled version for it there :(
scanez
10-30-2001, 02:25 PM
Originally posted by anton:
<STRONG>X-Console : this module was already in /usr/src/linux/drivers/ide ... and I didn't find the compiled version for it there :(</STRONG>
/usr/src/linux is where the kernel source lives, meaning, you have to compile a new kernel to get the modules in there onto your system. Had you done a kernel recompilation before? Did you enable support for the module you are trying to get?
SC
bdg1983
10-30-2001, 06:04 PM
Which thread are we to reply in? You have another going in Hardware for which you are still asking for help on the same problem.
http://www.linuxnewbie.org/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=2&t=006629
anton
10-31-2001, 12:33 AM
pls... anybody ? I really need to make this hdd work :(
p.s. sorry for the double post ... I'm really in need of this hdd :(
[ 30 October 2001: Message edited by: anton ]
X_console
10-31-2001, 03:22 AM
Try this as root:
modprobe pdc202xx
anton
10-31-2001, 04:02 AM
X_console:
modprobe: Can't locate module pdc202xx
X_console
10-31-2001, 04:54 AM
The way I see it, you have two options.
1. Build a new kernel and enable support for that module. When you do a make modules && make modules_install the module will be made available to you through modprobe.
2. Tell us what kernel version you're using and maybe someone here can send you that particular module if it's already built into their kernel. I know the default Slackware 8.0 modules package includes that particular module, but it's built for kernel 2.4.5.
anton
10-31-2001, 02:08 PM
I have kernel 2.4.3 ... that would be great , If somebody could send it to me, b/c I tried one time recompiling kernel, and after I did it, 60% of hardware wouldn't work :(
bdg1983
10-31-2001, 05:49 PM
I used to be a little afraid to attempt to compile my own kernel until I finally tried it a few months ago. Now I look forward to every kernel release so I get to compile another kernel. After a couple of times, it gets to be really easy.
If your stock kernel is 2.4.3, then have a look in /usr/src/linux-2.4.3/arch/i386 for a file named defconfig (at least on my distro) and print out a copy of it. The default kernels always enable just about everything in order to support a wide range of hardware etc.
Next do a 'lsmod > lsmod.txt and either print that out or put it in a directory somewhere for safe keeping.
Between your knowledge of your own hardware, the lsmod listing and defconfig, you should be able to figure out exactly what needs to be selected during the make xconfig step to ensure the new kernel and modules created will have all the necessary support for your hardware.
If you are still worried about missing some of your hardware, then just load 'defconfig' in make xconfig and then just go through the menus and select the options for pdc202xx (promise controller). As long as your original kernel is intact and lilo.conf is set to boot either kernel, then just keep trying until you get it right.
anton
10-31-2001, 05:59 PM
logon: when last time I tried to compile a kernel (2.4.10) , I did enable all the modules that I need... it still didn't load half of the hardware ...
well , I'll try to do it like you said... we'll see what happens :)
anton
10-31-2001, 06:34 PM
ok ... I think something wrong with my compiler lately :( ... gonna try to repair it first ...
can't even do "make xconfig" :(
anton
10-31-2001, 07:32 PM
ok ...recompiled kernel ... hardrake sees new hdd and cd-rom ... but when I booted , I got tons of errors :( ... and my eth0 is not even up :( ... going to try to see what's up ... but I don't think I would be able to fix anything besides video card (b/c I already did fixed it one time)
bdg1983
10-31-2001, 07:55 PM
My advise is to keep trying until you get it right.
Read all the kernel compilation documentation you can get your hands on and keep reviewing the default config until you get the hang of it.
Keep in mind that if you select options that you don't actually have the hardware for, you will have problems.
During my kernel compiles, I only select exactly what I need and only for the hardware I have.
For example, this pc has a Asus motherboard with via chipset, so I select
#
# IDE chipset support/bugfixes
#
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_PCI_WIP=y
CONFIG_IDEDMA_NEW_DRIVE_LISTINGS=y
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_PIIX is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_PDC202XX is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
CONFIG_BLK_DEV_VIA82CXXX=y
CONFIG_IDE_CHIPSETS=y
anton
10-31-2001, 07:56 PM
ok... got X working with old nvidia's drivers(wow... I didn't know, there was such difference ... it's kind of slow compared to the new nvidia's drivers )
now I need to get my eth0 back up ...
when I try to configure it in harddrake, it says "modprobe eth0: module not found" :(
thx
X_console
10-31-2001, 11:04 PM
Did you create the modules required for your ethernet card? In some cases, the old module is replaced with a new one that's named differently, but still works with your card. I suggest trying to reconfigure your network.
anton
10-31-2001, 11:40 PM
X-Console: when I was configuring kernel , I didn't notice anything about my network card ... but I loaded old config file, like "Logon name gone" said ... shouldn't that take care of it ?
because I hope I don't need to recompile my kernel again :(
and what do you mean by re-configuring network ... ?
anton
11-01-2001, 01:09 AM
hmm ... strange thing ... when I'm doing "lsmod" nothing shows up ... is it normal ? :confused:
anton
11-01-2001, 01:12 AM
and also NVDriver is missing :(
p.s. I did everything like it says here: http://www.linuxnewbie.org/nhf/intel/compiling/kernelcomp.html
[ 01 November 2001: Message edited by: anton ]
anton
11-01-2001, 02:48 AM
ok... i think I got it ... when I configure it fresh, it just doesn't compile all modules... it takes like 5 seconds to "make modules" ...when I did from old config, it gave me an error , that some directive is not defined :(
right now I still trying to do something ... but kind of stuck :( ...
why would it not compile any modules when I do it clean ?
thx all..
X_console
11-01-2001, 02:58 AM
I'm not certain what's going on with your kernel. What kernel did you download? I suggest you download the current kernel and try again.
anton
11-01-2001, 03:10 AM
actually, u know what... b/c I was tired of it, and want to sleep, I just booted to my old kernel ... and behold ... there I see my new hard drive :D ... I don't know why ... maybe b/c I compiled it module while trying to do all that stuff ? :)
but I still want to find out, why can't compile new kernel...
anton
11-01-2001, 03:13 AM
X-console: didn't see ur post ...
I downloaded 2.4.13 ...