From vxwexplo-errs@csg.lbl.gov  Mon Apr  2 01:03:50 2001
From: "Cash " <satan@rustymail.com>
Date: Mon Apr  2 01:03:55 PDT 2001
Subject: Finding the address of the host

Hi all,
I'd like to know, how to find/get the IP address & host name of the machine
from which my Vxworks application boots up, also how to do the same on the
simulator,
Any help would be appreciated,
regds & thanks,

"There has not been any great talent without an element of madness." -Seneca

_____________________________________________
Forward your Yahoo mail to your WAP device at www.mail-x-change.com

From vxwexplo-errs@csg.lbl.gov  Mon Apr  2 03:44:01 2001
From: "David Bryan" <dave@theptrgroup.com>
Date: Mon Apr  2 03:44:04 PDT 2001
Subject: RE: Problem with RAM_HIGH_ADRS on MVME167

> -----Original Message-----
> We've run into a glitch running VxWorks on our MVME167 -
> our text segment has grown a bit large. I tried
> expanding RAM_HIGH_ADRS to get more space to load
> the image via the net, but the poor machine just locks
> up when I try and boot that kernel. I changed
> RAM_HIGH_ADRS in Makefile and config.h and rebuilt.
> No complaints from the linker/loader, but the machine
> seizes just after printing the size of the text segment.
>
> Michael Baumann

Michael,

I know it's simple, but did you remember to rebuild and reload the bootrom
image after changing RAM_HIGH_ADRS?

RAM_HIGH_ADRS marks not only the max address from your VxWorks Text and Data
sections, it also marks the address at which your bootrom image runs in RAM.
If  you do not burn a new bootrom image, the VxWorks image you are loading
will be copied right over the currently executing bootrom image which is
executing at the >OLD< RAM_HIGH_ADRS.

HTH

Dave
--
=====================================================
       T h e   P T R   G r o u p,   I n c.
=====================================================
David Bryan                     Office: (703)726-0498
Manager, Embedded Services
                                 dave@ThePTRGroup.com
www.ThePTRGroup.com     Embedded, Real-Time Solutions
=====================================================

From vxwexplo-errs@csg.lbl.gov  Mon Apr  2 06:47:16 2001
From: richard garrick <rickgarrick@yahoo.com>
Date: Mon Apr  2 06:47:19 PDT 2001
Subject: re: : Incorrect MPC8260 interrupt vector numbers

Jeff,

I too was baffled by the erroneous vector numbers as
our systems work fine using the wrong numbers. 
EST/VxWorks opted to change the ppc8260Intr.c file in
particular m8260IvecToInum() and m8260InumToIvec(). 
It is cheaper to make the changes in one file but it
is a very poor coding practice (typical when you
really look at the vxWorks code that is available).

Sorry for the late response.  I have fallen behind on
my email!

Rick Garrick

>From vxwexplo-errs@csg.lbl.gov  Fri Mar 23 12:33:50
>2001
>From: "Jeffrey A Angielski" <jeff@theptrgroup.com>
>Date: Fri Mar 23 12:33:52 PST 2001
>Subject: Incorrect MPC8260 interrupt vector numbers>
>
>Does anybody know of any vxWorks patch for the
>MPC8260 architecture that has
>the correct interrupt vectors numbers?  It appears
>that the
>\drv\intrCtl\m8260IntCtl.c and
>\h\drv\intrCtrl\m8260IntrCtl.h contain
>erroneous information and do not reflect what is in
>errata for the MPC8260
>User Manual.  For those of you using this BSP,
>interrupt nums [0-26] are
>unchanged but nums [27+] are different.
>
>I already check the WRS website and could not find
>any reference to a patch
>that would correct this mistake.
>
>------------------------------------------------------
>Jeff Angielski

=====
Rick Garrick

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text

From vxwexplo-errs@csg.lbl.gov  Mon Apr  2 10:02:41 2001
From: "viveks" <viveks@future.futsoft.com>
Date: Mon Apr  2 10:02:43 PDT 2001
Subject: RE: : Incorrect MPC8260 interrupt vector numbers

Hello,
VxWorks Fundoo's

I am working with SIMNT.
I have a problem with default route the scenario is explained below in
detail:

I am creating an interface with ether attach as follows:

  int   i4Temp ;
  unsigned  int   u4Arp ;
  char u1Name[] = "eth", u1IP[]="20.3.4.5";

  ether_attach ((struct ifnet*)IDR.ac_if, 0,"eth",
                             (FUNCPTR)NULL, (FUNCPTR)NULL,
                             (FUNCPTR)ether_output,(FUNCPTR)NULL) ;

    IDR.ac_if.if_mtu = 1200;
    IDR.ac_if.if_start = (FUNCPTR)myRoutine;

    /* mac address of interface */
      i4Temp = 0x45566733
    IDR.ac_enaddr[0] = 0x00;
    IDR.ac_enaddr[1] = 0x00;
    IDR.ac_enaddr[2] = (i4Temp & 0xff000000) >>24;
    IDR.ac_enaddr[3] = (i4Temp & 0x00ff0000) >>16;
    IDR.ac_enaddr[4] = (i4Temp & 0x0000ff00) >>8;
    IDR.ac_enaddr[5] = i4Temp & 0x000000ff;

   IDR.ac_if.if_flags  |= ((IFF_UP | IFF_RUNNING | IFF_NOTRAILERS
|IFF_MULTICAST));

    u4Arp = u4IPAddr + 0x01000000;
    u4IPMask = 0xff000000;
   /* put interface down for editing */
    ifFlagChange (u1Name,IFF_UP,FALSE) ;

    ifMaskSet (u1Name,htonl(u4IPMask)) ;
    ifAddrSet (u1Name,u1IP) ;

  /* creating the default route */
        /* as  ntsim i am deleting the existing default route */
        ifAddrGet("nt0",u1Def);
        routeDelete("0.0.0.0",u1Def);
     /* adding new default route */

        ifMetricSet(u1Name,1);
        routeAdd("0.0.0.0","20.3.4.6");

        arpAdd ("20.3.4.6", "00:33:44:55:33:44", ATF_PERM);

   /* change the interface to UP */
   ifFlagChange (u1Name, IFF_UP,1);

if add an interface it adds beautifully as follows:

-> ifShow
nt (unit number 0):
    Flags: (0xf1) UP POINT-TO-POINT RUNNING
    Type: ETHERNET_CSMACD
    Internet address: 90.0.0.1
    Destination Internet address:   0.0.0.0
    Netmask 0xff000000 Subnetmask 0xff000000
    Metric is 0
    Maximum Transfer Unit size is 1520
    0 packets received; 1 packets sent
    0 multicast packets received
    0 multicast packets sent
    0 input errors; 0 output errors
    0 collisions; 0 dropped
lo (unit number 0):
    Flags: (0x8069) UP LOOPBACK RUNNING ARP MULTICAST
    Type: SOFTWARE_LOOPBACK
    Internet address: 127.0.0.1
    Netmask 0xff000000 Subnetmask 0xff000000
    Metric is 0
    Maximum Transfer Unit size is 32768
    0 packets received; 0 packets sent
    0 multicast packets received
    0 multicast packets sent
    0 input errors; 0 output errors
    0 collisions; 0 dropped
eth (unit number 0):
    Flags: (0x8063) UP BROADCAST RUNNING ARP MULTICAST
    Type: ETHERNET_CSMACD
    Internet address: 20.3.4.5
    Broadcast address:   20.255.255.255
    Netmask 0xff000000 Subnetmask 0xff000000
    Ethernet address is 00:00:00:00:00:00
    Metric is 1
    Maximum Transfer Unit size is 1200
    0 packets received; 0 packets sent
    0 multicast packets received
    0 multicast packets sent
    0 input errors; 0 output errors
    0 collisions; 0 dropped
value = 0 = 0x0

-> routeShow

ROUTE NET TABLE
destination      gateway              flags  Refcnt  Use           Interface
----------------------------------------------------------------------------
0.0.0.0          20.3.4.6             3              0       0
eth0
20.0.0.0         20.3.4.5             101          0       0
eth0
----------------------------------------------------------------------------

ROUTE HOST TABLE
destination      gateway              flags  Refcnt  Use           Interface
----------------------------------------------------------------------------
127.0.0.1        127.0.0.1            5          0       0
lo0
----------------------------------------------------------------------------

-> arpShow

LINK LEVEL ARP TABLE
destination      gateway            flags  Refcnt  Use           Interface
--------------------------------------------------------------------------
20.3.4.6         00:00:00:48:fd:b8    c05    1       0             eth0
--------------------------------------------------------------------------
value = 75 = 0x4b = 'K'

Now i have written a client server application as follows

/* i spawn the server */
void Server()
{
    int fd;
    int temp;
    INT4 i4NumBytes;
    INT4 i4temp;
    char Buff[25]; /* pRecvBuff*/
    struct sockaddr_in addr, naddr;

    bzero((char*)&addr, sizeof(addr));

    addr.sin_family = AF_INET;
    addr.sin_port = htons(1081);
    addr.sin_addr.s_addr = INADDR_ANY;
    if ( ( fd = socket(AF_INET,SOCK_DGRAM,0)) <0)
    {
        printf("\nSocket Error\n");
    }
printf("Socket = %d \n",fd);
fflush(stdout);

    if (bind(fd, (struct sockaddr *)&addr, sizeof(addr))<0)
    {
        close(fd);
        perror("bind");
        printErrno(0x31);
        printf("error is %s \n", strerror(0x31));
        printf("Bind Error\n");
    }

    for(i4temp=0;i4temp <100;i4temp++)
    {
        temp = sizeof(naddr);
        printf("Server Receiving ...\n");

        if ((i4NumBytes = recvfrom(fd,Buff,25,MSG_DONTROUTE, (struct
sockaddr *)&addr, &temp))

== -1)
        perror("Server Received Error:");
        else
        printf("Server Received(Message :%s) (Size: %d)
\n",Buff,i4NumBytes);
    }

    close(fd);
    printf("out of server \n");
}

void ClientApp ()
{
    int fd;
    INT4 i4temp,i;
    char Buff[25];
    char buff[4];
    struct sockaddr_in addr, naddr;
    INT4 i4tmp;
    INT4 i4NumBytes;

/*    strcpy(buff,argv[1]);*/

    addr.sin_family = AF_INET;
    addr.sin_port = htons(1081);

   /* give the address such that default route is called */
    addr.sin_addr.s_addr = inet_addr(128.5.6.7);

    if ((fd = socket(AF_INET,SOCK_DGRAM,0)) <0)
    {
        printf("\nSocket Error\n");
    }

        memset(Buff,0,25);

        sprintf(Buff,"FutureSoft\"s packet OK!");

      for(i=0;i<10;i++)
      {
        if ((i4NumBytes =sendto(fd,Buff,strlen(Buff), MSG_DONTROUTE,
                           (struct sockaddr *)&addr, sizeof(addr))) == -1)
            perror("Client To server Failed :");
        else
            printf("Client To Server: Bytes(%d) Message
(%s)\n",i4NumBytes,Buff);

      }
        close(fd);
}

->sp Server

->sp ClientApp

/* i get as follows */

Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Network unreachable
even  my ether attached routine "myRoutine" is not called.

Do you know this problem please help me out.

Thanks in Advance

viveks@future.futsoft.com

From vxwexplo-errs@csg.lbl.gov  Mon Apr  2 10:04:50 2001
From: "viveks" <viveks@future.futsoft.com>
Date: Mon Apr  2 10:04:52 PDT 2001
Subject: Problem with Default Route

Hello,
VxWorks Fundoo's

I am working with SIMNT.
I have a problem with default route the scenario is explained below in
detail:

I am creating an interface with ether attach as follows:

  int   i4Temp ;
  unsigned  int   u4Arp ;
  char u1Name[] = "eth", u1IP[]="20.3.4.5";

  ether_attach ((struct ifnet*)IDR.ac_if, 0,"eth",
                             (FUNCPTR)NULL, (FUNCPTR)NULL,
                             (FUNCPTR)ether_output,(FUNCPTR)NULL) ;

    IDR.ac_if.if_mtu = 1200;
    IDR.ac_if.if_start = (FUNCPTR)myRoutine;

    /* mac address of interface */
      i4Temp = 0x45566733
    IDR.ac_enaddr[0] = 0x00;
    IDR.ac_enaddr[1] = 0x00;
    IDR.ac_enaddr[2] = (i4Temp & 0xff000000) >>24;
    IDR.ac_enaddr[3] = (i4Temp & 0x00ff0000) >>16;
    IDR.ac_enaddr[4] = (i4Temp & 0x0000ff00) >>8;
    IDR.ac_enaddr[5] = i4Temp & 0x000000ff;

   IDR.ac_if.if_flags  |= ((IFF_UP | IFF_RUNNING | IFF_NOTRAILERS
|IFF_MULTICAST));

    u4Arp = u4IPAddr + 0x01000000;
    u4IPMask = 0xff000000;
   /* put interface down for editing */
    ifFlagChange (u1Name,IFF_UP,FALSE) ;

    ifMaskSet (u1Name,htonl(u4IPMask)) ;
    ifAddrSet (u1Name,u1IP) ;

  /* creating the default route */
        /* as  ntsim i am deleting the existing default route */
        ifAddrGet("nt0",u1Def);
        routeDelete("0.0.0.0",u1Def);
     /* adding new default route */

        ifMetricSet(u1Name,1);
        routeAdd("0.0.0.0","20.3.4.6");

        arpAdd ("20.3.4.6", "00:33:44:55:33:44", ATF_PERM);

   /* change the interface to UP */
   ifFlagChange (u1Name, IFF_UP,1);

if add an interface it adds beautifully as follows:

-> ifShow
nt (unit number 0):
    Flags: (0xf1) UP POINT-TO-POINT RUNNING
    Type: ETHERNET_CSMACD
    Internet address: 90.0.0.1
    Destination Internet address:   0.0.0.0
    Netmask 0xff000000 Subnetmask 0xff000000
    Metric is 0
    Maximum Transfer Unit size is 1520
    0 packets received; 1 packets sent
    0 multicast packets received
    0 multicast packets sent
    0 input errors; 0 output errors
    0 collisions; 0 dropped
lo (unit number 0):
    Flags: (0x8069) UP LOOPBACK RUNNING ARP MULTICAST
    Type: SOFTWARE_LOOPBACK
    Internet address: 127.0.0.1
    Netmask 0xff000000 Subnetmask 0xff000000
    Metric is 0
    Maximum Transfer Unit size is 32768
    0 packets received; 0 packets sent
    0 multicast packets received
    0 multicast packets sent
    0 input errors; 0 output errors
    0 collisions; 0 dropped
eth (unit number 0):
    Flags: (0x8063) UP BROADCAST RUNNING ARP MULTICAST
    Type: ETHERNET_CSMACD
    Internet address: 20.3.4.5
    Broadcast address:   20.255.255.255
    Netmask 0xff000000 Subnetmask 0xff000000
    Ethernet address is 00:00:00:00:00:00
    Metric is 1
    Maximum Transfer Unit size is 1200
    0 packets received; 0 packets sent
    0 multicast packets received
    0 multicast packets sent
    0 input errors; 0 output errors
    0 collisions; 0 dropped
value = 0 = 0x0

-> routeShow

ROUTE NET TABLE
destination      gateway              flags  Refcnt  Use           Interface
----------------------------------------------------------------------------
0.0.0.0          20.3.4.6             3              0       0
eth0
20.0.0.0         20.3.4.5             101          0       0
eth0
----------------------------------------------------------------------------

ROUTE HOST TABLE
destination      gateway              flags  Refcnt  Use           Interface
----------------------------------------------------------------------------
127.0.0.1        127.0.0.1            5          0       0
lo0
----------------------------------------------------------------------------

-> arpShow

LINK LEVEL ARP TABLE
destination      gateway            flags  Refcnt  Use           Interface
--------------------------------------------------------------------------
20.3.4.6         00:00:00:48:fd:b8    c05    1       0             eth0
--------------------------------------------------------------------------
value = 75 = 0x4b = 'K'

Now i have written a client server application as follows

/* i spawn the server */
void Server()
{
    int fd;
    int temp;
    INT4 i4NumBytes;
    INT4 i4temp;
    char Buff[25]; /* pRecvBuff*/
    struct sockaddr_in addr, naddr;

    bzero((char*)&addr, sizeof(addr));

    addr.sin_family = AF_INET;
    addr.sin_port = htons(1081);
    addr.sin_addr.s_addr = INADDR_ANY;
    if ( ( fd = socket(AF_INET,SOCK_DGRAM,0)) <0)
    {
        printf("\nSocket Error\n");
    }
printf("Socket = %d \n",fd);
fflush(stdout);

    if (bind(fd, (struct sockaddr *)&addr, sizeof(addr))<0)
    {
        close(fd);
        perror("bind");
        printErrno(0x31);
        printf("error is %s \n", strerror(0x31));
        printf("Bind Error\n");
    }

    for(i4temp=0;i4temp <100;i4temp++)
    {
        temp = sizeof(naddr);
        printf("Server Receiving ...\n");

        if ((i4NumBytes = recvfrom(fd,Buff,25,MSG_DONTROUTE, (struct
sockaddr *)&addr, &temp))

== -1)
        perror("Server Received Error:");
        else
        printf("Server Received(Message :%s) (Size: %d)
\n",Buff,i4NumBytes);
    }

    close(fd);
    printf("out of server \n");
}

void ClientApp ()
{
    int fd;
    INT4 i4temp,i;
    char Buff[25];
    char buff[4];
    struct sockaddr_in addr, naddr;
    INT4 i4tmp;
    INT4 i4NumBytes;

/*    strcpy(buff,argv[1]);*/

    addr.sin_family = AF_INET;
    addr.sin_port = htons(1081);

   /* give the address such that default route is called */
    addr.sin_addr.s_addr = inet_addr(128.5.6.7);

    if ((fd = socket(AF_INET,SOCK_DGRAM,0)) <0)
    {
        printf("\nSocket Error\n");
    }

        memset(Buff,0,25);

        sprintf(Buff,"FutureSoft\"s packet OK!");

      for(i=0;i<10;i++)
      {
        if ((i4NumBytes =sendto(fd,Buff,strlen(Buff), MSG_DONTROUTE,
                           (struct sockaddr *)&addr, sizeof(addr))) == -1)
            perror("Client To server Failed :");
        else
            printf("Client To Server: Bytes(%d) Message
(%s)\n",i4NumBytes,Buff);

      }
        close(fd);
}

->sp Server

->sp ClientApp

/* i get as follows */

Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Client To server Failed :: errno = 0x33
Network unreachable
even  my ether attached routine "myRoutine" is not called.

Do you know this problem please help me out.

Thanks in advance

viveks@futute.futsoft.com

From vxwexplo-errs@csg.lbl.gov  Mon Apr  2 11:42:27 2001
From: "Suresh T" <suresht@future.futsoft.com>
Date: Mon Apr  2 11:42:30 PDT 2001
Subject: Identifying Valid vxWorks Image

Hi All,

Can anyone please tell how to identify whether a given binary is a vxWorks
Image. Is there any vxWorks header or fileformat included in the image. I am
using vxWorks for Strong ARM.

Advanced Thanks
Suresh

From vxwexplo-errs@csg.lbl.gov  Mon Apr  2 22:50:10 2001
From: Kuldeep Singh <Kuldeeps@ishoni.com>
Date: Mon Apr  2 22:50:12 PDT 2001
Subject: tNetTask   : undefined error

Hi,
       I am initiating 3 pings of 50,000 bytes size to vxworks. After some
time of normal working( 3 min )  I am getting error. 
On vxworks prompt, task status in vxworks shows me the following.

  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO
DELAY
---------- ------------ -------- --- ---------- -------- -------- -------
-----
tNetTask   netTask      80f7b520  50 PEND       80891754 80f7b4a0  73000a
0

I tried to check the errorno, but it is undefined error. 
Any help in giving clues why this error is occuring would be appreciable.

Thanks and Regards
Kuldeep Singh 
   

From vxwexplo-errs@csg.lbl.gov  Tue Apr  3 00:35:51 2001
From: Kashif Haidery <K.Haidery@zensar.com>
Date: Tue Apr  3 00:35:54 PDT 2001
Subject: Net components

Hi all,
I've been trying to download & run a stream socket program on my simulator,
but it is showing problems in downloading, on building a custom vxworks.exe
file, it is showing that there is an error in project configuration.
Also in the projects section, I am unable to include BSD attach interface
into the project,
I'm totally in the dark, & any help would be appreciated,
regds & thanks,

"There has not been any great talent without an element of madness." -Seneca

From vxwexplo-errs@csg.lbl.gov  Tue Apr  3 01:12:34 2001
From: adkumar@hss.hns.com
Date: Tue Apr  3 01:12:37 PDT 2001
Subject: running shell script from code

Hi,

I want to execute a shell script consisting of valid vxworks shell commands.
I do not want to run it from shell prompt , but from my code.
How do I achieve this ?

any help will be appreciated.
thanks and regards
Aditya

From vxwexplo-errs@csg.lbl.gov  Tue Apr  3 08:14:53 2001
From: Kumaraswamy Mudide <kumaraswamymudide@yahoo.com>
Date: Tue Apr  3 08:14:55 PDT 2001
Subject: Do not getting interrupts on PentiumPC

Hi All,

    We wrote a END driver for ISA based card. We get
interrupts and it works fine on 486 based PC. But when
we tried on Pentium based PC, the system does not
recognize the interrupts. The following IRQ, IO base
and BSP used on the 486 and pentium based PCs.

For 486 based PC.
--------------------------------------------------
BSP    : pc486
IRQ    : 10
IO base: 0x300

This works fine.
--------------------------------------------------

For Pentium based PC.
------------------------------------------------
BSP    : pcPentium
IRQ    : 10
IO Base: 0x300

In this case system does not recognize the interrupts.
-----------------------------------------------------

Plaese let me know if any one know the solution. Do I
need to change the pentium BSP.

Thanks,
Swamy

--- the vxWorks Users Group Exploder
<vxwexplo@lbl.gov> wrote:
> Submitted-by vxwexplo-errs@csg.lbl.gov  Mon Apr  2
> 11:42:27 2001
> Submitted-by: "Suresh T"
> <suresht@future.futsoft.com>
> 
> Hi All,
> 
> Can anyone please tell how to identify whether a
> given binary is a vxWorks
> Image. Is there any vxWorks header or fileformat
> included in the image. I am
> using vxWorks for Strong ARM.
> 
> Advanced Thanks
> Suresh
> 
> 
> 
> **********
> 
>     This is a user group mailing list for vxWorks
> related topics
>     see http://www-vxw.lbl.gov/vxworks for posting
> and subscription info

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

From vxwexplo-errs@csg.lbl.gov  Wed Apr  4 18:33:28 2001
From: "Richard Lee" <lhp@gpte.com.cn>
Date: Wed Apr  4 18:33:30 PDT 2001
Subject: How binArrayStart is gotten

We use VxWorks 5.4 and Tornaod II for mpc860. After we build a bootable rom_copy or rom_compress vxWorks image, we can get the symbols such as binArrayStart. These symbols are used to copy subimage from ROM to RAM before VxWorks starts. I had thought we get these symbols from a linker script when linking. But I cannot find any linker script file or linker option or rule file to indicate how these symbols are produced.

Is there anyone can tell me?

Best regards

From vxwexplo-errs@csg.lbl.gov  Thu Apr  5 00:48:44 2001
From: Fiederling.Ulf@dornier.dasa.de
Date: Thu Apr  5 00:48:47 PDT 2001
Subject: Ethernet performance

Hi All

We are trying to implement an ethernet connection between two targets
(Pentium , fast ethernet intel 82557, 100Mbit/s). The targets are connectet
via ethernet to the development hosts, running target serves with shell (we
use WINNT with Tornado II). Results are displayed by a telnet connection on
the hosts.
We are using TCPIP, our data transfer is bidirectional, one side has to
transmit approx. 1.4Mb per second, the other side transmitts only approx.
40kb per second. data structures are normally greater 1kb.

Due to our application the tranfer of the data has to be near "realtime"
(if we can use this word while using ethernet), means tranfer should be as
fast as possible. We don't have much experience with configuring ethernet
connection.

The following problem occures (All TCPIP and ethernet buffer options are
set to default)

Data transfer is running, but after a short time (some minutes) the
connection drops with the following error codes:

Sending Task:         write(...) returns             errno 0x20, means
S_errno_EPIPE
Receiving Task:     errno 0x3d, means S_errno_ECONNREFUSED   (shown by the
taskInformation command "i")

ipstatShow displays a steady increasing number of "unknownprotocols" while
data transmission is running.

We tried to configure the connection using setsockopt with TCP_NODELAY
enabled or not, setting the TCP_SND_SIZE_DFLT and TCP_RCV_SIZE_DFLT to
higher values, with no remarcable effect.

What are we doing wrong?

Can anyone give us a hint how to configure the network, task prioritys and
other parameters to get a fast and stable connection.

From vxwexplo-errs@csg.lbl.gov  Thu Apr  5 06:36:31 2001
From: "Richard Lee" <lhp@gpte.com.cn>
Date: Thu Apr  5 06:36:34 PDT 2001
Subject: read() call is blocked

We use vxworks 5.4 and Tornado II for PPC860. 

When I use read() to get the user's input from a serial port, the task which is calling read() enters PEND status, and read() never return. (I use system debug mode at this time through network.)
1.Why?
2.Is read() a block call or a non-bolck call?
3.How to resolve this problem?

The detail is:
The serial port: using MPC860 SMC1, sio driver, tty driver, interrupt mode default, not CONSOLE_TTY. I define the TTY_NUM = 1, so the serial port device is created automatically during initialization using ttyDevCreate().Then I use such code

int  serialfd;

void DsSerialInit()
{
  serialfd = open("/tyCo/0", O_RDWR, 0);

  (void) ioctl(serialfd, FIOSETOPTIONS, OPT_RAW);
}

to open the serial port, OK, the return value "serialfd" is a valid value.

After that, task A is running on the target board to read() the serial port.

Task A
{
  char recvchar;
  int retval;

  ...
  retval = read(serialfd, &recvchar, 1);  /* which never return, task A enters PEND at this point*/
  ...
}

I had thought the read() will return 0 immediately even if there is no input, but now it never returns, why?

From vxwexplo-errs@csg.lbl.gov  Thu Apr  5 09:00:12 2001
From: "Mike Anderson" <mike@theptrgroup.com>
Date: Thu Apr  5 09:00:14 PDT 2001
Subject: RE: How binArrayStart is gotten

This is a multi-part message in MIME format.

------=_NextPart_000_0029_01C0BDC8.1EF140D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

VxWorks Greetings!

> Submitted-by: "Richard Lee" <lhp@gpte.com.cn>
>
> We use VxWorks 5.4 and Tornaod II for mpc860. After we build a
> bootable rom_copy or rom_compress vxWorks image, we can get the
> symbols such as binArrayStart. These symbols are used to copy
> subimage from ROM to RAM before VxWorks starts. I had thought we
> get these symbols from a linker script when linking. But I cannot
> find any linker script file or linker option or rule file to
> indicate how these symbols are produced.
>
> Is there anyone can tell me?
>

  Actually, I believe that these symbols arise as a result of the
binToAsm call in the Makefile.  The process is that once the
VxWorks image is built, the OMF header is stripped off and then
the resulting binary file is compressed using the "deflate"
command.  Then the compressed image converted to a series of
"define bytes" using binToAsm.  This program adds the binArrayStart
and binArrayEnd and then the make process "assembles" this code
using the assembler-with-cpp option to gcc.  This places an OMF
header back on the compressed image for subsequent linking.
Then, the romInit code is linked onto the compressed image
(the compressed, binary VxWorks now looks like "data" to the linker).
Now, you're ready to burn that ROM.

HTH,

Mike Anderson
--
=======================================================
       T h e   P T R   G r o u p,   I n c.
=======================================================
       Embedded, Real-Time Solutions and Services

Mike Anderson             mailto:mike@ThePTRGroup.com
Chief Scientist           http://www.ThePTRGroup.com
V: (703) 585-9384         F: (703) 430-3748
=======================================================
"Software development is like making a baby...
 You can't make a baby in one month by impregnating
 nine women.  Some things just take time."

------=_NextPart_000_0029_01C0BDC8.1EF140D0
Content-Type: text/x-vcard;
	name="Mike Anderson.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Mike Anderson.vcf"

BEGIN:VCARD
VERSION:2.1
N:Anderson;Mike
FN:Mike Anderson
ORG:The PTR Group, Inc.
TITLE:Chief Scientist
TEL;WORK;VOICE:(703) 585-9384
TEL;WORK;FAX:(703) 430-3748
ADR;WORK:;;1438 Cellar Creek Way;Herndon;VA;20170;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1438 Cellar Creek =
Way=3D0D=3D0AHerndon, VA 20170=3D0D=3D0AUSA
URL:
URL:http://www.theptrgroup.com
EMAIL;PREF;INTERNET:mike@theptrgroup.com
REV:20001211T173220Z
END:VCARD

------=_NextPart_000_0029_01C0BDC8.1EF140D0--

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 02:03:24 2001
From: "David Anderson" <david.anderson@dtrack.com>
Date: Fri Apr  6 02:03:27 PDT 2001
Subject: RE: read() call is blocked

>
> We use vxworks 5.4 and Tornado II for PPC860.
>
> When I use read() to get the user's input from a serial port, the task 
which is calling read() enters PEND status, and read() never return. (I use 
system debug mode at this time through network.)
> 1.Why?

It is waiting for input. If data available < sizeof buffer specified it 
waits until a buffer full is available.

> 2.Is read() a block call or a non-bolck call?

HAve a look at the ioctl call FIONBIO . Normally it is BLOCKING.(default)

> 3.How to resolve this problem?
>

You can either change it to non-blocking using ioctl(fd, FIONBIO , &optval 
) ( see manual ) OR
if the driver does not support the option you can use

ioctl( fd, FIONREAD , &count )
if ( count >= buffer_size ) read ( fd , buffer , buffer_size )

which prevents blocking.

Problem is not target specific.

David Anderson.
NEW E-MAIL ADDRESS:  mailto:david.anderson@dtrack.com

-------------------------------------
FF: 2B + ~2B , that is the question ?
-------------------------------------

Disclaimer
----------
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed.

If you have received this email in error please destroy and notify Data 
Track Technology Plc +44 1425 271900.
-------------------------------------------------------

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 04:52:11 2001
From: signorelli@gefran.com
Date: Fri Apr  6 04:52:13 PDT 2001
Subject: Where to get a free chkdsk routine?

Someone knows where to download a chkdsk free routine for VxWorks, without
buying dosFs
2.0?

Windsurf tells to download it from:
ftp.wrs.com under TECH_SUPPORT/louise/chkdsk/
but it seems to be disappeared from there.

Thanks in advance, bye
Romano Signorelli

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 04:53:13 2001
From: "A Mohammed Arif" <arif@hellosoft.com>
Date: Fri Apr  6 04:53:15 PDT 2001
Subject: USENET comp.os.vxworks. 

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C0BEBE.6AC2AA20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Adoni Mohammed Arif
Member Technical Staff,
Hellosoft
8-2-703, Road No 12,
Banjara Hills, Hyderabad - 500 034
e-mail - arif@hellosoft.com
ph : +91 040 6582214, 6502272

------=_NextPart_000_0000_01C0BEBE.6AC2AA20
Content-Type: text/x-vcard;
	name="Adoni Mohammed Arif.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Adoni Mohammed Arif.vcf"

BEGIN:VCARD
VERSION:2.1
N:Arif;Adoni;Mohammed
FN:Adoni Mohammed Arif
NICKNAME:Arif
ORG:Hellosoft;Embedded
TITLE:Member Technical Staff
TEL;WORK;VOICE:6682214, 6502272
TEL;HOME;VOICE:3512972
TEL;WORK;FAX:3390934
ADR;WORK;ENCODING=3DQUOTED-PRINTABLE:;Hellosoft;8-2-703,=3D0D=3D0ARoad =
No12,=3D0D=3D0ABanjara Hills;Hyderabad;Andhra Prad=3D
esh;500034;India
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:Hellosoft=3D0D=3D0A8-2-703,=3D0D=3D=
0ARoad No12,=3D0D=3D0ABanjara Hills=3D0D=3D0AHyderabad, A=3D
ndhra Pradesh 500034=3D0D=3D0AIndia
ADR;HOME;ENCODING=3DQUOTED-PRINTABLE:;;H.No 12-2-720 /11=3D0D=3D0ANanal =
Nagar=3D0D=3D0APadmanabha Nagar;Hyderabad;Andhara=3D
 Pradesh;500028;India
LABEL;HOME;ENCODING=3DQUOTED-PRINTABLE:H.No 12-2-720 /11=3D0D=3D0ANanal =
Nagar=3D0D=3D0APadmanabha Nagar=3D0D=3D0AHyderabad, And=3D
hara Pradesh 500028=3D0D=3D0AIndia
URL:
URL:http://www.hellosoft.com
EMAIL;PREF;INTERNET:arif@hellosoft.com
EMAIL;INTERNET:mdarif@yahoo.com
EMAIL;INTERNET:amdarif@hotmail.com
REV:20010301T081705Z
END:VCARD

------=_NextPart_000_0000_01C0BEBE.6AC2AA20--

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 05:31:59 2001
From: "Baron, Ken (N-BAE Systems)" <ken.baron@lmco.com>
Date: Fri Apr  6 05:32:02 PDT 2001
Subject: RE: read() call is blocked

> >
> > We use vxworks 5.4 and Tornado II for PPC860.
> >
> > When I use read() to get the user's input from a serial port, the task 
> which is calling read() enters PEND status, and read() never return. (I
> use 
> system debug mode at this time through network.)
> > 1.Why?
> 
> It is waiting for input. If data available < sizeof buffer specified it 
> waits until a buffer full is available.
> 
	 I don't believe that is true. read() should return if any input is
available. It does NOT pend until a full buffer is available. 

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 06:39:53 2001
From: "Mohan Kumar Seetharaman" <mohankr@hclt.com>
Date: Fri Apr  6 06:39:55 PDT 2001
Subject: Processor IDLE Time

Hello VxWorks Gurus:
	I am using Tornado 2.0 - VxWorks 5.4 for PPC740
	I am trying to implement a power saver option for our product, how
	do I find whether the processor is IDLE or BUSY executing some
	instruction ????

	Does VxWorks provide any routines ?  If so kindly fwd the information
	ASAP.

Thanks

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 07:26:51 2001
From: "Mike Anderson" <mike@theptrgroup.com>
Date: Fri Apr  6 07:26:54 PDT 2001
Subject: RE: Where to get a free chkdsk routine?

This is a multi-part message in MIME format.

------=_NextPart_000_0052_01C0BE84.3DE915A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

VxWorks Greetings!

>
> Someone knows where to download a chkdsk free routine for VxWorks, without
> buying dosFs
> 2.0?
>

You don't "buy" dosFs 2.  It's a freebe from your sales guy/FAE.  You
*did* keep your maintenance fees current didn't you :-)?

Regards,

Mike
--
=======================================================
       T h e   P T R   G r o u p,   I n c.
=======================================================
       Embedded, Real-Time Solutions

Mike Anderson             mailto:mike@ThePTRGroup.com
Chief Scientist           http://www.ThePTRGroup.com
V: (703) 585-9384         F: (703) 430-3748
=======================================================
"Software development is like making a baby...
 You can't make a baby in one month by impregnating
 nine women.  Some things just take time."

------=_NextPart_000_0052_01C0BE84.3DE915A0
Content-Type: text/x-vcard;
	name="Mike Anderson.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Mike Anderson.vcf"

BEGIN:VCARD
VERSION:2.1
N:Anderson;Mike
FN:Mike Anderson
ORG:The PTR Group, Inc.
TITLE:Chief Scientist
TEL;WORK;VOICE:(703) 585-9384
TEL;WORK;FAX:(703) 430-3748
ADR;WORK:;;1438 Cellar Creek Way;Herndon;VA;20170;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1438 Cellar Creek =
Way=3D0D=3D0AHerndon, VA 20170=3D0D=3D0AUSA
URL:
URL:http://www.theptrgroup.com
EMAIL;PREF;INTERNET:mike@theptrgroup.com
REV:20001211T173220Z
END:VCARD

------=_NextPart_000_0052_01C0BE84.3DE915A0--

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 07:58:20 2001
From: Charles Johnson <cjohnson@oresis.com>
Date: Fri Apr  6 07:58:22 PDT 2001
Subject: RE: Where to get a free chkdsk routine?

You shouldn't need to buy dosFs2.0.  It was just a patch to Tornado 2.

		-----Original Message-----
		From:	vxwexplo@lbl.gov [mailto:vxwexplo@lbl.gov]
		Sent:	Friday, April 06, 2001 5:12 AM
		To:	vxworks_users@csg.lbl.gov
		Subject:	Where to get a free chkdsk routine?

		Submitted-by vxwexplo-errs@csg.lbl.gov  Fri Apr  6 04:52:11
2001
		Submitted-by: signorelli@gefran.com

		Someone knows where to download a chkdsk free routine for
VxWorks, without
		buying dosFs
		2.0?

		Windsurf tells to download it from:
		ftp.wrs.com under TECH_SUPPORT/louise/chkdsk/
		but it seems to be disappeared from there.

		Thanks in advance, bye
		Romano Signorelli

		**********

		    This is a user group mailing list for vxWorks related
topics
		    see http://www-vxw.lbl.gov/vxworks for posting and
subscription info

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 11:45:07 2001
From: "T. Hariharan" <hariharan@pobox.com>
Date: Fri Apr  6 11:45:10 PDT 2001
Subject: Mounting ATA cdrom on pentium target

This is a multi-part message in MIME format.

------=_NextPart_000_035F_01C0BE8F.2A4A7F60
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I'm trying to mount an ATA cdrom on a pentium pc running vxworks.
The drive is the slave (drive 1) on controller 0.

Tried the following from the shell:

-> cdromFsInit()
-> cdDevBlk =3D ataDevCreate(0, 1, 0, 0)
-> cdVolDesc =3D cdromFsDevCreate("/cdrom", cdDevBlk)

All the steps did succeed, and I can see "/cdrom" in the "devs" list.

But
    ls "/cdrom"
fails. I get "Can't open /cdrom".

The third argument to ataDevCreate is "nBlocks", which if 0 should use =
the entire disk. I think specifying 0 should be fine.

The fourth argument, "blkOffset", is "This offset is added to the block =
numbers passed by the file system during disk accesses.". I don't know =
if 0 is the correct value. In the cdromFsLib documentation, there is an =
example that uses a SCSI cdrom. In the scsiBlkDevCreate call, the =
"blockOffset" argument is 0. I assumed the same value would be valid for =
ataDevCreate().

Has anyone out there successfully mounted and read an ATA cdrom? If so =
can you tell me what I'm doing wrong or missing?

Thanks,
Hari

------=_NextPart_000_035F_01C0BE8F.2A4A7F60
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to mount an ATA cdrom on a =
pentium pc=20
running vxworks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The drive is the slave (drive 1) on =
controller=20
0.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Tried the following from the =
shell:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-&gt;&nbsp;cdromFsInit()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-&gt;&nbsp;cdDevBlk =3D ataDevCreate(0, =
1, 0,=20
0)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-&gt; cdVolDesc =3D =
cdromFsDevCreate("/cdrom",=20
cdDevBlk)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>All the steps did succeed, and I can =
see "/cdrom"=20
in the "devs" list.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>But</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; ls =
"/cdrom"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>fails. I get "Can't open =
/cdrom".</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The third argument to ataDevCreate is =
"nBlocks",=20
which if 0 should use the entire&nbsp;disk. I think specifying 0 should =
be=20
fine.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The fourth argument, "blkOffset", is =
"This offset=20
is added to the block numbers passed by the file system during disk =
accesses.".=20
I don't know if 0 is the correct value. In the cdromFsLib documentation, =
there=20
is an example that uses a SCSI cdrom. In the scsiBlkDevCreate call, the=20
"blockOffset" argument is 0. I assumed the same value would be valid for =

ataDevCreate().</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Has anyone out there successfully =
mounted and read=20
an ATA cdrom? If so can you tell me what I'm doing wrong or=20
missing?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hari</FONT></DIV></BODY></HTML>

------=_NextPart_000_035F_01C0BE8F.2A4A7F60--

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 12:28:53 2001
From: "Mike Anderson" <mike@theptrgroup.com>
Date: Fri Apr  6 12:28:55 PDT 2001
Subject: RE: Mounting ATA cdrom on pentium target

This is a multi-part message in MIME format.

------=_NextPart_000_0057_01C0BEAE.70BDAE80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

VxWorks Greetings!

> Tried the following from the shell:
>
> -> cdromFsInit()
> -> cdDevBlk =3D ataDevCreate(0, 1, 0, 0)
> -> cdVolDesc =3D cdromFsDevCreate("/cdrom", cdDevBlk)
>
> All the steps did succeed, and I can see "/cdrom" in the "devs" list.
>
> But
>     ls "/cdrom"
> fails. I get "Can't open /cdrom".
>

  Is this from the WindSh or the tShell?  If it's from the WindSh,
then it's not your target but WindSh that's the problem.  Because
the WindSh runs as a TCL interpretor on your development host,
it can't see local media on your target.  If you're trying this
from the tShell, then you may be missing the usrFsLib.c code.
This is especially true if you've applied the dosFsLib2 patches
to your installation.  I hoven't been able to find where the
usrFsLib.c stuff is included in the build.  So, that looks like
bug.  It's supposed to be referenced from usrLib.c (according
to the comment in that file (that's also where usrFsLib.c's
code came from in the first place)).  So, you might try to place
an include in usrLib.c to bring the usrFsLib.c code in for
compilation.  Dones anyone know if there is an SPR related to
this problem?

HTH,

Mike Anderson
--
=======================================================
       T h e   P T R   G r o u p,   I n c.
=======================================================
       Embedded, Real-Time Solutions

Mike Anderson             mailto:mike@ThePTRGroup.com
Chief Scientist           http://www.ThePTRGroup.com
V: (703) 585-9384         F: (703) 430-3748
=======================================================
"Software development is like making a baby...
 You can't make a baby in one month by impregnating
 nine women.  Some things just take time."

------=_NextPart_000_0057_01C0BEAE.70BDAE80
Content-Type: text/x-vcard;
	name="Mike Anderson.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Mike Anderson.vcf"

BEGIN:VCARD
VERSION:2.1
N:Anderson;Mike
FN:Mike Anderson
ORG:The PTR Group, Inc.
TITLE:Chief Scientist
TEL;WORK;VOICE:(703) 585-9384
TEL;WORK;FAX:(703) 430-3748
ADR;WORK:;;1438 Cellar Creek Way;Herndon;VA;20170;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1438 Cellar Creek =
Way=3D0D=3D0AHerndon, VA 20170=3D0D=3D0AUSA
URL:
URL:http://www.theptrgroup.com
EMAIL;PREF;INTERNET:mike@theptrgroup.com
REV:20001211T173220Z
END:VCARD

------=_NextPart_000_0057_01C0BEAE.70BDAE80--

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 13:14:10 2001
From: karunakaran nair <karun40@yahoo.com>
Date: Fri Apr  6 13:14:12 PDT 2001
Subject: vxworks bit addressing issue

--0-1324676372-986588048=:58923
Content-Type: text/plain; charset=us-ascii

  
  hello, 
 

      anybody can tell me how to efficiently address and handle the bits in a byte.

for example. a header byte has to be looked as the summation of 4 + 2 + 2 bits in it. Each of these bit groups are for some pupose.

ie. header byte = 4 bits + 2 bits + 2 bits

i am using C++.  i am thinking of  having a class that has get and set functions to do set and get the header bits. your advice please.

 

thanks,

KN 

---------------------------------
Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.
--0-1324676372-986588048=:58923
Content-Type: text/html; charset=us-ascii

<BR>
<P>&nbsp; 
<P>&nbsp; hello, 
<P>&nbsp;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; anybody can tell me how to efficiently address and handle the bits in a byte.</P>
<P>for example. a header byte has to be looked as the summation of 4 + 2 + 2 bits in it. Each of these bit groups are for some pupose.</P>
<P>ie. header byte = 4 bits + 2 bits + 2 bits</P>
<P>i am using C++.&nbsp; i am thinking of&nbsp; having a class that has get and set functions to do set and get the header bits. your advice please.</P>
<P>&nbsp;</P>
<P>thanks,</P>
<P>KN&nbsp;</P><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://personal.mail.yahoo.com/?.refer=mailiyfoot">Yahoo! Mail Personal Address</a> - 
Get email at your own domain with Yahoo! Mail.
--0-1324676372-986588048=:58923--

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 14:20:42 2001
From: rcw@DynRes.com
Date: Fri Apr  6 14:20:45 PDT 2001
Subject: NFS file copy corruption

I am experiencing occasional file corruption when copying files from a PC to a VxWorks target. 

The problem seems to have gotten worse after repartitioning the target disk, although I don't know why that would affect anything.

The PC is running NT 4.0 sp5 and what used to be FTP Software's InterDrive Client 5.0 (now Netmanage).

The target is a MVME2604, Tornado 1, with a 9G disk. I originally had the disk configured (mistakenly) as 33M, 33M and 1G. Now it is 1G, 1G, 7G. My problem occurs mostly on the first partition, but that 
is also where most of the action is. 

So far, the problem seems to be in one direction only: PC -> vxworks. I have not seen the problem with copying files the other way. But again, mostly I _write_ files to the _first_ partition.

Anyone have some ideas to try?

---------------------------------------------
Ronald Wagner
Principal Engineer
Manager, DRI Driving Simulator

Dynamic Research, Inc.    +1 310 212 5211 (v)
355 Van Ness Avenue       +1 310 212 5046 (f)
Torrance, CA  USA 90501   rwagner_123@dynres_123.com
for email delete the underscores and numbers

From vxwexplo-errs@csg.lbl.gov  Fri Apr  6 14:44:47 2001
From: Jim Way <Jway@datum.com>
Date: Fri Apr  6 14:44:50 PDT 2001
Subject: RE: vxworks bit addressing issue

>>  anybody can tell me how to efficiently address and handle the bits in a
byte.

Maybe I'm showing my C background, but I'd be tempted to just define or
enumerate some mask constants.

#define	BITGROUP1_MASK	0x03
#define	OPTION1		0x01
#define	OPTION2		0x02

#define	BITGROUP2_MASK	0x0C
#define	OPTIONA		0x04
#define	OPTIONB		0x08
#define	OPTIONC		0x0C

header_field = (header_field & ~BITGROUP2_MASK) | OPTION A;

if (header_field & BITGROUP2_MASK == OPTIONB) {...}

switch (header_field & BITGROUP1_MASK)
{
case OPTION1:	...	break;
case OPTION2:	...	break;
default:			break;
}

Perhaps not objectively elegant <sorry> but quite functional.
Jim
-----------------------------------------
Jim Way, Software Engineer
Datum Austin (Austron Inc.)
voice: 512.721.4170
fax  : 512.990.9712
email: jwayATdatumDOTcom (no spam please)
-----------------------------------------	

From vxwexplo-errs@csg.lbl.gov  Mon Apr  9 02:57:45 2001
From: sameerp@contechsoftware.com (Sameer Pal)
Date: Mon Apr  9 02:57:47 PDT 2001
Subject: Information

Dear sir,
  I want to know about all the sites which give information related to Vxworks.Please inform me.

Regards

Sameer Pal 
Software Engineer,
Contech Software Ltd 
E-3/1,2,3, GIDC Electronics Estate,Sector - 25, Gandhinagar - 382 044, INDIA 
Tel : (Office )+91(2712) 44989/43324/43328, (R) :+91 - (0265) - 775627 
Email : sameerp@contech.soft.net , sameerpal@123india.com
CompanyURL : http://www.contechgroup.com 

From vxwexplo-errs@csg.lbl.gov  Mon Apr  9 03:52:58 2001
From: "rajesh biswal" <rajesh.biswal@wipro.com>
Date: Mon Apr  9 03:53:01 PDT 2001
Subject: VxWorks : Device drivers

Hi,
Can anybody tell me any good book on --
"How to write device drivers on VxWorks"
 OR
any relevant site...

Thanx in advance.
Regards,
Rajesh.

From vxwexplo-errs@csg.lbl.gov  Mon Apr  9 05:10:04 2001
From: "Rama Krishna Mandava" <ramakrishna.mandava@wipro.com>
Date: Mon Apr  9 05:10:07 PDT 2001
Subject: vxWorks info sites

The following web sites gives u information about vxWorks

1)http://www.windriver.com

2)http://www.wrs.com

3)http://www.jungo. com

