This file contains the procedure for loading kernel & EPICS application into Motorola MVME-5500-0161 - MPC 7457 CPU. STEPS for loading kernel VxWorks-6.7(bootrom.bin) into CPU: ----------------------------------------------------------- STEP 1: Change jumper of J8 to FLASH-1, if it is not. STEP 2: Start Tera Term terinal or eqivalent in PC and connect to the serial port (9600, 8, N, 1), where the CPU is connected using serial cable. STEP 3: Place the CPU card into the bin and power ON. STEP 4: The following messages will be available in the Tera Term terminal. ------------------------------------------------------ Copyright Motorola Inc. 1999-2007, All Rights Reserved MOTLoad RTOS Version 2.0, PAL Version 2.3 RM01 Tue Sep 4 16:03:47 MST 2007 MPU-Int Clock Speed =1000MHz MPU-Ext Clock Speed =133MHz MPU-Number/Type = 0/MPC7457 MPU-Int Cache(L2) = 512K, Enabled, L2CR =0xC0000000 MPU-Ext Cache(L3) = 2MB, Enabled, 200MHz, L3CR =0xDF826000 Reset/Boot Vector =Flash1 Local Memory Found =20000000 (&536870912) User Download Buffer =005C4000:007C3FFF MVME5500> ----------------------------------------------------- STEP 4: Issue the following commands i) tftpget -d/dev/enet1 -f/tftpboot/vxWorks-test/vw67/bootrom.bin [ENTER] where, tftpGet: command to read the binary file to memory -d: port of reading, here it is ethernet-1 of the CPU -f: name & local of the file to read, here it is "/tftpboot/vxWorks-test/vw67/bootrom.bin" in abco4.kek.jp Note: Here VxWorks-6.7 kernel is selected. Following message will appear in terminal ----------------------------------------- Network Loading from: /dev/enet1 Loading File: /tftpboot/vxWorks-test/vw67/bootrom.bin Load Address: 005C4000 Download Buffer Size = 00200000 Client IP Address = 172.19.51.13 Server IP Address = 172.19.42.1 Gateway IP Address = 172.19.51.253 Subnet IP Address Mask = 255.255.224.0 Network File Load in Progress... Bytes Received =&366560, Bytes Loaded =&366560 Bytes/Second =&366560, Elapsed Time =1 Second(s) ------------------------------------------ ii) flashProgram -d/dev/flash0 -o01f00100 -nfff00 [ENTER] To program the Flash-0 of the CPU with bootrom.bin Following message will apear in terminal ---------------------------------------- Source Starting/Ending Addresses =005C4000/006C3EFF Destination Starting/Ending Addresses =F3F00100/F3FFFFFF Number of Effective Bytes =000FFF00 (&1048320) Program Flash Memory (Y/N)? ---------------------------------------- iii) Y [ENTER] For programing to take place iv) mdb -af3f00000 [ENTER] To read the flash memory area for checking. STEP 5: Take out the CPU card and change the jumper J8 to FLASH-0, then reboot. STEP 6: During reboot, the following, message will appear in PC terminal -------------------------------------------------------- VxWorks System Boot Copyright 1984-2008 Wind River Systems, Inc. CPU: Motorola MVME5500-0161 - MPC 7457 Version: VxWorks 6.7 BSP version: 2.0/6 Creation date: Sep 4 2009, 13:03:27 Press any key to stop auto-boot... -------------------------------------------------------- STEP 7: Press any key to stop auto-boot and the following will appear in PC terminal --------------------------------------------------------- [VxWorks Boot]: --------------------------------------------------------- STEP 8: Enter the following keys according to requirement c: To change auto-boot parameter p: To view auto-boot parameter On selection, the following will appear in PC terminal ------------------------------------------------------ boot device : gei unit number : 0 processor number : 0 host name : abco4 file name : /cont/VxWorks/vw67/workspace/vw67test/default/vxWorks inet on ethernet (e) : 172.19.51.13:ffffe000 host inet (h) : 172.19.42.1 user (u) : epics flags (f) : 0x0 target name (tn) : IOCTEST startup script (s) : [VxWorks Boot]: ----------------------------------------------------- @: To boot to VxWorks kernel STEP 9: On pess 'c', each of the boot parameter will appear one by one on each [ENTER]. To change the respective boot parameter, the new value is to be entered from PC on appearance of that boot parameter. For example, to change host name (i.e. the source from where CPU will read the VxWorks kernel and the startup script), first it is required to read the existing host name and then the new host name should be entered. The respective message will look like the following. -------------------------------------------------------- [VxWorks Boot]: c [ENTER] '.' = clear field; '-' = go to previous field; ^D = quit boot device : gei0 processor number : 0 host name : 172.19.46.157 acbo4 [ENTER] (OLD HOST) (NEW HOST) -------------------------------------------------------- In the current environment, 'host name' and 'file name' should be 'abco4' and location of the VxWorks kernel. In present case the value of 'file name' is '/cont/VxWorks/vw67/workspace/vw67test/default/vxWorks'. The view of the message in PC terminal after modification is as follows. -------------------------------------------------------- [VxWorks Boot]: p [ENTER] boot device : gei unit number : 0 processor number : 0 host name : abco4 file name : /cont/VxWorks/vw67/workspace/vw67test/default/vxWorks inet on ethernet (e) : 172.19.51.13:ffffe000 host inet (h) : 172.19.42.1 user (u) : epics flags (f) : 0x0 target name (tn) : IOCTEST startup script (s) : ------------------------------------------------------- Thus the system is ready to run your application. STEP 10: Now enter '@' in the command prompt of PC terminal, the system will boot with new parameters and the following message will appear in PC terminal. ------------------------------------------------------- [VxWorks Boot]: @ boot device : gei unit number : 0 processor number : 0 host name : abco4 file name : /cont/VxWorks/vw67/workspace/vw67test/default/vxWorks inet on ethernet (e) : 172.19.51.13:ffffe000 host inet (h) : 172.19.42.1 user (u) : epics flags (f) : 0x0 target name (tn) : IOCTEST startup script (s) : "" Loading... 1775008 Starting at 0x100000... muxDevStart failed for entry 1! 0x1ffffd10 (tRootTask): Start routine for wancom0 returned -1 Loading symbol table from abco4:/cont/VxWorks/vw67/workspace/vw67test/default/vxWorks.sym ...done ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] ]]]]]]]]]]] ]]]] ]]]]]]]]]] ]] ]]]] (R) ] ]]]]]]]]] ]]]]]] ]]]]]]]] ]] ]]]] ]] ]]]]]]] ]]]]]]]] ]]]]]] ] ]] ]]]] ]]] ]]]]] ] ]]] ] ]]]] ]]] ]]]]]]]]] ]]]] ]] ]]]] ]] ]]]]] ]]]] ]]] ]] ] ]]] ]] ]]]]] ]]]]]] ]] ]]]]]]] ]]]] ]] ]]]] ]]]]] ] ]]]] ]]]]] ]]]]]]]] ]]]] ]] ]]]] ]]]]]]] ]]]] ]]]]]] ]]]]] ]]]]]] ] ]]]]] ]]]] ]] ]]]] ]]]]]]]] ]]]] ]]]]]]] ]]]]] ] ]]]]]] ] ]]] ]]]] ]] ]]]] ]]]] ]]]] ]]]] ]]]]]]]] ]]]]] ]]] ]]]]]]] ] ]]]]]]] ]]]] ]]]] ]]]] ]]]]] ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] ]]]]]]]]]]]]]]]]]]]]]]]]]]]]] Development System ]]]]]]]]]]]]]]]]]]]]]]]]]]]] ]]]]]]]]]]]]]]]]]]]]]]]]]]] VxWorks 6.7 ]]]]]]]]]]]]]]]]]]]]]]]]]] KERNEL: WIND version 2.12 ]]]]]]]]]]]]]]]]]]]]]]]]] Copyright Wind River Systems, Inc., 1984-2008 CPU: Motorola MVME5500-0161 - MPC 7457. Processor #0. Memory Size: 0x20000000. BSP version 2.0/6. Created: Oct 2 2009, 17:35:56 ED&R Policy Mode: Deployed Error: unable to open startup script '""'. -> ----------------------------------------------------------- STEP 11: Since the location of 'startup script' is not defined in the boot parameter, it gives the error as 'Error: unable to open startup script'. This parameter is required, if the system is required to start any application on boot. Otherwise this may be defined using following commands. ----------------------------------------------------------- -> cd "/users/r_ani/app2012/bsApp/iocBoot/iocavme9440" [ENTER] -> < st.cmd [ENTER] --------------******************************-----------------