Tags

How To Setup Coldfire

1. Place the Coldfire board into DIMM slot on the I/O Board.
2. Plug the XBUS/MOXA cable, Ethernet, and Power all into the I/O Board.
3. Plug the I/O Board into the Digital Board (with DSP on it).
4. Plug in power.
.

From a cesr106 terminal window:

5. Connect to the MOXA server, connected to the BPM, by typing the following command:
telnet 192.168.32.220 4001
(the hostname and port of the MOXA contected to the I/O Board)
6. Get to the RTEMS shell, with the "B$" prompt:
If coldfire is already setup, follow instructions here: GettingToRTEMSshell
If coldfire is not setup yet, then press <ENTER> a couple of times, to see the "B$" prompt.
7. type "printenv" to see what environment variables have already been set
see additional information here: ColdFirePrintEnv.xlsx
8.

Send the follow commands:


setenv BOARD_TYPE=6048_113
setenv KERNEL=0:linux.bin
setenv KERNEL_ARGS=root=/dev/rom0
setenv NETMASK=255.255.255.0
setenv GATEWAY=192.168.32.1
setenv NAMESERVER=192.168.1.17
setenv SERVER=192.168.1.80
setenv NTPSERVER=192.168.32.20
setenv AUTOBOOT=4

9.

Choose an unassigned slot from the file cta_bpm_testing_081014.xls, found here:
Q:\hardware\BPM\ProductionData\cta_bpm_testing\docs
(where Q is \\samba\accuser\cesrdaq)

Then send the following commands:
setenv IPADDR0=192.168.32.<corresponding number from cta_bpm_testing_081014.xls>
setenv HOSTNAME=ctacf<corresponding number from cta_bpm_test6ing_081014.xls>
10. Copy the DIMM Serial Number and MAC Address into the file Q:\hardware\BPM\ProductionData\cta_bpm_testing\docs\cta_bpm_testing_081014.xls.
11. type "tfpt"

In a second cesr106 linux window:
12. cd to the following directory: /nfs/cesr/online/acc_control/embedded/cbi_net/cbi_net-0.99.1/server/rtems/
13. Run the command: /home/mgs9/vmgs9/coldfire_ftp, or else save the file coldfire_ftp somewhere and run it..
14. Input the final part of the IP Address when requested.

15. Once the file is ftp'ed to the Coldfire,
in the MOXA window, hit the ESC key, to get back to the "B$" prompt.
16. type "program"
17. type "go"
18. Verify the coldfire boots ok.
Should look something like this
*****************************************************************************************************
r
Main: Reading RSR: 20
Main: Resetting uCdimm...

uCbootloader 1.8.8r4
(c) Copyright 2001-2007 Arcturus Networks Inc.
All Rights Reserved.

CACHE on
Autoboot in 4 seconds. <esc> to abort...
Booting
Copy...done
go! 0x40000
BOARD_TYPE environment variable missing -- using 6048_113.
Init: Module ctacf058 starting up...
Setup: Configuring MCF GPIO port J.
***********************************************************
* This is module ctacf058: *
* *
* [[ACC.Bunch.RTEMS][RTEMS]] kernel version 4.9.3 *
* CBI_NET server version 0.99.1 *
* Board type 6048_113 *
* DSP module type BPM_4ns, version 5.8 *
* *
***********************************************************

Init: Network initializing...
fs1: Ethernet address: 00:06:3b:00:b6:87
Init: Time NTP synchronized: 05/05/2014 18:33:22
Init: Module ctacf058 ready.

******************************************************************************************************
19. Try to ping it: typing the command: ping <hostname>
20.

Restart it by typing "r" in the MOXA window, or else by typing:
~/mgs9/INPUT_xbusResetColdFire "CBPM ADR TST" "CBPM DAT TST" 8

in another window (file is here: INPUT_xbusResetColdFire )

and verify it boots ok.

21. Add a label to the coldfire board, specifying the host name.
22. You're done.
.

GettingToRTEMSshell

To get to a shell, from a fully programmed Coldfire, reset the cold fire.

You can do this either by typing "r" in the MOXA window, or by typing:
~/mgs9/INPUT_xbusResetColdFire "CBPM ADR TST" "CBPM DAT TST" 8
in another window (file is here: INPUT_xbusResetColdFire )
or by power cycling the BPM.


Then, while it is restarting, when you see this:
"Autoboot in 4 seconds. <esc> to abort..."
press ESC.
Then if you press <ENTER> you can get to the "B$" prompt.

HowToUseMOXAToTalkToColdFire


-- MatthewStedinger - 18 Jul 2014
Topic revision: r6 - 30 Jan 2015, mgs9
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CLASSE Wiki? Send feedback