4)http://www.smartmodular.com

5)http://softrealtime.homestead.com

From vxwexplo-errs@csg.lbl.gov  Mon Apr  9 07:04:06 2001
From: "zz Fa.NewlinkSystems01" <David.Yates@de1.vdogrp.de>
Date: Mon Apr  9 07:04:08 PDT 2001
Subject: tFFS and dosFs in VxWorks

Hi,

I am trying to create a VxWorks dos file system and don't seem to understand
how it works properly.

So far I have managed to do the following:

-> sysTffsFormat
value = 0 = 0x0

 -> usrTffsConfig(0,0,"/tffs0")
 value = 0 = 0x0

 -> devs
 drv name
   0 /null
   1 /tyCo/0
   1 /tyCo/1
   1 /tyCo/2
   5 stonegate:
   6 /vio
   7 /tgtsvr
   3 /tffs0
 value = 0 = 0x0

 -> dosFsConfigShow("/tffs0")

 volume descriptor ptr (pVolDesc):       0xfffdca0
 cache block I/O descriptor ptr (pCbio): 0xfffdd6c
 auto disk check on mount:               NOT ENABLED
max # of simultaneously open files:     22
 file descriptors in use:                0
 # of different files in use:            0
 # of descriptors for deleted files:     0
 # of  obsolete descriptors:             0

 current volume configuration:
  - volume label:        NO LABEL ; (in boot sector:                )
  - volume Id:           0x0
  - total number of sectors:     60,716
  - bytes per sector:            512
  - # of sectors per cluster:    4
  - # of reserved sectors:       1
  - FAT entry size:              FAT16
  - # of sectors per FAT copy:   60
  - # of FAT table copies:       2
  - # of hidden sectors:         4
  - first cluster is in sector # 136
  - directory structure:         VFAT
  - root dir start sector:               121
  - # of sectors per root:               15
  - max # of entries in root:            240

 FAT handler information:
 ------------------------
  - allocation group size:       2 clusters
  - free space on volume:        31,016,960 bytes
 value = 0 = 0x0

But not quite sure how I can copy files into this system and how I can list
what files are stored, created on this directory.

All Help gratefully received,

Dave.

-----------------------------------------------------------
This Mail has been checked for Viruses
Attention: Encrypted Mails can NOT be checked !

***

Diese Mail wurde auf Viren ueberprueft
Hinweis: Verschluesselte Mails koennen NICHT geprueft werden!
------------------------------------------------------------

From vxwexplo-errs@csg.lbl.gov  Mon Apr  9 07:40:07 2001
From: Bill Brown <wlbrown@lbl.gov>
Date: Mon Apr  9 07:40:09 PDT 2001
Subject: RE: vxworks bit addressing issue

At 02:52 PM 4/6/01 -0700, the vxWorks Users Group Exploder wrote:
>Submitted-by vxwexplo-errs@csg.lbl.gov  Fri Apr  6 14:44:47 2001
>Submitted-by: Jim Way <Jway@datum.com>
>
>>>  anybody can tell me how to efficiently address and handle the bits in a
>byte.
>
>Maybe I'm showing my C background, but I'd be tempted to just define or
>enumerate some mask constants.
>
>#define	BITGROUP1_MASK	0x03
>#define	OPTION1		0x01
>#define	OPTION2		0x02
>
>#define	BITGROUP2_MASK	0x0C
>#define	OPTIONA		0x04
>#define	OPTIONB		0x08
>#define	OPTIONC		0x0C
>
>header_field = (header_field & ~BITGROUP2_MASK) | OPTION A;
>
>if (header_field & BITGROUP2_MASK == OPTIONB) {...}
>
>switch (header_field & BITGROUP1_MASK)
>{
>case OPTION1:	...	break;
>case OPTION2:	...	break;
>default:			break;
>}
>
>Perhaps not objectively elegant <sorry> but quite functional.
>Jim

"Bit fields" are defined in c and can be included in a structure.
How this translates to c++ I haven't a clue.

I've used both methods outlined above;  as a general rule it seems
to me that the first is simpler and works for the majority of cases.

HTH!

-bill

From vxwexplo-errs@csg.lbl.gov  Mon Apr  9 10:16:36 2001
From: David Laight <dsl@tadpole.co.uk>
Date: Mon Apr  9 10:16:38 PDT 2001
Subject: RE: vxworks bit addressing issue

> >if (header_field & BITGROUP2_MASK == OPTIONB) {...}

Unfortunately either K or R got the C operator priorites wrong here!
For some reason (best known to them) == has higher priority than &
So the above is:
  
  if (header_field & (BITGROUP2_MASK == OPTIONB)) {...}

not the required:

  if ((header_field & BITGROUP2_MASK) == OPTIONB)) {...}

  
I can't think of any use for that construct - even with 3 variables.
(did use if (a == (b == c)) once... - blew up the pascal compiler)

Fortunately gcc (as configured for vxWorks) issues a warning on that
construct indicating that () are required.  Unfortunately it also
bleats about anything involving & and | (or && and ||) where the
priority is obvious (& (multiply) and beats | (divide)).  Adding
the 'suggested parenthesis' forces so many () in complex expressions
that you can't see the wood for the trees...

	David

----------------------------------------------------------------
David Laight                          email: dsl@tadpole.co.uk
Tadpole Technology plc                phone: +44 1223 428 232
Cambridge, UK                         fax:   +44 1223 428 201

From vxwexplo-errs@csg.lbl.gov  Mon Apr  9 12:25:24 2001
From: "Chang, Mark" <Mark_Chang@adc.com>
Date: Mon Apr  9 12:25:27 PDT 2001
Subject: mget implementation

Hi,
	Where can I find code to implement mget
	for Vxworks ftp library?
	Vxworks 5.3.1
		

	Thanks,
	Mark
	

From vxwexplo-errs@csg.lbl.gov  Mon Apr  9 15:02:07 2001
From: Charles Johnson <cjohnson@oresis.com>
Date: Mon Apr  9 15:02:09 PDT 2001
Subject: RE: mget implementation

Included with the dosFs2.0 patch is an unsupported version of ftpdLib.c
which has mget implemented.  Your mileage may vary.

--Charles Johnson
Oresis Communications, Inc.

		-----Original Message-----
		From:	vxwexplo@lbl.gov [mailto:vxwexplo@lbl.gov]
		Sent:	Monday, April 09, 2001 12:32 PM
		To:	vxworks_users@csg.lbl.gov
		Subject:	mget implementation

		Submitted-by vxwexplo-errs@csg.lbl.gov  Mon Apr  9 12:25:24
2001
		Submitted-by: "Chang, Mark" <Mark_Chang@adc.com>

		Hi,
			Where can I find code to implement mget
			for Vxworks ftp library?
			Vxworks 5.3.1
				

			Thanks,
			Mark
			

		**********

		    This is a user group mailing list for vxWorks related
topics
		    see http://www-vxw.lbl.gov/vxworks for posting and
subscription info

From vxwexplo-errs@csg.lbl.gov  Mon Apr  9 23:13:12 2001
From: =?iso-8859-1?q?Vaishali=20Kowshik?= <vaishali2002001@yahoo.co.in>
Date: Mon Apr  9 23:13:14 PDT 2001
Subject: ARP Timer value

I need information on how to change the default ARP
expiration timer on VxWorks.

Btw, what is the exact default timer value on Vxworks?
Please help.

Vaishali

____________________________________________________________
Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

From vxwexplo-errs@csg.lbl.gov  Tue Apr 10 07:34:11 2001
From: "Senthil kumar" <krsenthil@my-deja.com>
Date: Tue Apr 10 07:34:13 PDT 2001
Subject: elftobin gives error for vxWorks_rom

Hi,

We have built vxWorks_rom image for MCP750 from the Project facility and while trying to create the bin file using elftobin, we are getting 
the following error message:

Seg1: Expected load address 0xfff00100 but file address is 0x008ddd14

Can any one help us to solve the above problem...? 

Thanks in advance,
Senthil.

------------------------------------------------------------
--== Sent via Deja.com ==--
http://www.deja.com/

From vxwexplo-errs@csg.lbl.gov  Tue Apr 10 15:17:14 2001
From: "T. Hariharan" <hariharan@pobox.com>
Date: Tue Apr 10 15:17:17 PDT 2001
Subject: Re: Mounting ATA cdrom on pentium target

> > Tried the following from the shell:
> >
> > -> cdromFsInit()
> > -> cdDevBlk =3D ataDevCreate(0, 1, 0, 0)
> > -> cdVolDesc =3D cdromFsDevCreate("/cdrom", cdDevBlk)
> >
> > All the steps did succeed, and I can see "/cdrom" in the "devs" list.
> >
> > But
> >     ls "/cdrom"
> > fails. I get "Can't open /cdrom".
> >
> 
>   Is this from the WindSh or the tShell?  If it's from the WindSh,
> then it's not your target but WindSh that's the problem.  Because
> the WindSh runs as a TCL interpretor on your development host,
> it can't see local media on your target.  If you're trying this
> from the tShell, then you may be missing the usrFsLib.c code.
> This is especially true if you've applied the dosFsLib2 patches
> to your installation.  I hoven't been able to find where the
> usrFsLib.c stuff is included in the build.  So, that looks like
> bug.  It's supposed to be referenced from usrLib.c (according
> to the comment in that file (that's also where usrFsLib.c's
> code came from in the first place)).  So, you might try to place
> an include in usrLib.c to bring the usrFsLib.c code in for
> compilation.  Dones anyone know if there is an SPR related to
> this problem?

Thanks for the reply.
I've made progress since my last posting.

First, to answer your question, I was using the target shell.

It turns out the ATA driver (ie ataDrv - you do get the
sources for it) that ships with Tornado 2.0 does not support
cd-rom's (it apparently does not support ATAPI drives).
You have to get special versions of ataDrv.c and ataShow.c.
The ones I got were dated Apr 27, 1999.

For pcpentiumPro BSP, only the master drive on controller 0
is enabled. If you want more drives, you have to edit sysLib.c.
My cd-rom drive was the master on controller 1. Even after
enabling all 4 drives (2 on each controller), the cd-rom drive
on controller 1 was not identified. When I made it the slave
on controller 0, it worked.

Hari

From vxwexplo-errs@csg.lbl.gov  Wed Apr 11 02:34:17 2001
From: irit <irit@filesxpress.com>
Date: Wed Apr 11 02:34:19 PDT 2001
Subject: Optimized compiler for x86 (PentiumPro) under VxWorks

Hi,
We are evaluating Tornado2 & vxWorks on Pentium Pro and using legacy
GNU compiler.
Does any one know \ evaluate an optimized compiler for such environment
?
Does it make better code then the GNU compiler ?
thanks

Irit Meitav
Software Engineer

From vxwexplo-errs@csg.lbl.gov  Wed Apr 11 11:53:08 2001
From: Kumaraswamy Mudide <kumaraswamymudide@yahoo.com>
Date: Wed Apr 11 11:53:10 PDT 2001
Subject: ftpCommand waits

Hi All,

   When we tried to boot from DHCP server, the client
(vxWorks target with flags = 0x40) gets all the
parametes like IP address, subnet mask, file name. And
it also loads the file successfully from the server,
but ftpCommand()(with command option "QUIT") routines
waits for few minuts before it jumps to vxWorks image.

We are using pcPentium based PC and BSP is pcPentium.
DHCP Server: Linux based 

But without DHCP (i.e. flags = 0x00) it works fine. 
If any one knows the solution please let us know.

Bye
swamy

--- the vxWorks Users Group Exploder
<vxwexplo@lbl.gov> wrote:
> Submitted-by vxwexplo-errs@csg.lbl.gov  Tue Apr  3
> 08:14:53 2001
> Submitted-by: Kumaraswamy Mudide
> <kumaraswamymudide@yahoo.com>
> 
> Hi All,
> 
> 
>     We wrote a END driver for ISA based card. We get
> interrupts and it works fine on 486 based PC. But
> when
> we tried on Pentium based PC, the system does not
> recognize the interrupts. The following IRQ, IO base
> and BSP used on the 486 and pentium based PCs.
> 
> 
> For 486 based PC.
> --------------------------------------------------
> BSP    : pc486
> IRQ    : 10
> IO base: 0x300
> 
> This works fine.
> --------------------------------------------------
> 
> For Pentium based PC.
> ------------------------------------------------
> BSP    : pcPentium
> IRQ    : 10
> IO Base: 0x300
> 
> In this case system does not recognize the
> interrupts.
>
-----------------------------------------------------
> 
> Plaese let me know if any one know the solution. Do
> I
> need to change the pentium BSP.
> 
> Thanks,
> Swamy
> 
> 
> 
> --- the vxWorks Users Group Exploder
> <vxwexplo@lbl.gov> wrote:
> > Submitted-by vxwexplo-errs@csg.lbl.gov  Mon Apr  2
> > 11:42:27 2001
> > Submitted-by: "Suresh T"
> > <suresht@future.futsoft.com>
> > 
> > Hi All,
> > 
> > Can anyone please tell how to identify whether a
> > given binary is a vxWorks
> > Image. Is there any vxWorks header or fileformat
> > included in the image. I am
> > using vxWorks for Strong ARM.
> > 
> > Advanced Thanks
> > Suresh
> > 
> > 
> > 
> > **********
> > 
> >     This is a user group mailing list for vxWorks
> > related topics
> >     see http://www-vxw.lbl.gov/vxworks for posting
> > and subscription info
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/
> 
> **********
> 
>     This is a user group mailing list for vxWorks
> related topics
>     see http://www-vxw.lbl.gov/vxworks for posting
> and subscription info

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

From vxwexplo-errs@csg.lbl.gov  Wed Apr 11 11:53:27 2001
From: Kumaraswamy Mudide <kumaraswamymudide@yahoo.com>
Date: Wed Apr 11 11:53:29 PDT 2001
Subject: ftpCommand waits

Hi All,

   When we tried to boot from DHCP server, the client
(vxWorks target with flags = 0x40) gets all the
parametes like IP address, subnet mask, file name. And
it also loads the file successfully from the server,
but ftpCommand()(with command option "QUIT") routines
waits for few minuts before it jumps to vxWorks image.

We are using pcPentium based PC and BSP is pcPentium.
DHCP Server: Linux based 

But without DHCP (i.e. flags = 0x00) it works fine. 
If any one knows the solution please let us know.

Bye
swamy

--- the vxWorks Users Group Exploder
<vxwexplo@lbl.gov> wrote:
> Submitted-by vxwexplo-errs@csg.lbl.gov  Tue Apr  3
> 08:14:53 2001
> Submitted-by: Kumaraswamy Mudide
> <kumaraswamymudide@yahoo.com>
> 
> Hi All,
> 
> 
>     We wrote a END driver for ISA based card. We get
> interrupts and it works fine on 486 based PC. But
> when
> we tried on Pentium based PC, the system does not
> recognize the interrupts. The following IRQ, IO base
> and BSP used on the 486 and pentium based PCs.
> 
> 
> For 486 based PC.
> --------------------------------------------------
> BSP    : pc486
> IRQ    : 10
> IO base: 0x300
> 
> This works fine.
> --------------------------------------------------
> 
> For Pentium based PC.
> ------------------------------------------------
> BSP    : pcPentium
> IRQ    : 10
> IO Base: 0x300
> 
> In this case system does not recognize the
> interrupts.
>
-----------------------------------------------------
> 
> Plaese let me know if any one know the solution. Do
> I
> need to change the pentium BSP.
> 
> Thanks,
> Swamy
> 
> 
> 
> --- the vxWorks Users Group Exploder
> <vxwexplo@lbl.gov> wrote:
> > Submitted-by vxwexplo-errs@csg.lbl.gov  Mon Apr  2
> > 11:42:27 2001
> > Submitted-by: "Suresh T"
> > <suresht@future.futsoft.com>
> > 
> > Hi All,
> > 
> > Can anyone please tell how to identify whether a
> > given binary is a vxWorks
> > Image. Is there any vxWorks header or fileformat
> > included in the image. I am
> > using vxWorks for Strong ARM.
> > 
> > Advanced Thanks
> > Suresh
> > 
> > 
> > 
> > **********
> > 
> >     This is a user group mailing list for vxWorks
> > related topics
> >     see http://www-vxw.lbl.gov/vxworks for posting
> > and subscription info
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/
> 
> **********
> 
>     This is a user group mailing list for vxWorks
> related topics
>     see http://www-vxw.lbl.gov/vxworks for posting
> and subscription info

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

From vxwexplo-errs@csg.lbl.gov  Thu Apr 12 11:00:49 2001
From: RodFlancher@datacard.com
Date: Thu Apr 12 11:00:51 PDT 2001
Subject: vxWorks 5.4 and GDB 5.0

Is this combination possible? I donwloaded GDB 5.0 and would like to use it
as a command line debugger. I configured it with "./configure
--target=ppc-wrs-vxworks" and compiled (under Cygwin). It seems to compile
just fine, but I don't seem to be able to take it to the next step, that
is, I can't connect to the target (via ethernet). Any one have this
combination running? What are the tricks?

Rod Flancher

----------------------------------------
DataCard : 952-988-1458    RodFlancher@datacard.com
PRGA      : 952-934-4062    rflancher@prga.com

From vxwexplo-errs@csg.lbl.gov  Thu Apr 12 12:38:51 2001
From: s.eckardt@ixthos.com
Date: Thu Apr 12 12:38:53 PDT 2001
Subject: Shared Memory Network on CPCI

Has anyone implemented a VxWorks Shared Memory network on a Compact PCI
backplane?  Of particular interest is the method for determining the bus
address of the anchor memory.

Thanks,
Suzie Eckardt
Chief Software Engineer
Ixthos, Inc.
s.eckardt@ixthos.com

From vxwexplo-errs@csg.lbl.gov  Thu Apr 12 13:53:04 2001
From: "Crozier, Bruce" <Bruce.Crozier@fci.com>
Date: Thu Apr 12 13:53:06 PDT 2001
Subject: RE: Shared Memory Network on CPCI

Hi Susie,

I don't know of a general way to obtain an anchor address dynamically.

However, we have SM networking running between multiple boards on 
CPCIbus, using a systemwide statically defined address.  The simplest 
option we found was to use the traditional 0x00004100 address in the 
slot 1 board's memory, which, if you're using common hardware reference 
platform (CHRP) memory model for PPC CPU, maps to the same address in 
CPCIbus memory space.

We also got it running using memory on a non-slot 1 board's memory, but
it's a little more challenging to define the address in that case,
especially if you're dealing with a BIOS on the slot-1 board that is
dynamically assigning addresses.  In that case, I would suggest that
the slot 1 board be responsible for 'knowing' which board has been
designated as the anchor memory, and putting it's address at some
agreed-upon address in the slot 1 board's own memory (e.g. 0x00004100)
for the other boards to get it from.

Regards,
Bruce

-----Original Message-----
From: vxwexplo@lbl.gov [mailto:vxwexplo@lbl.gov]
Sent: Thursday, April 12, 2001 2:52 PM
To: vxworks_users@csg.lbl.gov
Subject: Shared Memory Network on CPCI

Has anyone implemented a VxWorks Shared Memory network on a Compact PCI
backplane?  Of particular interest is the method for determining the bus
address of the anchor memory.

Thanks,
Suzie Eckardt
Chief Software Engineer
Ixthos, Inc.
s.eckardt@ixthos.com

From vxwexplo-errs@csg.lbl.gov  Thu Apr 12 18:14:17 2001
From: "Deja User" <embedded123@my-deja.com>
Date: Thu Apr 12 18:14:19 PDT 2001
Subject: MCP750 Compact PCI Interrupt hook problem

VxWorks, Tornado
Host:winNT4.0
BSP:MCP750 v1.2/0
VxWorks 5.4

Hi All,

Iam using the Motorola MCP750 with VXWORKS.  I am trying to hook ISR to Compact PCI INTA#, I have written the following piece of code to test my ISR. 

I have spawned the "RootTask" from VxWorks target shell.

Whenever, I am pulling low my INTA# pin on the Compact PCI bus momentarily, the ISR is not activated. Even I could not able to see thru WindView.

Infact I have tried to print out my Interrupt vector number, I could get as 0x18. I think it is correct as per BSP document.

Can anyone suggest, what could be wrong?.

_______________________________________________________________
#include <vxWorks.h>
#include "config.h"
#include <stdio.h>

#define CPCI_INTA      (INT_VEC_IRQ0 + PMC_INT_LVL1)

void RootTask(void);
void isr_cpci (void);

void RootTask(void)
{
/*Hook up ISR routine to cPCI INT#A*/
if(ERROR == intConnect ( INUM_TO_IVEC (CPCI_INTA), isr_cpci, 0))

     printf("\nError in connecting to Interrupt");

/*Enable INTA#*/
if(ERROR == intEnable (PMC_INT_LVL1))
     logMsg("\n Error in Enabling cPCI INTA#");

while(1)
     {
     printf("\nInside RootTask");
     taskDelay(200);
     }

}

/*ISR for INTA#*/
void isr_cpci (void)
{
logMsg("\nEntered in to cPCI ISR sucessfully\n");
}

____________________________________________________________

Thanks in advance...

Regards,

Emblov.

------------------------------------------------------------
--== Sent via Deja.com ==--
http://www.deja.com/

From vxwexplo-errs@csg.lbl.gov  Fri Apr 13 07:15:28 2001
From: Vijay Shrivastav <vijay@rabox.com>
Date: Fri Apr 13 07:15:30 PDT 2001
Subject: Sandisk under vxWorks

Hello,

I have a Sandisk 48MB installed as the Primary Slave on a Teknor CPCI
Pentium board. I can boot the system under dos and transfer bootrom.sys
to the sandisk and then can boot the system by loading vxWorks.st from the
network.

Somehow I cannot see the sandisk after starting loading vxWorks.st.
ataShow(0,1) return with -1
and ataDevCreate(0,1,0,0) also returns 0x00

Any help would be appreciated.

Thanks.

-
Vijay Shrivastav                http://www.rabox.com
Phone: +1(408)436-8348          Email: vijay@rabox.com
Fax:   +1(408)451-9401

From vxwexplo-errs@csg.lbl.gov  Fri Apr 13 08:18:38 2001
From: "Ferrara, Bob" <BFerrara@unispherenetworks.com>
Date: Fri Apr 13 08:18:41 PDT 2001
Subject: Performance issues with FCC on 8260...

VxWorks/Tornado -

I am using VxWorks 5.4 and latest FCC driver from Wind River on my PPC
8260-based
board.

I am starting to analyze the performance capability of the FCC2 interface
(running at 100 Mbps).
The initial results look pretty poor as to it keeping up with Rx and Tx
packets.

Has anyone seen similar results?
Has anyone determined/fixed the bottleneck?

Thanks,
Bob

From vxwexplo-errs@csg.lbl.gov  Fri Apr 13 08:40:48 2001
From: "V. R. Venkataramana" <venkat@peribit.com>
Date: Fri Apr 13 08:40:50 PDT 2001
Subject: Question on PCI to ISA Bridge PC87200 VxWorks driver

This is a multi-part message in MIME format.

------=_NextPart_000_002F_01C0C3F5.8C452740
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

Can some one point out how to get started for wiriting driver to support =
interface card that has National Semi PC87200 PCI to ISA Bridge.  I need =
to program PC87200 to access watchdog timer and to program GPIOs.  Will =
I need to deal at BSP level or just write the driver (ISR to process the =
interrupts). I am new to VxWorks.  Any pointers or sample drivers will =
be of great help.

Thanks, Venkat

------=_NextPart_000_002F_01C0C3F5.8C452740
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can some one point out how to get =
started for=20
wiriting driver to support interface card that has National Semi PC87200 =
PCI to=20
ISA Bridge.&nbsp; I need to program PC87200 to access watchdog timer and =
to=20
program GPIOs.&nbsp; Will I need to deal at BSP level or just write the =
driver=20
(ISR to process the interrupts). I am&nbsp;new to VxWorks.  Any pointers =
or=20
sample drivers will be of great help.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks, Venkat</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_002F_01C0C3F5.8C452740--

From vxwexplo-errs@csg.lbl.gov  Fri Apr 13 10:59:18 2001
From: "S-Bridge NT PostMaster" <PostMaster@dhinstruments.com>
Date: Fri Apr 13 10:59:21 PDT 2001
Subject: Multi-POP BCC mail notification

No deliverable recipient addresses could be found in the following
message that was sent by you.

There are a number of possible reasons for this:

 1. The most probable reason is that you included BCC recipients
    in your message. The Multi-POP protocol used by this site does
    not support BCC recipients and therefore was unable to deliver
    your message to any of the BCC recipients. Please re-send your
    message and convert all BCC recipients to either TO or CC
    recipients.

 2. Some or all of the recipients were incorrectly addressed or
    are not registered mail users at this site. As a result no
    deliverable addresses could be identified. Please verify the
    addresses and re-send your message.

==== Message headers follow ====

  From:    the vxWorks Users Group Exploder <vxwexplo@lbl.gov>
  To:      vxworks_users <vxworks_users@csg.lbl.gov>
  Subject: <none>
  Date:    04/13/01 (Fri) 08:32:00.000

From vxwexplo-errs@csg.lbl.gov  Fri Apr 13 10:59:25 2001
From: "S-Bridge NT PostMaster" <PostMaster@dhinstruments.com>
Date: Fri Apr 13 10:59:32 PDT 2001
Subject: Multi-POP BCC mail notification

No deliverable recipient addresses could be found in the following
message that was sent by you.

There are a number of possible reasons for this:

 1. The most probable reason is that you included BCC recipients
    in your message. The Multi-POP protocol used by this site does
    not support BCC recipients and therefore was unable to deliver
    your message to any of the BCC recipients. Please re-send your
    message and convert all BCC recipients to either TO or CC
    recipients.

 2. Some or all of the recipients were incorrectly addressed or
    are not registered mail users at this site. As a result no
    deliverable addresses could be identified. Please verify the
    addresses and re-send your message.

==== Message headers follow ====

  From:    the vxWorks Users Group Exploder <vxwexplo@lbl.gov>
  To:      vxworks_users <vxworks_users@csg.lbl.gov>
  Subject: <none>
  Date:    04/13/01 (Fri) 08:52:00.000

From vxwexplo-errs@csg.lbl.gov  Fri Apr 13 12:49:27 2001
From: "S-Bridge NT PostMaster" <PostMaster@dhinstruments.com>
Date: Fri Apr 13 12:49:29 PDT 2001
Subject: Multi-POP BCC mail notification

No deliverable recipient addresses could be found in the following
message that was sent by you.

There are a number of possible reasons for this:

 1. The most probable reason is that you included BCC recipients
    in your message. The Multi-POP protocol used by this site does
    not support BCC recipients and therefore was unable to deliver
    your message to any of the BCC recipients. Please re-send your
    message and convert all BCC recipients to either TO or CC
    recipients.

 2. Some or all of the recipients were incorrectly addressed or
    are not registered mail users at this site. As a result no
    deliverable addresses could be identified. Please verify the
    addresses and re-send your message.

==== Message headers follow ====

  From:    the vxWorks Users Group Exploder <vxwexplo@lbl.gov>
  To:      vxworks_users <vxworks_users@csg.lbl.gov>
  Subject: <none>
  Date:    04/13/01 (Fri) 11:12:00.000

From vxwexplo-errs@csg.lbl.gov  Fri Apr 13 13:07:15 2001
From: "S-Bridge NT PostMaster" <PostMaster@dhinstruments.com>
Date: Fri Apr 13 13:07:17 PDT 2001
Subject: Multi-POP BCC mail notification

No deliverable recipient addresses could be found in the following
message that was sent by you.

There are a number of possible reasons for this:

 1. The most probable reason is that you included BCC recipients
    in your message. The Multi-POP protocol used by this site does
    not support BCC recipients and therefore was unable to deliver
    your message to any of the BCC recipients. Please re-send your
    message and convert all BCC recipients to either TO or CC
    recipients.

 2. Some or all of the recipients were incorrectly addressed or
    are not registered mail users at this site. As a result no
    deliverable addresses could be identified. Please verify the
    addresses and re-send your message.

==== Message headers follow ====

  From:    the vxWorks Users Group Exploder <vxwexplo@lbl.gov>
  To:      vxworks_users <vxworks_users@csg.lbl.gov>
  Subject: <none>
  Date:    04/13/01 (Fri) 11:14:00.000

From vxwexplo-errs@csg.lbl.gov  Fri Apr 13 15:01:18 2001
From: "S-Bridge NT PostMaster" <PostMaster@dhinstruments.com>
Date: Fri Apr 13 15:01:20 PDT 2001
Subject: Multi-POP BCC mail notification

No deliverable recipient addresses could be found in the following
message that was sent by you.

There are a number of possible reasons for this:

 1. The most probable reason is that you included BCC recipients
    in your message. The Multi-POP protocol used by this site does
    not support BCC recipients and therefore was unable to deliver
    your message to any of the BCC recipients. Please re-send your
    message and convert all BCC recipients to either TO or CC
    recipients.

 2. Some or all of the recipients were incorrectly addressed or
    are not registered mail users at this site. As a result no
    deliverable addresses could be identified. Please verify the
    addresses and re-send your message.

==== Message headers follow ====

  From:    the vxWorks Users Group Exploder <vxwexplo@lbl.gov>
  To:      vxworks_users <vxworks_users@csg.lbl.gov>
  Subject: <none>
  Date:    04/13/01 (Fri) 12:52:00.000

From vxwexplo-errs@csg.lbl.gov  Fri Apr 13 15:11:22 2001
From: "S-Bridge NT PostMaster" <PostMaster@dhinstruments.com>
Date: Fri Apr 13 15:11:24 PDT 2001
Subject: Multi-POP BCC mail notification

No deliverable recipient addresses could be found in the following
message that was sent by you.

There are a number of possible reasons for this:

 1. The most probable reason is that you included BCC recipients
    in your message. The Multi-POP protocol used by this site does
    not support BCC recipients and therefore was unable to deliver
    your message to any of the BCC recipients. Please re-send your
    message and convert all BCC recipients to either TO or CC
    recipients.

 2. Some or all of the recipients were incorrectly addressed or
    are not registered mail users at this site. As a result no
    deliverable addresses could be identified. Please verify the
    addresses and re-send your message.

==== Message headers follow ====

  From:    the vxWorks Users Group Exploder <vxwexplo@lbl.gov>
  To:      vxworks_users <vxworks_users@csg.lbl.gov>
  Subject: <none>
  Date:    04/13/01 (Fri) 13:12:00.000

From vxwexplo-errs@csg.lbl.gov  Fri Apr 13 18:29:29 2001
From: Alan Biocca <AKBiocca@lbl.gov>
Date: Fri Apr 13 18:29:31 PDT 2001
Subject: Bounce Filter Tuning

I made an additional adjustment to the Bounce Filter to address the bounces 
from today.

-- Alan Biocca

VxWorks

From vxwexplo-errs@csg.lbl.gov  Mon Apr 16 19:51:46 2001
From: "T. Hariharan" <hariharan@pobox.com>
Date: Mon Apr 16 19:51:48 PDT 2001
Subject: Task getting suspended under debugger

I observed a strange behavior today where the task I'm attached to in the
debugger (host=Win2000, Tornado 2.0.2, target=PentiumPc) gets suspended when
it does a free(). I was stepping through the task till a certain point and
then let it continue. But it didn't respond to user input, so I interrupted
the debugger to check the stack. It looked like this:

taskSuspend()
memPartFree()
free()
fclose()
SaveConfig()
...

Anyone know the reason for this behaviour?

Just did some more digging. The memory partition must've been created with
the MEM_BLOCK_ERROR_SUSPEND_FLAG option. This is supposed to log an error
message (must be to the console) and suspend the task, but I didn't see any
error messages. Does anyone out there have good (or bad) experience with
tools like MemScope/StethoScope?

Thanks,
Hari

From vxwexplo-errs@csg.lbl.gov  Tue Apr 17 01:39:09 2001
From: "David Anderson" <david.anderson@dtrack.com>
Date: Tue Apr 17 01:39:11 PDT 2001
Subject: RE: Task getting suspended under debugger

vxWorks , Tornado

Hari,
   The only thing I can add to this is that if free(..) is called with an invalid memory block address
then the thing will suspend. But I hope that this is obvious (?). Now what might NOT be obvious
is something I fell foul of not too long ago...

if the file descriptor being closed by an fclose() is INVALID ( i.e. it's value is corrupted ) then when
fclose() does a memPartFree() you get a suspend if the memory block being free'd is also invalid
.... but NOT ALWAYS !.

I found that my code ran fine without the debugger ( because the invalid value in my file descriptor
was 'valid' from the system perspective ). When I ran with the debugger it crashed, because the debugger
wrote different values into the local workspace prior to calling fclose().. so instead of picking up 
a 'valid' invalid value for the file descriptor (such as zero ;-) ) it picked up a truly invalid value.... and suspends.

David Anderson. 

These thoughts are entirely my own, do not represent a company view and carry no warranty or guarantee of
accuracy or relevance. Use entirely at your own risk.

> I observed a strange behavior today where the task I'm attached to in the
> debugger (host=Win2000, Tornado 2.0.2, target=PentiumPc) gets suspended when
> it does a free(). I was stepping through the task till a certain point and
> then let it continue. But it didn't respond to user input, so I interrupted
> the debugger to check the stack. It looked like this:
> 
> taskSuspend()
> memPartFree()
> free()
> fclose()
> SaveConfig()
> ...
> 
> Anyone know the reason for this behaviour?
> 
> Just did some more digging. The memory partition must've been created with
> the MEM_BLOCK_ERROR_SUSPEND_FLAG option. This is supposed to log an error
> message (must be to the console) and suspend the task, but I didn't see any
> error messages. Does anyone out there have good (or bad) experience with
> tools like MemScope/StethoScope?
> 
> Thanks,
> Hari

From vxwexplo-errs@csg.lbl.gov  Tue Apr 17 07:33:19 2001
From: Bill Brown <wlbrown@lbl.gov>
Date: Tue Apr 17 07:33:22 PDT 2001
Subject: New MCP750s Don't Run VxWorks Boot Code

We just received a shipment of 15 new MCP750s.  Loaded VxWorks 
boot file boot.bin per instructions in BSP doc (target.txt).  When I
switch jumper location to boot from just-written FLASH, there is no
console output, and CPU light glows a steady tight-loop green.

Verified same behavior on second new MCP750.  First 64 or so locations
at boot address match those of two older MCP750s that work OK.  Also 
matches Unix dump of file loaded. Newest cards have same amount of 
memory as same speed MCP750 that works OK.

Only difference is that card assembly number on the one that works is
01-W1685B25G, whereas new ones are 01-W1685B25J.

I'm using the same kernel build in both cases.

Any suggestions?

-bill

From vxwexplo-errs@csg.lbl.gov  Tue Apr 17 18:14:20 2001
From: "Wei-Hsin Lee" <wlee@peribit.com>
Date: Tue Apr 17 18:14:22 PDT 2001
Subject: create directory in the file system in vxworks

Hi,

  Does anyone know how to create a directory in the
mounted file system in vxworks? Will opendir do it?
Please advise and thanks in advance.

-Wei-Hsin

From vxwexplo-errs@csg.lbl.gov  Wed Apr 18 04:01:23 2001
From: "Wirtz, Paul N" <Paul.Wirtz@Europe.Boeing.com>
Date: Wed Apr 18 04:01:26 PDT 2001
Subject: vxworks nfsMount client side attributes

In attempting to debug a network write failure I am trying to find out
how vxworks defaultts mount atttributes and how they are modified:

	as in:  hard versus soft mount for a rw exported file system

I am exporting a file system from a Digital Alpha running DigUnix4.0d
and the VxWorks machine is mounting and writing as per NFSv2 though
it seems this may be a soft mount because the full write fails and write
replys from the Alpha server are missing tho the VxWorks box continues
to send write fragments...approx. 1.2MB raster file is what is being sent.

Thanks...paul

From vxwexplo-errs@csg.lbl.gov  Wed Apr 18 21:28:19 2001
From: Sunny.K@Chennaimail.ltitl.com
Date: Wed Apr 18 21:28:21 PDT 2001
Subject: Help me ...............

Hi ,

I am new to this field  and i believe you are kind enough in clearing my
qerries, let me list down  my querries

I am trying to develop a simple application progrme(serial port access) that
runs on VxWorks which recides on an MBX860 board.
I am Using tornado ver1.01,
1.What I/O function I will use inorder to access the serialport   of MBX 860 to
send a byte to a hyper terminal connected to it
2. Whether BSP for MBX 860 is requiered to make the above serial port acess
function to work?
3.I have the BSP for MBX860 How can I make use of it (as this is having serial
port driver)in order to reduce my serial access application code to a minimum?
4.If I need to make a VxWorks run time image having BSP and my application what
way I can achieve this ?
5.How can I test(see the output) my code (not even serial access like simple
"printf" ) with out having target?
6.When I need to create my application in VxWorks do i need to make any changes
in make file?

Thank You Very much  for your time

Sunny Kunnumpuram

From vxwexplo-errs@csg.lbl.gov  Thu Apr 19 00:40:42 2001
From: "Rama Krishna Mandava" <ramakrishna.mandava@wipro.com>
Date: Thu Apr 19 00:40:44 PDT 2001
Subject: serial port access in MBX860

> 1.What I/O function I will use inorder to access the serialport   of MBX 860 to
> send a byte to a hyper terminal connected to it

	  U can use InByte ,OutByte functions  . pls refer to vxWorks I/O
	  Manuals .

> 2. Whether BSP for MBX 860 is requiered to make the above serial port acess
> function to work?

	yes .because the serial controller is not like 16550 UART in  x86 .
	It's a different controller .pls refer to MBX860 Manuals .

> 3.I have the BSP for MBX860 How can I make use of it (as this is having serial
> port driver)in order to reduce my serial access application code to a minimum?

  write your own serial driver and give different device name .U can disable 
  existing serial driver in Makefile .

> 4.If I need to make a VxWorks run time image having BSP and my application what
> way I can achieve this ?

	 better maintain different make file and build only single OBJ modile
	 and then link with vxWoks standard image .

> 5.How can I test(see the output) my code (not even serial access like simple
> "printf" ) with out having target?

	U must have MBX860 target and serial application on the host 

> 6.When I need to create my application in VxWorks do i need to make any changes
> in make file?

	better maintain two Makefiles and link together into single image .

rk

From vxwexplo-errs@csg.lbl.gov  Thu Apr 19 00:54:44 2001
From: Sunny Kunnumpuram <sunnykunnumpuram@yahoo.com>
Date: Thu Apr 19 00:54:46 PDT 2001
Subject: help me..................

     

       I am new to this field  and I believe you are
kind enough in clearing my qerries, let me list down
THE QUERRIES

I am trying to develop a simple application
progrme(serial port access) that runs on VxWorks which
recides on an MBX860 board. 
I am Using tornado ver1.01,
1.What I/O function I will use inorder to access the
serialport   of MBX 860 to send a byte to a hyper
terminal connected to it
2. Whether BSP for MBX 860 is requiered to make the
above serial port acess function to work?
3.I have the BSP for MBX860 How can I make use of it
(as this is having serial port driver)in order to
reduce my serial access application code to a minimum?
4.If I need to make a VxWorks run time image having
BSP and my application what way I can achieve this ?
5.How can I test(see the output) my code (not even
serial access like simple "printf" ) with out having
target?
6.When I need to create my application in VxWorks do i
need to make any changes in make file?    

Thank You Very much  for your time

Sunny Kunnumpuram
Kunnumpuram (H)
Chertahla P.O
Kerala

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

From vxwexplo-errs@csg.lbl.gov  Thu Apr 19 06:50:47 2001
From: Fiederling.Ulf@dornier.dasa.de
Date: Thu Apr 19 06:50:49 PDT 2001
Subject: Synchronize symbol table

Hi all

How can I synchronize the symbol tables between host and target, to run
downloaded modules directly from the target shell. While synchronizing, we
get a

" Fatal WTX error (0x1012f), synchronization stopped"

We are using Tornado II with a pentium target.

Thanks in advance

Ulf

From vxwexplo-errs@csg.lbl.gov  Thu Apr 19 08:28:51 2001
From: "Mike Anderson" <mike@theptrgroup.com>
Date: Thu Apr 19 08:28:53 PDT 2001
Subject: RE: Help me ...............

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C0C8C4.2B60C000
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

VxWorks Greetings!

> Submitted-by: Sunny.K@Chennaimail.ltitl.com
>
>
> I am new to this field  and i believe you are kind enough in clearing my
> qerries, let me list down  my querries
>
>
> I am trying to develop a simple application progrme(serial port
> access) that
> runs on VxWorks which recides on an MBX860 board.
> I am Using tornado ver1.01,
> 1.What I/O function I will use inorder to access the serialport
> of MBX 860 to
> send a byte to a hyper terminal connected to it

For Tornado 1.01, this is really fairly straightforward.  If you
look at your devices list (-> devs), you should have some devices
like /TyCo/0 and /TyCo/1.  These devices are handles for the physical
serial ports.  To access one of these ports, open it:

-> fd = open("/TyCo/1", 2, 0)  ; opens in O_RDWR (read/write) mode

Once you have the fd, use read and write to send and receive bytes:

-> numBytesWritten = write(fd, buffer, sizeof(buffer))
or
-> numBytesRead = read(fd, buffer, sizeof(buffer))

Once you have the fd, you can also use the ioctl commands to change
port speeds or put the port into "raw" mode as you would if you were
trying to run a protocol across the serial port.

-> opt = 1
-> ioctl(fd, OPT_RAW, &opt)  ; you'll have to pull the value of OPT_RAW
                             ; from the headers, I forget what it is
                             ; right off the top of my head :-)

> 2. Whether BSP for MBX 860 is requiered to make the above serial
> port acess
> function to work?

If the BSP is working, then these serial port accesses should also
be working.

> 3.I have the BSP for MBX860 How can I make use of it (as this is
> having serial
> port driver)in order to reduce my serial access application code
> to a minimum?

Use the above examples and your code needs know nothing of the
details of the serial channel.

> 4.If I need to make a VxWorks run time image having BSP and my
> application what
> way I can achieve this ?

1) You can build your app into the VxWorks image by placing your source
   into usrConfig.c (not a recommended approach).

2) You can link your compiled application into the VxWorks image using
   the MACH_EXTRA option of the Makefile and simply call it from
   the usrRoot code in usrConfig.c (much better approach)

3) Turn you application into a library and add it to the EXTRA_LIBS option
   of the Makefile.  You'll still have to reference the entrypoint in
   usrRoot though.

> 5.How can I test(see the output) my code (not even serial access
> like simple
> "printf" ) with out having target?

This is difficult using T101.  With T2, you get the simulator which
would allow you to debug without a target.  Also, Motorola isn't
really selling the MBX860 any longer.  So, if you're planning to
buy one from Motorola, you may have a long wait.  You might want
to look at the RPX Classic from Embedded Planet
(http://www.embeddedplanet.com) as an alternative.

> 6.When I need to create my application in VxWorks do i need to
> make any changes
> in make file?
>

Well, it depends.  For option 1 in question #4, no.  For options 2
or 3, yes.

> Thank You Very much  for your time
>

HTH,

Mike Anderson
--
=======================================================
       T h e   P T R   G r o u p,   I n c.
=======================================================
       Embedded, Real-Time Solutions

Mike Anderson             mailto:mike@ThePTRGroup.com
Chief Scientist           http://www.ThePTRGroup.com
V: (703) 585-9384         F: (703) 430-3748
=======================================================
"Software development is like making a baby...
 You can't make a baby in one month by impregnating
 nine women.  Some things just take time."

------=_NextPart_000_0000_01C0C8C4.2B60C000
Content-Type: text/x-vcard;
	name="Mike Anderson.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Mike Anderson.vcf"

BEGIN:VCARD
VERSION:2.1
N:Anderson;Mike
FN:Mike Anderson
ORG:The PTR Group, Inc.
TITLE:Chief Scientist
TEL;WORK;VOICE:(703) 585-9384
TEL;WORK;FAX:(703) 430-3748
ADR;WORK:;;1438 Cellar Creek Way;Herndon;VA;20170;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1438 Cellar Creek =
Way=3D0D=3D0AHerndon, VA 20170=3D0D=3D0AUSA
URL:
URL:http://www.theptrgroup.com
EMAIL;PREF;INTERNET:mike@theptrgroup.com
REV:20001211T173220Z
END:VCARD

------=_NextPart_000_0000_01C0C8C4.2B60C000--

From vxwexplo-errs@csg.lbl.gov  Mon Apr 23 00:37:09 2001
From: "Reznik, Alex" <alex.reznik@terayon.com>
Date: Mon Apr 23 00:37:11 PDT 2001
Subject: bootpParamsGet for vxWorks 5.4 does not work?

               Hello, all,
	for several years we successfully used the bootp request both in the
bootROM and while starting vxWorks 5.3.1 . The implementation of this
request was bootpParamsGet function call.
	Now we have moved to vxWorks 5.4. The prototype of this function was
seriously changed and there is no backward compatibility. I did my best with
the exact definition of parameters - the result remained the same: after the
call from vxWorks's BSP (or from an additional application module) the
bootpParamsGet function returns ERROR on timeout. 
	What is the principal thing, the bootROM remains the previous one,
produced from vxWorks 5.3.1. And it does execute bootp request correctly!
So, I download
the vxWorks by using bootp (flags=0xc0 in the boot line) and get bootp
request timeout after vxWorks v.5.4 started to work.
 	What did I wrong? a) not exact network definitions in configAll.h;
b) wrong parameters;  c) there is a patch that should be downloaded.

           I am confused with this issue. Any useful advise will be
appreciated with grate.
Regards,
Alex Reznik
S/W team leader,
Terayon
+972-3-607-78-60
alexr@terayon.com

From vxwexplo-errs@csg.lbl.gov  Mon Apr 23 04:39:52 2001
From: Ilia Bosis <Ilia_Bosis@packetlight.com>
Date: Mon Apr 23 04:39:55 PDT 2001
Subject: RE: bootpParamsGet for vxWorks 5.4 does not work?

While I havn't out-of-the-box solution, there are some suggestions:
Try to see what's going on the wire.
Connect some network analyzer to the Ethernet port
and observe the messages going to and from the target when issuing
bootpParamsGet.

If the target transmits ANYTHING ?
    If not - check the ifName parameter. 
        If it's correct?
    If the mentioned interface up & running ?
          (use ifShow to check it)
Check also the interface statistics displayed by ifShow.
   If the number of non-multicast Tx frames 
   increments each time You issue the bootpParamsGet ?
If the target transmits BOOTP requests, but gets no answers,
check the server BOOTP table. 
    Is the target Ehternet port MAC address is listed there ?
Maybe, there is a number of BOOTP replies on each request ?
   If yes, chances are there is some another machine on the net 
   that runs BOOTP server, those replies confuse the target.
   The IP and MAC source addresses in the reply will get You a clue.
   

-----Original Message-----
From: vxwexplo@lbl.gov [mailto:vxwexplo@lbl.gov]
Sent: Monday, April 23, 2001 9:52 AM
To: vxworks_users@csg.lbl.gov
Subject: bootpParamsGet for vxWorks 5.4 does not work?

Submitted-by vxwexplo-errs@csg.lbl.gov  Mon Apr 23 00:37:09 2001
Submitted-by: "Reznik, Alex" <alex.reznik@terayon.com>

               Hello, all,
	for several years we successfully used the bootp request both in the
bootROM and while starting vxWorks 5.3.1 . The implementation of this
request was bootpParamsGet function call.
	Now we have moved to vxWorks 5.4. The prototype of this function was
seriously changed and there is no backward compatibility. I did my best with
the exact definition of parameters - the result remained the same: after the
call from vxWorks's BSP (or from an additional application module) the
bootpParamsGet function returns ERROR on timeout. 
	What is the principal thing, the bootROM remains the previous one,
produced from vxWorks 5.3.1. And it does execute bootp request correctly!
So, I download
the vxWorks by using bootp (flags=0xc0 in the boot line) and get bootp
request timeout after vxWorks v.5.4 started to work.
 	What did I wrong? a) not exact network definitions in configAll.h;
b) wrong parameters;  c) there is a patch that should be downloaded.

           I am confused with this issue. Any useful advise will be
appreciated with grate.
Regards,
Alex Reznik
S/W team leader,
Terayon
+972-3-607-78-60
alexr@terayon.com

--------------------------------------------
Ilia Bosis               
Software Engineer
PacketLight Networks
Tel:    +972-9-7644228
Fax:   +972-9-7645444
E-mail: Ilia_Bosis@packetlight.com
Web:    www.packetlight.com
 

From vxwexplo-errs@csg.lbl.gov  Mon Apr 23 05:01:16 2001
From: Sunny Kunnumpuram <sunnykunnumpuram@yahoo.com>
Date: Mon Apr 23 05:01:18 PDT 2001
Subject:  serial port access in MBX860

Hi All,

        Thank you once again for your answers.As
Tornado 1.01 does not have VxSim  Simulator ,I down
loaded  Tornado II-evaluation version.Now he(tornado
II) is reciding on my wIndows 2000.Pls. go through the
scenario

1.I configured the Target server  with WDBPIPE as my  
 back end

2.Launched the simulator successfully 
"simpc/vxworks.exe" as my image.

3.Got the Shell prompt at simulator window.

4. When I typed  "devs" at shell prompt I got
  some thing like this

     0  /null
     1  /tyCo/0
     3  /host:
     4  /vio
     5  /tgtsvr

   value=0  =0x0
  and I was very clear that the simulator is
recoganising the PC serial port .
   
Now my intention was to wite a 'C' file which will
open the serial port and write a series of bytes to
serial port and I could be able to see the outputted
bytes in the hyper terminal attached to that com port

Here is the code written(named as FILE.C) to achieve
that
#include "vxWorks.h"
#include "fcntl.h"
#include "selectLib.h"
#include "ioLib.h"

STATUS ser(void)
{
int   st1=3,st2=8;
int sv=676,w_st=1,ary=26;
char dta[]={'a','b','c','d','e','f','g','h','i','j'};

 	sv = open("/tyCo/0",2,0x777);
	st1 = ioctl(sv, FIOBAUDRATE, 9600);
	st2 = ioctl(sv, FIOSETOPTIONS, OPT_RAW);

		w_st= write(sv,dta, 10);

		
       /* printf("\n%d",dta);  */

		/*printf("\n%d,\t%d,\t%c",sv,w_st,dta[ary]);*/

		/*w_st= write(sv, &dta, 10);*/

}

now this programe is builded(FILE1.O) without any
error using tornado II build tool ,then  launched the
simulator and downloaded FILE1.O to the simulator.

Now the shell prompt is accepting the command  ->ser,
but I am not gettig any bytes at the com port-1,
)When I tried to print the returned values of open and
write  functions i am gettig integers)

    1.Why this is so,Whether the problem lies in the
code or the way I associated it with Simulator?
    

Thank you very much for the time you spend for this.

I beleive you are kind enough to send a solution

thank you

Sunny

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

From vxwexplo-errs@csg.lbl.gov  Mon Apr 23 06:13:29 2001
From: Sunny.K@Chennaimail.ltitl.com
Date: Mon Apr 23 06:13:32 PDT 2001
Subject: Serial port access

Hi All,

        Thank you once again for your answers.As Tornado 1.01 does not have
VxSim  Simulator ,I down loaded  Tornado II-evaluation version.Now he(tornado
II) is reciding on my wIndows 2000.Pls. go through the scenario

1.I configured the Target server  with WDBPIPE as my    back end

2.Launched the simulator successfully  "simpc/vxworks.exe" as my image.

3.Got the Shell prompt at simulator window.

4. When I typed  "devs" at shell prompt I got
  some thing like this

     0  /null
     1  /tyCo/0
     3  /host:
     4  /vio
     5  /tgtsvr

   value=0  =0x0
  and I was very clear that the simulator is recoganising the PC serial port .

Now my intention was to wite a 'C' file which will open the serial port and
write a series of bytes to serial port and I could be able to see the outputted
bytes in the hyper terminal attached to that com port

Here is the code written(named as FILE.C) to achieve that
#include "vxWorks.h"
#include "fcntl.h"
#include "selectLib.h"
#include "ioLib.h"

STATUS ser(void)
{
int   st1=3,st2=8;
int sv=676,w_st=1,ary=26;
char dta[]={'a','b','c','d','e','f','g','h','i','j'};

     sv = open("/tyCo/0",2,0x777);
     st1 = ioctl(sv, FIOBAUDRATE, 9600);
     st2 = ioctl(sv, FIOSETOPTIONS, OPT_RAW);

          w_st= write(sv,dta, 10);

       /* printf("\n%d",dta);  */

          /*printf("\n%d,\t%d,\t%c",sv,w_st,dta[ary]);*/

          /*w_st= write(sv, &dta, 10);*/

}

now this programe is builded(FILE1.O) without any error using tornado II build
tool ,then  launched the simulator and downloaded FILE1.O to the simulator.

Now the shell prompt is accepting the command  ->ser, but I am not gettig any
bytes at the com port-1,
)When I tried to print the returned values of open and write  functions i am
gettig integers)

    1.Why this is so,Whether the problem lies in the code or the way I
associated it with Simulator?

Thank you very much for the time you spend for this.

I beleive you are kind enough to send a solution

thank you

Sunny

From vxwexplo-errs@csg.lbl.gov  Mon Apr 23 14:15:39 2001
From: Sumit  Garg <sgarg@apertonet.com>
Date: Mon Apr 23 14:15:41 PDT 2001
Subject: Getting core dump after  a crash

Hi,

I am aware that GDB provides support for core file processing. However, I am
unable to find a method to generate a core file
for  a vxWorks/i960 platform. I looked up in the tWdbAgent task, for
providing an API to store/dume the core file, but was unsuccessful.

Any help would be deeply appreciated.

Thanks in advance
Sumit

From vxwexplo-errs@csg.lbl.gov  Mon Apr 23 14:23:36 2001
From: Sumit  Garg <sgarg@apertonet.com>
Date: Mon Apr 23 14:23:38 PDT 2001
Subject: Getting the core dump

Hi,

I am aware that GDB provides support for core file processing for crash
analysis. However, I am unable to find a method to generate a core file for
a vxworks on i960 platform.

I looked up in the tWdbAgent task, for providing an API to store/dump the
core file, but was unsuccessful.

Any help would be deeply appreciated.

Thanks in advance
Sumit

From vxwexplo-errs@csg.lbl.gov  Mon Apr 23 23:38:49 2001
From: hiteshb@contechsoftware.com (Hitesh Boda)
Date: Mon Apr 23 23:38:51 PDT 2001
Subject: Some Querry on File Access and Network Connection using Vxsim

Hi all
1> file Access
    I am working on Vxworks Prototyper, I want to access file from my 
harddisk. As per reference document this prototype support file access. 
when ever I try to open(Create) file using 'OPNE' command. it will always 
return -1. I don't know What is a problem with my code. If any one wokring 
on File access then please help me.

2> Network communication
    I am successfull open multiple Simulator on my PC and able to 
communicate between differen simulator and my host pc.
    Now I want to communicate between two simulator on different PC. I am 
issue Ping Command from my second PC but it doesn't find simulator or ULIP. 
Can you help me.

Hitesh Boda
Module Leader
ERTA (Embedded and Real Time Application),
Contech Software Ltd.
E-3/1,2,3, GIDC Electronics Estate,Sector - 25, Gandhinagar - 382 044, 
INDIA
Tel : (Office )+91(2712) 44989/43324/43328, (R) :+91 - (2712) - 46478
Email : hiteshb@contech.soft.net(office),
	 HTBODA@123india.com (personal)
CompanyURL : http://www.contechsoftware.com

From vxwexplo-errs@csg.lbl.gov  Wed Apr 25 06:05:41 2001
From: "Dhaliwal, Jas" <Jas.Dhaliwal@mindready.com>
Date: Wed Apr 25 06:05:43 PDT 2001
Subject: MIPS / IDTS134 /BCM3350 question

Hello

I am compiling code for a Broadcom 3350 (MIPS32). I am using the IDTS134 BSP

as baseline.

When I compile one module (CPU set to RC32364 in makefile) I get warnings. 
See below. 
--------
ccmips -BC:\Tornado2_MIPS/host/x86-win32/lib/gcc-lib/ -EB -mgp32 -mcpu=r4000

-mips2 -non_shared -G 0  -ansi -pedantic -nostdinc -O2 -funroll-loops -fno-
for-scope  -I/h  -I. -Ibsp_common_V2_01_40\os\vxworks -
Ibsp_common_V2_01_40\CmHal_bcm3350 -Ibsp_common_V2_01_40\nihal -
Ibsp_common_V2_01_40\os\vxworks/ptovx_lib -Ibsp_common_V2_01_40\hpna\include

-Ibsp_common_V2_01_40\hpna -Ibsp_common_V2_01_40\common_inc -Isrc  -I. -
IC:\Tornado2_MIPS\target\config\all -IC:\Tornado2_MIPS\target/h -
IC:\Tornado2_MIPS\target/src/config -IC:\Tornado2_MIPS\target/src/drv -
DCPU=RC32364 -DMIPSEB -DCPU_VAR=RC32364 -DPROCESSOR_TYPE=BCMMIPS -DBCM93350
-
DTARGETOS_vxWorks -Dclock_frequency=6 -Dclock_frequency_daughtercard
=6 -DXTALFREQ=24000000 -DUSE_IDTS134_STARTCODE -DBCM_BCOPY_CHANGE -
DEXEC_FROM_FLASH=1 -DCOPY_ROMRAM=0  -DIL_FIXES -DIL_IOCTL -DIL_STATS -
DIL_PROTOS -DMSI -DNOSPROM -DDBG=1 -DNV_USE_FLASH=1 -DINCLUDE_D
OCSIS_IGMP     -P -x assembler-with-cpp -c -o newbcopy.o newbcopy.s
C:\TEMP\cca02325.s: Assembler messages:
C:\TEMP\cca02325.s:4231: Warning: Instruction not supported on this
processor
C:\TEMP\cca02325.s:4232: Warning: Instruction not supported on this
processor
C:\TEMP\cca02325.s:4350: Warning: Instruction not supported on this
processor
C:\TEMP\cca02325.s:4351: Warning: Instruction not supported on this
processor
-----------------------------------

If I change the compile options for this module from mips2 to mips3 I get no

warnings and the code compiles cleanly. My understanding of the Broadcom3350

is that it implements all mips2 instructions.

I used -save-flags options in compile to check the assembler lines causing 
the error. The instructions on those lines are part of the the Broadcom 
instruction set.

Any ideas or pointers on this issue would be appreciated.

Regards
Jas Dhaliwal

Software Engineer
Mindready 
2800 avenue Marie-Curie,
St-Laurent, Quebec
Canada
H4S 2C2

Tel: (514) 339-1394 x2125
Fax: (514) 339-1376
mailto:jas.dhaliwal@mindready.com

From vxwexplo-errs@csg.lbl.gov  Wed Apr 25 06:41:36 2001
From: f.pertin@staubli.com
Date: Wed Apr 25 06:41:38 PDT 2001
Subject: select and taskdelete

Hello VXWORKS and TORANDO guru,

i am using the select facility on a x86.
Does anybody know how to delete a task which is pending on a select ???
Another solution is to cancel the select but I did not succeed to cancel
select which function can I use ???

Thanks

Francois

From vxwexplo-errs@csg.lbl.gov  Wed Apr 25 09:14:15 2001
From: "Kiran  Joshi" <kiran_vx@rediffmail.com>
Date: Wed Apr 25 09:14:17 PDT 2001
Subject:  Timer and Semaphoretake

vxworks and tornado

Hello,
I am using posix timers to get timer functionality. In the main task I am creating and starting a timer. After that I am blocking on binary semaphore(semTake). As soon as timer expires it calls timer handler and main task rises an exception (Exception number 4) saying Illegal instruction and main task goes to suspended state from pend state. 
If anyone knows how to solve this problem (timer event and wait on semaphore), pls inform.
Thanks,
Kiran.

_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com

From vxwexplo-errs@csg.lbl.gov  Wed Apr 25 15:34:21 2001
From: "Wei-Hsin Lee" <wlee@peribit.com>
Date: Wed Apr 25 15:34:23 PDT 2001
Subject: daylight saving issue in vxworks (tornado)

Hi,

  I have problem to make daylight saving work in vxworks.
It seems to me that vxworks does not support daylight saving
flag when setting system time by using mktime or something like
that. Does anyone have suggestion for this? Please advise. Thanks,

-Wei-Hsin

From vxwexplo-errs@csg.lbl.gov  Wed Apr 25 18:08:28 2001
From: Zack McClaine <workvx@yahoo.com>
Date: Wed Apr 25 18:08:30 PDT 2001
Subject: Re: daylight saving issue in vxworks (tornado)

There is an open SPR#27606 which has patch in Tornado
2 Cumulative Patch 2 (T2CP2) title of which is
"Daylight savings time does not fall back an hour in
the fall, when mktime and clock_settime is used"
You may have to contact WRS support.

-Zack.

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

From vxwexplo-errs@csg.lbl.gov  Thu Apr 26 07:39:20 2001
From: kumaran senthur <qumaran@yahoo.com>
Date: Thu Apr 26 07:39:22 PDT 2001
Subject: Vxworks

i am kumaran,i am new user of tornado as well as
Vxworks.my question is:

"How to configure a standalone target and how to
execute an application in standalone mode"

mail me the procedures to acheive the above to improve
my knowledge in vxworks.i will be very happy if any
one of u guides me to acheive.

My mail id: qumaran@yahoo.com

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

From vxwexplo-errs@csg.lbl.gov  Fri Apr 27 00:12:01 2001
From: Sunny Kunnumpuram <sunnykunnumpuram@yahoo.com>
Date: Fri Apr 27 00:12:03 PDT 2001
Subject: Re: Vxworks

Hi Kumaran,

I did not get you ,what you mean by stand alone
targedo you mean target without host or not using the
IDE tools

in that case you can configure BSP including
standalone symbol table option and shell

then build the BSP to make a vxWorks.st image
,download it to target now your target is stand alone

respond
regards
sunny

--- the vxWorks Users Group Exploder
<vxwexplo@lbl.gov> wrote:
> Submitted-by vxwexplo-errs@csg.lbl.gov  Thu Apr 26
> 07:39:20 2001
> Submitted-by: kumaran senthur <qumaran@yahoo.com>
> 
> i am kumaran,i am new user of tornado as well as
> Vxworks.my question is:
> 
> "How to configure a standalone target and how to
> execute an application in standalone mode"
> 
> mail me the procedures to acheive the above to
> improve
> my knowledge in vxworks.i will be very happy if any
> one of u guides me to acheive.
> 
> 
> My mail id: qumaran@yahoo.com
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/
> 
> **********
> 
>     This is a user group mailing list for vxWorks
> related topics
>     see http://www-vxw.lbl.gov/vxworks for posting
> and subscription info

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

From vxwexplo-errs@csg.lbl.gov  Fri Apr 27 00:12:20 2001
From: Sunny Kunnumpuram <sunnykunnumpuram@yahoo.com>
Date: Fri Apr 27 00:12:22 PDT 2001
Subject: Re: Vxworks

Hi Kumaran,

I did not get you ,what you mean by stand alone
targedo you mean target without host or not using the
IDE tools

in that case you can configure BSP including
standalone symbol table option and shell

then build the BSP to make a vxWorks.st image
,download it to target now your target is stand alone

respond
regards
sunny

--- the vxWorks Users Group Exploder
<vxwexplo@lbl.gov> wrote:
> Submitted-by vxwexplo-errs@csg.lbl.gov  Thu Apr 26
> 07:39:20 2001
> Submitted-by: kumaran senthur <qumaran@yahoo.com>
> 
> i am kumaran,i am new user of tornado as well as
> Vxworks.my question is:
> 
> "How to configure a standalone target and how to
> execute an application in standalone mode"
> 
> mail me the procedures to acheive the above to
> improve
> my knowledge in vxworks.i will be very happy if any
> one of u guides me to acheive.
> 
> 
> My mail id: qumaran@yahoo.com
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/
> 
> **********
> 
>     This is a user group mailing list for vxWorks
> related topics
>     see http://www-vxw.lbl.gov/vxworks for posting
> and subscription info

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

From vxwexplo-errs@csg.lbl.gov  Fri Apr 27 00:29:32 2001
From: mamta choudhary <mamta_choudhary@yahoo.com>
Date: Fri Apr 27 00:29:35 PDT 2001
Subject: filesystem query

--0-290869955-988356569=:53094
Content-Type: text/plain; charset=us-ascii

Hello!

 I have downloaded Tornado evaluation version from wrs.com. When i try to open a file on host file system, the file is opened but i'm unable to create a file and read or write from the file . Can anyone tell me what is the default filesystem path for vxSim and how to initialize the file system if I want to use some a file system other than default filesystem ?  

Regards 
Mamta 

---------------------------------
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
--0-290869955-988356569=:53094
Content-Type: text/html; charset=us-ascii

<P>Hello!</P><BR><BR><BR>
<P>&nbsp;I have downloaded Tornado evaluation version from wrs.com. When i try to open a file on host file system, the file is opened but i'm unable to create a file and read or write from the file . Can anyone tell me what is the default filesystem path for vxSim and how to initialize the file system if I want to use some a file system other than default filesystem ?&nbsp; </P><BR><BR><BR>
<P>Regards <BR>Mamta </P><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://auctions.yahoo.com/">Yahoo! Auctions</a> - buy the things you want at great prices
--0-290869955-988356569=:53094--

From vxwexplo-errs@csg.lbl.gov  Fri Apr 27 05:59:00 2001
From: santosh <santosh.gangal@patni.com>
Date: Fri Apr 27 05:59:02 PDT 2001
Subject: VXWORKS : Modem connectivity

Hi All

I am working on the Cirrus Logic hardware board (7500FE). The OS sitting on the board is VxWorks.

The hardware board has got the ISA slot in which my Digicom modem sits. I have written the code to dial to the ISP through the modem on the hardware board. I could successfully connect to the ISP , initiate the PPP connection and could download the  html file from the site. 
Now I am facing problems with the connectivity of the modem to the RAS server. When I dial my normal ISP it gives me the following string
"Username:"
and waits for the user to enter the username. The same thing is done for the Password. And in this manner the authentication is done by the ISP server. But when i try to connect to the local RAS server i am not receiving any string. And that is why I am not able to get on to the Intranet of my workplace. I tried to connect to the RAS server through the Dial Up Networking software and that time it displayed a window prompting Username and Password. But when i try to connect through my code i am stuck up in the receive loop.

i am stuck up at this stage.
any suggestion regarding this would be appriciated..

From vxwexplo-errs@csg.lbl.gov  Fri Apr 27 13:37:53 2001
From: Kevin Dodd <KDodd@WESCAM.com>
Date: Fri Apr 27 13:37:55 PDT 2001
Subject: VxWorks TSFS and disk copy

I am trying to build a utiity to copy files from a TFFS disk to the TSFS
disk and visa versa. This seems like it should be quite easy, however I
cannot successfuly copy files from the TSFS disk. Any ideas would be greatly
welcomed

Kevin E. Dodd	
SR SW/Systems Engineer
Wescam-Healdsburg
Fax: 707-433-7110
Email: kdodd@wescam.com
Direct Phone:707-473-1114

Those who say a thing cannot be done.....
         Should not hamper those who are doing it

From vxwexplo-errs@csg.lbl.gov  Fri Apr 27 16:15:36 2001
From: Alan Biocca <AKBiocca@lbl.gov>
Date: Fri Apr 27 16:15:39 PDT 2001
Subject: List News Updates

VxWorks Tornado Mailing List News Updates

List Changes Caught Up

I got a bit behind in applying the email requests to the subscription list.
They should all be current (as of 2 days ago). If we could get someone at 
Wind River
Systems to update their web page it would sure help. I've sent some email
to them but perhaps it didn't get to a live person, I've received no
response. Their page still indicates to send email to the request address.
That makes extra work for us and it doesn't go very fast, as this mail is
queued and handled on a weekly to monthly basis. Perhaps someone at Wind
River could contact me about this.

Subscription Management Web Interface

All list management should be done through the web interface now. It
appears to be working well, with occasionally some slight confusion.

There are four fields in the database. One is the email address. The other
three are booleans for subscription to 1) the immediate list, 2) the daily
digest, and 3) account disable.

The way it works is:

1) if immediate is true, articles will go out as they come in to this address.
2) if digest is true, a daily digest of articles will be emailed once per day.
1) and 2) can both occur, if you want both immediate articles and a daily
digest copy
3) if account disable is true, no email will go to the address. this is
dominant and wins over 1) and 2)

Bad Addresses Disabled

The purpose of the account disable is primarily for bad address bounce
disablement. If an account bounces email for more than 15 days it is put on
a bad address list. When I push the button, the addresses on this list are
disabled. This occurs weekly to monthly, so an address must bounce email
for quite a while before we disable it. We get about two to five new
members per week on this list.

Changing Subscribed Addresses when Moving

The way to change addresses is to disable the old address and register the
new one. For security and software simplicity reasons we don't currently
allow a direct 'change' function. You can disable an address in one of two
ways. Either set both immediate and digest to false, or set disable
account. No email will be sent to that address. It will remain in the
database. At some point we will purge inactive addresses, though this is a
near-zero priority.

Newsgroup Digest Problem

The comp.os.vxworks newsgroup daily digest is not working, and has not for
some time. The error it is generating is one that usually goes away in a
few days, clearly this is not the case here. I suspect a change was made in
our local newsfeed server that has broken our news gathering program. It
will have to be debugged or replaced. This effort has not been scheduled.

Note that the exploder list daily digest IS working. The digest that isn't
working gathers articles from the usenet newsgroup comp.os.vxworks and
emails them to the list members (both daily and digest users get this
mailing) (when it works..).

New Machine Upgrade

We are currently in the process of building a new machine for the list. We
plan to improve the software at the same time, so this will take awhile
before it is online. Suggestions for this new system may be sent to me
directly. We are planning a FreeBSD based system, with mirrored Raid drives
for reliability and uninterruptible power (California you know). I'm
considering what software to use. At this point I'm not so interested in
using Majordomo as I once was, but I am increasingly interested in
connecting the core code we already have for filtering, etc. to a Phorum
PHP/MySQL based engine. That would provide a web interface to the articles
in addition to the email lists. Phorum also allows the capability to sign
up for email on a specific thread without getting the whole list. I am also
considering putting all the back articles into MySQL and providing search
pages.

Another feature we could consider is to filter the newsgroup to block
off-topic postings, the way we do the mailing list.

At any rate, this is a back-burner project, so it will proceed at a fairly
slow pace.

-- Alan K Biocca

From vxwexplo-errs@csg.lbl.gov  Sun Apr 29 05:34:08 2001
From: Rainer Stelzer <r.stelzer@stoye.de>
Date: Sun Apr 29 05:34:10 PDT 2001
Subject: BSP design -- Cache / SDRAM-Burst problem on MPC823e CPU

Hi vxworkers,

I 've a question dedicated to the BSP designers out there.

problem:
In opposit to a early version of our CPU (populated with a MPC821)
the new version of the board with the MPC823e is unable to run
when burst mode in SDRAM Bank is enabled.
We have to turn off the burstmode, otherwhise the system crashes.
( An other way to prevent the system from crashing, is to turn off
cache support (#undef INCLUDE_CACHE_SUPPORT) with SDRAM
burst turned on, but the reason will be that no one uses the burst
capability anymore )
So I checked the burst timing of the UPMA with the MCUInit Tool,
compared
it with other BSP solutions, do a lot of measurements with the logic
analyser.
The result was, that the timing of the MPC823e looks exactly the same
like the
MPC821 one.

System details:
hardware:
custom PC104 CPU board populated with a MPC823e (Mask Code 0x2401, mask
Set 1J13D)
running with 50MHz from a fixed oscillator. PLL unused, as recomended.
16MByte SDRAM realized with two 64MBit Chips
(in this case the very common K4S641634D-TI80 from Samsung)

software:
realtime OS vxworks with a self designed BoardSupportPackage
derived from MBX860 with suggestions from different other BSP's
from Windriver, Linux bootloaders and the Motorola documentation
especialy the SDRAM suggestions .

questions:
- does somebody out there run vxworks on a MPC823e with SDRAM in
  burst mode ?

- I expect the memory controller of the MPC823e to be the same as the
  MPC821 one's   (e.g. when using Motorolas MCUInit tool),
  cause I can't find a hint that it changed.
  Is this assumption valid ?

- refering the MPC823e errata sheet from 30.March 2000:
  - Is this the latest errata sheet ?
  - is it valid for the mask Set 1J13D too ?
  - There are some hints around the instruction cache (and one regarding

    the data cache) I discussed each point listed in there and I came to

    result that no one match's my problem.
    ( I do not believe that it is a cache problem, cause cache works
with
      SDRAM burst turned off  )
    or can somebody see a dependancy between chache problems listed in
this
    document and the SDRAM burst problem ?

- Any other hint ?????

Thanx in advance !

regards

Rainer

=====================================================
            Gebrder Stoye GmbH
department: traffic control systems
      Name: Rainer Stelzer
       Adr: Longericher Strasse 177
      city: Cologne, Germany
       Zip: 50739
     phone: ++49/221/2616-551
    mailto: r.stelzer@stoye.de
       www: http://www.stoye.de
=====================================================

From vxwexplo-errs@csg.lbl.gov  Sun Apr 29 16:42:07 2001
From: "Mike Anderson" <mike@theptrgroup.com>
Date: Sun Apr 29 16:42:09 PDT 2001
Subject: RE: Some Querry on File Access and Network Connection using Vxsim

This is a multi-part message in MIME format.

------=_NextPart_000_0019_01C0D0E4.B5F1D6A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

VxWorks Greetings!

>
> Hi all
> 1> file Access
>     I am working on Vxworks Prototyper, I want to access file from my
> harddisk. As per reference document this prototype support file access.
> when ever I try to open(Create) file using 'OPNE' command. it will always
> return -1. I don't know What is a problem with my code. If any one wokring
> on File access then please help me.
>

You problem is most likely that you did not enable read/write access in the
target server when you created it.  Go to the Tornado tool and configure
your target server.  In the drop down, select Target Server File System and
enable read/write access using the check box.  Also, set a root filesystem.
Then you should be able to create and write files.

If you already have done this, then make sure that the file you're trying to
open already exists and that you've positioned the file system to the proper
directory using "cd" from the WindSh.  If you're trying to make a new file,
then either use the create call (instead of open) or "or" in the O_CREAT
flag
into the flags for the open call.

> 2> Network communication
>     I am successfull open multiple Simulator on my PC and able to
> communicate between differen simulator and my host pc.
>     Now I want to communicate between two simulator on different PC. I am
> issue Ping Command from my second PC but it doesn't find
> simulator or ULIP.
> Can you help me.
>

Your problem is most likely routing.  Make sure that your second PC has a
route to the 90.0.0.254 gateway address as:

route add 90.0.0.0 mask 255.0.0.0 <gateway> METRIC 2

You will also have to add a return route in VxWorks:

-> mRouteAdd("<other pc>", "90.0.0.254", 0xffffff00, 0, 0)

HTH,

Mike Anderson
--
=======================================================
       T h e   P T R   G r o u p,   I n c.
=======================================================
    Embedded, Real-Time Solutions and Training

Mike Anderson             mailto:mike@ThePTRGroup.com
Chief Scientist           http://www.ThePTRGroup.com
V: (703) 585-9384         F: (703) 430-3748
=======================================================
"Software development is like making a baby...
 You can't make a baby in one month by impregnating
 nine women.  Some things just take time."

------=_NextPart_000_0019_01C0D0E4.B5F1D6A0
Content-Type: text/x-vcard;
	name="Mike Anderson.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Mike Anderson.vcf"

BEGIN:VCARD
VERSION:2.1
N:Anderson;Mike
FN:Mike Anderson
ORG:The PTR Group, Inc.
TITLE:Chief Scientist
TEL;WORK;VOICE:(703) 585-9384
TEL;WORK;FAX:(703) 430-3748
ADR;WORK:;;1438 Cellar Creek Way;Herndon;VA;20170;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1438 Cellar Creek =
Way=3D0D=3D0AHerndon, VA 20170=3D0D=3D0AUSA
URL:
URL:http://www.theptrgroup.com
EMAIL;PREF;INTERNET:mike@theptrgroup.com
REV:20001211T173220Z
END:VCARD

------=_NextPart_000_0019_01C0D0E4.B5F1D6A0--

From vxwexplo-errs@csg.lbl.gov  Sun Apr 29 16:52:58 2001
From: "Mike Anderson" <mike@theptrgroup.com>
Date: Sun Apr 29 16:53:00 PDT 2001
Subject: RE: Vxworks

This is a multi-part message in MIME format.

------=_NextPart_000_001C_01C0D0E6.458C6C20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

VxWroks Greetings!

> Submitted-by: kumaran senthur <qumaran@yahoo.com>
>
> i am kumaran,i am new user of tornado as well as
> Vxworks.my question is:
>
> "How to configure a standalone target and how to
> execute an application in standalone mode"
>
> mail me the procedures to acheive the above to improve
> my knowledge in vxworks.i will be very happy if any
> one of u guides me to acheive.
>

1) You can build your app into the VxWorks image by placing your source
   into usrConfig.c (not a recommended approach).

2) You can link your compiled application into the VxWorks image using
   the MACH_EXTRA option of the Makefile and simply call it from
   the usrRoot code in usrConfig.c (much better approach)

3) Turn you application into a library and add it to the EXTRA_LIBS option
   of the Makefile.  You'll still have to reference the entrypoint in
   usrRoot though.

Once you've decided which of these techniques that you're planning to use,
you can then build a standalone VxWorks image from either the T2 build
spec (assuming you created the project as a bootable) or from the command
line as "make vxworks.st".

HTH,

Mike Anderson
--
=======================================================
       T h e   P T R   G r o u p,   I n c.
=======================================================
    Embedded, Real-Time Solutions and Training

Mike Anderson             mailto:mike@ThePTRGroup.com
Chief Scientist           http://www.ThePTRGroup.com
V: (703) 585-9384         F: (703) 430-3748
=======================================================
"Software development is like making a baby...
 You can't make a baby in one month by impregnating
 nine women.  Some things just take time."

------=_NextPart_000_001C_01C0D0E6.458C6C20
Content-Type: text/x-vcard;
	name="Mike Anderson.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Mike Anderson.vcf"

BEGIN:VCARD
VERSION:2.1
N:Anderson;Mike
FN:Mike Anderson
ORG:The PTR Group, Inc.
TITLE:Chief Scientist
TEL;WORK;VOICE:(703) 585-9384
TEL;WORK;FAX:(703) 430-3748
ADR;WORK:;;1438 Cellar Creek Way;Herndon;VA;20170;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1438 Cellar Creek =
Way=3D0D=3D0AHerndon, VA 20170=3D0D=3D0AUSA
URL:
URL:http://www.theptrgroup.com
EMAIL;PREF;INTERNET:mike@theptrgroup.com
REV:20001211T173220Z
END:VCARD

------=_NextPart_000_001C_01C0D0E6.458C6C20--

From vxwexplo-errs@csg.lbl.gov  Sun Apr 29 16:53:24 2001
From: "Mike Anderson" <mike@theptrgroup.com>
Date: Sun Apr 29 16:53:26 PDT 2001
Subject: RE: select and taskdelete

This is a multi-part message in MIME format.

------=_NextPart_000_001F_01C0D0E6.520C30C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

VxWorks Greetings!

> Submitted-by: f.pertin@staubli.com
>
> i am using the select facility on a x86.
> Does anybody know how to delete a task which is pending on a select ???
> Another solution is to cancel the select but I did not succeed to cancel
> select which function can I use ???
>

  You can issue the ioctl FIOUNSELECT on the fd(s) to remove that
task ID from the selWakeupList for each fd.

HTH,

Mike Anderson
--
=======================================================
       T h e   P T R   G r o u p,   I n c.
=======================================================
    Embedded, Real-Time Solutions and Training

Mike Anderson             mailto:mike@ThePTRGroup.com
Chief Scientist           http://www.ThePTRGroup.com
V: (703) 585-9384         F: (703) 430-3748
=======================================================
"Software development is like making a baby...
 You can't make a baby in one month by impregnating
 nine women.  Some things just take time."

------=_NextPart_000_001F_01C0D0E6.520C30C0
Content-Type: text/x-vcard;
	name="Mike Anderson.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Mike Anderson.vcf"

BEGIN:VCARD
VERSION:2.1
N:Anderson;Mike
FN:Mike Anderson
ORG:The PTR Group, Inc.
TITLE:Chief Scientist
TEL;WORK;VOICE:(703) 585-9384
TEL;WORK;FAX:(703) 430-3748
ADR;WORK:;;1438 Cellar Creek Way;Herndon;VA;20170;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1438 Cellar Creek =
Way=3D0D=3D0AHerndon, VA 20170=3D0D=3D0AUSA
URL:
URL:http://www.theptrgroup.com
EMAIL;PREF;INTERNET:mike@theptrgroup.com
REV:20001211T173220Z
END:VCARD

------=_NextPart_000_001F_01C0D0E6.520C30C0--

From vxwexplo-errs@csg.lbl.gov  Sun Apr 29 17:04:40 2001
From: "Mike Anderson" <mike@theptrgroup.com>
Date: Sun Apr 29 17:04:42 PDT 2001
Subject: RE: Serial port access

This is a multi-part message in MIME format.

------=_NextPart_000_0022_01C0D0E7.E8ED9140
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

VxWorks Greetings!

> Submitted-by: Sunny.K@Chennaimail.ltitl.com
>
>
>
>         Thank you once again for your answers.As Tornado 1.01
> does not have
> VxSim  Simulator ,I down loaded  Tornado II-evaluation version.Now
> he(tornado
> II) is reciding on my wIndows 2000.Pls. go through the scenario
>
> 1.I configured the Target server  with WDBPIPE as my    back end
>
> 2.Launched the simulator successfully  "simpc/vxworks.exe" as my image.
>
> 3.Got the Shell prompt at simulator window.
>
> 4. When I typed  "devs" at shell prompt I got
>   some thing like this
>
>      0  /null
>      1  /tyCo/0
>      3  /host:
>      4  /vio
>      5  /tgtsvr
>
>    value=0  =0x0
>   and I was very clear that the simulator is recoganising the PC
> serial port
> .
>
> Now my intention was to wite a 'C' file which will open the
> serial port and
> write a series of bytes to serial port and I could be able to see the
> outputted
> bytes in the hyper terminal attached to that com port
>

<snip>

>
> now this programe is builded(FILE1.O) without any error using tornado II
> build
> tool ,then  launched the simulator and downloaded FILE1.O to the
> simulator.
>
> Now the shell prompt is accepting the command  ->ser, but I am not gettig
> any
> bytes at the com port-1,
> )When I tried to print the returned values of open and write
> functions i am
> gettig integers)
>
>     1.Why this is so,Whether the problem lies in the code or the way I
> associated it with Simulator?
>

Look at the console window that was automatically started when you launched
the simulator.  That's where the output will appear.  The "/tyCo/0" that
you see in the simulator is a dummy that routes to that console window.  The
simulator can't give you access to the "real" physical serial port on the PC
without writing a helper app on the PC to take the I/O and route it to the
serial port.  However, when you run on a real target, the approach that you
outline above will work as advertised.

HTH,

Mike Anderson
--
=======================================================
       T h e   P T R   G r o u p,   I n c.
=======================================================
    Embedded, Real-Time Solutions and Training

Mike Anderson             mailto:mike@ThePTRGroup.com
Chief Scientist           http://www.ThePTRGroup.com
V: (703) 585-9384         F: (703) 430-3748
=======================================================
"Software development is like making a baby...
 You can't make a baby in one month by impregnating
 nine women.  Some things just take time."

------=_NextPart_000_0022_01C0D0E7.E8ED9140
Content-Type: text/x-vcard;
	name="Mike Anderson.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Mike Anderson.vcf"

BEGIN:VCARD
VERSION:2.1
N:Anderson;Mike
FN:Mike Anderson
ORG:The PTR Group, Inc.
TITLE:Chief Scientist
TEL;WORK;VOICE:(703) 585-9384
TEL;WORK;FAX:(703) 430-3748
ADR;WORK:;;1438 Cellar Creek Way;Herndon;VA;20170;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1438 Cellar Creek =
Way=3D0D=3D0AHerndon, VA 20170=3D0D=3D0AUSA
URL:
URL:http://www.theptrgroup.com
EMAIL;PREF;INTERNET:mike@theptrgroup.com
REV:20001211T173220Z
END:VCARD

------=_NextPart_000_0022_01C0D0E7.E8ED9140--

From vxwexplo-errs@csg.lbl.gov  Sun Apr 29 22:47:47 2001
From: Sunny Kunnumpuram <sunnykunnumpuram@yahoo.com>
Date: Sun Apr 29 22:47:49 PDT 2001
Subject: RE: Serial port access

Hi ,

     Thank you very much for the responce .Now i have
areal target MBX860 and Tornado 1.01 with bsp for
MBX860.Pls. go through the following scenario

   1.I woul like to use Target Shell instead of
tornado shell So I configured the BSP  with shell,and
stand alone Symbol table now the builded image is
downloaded to the the MBX 860 RAM
   2.Now at a Hyper terminal I am getting the target
Shell 
      2.a. Help command is responding ,Devs command
responds with tyco/0 and Null only
      2.b ls responds with [can not open "."]
      2.c pwd responds with nothing but value =1 

   3. Now I want to download an application to this
shell 

4. Using ld command can I download a .O file saved at
Hyper Terminal PC's hard disk to the target Shell?

5. Or Should I need to establish a file system in
target RAM (No hard Disk attached to MBX860) and then
I have  to copy the .O file to the target file system
and supply the path in ld command to load the
application to the shell .If I am right  Pls. tell me
how could I create a file system at  the target ? 

6.Whether the file system creation commands could be
executed from shell prompt. Or 

7.after creating a .O file (for the filesystem
creation) and Include that in add modules option of
cofigure BSP dialog box to build a vxworks
image(vxWorks.st) and then booting the board with this
immage is sufficient to establish a file system at
target
8. Pls. tell me what are all the options to be
included while configuring BSP in order to establish
target file systyem  
9.In short my requirement is to down load an
application to the target recident shell not a Tornado
shell.

Thank you for your time i9n advance
Sunny

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

From vxwexplo-errs@csg.lbl.gov  Sun Apr 29 22:48:03 2001
From: Sunny Kunnumpuram <sunnykunnumpuram@yahoo.com>
Date: Sun Apr 29 22:48:05 PDT 2001
Subject: RE: Serial port access

Hi ,

     Thank you very much for the responce .Now i have
areal target MBX860 and Tornado 1.01 with bsp for
MBX860.Pls. go through the following scenario

   1.I woul like to use Target Shell instead of
tornado shell So I configured the BSP  with shell,and
stand alone Symbol table now the builded image is
downloaded to the the MBX 860 RAM
   2.Now at a Hyper terminal I am getting the target
Shell 
      2.a. Help command is responding ,Devs command
responds with tyco/0 and Null only
      2.b ls responds with [can not open "."]
      2.c pwd responds with nothing but value =1 

   3. Now I want to download an application to this
shell 

4. Using ld command can I download a .O file saved at
Hyper Terminal PC's hard disk to the target Shell?

5. Or Should I need to establish a file system in
target RAM (No hard Disk attached to MBX860) and then
I have  to copy the .O file to the target file system
and supply the path in ld command to load the
application to the shell .If I am right  Pls. tell me
how could I create a file system at  the target ? 

6.Whether the file system creation commands could be
executed from shell prompt. Or 

7.after creating a .O file (for the filesystem
creation) and Include that in add modules option of
cofigure BSP dialog box to build a vxworks
image(vxWorks.st) and then booting the board with this
immage is sufficient to establish a file system at
target
8. Pls. tell me what are all the options to be
included while configuring BSP in order to establish
target file systyem  
9.In short my requirement is to down load an
application to the target recident shell not a Tornado
shell.

Thank you for your time i9n advance
Sunny

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

From vxwexplo-errs@csg.lbl.gov  Sun Apr 29 23:21:00 2001
From: "sachin verma" <svsachin20@hotmail.com>
Date: Sun Apr 29 23:21:02 PDT 2001
Subject: Tornado

Hi
I am Sachin. I have a problem regarding logMsg utility.
Actually when I use logMsg for board i.e CPU R4000
It doesn't work fine but It(logMsg) works fine when I use Simulator for NT 
i.e SIMNT.
eg
If I want to print messages from this code
for(i=0;i<=1000;i++)
logMsg("Value of i is %d\n",i,0,0,0,0,0);

Some of the output is missing inbetween...like
upto 450..it is ok.. then 451-480.. are missing..
and then output upto 600 is Ok...and then output is missing...randomly..

Please tell me where can be the problem..

Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

From vxwexplo-errs@csg.lbl.gov  Mon Apr 30 00:37:39 2001
From: "Mamta Choudhary" <mchoudhary@impetus.co.in>
Date: Mon Apr 30 00:37:41 PDT 2001

Hi,

We are using Tornado 2.0 evaluation version. In this we are facing some 
problems in use of files:
When we try to open a pre-existing file or create a file with O_CREAT 
and O_RDWR option it returns a valid file descriptor value. But when we 
try to read or write from/to this file it gives error which are like 
 S_iosLib_INVALID_FILE_DESCRIPTOR, or
 S_iosLib_DUPLICATE_DEVICE_NAME.

Sometimes it successfully creates/opens a file and allows us to perform 
read/write to the corresponding file. The whole behaviour of files in 
VxSim seems very unpredictable to us.
Could u please enlighten us about file handling in VxSim.

Thankx in advance,
Mamta Choudhary
Impetus Infotech (India) Ltd.
Indore MP
India

From vxwexplo-errs@csg.lbl.gov  Mon Apr 30 00:44:27 2001
From: pakkua80@us.sina.com
Date: Mon Apr 30 00:44:29 PDT 2001
Subject: RE: Vxworks

hi, 

   I am currently trying to boot my target to my host trough LAN ( ethernet ). I am setting up my vxWorks image to be DHCPv4 runtime client enabled. The problem is when i build the vxworks image and error message 

C:\siao\default\prjConfig.c:66: snmp\snmpdInit.h: No such file or directory
make: *** [prjConfig.o] Error 0x1

Done.

even I Excluded the DHCP client timestamp setup and bootp client. As for the Boot image, I have included the relevent defination . 

#define INCLUDE_DHCPC
#define DHCPC_CPORT 68
#define DHCPC_DEFAULT_LEASE 3600
#define DHCPC_MAX_LEASE 4
#define DHCPC_MIN_LEASE 30
#define DHCPC_OFFER_TIMEOUT 5
#define DHCPC_SPORT 67

The LAN setting is that there is a DHCP server in the LAN which is not under my control. Do I have to setup a DHCP server on my own to take control of all the ip distribution ? My network setup is that there is a HUB connecting 4 PCs and a uplink cable to a subnet. Please help . Thanks 

ching
Student Internship Program 
Temasek Polytechnic

_______________________________________________________________
http://www.SINA.com - #1 Destination Site for Chinese Worldwide

From vxwexplo-errs@csg.lbl.gov  Mon Apr 30 06:05:38 2001
From: "Mike Anderson" <mike@theptrgroup.com>
Date: Mon Apr 30 06:05:40 PDT 2001
Subject: RE: Tornado

This is a multi-part message in MIME format.

------=_NextPart_000_003B_01C0D154.FEE25E00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

VxWorks Greetings!

> Submitted-by: "sachin verma" <svsachin20@hotmail.com>
>
> Hi
> I am Sachin. I have a problem regarding logMsg utility.
> Actually when I use logMsg for board i.e CPU R4000
> It doesn't work fine but It(logMsg) works fine when I use
> Simulator for NT
> i.e SIMNT.
> eg
> If I want to print messages from this code
> for(i=0;i<=1000;i++)
> logMsg("Value of i is %d\n",i,0,0,0,0,0);
>
> Some of the output is missing inbetween...like
> upto 450..it is ok.. then 451-480.. are missing..
> and then output upto 600 is Ok...and then output is missing...randomly..
>
>

Your problem is that you've filled up the tLogTask pipe and messages
are being discarded.  Either reduce the rate at which you produce
logMsgs or increase the size of the tLogTask pipe (NUM_LOG_MSGS from
configAll.h).

HTH,

Mike Anderson
--
=======================================================
       T h e   P T R   G r o u p,   I n c.
=======================================================
    Embedded, Real-Time Solutions and Training

Mike Anderson             mailto:mike@ThePTRGroup.com
Chief Scientist           http://www.ThePTRGroup.com
V: (703) 585-9384         F: (703) 430-3748
=======================================================
"Software development is like making a baby...
 You can't make a baby in one month by impregnating
 nine women.  Some things just take time."

------=_NextPart_000_003B_01C0D154.FEE25E00
Content-Type: text/x-vcard;
	name="Mike Anderson.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Mike Anderson.vcf"

BEGIN:VCARD
VERSION:2.1
N:Anderson;Mike
FN:Mike Anderson
ORG:The PTR Group, Inc.
TITLE:Chief Scientist
TEL;WORK;VOICE:(703) 585-9384
TEL;WORK;FAX:(703) 430-3748
ADR;WORK:;;1438 Cellar Creek Way;Herndon;VA;20170;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1438 Cellar Creek =
Way=3D0D=3D0AHerndon, VA 20170=3D0D=3D0AUSA
URL:
URL:http://www.theptrgroup.com
EMAIL;PREF;INTERNET:mike@theptrgroup.com
REV:20001211T173220Z
END:VCARD

------=_NextPart_000_003B_01C0D154.FEE25E00--

From vxwexplo-errs@csg.lbl.gov  Mon Apr 30 10:08:28 2001
From: "Senthil K Kumar" <ksekumar@ipunity.com>
Date: Mon Apr 30 10:08:30 PDT 2001
Subject: Dumping the core image of vxWorks.

Hi All,

Anyone have tried to dump the core image of vxWorks after the software fails
Any help on this regard is appreciated and thanks.

Senthil K Kumar

--------------------------------------------
IP Unity

From vxwexplo-errs@csg.lbl.gov  Mon Apr 30 13:59:12 2001
From: "Mike Anderson" <mike@theptrgroup.com>
Date: Mon Apr 30 13:59:14 PDT 2001
Subject: RE: Serial port access

This is a multi-part message in MIME format.

------=_NextPart_000_004C_01C0D197.317B3980
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

VxWorks Greetings!

> Submitted-by: Sunny Kunnumpuram <sunnykunnumpuram@yahoo.com>
>
> Hi ,
>
>      Thank you very much for the responce .Now i have
> areal target MBX860 and Tornado 1.01 with bsp for
> MBX860.Pls. go through the following scenario
>
>    1.I woul like to use Target Shell instead of
> tornado shell So I configured the BSP  with shell,and
> stand alone Symbol table now the builded image is
> downloaded to the the MBX 860 RAM

I assume that you're downloading this via Ethernet?

>    2.Now at a Hyper terminal I am getting the target
> Shell
>       2.a. Help command is responding ,Devs command
> responds with tyco/0 and Null only
>       2.b ls responds with [can not open "."]
>       2.c pwd responds with nothing but value =1
>

Because you're using a WinDoze host, you'll need to start up
an FTP server for access from the Target Shell.  Any of the
freeware/shareware FTP servers will do.  If you've loaded
your bootrom into Flash, then simply specify the boot parameters
and add a password in the Password: field and viola!  You will
have a new device listed called <boothostname>:

For example, a boot host name of boothost

-> cd "boothost:/subdirectory"
-> ls
<listing follows>

Alternatively, you can use netDevCreate:

-> hostAdd("boothost", "<IP address>")
-> netDevCreate("boothost:", "boothost:", 1)  ; 0 = RSH, 1 = FTP
-> iam(userID, ftppassword)
-> cd "boothost:/subdir"
-> ls

>    3. Now I want to download an application to this
> shell
>

Once you have the above working, cd to the appropriate directory and
use the ld command:

-> cd "boothost:/dir"
-> ld < filename.o

> 4. Using ld command can I download a .O file saved at
> Hyper Terminal PC's hard disk to the target Shell?
>

Yes.  See answer to #3.

> 5. Or Should I need to establish a file system in
> target RAM (No hard Disk attached to MBX860) and then
> I have  to copy the .O file to the target file system
> and supply the path in ld command to load the
> application to the shell .If I am right  Pls. tell me
> how could I create a file system at  the target ?
>

Not necessary.  However, if you wanted to do this you would have to
include the ram disk and dosFS code.  Then:

-> pBlkDev = ramDevCreate(0, 512, 1024, 1024, 0) ; creates a 512K RAM
                                                 ; Disk malloced from system
RAM
-> dosFsMkfs("/ram0", pBlkDev)

Then you'd have to have #2 working to copy over the file.

> 6.Whether the file system creation commands could be
> executed from shell prompt. Or

Yes.  As shown in #5.

>
> 7.after creating a .O file (for the filesystem
> creation) and Include that in add modules option of
> cofigure BSP dialog box to build a vxworks
> image(vxWorks.st) and then booting the board with this
> immage is sufficient to establish a file system at
> target

Yes.  This can be done as well.  Place the functions in usrConfig.c
in the usrAppInit() function or at the end of usrRoot().

> 8. Pls. tell me what are all the options to be
> included while configuring BSP in order to establish
> target file systyem

You can take the lines from #2 and add them to usrRoot and rebuild
your standalone VxWorks image.  If you want to use a hard disk instead,
that is a whole other discussion.

> 9.In short my requirement is to down load an
> application to the target recident shell not a Tornado
> shell.
>

I think I've beaten this one to death by now ;-)

Regards,

Mike Anderson
--
=======================================================
       T h e   P T R   G r o u p,   I n c.
=======================================================
    Embedded, Real-Time Solutions and Training

Mike Anderson             mailto:mike@ThePTRGroup.com
Chief Scientist           http://www.ThePTRGroup.com
V: (703) 585-9384         F: (703) 430-3748
=======================================================
"Software development is like making a baby...
 You can't make a baby in one month by impregnating
 nine women.  Some things just take time."

------=_NextPart_000_004C_01C0D197.317B3980
Content-Type: text/x-vcard;
	name="Mike Anderson.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Mike Anderson.vcf"

BEGIN:VCARD
VERSION:2.1
N:Anderson;Mike
FN:Mike Anderson
ORG:The PTR Group, Inc.
TITLE:Chief Scientist
TEL;WORK;VOICE:(703) 585-9384
TEL;WORK;FAX:(703) 430-3748
ADR;WORK:;;1438 Cellar Creek Way;Herndon;VA;20170;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1438 Cellar Creek =
Way=3D0D=3D0AHerndon, VA 20170=3D0D=3D0AUSA
URL:
URL:http://www.theptrgroup.com
EMAIL;PREF;INTERNET:mike@theptrgroup.com
REV:20001211T173220Z
END:VCARD

------=_NextPart_000_004C_01C0D197.317B3980--

From vxwexplo-errs@csg.lbl.gov  Mon Apr 30 14:38:28 2001
From: "Ferrara, Bob" <BFerrara@unispherenetworks.com>
Date: Mon Apr 30 14:38:30 PDT 2001
Subject: Performance issues with FCC on 8260...

> VxWorks/Tornado -
> 
> I am using VxWorks 5.4 and latest FCC driver from Wind River on my PPC
> 8260-based board.
> 
> I am starting to analyze the performance capability of the FCC2 interface
> (running at 100 Mbps).
> The initial results look pretty poor as to it keeping up with Rx and Tx
> packets.
> 
> Has anyone seen similar results?
> Has anyone determined/fixed the bottleneck?
> 
> Thanks,
> Bob
> 

From vxwexplo-errs@csg.lbl.gov  Mon Apr 30 16:27:48 2001
From: "Mike Anderson" <mike@theptrgroup.com>
Date: Mon Apr 30 16:27:50 PDT 2001
Subject: RE: Performance issues with FCC on 8260...

This is a multi-part message in MIME format.

------=_NextPart_000_0054_01C0D1AB.E1BA4E30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

VxWorks Greetings!

> Submitted-by: "Ferrara, Bob" <BFerrara@unispherenetworks.com>
>
> >
> > I am using VxWorks 5.4 and latest FCC driver from Wind River on my PPC
> > 8260-based board.
> >
> > I am starting to analyze the performance capability of the FCC2
> interface
> > (running at 100 Mbps).
> > The initial results look pretty poor as to it keeping up with Rx and Tx
> > packets.
> >
> > Has anyone seen similar results?
> > Has anyone determined/fixed the bottleneck?
> >

Most of the problems with the 8260 FCC can be tracked down to the
use (or lack thereof) of cache memory in the driver.  Experiments
have shown data rates ranging from 300 KBytes/sec with caches
disabled to almost 9 MBytes/sec with the caches full on and a
cache coherency strategy in place.

BTW, say hello to Jim Knowles and Peter Tosi for me.

HTH,

Mike Anderson
--
=======================================================
       T h e   P T R   G r o u p,   I n c.
=======================================================
    Embedded, Real-Time Solutions and Training

Mike Anderson             mailto:mike@ThePTRGroup.com
Chief Scientist           http://www.ThePTRGroup.com
V: (703) 585-9384         F: (703) 430-3748
=======================================================
"Software development is like making a baby...
 You can't make a baby in one month by impregnating
 nine women.  Some things just take time."

------=_NextPart_000_0054_01C0D1AB.E1BA4E30
Content-Type: text/x-vcard;
	name="Mike Anderson.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Mike Anderson.vcf"

BEGIN:VCARD
VERSION:2.1
N:Anderson;Mike
FN:Mike Anderson
ORG:The PTR Group, Inc.
TITLE:Chief Scientist
TEL;WORK;VOICE:(703) 585-9384
TEL;WORK;FAX:(703) 430-3748
ADR;WORK:;;1438 Cellar Creek Way;Herndon;VA;20170;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1438 Cellar Creek =
Way=3D0D=3D0AHerndon, VA 20170=3D0D=3D0AUSA
URL:
URL:http://www.theptrgroup.com
EMAIL;PREF;INTERNET:mike@theptrgroup.com
REV:20001211T173220Z
END:VCARD

------=_NextPart_000_0054_01C0D1AB.E1BA4E30--