不然你要我怎么样

彪悍的代码不需要注释

Archive for the ‘probe’ tag

【转贴】如何调整Linux内核启动中的驱动初始化顺序

leave a comment

【问题】

此处我要实现的是将芯片的ID用于网卡MAC地址,网卡驱动是enc28j60_init,但是,读取芯片ID的函数,在as352x_afe_init模块中,所以要先初始化as352x_afe_init。此处,内核编译完之后,在生成的system.map中可以看到,enc28j60_init在as352x_afe_init之前,所以,无法去读芯片ID。所以我们的目标是,将as352x_afe_init驱动初始化放到enc28j60_init之前,然后才能读取芯片ID,才能用于网卡初始化的时候的,将芯片ID设置成网卡MAC地址。

【解决过程】 Read the rest of this entry »

转载请注明: 转载自不然你要我怎么样
本文链接地址: 【转贴】如何调整Linux内核启动中的驱动初始化顺序

Written by xiangmocheng

九月 10th, 2009 at 5:13 下午

Posted in Embedded,Linux

Tagged with ,