Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/common/dev_net.c
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | #endif | ||||
} | } | ||||
/* | /* | ||||
* Set the variables required by the kernel's nfs_diskless | * Set the variables required by the kernel's nfs_diskless | ||||
* mechanism. This is the minimum set of variables required to | * mechanism. This is the minimum set of variables required to | ||||
* mount a root filesystem without needing to obtain additional | * mount a root filesystem without needing to obtain additional | ||||
* info from bootp or other sources. | * info from bootp or other sources. | ||||
*/ | */ | ||||
d = socktodesc(netdev_sock); | d = socktodesc(netdev_sock); | ||||
sprintf(temp, "%6D", d->myea, ":"); | setenv("boot.netif.hwaddr", ether_sprintf(d->myea), 1); | ||||
imp: This looks independent, but likely good.
| |||||
Sgalabov_gmail.comAuthorUnsubmitted Done Inline ActionsYes, this is not directly related to the preparation for MIPS ubldr, but it was producing a warning during build and I decided to clean it up. Interestingly, due to this it appears that the ARM ubldr had its error on warnings disabled in the Makefiles. I thought it was a better idea to fix the warning instead of doing the same for MIPS :-) Sgalabov_gmail.com: Yes, this is not directly related to the preparation for MIPS ubldr, but it was producing a… | |||||
setenv("boot.netif.hwaddr", temp, 1); | |||||
setenv("boot.netif.ip", inet_ntoa(myip), 1); | setenv("boot.netif.ip", inet_ntoa(myip), 1); | ||||
setenv("boot.netif.netmask", intoa(netmask), 1); | setenv("boot.netif.netmask", intoa(netmask), 1); | ||||
setenv("boot.netif.gateway", inet_ntoa(gateip), 1); | setenv("boot.netif.gateway", inet_ntoa(gateip), 1); | ||||
setenv("boot.nfsroot.server", inet_ntoa(rootip), 1); | setenv("boot.nfsroot.server", inet_ntoa(rootip), 1); | ||||
setenv("boot.nfsroot.path", rootpath, 1); | setenv("boot.nfsroot.path", rootpath, 1); | ||||
} | } | ||||
netdev_opens++; | netdev_opens++; | ||||
f->f_devdata = &netdev_sock; | f->f_devdata = &netdev_sock; | ||||
▲ Show 20 Lines • Show All 197 Lines • Show Last 20 Lines |
This looks independent, but likely good.