Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 30
Hi, I am writing a new lightweight Linux distibution mainly for educational purposes. I have a problem; it won't find any ethernet cards. I have tried enabling several things in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Location
    England
    Posts
    28

    Linux won't find ethernet cards


    Hi,

    I am writing a new lightweight Linux distibution mainly for educational purposes. I have a problem; it won't find any ethernet cards. I have tried enabling several things in the kernel config. What I would really like to know is how to enable some generic ethernet drivers and therefore networking. I would like to avoid having to use modules. I'm using kernel version 2.6.35.1.

    Regards,

    James

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Well you need to go into the correct kernel tree and make your driver built-in instead of as a module. Are either of your cards supported by the kernel? Most NIC cards are, but not a whole lot of WIFI cards. I believe it would be under Device Drivers>Network Device Support>
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Location
    England
    Posts
    28
    I have madE my card built in. But eth0 still does not show up.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    You've baked your own kernel? And you are sure this went right? Are you sure your card is supported? Does it work in other Linux distro's?

    ---

    I mean, it's a bit difficult to figure out what went wrong when someone has build his own distro and kernel, and one aspect doesn't work. How do you run your distro? In VBox, or is it installed? What kind of distro is it?

    I mean, I don't know you... some people say they have their own distro when they change the Ubuntu wallpaper and change a couple of packages. Others try to install LFS without the aid of the manual.

    For all I know at this point it could either be a matter of
    Code:
    ifconfig eth0 up
    or writing your own device driver.

    ---

    Sorry, I don't mean for the tone of this post to be so blunt. I'm sure it's interesting. But there are thousands of ways this could have gone wrong depending on your setup. So, a little more info on your system please
    Can't tell an OS by it's GUI

  6. #5
    Just Joined!
    Join Date
    Mar 2006
    Posts
    29
    the output of dmesg, lspci, lsusb (if libusb is installed) and ifconfig would be a great starting point.

  7. #6
    Just Joined!
    Join Date
    Aug 2010
    Location
    England
    Posts
    28
    Hi, I already tried ifconfig and it says that eth0 does not exist. dmesg show up nothing about detecting any cards. I have tried it on my laptop, this has a realtek pci card also I tried it in vbox with the intel 1000 card. I have built in support for these cards in the kernel config however none work. I have not installed lspci yet but I'll give it a go.

    Seriously though this distro is from scratch noting borrowed.

  8. #7
    Just Joined!
    Join Date
    Aug 2010
    Location
    England
    Posts
    28
    lspci confirms that the ethernet card is there:
    00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller

    EDIT: This card works in ubuntu

  9. #8
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Quote Originally Posted by jamesl22 View Post
    lspci confirms that the ethernet card is there:
    00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller

    EDIT: This card works in ubuntu
    And you are using the Linux kernel? Which version? That card should be supported through the kernel. You have done make && make modules_install, correct?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  10. #9
    Just Joined!
    Join Date
    Aug 2010
    Location
    England
    Posts
    28
    Quote Originally Posted by MikeTbob View Post
    And you are using the Linux kernel? Which version? That card should be supported through the kernel. You have done make && make modules_install, correct?
    Yes, I'm using the linux kernel, version 2.6.35.1. This is a live cd so I ran make && make bzImage. I compiled the support for this card as built-in.

  11. #10
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Quote Originally Posted by jamesl22
    Yes, I'm using the linux kernel, version 2.6.35.1. This is a live cd so I ran make && make bzImage. I compiled the support for this card as built-in.

    So let me see if I get this straight... You've created a liveCD with software you've compiled yourself? And you used a form of ./configure --prefix=/path/to/distroroot to create this? You've compiled your own kernel with the necessary ethernet card drivers compiled in? And you created a bootable CD of this? You used mkisofs probably?


    And now it is bootable, and you can get a bash login. But not network capability? You can't get the interface up, or even see it in `ifconfig -a`?


    Well, the first place I would look is the kernel configuration. You can also try to boot your Ubuntu machine using this 'new' kernel, and see if that picks up the interfaces.This is quicker to troubleshoot. If with this new kernel Ubuntu doesn't have ethernet then it's the kernels fault. Otherwise it's somewhere in userland/configs/settings. I suspect the kernel though.

    I have no idea about your method of compiling the kernel but it needs more than just the device drivers. I'm a bit rusty when it comes to kernel compilation, but I believe there are some network settings and some ethernet settings settings you have to enable in the kernel before it works. Depending on your methodology this may or may not have been enabled per default.
    Can't tell an OS by it's GUI

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •