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

VxWorks: shared memory network for PowerPC (MVME2700)

92 views
Skip to first unread message

Minbo Shim

unread,
Dec 16, 1998, 3:00:00 AM12/16/98
to
Vxworks gurus:

I am trying to make a SM network with the proxy arp for the powerpc
boards (mvme2700). As described in the Programmer's manual, I included the
following in the "configAll.h":

#define INCLUDE_PING
#define INCLUDE_SM_NET
#define INCLUDE_PROXY_SERVER
#define INCLUDE_SM_SEQ_ADDR
#define INCLUDE_PROXY_DEFAULT_ADDR

And for the master:

#define PROXY_ARP_MASTER
#define SM_OFF_BOARD FALSE

and for the slave:

#define PROXY_ARP_SLAVE
#define SM_OFF_BOARD TRUE

By doing so, I want slaves to use the memory on the master starting at
0x01000000 (16MB) with the size of 1MB. Here is the configuation (config.h)

#define SM_ANCHOR_OFFSET 0x4100 /* default for PowerPC */
#define SM_ANCHOR_ADRS ((sysProcNumGet() == 0) ? \
((char*) (LOCAL_MEM_LOCAL_ADRS + SM_ANCHOR_OFFSET)) : \
((char*) (VME_A32_MSTR_LOCAL + SM_ANCHOR_OFFSET)))
#define SM_MEM_ADRS 0x01000000
#define SM_MEM_SIZE 0x00100000
#define SM_OBJ_MEM_ADRS (SM_MEM_ADRS+SM_MEM_SIZE)
#define SM_OBJ_MEM_SIZE 0x00100000

After rebuilding vxWorks images, the master seems happy by attaching net
work interface sm0 to the anchor point (0x4100). I verify that the heartbeat
on the master is alive by looking at the 5th 4-byte word. In order to get the
VMEbus (A32) address, I used "sysLocalToBusAdrs(0x0d,0x4100,&adrs)" which
returns 0x8004100. I used this address as the share memory anchor address
for all slaves (sm=0x8004100). However slaves are complaining that the address
is not corretly mapped somehow. Clients keep saying the following without
granting the vxworks prompt:

Backplane anchor at 0x8004100... Attaching network interface sm0... done.
smIsAlive: readyValue = 0xffffffff, heartbeat = 0x0

Does anybody know what I did wrong in setting up the shared memory network with
the proxy arp?

Your help would be greatly appreciated.

Regards,

-----------------
MINBO SHIM; ms...@rst.com
Voice: (410) 876-9200 (#189), Fax: (410) 876-9470
ROBOTIC SYSTEMS TECHNOLOGY
1234 Tech Court, Westminster, MD 21157

Carl C. Chesbrough

unread,
Dec 16, 1998, 3:00:00 AM12/16/98
to
VxWorks...

From the slave CPU you should be able to display memory and see
the readyValue of 0x12345678 or 0x87654321. It should be the
same as displaying memory on the master at 0x4100. Typically
I will boot the slave CPU from ethernet and then take the value
returned by sysLocalToBusAdrs() of 0x8004100 and use that in
the sysBusToLocalAdrs(0xd,0x8004100,&slaveAdrs). This needs
to be run on the slave as the VME address of 0x8004100 may not
be accessed using 0x8004100 on the slave.

HTH,
-Carl.


> After rebuilding vxWorks images, the master seems happy by attaching net
> work interface sm0 to the anchor point (0x4100). I verify that the heartbeat
> on the master is alive by looking at the 5th 4-byte word. In order to get the
> VMEbus (A32) address, I used "sysLocalToBusAdrs(0x0d,0x4100,&adrs)" which
> returns 0x8004100. I used this address as the share memory anchor address
> for all slaves (sm=0x8004100). However slaves are complaining that the address
> is not corretly mapped somehow. Clients keep saying the following without
> granting the vxworks prompt:
>
> Backplane anchor at 0x8004100... Attaching network interface sm0... done.
> smIsAlive: readyValue = 0xffffffff, heartbeat = 0x0
>
> Does anybody know what I did wrong in setting up the shared memory network with
> the proxy arp?
>
> Your help would be greatly appreciated.

********************************************************************
* *
* Carl C. Chesbrough Telephone: (510) 252-0870 x 126 *
* Themis Computer Facsimile: (510) 490-5529 *
* 3185 Laurelview Court E-Mail : ca...@themis.com *
* Fremont, California 94538 *
* *
********************************************************************

Michael Lawnick

unread,
Dec 17, 1998, 3:00:00 AM12/17/98
to
Check wether slave-bootrom and master-kernel have set the same
#define EXTENDED_VME
There has been a version shift from Rev3 (#undef) to Rev4(#define)

> Vxworks gurus:
>
> I am trying to make a SM network with the proxy arp for the powerpc
> boards (mvme2700). As described in the Programmer's manual, I included the
> following in the "configAll.h":
>

MfG
Lawnick, SOFTEC GmbH

==============================================
SOFTEC GmbH Tel +49-731-96600-0
Promenade 17 Fax +49-731-96600-23
D-89073 Ulm Michael Lawnick
Germany law...@softec.de
==============================================

0 new messages