ecos-2.0/packages/redboot/v2_0/src/net/net_io.c|623| #ifdef CYGDBG_REDBOOT_NET_DEBUG
ecos-2.0/packages/redboot/v2_0/cdl/redboot.cdl|223| cdl_option CYGDBG_REDBOOT_NET_DEBUG {
所以一共2个地方出现了CYGDBG_REDBOOT_NET_DEBUG,一个是redboot.cdl中,这是源头,另一个就是唯一引用它的net_init函数中,
所以如果加入net的debug功能,可以直接修改net_init函数中的#ifdef CYGDBG_REDBOOT_NET_DEBUG
RedBoot_init(net_init, RedBoot_INIT_LAST);
==> net_init
直接将false也改成true就行了,net_debug = true;// false;
最后还要在启动脚本中打开net_debug功能,
因为net_init还要加载flash_get_config("net_debug", &net_debug, CONFIG_BOOL);要不然就把该句干掉.
ecos-2.0/packages/devs/eth/arm/ep93xx/v2_0/src/if_ep93xx.c
#define ETHDEBUG // 定义该宏
#ifdef ETHDEBUG
#define dprintf diag_printf
#else
#define dprintf(x...)
#endif // ETHDEBUG
RedBoot> fconfig
Run script at boot: true
Boot script:
.. fis load ramdisk
.. {ROMRAM}fis load zImage
.. {ROMRAM}fis list
.. {ROM}fconfig
.. exec -r 0x800000 -s 0x600000
Enter script, terminate with empty line
>> fis load ramdisk
>> fis load zImage
>> exec -r 0x800000 -s 0x600000
>>
Boot script timeout (1000ms resolution): 3
Use BOOTP for network configuration: false
Gateway IP address: 192.168.1.1
Local IP address: 192.168.1.150
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.1.1
DNS server IP address: 202.106.0.20
Set eth0 network hardware address [MAC]: 0x78:0x56:0x34:0x12:0xF0:0x31
GDB connection port: 9000
Force console for special debug messages: true
Console number for special debug messages: 0
Network debug at boot time: true
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0x61f80000-0x61f81000: .
... Program from 0x03fbe000-0x03fbf000 at 0x61f80000: .
RedBoot> reset
阅读(2171) | 评论(0) | 转发(0) |