Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to load and run a application code in to a BSP

80 views
Skip to first unread message

arvind

unread,
Nov 2, 2007, 3:34:06 AM11/2/07
to arv...@gmail.com

Hi friends,

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

karthikbalaguru

unread,
Nov 3, 2007, 11:15:44 PM11/3/07
to

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

ssubbarayan

unread,
Nov 5, 2007, 12:25:57 AM11/5/07
to
Hi,
I have not tried loading an application by serial.But some one posted
the procedure a couple of months(years??) bak.Just see whether this
would help.I am giving below a pasted version of whats posted few
months bak in this group.

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

arvind

unread,
Nov 6, 2007, 1:05:23 AM11/6/07
to
On Nov 4, 8:15 am, karthikbalaguru <karthikbalagur...@gmail.com>
wrote:

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

arvind

unread,
Nov 6, 2007, 1:14:33 AM11/6/07
to
On Nov 5, 10:25 am, ssubbarayan <ssu...@gmail.com> wrote:
> Hi,
> I have not tried loading an application by serial.But some one posted
> the procedure a couple of months(years??) bak.Just see whether this
> would help.I am giving below a pasted version of whats posted few
> months bak in this group.
>
> how to step to step boot vxworks via serial?
> thanks!
>
> Yangbin
> praveen....@wipro.com (praveen....@wipro.com)

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.

karthikbalaguru

unread,
Nov 6, 2007, 1:29:49 AM11/6/07
to

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

0 new messages