Experimental Physics and
| |||||||||||||||||
|
On Jun 2, 2005, at 2:23 AM, Kiman Ha wrote: Hi, That is not the correct file to download to the uCdimm5282. You need to download the <top>/bin/RTEMS-uC5282/test5282.boot file which should have been produced when you built the EPICS application. test8252.obj file is put to the uCdimm5282 memory using tftp. Yes, and the required conversion should have been done.
Downloading the image to the board. =================================== The bootable image is generated by the make-exe target in the bsp makefile. It generates a simple stripped binary file which is downloaded over the ethernet port into RAM then executed or programmed into flash memory. 1) Power up the uC5282 board. A dump of some memory maps is produced followed by a prompt. 2) (first time only) Set the uC5282 board Internet configuration: setenv IPADDR0 www.xxx.yyy.zzz (Your board's address) setenv NETMASK ppp.qqq.rrr.sss (Your local network address mask) setenv HOSTNAME somename (Your board's name) 3) Type 'tftp<CR>' 4) Run 'tftp' on your host machine: tftp> binary tftp> connect www.xxx.yyy.zzz (Your ucDIMM's address) tftp> put someFile.exe (or someFile.boot if you're using the EPICS build system) 5) When the file has downloaded press the <ESC> key to terminate the uCDIMM tftp command. 6) Type 'goram<CR>' to start the downloaded program, or type 'program<CR>' to burn the code onto the uCDIMM flash. EPICS Bootstrap Information =========================== The EPICS startup code uses the following environment variables. If an optional environment variable is missing the value in parentheses will be used. All Internet addresses must be given in 'dotted-decimal' format. HWADDR0 - Ethernet hardware address. IPADDR0 - Internet address (192.168.0.2). NETMASK - Local network address mask (255.255.252.0). HOSTNAME - Internet host name (iocNobody). GATEWAY - Internet address of gateway machine (NULL). SERVER - Internet address of NFS server (192.168.0.1). NAMESERVER - Internet address of DNS server (SERVER). DOMAIN - DNS domain name (precompiled value from CONFIG_SITE). NTPSERVER - Internet address of NTP server (SERVER). BOOTFILE - Path to executable (epics/iocNobody/bin/RTEMS-uC5282/myApp.boot). CMDLINE - Path to startup script (epics/iocBoot/iocNobody/st.cmd). NFSMOUNT - NFS information: www.xxx.yyy.zzz:/remote/path /localpath A : can also be used to separate the remote and local paths. If NFSMOUNT is not set, SERVER will be used as the NFS server, and the remote and local paths will be taken from the first component of CMDLINE. If CMDLINE does not begin with a / then '/tftpboot' is prepended to the remote path. This allows a remote TFTP and NFS server to be handled transaparently. The EPICS/RTEMS startup code can get the application startup scripts, '.db' and .'dbd' files from a flash in-memory filesystem image. This allows an IOC to start up even if the network is not operational. To create such an image simply tar up the required files and concatenate the tarball to the end of the application xxxxx.boot file, then transfer this image to the uCdimm flash memory. Here's the script I use to perform this operation: #!/bin/sh set -ex case "$#" in 2) name="$1" ; boot="$2" ;; *) echo "Usage: $0 iocname boot_image" >&2 ; exit 1 ;; esac make -w # # Create a standalone (FLASH-based) IOC image # rm -rf tarball mkdir tarball cp -r db dbd tarball sed -e '/epicsEnvSet[^A-Za-z0-9_]*TOP[^A-Za-z0-9_]/s/.*/epicsEnvSet(TOP,"\/")/ ' "iocBoot/${name}/envPaths" >tarball/envPaths cp "iocBoot/${name}/st.cmd" tarball/st.cmd ( cat "$boot" (cd tarball ; tar cf - *) ) >"$boot:$name.image"
| ||||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |