【问题标题】:BUILDROOT ip: can't find device eth0BUILDROOT ip: 找不到设备 eth0
【发布时间】:2015-10-26 01:18:12
【问题描述】:

我的 VirtualMachine 上 buildroot 中的网络有问题。当我输入 ifconfig 我得到答案:

eth0:获取接口信息时出错:找不到设备

在控制台上加载 buildroot 时,我看到了:

ip: 找不到设备 eth0

ip: SI0CGIFFALGS : 没有这样的设备

我找不到解决此问题的方法。

【问题讨论】:

  • Buildroot 是一个用于生成工具链、内核和根文件系统的工具。你的第一句话,“I have problem with network in buildroot”,毫无意义。您是否使用 Buildroot 来制作您在 VM 中运行的内核和 rootfs?你是如何配置内核的? dmesg 输出是什么?

标签: linux-kernel network-programming buildroot


【解决方案1】:
# make linux-menuconfig

Device drivers —>
Network device support —>
Ethernet driver support—>

选择:

<*>     Intel(R) PRO/100+ support                                
<*>     Intel(R) PRO/1000 Gigabit Ethernet support               
<*>     Intel(R) PRO/1000 PCI-Express Gigabit Ethernet support    
<*>     Intel(R) 82575/82576 PCI-Express Gigabit Ethernet support
[*]     Intel(R) PCI-Express Gigabit adapters HWMON support  
<*>     Intel(R) 82576 Virtual Function Ethernet support     

现在应该可以与 VM 一起使用了。

【讨论】:

  • 我在 VB 中更改了适配器类型,它已经解决了一个问题。 VB -> 网络 -> 高级 -> Intel PRO/1000 MT Desktop(EM) 谢谢解答。
  • 在字母版本的 VB 中默认选择此项。不客气!
【解决方案2】:

你的问题不是 Buildroot 问题,而是内核配置问题。

【讨论】:

    【解决方案3】:

    从引导日志的最后一行开始,您可以添加 Intel(R) PRO/1000 PCI-Express Gigabit Ethernet support,正如 @TadejP 提到的那样。

    [    0.204512] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
    [    0.205444] e1000: Copyright (c) 1999-2006 Intel Corporation.
    [    0.220165] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
    [    0.362077] ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100
    [    0.362908] ata1.00: 4280320 sectors, multi 16: LBA48
    [    0.364110] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
    [    0.365246] ata2.00: configured for MWDMA2
    [    0.366176] ata1.00: configured for MWDMA2
    [    0.366846] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
    [    0.368118] sd 0:0:0:0: [sda] 4280320 512-byte logical blocks: (2.19 GB/2.04 GiB)
    [    0.369219] sd 0:0:0:0: [sda] Write Protect is off
    [    0.369916] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [    0.371218] sd 0:0:0:0: Attached scsi generic sg0 type 0
    [    0.372213] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.5+ PQ: 0 ANSI: 5
    [    0.387384]  sda: sda1 sda2 sda3
    [    0.388409] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
    [    0.389298] cdrom: Uniform CD-ROM driver Revision: 3.20
    [    0.390163] sd 0:0:0:0: [sda] Attached SCSI disk
    [    0.390976] sr 1:0:0:0: Attached scsi generic sg1 type 5
    [    0.548201] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 52:54:00:12:34:56
    [    0.549265] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-17
      • 2016-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多