LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-03-2011, 11:51 PM   #1
NM04
Member
 
Registered: Jan 2011
Location: Bangalore, India
Distribution: Back Track,Fedora,centos
Posts: 159

Rep: Reputation: 13
problem: Wind River Linux is not detecting the network cards (network interfaces)


hello experts,
i am using Wind River Linux and have to do some assignments, for which i need WR Linux to connect to a network. But it is not detecting the interface both- the inbuilt and external. When I executed the command
service network restart-- it says :

Bringing up interface eth0: device eth0 does not seem to be present, delaying initialization [FAILED]

and same for eth1.
is this a driver problem ? if yes, how should i install driver for WR Linux i dont have a CD ?

Also it is not executing ifconfig, if i press <enter> after ifconfig it gets back to the prompt. I tried su, su -, su -root, su root, none of them shows me the login prompt. I have logged in as root/root (default id & password). Thanks in advance.

Regards,
NM04

Last edited by NM04; 02-04-2011 at 12:23 AM. Reason: found some more problems.
 
Old 02-04-2011, 01:39 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetingz!

Try "ifconfig -a" first. Wrap your output in [code] & [/code], and post it here. Read the man page for ifconfig while you're waiting for a reply.
If all you see is an interface named "lo", you have bigger problems friend.
 
Old 02-04-2011, 02:41 AM   #3
NM04
Member
 
Registered: Jan 2011
Location: Bangalore, India
Distribution: Back Track,Fedora,centos
Posts: 159

Original Poster
Rep: Reputation: 13
xeleema,
thanx for your reply, but i am a newbie in linux, i didn't got the meaning of
Code:
 &
. Also I executed
"ifconfig -a"
it worked & you were correct, what i have got is only "lo". What is the big problem you were signalling to ?

Regards,
NM04
 
Old 02-04-2011, 02:57 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Well, that much is obvious, isn't it? (it's right under your name)

The [code] & [/code] tags are what you put at the beginning and end of output that you copy-n-paste into the window so your posts don't look like garbled mess.

In order to actually put [code] & [/code] into a post, you just type them. However, if you want the tags to show up in a post that you type, you have to wrap [noparse] & [/noparse] around them.
That way, it looks like this in your post; [noparse][code][/noparse]
I would suggest you familiarize yourself with how to use LQ, which will help you in asking questions. There's a section on "how to post" (I know that sounds really, really low-brow, but hey, even I learned a lot from it).

If you already know how to use BBcode to format a post, you can just skip to the list of supported tags here.

Your Problem
Your Linux system doesn't recognize any network interfaces, hence why the loopback ("lo") is the only interface you seen when you typed "ifconfig -a".
Run the following (this should tell us if there are *any* NICs on the box);
Code:
for BUSID in $(lspci|awk '{IGNORECASE=1} /net/ {print $1}');do lspci -s $BUSID -m;lspci -s $BUSID -n;done

Last edited by xeleema; 02-04-2011 at 03:01 AM.
 
1 members found this post helpful.
Old 02-04-2011, 03:05 AM   #5
NM04
Member
 
Registered: Jan 2011
Location: Bangalore, India
Distribution: Back Track,Fedora,centos
Posts: 159

Original Poster
Rep: Reputation: 13
xeleema,
ok i will learn how to post, but for now can you tell me what is the big problem with my WR Linux ?
as you said i executed the "ifconfig -a" and got the same result as you mentioned i.e "lo" interface, what's next ?

Regards,
NM04
 
Old 02-04-2011, 03:56 AM   #6
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Yes, if you read my whole post, you would have seen this;
Quote:
Your Problem
Your Linux system doesn't recognize any network interfaces, hence why the loopback ("lo") is the only interface you seen when you typed "ifconfig -a".
Run the following (this should tell us if there are *any* NICs on the box);
Code:
for BUSID in $(lspci|awk '{IGNORECASE=1} /net/ {print $1}');do lspci -s $BUSID -m;lspci -s $BUSID -n;done
 
Old 02-04-2011, 04:29 AM   #7
NM04
Member
 
Registered: Jan 2011
Location: Bangalore, India
Distribution: Back Track,Fedora,centos
Posts: 159

Original Poster
Rep: Reputation: 13
xeleema,
sorry for that, i executed the first code it returned back to the prompt, and for the second and third code it said:
lspci: -s: invalid slot number.

NM04
 
Old 02-04-2011, 05:44 AM   #8
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Okay, how about just the output of "lspci" and maybe "uname -a" with a "cat /etc/*release" and a "uptime".
Don't forget the [code] & [/code] tags.

If you're feeling really frisky, you could paste the output of "dmesg" (but don't dare forget those code tags on that one).
 
1 members found this post helpful.
Old 02-04-2011, 06:26 AM   #9
prodev05
Member
 
Registered: Jul 2009
Location: Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
NM04

Follow these steps:

1.) /sbin/ifconfig lo 127.0.0.1 up // First you have to bring UP the loop-back.

