You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

^h1. How-to setup the ColdFire uC5282 to run EPICS and RTEMS

To FLASH the uC5282:

If the CPU has already been flashed, skip to step 5.

STEP 1: Set the uC5282 IP address (in this example, it is 172.27.9.232):
B$ setenv IPADDR0 172.27.9.232

STEP 2: Start the the tftp server running on the ColdFire:

B$ tftp
uCTFTP Console 1.0 is running ...
IPADDRESS is 172.27.9.232
Downloading...

STEP 3: Next generate a cramfs image on your host (need the mkcramfs utility on the host):

Create a new directory, copy the netboot binary to it, then generate the cramfs image:

mkdir cramfs_top
cp /usr/local/lcls/rtems/rtems-4.9.1/target/ssrlApps/m68k-rtems/uC5282/img/netboot.flashimg.bin cramfs_top/.
mkcramfs cramfs_top cramfs.img

STEP 4: Next run the tftp client on your host and copy the image to the ColdFire:

$ tftp 172.27.9.232
tftp> bin
tftp> verbose
tftp> put cramfs.img

-- Now you should see the following on the coldfire's console:
uCTFTP Console 1.0 is running ...
IPADDRESS is 172.27.9.232
........................
done

Press the ESC key once you see that it is done.
Next you need to actually program and verify it:
B$ program
erase... done.
write... done.
B$ verify
verify...
done.
B$

Next select the boot file:
B$ setenv KERNEL 0:netboot.flashimg.bin

STEP 5: Once the uC5282 is flashed, you will need to set the environment variables.

--To show your current environment variables, type:

B$ printenv

--To change an environment variable, type:

B$ setenv VARIABLE_NAME VARIABLE_VALUE

for example:

B$ setenv NETMASK 255.255.252.0

--Set the following environment variables for LCLS production (some of these will already be set; use printenv to see which need to be set):

This example is a 4MB uC5282 named eioc-in20-bp221 that is not using DHCP

B$ printenv
FACTORY=Arcturus Networks Inc.
REVISION=uC5282 Rev 1.0 4MB External Flash
SERIAL=X4436BE72-018A9 (this value may be different)
CONSOLE=ttyS0
KERNEL_ARGS=root=/dev/mtdblock0 (this probably doesn't matter)
HWADDR0=00:06:3B:00:68:A9 (this value may be different)
FW_VERSION=180008 (this value may be different)
_0=10000000:400000:RW (this value may be different)
KERNEL=0:netboot.flashimg.bin
RAMIMAGE=yes
CACHE=on
NETMASK=255.255.252.0
DO_BOOTP=N
AUTOBOOT=5
BP_SRVR=172.27.8.11
DNS_SERVER=134.79.151.11
NTP_SERVER=134.79.151.11
GATEWAY=172.27.8.1
IPADDR0=172.27.9.232
HOSTNAME=eioc-in20-bp221
BP_PARM=INIT=/boot/lcls/epics/iocCommon/eioc-in20-bp221/startup.cmd
BP_FILE=afsnfs2:/afs/slac:/package/rtems/4.9.1/target/ssrlApps/m68k-rtems/uC5282/bin/rtems.ralf
DNS_DOMAIN=slac.stanford.edu

A 16 MB uC5282 is the same except that RAMIMAGE=no.

References

^

  • No labels