LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2009, 08:36 PM   #1
ramjgn
LQ Newbie
 
Registered: Jan 2009
Posts: 19

Rep: Reputation: 0
IntelD945GCNL


Hi,I have installed Red Hat Enterprise Linux-5 in CPU that is assembled with IntelD945GCNL motherboard. The in built LAN card doesn't get activated. Guess the drivers are missing. But on installing fedora7 or higher, the LAN card gets activated. Is it possible to extract those drivers or modules from fedora7 or higher version of fedora release and add it in the already available RHEL-5 Kernel ???? The default Kernel in RHEL-5 is 2.6-18.8.el5. Can someone help me how to extract those driver modules from higher version and compile in existing version??
 
Old 01-24-2009, 09:48 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

depends on whether Redhat has a kernel that allows other modules from diff kernel to load.

to start the process pls run Fed 7 and

Code:
$ lsmod (post this output pls)
so we can see what module is used for net...pls post if its NOT an ethernet connection you desire

2) then we can look at you searching your RH kernel for that module and if not found you can re-compile your own.
 
Old 01-25-2009, 05:19 AM   #3
ramjgn
LQ Newbie
 
Registered: Jan 2009
Posts: 19

Original Poster
Rep: Reputation: 0
well, i don`t know what to compile. thats what exactly i want to know. where from i can extract the source code to compile???? is it possible to extract from fedora??? if yes, pl let me know how to do it. and wat files should i extract .
Thanks
 
Old 01-25-2009, 05:37 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
pls post the lsmod output as you may not need to.

RH has good documentation on kernel compiling....but you need a few applications to do it...but you are jumping one step ahead..so lets see if your currrent kernel already has the module eh?
 
Old 01-26-2009, 01:17 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
If other things fail, you could try getting it from here and compiling it:
http://www.realtek.com.tw/downloads/...Cbr%3ERTL8168C
 
Old 03-07-2009, 10:24 PM   #6
ramjgn
LQ Newbie
 
Registered: Jan 2009
Posts: 19

Original Poster
Rep: Reputation: 0
lsmod output

Module Size Used by
sg 32412 0
sd_mod 28672 0
usb_storage 75712 0
scsi_mod 129292 3 sg,sd_mod,usb_storage
i915 25472 2
drm 73492 3 i915
autofs4 20484 2
hidp 21632 2
rfcomm 38168 0
l2cap 27008 10 hidp,rfcomm
bluetooth 50916 5 hidp,rfcomm,l2cap
sunrpc 148988 1
cpufreq_ondemand 10508 2
dm_mirror 22272 0
dm_mod 48832 1 dm_mirror
video 18440 0
sbs 20104 0
button 10128 0
battery 12292 0
ac 7940 0
ipv6 238404 16
lp 13864 0
snd_hda_intel 239512 1
snd_seq_dummy 7300 0
snd_seq_oss 31744 0
snd_seq_midi_event 10624 1 snd_seq_oss
snd_seq 47472 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 11148 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 40960 0
snd_mixer_oss 18176 1 snd_pcm_oss
snd_pcm 71172 2 snd_hda_intel,snd_pcm_oss
snd_timer 22020 2 snd_seq,snd_pcm
snd 48516 10 snd_hda_intel,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
ide_cd 36896 0
cdrom 35360 1 ide_cd
parport_pc 28324 1
soundcore 10720 1 snd
serio_raw 9092 0
8139cp 21760 0
parport 35656 2 lp,parport_pc
i2c_i801 11536 0
i2c_core 25344 1 i2c_i801
r8169 27272 0
8139too 24960 0
mii 9216 2 8139cp,8139too
snd_page_alloc 11784 2 snd_hda_intel,snd_pcm
ext3 112392 1
jbd 55464 1 ext3
ehci_hcd 30732 0
ohci_hcd 20740 0
uhci_hcd 23184 0
 
Old 03-07-2009, 10:26 PM   #7
ramjgn
LQ Newbie
 
Registered: Jan 2009
Posts: 19

Original Poster
Rep: Reputation: 0
i`m using add on LAN card and i also have loaded modular Kernel 2.6.22.3, i find the inbuilt card after loading modular kernel gets activated but the mii-tool says no link and also `im not able to connect to network!!!!
 
Old 03-08-2009, 06:09 AM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hmm

you have at least 2 network modules loaded

r8169 27272 0
8139too 24960 0


my old mobo had r8169 and my ecs mobo 945gct-m2/1333 uses 8139too what a co-incidence!

2) time to look at your specs?
manual suggests
Realtek RTL8111B-GR device for 10/100/1000 Mbits/sec Ethernet LAN connectivity

http://www.intel.com/support/motherb.../CS-029378.htm

3) pls post output of

Code:
lspci
you should not have 2 network cards/onboard unless there is something you are not telling us?

leaping ahead...me thinks blacklist the 8139too module might be all it takes.
 
Old 03-09-2009, 07:09 AM   #9
ramjgn
LQ Newbie
 
Registered: Jan 2009
Posts: 19

Original Poster
Rep: Reputation: 0
i have activated it finally. i removed my add on LAN card, downloaded the 2.6.22.3 kernel from kernel.org and added the modular kernel and made it the default one. now, my inbuilt LAN card works, just tuning the kernel gave me the desired output.
 
Old 03-09-2009, 02:36 PM   #10
sureshsujatha
Member
 
Registered: Mar 2009
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by ramjgn View Post
i have activated it finally. i removed my add on LAN card, downloaded the 2.6.22.3 kernel from kernel.org and added the modular kernel and made it the default one. now, my inbuilt LAN card works, just tuning the kernel gave me the desired output.
(Standing Ovation !!!) Bravoooooooo !!!

Last edited by sureshsujatha; 03-14-2009 at 12:30 AM.
 
Old 03-09-2009, 03:30 PM   #11
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Good to see you found a solution.
 
Old 03-10-2009, 09:56 AM   #12
ramjgn
LQ Newbie
 
Registered: Jan 2009
Posts: 19

Original Poster
Rep: Reputation: 0
but i want to see the code that is responsible for this LAN card activation. i want to exact place where the code to activate LAN card is located in Kernel 2.6.22-3.tar.bz2. I`m interested to see the source code
 
