If you have configured VxWorks to use SLIP, you can use the Serial Line Internet Protocol to boot VxWorks. The relevant configuration macro is INCLUDE_SLIP. SLIP supports IP layer software with point-to-point configurations such as RS-232 serial connections between machines or long-distance telephone lines. If either end of a SLIP connection has other network interfaces (such as Ethernet), it can forward packets to other machines.
|
NOTE: Both target and host must agree on the MTU size. On a VxWorks system, the default MTU size is 576.
|
||||||||||||||||||
Optionally, you can use compressed TCP/IP headers over SLIP. This variant of the protocol is known as CSLIP (compressed SLIP). Only the TCP/IP headers are compressed, not the data itself; this implies that CSLIP improves the responsiveness of interactive communications (such as remote shells), where the ratio of header size to data is large, but makes little difference for large data transfers (such as downloading object code). Because compression applies only to TCP/IP headers, not to other forms of IP, CSLIP has no impact on applications that use UDP rather than TCP (for example, CSLIP has no effect on NFS).1
When booting using SLIP (or its CSLIP variant), specify the boot device as follows:
boot device: sl or sl=device
Using the form sl=device allows you to specify the SLIP tty, overriding the configuration constant SLIP_TTY.
The following is a boot example for the configuration shown in Figure 13-2:
boot device : sl=/tyCo/1 processor number : 0 host name : phobos file name : /usr/wind/target/config/ads302/vxWorks inet on ethernet (e) : 150.12.1.2 host inet (h) : 150.12.1.1 user (u) : jane target name (tn) : vxJane
When the boot device is SLIP, the SLIP interface is configured by usrSlipInit( ) in target/src/config/usrNetwork.c. This sets up the SLIP tty, and configures the point-to-point connection using the target and host IP addresses specified in the boot parameters. If a gateway address is specified, the SLIP driver adds a routing entry from the gateway address to the host address. If a gateway address is not specified, the SLIP driver assumes that the point-to-point peer address on the other end of the serial line is the gateway and enters the appropriate routing entry.
If you do not have a second serial port, then you must use the console port as the SLIP port. To do this:
To boot VxWorks using PPP, first configure PPP into the system (see PPP Configuration) and remake the VxWorks and boot ROM images. After a new boot ROM image has been built, burned into ROM, and installed in the target board, bootstrap the target board to the VxWorks boot ROM prompt.
When booting using PPP, specify the boot device with one of the following options:
However, the baud rate supplied as a part of the boot device overrides any default settings. The following is a boot example for the configuration shown in Figure 13-3:
boot device : ppp=/tyCo/2,38400 processor number : 0 host name : mars file name : /usr/vw/config/mv167/vxWorks inet on ethernet (e) : 90.0.0.10 host inet (h) : 90.0.0.1 user (u) : jane target name (tn) : vxJane
If you want to boot VxWorks over a PPP link but do not have a console device, the following additional modifications must be made:
#define PPP_TTY 0 /* use port number 0 for PPP */
"ppp(0,0)mars:/usr/vw/config/mv167/vxWorks h=90.0.0.1 e=90.0.0.10 u=jane"
1: If your host operating system does not include SLIP or CSLIP facilities, consider using a publicly available implementation. One popular implementation for SunOS 4.1.x, the Van Jacobson CSLIP 2.7 release, is provided in target/unsupported/cslip-2.7. This code is publicly available, and is not supported by Wind River Systems. It is included only as a convenience.