解决修改mac地址先要up eth0的bug
在内核驱动/drivers/net/ethernet/freescale/fec_main.c中修改 在static int fec_set_mac_address(struct net_device *ndev, void *p)中,加上以下内容即可 /* Add netif status check here to avoid system hang in below case: * ifconfig ethx down; ifconfig ethx hw ether xx:xx:xx:xx:xx:xx; * After ethx down, fec all clocks are gated off and then register * access causes system hang. */ if (!netif_running(ndev)) return 0; 该bug在NXP官方提供的4.1内核中已经修改了,在3.14的内核中可以加上上边的语句就可以。 |



