Now i am working in the BSP development for PPC7410 board. Till now i
have
brought up the board and regarding IO drivers I have enabled only the
serial.
Is it possible to load a application code from the vxWorks prompt ,
In my board till now only the serial is up, and the Ethernet is not
up.
The how to load using the serial also can i get help for loading using
the Ethernet.
thanks in advance
Arvnd
You have to configure the serial port by selecting the proper port
name/number,
baudrate, parity, bits per character, stopbits, flowcontrol w.r.t
hardware.
1)Initiate the RAM.
2)Initiate the serial port.
3)Read the data in 8 bit format from the serial port to RAM.
4)Go(Jump) to the image in the RAM . (EntryPoint)
Karthik Balaguru
Karthik Balaguru
how to step to step boot vxworks via serial?
thanks!
Yangbin
prave...@wipro.com (prave...@wipro.com)
Hi Yangbin,
Following are the steps to be followed:
1> In config.h Edit the Default bootline as follows;
#define DEFAULT_BOOT_LINE \
"tsfs(0,0) host:vxWorks"
/* For tsfs Boot */
#undef CONSOLE_TTY
#define CONSOLE_TTY NONE
#undef WDB_TTY_CHANNEL
#define WDB_TTY_CHANNEL 0/1 (depends on the UART's (UART1 = 0
/UART2 = 1)in the target Board)
#undef WDB_COMM_TYPE
#define WDB_COMM_TYPE WDB_COMM_SERIAL
#define INCLUDE_TSFS_BOOT
#define INCLUDE_TSFS_BOOT_VIO_CONSOLE
#undef WDB_TTY_BAUD
#define WDB_TTY_BAUD 57600
/* End of tsfs boot */
********************************************************************
2> Build the bootrom image.( From the cmd prompt : make
bootrom_uncmp).
3> Load the boot image on to the floppy OR burn bootimage into the
Falsh.
4> While creating vxWorks from the project add the following
components.
* WDB AGENT components -> wdb agent services -> wdb
Target server file system
* WDB connection -> wdb serial connection
Change params: WDB_TTY_BAUD 57600
WDB_TTY_CHANNEL 0/1 (depends on the
UART's (UART1 = 0 /UART2 = 1)in the target Board)
********************************************************************
5> Make the vxWorks image.
6> Bring up the target.
Note:
Switch on the board..After few seconds you can see virtual console
in
the
developemnt machine with default boot parameters. Now launch the first
target
sever (follow step 7)and download the vxWorks image
********************************************************************
7> Launching target Server 1. (This target Server is used to
download the vxWorks Image)
Select
Back end -> wdbSerial
Serial Port -> COM1/COM2
Speed -> 57600
Core File and Symbols ->
Enable "File Path from Target option"
Target Server File System ->
Enable File System (specify the Root: path of the vxWorks image
folder).
Enable Read/Write option.
Console and Redirection ->
Enable "Redirect Target io".
Enable "Create Console Window".
Launch the target Server 1 Give '@' in the vxWorks prompt,this will
allow vxWorks
image to download to the target
& wait until the virtual console goes off.
********************************************************************
8> Launching target Server 2. (This one is used for Wdb
Communication)
Select
Back end -> wdbSerial
Serial Port -> COM1/COM2
Speed -> 57600 (Depending on the Baud Rate specified in
VxWorks image)
Core File and Symbols ->
Select the File option.
Specify the path of the vxWorks image.
Console and Redirection ->
Enable "Redirect Target io".
Enable "Create Console Window".
Finally launch the target Server 2.
Regards,
S.Subbarayan
Hi,
Thanks for your reply.
I understood your way of approach.
even im looking for this kind of approach, But can you pls
tell me, for this action to take place , wheather we have to
give any command from the target shell side.
for example i want to load the image at location, 0x100000
In linux Uboot they will use a command
uBOOT
==>loadb 0x100000
after giving this command the board will infinitely wait for
data to arrive from the serial port.. with the specified serial port
configuration(baud 57600, stop bit 1, parity none,...)
we have to load the binary file from either hyper terminal or vision
click
once the end of the file is reached, the file loading is ended.
and then the uBOOT prompt returns.
==>
from their we will give go command
==> go 0x100000
then the program will run from that location.
Similarly in vxWorks, is their any command to wait infinitely in the
target shell
and option to load the image at the desired location.
thanks a lot for your interest
Arvnd
Hi ,
You did a great help. and thanks for help.
Is their any way to load the image with out the WDB agent and the
tornado support(GUI).
Beause we are loading the vxWorks image from the linux uBOOT prompt,
and we do got the
vxWorks prompt with out any support of the WDB agent and the GUI
support.
so im looking for the command or the way to load the application
image from the vxWorks final prompt.
But the information that you provided is much useful for me in
another
way.
Thanks again
Arvnd.
Use UBoot and try loading-followed-by-the-execution of a small
application in the
RAM whose purpose will be to receive the Image(Via Serial Port or from
External
Flash Memory) and put it in a Location in Flash Memory(Placing the
correct
information in the correct blocks of Flash) or in RAM and set the
control(Jump) to
the entry point.
Karthik Balaguru