Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15316492
  • 博文数量: 2005
  • 博客积分: 11986
  • 博客等级: 上将
  • 技术积分: 22535
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-17 13:56
文章分类

全部博文(2005)

文章存档

2014年(2)

2013年(2)

2012年(16)

2011年(66)

2010年(368)

2009年(743)

2008年(491)

2007年(317)

分类:

2009-08-02 16:14:32

网络设置,但是网络ping不通,redboot中网卡驱动还存在问题.
RedBoot> ip_address
RedBoot> ip_address -d 202.106.0.20  //dns
RedBoot> ip_address -h 192.168.1.1  // 设置server地址
RedBoot> ip_address -l 192.168.1.150  // 设置本机地址和掩码
RedBoot> ping -h 192.168.1.1
ip_address -l 192.168.1.150 -h 192.168.1.101
我的flash中的配置数据:
all configs:
config_bool[boot_script]=1
config_script[boot_script_data]=
.. fis load ramdisk
.. fis load zImage
.. exec -r 0x800000 -s 0x600000
config_int[boot_script_timeout]=0x3
config_bool[bootp]=0
config_ip[bootp_my_gateway_ip]=0x100a8c0
config_ip[bootp_my_ip]=0x6400a8c0
config_ip[bootp_my_ip_mask]=0xffffff
config_ip[bootp_server_ip]=0x200a8c0
config_ip[dns_ip]=0x100a8c0
config_int[gdb_port]=0x2328
config_bool[info_console_force]=0
config_int[info_console_number]=0x0
config_bool[net_debug]=0

static void do_ip_addr(int argc, char *argv[]);
RedBoot_cmd("ip_address",
            "Set/change IP addresses",
            usage,
            do_ip_addr
    );
static void do_ping(int argc, char *argv[]);
RedBoot_cmd("ping",
            "Network connectivity test",
            "[-v] [-n ] [-l ] [-t ] [-r ]\n"
            "        [-i ] -h ",
            do_ping
    );

RedBoot > fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0x60000000  0x60000000  0x00040000  0x00000000
RedBoot config    0x61F80000  0x61F80000  0x00001000  0x00000000
FIS directory     0x61FC0000  0x61FC0000  0x00040000  0x00000000
ramdisk           0x60040000  0x00800000  0x005C0000  0x00800000
zImage            0x60600000  0x00080000  0x00100000  0x00080000

RedBoot > dump -b 0x0 -1 -l 80
RedBoot > dump -b 0x8000 -1 -l 80
RedBoot > dump -b 0x60000000 -1 -l 80


使用fconfig设置起机参数
RedBoot> fconfig
Run script at boot: true
Boot script:
.. fis load ramdisk
.. fis load zImage
.. exec -r 0x800000 -s 0x600000
Enter script, terminate with empty line
>> fis load ramdisk
>> fis load zImage
>> exec -r 0x800000 -s 0x600000
>> fis load gliethttp
>>
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:            
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: false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0x61f80000-0x61f81000: .
... Program from 0x03fbe000-0x03fbf000 at 0x61f80000: .
RedBoot> fconfig -l
Run script at boot: true
Boot script:
.. fis load ramdisk
.. fis load zImage
.. exec -r 0x800000 -s 0x600000
.. fis load gliethttp

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.0.2
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: false
RedBoot> 
阅读(1937) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~