LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-17-2011, 05:35 PM   #1
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: gentoo
Posts: 372

Rep: Reputation: 29
Network driver for qemu network in linux 3.0.4


Hey everybody
I have been working on getting my very own Linux distro up and running. I have a few questions, but I will separate them into separate post since they have nothing really to do with each other. This is the second question that I have.
Right now I have a bootable linux system, it will boot on real hardware, but for development purposes I am using qemu. Once the system boots, it opens a getty on /dev/tty0. That works great, however, the network doesn't work.
I had the network running when I was using linux kernel 2.6.34. In 2.6.34, the network didn't work at first either, so I rebuilt the kernel, I wasn't sure exactly which card qemu uses, so I just enabled them all. Doing the same thing on 3.0.4 does not work.
Running lspci doesn't give me really anything helpful when run under 3.0.4, its busybox's version of lspci, so it doesn't have all the same features, however, using lspci with kernel 2.6.34 reveals that the driver 8139cp is being used. I have confirmed that that driver is enabled in my 3.0.4 kernel, but for some reason it doesn't seem to be working. Any ideas?
 
Old 10-17-2011, 07:48 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
qemu has a number of nic's that it can use. One should be supported.

http://linux.die.net/man/1/qemu

I forget the default one now.
 
Old 10-18-2011, 02:30 AM   #3
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: gentoo
Posts: 372

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by jefro View Post
qemu has a number of nic's that it can use. One should be supported.

http://linux.die.net/man/1/qemu

I forget the default one now.
Awesome, thanks. I skimmed over the manpage before, but i guess I missed that the first time.
They pretty much all worked except the default one. On my system, the default was rtl8139 which is different from the one the manpage lists as the default.
Now I just have to get the framebuffer and mouse working.
 
Old 10-18-2011, 07:36 AM   #4
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: gentoo
Posts: 372

Original Poster
Rep: Reputation: 29
figured out exactly what the problem was. Turns out I was booting from the wrong kernel the whole time!
I built the kernel and then copied it to /boot/kernel, but I was booting from /boot/linux instead, which was 2.6.34 without the right drivers. Silly me.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
qemu network emulation vishesh Linux - Kernel 9 03-25-2009 05:36 AM
How to modify existing network boot cd, cannot detect new network card driver. hocheetiong Linux - Newbie 0 12-05-2007 07:06 AM
Network driver not avaiable anywhere to configure network on hp pavilion dv6000 Nitin Bhumkar Linux - Laptop and Netbook 1 01-18-2007 08:50 PM
Qemu network setup. xode Linux - Networking 1 06-15-2006 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:45 AM.

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