原文地址:
如果提示
dm9000 Ethernet Driver, V1.31
dm9000 dm9000: eth%d: Invalid ethernet MAC address. Please set using ifconfig
则编辑 device/net/dm9000.c,插入一行代码如下:
1587 if (!is_valid_ether_addr(ndev->dev_addr)) {
1588 /* try reading from mac */
1589
1590 mac_src = "chip";
1591 for (i = 0; i < 6; i++)
1592 ndev->dev_addr[i] = ior(db, i+DM9000_PAR);
1593 }
1594
1595 + memcpy(ndev->dev_addr, "\x08\x90\x90\x90\x90\x90",6);
1596
1597 if (!is_valid_ether_addr(ndev->dev_addr))
1598 dev_warn(db->dev, "%s: Invalid ethernet MAC address. Please "
1599 "set using ifconfig\n", ndev->name);
本篇文章来源于 Linux公社网站() 原文链接:
阅读(2032) | 评论(0) | 转发(0) |