2.) /sbin/ifconfig eth0 <your IP> up // Second set IP for your NIC

3.) /sbin/route add -net <gw ip> netmask <netmask> eth0 // Third to connect it through network add Gateway address.

Note: If these commands throws any error. pl paste the error here.

Also share us the OS Version and Arch details.
 
Old 02-04-2011, 06:50 AM   #10
NM04
Member
 
Registered: Jan 2011
Location: Bangalore, India
Distribution: Back Track,Fedora,centos
Posts: 159

Original Poster
Rep: Reputation: 13
xeleema,
Code:
 outputs are as follows:
lspci:
00:00.0 Class 0600:Unknown device 8086:29c0 (rev10)
00:01.0 Class 0604:Unknown device 8086:29c1 (rev10)
00:02.0 Class 0300:Unknown device 8086:29c2 (rev10)
00:01b.0 Class 0403:Unknown device 8086:27d8 (rev01)
...............
a total of 18 entries with slight changes.

uname -a:
Linux localhost 2.6.27.18-WR3.0bg_standard #1 PREEMPT Fri JAN 21 17:05:27 i686 i686 i386 GNU/LINUX

cat /etc/*release:
Wind River Linux

uptime:
17:16:33 up 6:32, 1 user load average: 0.00, 0.00, 0.00

NM04
 
1 members found this post helpful.
Old 02-04-2011, 06:59 AM   #11
NM04
Member
 
Registered: Jan 2011
Location: Bangalore, India
Distribution: Back Track,Fedora,centos
Posts: 159

Original Poster
Rep: Reputation: 13
prodev05,
Code:
outputs are as follows :
/sbin/ifconfig lo 127.0.0.1 up: no error it came back to the prompt.

/sbin/ifconfig eth0 <your IP> up::error --> 
SIOCSIFADDR: NO SUCH DEVICE
eth0:error while getting interface flags : No such device

/sbin/route add -net <gw ip> netmask <netmask> eth0:: error::
netmask: host name lookup failure

Regards,
NM04
 
1 members found this post helpful.
Old 02-04-2011, 07:07 AM   #12
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Whoa! 2.6.27? That's from 17feb2009, almost a year old.
There's two things going on here;

1) The kernel doesn't support your hardware.
2) The kernel doesn't have a module (or built-in) for your hardware.
3) You need to get a newer release of "Wind River Linux" (if possible)
4) If you really feel like jumping in and tearing things apart with your teeth, you could always compile and install a new kernel.

As Wind River Linux seems to be a commercial Linux distribution (without an uncrippled free download available), I'd suggest you visit their website and hit their support forum (if they have one). I know there's a Developer forum, but that'd just be mean of me to link to.
 
1 members found this post helpful.
Old 02-04-2011, 07:13 AM   #13
NM04
Member
 
Registered: Jan 2011
Location: Bangalore, India
Distribution: Back Track,Fedora,centos
Posts: 159

Original Poster
Rep: Reputation: 13
xeleema,
thanks for your reply, earlier i thought of the same, and your conclusion proved it. I will built and will integrate the h/w support in the kernel.

Regards,
NM04
 
1 members found this post helpful.
Old 02-04-2011, 07:17 AM   #14
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Sounds great!
Your post from earlier looks good, too. Very easy to read!
Notice that I have marked your posts as "HelpFul", and this has resulted in a "Reputation" gain for you.
You now have a little green box under your name. Here's why.

P.S: If you see a post that has been helpful to you, mark it as helpful. The more "helpful" a post is, the better the chance someone else with your problem will see the "helpful" post! Also, if your problem is solved, there's a "Thread Tools" section at the very, very top of the page, where you can mark your thread [SOLVED].

Last edited by xeleema; 02-04-2011 at 07:19 AM.
 
Old 11-29-2013, 03:29 AM   #15
mrrahul9768
LQ Newbie
 
Registered: Nov 2013
Posts: 2

Rep: Reputation: Disabled
i used this
Code:
for BUSID in $(lspci|awk '{IGNORECASE=1} /net/ {print $1}');do lspci -s $BUSID -m;lspci -s $BUSID -n;done
and got this output
Code:
02:01.0 "Ethernet controller" "Advanced Micro Devices [AMD]" "79c970 [PCnet32 LANCE]" -r10 "Advanced Micro Devices [AMD]" "PCnet - Fast 79C971"
02:01.0 0200: 1022:2000 (rev 10)
so please help me with the further steps so that my network card gets working...
thanks in advance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two ethernet cards in a single network, how to route packets from both interfaces? nabi18 Linux - Networking 5 12-11-2010 03:49 PM
Detecting wireless network interfaces under Linux cshong Programming 1 12-09-2010 11:06 PM
Wind River Linux 3 nirmit Linux - Distributions 1 05-28-2009 10:42 AM
wind river linux pdp_122 Linux - Software 1 03-11-2009 03:58 PM
Detecting Wireless Network Cards kharn Linux - Wireless Networking 0 07-16-2003 01:13 PM


All times are GMT -5. The time now is 10:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration