[7be6ad9] | 1 | README.booting: written by S. Kate Feng <feng1@bnl.gov>, 2004/10/11 |
---|
| 2 | |
---|
| 3 | The bootloader is adapted from Till Straumann's Generic Mini-loader, |
---|
| 4 | which he wrote originally for the SVGM powerpc board. Part of the |
---|
| 5 | BSP was derived from the "RTEMS-PowerPC BSPs" and the NetBSD projects. |
---|
| 6 | As of today, the BSP is built and tested on the RTEMS-4.6.0 |
---|
| 7 | release with small patches I added (see README.rtems-4.6.0-patch |
---|
| 8 | and rtems-4.6.0-patch/ directory). |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | Booting requirement : |
---|
| 12 | ------------------------- |
---|
| 13 | |
---|
| 14 | 1) One needs to setup BOOTP/DHCP and TFTP servers and /etc/bootptab |
---|
| 15 | properly to boot the system. (Note : EPICS needs a NTP server). |
---|
| 16 | |
---|
| 17 | 2) Please copy the prebuilt RTEMS binary (e.g. misc/rtems5500-cexp.bin) |
---|
| 18 | and perhaps others (e.g. misc/st.sys) to the /tftpboot/epics/hostname/bin/ |
---|
| 19 | directory or the TFTPBOOT one you specified in the 'tftpGet' |
---|
| 20 | command of the boot script (as shown in the following example). |
---|
| 21 | |
---|
| 22 | 3) Example of the boot script setup carried out on the MOTLoad |
---|
| 23 | command line : |
---|
| 24 | |
---|
| 25 | MVME5500> gevEdit mot-script-boot |
---|
| 26 | (Blank line terminates input.) |
---|
| 27 | tftpGet -a4000000 -cxx.xx.xx.xx -sxx.xx.xx.xx -m255.255.254.0 -d/dev/enet0 -fepics/hostname/bin/rtems5500-cexp.bin |
---|
| 28 | netShut |
---|
| 29 | go -a4000000 |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | Update Global Environment Area of NVRAM (Y/N) ? Y |
---|
| 33 | MVME5500> |
---|
| 34 | |
---|
| 35 | Note : (cxx.xx.xx.xx is the client IP address and |
---|
| 36 | sxx.xx.xx.xx is the server IP address) |
---|
| 37 | |
---|
| 38 | 4) Other reference web sites: |
---|
| 39 | http://lansce.lanl.gov/EPICS/presentations/KateFeng%20RTEMS-mvme55001.ppt |
---|
| 40 | |
---|
| 41 | 5) When generating code (especially C++) for this system, one should |
---|
| 42 | use at least gcc-3.2 (preferrably a copy downloaded from the RTEMS |
---|
| 43 | site [snapshot area] ) |
---|
| 44 | |
---|
| 45 | 6) To reboot the RTEMS-MVME5500 (board reset), one can invoke the |
---|
| 46 | rtemsReboot() command at Cexp> prompt. |
---|
| 47 | |
---|
| 48 | 7) Please reference http://www.slac.stanford.edu/~strauman/rtems |
---|
| 49 | for the source code and installation guidance of cexp, GeSys and |
---|
| 50 | other useful utilities such as telnet, nfs, and so on. |
---|
| 51 | |
---|
| 52 | 8) To get started with RTEMS/EPICS and to build development |
---|
| 53 | tools and BSP, I would recommend one to reference |
---|
| 54 | http://www.aps.anl.gov/epics/base/RTEMS/tutorial/ |
---|
| 55 | in additional to the RTEMS document. |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | TODO lists: |
---|
| 59 | 1) 1 GHZ ethernet ( work in progress, to be released soon) |
---|
| 60 | 2) To measure the interrupt latency and context switching. |
---|
| 61 | 3) To implement the watchdog timer. |
---|
| 62 | |
---|