|
发表于 2009-4-17 14:13:16
|
显示全部楼层
顺便请教下ksh,
skyeye版本0.9.2
s3c44b0+rtl8019+ucos+lwip的情况下,配置文件如下:
cpu: arm7tdmi
mach: s3c44b0
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00001000
mem_bank: map=M, type=RW, addr=0x0c000000, size=0x00800000
mem_bank: map=I, type=RW, addr=0x02000000, size=0x00800000
mem_bank: map=I, type=RW, addr=0x04000000, size=0x00800000
mem_bank: map=I, type=RW, addr=0x06000000, size=0x00800000
mem_bank: map=I, type=RW, addr=0x08000000, size=0x00800000
mem_bank: map=I, type=RW, addr=0x0e000000, size=0x00800000
mem_bank: map=I, type=RW, addr=0x01c00000, size=0x00400000
net: state=on, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
网卡的基址和中断号是多少?
uclinux驱动文件里有三种情况:
#ifdef CONFIG_ARCH_S3C44B0X
#ifdef RTL8019_OP_16
#define BaseAddr 0x6000000
#elif defined(RTL8019_OP_8_EXTRA)
#define BaseAddr 0x3000000
#else /* RTL8019_OP_8 */
#define BaseAddr 0x8000000
#endif
#define IRQ_NUM 22
#else /* for AT91 or others */
#define BaseAddr 0xfffa0000
#define IRQ_NUM 16
#endif
我尝试在初始化网卡的函数ne2k_init里打印mac地址,结果不是预期的0:4:3:2:1:f。另外也尝试在初始化网卡后do_irq函数里打印中断号,结果没有来自网卡的中断。。。
我是用ucosii4skyeye里适合at91的ucos+lwip的代码,再加上s3c44b0的启动代码,ucos能够运行。添加lwip的代码之后,只是修改了网卡的基址。 |
|