U-BOOT開機網路設定
目的:
設定初次開機時的
IPADDR
SERVERIP
MACADDR
GATEWAYIP
檔案:
./net/net.c
修改位置:
IPaddr_t NetOurSubnetMask=string_to_ip("255.255.255.0"); /* Our subnet mask (0=unknown) */
IPaddr_t NetOurGatewayIP=string_to_ip("192.168.1.254"); /* Our gateways IP address */
uchar NetOurEther[6]; /* Our ethernet address */
{ 0, 0, 0, 0, 0, 0 };
IPaddr_t NetOurDNSIP=0; /* Our DNS IP address */
uchar NetServerEther[6] ={ 0, 0, 0, 0, 0, 0 };
uchar NetBcastAddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
uchar NetEtherNullAddr[6] ={ 0, 0, 0, 0, 0, 0 };
uchar NetCDPAddr[6] ={ 0x01, 0x00, 0x0c, 0xcc, 0xcc, 0xcc };
設定初次開機時的
IPADDR
SERVERIP
MACADDR
GATEWAYIP
檔案:
./net/net.c
修改位置:
IPaddr_t NetOurSubnetMask=string_to_ip("255.255.255.0"); /* Our subnet mask (0=unknown) */
IPaddr_t NetOurGatewayIP=string_to_ip("192.168.1.254"); /* Our gateways IP address */
uchar NetOurEther[6]; /* Our ethernet address */
{ 0, 0, 0, 0, 0, 0 };
IPaddr_t NetOurDNSIP=0; /* Our DNS IP address */
uchar NetServerEther[6] ={ 0, 0, 0, 0, 0, 0 };
uchar NetBcastAddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
uchar NetEtherNullAddr[6] ={ 0, 0, 0, 0, 0, 0 };
uchar NetCDPAddr[6] ={ 0x01, 0x00, 0x0c, 0xcc, 0xcc, 0xcc };
留言