...
Finally, the "-f" parameter indicates the name of the file (under /tftpboot on laci@lcls-dev1) containing the sequence of values to be loaded into memory.
It is set to /rtems/4.10.2/powerpc-rtems/beatnik/img/netboot.flashimg.bin for both production and development. Note that the mount for tftp is mapped to from the environment variable $TFTPBOOT on the development and production control systems. Therefore if you "cd $TFTPBOOT" the path following "-f" should exist.
Panel |
---|
On development for rtems 4.10.2: Host w/tftp server is lcls-dev1 MVME5500>tftpGet -c134.79.219.49 -s134.79.219.136 -g134.79.219.1 \ -m255.255.252.0 -f/rtems/4.10.2/powerpc-rtems/beatnik/img/netboot.flashimg.bin |
...
Panel |
---|
For MVME6100: Example: For a client that has an IP address 172.27.2.179: MVME6100> tftpGet -c172.27.2.179 -s172.27.8.28 -g172.27.0.1 -m255.255.252.0 -f/rtems/4.10.2/powerpc-rtems/beatnik/img/netboot.flashimg.bin Network Loading from: /dev/enet0 Loading File: /rtems/4.10.2/powerpc-rtems/beatnik/img/netboot.flashimg.bin Load Address: 006B7000 Download Buffer Size = 00200000 Client IP Address = 172.27.2.179 Server IP Address = 172.27.8.41 Gateway IP Address = 172.27.0.1 Subnet IP Address Mask = 255.255.252.0 Network File Load in Progress... Bytes Received =&780860, Bytes Loaded =&780860 Bytes/Second =&780860, Elapsed Time =1 Second(s) MVME6100> |
...
- At this point, you've confirmed the flash memory contains the right data. The netBoot software will recognize several commands from your keyboard, and it's listed them after you've interrupted its boot process.
- Normally when it runs, netBoot attempts to download the software that you ultimately want to use. To do so, it keeps several parameters in non-volatile memory (NVRAM.)
- Now you're going to set those various parameters and record them in NVRAM. Press "c" to change the parameters that netBoot will use to download software. Keep in mind that your own processors IP address must be entered under "My IP", just as it's name.
- Typically, only the fields marked "My IP", "My name" and "Command Line Parameters" will have values unique to your processor. All other fields should be entered as you see here. If you have questions, please ask a Controls Software Engineer from theEPICS Team.
- The field "Command Line Parameters"is set to:
- (booting from NFS): INIT=/boot/epics/iocCommon/user , followed by a path to your boot-up script. If you're using the AFS filesystem, which is common at SLAC, then your path will typically be something like /u/ <two-chars> / <login user-id> /path-to-example . If you are booting out of the shared lcls group space, the boot-up script is /boot/g/lcls/epics/iocCommon/"<your-node-name>"/startup.cmd . See the example below. Please note that the same DNS and the NTP servers for development and test-facility are used.
Facility | TFTP Server | Boot Server | Gateway | DNS | NTP |
---|
Development | LCLS-DEV1 134.79.219.136 | AFSNFS 172.23.66.102 | 134.79.219.1
| 134.79.111.111 134.79.111.112 | 134.79.110.75 134.79.110.10 |
Test-Facility | LCLS-DEV1 134.79.219.136 | AFSNFS 172.23.66.102 | 172.27.96.1 | 134.79.111.111 134.79.111.112 | 134.79.110.75 134.79.110.10 |
LCLS | LCLS-SRV04 172.27.8.28 | MCCFS2 172.27.2788.11 | 172.27.0.1 | 134.79.151.12 134.79.151.13 | 134.79.110151.7512 134.79.110151.10 13 |
FACET |
| MCCFS2 172.27827.8.11 | 172.27.8.1 | 134.79.151.12 134.79.151.13 | 134.79.110151.7512 134.79.110151.10 13 |
Panel |
---|
Changing NVRAM configuration Use '<Ctrl>-k' to go up to previous field Use '<Ctrl>-r' to restore this field Use '<Ctrl>-g' to quit+write NVRAM Use '<Ctrl>-c' to quit+cancel (all values are restored) Use '<Ctrl>-x' to reboot Boot file (e.g., '/TFTP/1.2.3.4/path', '~rshuser/path' or 'nfshost:/dir:path'): > afsnfs:/afs/slac:/package/rtems/4.10.2/target/rtems_p3/ssrlApps_p1p2/powerpc-rtems/beatnik/bin/rtems.ralf Command line parameters:
> INIT=/boot/g/lcls/epics/iocCommon/ioc-b34-cd09/startup.cmd Server IP: > 172.23.66.102 Gateway IP: > 134.79.219.1 My IP: > 134.79.219.49 My netmask: > 255.255.252.0 My name: > ioc-b34-cd09 My domain: > slac.stanford.edu Loghost IP: > DNS server 1: > 134.79.111.111 DNS server 2: > 134.79.111.112 DNS server 3: > NTP server 1: > 134.79.110.75 NTP server 2: > 134.79.110.10 NTP server 3: > 134.79.110.9 Use BOOTP: Yes, No or Partial (-> file and
command line from NVRAM) Y-N-P > N Autoboot Delay: 0_.30secs (0==forever) > 5 CPU Temp. Calibration - (LEAVE IF UNSURE) > NVRAM configuration updated |
...
Panel |
---|
Cexp> BSP_flashWriteEnable(0) Cexp> BSP_flashWriteFile(0,0,"/boot/package/rtems/4.10.2/target/rtems_p3/ssrlApps_p1p2/powerpc-rtems/beatnik/img/netboot.flashimg.bin") |
...