Linux vanilla kernel on QEMU and networking with eth0 -
i have downloaded , compiled vanilla linux kernel (3.7.1) used busybox ramdisk booted using qemu. qemu command line
qemu-system-i386 -kernel bzimage -initrd ramdisk.img -append "root=/dev/ram rw console=ttys0 rdinit=/bin/ash" -nographic -net nic -net user
everything goes well. however, can't use networking on vanilla kernel busybox.
'ifup eth0' tells me
/ # ifup eth0 ip: siocgifflags: no such device
i googled internet can' clue... advice nice thank in advance.
most there no driver (in example should e1000) loaded or device has name.
in /sys/class/net/ should find listing of available net-devices. if there none (besides lo) driver not loaded.
in qemu monitor type "info pci" , show pci-address of ethernet card. should this:
... bus 0, device 3, function 0: ethernet controller: pci device 8086:100e ...
this device corresponds /sys/devices/pci0000:00/0000:00:03.0/. files "vendor" , "device" must contain "0x8086" , "0x100e" pci-id above , kernel determines driver load.
try load manually "modprobe e1000" or insmod. if loaded there must symlink named "driver". if not "dmesg" should give reason why not.
Comments
Post a Comment