Old 03-10-2009, 02:24 PM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I don't know about activation of the LAN card, but I'll assume that's part of the driver module. First you have to find what driver it's using, so run '/sbin/lspci -vv' and look for:

Code:
00:19.0 Ethernet controller: Intel Corporation 82566DC-2 Gigabit Network Connection (rev 02)
	Subsystem: Intel Corporation Unknown device 0001
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 20
	Region 0: Memory at 93200000 (32-bit, non-prefetchable) [size=128K]
	Region 1: Memory at 93224000 (32-bit, non-prefetchable) [size=4K]
	Region 2: I/O ports at 3400 [size=32]
	Capabilities: <access denied>
	Kernel driver in use: e1000e
	Kernel modules: e1000e
Notice that it says what module it's using at the bottom, for me it is e1000e. Then check the kernel source in 'drivers/net', sometimes there's a separate directory in there (as is my case), sometimes it's just in that very directory.
 
Old 03-18-2009, 07:39 AM   #14
ramjgn
LQ Newbie
 
Registered: Jan 2009
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you all . Now, i want a shell script that will automate the process. I need to load the modules in quiet a few number of systems. I need a script that will automate the process.

here is the history of my command that need to be automated


yum install gcc*

yum install gtk*

cp /root/desktop/linux-2.6.22-3.tar.bz2 /usr/src

cd /usr/src

tar –xvjf linux-2.6.22-3.tar.bz2

cd linux-2.6.22-3

make gconfig

(this wil open a graphical configuration screen.check the required network configuration method…. This should be done automatically via script. The LAN card configuration should be checked through the script)
make modules

make modules_install

make bzImage

make install

vim /etc/grub.conf
(edit the default boot order from 1 to 0)

init 6



Kindly help me in this issue. I need a script that will automate my process.

Thanks
 
Old 03-18-2009, 09:26 AM   #15
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You can put all that in a script except the gconfig part, instead just copy the '.config' from the kernel you just built into the kernel build directory and then continue building the kernel using the config you made.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration