From vxwexplo-errs@csg.lbl.gov  Thu Aug  1 03:20:57 2002
From: srilatha amberkar <amberkar2k@yahoo.com>
Date: Thu Aug  1 03:21:00 PDT 2002
Subject: device driver

Developing driver using Windriver's toolkit in vxworks
mode.We r facing problem while compiling the code
generated automatically by  toolkit in Tornado.Its
giving lots of errors.
-How to communicate between Windriver toolkit &Tornado
i.e how to compile the generated code in Tornado.I
followed the steps for Installation as in the Manual u
provided.

1)unzipped the DB505VX.Zip file in c:\Tornado\setup.
2)But when we are going to Load that wddebug.out file
through Windshell it is giving error(i.e undefined
symbol).
3)the generated code is not getting compiled in
Tornado.
4)In the Zip file i.e DB505VX you are providing
DriverBuilder for VxWorks ,didn't have any .exe file
for installation.Pls tell whether it is the complete
DriverBuilder file.

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

From vxwexplo-errs@csg.lbl.gov  Thu Aug  1 03:53:14 2002
From: Michael.Mezheritsky@lightscapenet.com
Date: Thu Aug  1 03:53:16 PDT 2002
Subject: Re: hook for output IP packet

Hi Philip,
Thank you for your collaboration,
If I'll bind a "new" protocol to my Eth interface, how can I cause "old"
protocol to continue
to care packets that are not relevant for me?

---------------------------------------------------
Best regards,
    Michael Mezheritsky
    mailto:michaelmez@LightScapeNet.com
    tel.      972-3-926-8083
                972-51-956-153
----------------------------------------------------

                                                                                                                                       
                      "Philip                                                                                                          
                      Macfarlane"              To:      "Michael" <michaelmez@lightscapenet.com>                                       
                      <philip@ramix.co         cc:                                                                                     
                      m>                       Subject: Re: hook for output IP packet                                                  
                                                                                                                                       
                      01/08/02 13:16                                                                                                   
                                                                                                                                       
                                                                                                                                       

[This is an email copy of a Usenet post to "comp.os.vxworks"]

On Thu, 01 Aug 2002 06:23:59 +0100, Michael wrote:

> Would vxWorks has hook for output IP packet (not etherHook) as well as
> it has for input (IpFilterHookAdd)
> If not, how ultimately could I do it? Thanks in advance.

Hi Michael,

I don't know if this is the easiest way of doing it, but you might be
able to create a new 'protocol', then muxBind() it to your Ethernet
interface, as type MUX_PROTO_OUTPUT. The mux should then call your
stackRcvRtn() function for each outgoing packet.

You'll probably get all outgoing packets (not just IP), but it should be
trivial to filter for IP if that's what you want.

You'll have to provide a few other functions as well, but there's not a
lot to it. Check out the Network Protocol Toolkit User's Guide for more
info.

Hope that helps,
Philip.
(P.S. I've not actually tried this - but it looks right.)

From vxwexplo-errs@csg.lbl.gov  Thu Aug  1 04:03:16 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Thu Aug  1 04:03:18 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Thu Aug  1 04:03:12 PDT 2002

        Subject: Re: why two compile options CPU=ARMARCH4 and CPU=ARM7TDMI?(null)
        Subject: Re: VxWorks Loader (target shell)
        Subject: no rule for #included <usrDepend.c> ?
        Subject: Re: why two compile options CPU=ARMARCH4 and CPU=ARM7TDMI?(null)
        Subject: Re: Hey Group!
        Subject: Re: mbx860 BSP / 82558 driver problem
        Subject: Re: no rule for #included <usrDepend.c> ?
        Subject: Re: taskSuspend()
        Subject: Re: Compiling under Cygwin
        Subject: Ulip error in Windows 2000
        Subject: ULIP receive problem
        Subject: re-initialize DHCP Server without reset?
        Subject: need source code version of binToAsm
        Subject: WE WANT TO BUY YOUR OLD VME BOARDS!!!
        Subject: Re: no rule for #included <usrDepend.c> ?
        Subject: Re: Multithread
        Subject: Re: on-target text editor
        Subject: select() affects time()
        Subject: Re: Multithread
        Subject: hook for output IP packet
        Subject: Re: ccppc compiler steps
        Subject: Re: mbx860 BSP / 82558 driver problem
        Subject: select() changes time()??
        Subject: including components
        Subject: Re: including components
        Subject: Using Tornado 2.0.2 patch code(Cumulative patch 4) caused envoy SNMP agent to crash.
        Subject: Re: hook for output IP packet

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Re: why two compile options CPU=ARMARCH4 and CPU=ARM7TDMI?(null)
Date: Wed, 31 Jul 2002 12:42:36 GMT
From: David Cooper <dcooper000@adelphia.net>
Organization: none
Message-ID: <MPG.17b1a54bb2876320989697@news1.news.adelphia.net>
References: <e78931c1.0207300045.4416974f@posting.google.com>

If my recelection is correct, the ARCHARM4 define replaces ARM7TDMI 
switch -- this change occurred in T2.1.x.

....david

- -- 
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
   Genealogy Utilities & Family Research
Researching: ALLEN,BERZONER,COHEN,COOPER,KUPFERZMIDT,
POSNER (POIZNER), PRITIKIN, STARKMAN
Dachau Camp Entry List, Genealogy Utilities
http://home.adelphia.net/~dcooper000

In article <e78931c1.0207300045.4416974f@posting.google.com>, 
liuyangxin@163.net says...
> I have two BSPs about ARM7, but they are different in the CPU Type declaration.
> I don't know to use which one.
> 

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: VxWorks Loader (target shell)
Date: Wed, 31 Jul 2002 16:07:23 +0200
From: "Rene Straub" <_remove_rene.straub@yetnet.ch>
Organization: Swisscom IP+ (post doesn't reflect views of Swisscom)
Message-ID: <ai8quh$eck$1@rex.ip-plus.net>
References: <ahrrt8$fuj$1@rex.ip-plus.net> <ai2puj$r1m$1@snoopy.bndlg.de> <ai39a3$a5s$1@rex.ip-plus.net> <ai5hu8$p93$1@snoopy.bndlg.de>

Halle Michael,

"Michael Lawnick" <mlawnick@no_spam.bndlg.de> wrote in message
news:ai5hu8$p93$1@snoopy.bndlg.de...
> Hi Rene,
> based on the descriptions, the only things I can imagine is:
>
> you are downloading via host-tools, i.e. target-server.
> Your collegue has increased his target-agent memory pool, so the image
fits.
> On your target the image does not fit, so target-agent allocates
additional
> memory from heap ....
>
> Regards,
> Michael
>

That's why I love the newsgroups. You were right. After increasing the
target server memory from 20MB to 50MB I was able to download my
out file on a device with 64 MB memory.

I am still a bit puzzled since I don't see how the size of the target server
memory relates to my download problem. Can you enlighten me...
(please :-)

Yours
- - Rene

---------------------------

Newsgroups: comp.os.vxworks
Subject: no rule for #included <usrDepend.c> ?
Date: Wed, 31 Jul 2002 10:13:05 -0400
From: Michael Reed <mreed@ll.mit.edu>
Message-ID: <3D47F071.E01A462E@ll.mit.edu>

Hello,
I'm trying to make a vxworks_rom image.    I get an error of "no rule
for target usrDepend.c which is needed by usrConfig.c" (I'm paraphrasing
slightly).  usrConfig.c's dependency on usrDepend.c seems to involve a
#include <usrDepend.c> statement.  Anyone know how I fix this?

THanks,
Mike R.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: why two compile options CPU=ARMARCH4 and CPU=ARM7TDMI?(null)
Date: 31 Jul 2002 10:19:58 -0400
From: Bill Pringlemeir <spam_account@sympatico.ca>
Organization: Bell Sympatico
Message-ID: <m2lm7sm12p.fsf@sympatico.ca>
References: <e78931c1.0207300045.4416974f@posting.google.com> <MPG.17b1a54bb2876320989697@news1.news.adelphia.net>
Sender: bpringle@DeadDuck

 David> If my recelection is correct, the ARCHARM4 define replaces
 David> ARM7TDMI switch -- this change occurred in T2.1.x.

... Actually, T2.0.1, which is an ARM only release.  ARM710A changes
to ARMARCH3, most other ARM CPU types change to ARMARCH4.  This is
actually a good thing, but it might be better documented.  I would
think that they could have written some includes,

   #if defined(ARM7TDMI) || ...
   #warn Depricated CPU type, change to..
   #endif

but they didn't...

fwiw,
Bill Pringlemeir.

- -- 
This month  the man  will discuss life  with RMS.  Iranians  will sell
your house  this week.   Do not  talk to piglet  today.  Today  an egg
would be a  good thing to meditate upon.  You'll fall  into a state of
bozosity, but eventually be confused.  12 is your lucky number.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Hey Group!
Date: 31 Jul 2002 10:22:34 -0400
From: Bill Pringlemeir <spam_account@sympatico.ca>
Organization: Bell Sympatico
Message-ID: <m2fzy0m0yd.fsf@sympatico.ca>
References: <925c.4ad8.17c@YHBT>
Sender: bpringle@DeadDuck

 Troll> Hi! nice newsgroup. any rules I should know before I start
 Troll> posting?  is there an faq?

Note the followups on the original.  Don't reply.

Regards,
Bill Pringlemeir.

- -- 
TORPEDOED BY DESTROYER. WEB PAGES. EXPLODING. U-245.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: mbx860 BSP / 82558 driver problem
Date: 31 Jul 2002 08:37:39 -0700
From: david.meadows@roke.co.uk (David Meadows)
Organization: http://groups.google.com/
Message-ID: <6d3e990b.0207310737.d3db9e9@posting.google.com>
References: <6d3e990b.0207220735.31de5ea0@posting.google.com> <0ts%8.111538$Wt3.98785@rwcrnsc53> <6d3e990b.0207250143.6addd1f@posting.google.com> <RpV09.149280$_51.97129@rwcrnsc52.ops.asp.att.net>

The QSpan revision I have on my board is either Rev1.0 or Rev1.1. I
can see this from the QSpan configuration space. I found the following
in a T2 BSP.

"The QSPAN CPU to PCI bridge chip provides an interface between the
MBX
processor bus (called the QBus) and the PCI Bus.  Revisions 1.0 and
1.1
of the QSPAN chip could not support normal termination of PCI
configuration
cycles.  This requires the installation of a machine check handler
every
time a PCI configuration space access is made, otherwise the kernel
will
hang.  Starting with the revision 1.2 QSPAN, a new bit field (MA_BE_D)
has been added to the MISC_CTL register.  Setting this bit will cause
PCI
configuration reads and writes to appear as normal terminations on the
QBus, eliminating the need for the special handling."

I don't see the kernel hanging so I guess I have a machine check
handler installed.

I did a full trace of all the QSpan registers and the setup seem to be
okay.

tPIPS: (0xfa210000) PCI Config Space ID Reg            : 0x86010e3
tPIPS: (0xfa210004) PCI Config Space C&S Reg           : 0x22800007
tPIPS: (0xfa210008) PCI Config Class Reg               : 0x6800000
tPIPS: (0xfa21000c) PCI Config Misc 0 Reg              : 0x0
tPIPS: (0xfa210010) PCI Config BA for Mem Reg          : 0x1000000
tPIPS: (0xfa210018) PCI Config BA for Targ 0 Reg       : 0x0
tPIPS: (0xfa21001c) PCI Config BA for Targ 1 Reg       : 0x0
tPIPS: (0xfa21002c) PCI Config Subsys ID Reg           : 0x0
tPIPS: (0xfa210030) PCI Config Exp ROM BAR             : 0x0
tPIPS: (0xfa210034) PCI Reserved                       : 0x0
tPIPS: (0xfa21003c) PCI Config Misc 1 Reg              : 0x100
tPIPS: (0xfa210100) PCI Bus Target Image 0 Ctrl        : 0x8f000080
tPIPS: (0xfa210104) PCI Bus Target Image 0 Addr        : 0x80000000
tPIPS: (0xfa210108) QSpan Reserved                     : 0x0
tPIPS: (0xfa210110) PCI Bus Target Image 1 Ctrl        : 0x40
tPIPS: (0xfa210114) PCI Bus Target Image 1 Addr        : 0x0
tPIPS: (0xfa210118) QSpan Reserved                     : 0x0
tPIPS: (0xfa21013c) PCI Bus Exp ROM Ctrl Reg           : 0x0
tPIPS: (0xfa210140) PCI Bus Error C&S Reg              : 0x80000070
tPIPS: (0xfa210144) PCI Bus Addr Error Log Reg         : 0x0
tPIPS: (0xfa210148) PCI Bus Data Error Log Reg         : 0x0
tPIPS: (0xfa21014c) QSpan Reserved                     : 0x0
tPIPS: (0xfa210400) IDMA C&S Reg                       : 0x8
tPIPS: (0xfa210404) IDMA Addr Reg                      : 0x0
tPIPS: (0xfa210408) IDMA Transfer Count Reg            : 0x0
tPIPS: (0xfa21040c) QSpan Reserved                     : 0x0
tPIPS: (0xfa210500) Config Addr Reg                    : 0xa000
tPIPS: (0xfa210504) Config Data Reg                    : 0x12298086
tPIPS: (0xfa210508) IACK Cycle Gen Reg                 : 0x705211a
tPIPS: (0xfa210600) Interrupt Status Reg               : 0x0
tPIPS: (0xfa210604) Interrupt Control Reg              : 0x0
tPIPS: (0xfa210608) Interrupt Dir Ctrl Reg             : 0x0
tPIPS: (0xfa21060c) Interrupt Control Reg              : 0x0
tPIPS: (0xfa210800) Miscellaneus Control               : 0xc0003
tPIPS: (0xfa210804) EEPROM C&S Reg                     : 0x0
tPIPS: (0xfa210f00) QBus Slave Image 0 Ctrl Reg        : 0x1000000
tPIPS: (0xfa210f04) QBus Slave Image 0 Addr Transl Reg : 0xa1
tPIPS: (0xfa210f10) QBus Slave Image 1 Ctrl Reg        : 0x0
tPIPS: (0xfa210f14) QBus Slave Image 1 Addr Transl Re  : 0xd1
tPIPS: (0xfa210f80) QBus Error Log C&S Reg             : 0x80000000
tPIPS: (0xfa210f84) QBus Addr Error Log Reg            : 0x0
tPIPS: (0xfa210f88) QBus Data Error Log Reg            : 0x0

I had a look at the PCI Bus Error Control and Status Register and the
QBus Error Log Control and Status Register and don't see a logged
error for either bus.
I noticed that the PCI bus error register can only detect a
master-abort on a read cycle and therefore this seems to indicate that
the error occurs for a write somewhere.

The only thing I can think of now is to use a x86 platform as an
alternative.

Cheers,

David 

"Gary M" <com.vertical@garym> wrote in message news:<RpV09.149280$_51.97129@rwcrnsc52.ops.asp.att.net>...
> PCI target image is for transactions originating on the PCI bus, accessing
> the QBus.
> 
> QBus slave image is for transactions originating on the QBus, targeting the
> PCI bus. You need to initialize one of the sets of QBus slave registers
> (QBSIn_CTL and QBSIn_AT).
> 
> You should also set the MA_BE_D bit in the MISC_CTL register if any
> transaction originating from the QBus may result in a PCI Master Abort.
> 
> You didn't show what the contents of MISC_CTL2 are. This register must also
> be properly configured.
> 
> Good luck
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: no rule for #included <usrDepend.c> ?
Date: Wed, 31 Jul 2002 11:50:30 -0400
From: YourEmailId <YourEmail@lmco.com>
Organization: Lockheed Martin Corporation
Message-ID: <3D480746.43C17B48@lmco.com>
References: <3D47F071.E01A462E@ll.mit.edu>

You need to put usrDepend.c where make can find it.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: taskSuspend()
Date: 31 Jul 2002 09:03:51 -0700
From: jsanchor@cs5.dasd.honeywell.com (Jay)
Organization: http://groups.google.com/
Message-ID: <9e60ca47.0207310803.6106d085@posting.google.com>
References: <9e60ca47.0207301307.338e3043@posting.google.com> <m2k7ncsvhc.fsf@sympatico.ca>

Bill Pringlemeir <spam_account@sympatico.ca> wrote in message news:<m2k7ncsvhc.fsf@sympatico.ca>...
> Jay> I am having trouble suspending a task.
> 
> [snip]
> 
>  Jay> On reaching a condition in code, I want to suspend all tasks. In
>  Jay> the end I also want to delete the calling tasks.  Any help would
>  Jay> be appreciated.
> 
> Look at the manual for taskSpawn().  There is an option to make task's
> "UNBREAKABLE".  I will let you take it from there...
> 
> hth,
> Bill Pringlemeir.

I believe I found the problem. The code was suspending all tasks and
then
calling sysHalt. A FUNCPTR was passed to sysHalt. This function was
supposed to clear USER_RAM_ space and vxWorks heap. I believe I was
writing over my application and vxWorks heap.
Hence the windSh was incorrectly returning status.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Compiling under Cygwin
Date: 31 Jul 2002 09:58:27 -0700
From: vloscomp@yahoo.com (Vinh)
Organization: http://groups.google.com/
Message-ID: <c129947c.0207310858.108f0a87@posting.google.com>
References: <28809481.0207270136.110cf7b1@posting.google.com> <3D42A00D.46F5319E@bellsouth.net>

joe durusau <durusau@bellsouth.net> wrote in message news:<3D42A00D.46F5319E@bellsouth.net>...
> rasayani wrote:
> 
> > When I compile using ccppc -c -o test.o test.c under cygwin I receive
> > the following error:
> > cpp: -lang-c89: linker input file unsed since linking not done
> >
> > Is any one aware of this problem?
> >
> > thanks,
> > Steve
> 
> 1). You should not be trying to compile for vxWorks under cygwin.  You
> need the compiler that came with vxWorks.

  When you are compiling under cygwin:
  1. cp the from Tornado/host/x86-win32/powerpc-wrs-vxworks/bin
     'ld.exe' and 'as.exe'
     to
     /bin
     This will replaced the cygwin ld.exe and as.exe, so make sure you back-up.

  2. There are incompatible path '/' and '\' between the make of VxWorks and 
     the current make of gnu.
     You have to play with the path in your makefile and rules to get it to run
     in the cygwin make.
     Check the version of the make with 'make -v'

  3. remember also that you .bashrc file must have the search path included for 
     VxWorks.

Gl,
Vinh Lam

> 2). For some reason, -lang-c89 is being passed to the compler, which
> should not be gcc and its cousins don't alow this syntax.
> 

  
> Speaking only for myself,
> 
> Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Ulip error in Windows 2000
Date: 31 Jul 2002 12:41:18 -0700
From: pam_clark@yahoo.com (pam clark)
Organization: http://groups.google.com/
Message-ID: <5934a101.0207311141.62f5e5da@posting.google.com>

Hi.  I'm trying to use Tornado to create a networking program.  Right
now I'm just trying to test the sockets part of it.  I've created a
bootable VxWorks image project, and included the network components. 
Whenever I start up the custom built simulator, I get an error
message:

0x4bcac10
Ulip Error
Attached TCP/IP interface to nt unit 0
Attaching interface lo0...done

I downloaded the Patch T2CP4: Tornado 2.0.2 Maintenance Update
(cumulative patch 4), and I still get the error.  I've read the other
posts about the Ulip driver, but I can't find any specific information
on how to make it work. Is there a separate Ulip driver for windows
2000, and if so, how do I get it and install it?  If not, is there
some other means to solve this problem?  If you need more info, just
email me.  Thanks.

---------------------------

Newsgroups: comp.os.vxworks
Subject: ULIP receive problem
Date: Wed, 31 Jul 2002 22:10:43 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1028149848.753042@azores.network-i.net>

Hi all,

I am having a strange problem with my simulator.

I have a test application that spawns multiple tasks, which continuously
intiate FTP xfers from a remote disk server. The server runs vxworks and is
not a simulator. The simulator and disk host communicate via a Linux
gateway. The network is ethernet100.

When i start the test tasks, everything is fine for a few minutes. Then some
of the tasks start reporting FTP errors but the errors are not consistent -
sounds like random network failures.

Then slowly all network activity from the simulators comes to halt but the
tasks do not report any problems they just hang for ever.

The network is now halted completely and can't even ping the
machine(win2000) that it is running in or even the ULIP driver.

The intersting part is that when I ping a machine on the network and look at
the network traffic with the packet sniffer I can see the ping request and
the ackwnoledgement coming back. The ACK reachs the win2000 machine but does
not reach the simulator.

Hence, given that the packet reaches the win2000 machine and that the
simulator cannot the ULIP it sunds like the ULIP driver has gone wrong.

I am not running out of network buffers(mBlks/cBlks), I have increased the
number of files and increased ftpd and dosFs max clients values. They are
not problem. Remember the system runs fine for a few minutes.

Other than the inital FTP errors, I get no other error output.

Has anyone seen this problem before?

Thank you.

Dimitris

---------------------------

Newsgroups: comp.os.vxworks
Subject: re-initialize DHCP Server without reset?
Date: 31 Jul 2002 14:56:35 -0700
From: czhao@hns.com (Charlie Zhao)
Organization: http://groups.google.com/
Message-ID: <75b047bf.0207311356.49d9631f@posting.google.com>

Here is the question regarding DHCP Sever (Tornado 2.1, VxWorks 5.4).

Our target has two network interfaces (Ethernet (A) and USB (B)). Both
of them are MUX interfaces. And both of them use DHCP Sever to provide
IP address to the computers connected to them. These two interfaces
are mutual exclusive, i.e., when Ethernet interface (A) is selected,
the USB (B) interface will be shut down, and vice versa. So interface
A and B share one class C IP address in our target.

There is a function dhcpsInit() in dhcpsLib to initialize DHCP Server.
When calling this function, I have to specify the network interface
that DHCPS will be working with. Since interface A and B share one IP
address, I can only specify one of these two interfaces when call
dhcpsInit().

So now the design is: 
The target was booted with interface A. During the boot, I load the A
interface, call dhcpsInit() with interface A specified.
When user decide to switch to interface B, I have to reset the target,
and boot the target with the interface B. During the boot, I load the
B interface, call dhcpsInit() with interface B specified.

Now the questions are:
Do I really need to do a reset here?
Can I re-configure the DHCPS without reset?
Is there a function (will there be a function) to de-initialize the
DHCPS and I may call dhcpsInit() again without reset?

Thank you very much!
Charlie Zhao

---------------------------

Newsgroups: comp.os.vxworks
Subject: need source code version of binToAsm
Date: 31 Jul 2002 15:28:29 -0700
From: earlmit@pacbell.net (Earl Mitchell)
Organization: http://groups.google.com/
Message-ID: <68f5c46.0207311428.6296ef99@posting.google.com>

Anybody got a source code version of binToAsm?
WRS supplies a binary version with their tools
but for this project I'm not using vxWorks and
I'm on a different platform. I thought this was
provided by GNU's binutils.

I could write my own perl script or C program
to do it but I'm lazy. ;-)

- -earlm

---------------------------

Newsgroups: comp.arch.bus.vmebus,comp.arch.embedded,comp.os.os9,comp.os.vxworks,comp.sys.m68k
Subject: WE WANT TO BUY YOUR OLD VME BOARDS!!!
Date: Thu, 01 Aug 2002 01:56:02 GMT
From: "SHS" <wmcalpin@sunharborsales.com>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <Sy029.65$5B.16062658@newssvr12.news.prodigy.com>

Sun Harbor Sales is a dealer in old VME boards (and some not so old if they
are cheap).

Send a list of your boards with a buy all price to:

wmcalpin@ghgcorp.com

or fax a list to 281-488-5183

Include the condition of the boards and if you provide a DOA warranty.

Please fordward this post to anyone who might be interested or reply to this
note with a contact name.

Thanks,
Bill
Sun Harbor Sales
281-703-1554

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: no rule for #included <usrDepend.c> ?
Date: Thu, 01 Aug 2002 01:56:36 GMT
From: "John Kevin Fabiani" <nospam@nospam.net>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <oz029.196$MM1.8180932@newssvr16.news.prodigy.com>
References: <3D47F071.E01A462E@ll.mit.edu>

This isn't with a WindRiver BSP is it?

Seems that all WindRiver BSP's use usrConfig.c
and all refer to usrDepend.c.

What version of vxWorks and what BSP?
- -j

"Michael Reed" <mreed@ll.mit.edu> wrote in message
news:3D47F071.E01A462E@ll.mit.edu...
> Hello,
> I'm trying to make a vxworks_rom image.    I get an error of "no rule
> for target usrDepend.c which is needed by usrConfig.c" (I'm paraphrasing
> slightly).  usrConfig.c's dependency on usrDepend.c seems to involve a
> #include <usrDepend.c> statement.  Anyone know how I fix this?
>
> THanks,
> Mike R.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Multithread
Date: 31 Jul 2002 19:12:31 -0700
From: liuyangxin@163.net (sozn)
Organization: http://groups.google.com/
Message-ID: <e78931c1.0207311812.2cb98113@posting.google.com>
References: <ai80ah$4u7$1@mail.cn99.com>

If you used global variable in multi-thread mode, the mutux should be
used. Because the threads all in one space, so they share the same
global variables.

sozn

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: on-target text editor
Date: Thu, 01 Aug 2002 03:36:01 GMT
From: "Tom Yee" <tomyee3@attbi.com>
Organization: AT&T Broadband
Message-ID: <B0229.14347$Ru5.7119@rwcrnsc52.ops.asp.att.net>
References: <3D3E989A.403@nc.rr.com>

"Ricky West" <rwwest@nc.rr.com> wrote in message
news:3D3E989A.403@nc.rr.com...
> Has anybody ported a text editor to the vxWorks target platform.  My
> specific application would use serial interface or telnet into target
> for a PPC405 target with dosFs2.0 for the filesystem.  Tornado version
> is 2.0.2.

Try out the "stevie" port of vi and let me know how it works, how easy it
was to install, etc. since I would like a text editor also.
ftp://ftp.atd.ucar.edu/pub/archive/vxworks

Thanks!
- -Tom

---------------------------

Newsgroups: comp.os.vxworks
Subject: select() affects time()
Date: Wed, 31 Jul 2002 23:23:45 -0400
From: "Lawrence T. Hoff" <hoff@bnl.gov>
Organization: BNL
Message-ID: <3D48A9C1.46DA5975@bnl.gov>

	Is this known behavior in vxWorks? When I run this code,
(which passes a bogus time value into select), the system time
advances by more than 2 years! No such behavior on UNIX.

#ifndef UNIX
#include <vxWorks.h>
#include <sys/times.h>
#include <selectLib.h>
#endif

#include <errno.h>
#include <stdio.h>
#include <time.h>

void selectTest(void){

  static fd_set set;

  static struct timeval bug = {-1,-1};

  time_t now = time(0);

  FD_SET(0, &set); /* stdio */

  (void) select(FD_SETSIZE,&set,0,0,&bug);

  printf("duration = %d\n", time(0) - now);

}

#ifdef UNIX
main(){ selectTest();}
#endif

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Multithread
Date: 31 Jul 2002 22:16:52 -0700
From: liuyangxin@163.net (sozn)
Organization: http://groups.google.com/
Message-ID: <e78931c1.0207312116.10aeec20@posting.google.com>
References: <ai80ah$4u7$1@mail.cn99.com>

mutex could be used to protect global variables, tasks in vxworks are threads
indeed, so vxworks is simple, and lack of protection on the other hand.

---------------------------

Newsgroups: comp.os.vxworks
Subject: hook for output IP packet
Date: 31 Jul 2002 22:23:59 -0700
From: michaelmez@lightscapenet.com (Michael)
Organization: http://groups.google.com/
Message-ID: <49faca9b.0207312123.6af85635@posting.google.com>

Hello,
Would vxWorks has hook for output IP packet (not etherHook) as well as
it has for input (IpFilterHookAdd)
If not, how ultimately could I do it?
Thanks in advance.

Michael Mezheritsky

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: ccppc compiler steps
Date: 31 Jul 2002 22:40:26 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0207312140.52299171@posting.google.com>
References: <28809481.0207302323.7e0cded0@posting.google.com>

Hello,

Make sure that you have GCC_EXEC_PREFIX set correctly. (You can search
for it in this news group archives at somewhere like groups.google.com
for more information.)

HTH,

John...

vividh@hotmail.com (rasayani) wrote in message news:<28809481.0207302323.7e0cded0@posting.google.com>...
> When I try compiling using ccppc provided by WRS under cygwin, I get a
> error
> cpp: -lang-c: linker input file unused since linking not done
> gcc:  program 'cc1' not found
> for some reason the ccppc is calling the gcc compiler and is unable to
> get this compiled. Has anyonefaced this problems. I have the tornado
> paths before the cygwin paths in my shell. any other hacks required?
> 
> vividh

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: mbx860 BSP / 82558 driver problem
Date: Thu, 01 Aug 2002 06:35:03 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <rE429.16528$Ru5.8073@rwcrnsc52.ops.asp.att.net>
References: <6d3e990b.0207220735.31de5ea0@posting.google.com> <0ts%8.111538$Wt3.98785@rwcrnsc53> <6d3e990b.0207250143.6addd1f@posting.google.com> <RpV09.149280$_51.97129@rwcrnsc52.ops.asp.att.net> <6d3e990b.0207310737.d3db9e9@posting.google.com>

"David Meadows" <david.meadows@roke.co.uk> wrote in message
news:6d3e990b.0207310737.d3db9e9@posting.google.com...
> The QSpan revision I have on my board is either Rev1.0 or Rev1.1. I
> can see this from the QSpan configuration space. I found the following
> in a T2 BSP.
>
> (snip)
>
> I don't see the kernel hanging so I guess I have a machine check
> handler installed.

Or, you aren't doing any PCI configuration cycles. You would be using the
CON_ADD and CON_DATA registers if you were.

>
> I did a full trace of all the QSpan registers and the setup seem to be
> okay.
>
> tPIPS: (0xfa210000) PCI Config Space ID Reg            : 0x86010e3
> tPIPS: (0xfa210004) PCI Config Space C&S Reg           : 0x22800007

This indicates the QSpan issued a master abort, typical if you attempted to
access a non-existent PCI device.

> tPIPS: (0xfa210008) PCI Config Class Reg               : 0x6800000
> tPIPS: (0xfa21000c) PCI Config Misc 0 Reg              : 0x0
> tPIPS: (0xfa210010) PCI Config BA for Mem Reg          : 0x1000000
> tPIPS: (0xfa210018) PCI Config BA for Targ 0 Reg       : 0x0
> tPIPS: (0xfa21001c) PCI Config BA for Targ 1 Reg       : 0x0
> tPIPS: (0xfa21002c) PCI Config Subsys ID Reg           : 0x0
> tPIPS: (0xfa210030) PCI Config Exp ROM BAR             : 0x0
> tPIPS: (0xfa210034) PCI Reserved                       : 0x0
> tPIPS: (0xfa21003c) PCI Config Misc 1 Reg              : 0x100
> tPIPS: (0xfa210100) PCI Bus Target Image 0 Ctrl        : 0x8f000080

This creates a 2GB address range for PCI target image 0. Not really a issue
if you don't have and mastering PCI devices, but did you really intend to do
that?

> tPIPS: (0xfa210104) PCI Bus Target Image 0 Addr        : 0x80000000
> tPIPS: (0xfa210108) QSpan Reserved                     : 0x0
> tPIPS: (0xfa210110) PCI Bus Target Image 1 Ctrl        : 0x40
> tPIPS: (0xfa210114) PCI Bus Target Image 1 Addr        : 0x0
> tPIPS: (0xfa210118) QSpan Reserved                     : 0x0
> tPIPS: (0xfa21013c) PCI Bus Exp ROM Ctrl Reg           : 0x0
> tPIPS: (0xfa210140) PCI Bus Error C&S Reg              : 0x80000070
> tPIPS: (0xfa210144) PCI Bus Addr Error Log Reg         : 0x0
> tPIPS: (0xfa210148) PCI Bus Data Error Log Reg         : 0x0
> tPIPS: (0xfa21014c) QSpan Reserved                     : 0x0
> tPIPS: (0xfa210400) IDMA C&S Reg                       : 0x8
> tPIPS: (0xfa210404) IDMA Addr Reg                      : 0x0
> tPIPS: (0xfa210408) IDMA Transfer Count Reg            : 0x0
> tPIPS: (0xfa21040c) QSpan Reserved                     : 0x0
> tPIPS: (0xfa210500) Config Addr Reg                    : 0xa000
> tPIPS: (0xfa210504) Config Data Reg                    : 0x12298086
> tPIPS: (0xfa210508) IACK Cycle Gen Reg                 : 0x705211a
> tPIPS: (0xfa210600) Interrupt Status Reg               : 0x0
> tPIPS: (0xfa210604) Interrupt Control Reg              : 0x0
> tPIPS: (0xfa210608) Interrupt Dir Ctrl Reg             : 0x0
> tPIPS: (0xfa21060c) Interrupt Control Reg              : 0x0
> tPIPS: (0xfa210800) Miscellaneus Control               : 0xc0003
> tPIPS: (0xfa210804) EEPROM C&S Reg                     : 0x0
> tPIPS: (0xfa210f00) QBus Slave Image 0 Ctrl Reg        : 0x1000000
> tPIPS: (0xfa210f04) QBus Slave Image 0 Addr Transl Reg : 0xa1

This maps a linear 64MB address space onto the PCI bus. Are your PCI devices
configured to respond? This area also overlaps your PowerPC RAM, no?

> tPIPS: (0xfa210f10) QBus Slave Image 1 Ctrl Reg        : 0x0
> tPIPS: (0xfa210f14) QBus Slave Image 1 Addr Transl Re  : 0xd1
> tPIPS: (0xfa210f80) QBus Error Log C&S Reg             : 0x80000000
> tPIPS: (0xfa210f84) QBus Addr Error Log Reg            : 0x0
> tPIPS: (0xfa210f88) QBus Data Error Log Reg            : 0x0
>
> I had a look at the PCI Bus Error Control and Status Register and the
> QBus Error Log Control and Status Register and don't see a logged
> error for either bus.
> I noticed that the PCI bus error register can only detect a
> master-abort on a read cycle and therefore this seems to indicate that
> the error occurs for a write somewhere.
>
> The only thing I can think of now is to use a x86 platform as an
> alternative.
>

Too bad. There was a learning curve to using the QSpan, but we are happy
with the features. We use it to bridge a Pentium host to an 855T embedded
subsystem.

---------------------------

Newsgroups: comp.os.vxworks
Subject: select() changes time()??
Date: 1 Aug 2002 00:53:50 -0700
From: hoff@bnl.gov (unixmidiplugin)
Organization: http://groups.google.com/
Message-ID: <12075c07.0207312353.222fa117@posting.google.com>

Is this known behavior in vxWorks? When I run this code,
(which passes a bogus time value into select), the system time
advances by more than 2 years! No such behavior on UNIX.

#ifndef UNIX
#include <vxWorks.h>
#include <sys/times.h>
#include <selectLib.h>
#endif

#include <errno.h>
#include <stdio.h>
#include <time.h>

void selectTest(void){

  static fd_set set;

  static struct timeval bug = {-1,-1};

  time_t now = time(0);

  FD_SET(0, &set); /* stdio */

  (void) select(FD_SETSIZE,&set,0,0,&bug);

  printf("duration = %d\n", time(0) - now);

}

#ifdef UNIX
main(){ selectTest();}
#endif

---------------------------

Newsgroups: comp.os.vxworks
Subject: including components
Date: 1 Aug 2002 00:54:19 -0700
From: rajendra_krsingh@yahoo.com (rajendra)
Organization: http://groups.google.com/
Message-ID: <479ba395.0207312354.651a2a0f@posting.google.com>

Hi all, 
  I am not able to include some components. Some of the components are
shown in italics and some of them are in bold italics (means
included). but when I exclude and then include I get "component is not
installed". what is the matter ?
 I have all those comonents which I am trying to include.
 How does tornado find that a component is installed or not?

thanks

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: including components
Date: Thu, 1 Aug 2002 11:35:56 +0200
From: "Michael Lawnick" <mlawnick@no_spam.bndlg.de>
Organization: Buergernetz Dillingen
Message-ID: <aiavc9$kvq$1@snoopy.bndlg.de>
References: <479ba395.0207312354.651a2a0f@posting.google.com>
Reply-To: "Michael Lawnick" <mlawnick@no_spam.bndlg.de>
Sender: mlawnick@p5088e8cb.dip.t-dialin.net

Hi rajenda,

we had a similiar question some days ago :-(
The configuration mechanism checks for the related objects in the archives.
If it doesn't find them, the component is displayed in italic. Your problems
could be that $(WIND_BASE) isn't set or that the objects are not part of
your archive.

Michael

"rajendra" <rajendra_krsingh@yahoo.com> schrieb im Newsbeitrag
news:479ba395.0207312354.651a2a0f@posting.google.com...
> Hi all,
>   I am not able to include some components. Some of the components are
> shown in italics and some of them are in bold italics (means
> included). but when I exclude and then include I get "component is not
> installed". what is the matter ?
>  I have all those comonents which I am trying to include.
>  How does tornado find that a component is installed or not?
>
> thanks

---------------------------

Newsgroups: comp.os.vxworks
Subject: Using Tornado 2.0.2 patch code(Cumulative patch 4) caused envoy SNMP agent to crash.
Date: 1 Aug 2002 03:16:18 -0700
From: jls@hc.hitrontech.com (Ivan Jaung)
Organization: http://groups.google.com/
Message-ID: <3e81ebcb.0208010216.2b7d0855@posting.google.com>

Hello:
I used Tornado 2.0.2 Vxworks and envoy 9.2. When I built the image
without using patch code. The SNMP agent is OK.(at least the
MIB2(RFC1213) can work correctly). But When I used patch code(Patch
T2CP4 Tornado 2_0_2 Maintenance Update (Cumulative patch 4).files) and
compiled the code again, then  used this image to run agent again. The
system would have exception when I used Snmp management to query the
agent. The MIB I used is RFC1213,and not all the MIB items would cause
the execption but some.
   I traced the code , I found when I used SNMP management to query
the agent with RFC1213 (the OID is iso(1).org(3).dod(6).internet
1).mgmt(2).mib-2(1).interfaces(2).ifTable(2).ifEntry(1).ifIndex(1)
). When SNMP agent received the packet, it parsed the packet and
finally it would enter the method function " ifEntryNext" which is
located in the file snmpif.c. But it would never return to the
function which called it. I used ICE to see the CPU(power pc 857)
internal register LR(link register) at the point that this function
wanted to return to the last function. I found the value of this
register is 0.

PS. I set the snmpd task stack to 1024*1024 ,the kernal ISR_STACK_SIZE
to 10k and ROOT_STACK size to 500k, but it didn't work.

Regards.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: hook for output IP packet
Date: Thu, 01 Aug 2002 11:16:14 +0100
From: Philip Macfarlane <philip@ramix.com>
Organization: RAMiX Europe Ltd
Message-ID: <uki2jeefse1hd7@corp.supernews.com>
References: <49faca9b.0207312123.6af85635@posting.google.com>

On Thu, 01 Aug 2002 06:23:59 +0100, Michael wrote:

> Would vxWorks has hook for output IP packet (not etherHook) as well as
> it has for input (IpFilterHookAdd)
> If not, how ultimately could I do it? Thanks in advance.

Hi Michael,

I don't know if this is the easiest way of doing it, but you might be
able to create a new 'protocol', then muxBind() it to your Ethernet
interface, as type MUX_PROTO_OUTPUT. The mux should then call your
stackRcvRtn() function for each outgoing packet.

You'll probably get all outgoing packets (not just IP), but it should be
trivial to filter for IP if that's what you want.

You'll have to provide a few other functions as well, but there's not a
lot to it. Check out the Network Protocol Toolkit User's Guide for more
info.

Hope that helps,
Philip.
(P.S. I've not actually tried this - but it looks right.)

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Thu Aug  1 06:05:24 2002
From: "Frederic Brehm" <fbrehm@sarnoff.com>
Date: Thu Aug  1 06:05:26 PDT 2002
Subject: Re: Lint

>Submitted-by: "Joe Welfeld" <jwelfeld@paragon-networks.com>
>
>We are running Tornado 2.02 for PPC and are looking for a lint utility ?

Look at http://www.gimpel.com/

Fred

-- 
Fred Brehm, Sarnoff Corporation, fbrehm@sarnoff.com
http://www.sarnoff.com/digital_video_informatics/vision_technology/index.asp

From vxwexplo-errs@csg.lbl.gov  Thu Aug  1 06:54:29 2002
From: ChengHsin Hsu <chs@lucent.com>
Date: Thu Aug  1 06:54:31 PDT 2002
Subject: System V curses library on vxWorks

Hi All,

    I'm looking into some old UI code running on vxWorks 5.4, which is 
based on vw_curses & a modified CDK library.
    Since the CDK seems to be designed for System V curses library, a 
lot of CDK's funtionalities have been removed.
    I'm wondering whether there is any System V curses library on 
vxWorks? or I can find some basic widget library based on Bekerley curses?
   I have tried to compile ncurses, but it seems not so 
starightforward....:-(
   Thanks a lot!

Best Regards,
Bear

From vxwexplo-errs@csg.lbl.gov  Thu Aug  1 08:03:34 2002
From: "Sinn, Larry" <Larry.Sinn@kla-tencor.com>
Date: Thu Aug  1 08:03:36 PDT 2002
Subject: Re: Lint

Just use -Wall in your compile options (for gcc), it does 90% of lint.

Larry.

> Submitted-by vxwexplo-errs@csg.lbl.gov  Thu Aug  1 06:05:24 2002
> Submitted-by: "Frederic Brehm" <fbrehm@sarnoff.com>
> 
> >Submitted-by: "Joe Welfeld" <jwelfeld@paragon-networks.com>
> >
> >We are running Tornado 2.02 for PPC and are looking for a lint utility ?

> Look at http://www.gimpel.com/

> Fred

Larry Sinn
KLA-Tencor  MS I-1009         408 875 0247  voice
160 Rio Robles                     408 875 6179  fax
San Jose, Ca 95134-1809      larry.sinn@kla-tencor.com

From vxwexplo-errs@csg.lbl.gov  Thu Aug  1 08:57:50 2002
From: "Frederic Brehm" <fbrehm@sarnoff.com>
Date: Thu Aug  1 08:57:52 PDT 2002
Subject: Re: Lint

>  > >Submitted-by: "Joe Welfeld" <jwelfeld@paragon-networks.com>
>  > >We are running Tornado 2.02 for PPC and are looking for a lint utility ?

>  > Submitted-by: "Frederic Brehm" <fbrehm@sarnoff.com>
>  > Look at http://www.gimpel.com/

>Submitted-by: "Sinn, Larry" <Larry.Sinn@kla-tencor.com>
>Just use -Wall in your compile options (for gcc), it does 90% of lint.

That is true when you compare it to the traditional lint program that
comes with most Unix boxes. But, -Wall does only about 10% of what
the gimpel product does.

Fred
-- 
Fred Brehm, Sarnoff Corporation, fbrehm@sarnoff.com
http://www.sarnoff.com/digital_video_informatics/vision_technology/index.asp

From vxwexplo-errs@csg.lbl.gov  Thu Aug  1 19:29:35 2002
From: "Li Zongliang" <zlli@photonicbridges.com>
Date: Thu Aug  1 19:29:37 PDT 2002
Subject: Urgent help request for VxWorks shell()

This is a multi-part message in MIME format.

------=_NextPart_000_0003_01C23A0F.7C34F100
Content-Type: text/plain;
	charset="gb2312"
Content-Transfer-Encoding: 7bit

hello all,
I call shell(1) in my codes as follow:

	someFunc();
	shell(1);
	aFunc();

My question is:
1. When I enter the shell prompt, I could interactivate with the shell
prompt, but how could I exit from it and go to aFunc() statement ?

2. I write a function called "quit" to exit current task, and I can call it
from the shell prompt. but each time the shell exit, 3032 bytes memory was
consumed.

please help me. (OS: VxWorks 5.4 / tornado 2.02, arch: MPC 8260, CPU:
PPC603) 

Thanks in advance.

------=_NextPart_000_0003_01C23A0F.7C34F100
Content-Type: application/ms-tnef;
	name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="winmail.dat"

eJ8+Ih4CAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAAqAMAAAAAAACrAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANIHCAACAAoAHQAAAAUADwEB
A5AGAPwFAAAiAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADADYAAAAAAB4AcAAB
AAAAKAAAAFVyZ2VudCBoZWxwIHJlcXVlc3QgZm9yIFZ4V29ya3Mgc2hlbGwoKQACAXEAAQAAABYA
AAABwjnMbda3Rfn1AopKiL0v0YEZvNTiAAACAR0MAQAAAB4AAABTTVRQOlpMTElAUEhPVE9OSUNC
UklER0VTLkNPTQAAAAsAAQ4AAAAAQAAGDgD+CFzMOcIBAgEKDgEAAAAYAAAAAAAAALHT2hUkqMpA
sgT/yhRo8+3CgAAACwAfDgEAAAACAQkQAQAAADUCAAAxAgAABgMAAExaRnWgPDaqAwAKAHJjcGc5
MzYDAPgLYG5nMTAzM8kOtmZlAdA1MgH3AqQTA+MCAGNoCsBzZXR8MCAHEwKDAFAC8hGXMWQzNAMw
J2MMMBQgZaMUEQDgJ2U1AoB9CoGSdgiQd2sLgGQ0DGB+YwBQCwMO8hASC6UT8GiUZWwJACAHQGws
CqKRCoBJIGMYESBzF7IQKDEpIAuAIG15dxjABHEEIGEEIAIQF9F3PjoYVBsVAZEZEANwZUbAdW5j
KCk7G3oZNa0cymEcbBhjTRnwcQpQWHN0aQIgGaBzGwUxeC4gVxewA6AYsAnwdJkEkCB0F7AZFCBw
A2GNBTAsIcEFoHVsZBmhpyIRANAgcHZhIhAgA/CnIlAiTyNQYnUFQGga4PsjhSHReCTgGpADYRmg
BUDrAHAj0GcX8HQX8RxkGRBPAZAiEAeAAjAgPxsaMtshYBiwdwUQJKFhGpAccWcgcxjSCYAgIiAw
JOAieyhyJ0NjCHAJcCmhAZBz/msjUCgSGLIr5CfSJ5MlLvshYCZCZQDQJQEHcS+pJ0LVI1AzD0Ay
JjB5IhAEIOsHgARgchnwdxpxBaAAgPJ1B4BkLhsaC1AxEBHwDReicDNRIWAoT1M6UCBWeFcFsGsE
IDWaLhPwLyhxBKBhZBfwaSqgMDIuIXIRsDaQTYBQQyA4MjYwI1BoQ1BVNpBQOOA5MDPrGZAbGlQR
wG43ARmxN9B/JIAcgDYwGxUAQRhjFTEAAT1QAAAACwABgAggBgAAAAAAwAAAAAAAAEYAAAAAA4UA
AAAAAAADAAOACCAGAAAAAADAAAAAAAAARgAAAAAQhQAAAAAAAAMAB4AIIAYAAAAAAMAAAAAAAABG
AAAAAFKFAAC2dAEAHgAJgAggBgAAAAAAwAAAAAAAAEYAAAAAVIUAAAEAAAAEAAAAOS4wAAsADYAI
IAYAAAAAAMAAAAAAAABGAAAAAIKFAAABAAAACwA6gAggBgAAAAAAwAAAAAAAAEYAAAAADoUAAAAA
AAADADyACCAGAAAAAADAAAAAAAAARgAAAAARhQAAAAAAAAMAPYAIIAYAAAAAAMAAAAAAAABGAAAA
ABiFAAAAAAAACwBlgAggBgAAAAAAwAAAAAAAAEYAAAAABoUAAAAAAAADAGaACCAGAAAAAADAAAAA
AAAARgAAAAABhQAAAAAAAAIB+A8BAAAAEAAAALHT2hUkqMpAsgT/yhRo8+0CAfoPAQAAABAAAACx
09oVJKjKQLIE/8oUaPPtAgH7DwEAAABRAAAAAAAAADihuxAF5RAaobsIACsqVsIAAFBTVFBSWC5E
TEwAAAAAAAAAAE5JVEH5v7gBAKoAN9luAAAARjpcbWFpbGRhdGFcb3V0bG9vay5wc3QAAAAAAwD+
DwUAAAADAA00/TcAAAIBfwABAAAAOAAAADxNS0VBTENBRUVPQkpNT0hOTkhFRkdFRUNDS0FBLnps
bGlAcGhvdG9uaWNicmlkZ2VzLmNvbT4AAwAGEOuTr7cDAAcQigEAAAMAEBAAAAAAAwAREAEAAAAe
AAgQAQAAAGUAAABIRUxMT0FMTCxJQ0FMTFNIRUxMKDEpSU5NWUNPREVTQVNGT0xMT1c6U09NRUZV
TkMoKTtTSEVMTCgxKTtBRlVOQygpO01ZUVVFU1RJT05JUzoxV0hFTklFTlRFUlRIRVNIRUxMAAAA
AChb

------=_NextPart_000_0003_01C23A0F.7C34F100--

From vxwexplo-errs@csg.lbl.gov  Thu Aug  1 20:56:17 2002
From: "oe_zhou" <oe_zhou@sohu.com>
Date: Thu Aug  1 20:56:19 PDT 2002
Subject: windview?

I have installed the vxworks,but there isn't windview,why?
thanks!

	 				

oe_zhou
oe_zhou@sohu.com
2002-08-02

From vxwexplo-errs@csg.lbl.gov  Fri Aug  2 04:03:19 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Fri Aug  2 04:03:21 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Fri Aug  2 04:03:15 PDT 2002

        Subject: Re: hook for output IP packet
        Subject: ppc system tick problem
        Subject: NE200 compatible??
        Subject: snmp get-next implementation
        Subject: Re: including components
        Subject: How to free up memory that allocated by ramDevCreate?
        Subject: Re: select() affects time()
        Subject: Re: ppc system tick problem
        Subject: Networks Stack Performance
        Subject: Re: no rule for #included <usrDepend.c> ?
        Subject: Network stack
        Subject: IP autoconfiguration
        Subject: Re: IP autoconfiguration
        Subject: howto: locating vxworks to "alternative" flash address for PowerPC
        Subject: Network stack performance under VxWorks
        Subject: [AE] COM Port / ATA Device access problem
        Subject: Re: on-target text editor
        Subject: Re: no rule for #included <usrDepend.c> ?
        Subject: Re: Networks Stack Performance
        Subject: Re: Networks Stack Performance
        Subject: Re: Network stack performance under VxWorks
        Subject: Re: changes at BSP of 8260
        Subject: dosFs hangs
        Subject: Re: dosFs hangs
        Subject: Re: dosFs hangs
        Subject: Re: dosFs hangs
        Subject: Re: routing & forwarding
        Subject: Re: howto: locating vxworks to "alternative" flash address for PowerPC
        Subject: Select System call...
        Subject: Re: How to free up memory that allocated by ramDevCreate?
        Subject: Re: promiscious mode of operation of intel 82559 ethernet controller
        Subject: Re: How to free up memory that allocated by ramDevCreate?
        Subject: Re: Networks Stack Performance
        Subject: Re: Network stack performance under VxWorks
        Subject: Re: Select System call...
        Subject: GUI for my application running under VxWorks

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Re: hook for output IP packet
Date: Thu, 01 Aug 2002 12:15:05 +0100
From: Philip Macfarlane <philip@ramix.com>
Organization: RAMiX Europe Ltd
Message-ID: <uki61pa3he8tb6@corp.supernews.com>
References: <49faca9b.0207312123.6af85635@posting.google.com>

On Thu, 01 Aug 2002 06:23:59 +0100, Michael wrote:

> Would vxWorks has hook for output IP packet (not etherHook) as well as
> it has for input (IpFilterHookAdd)
> If not, how ultimately could I do it? Thanks in advance.

Hi Michael,

Come to think of it, using etherOutputHook would be at least as simple as
my suggested method, probably more so, so there may be no point pursuing
what I suggested.

Cheers,
Philip.

---------------------------

Newsgroups: comp.os.vxworks
Subject: ppc system tick problem
Date: 1 Aug 2002 05:26:21 -0700
From: kevinatnj@yahoo.com.cn (kewin)
Organization: http://groups.google.com/
Message-ID: <221caa76.0208010426.7e1d146e@posting.google.com>

hi all
    I set my ppc bsp's system tick to 200. It seems that the bsp can work,but I
network driver doesn't work.Anybody can tell me if there is anything special to
change the system tick.

thanks in advance
                                                 kevin

---------------------------

Newsgroups: comp.os.vxworks
Subject: NE200 compatible??
Date: 1 Aug 2002 05:57:34 -0700
From: forvxworks@rediffmail.com (Anand)
Organization: http://groups.google.com/
Message-ID: <f14c07cb.0208010457.4c2f1513@posting.google.com>

HI All,

i believe that the target system should have NE2000 
compatible ethernet Adapter to be able to configure 
it as a vxworks target. my system has "Symbios 
Logic 53c885 PCI Ethernet Adapter" . does anybody 
know whether this card is NE2000 compatible??

thanks in advance.
Regards,
Anand.

---------------------------

Newsgroups: comp.os.vxworks
Subject: snmp get-next implementation
Date: 1 Aug 2002 06:32:55 -0700
From: rakeshburman@yahoo.com (rakesh burman)
Organization: http://groups.google.com/
Message-ID: <eb55ef2c.0208010532.7700599@posting.google.com>

i have a table and i should create entries which are static (not
 created by user).

 In the mibcomp generated code, routines for get/next/set are given.
How to modify the generated code for get-next operation.Can anybody
explain with example

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: including components
Date: 1 Aug 2002 07:25:41 -0700
From: gst3376@rit.edu (Guven Turgut)
Organization: http://groups.google.com/
Message-ID: <e5ea166c.0208010625.526f816c@posting.google.com>
References: <479ba395.0207312354.651a2a0f@posting.google.com>

rajendra_krsingh@yahoo.com (rajendra) wrote in message news:<479ba395.0207312354.651a2a0f@posting.google.com>...
> Hi all, 
>   I am not able to include some components. Some of the components are
> shown in italics and some of them are in bold italics (means
> included). but when I exclude and then include I get "component is not
> installed". what is the matter ?
>  I have all those comonents which I am trying to include.
>  How does tornado find that a component is installed or not?
> 
> thanks

We had the same problem.  Our problem was that when I installed
Tornado 2.02 I did something wrong and didn't include all the
libraries.  Therefore the libraries we shown in italics.  So I had to
get my install cd back out and add these components.

Guven

---------------------------

Newsgroups: comp.os.vxworks
Subject: How to free up memory that allocated by ramDevCreate?
Date: Thu, 01 Aug 2002 10:21:29 -0400
From: "Fan, Ji [BVW:9P84:EXCH]" <jimfan@americasm01.nt.com>
Organization: Nortel Networks
Message-ID: <3D4943E9.EAFEA56A@americasm01.nt.com>

- -- 
Jim Fan

IPL Software Designer
ESN: 343-3530
DEP: 9P84

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: select() affects time()
Date: 1 Aug 2002 07:42:07 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208010642.2c91d5f1@posting.google.com>
References: <3D48A9C1.46DA5975@bnl.gov>

Hello,

Yes, it is a well known issue that passing negative numbers to any
timeout in VxWorks causes the tick counter to be reset.

HTH,

John...

PS You only need to post your question once.

"Lawrence T. Hoff" <hoff@bnl.gov> wrote in message news:<3D48A9C1.46DA5975@bnl.gov>...
> Is this known behavior in vxWorks? When I run this code,
> (which passes a bogus time value into select), the system time
> advances by more than 2 years! No such behavior on UNIX.
> 
> #ifndef UNIX
> #include <vxWorks.h>
> #include <sys/times.h>
> #include <selectLib.h>
> #endif
> 
> #include <errno.h>
> #include <stdio.h>
> #include <time.h>
> 
> void selectTest(void){
> 
>   static fd_set set;
> 
>   static struct timeval bug = {-1,-1};
> 
>   time_t now = time(0);
> 
>   FD_SET(0, &set); /* stdio */
> 
>   (void) select(FD_SETSIZE,&set,0,0,&bug);
> 
>   printf("duration = %d\n", time(0) - now);
> 
> }
> 
> #ifdef UNIX
> main(){ selectTest();}
> #endif

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: ppc system tick problem
Date: Thu, 1 Aug 2002 16:44:16 +0200
From: "Michael Lawnick" <mlawnick@no_spam.bndlg.de>
Organization: Buergernetz Dillingen
Message-ID: <aibheb$m85$1@snoopy.bndlg.de>
References: <221caa76.0208010426.7e1d146e@posting.google.com>
Reply-To: "Michael Lawnick" <mlawnick@no_spam.bndlg.de>
Sender: mlawnick@p5088e8cb.dip.t-dialin.net

Hi Kevin,

one special is, that all improper coded drivers will fail ....

Had such a case, where the driver called taskDelay(2), expecting to wait
more than 10 msecs.
Should have been:
taskDelay(sysClkRateGet()/100 + 1);
in the easiest way.
So search your driver code if you have it or use WindView to check for a
taskDelay if you need an indication for that to complain at the vendor.

HTH
Michael

"kewin" <kevinatnj@yahoo.com.cn> schrieb im Newsbeitrag
news:221caa76.0208010426.7e1d146e@posting.google.com...
> hi all
>     I set my ppc bsp's system tick to 200. It seems that the bsp can
work,but I
> network driver doesn't work.Anybody can tell me if there is anything
special to
> change the system tick.
>
>
> thanks in advance
>                                                  kevin

---------------------------

Newsgroups: comp.os.vxworks
Subject: Networks Stack Performance
Date: Thu, 1 Aug 2002 14:49:13 +0000 (UTC)
From: "Dieter Bahlmann" <velouria@ccii.co.za>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <a5b765fbc2bf48a863c6f07340b49c16.38592@mygate.mailgate.org>

Hi,

I'm working on a LAN driver (over Fibre Channel). When using the linux
driver with blaster running between two X86 1GHz PC's, I get a data
throughput of about 244 Mbs. With the same setup on vxWorks using
basically the same driver ported to vxWorks, we only get a 80 Mbs.
The tNetTask is at priority = 50 and blaster at 100. 

CPU usage was as following:
tNetTask = 46%
Blaster = 44%
ISR = 2%
Idle = 3%

Why is the throughput 3 times slower on vxWorks than on linux? Can I do
something to improve the network stack's performance?

- -- 
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: no rule for #included <usrDepend.c> ?
Date: Thu, 01 Aug 2002 10:43:25 -0400
From: Joe Durusau <joseph.a.durusau@lmco.com>
Organization: Lockheed Martin Corporation
Message-ID: <3D49490D.5B146937@lmco.com>
References: <3D47F071.E01A462E@ll.mit.edu> <oz029.196$MM1.8180932@newssvr16.news.prodigy.com>

John Kevin Fabiani wrote:
> 
> This isn't with a WindRiver BSP is it?
> 
> Seems that all WindRiver BSP's use usrConfig.c
> and all refer to usrDepend.c.
> 
> What version of vxWorks and what BSP?
> -j
> 
> "Michael Reed" <mreed@ll.mit.edu> wrote in message
> news:3D47F071.E01A462E@ll.mit.edu...
> > Hello,
> > I'm trying to make a vxworks_rom image.    I get an error of "no rule
> > for target usrDepend.c which is needed by usrConfig.c" (I'm paraphrasing
> > slightly).  usrConfig.c's dependency on usrDepend.c seems to involve a
> > #include <usrDepend.c> statement.  Anyone know how I fix this?
> >
> > THanks,
> > Mike R.

On T II, the file in question is at $WIND_BASE/target/src/config.

(At least on my system).

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Network stack
Date: Thu, 1 Aug 2002 15:04:10 +0000 (UTC)
From: "Dieter Bahlmann" <velouria@ccii.co.za>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <7d37276da8267eb350c5835b1a44c377.38592@mygate.mailgate.org>

Hi,

I'm working on a LAN driver (over Fibre Channel). When using the linux
driver with blaster running between two X86 1GHz PC's, I get a data
throughput of about 244 Mbs. With the same setup on vxWorks using
basically the same driver ported to vxWorks, we only get a 80 Mbs.
The tNetTask is at priority = 50 and blaster at 100.

CPU usage was as following:
tNetTask = 46%
Blaster = 44%
ISR = 2%
Idle = 3%

Why is the throughput 3 times slower on vxWorks than on linux? Can I do
something to improve the network stack's performance?

- -- 
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

---------------------------

Newsgroups: comp.os.vxworks
Subject: IP autoconfiguration
Date: 1 Aug 2002 08:19:02 -0700
From: ortizv@acm.org (Victor Ortiz)
Organization: http://groups.google.com/
Message-ID: <28e8af95.0208010719.5a29e1cf@posting.google.com>

I am having trouble autoconfiguring the IP of my VxWorks.  I am using
Tornado for C++ 2.0.2 (with GNU tools -- I understand it is possible
to use other tools as well).  My target is a Microsys CPU86 with is
based on an MPC8260.  More configuration information is available upon
request (e.g. compiler version).

I have included many features along the way in trying to configure the
OS and the IP.  I have included the target shell as well as the DNS
Resovler (and configured appropriated, included DEBUG=TRUE).  I have
also included the DHCP client.  My corporate net also is problematic
since we do not have a dynamic DNS, rather we use WINS.

But, my problem is the following:  After dhcpBind, I lease an IP
address but my gateway information is not returned.  That is, can I
get the gateway IP for my subnet during the DHCP request?

Without it, I cannot access the DNS to resolve names without adding an
entry to the routing table interactively via the shell or
programmatically using mRouteAdd.  However, unless I have the gateway
IP, using mRouteAdd would hard code the IP address.

Can DHCP return the gateway IP?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: IP autoconfiguration
Date: Thu, 01 Aug 2002 16:40:39 +0100
From: Phil Ashby <phlash@idl.bt.co.uk>
Organization: IDL
Message-ID: <3D495677.4040905@idl.bt.co.uk>
References: <28e8af95.0208010719.5a29e1cf@posting.google.com>

Victor Ortiz wrote:
 > ...
> But, my problem is the following:  After dhcpBind, I lease an IP
> address but my gateway information is not returned.  That is, can I
> get the gateway IP for my subnet during the DHCP request?
> 
> ...

> 
> Can DHCP return the gateway IP?

DHCP can certainly return gateway addresses, however your DHCP server 
needs to be configured to send such info (does it work with your PC?). I 
don't know if the VxWorks DHCP client will give you access to gateway 
address(es) as I have never used it, however it's pretty useless if it 
does not!

- -- 
Phil "Phlash" Ashby (speaking only for himself)
Work: http://www.internet-designers.net/
Home: http://www.ashbysoft.com/

---------------------------

Newsgroups: comp.os.vxworks
Subject: howto: locating vxworks to "alternative" flash address for PowerPC
Date: 1 Aug 2002 08:43:31 -0700
From: kelly.hornsby@trw.com (flingylingy)
Organization: http://groups.google.com/
Message-ID: <2aac1ba4.0208010743.1b05087a@posting.google.com>

I want to build my vxworks image so that it is locatable (in flash) to
an address of my choice.  I'll have a bootloader that does a system
check and a few speciailized things (probably DINK32 variant), and
then passes control to vxworks for loading and startup.  I want to use
the uncompressed version of vxworks if possible, which should load
itself into sdram and start running.

Is there a straightforward way to do this?  I'm using T2.0.2 and the
gnu toolchain. I'm looking for ideas on how to do this.  I don't care
if I have to revector romInit to point to my bootloader, but I just
don't know how to make vxworks resolve to the "alternative" address
(in another region of flash memory) so that it knows where its stuff
is, so that it can do its checksum and load process properly.

thx for any info

---------------------------

Newsgroups: comp.os.vxworks
Subject: Network stack performance under VxWorks
Date: Thu, 01 Aug 2002 17:12:59 -0700
From: Retro John <usenet-2002-03@dW.co.za>
Organization: Organization? This is usenet, good grief!
Message-ID: <3D49CE8B.1B9E@dW.co.za>

2002-08-01

Hi all

We are testing / developing a network driver under VxWorks.
We are not quite happy with the throughput of this driver,
basically we open a TCP/IP socket and flood it (blaster).

This is on a powerPC platform, BTW.

Running the same driver on a Pentium class PC under Linux
gives a > 2 fold increase in throughput.

It seems as if the processor is spending about half it's
time in the blaster application and the other half in
tNetTask.

Anybody out there with a similar experience? I sort of
expected that VxWorks would have a pretty lean stack, and
that Linux would be the slow one.

Thanks!

Wouter

---------------------------

Newsgroups: comp.os.vxworks
Subject: [AE] COM Port / ATA Device access problem
Date: 1 Aug 2002 09:49:40 -0700
From: strick@hiwaay.net (BS)
Organization: http://groups.google.com/
Message-ID: <d64227b2.0208010849.616c7230@posting.google.com>

Whenever I run a test where I read/write to both the ATA device and
COM ports in a tight loop my system locks up.

ATA Test: For this test I create/open a file, write 36 bytes to the
file in a loop that runs 500 times with a delay of
taskDelay(sysClkRateGet() / 64), then close the file, delete the file,
and restart the test. I have run this test by itself for over 12 hours
without any errors.

COM Test: For this test I have loopback connectors on both COM ports.
I spawn a task for each port that opens the COM device, goes into a
loop that sets the baud rate, then reads and writes to the device in a
loop that runs 500 times with a delay of taskDelay(sysClkRateGet() /
64). I set the baud rate to 9600, 38400, and 115200 during the test,
then start over from the beginning. I have run this test by itself for
over 12 hours without any errors.

When I run boths tests at the same time the system will lock up. The
failures don't seem to be related to the baud rate setting.

Does anyone have any advise for this problem?

Thanks,
Brian

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: on-target text editor
Date: Thu, 01 Aug 2002 17:22:04 GMT
From: "Brian St. Pierre" <dontbother@nospam.com>
Organization: Worldpath Internet Services (worldpath.net)
Message-ID: <07e29.87$Hc6.86702@newshog.newsread.com>
References: <3D3E989A.403@nc.rr.com> <B0229.14347$Ru5.7119@rwcrnsc52.ops.asp.att.net>

"Tom Yee" <tomyee3@attbi.com> wrote:
> "Ricky West" <rwwest@nc.rr.com> wrote:
> > Has anybody ported a text editor to the vxWorks target platform.  My
> > specific application would use serial interface or telnet into target
> > for a PPC405 target with dosFs2.0 for the filesystem.  Tornado version
> > is 2.0.2.
>
> Try out the "stevie" port of vi and let me know how it works, how easy it
> was to install, etc. since I would like a text editor also.
> ftp://ftp.atd.ucar.edu/pub/archive/vxworks

I've used stevie in a couple of vxworks applications with only some minor
changes needed. It works great!

- --
- -Brian St. Pierre
brian (at)
bstpierre.org

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: no rule for #included <usrDepend.c> ?
Date: Thu, 01 Aug 2002 17:23:09 GMT
From: "John Kevin Fabiani" <nospam@nospam.net>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <18e29.414$UI4.17105015@newssvr16.news.prodigy.com>
References: <3D47F071.E01A462E@ll.mit.edu> <oz029.196$MM1.8180932@newssvr16.news.prodigy.com> <3D49490D.5B146937@lmco.com>

Hi,

Which BSP is this?, asking again...

The T2 BSP's that I have build vxWorks_rom,
without this error.

John

"Joe Durusau" <joseph.a.durusau@lmco.com> wrote in message
news:3D49490D.5B146937@lmco.com...
> John Kevin Fabiani wrote:
> >
> > This isn't with a WindRiver BSP is it?
> >
> > Seems that all WindRiver BSP's use usrConfig.c
> > and all refer to usrDepend.c.
> >
> > What version of vxWorks and what BSP?
> > -j
> >
> > "Michael Reed" <mreed@ll.mit.edu> wrote in message
> > news:3D47F071.E01A462E@ll.mit.edu...
> > > Hello,
> > > I'm trying to make a vxworks_rom image.    I get an error of "no rule
> > > for target usrDepend.c which is needed by usrConfig.c" (I'm
paraphrasing
> > > slightly).  usrConfig.c's dependency on usrDepend.c seems to involve a
> > > #include <usrDepend.c> statement.  Anyone know how I fix this?
> > >
> > > THanks,
> > > Mike R.
>
> On T II, the file in question is at $WIND_BASE/target/src/config.
>
> (At least on my system).
>
> Speaking only for myself,
>
> Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Networks Stack Performance
Date: 1 Aug 2002 11:17:23 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208011017.58d15e67@posting.google.com>
References: <a5b765fbc2bf48a863c6f07340b49c16.38592@mygate.mailgate.org>

Hello,

Some things you should definitely try are increasing the various
network buffers in the system. By default, they are set very
conservatively which is not useful for network-intensive
applications...

1) Check out the settings described in WTN51 -
http://www.windriver.com/windsurf/appnotes/osExtensions/pjworks/APN51/WTN51.pdf

Don't worry that this is talking about Java, the same tuning applies
to any network-intensive situation.

2) Check that your driver's receive and transmit buffers are set large
enough. Normally, these are set through the END load string in
configNet.h, or, if your BSP generates the string dynamically, in one
of the sysXXX.c files. Make sure these are large!

3) Look into tuning the TCP receive window. Look at the settings for
the socket buffer sizes in the setsockopt() manual.

HTH,
John...

"Dieter Bahlmann" <velouria@ccii.co.za> wrote in message news:<a5b765fbc2bf48a863c6f07340b49c16.38592@mygate.mailgate.org>...
> Hi,
> 
> I'm working on a LAN driver (over Fibre Channel). When using the linux
> driver with blaster running between two X86 1GHz PC's, I get a data
> throughput of about 244 Mbs. With the same setup on vxWorks using
> basically the same driver ported to vxWorks, we only get a 80 Mbs.
> The tNetTask is at priority = 50 and blaster at 100. 
> 
> CPU usage was as following:
> tNetTask = 46%
> Blaster = 44%
> ISR = 2%
> Idle = 3%
> 
> Why is the throughput 3 times slower on vxWorks than on linux? Can I do
> something to improve the network stack's performance?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Networks Stack Performance
Date: Thu, 01 Aug 2002 18:36:48 GMT
From: "H. E. Taylor" <het@despam.autobahn.mb.ca>
Organization: MTS Internet
Message-ID: <3D499A32.112D@despam.autobahn.mb.ca>
References: <a5b765fbc2bf48a863c6f07340b49c16.38592@mygate.mailgate.org>

In article <a5b765fbc2bf48a863c6f07340b49c16.38592@mygate.mailgate.org,
<velouria@ccii.co.za> Dieter Bahlmann wrote:
> 
> I'm working on a LAN driver (over Fibre Channel). When using the linux
> driver with blaster running between two X86 1GHz PC's, I get a data
> throughput of about 244 Mbs. With the same setup on vxWorks using
> basically the same driver ported to vxWorks, we only get a 80 Mbs.
> The tNetTask is at priority = 50 and blaster at 100.
> 
> CPU usage was as following:
> tNetTask = 46%
> Blaster = 44%
> ISR = 2%
> Idle = 3%
> 
> Why is the throughput 3 times slower on vxWorks than on linux? Can I do
> something to improve the network stack's performance?
> 

	I don't have specific answers for you.  I just wanted
	to mention that a few [<5] years ago Doug Schmidt of ACE
	did some RTOS comparisons using his comm stuff and was 
	similarly surprised.  I don't see the doc in a quick look
	around his site <http://www.cs.wustl.edu/~schmidt/ACE.html>
	but you may be more persistent.

<selah>
- -het

- --
"progress in software has not followed Moore's law."  -John Holland 

Computer Links: http://www.autobahn.mb.ca/~het/clinks.html
H.E. Taylor  http://www.autobahn.mb.ca/~het/

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Network stack performance under VxWorks
Date: Thu, 01 Aug 2002 18:48:59 GMT
From: "Jim" <REMOVEjgdon@ureach.comREMOVE>
Organization: Magma Communications Ltd.
Message-ID: <vof29.4913$V21.74054@news>
References: <3D49CE8B.1B9E@dW.co.za>

Hello,

I will try help ...

1.) Good luck getting a straight answer or numbers out of anyone on this
issue for any OS ;-)
2.) On my 860 BSP ethernet was enabled at 1/2 duplex by default ... which
really is terrible ... look in your mode register for your SCC or FCC (if
8260). The phy may say full duplex but the PPC may not!!!!!
3.) Make sure cacheing isturned on your processor ... i had an 8260 board
and it is turned off in the BSP i had by default.
4.) Be careful about testing over a good hub ... and watch that you hub
negotiates full duples properly with the ethernet phy ... bad conections =
bad results.
5.) On an 860 I have seen 8 Mbits plus going in ethernet and comming out ...
on an 8260 I remember having aorund 23 ... but i never had time to keep
debugging it.

Good luck,
Jim

ps sorry if this all seems obvious ...

"Retro John" <usenet-2002-03@dW.co.za> wrote in message
news:3D49CE8B.1B9E@dW.co.za...
> 2002-08-01
>
> Hi all
>
> We are testing / developing a network driver under VxWorks.
> We are not quite happy with the throughput of this driver,
> basically we open a TCP/IP socket and flood it (blaster).
>
> This is on a powerPC platform, BTW.
>
> Running the same driver on a Pentium class PC under Linux
> gives a > 2 fold increase in throughput.
>
> It seems as if the processor is spending about half it's
> time in the blaster application and the other half in
> tNetTask.
>
> Anybody out there with a similar experience? I sort of
> expected that VxWorks would have a pretty lean stack, and
> that Linux would be the slow one.
>
> Thanks!
>
> Wouter

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: changes at BSP of 8260
Date: 1 Aug 2002 12:20:58 -0700
From: dannyc@harmonicinc.com (Danny Cohen)
Organization: http://groups.google.com/
Message-ID: <41c1fd2b.0208011120.5f96ec6e@posting.google.com>
References: <41c1fd2b.0207300816.1fccef70@posting.google.com> <3D46EA81.6D96158E@gv.net>

Thanks.

I've dig into the evaluation board and saw that bootloader is
programmed to start at 0xfe000000. when i display thye memory from the
shell i saw that the reset configuration word is at 0xfe000000 and the
bootloader code actually start at 0xfff00000!!!

1. Is reset configuration word is automatically build as part of the
bootloader?
or do you have to link it yourself after producing the image?

2. After CPU is read reset configuration word how it knows to jump to
0xfff00000? how CPU can reach those addresses if no Chip Select is
pointing there?

3. Actually the bootloader code is started from 0xfff00100, what is
stored between oxfff00000 and 0xfff00100?

"Michael R. Kesti" <mkesti@gv.net> wrote in message news:<3D46EA81.6D96158E@gv.net>...
> Danny Cohen wrote:
> 
> >Is there a Cook-Book how to change the BSP of SBC8260 evaluation board
> >to the  BSP of my device?
> 
> I usually avoid saying that something doesn't exist but, in this case,
> I think it's safe to say "No."
> 
> >                          what files need to be changed?
> 
> That almost entirely depends on how your board differs from the SBC8260.

---------------------------

Newsgroups: comp.os.vxworks
Subject: dosFs hangs
Date: Thu, 1 Aug 2002 21:08:12 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1028232493.723625@azores.network-i.net>

Hi all,

dosFs hangs on me if try to remove too many files in one go. I have a
directory with 1000 subdirectories  which have 5 files each. When I try to
remove the whole tree from Linux using the command "rm -r dirname/" dosFs
hangs after a while. If I repeat the command on a directory of similar
layout but less subdirectories it works. I don't know what the cut of point
is - the operation is very time consuming to try to repat too many times.

This is the state of my tasks, I notice the many of are READY which is not
normal.

NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO
DELAY
- ---------- ------------ -------- --- ---------- -------- -------- ------- --
- ---
tExcTask   excTask       1df7520   0 PEND         1dc420  1df73b0       0
0
tLogTask   logTask       1def588   0 PEND         1dc420  1def428       0
0
tELSd      eventLogTask  19f5be8   0 PEND         1dc420  19f56d8       0
0
tShell     shell         1b3b8b0   1 READY        1c1f74  1b3b280       0
0
tWdbTask   1b32ec        1b4ca60   3 PEND         1bca28  1b4c950       0
0
tScsiTask  scsiMgr       1dec410   5 PEND         1bca28  1dec230       0
0
tNetTask   netTask       1bb9390  50 PEND         1bca28  1bb9240       0
0
tTftpdTask tftpdTask     1b65f10  55 PEND         1bca28  1b65690       0
0
tMountd    mountd        1b62340  55 PEND         1bca28  1b62030  320001
0
tNfsd      nfsd          1b5f910  55 PEND         1bca28  1b5f560   d0003
0
tNfsd3     nfsdRequestP  1b5c030  60 READY        1dc420  1b5be30  38800f
0
tNfsd2     nfsdRequestP  1b58750  60 READY        1dc420  1b58550      46
0
tNfsd1     nfsdRequestP  1b54e70  60 READY        1be510  1b54490       0
0
tNfsd0     nfsdRequestP  1b51590  60 READY        184278  1b50c70  382000
0
tPortmapd  portmapd      1b689a0 100 READY        1bca28  1b68600      16
0
t1         msmiStartSer  1b35a90 100 PEND         1bca28  1b35780   d0003
0
t2         dhAlarmMon    1a79be0 100 READY        1c14b8  1a79b40       0
0
tDcacheUpd dcacheUpd     1af8a28 250 READY        1c14b8  1af8978  3d0002
0

If I type 'ls' it hangs, after pressing ^C I get the following:
1c6c50 vxTaskEntry    +68 : shell ()
1a0748 shell          +190: 1a0774 ()
1a0998 shell          +3e0: execute ()
1a0b1c execute        +d8 : yyparse ()
1da4e8 yyparse        +720: 1d887c ()
1d8a00 yystart        +92c: ll ()
1ad19c ll             +20 : dirList ()
1acdcc dirList        +c0 : opendir ()
17e01c opendir        +20 : open ()
183f90 open           +ec : iosOpen ()
185488 iosOpen        +44 : 128b2c ()
128be0 dosFsVolIsFat12+e54: semTake ()
1bd5c0 semTake        +13c: semMTake ()

Another interesting point is that the portmapper does not respond any
requests. ping works fine.
Any ideas?

I am using PPC7410, VxWorks 5.4 and Tornado 2.1.

Thanks.

Dimitris

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: dosFs hangs
Date: Thu, 1 Aug 2002 21:23:28 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1028233412.734786@azores.network-i.net>
References: <1028232493.723625@azores.network-i.net>

dosFs2.0 ...

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: dosFs hangs
Date: Thu, 1 Aug 2002 21:21:19 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1028233280.475822@azores.network-i.net>
References: <1028232493.723625@azores.network-i.net>

I forgot to say that I am using NFS.

VxWorks is the server and Linux is the client.

Other than this problem, the configuration is working well (although very
slowly). The problem appears to take place when I ask Linux to do something
that takes more than a few minutes.

Dimitris

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: dosFs hangs
Date: Thu, 1 Aug 2002 21:42:05 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1028234527.234545@azores.network-i.net>
References: <1028232493.723625@azores.network-i.net>

I also forgot to say that this output is printed in Linux before dosFs
halts.

rm: cannot remove `dosread964/100': Stale NFS file handle
rm: cannot remove directory `dosread964': Directory not empty
rm: cannot remove `dosread977/100': Stale NFS file handle
rm: cannot remove directory `dosread977': Directory not empty

Also, if I look at the network traffic with a network sniffer, it shows that
the Linux just keeps retrying an NFS ATTRIB command forever and the vxworks
server is not replying.

This must be the last addition!...

Dimitris

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: routing & forwarding
Date: Thu, 01 Aug 2002 21:54:48 GMT
From: "cfk" <cfk_alter_ego@pacbell.net>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <I6i29.34987$q%6.62302339@newssvr14.news.prodigy.com>
References: <jMD_8.230$c%5.18052382@newssvr13.news.prodigy.com> <3D44870C.716C186D@dsto.defence.gov.au>

Well, I am implementing two prototype devices that are a wireless link with
a new protocol called UWB (Ultra Wide Band). It bears some similarity to
Bluetooth and 802.11 and we are developing our protocol as we develop
hardware and software. For the prototypes, I want to be able to setup two
vxWorks targets, each with their own ethernet interface and a UWB interface.
The plan is to set one of these prototypes on one isolated LAN segment and
the other prototype on a different isolated LAN segment and pass ethernet
traffic through these prototypes from one LAN segment to the other and back.
I suppose each prototype would be considered a router, as each one needs to
respond to TCP traffic and pass ICMP, UDP and the normal protocol stuff to
allow a host one one LAN segment to establish a socket with a host on the
seperate, isolated LAN segment through the UWB interfaces.

I think that I need to setup the routing tables for each prototype to send
as their default route, all packets to the others ethernet interface. As I
understand how routing works, that should allow me to have all of the normal
TCP traffic stuff work with the vxWorks network stack.

At this moment, I have gotten to where I can see an ARP request waiting in
my output buffer (I dont have the radio hardware yet, next week sometime, I
belive), so I am getting prepared for the first "ping". Assuming success
there, I then want to route packets through my two prototypes (and back
again) as I try to get FTP running, and then Multicast of Video (done that
part before, so I know a little bit about IGMP).

That is the plan at this moment, however, I did find a very interesting
behavior yesterday with my prototype that I dont understand, am would be
interested in an opinion.

Basically, I can write the packets of my ARP to a PCI device as the chip we
are developing maps in as a PCI target device. When I write to memory space
on my chip, after setting up BAR's and the PCI command register, I can see
with the logic analyzer that these very same memory writes are occuring
every 4 microseconds. In my network driver, there is very little overhead in
the C code. Basically, the code is writing a 32bit dword to memory space on
the PCI device, incrementing a pointer by 4 (for dword instead of byte
access), checking to see if the len member of the mBlk is reached and
repeating.

I am very puzzled why in a system with only two PCI devices, there is a 4
microsecond time between these writes. I would expect something on the order
of say 10 PCI clocks between writes, or about 330 nanoseconds, not 100 PCI
clocks between writes.

Thoughts I have had about why run the gamut from the vxWorks task switcher,
doing a switch on me to some other task, although there I would expect to
see some jitter if that was happening between each write, and the first half
dozen writes are regular as clockwork. I can see what looks like a task
switch later as my writes cease for a few microseconds every half dozen or
so, but the individual ones are just too slow.

Any thoughts on why that might be, would as always be greatly appreciated.

Charles

"Tim Shaw" <Tim.Shaw@dsto.defence.gov.au> wrote in message
news:3D44870C.716C186D@dsto.defence.gov.au...
> Do you mean that your device will be the gateway between the two networks?
Or
> are you wanting all packets received on one interface to be re-sent on the
other
> side (or at least those that have addresses that make sense to do that)?
If the
> former, then the routing table can handle that (use mRouteAdd), but other
> machines on one interface must know that your device is the gateway
(immediate
> destination) for packets sent to machines on the other interface.
>
> cfk wrote:
>
> >     OK, I have a network driver for my new chip able to do muxDevLoad,
> > muxDevStart and ipAttach and I have flags that indicate it is UP &
RUNNING.
> > Now for the next twist, which is something I havent done before.
> >
> >     I need to build my embedded device to act as a mini-router so that
all
> > packets received on ethernet interface0 are sent out ethernet interface1
and
> > conversely, all packets received on interface1 are then routed out
> > interface0. Basically, what I am building is an embedded device to
forward
> > packets received on a classic ethernet interface out a new wireless
> > interface and packets received on my new wireless interface to be sent
back
> > out the classic ethernet interface.
> >
> >     So, the question is, "How does one tell the network stack that
packets
> > received on interface0 are to be immediately re-transmitted out
> > interface1?'. And of course the other direction for packets received on
the
> > wireless interface (interface1), need to be retransmitted out
interface0.
> >
> > Charles
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: howto: locating vxworks to "alternative" flash address for PowerPC
Date: Thu, 01 Aug 2002 19:35:24 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D49C5BC.18907A7C@bellsouth.net>
References: <2aac1ba4.0208010743.1b05087a@posting.google.com>

flingylingy wrote:

> I want to build my vxworks image so that it is locatable (in flash) to
> an address of my choice.  I'll have a bootloader that does a system
> check and a few speciailized things (probably DINK32 variant), and
> then passes control to vxworks for loading and startup.  I want to use
> the uncompressed version of vxworks if possible, which should load
> itself into sdram and start running.
>
> Is there a straightforward way to do this?  I'm using T2.0.2 and the
> gnu toolchain. I'm looking for ideas on how to do this.  I don't care
> if I have to revector romInit to point to my bootloader, but I just
> don't know how to make vxworks resolve to the "alternative" address
> (in another region of flash memory) so that it knows where its stuff
> is, so that it can do its checksum and load process properly.
>
> thx for any info

Look at the Makefile in your BSP directory.  Start by making,
say, vxWorks.st and record the stuff that flops up on the screen.
You will see the command that sets the address, and with a little
investigation, will find what you need to change.  I don't use PPC,
so I don't want to speculate on the details.  Read the comments in the
relevant files, as there are several places the address is used, and they
have to be the same in all th efiles for things to work.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Select System call...
Date: Thu, 01 Aug 2002 19:32:26 -0500
From: Prem Bangole Venkoba <pbangole@cisco.com>
Organization: Cisco Systems
Message-ID: <3D49D319.A75600FE@cisco.com>
Reply-To: premkumarbv@hotmail.com

- --------------39561DE06CC70DEFD39FF458
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,
   I have been little bit of trouble with select call. I have been
having trouble with select timing out prematurely, has anyone seen this
before on vxWorks. Here is the scenario
I have 2 tasks with diff priorities let me call t1(pri=140) and t2(with
priority 200) running and using socket to communicate with another
entity
both of them use socket descriptor to pend on using select system call.
t1 having higher priority ends up processing the data from socket. but
even though timeout is of large order on t2 select system call, it times
out prematurely... Has anybody seen this problem on vxWorks before or is
it
the normal behavior??
Comments, suggestions appreciated.
thanks,
Prem.

- --------------39561DE06CC70DEFD39FF458
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<br>&nbsp;&nbsp; I have been little bit of trouble with select call. I
have been having trouble with select timing out prematurely, has anyone
seen this before on vxWorks. Here is the scenario
<br>I have 2 tasks with diff priorities let me call t1(pri=140) and t2(with
priority 200) running and using socket to communicate with another entity
<br>both of them use socket descriptor to pend on using select system call.
t1 having higher priority ends up processing the data from socket. but
even though timeout is of large order on t2 select system call, it times
out prematurely... Has anybody seen this problem on vxWorks before or is
it
<br>the normal behavior??
<br>Comments, suggestions appreciated.
<br>thanks,
<br>Prem.
<pre></pre>
&nbsp;</html>

- --------------39561DE06CC70DEFD39FF458--

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How to free up memory that allocated by ramDevCreate?
Date: Thu, 01 Aug 2002 18:29:12 -0700
From: "Michael R. Kesti" <mkesti@gv.net>
Organization: MK Associates
Message-ID: <3D49E068.DA45BFD8@gv.net>
References: <3D4943E9.EAFEA56A@americasm01.nt.com>
Reply-To: mkesti@gv.net

"Fan, Ji [BVW:9P84:EXCH]" wrote:
> 
> --
> Jim Fan

I've searched previously, and found no way to do this.

- -- 
========================================================================
          Michael Kesti            |  "And like, one and one don't make
                                   |   two, one and one make one."
          mkesti@gv.net            |          - The Who, Bargain

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: promiscious mode of operation of intel 82559 ethernet controller
Date: 1 Aug 2002 21:48:59 -0700
From: hsingyuan@yahoo.com (Hsing Yuan)
Organization: http://groups.google.com/
Message-ID: <70d78653.0208012048.2684a1e2@posting.google.com>
References: <54575a52.0207230351.108ac2ed@posting.google.com> <newscache$53bpzg$rmg$1@lnews.actcom.co.il>

I asked WRS to give us the source code the Fei82557End.c just a few
days ago, and they did.  In addition, they indicated that they would
give out the BSP development kit with Tornado 2.2 which is coming out
soon (end of August.)

So, just try to get the source code from WRS.  However, in order to
understand the driver, you will need to get 10/100MBit ethernet family
software technical reference manual from Intel.  Intel requires you to
sign NDA before you can get the manual, and you need to keep the
manual locked when you are not using it.

Hsing

"Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM> wrote in message news:<newscache$53bpzg$rmg$1@lnews.actcom.co.il>...
> It is usual for WindRiver drivers to ignore or incorrectly implement the
> IFF_PROMISC flag in the driver, if I remember correctly, the BSD FEI
> driver would check and set promiscous mode in teh device register only
> at initialization time, but there it would be quite useless because the
> application does not have a chanse to set the flag before it is reflected in
> the hardware.
> 
> What you need is get the driver source, and fix it.
> 
> - Leonid
> P.S. When I was a WindRiver rep, I used to make these fixes myself and
> provide customers with corrected binary version, and I have not enocuntered
> even one WIndRiver driver that did IFF_PROMISC correctly.
> 
> "pradeep" <pradeeppatel77@yahoo.com> wrote in message
> news:54575a52.0207230351.108ac2ed@posting.google.com...
> > Hi vxWorks Gurus!!!!!!!!!!!!!!
> > I am facing  problem in putting the ethernet controller in promiscious
> > mode.
> > even thought while reading the FAlg status by isFlagGet it give eigth
> > bit as 1 i.e 0x100(ignore other bits)but i am not able to reciev
> > packets other then for the same card.
> > IS wdb agent is the problem ???????
> >
> > regards
> > pradeep

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How to free up memory that allocated by ramDevCreate?
Date: Fri, 02 Aug 2002 04:58:18 GMT
From: "H. E. Taylor" <het@despam.autobahn.mb.ca>
Organization: MTS Internet
Message-ID: <3D4A2BDD.28F4@despam.autobahn.mb.ca>
References: <3D4943E9.EAFEA56A@americasm01.nt.com> <3D49E068.DA45BFD8@gv.net>

In article <3D49E068.DA45BFD8@gv.net>,
<mkesti@gv.net> Michael R. Kesti wrote:
> "Fan, Ji [BVW:9P84:EXCH]" wrote:
>>
>>[empty message]
> 
> I've searched previously, and found no way to do this.
>

	Ummm.  I don't currently have a VxWorks system to play
	with, but ISTR that you need to add a ramDevRemove
	function to the lib & have it remove the mem pool.
	You have the source?
<ciao>
- -het

- --
"progress in software has not followed Moore's law."  -John Holland 

Computer Links: http://www.autobahn.mb.ca/~het/clinks.html
H.E. Taylor  http://www.autobahn.mb.ca/~het/

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Networks Stack Performance
Date: 1 Aug 2002 23:31:25 -0700
From: rajendra_krsingh@yahoo.com (rajendra)
Organization: http://groups.google.com/
Message-ID: <479ba395.0208012231.456d35d5@posting.google.com>
References: <a5b765fbc2bf48a863c6f07340b49c16.38592@mygate.mailgate.org>

which BSP you are using ? there can be big difference in performance
depending on the BSP 486, Pentium , Pentium Pro.

- -rajendra

"Dieter Bahlmann" <velouria@ccii.co.za> wrote in message news:<a5b765fbc2bf48a863c6f07340b49c16.38592@mygate.mailgate.org>...
> Hi,
> 
> I'm working on a LAN driver (over Fibre Channel). When using the linux
> driver with blaster running between two X86 1GHz PC's, I get a data
> throughput of about 244 Mbs. With the same setup on vxWorks using
> basically the same driver ported to vxWorks, we only get a 80 Mbs.
> The tNetTask is at priority = 50 and blaster at 100. 
> 
> CPU usage was as following:
> tNetTask = 46%
> Blaster = 44%
> ISR = 2%
> Idle = 3%
> 
> Why is the throughput 3 times slower on vxWorks than on linux? Can I do
> something to improve the network stack's performance?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Network stack performance under VxWorks
Date: 1 Aug 2002 23:37:48 -0700
From: rajendra_krsingh@yahoo.com (rajendra)
Organization: http://groups.google.com/
Message-ID: <479ba395.0208012237.211be1d@posting.google.com>
References: <3D49CE8B.1B9E@dW.co.za>

It doesn not make sense to me that you are comparing between two
diffrent systems (Power PC and Pentium Class).
 Run the tests on same machine (Pentium) (make sure you are building
image with pentium BSP).

- -rajendra

Retro John <usenet-2002-03@dW.co.za> wrote in message news:<3D49CE8B.1B9E@dW.co.za>...
> 2002-08-01
> 
> Hi all
> 
> We are testing / developing a network driver under VxWorks.
> We are not quite happy with the throughput of this driver,
> basically we open a TCP/IP socket and flood it (blaster).
> 
> This is on a powerPC platform, BTW.
> 
> Running the same driver on a Pentium class PC under Linux
> gives a > 2 fold increase in throughput.
> 
> It seems as if the processor is spending about half it's
> time in the blaster application and the other half in
> tNetTask.
> 
> Anybody out there with a similar experience? I sort of
> expected that VxWorks would have a pretty lean stack, and
> that Linux would be the slow one.
> 
> Thanks!
> 
> Wouter

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Select System call...
Date: 1 Aug 2002 23:43:48 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208012243.5f04af0e@posting.google.com>
References: <3D49D319.A75600FE@cisco.com>

Hello,

Assuming I am understanding your posting correctly, why do you need to
have two tasks calling select() on the same file descriptor?

Anyway, the behaviour of the OS is what I would expect. When data is
available on the FD, *ALL* tasks waiting in select() for that FD will
be notified. This is done by the driver giving a semaphore for each
task pended in select().

Now, in your case, when the data becomes available both tasks will be
marked as ready to run. The high priority one will run first, of
course, and process the data. Once it relinquishes the CPU, and
assuming no other higher priority tasks are ready, the low priority
one will run. It will discover at that time that there is no data
available on any of the FDs (because the high priority task has
already used it), so it returns an empty set, making it appear to have
timed out.

Is that the "correct" behaviour? I don't know, but it doesn't seem too
unreasonable, given that you had two tasks waiting, that they would
both be woken up... I'd rethink your design if I were you: two tasks
calling select() for the same fd seems like a bad idea to me.

HTH,

John...

Prem Bangole Venkoba <pbangole@cisco.com> wrote in message news:<3D49D319.A75600FE@cisco.com>...
> Hi,
>    I have been little bit of trouble with select call. I have been
> having trouble with select timing out prematurely, has anyone seen this
> before on vxWorks. Here is the scenario
> I have 2 tasks with diff priorities let me call t1(pri=140) and t2(with
> priority 200) running and using socket to communicate with another
> entity
> both of them use socket descriptor to pend on using select system call.
> t1 having higher priority ends up processing the data from socket. but
> even though timeout is of large order on t2 select system call, it times
> out prematurely... Has anybody seen this problem on vxWorks before or is
> it
> the normal behavior??
> Comments, suggestions appreciated.
> thanks,
> Prem.
> 
> 
> 
> --

---------------------------

Newsgroups: comp.os.vxworks
Subject: GUI for my application running under VxWorks
Date: 2 Aug 2002 03:42:57 -0700
From: biju080@yahoo.com (biju k)
Organization: http://groups.google.com/
Message-ID: <eb8c6529.0208020242.1133cb3@posting.google.com>

sir/madam ,

i will like to know the feasibility, of using Xwindows with openGL for
my application , the application runs on pentium machine with vxworks
as OS,
its a pci bus.

the requirement of application (a real time acqusition system) ,
includes graphics like pressure guage,bar graphs , trends etc

i will also like to know whether there are is any firm who could 
provide me
with  support and drivers  for the X windows for VxWorks,

thanks

biju k

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Fri Aug  2 05:34:05 2002
From: "Philips P" <philipsp@inucom.com>
Date: Fri Aug  2 05:34:07 PDT 2002
Subject: help in proting fsync, access and fcntl

This is a multi-part message in MIME format.

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

Hi,
Can some one help me out the finding better alternatives to the following
unix system calls with VxWorks specific calls:
1. access
2. fsync
3. fcntl (to lock a section of a file and not the whole file)

Thanks,
Philips.

------=_NextPart_000_0002_01C238CE.6D969A00
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2712.300" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D077493814-31072002><FONT face=3DArial size=3D2>Hi,=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D077493814-31072002><FONT face=3DArial size=3D2>Can =
some one help me=20
out the finding better alternatives to the following unix system calls =
with=20
VxWorks specific calls:</FONT></SPAN></DIV>
<DIV><SPAN class=3D077493814-31072002><FONT face=3DArial size=3D2>1.=20
access</FONT></SPAN></DIV>
<DIV><SPAN class=3D077493814-31072002><FONT face=3DArial size=3D2>2. =
fsync=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D077493814-31072002><FONT face=3DArial size=3D2>3. =
fcntl (to lock a=20
section of a file and not the whole file)</FONT></SPAN></DIV>
<DIV><SPAN class=3D077493814-31072002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D077493814-31072002><FONT face=3DArial=20
size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D077493814-31072002><FONT face=3DArial =
size=3D2>Philips.=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D077493814-31072002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0002_01C238CE.6D969A00--

From vxwexplo-errs@csg.lbl.gov  Fri Aug  2 07:46:17 2002
From: bob schulman <bob@seaweed.com>
Date: Fri Aug  2 07:46:19 PDT 2002
Subject: Re: GUI for my application running under VxWorks

Biju K wrote:
> i will like to know the feasibility, of using Xwindows with openGL for
> my application , the application runs on pentium machine with vxworks
> as OS,
> its a pci bus.
> 
> the requirement of application (a real time acqusition system) ,
> includes graphics like pressure guage,bar graphs , trends etc
> 
> i will also like to know whether there are is any firm who could 
> provide me
> with  support and drivers  for the X windows for VxWorks,

All the above and more available from Seaweed Systems (www.seaweed.com).

Bob Schulman
bob@seaweed.com

From vxwexplo-errs@csg.lbl.gov  Sat Aug  3 00:33:23 2002
From: Manish Sharma <manishs@intotoinc.com>
Date: Sat Aug  3 00:33:26 PDT 2002
Subject: REG: Telnet security

--=====================_309048908==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Hi All,

We are working on board having MIPS processor and using vxWorks for the same.

I may be wrong in the below description, please correct me if i am doing
any wrong configuration.

For enabling telnet and security on board we have included following macros:
INCLUDE_TELNET
INCLUDE_SECURITY

After downloading and running vxWorks image on board,  we are getting 
telnet demon task.

We are able to do telnet to board and getting "vxWorks Login" prompt.
As per configAll.h we are using login name as "target" and password as
"password" but getting "Login incorrect" message. And by pressing "Ctrl +
C" its coming to shell prompt on telnet window.

This means its able to telnet but not able to check the security properly.
We tried by removing "INCLUDE_SECURITY", in this case we are directly
getting shell prompt. This may be problem with vxWorks configuration.

And we tried addition of a new user by using loginUserAdd as per loginLib.
We have given new password in encrypted form.

How can i over come this problem? whether i am doing any wrong
configuration? Please guide me in this regard.

Please give idea about this flag also SYSFLAG_NO_SECURITY.

Thanks in advance.
Manish

--=====================_309048908==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
Hi All,<br><br>
We are working on board having MIPS processor and using vxWorks for the
same.<br><br>
I may be wrong in the below description, please correct me if i am
doing<br>
any wrong configuration.<br><br>
For enabling telnet and security on board we have included following
macros:<br>
INCLUDE_TELNET<br>
INCLUDE_SECURITY<br><br>
After downloading and running vxWorks image on board,&nbsp; we are
getting telnet demon task.<br><br>
We are able to do telnet to board and getting &quot;vxWorks Login&quot;
prompt.<br>
As per configAll.h we are using login name as &quot;target&quot; and
password as<br>
&quot;password&quot; but getting &quot;Login incorrect&quot; message. And
by pressing &quot;Ctrl +<br>
C&quot; its coming to shell prompt on telnet window.<br><br>
This means its able to telnet but not able to check the security
properly.<br>
We tried by removing &quot;INCLUDE_SECURITY&quot;, in this case we are
directly<br>
getting shell prompt. This may be problem with vxWorks
configuration.<br><br>
And we tried addition of a new user by using loginUserAdd as per
loginLib. <br>
We have given new password in encrypted form. <br><br>
How can i over come this problem? whether i am doing any wrong<br>
configuration? Please guide me in this regard.<br><br>
Please give idea about this flag also
S<font size=2>YSFLAG_NO_SECURITY</font>.<br><br>
Thanks in advance.<br>
Manish<br>
</html>

--=====================_309048908==_.ALT--

From vxwexplo-errs@csg.lbl.gov  Sat Aug  3 04:03:13 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Sat Aug  3 04:03:15 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Sat Aug  3 04:03:09 PDT 2002

        Subject: IP loopback
        Subject: Re: Network stack
        Subject: Re: GUI for my application running under VxWorks
        Subject: Re: FTP probelm
        Subject: Re: changes at BSP of 8260
        Subject: Re: FTP probelm
        Subject: Filesystem detection
        Subject: Re: IP autoconfiguration
        Subject: Re: Network stack performance under VxWorks
        Subject: Re: FTP probelm
        Subject: Re: DosFs2 chkdsk error message
        Subject: Re: Filesystem detection
        Subject: Tornado 2 problems under Win2K
        Subject: Re: IP loopback
        Subject: Data abort of ARM940 when use vxWorks telnet
        Subject: Does S3C4510B BSP of vxWorks run correctly?
        Subject: Re: ccppc compiler steps
        Subject: Re: How to free up memory that allocated by ramDevCreate?
        Subject: about make

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: IP loopback
Date: Fri, 2 Aug 2002 08:08:15 -0400
From: "John Sestak" <john_S_sestak@raytheon.com>
Organization: Raytheon Company
Message-ID: <UCu29.1372$c6.785@bos-service2.ext.raytheon.com>

Hi all,
    I'm trying to loopback the data I'm sending out on a socket to myself.
I know that the "127.0.0.1" address is a reserved address especially for
doing IP loopback, but what I'm wondering about is whether there is any
difference between doing the loopback by sending to my IP address and doing
the loopback by sending to "127.0.0.1".  So, for example if my IP address
was "1.2.3.4" and I wanted to loopback the data I'm sending to myself, would
it be more efficient to send the loopback data to "1.2.3.4" or would it be
more efficient to send data to "127.0.0.1"?  ... or is there any difference?
I'm just trying to figure out if using one address over the other would be
more efficient for the vxworks kernel.  Thank you.

John Sestak

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Network stack
Date: Fri, 02 Aug 2002 12:29:39 GMT
From: David Cooper <dcooper000@adelphia.net>
Organization: none
Message-ID: <MPG.17b445369e573f7298969a@news1.news.adelphia.net>
References: <7d37276da8267eb350c5835b1a44c377.38592@mygate.mailgate.org>

Contact your local Wind River Field Engineer.  He/She should be able to 
give you a document that describes how to improve network performance.

...david

- -- 
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
   Genealogy Utilities & Family Research
Researching: ALLEN,BERZONER,COHEN,COOPER,KUPFERZMIDT,
POSNER (POIZNER), PRITIKIN, STARKMAN
Dachau Camp Entry List, Genealogy Utilities
http://home.adelphia.net/~dcooper000

In article <7d37276da8267eb350c5835b1a44c377.38592@mygate.mailgate.org>, 
velouria@ccii.co.za says...
> Hi,
> 
> 
> I'm working on a LAN driver (over Fibre Channel). When using the linux
> driver with blaster running between two X86 1GHz PC's, I get a data
> throughput of about 244 Mbs. With the same setup on vxWorks using
> basically the same driver ported to vxWorks, we only get a 80 Mbs.
> The tNetTask is at priority = 50 and blaster at 100.
> 
> 
> CPU usage was as following:
> tNetTask = 46%
> Blaster = 44%
> ISR = 2%
> Idle = 3%
> 
> 
> Why is the throughput 3 times slower on vxWorks than on linux? Can I do
> something to improve the network stack's performance?
> 
> 
> 
> 

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: GUI for my application running under VxWorks
Date: 2 Aug 2002 09:17:46 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208020817.44d37c1e@posting.google.com>
References: <eb8c6529.0208020242.1133cb3@posting.google.com>

Hello,

Here's one company taken from the Wind River TradeWinds partner directory:

http://www.windriver.com/cgi-bin/corporate/tradeWinds/viewProd.cgi?id=1152

Or directly at http://www.metrolink.com

HTH,

John...

biju080@yahoo.com (biju k) wrote in message news:<eb8c6529.0208020242.1133cb3@posting.google.com>...
> sir/madam ,
> 
> i will like to know the feasibility, of using Xwindows with openGL for
> my application , the application runs on pentium machine with vxworks
> as OS,
> its a pci bus.
> 
> the requirement of application (a real time acqusition system) ,
> includes graphics like pressure guage,bar graphs , trends etc
> 
> i will also like to know whether there are is any firm who could 
> provide me
> with  support and drivers  for the X windows for VxWorks,
> 
> thanks
> 
> biju k

---------------------------

Newsgroups: comp.os.vxworks,comp.os.qnx
Subject: Re: FTP probelm
Date: Fri, 02 Aug 2002 17:22:07 GMT
From: "Jeff Maass" <jmaass@columbus.rr.com>
Organization: Road Runner High Speed Online -- Columbus
Message-ID: <3dz29.26494$s6.6531912@twister.columbus.rr.com>
References: <f8bb70a1a25a601ee7eca0f3f5ae3764.98538@mygate.mailgate.org> <363d071b.0207061417.4841b4c3@posting.google.com> <33a82c0f2d66346702ed874342afc4e9.98538@mygate.mailgate.org> <%4C19.9843$gM.495947@charlie.risq.qc.ca>

Are there any good PC-based Ethernet sniffers?

- --
Jeff Maass       jmaass@columbus.rr.com     Located near Columbus Ohio
         USPSA # L-1192       NROI/CRO    Amateur Radio K8ND
    Maass' IPSC Resources Page:  http://home.columbus.rr.com/jmaass
"Ho-Kuo Chan" <hchan@wavesat.com> wrote in message
news:%4C19.9843$gM.495947@charlie.risq.qc.ca...
> Have you tried sniffing the ftp transfer?
>
> --
>
> Ho-Kuo Chan
>
> "Ganesh Anand" <ganeshtp@myw.ltindia.com> wrote in message
> news:33a82c0f2d66346702ed874342afc4e9.98538@mygate.mailgate.org...
> > hi guys,
> >
> >      now i could transfer data thro FTP but i couldn't do that above
> > 1024 bytes
> > connection goes after transferrring 1024 bytes. i tried to find that
> > ftpdWindowSize global variable but i cudn't find it since it had been
> > set
> > in Lib files.
> >
> >     how to solve this probelm? any one cud help me
> >
> >   with rgds,
> >   ganesh
> >
> >
> > --
> > Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: changes at BSP of 8260
Date: 2 Aug 2002 10:50:27 -0700
From: vloscomp@yahoo.com (Vinh)
Organization: http://groups.google.com/
Message-ID: <c129947c.0208020950.52eb0ba0@posting.google.com>
References: <41c1fd2b.0207300816.1fccef70@posting.google.com> <3D46EA81.6D96158E@gv.net> <41c1fd2b.0208011120.5f96ec6e@posting.google.com>

dannyc@harmonicinc.com (Danny Cohen) wrote in message news:<41c1fd2b.0208011120.5f96ec6e@posting.google.com>...
> Thanks.
> 
> I've dig into the evaluation board and saw that bootloader is
> programmed to start at 0xfe000000. when i display thye memory from the
> shell i saw that the reset configuration word is at 0xfe000000 and the
> bootloader code actually start at 0xfff00000!!!
> 
> 1. Is reset configuration word is automatically build as part of the
> bootloader?
> or do you have to link it yourself after producing the image?

   Yes, During linking option '-e' tells the entry point function, and
   '-T' tells the entry point for text.

   Look for USR_ENTRY in your makefile, you will find macros to set
these option
> 
> 2. After CPU is read reset configuration word how it knows to jump to
> 0xfff00000? 

  PPC reset vector depends on MSR[IP] bit.
   0xfff00100    - hard reset.
   0x00000100    - soft reset.
> how CPU can reach those addresses if no Chip Select is
> pointing there?
  
  The CPU does not knows where the actual boot rom is located, it will
generates addrs as specified above to its 60X bus.
  
  If your system have a bridge or some PLD that translate and does
chip select,
then you need to check that. The translation can be a 1:1 map or
anything that the hardware people can come up with!

> 
> 3. Actually the bootloader code is started from 0xfff00100, what is
> stored between oxfff00000 and 0xfff00100?
>
   PPC specified that area for the OS usage. But if you dumped it you 
get the EABI header.

0000000: 4553 5446 4249 4e52 0000 0000 0003 1e1b  ESTFBINR........
0000010: ff00 0000 0000 0000 0000 0000 0003 1e1b  ................
0000020: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000030: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000040: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000050: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000060: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000070: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000080: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000090: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000a0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000b0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000c0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000d0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000e0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000f0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000100: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000110: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000120: 4c00 012c 4800 0035 4800 0039 436f 7079  L..,H..5H..9Copy
0000130: 7269 6768 7420 3139 3834 2d31 3939 3920  right 1984-1999
0000140: 5769 6e64 2052 6976 6572 2053 7973 7465  Wind River Syste
0000150: 6d73 2c20 496e 632e 3960 0002 4800 0009  ms, Inc.9`..H... 

  
  GL
  Vinh Lam
> 
> "Michael R. Kesti" <mkesti@gv.net> wrote in message news:<3D46EA81.6D96158E@gv.net>...
> > Danny Cohen wrote:
> > 
> > >Is there a Cook-Book how to change the BSP of SBC8260 evaluation board
> > >to the  BSP of my device?
> > 
> > I usually avoid saying that something doesn't exist but, in this case,
> > I think it's safe to say "No."
> > 
> > >                          what files need to be changed?
> > 
> > That almost entirely depends on how your board differs from the SBC8260.

---------------------------

Newsgroups: comp.os.vxworks,comp.os.qnx
Subject: Re: FTP probelm
Date: Fri, 02 Aug 2002 19:32:04 GMT
From: Jerry Hudgins <jerry@e-farm.com>
Message-ID: <3D4ADE35.1070409@e-farm.com>
References: <f8bb70a1a25a601ee7eca0f3f5ae3764.98538@mygate.mailgate.org> <363d071b.0207061417.4841b4c3@posting.google.com> <33a82c0f2d66346702ed874342afc4e9.98538@mygate.mailgate.org> <%4C19.9843$gM.495947@charlie.risq.qc.ca> <3dz29.26494$s6.6531912@twister.columbus.rr.com>
Reply-To:  jerry@e-farm.com

Jeff Maass wrote:
> Are there any good PC-based Ethernet sniffers?

Ethereal:  <http://www.ethereal.com/>

It's free, too.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Filesystem detection
Date: Fri, 02 Aug 2002 19:42:23 GMT
From: "Kevin Lay" <circlemtn@earthlink.net>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <zgB29.8637$cI.646187@newsread2.prod.itd.earthlink.net>

Hi all,
    Is there a portable, reliable, and hopefully simple way to detect
whether a filesystem exists at runtime?  I'm working on a general app which
needs to port to environments which may or may not have a filesystem.   The
app sets up services (in ACE) differently depending on whether files are
available.
    It seems I should be able to determine whether DOSFS or NFS or neither
is installed, at least.... and it's got to be 100% reliable.

Thanks
Kevin

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: IP autoconfiguration
Date: 2 Aug 2002 12:44:32 -0700
From: ortizv@acm.org (Victor Ortiz)
Organization: http://groups.google.com/
Message-ID: <28e8af95.0208021144.12a63ee@posting.google.com>
References: <28e8af95.0208010719.5a29e1cf@posting.google.com> <3D495677.4040905@idl.bt.co.uk>

Phil Ashby <phlash@idl.bt.co.uk> wrote in message news:<3D495677.4040905@idl.bt.co.uk>...
> Victor Ortiz wrote:
>  > ...
> > But, my problem is the following:  After dhcpBind, I lease an IP
> > address but my gateway information is not returned.  That is, can I
> > get the gateway IP for my subnet during the DHCP request?
> > 
> > ...
>  
> > 
> > Can DHCP return the gateway IP?
> 
> DHCP can certainly return gateway addresses, however your DHCP server 
> needs to be configured to send such info (does it work with your PC?). I 
> don't know if the VxWorks DHCP client will give you access to gateway 
> address(es) as I have never used it, however it's pretty useless if it 
> does not!

My NT4 workstation uses DHCP to autoconfigure IP.  And, yes it
receives the gateway IP address.

I noticed there were DHCP tags (constants) corresponding to RFC1533
codes used to specify DHCP options.  However, I am not clear which
options to use and, moreover, when I iterate over each tag, after
invoking dhcpBind(), nearly all the tags return
"S_dhcpcLib_OPTION_NOT_PRESENT."

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Network stack performance under VxWorks
Date: 2 Aug 2002 13:11:33 -0700
From: ortizv@acm.org (Victor Ortiz)
Organization: http://groups.google.com/
Message-ID: <28e8af95.0208021211.520f965d@posting.google.com>
References: <3D49CE8B.1B9E@dW.co.za>

Retro John <usenet-2002-03@dW.co.za> wrote in message news:<3D49CE8B.1B9E@dW.co.za>...
> 2002-08-01
> 
> Hi all
> 
> We are testing / developing a network driver under VxWorks.
> We are not quite happy with the throughput of this driver,
> basically we open a TCP/IP socket and flood it (blaster).
> 
> This is on a powerPC platform, BTW.
> 
> Running the same driver on a Pentium class PC under Linux
> gives a > 2 fold increase in throughput.
> 
> It seems as if the processor is spending about half it's
> time in the blaster application and the other half in
> tNetTask.
> 
> Anybody out there with a similar experience? I sort of
> expected that VxWorks would have a pretty lean stack, and
> that Linux would be the slow one.
> 
> Thanks!
> 
> Wouter

Another issue to consider is the task priorities of the tNetTask and
the your blaster application task.  Since VxWorks is an RTOS, normally
- -- the way I've seen it work, it will adhere to these priorities when
allocating CPU time.  So, if the blaster app has a higher priority
then it will starve the tNetTask.

---------------------------

Newsgroups: comp.os.vxworks,comp.os.qnx
Subject: Re: FTP probelm
Date: Fri, 02 Aug 2002 20:20:48 GMT
From: "cfk" <cfk_alter_ego@pacbell.net>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <AQB29.5590$Zw6.30694632@newssvr21.news.prodigy.com>
References: <f8bb70a1a25a601ee7eca0f3f5ae3764.98538@mygate.mailgate.org> <363d071b.0207061417.4841b4c3@posting.google.com> <33a82c0f2d66346702ed874342afc4e9.98538@mygate.mailgate.org> <%4C19.9843$gM.495947@charlie.risq.qc.ca> <3dz29.26494$s6.6531912@twister.columbus.rr.com>

http://windump.polito.it

"Jeff Maass" <jmaass@columbus.rr.com> wrote in message
news:3dz29.26494$s6.6531912@twister.columbus.rr.com...
> Are there any good PC-based Ethernet sniffers?
>
> --
> Jeff Maass       jmaass@columbus.rr.com     Located near Columbus Ohio
>          USPSA # L-1192       NROI/CRO    Amateur Radio K8ND
>     Maass' IPSC Resources Page:  http://home.columbus.rr.com/jmaass
> "Ho-Kuo Chan" <hchan@wavesat.com> wrote in message
> news:%4C19.9843$gM.495947@charlie.risq.qc.ca...
> > Have you tried sniffing the ftp transfer?
> >
> > --
> >
> > Ho-Kuo Chan
> >
> > "Ganesh Anand" <ganeshtp@myw.ltindia.com> wrote in message
> > news:33a82c0f2d66346702ed874342afc4e9.98538@mygate.mailgate.org...
> > > hi guys,
> > >
> > >      now i could transfer data thro FTP but i couldn't do that above
> > > 1024 bytes
> > > connection goes after transferrring 1024 bytes. i tried to find that
> > > ftpdWindowSize global variable but i cudn't find it since it had been
> > > set
> > > in Lib files.
> > >
> > >     how to solve this probelm? any one cud help me
> > >
> > >   with rgds,
> > >   ganesh
> > >
> > >
> > > --
> > > Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
> >
> >
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: DosFs2 chkdsk error message
Date: 2 Aug 2002 13:48:58 -0700
From: dcooke@orthstar.com (Dan Cooke)
Organization: http://groups.google.com/
Message-ID: <4e264d23.0208021248.20b426c5@posting.google.com>
References: <4e264d23.0207250701.1abc362a@posting.google.com> <1027613917.872841@azores.network-i.net> <NS_%8.157$Vj.6946042@newssvr15.news.prodigy.com>

> What arch are you on?  If it is T2.0.2 x86 or PPC
> then upgrade to T2.2 (best choice), or get the uber
> patch for SPR#79569 or 79795 from Windsurf.
> 

  Do you know of any known problems with this patch in 
regards to the FIOCONTIG64 ioctl() command.   Before the 
patch i could execute this to allocate 6GB with no errors.
Now with the patch, it is returning an error that it cannot
allocate 6GB.  The device has 8GB available and chkdsk() 
returns with no errors.

Dan

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Filesystem detection
Date: Fri, 2 Aug 2002 22:06:18 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1028322379.905788@azores.network-i.net>
References: <zgB29.8637$cI.646187@newsread2.prod.itd.earthlink.net>

There might a better a way than the one i describe but this should work...

1) find out the driver number of dosFs and nfs by c
alling dosFsDrvNumGet and nfsDrvNumGet

2) the get a list of list of all the drivers available. don't kow hot to
this programatically. iosDevShow does it interactively. If you are really
stuck you could parse its output, although I suspect someone else should
have the answer to this problem.

3) Then all you have to do match the driver number you got in step 2 with
the driver numbers that you get from iosDevShow.

HTH,

Dimitris

"Kevin Lay" <circlemtn@earthlink.net> wrote in message
news:zgB29.8637$cI.646187@newsread2.prod.itd.earthlink.net...
>     Is there a portable, reliable, and hopefully simple way to detect
> whether a filesystem exists at runtime?  I'm working on a general app
which
> needs to port to environments which may or may not have a filesystem.
The
> app sets up services (in ACE) differently depending on whether files are
> available.
>     It seems I should be able to determine whether DOSFS or NFS or neither
> is installed, at least.... and it's got to be 100% reliable.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Tornado 2 problems under Win2K
Date: Fri, 2 Aug 2002 18:17:45 -0400
From: "Cedric Le Roux" <lerouxc@db.erau.edu>
Message-ID: <3d4b0520_2@nopics.sjc>

Hello all,
I am experiencing a problem with Tornado 2 under Win2K.  Originally Tornado
was running on WinNT, but we decided to upgrade to Win2K.

It appears as though some parts of WindView did not install properly, or are
not working properly.  A message box appears when I launch Tornado:  File
not found:  try=//server/host/....../windview.tcl  (I forgot the exact file
name and path) However, the file does exist in that path!
Also, WindView no longer appears under the Tools menu.  The code highlight
feature no longer works.  (All text is black in the code editor)
And most importantly, I cannot build a kernel if the WindView components are
included.

Besides these things, Tornado appears to be functioning properly.
How can I remedy this?

Any advice would be greatly appreciated.
Cedric

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: IP loopback
Date: Fri, 02 Aug 2002 18:24:07 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D4B0687.5D821DA4@bellsouth.net>
References: <UCu29.1372$c6.785@bos-service2.ext.raytheon.com>

John Sestak wrote:

> Hi all,
>     I'm trying to loopback the data I'm sending out on a socket to myself.
> I know that the "127.0.0.1" address is a reserved address especially for
> doing IP loopback, but what I'm wondering about is whether there is any
> difference between doing the loopback by sending to my IP address and doing
> the loopback by sending to "127.0.0.1".  So, for example if my IP address
> was "1.2.3.4" and I wanted to loopback the data I'm sending to myself, would
> it be more efficient to send the loopback data to "1.2.3.4" or would it be
> more efficient to send data to "127.0.0.1"?  ... or is there any difference?
> I'm just trying to figure out if using one address over the other would be
> more efficient for the vxworks kernel.  Thank you.
>
> John Sestak

I don't know about WRS internal stack, but 127.0.0.1 is usually more efficient
because it isn;t sent our over the hardware net at all.  Using AF_UNIX
sockets might be even more efficient.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Data abort of ARM940 when use vxWorks telnet
Date: 2 Aug 2002 15:39:15 -0700
From: womeiwenhua@yahoo.com (womeiwenhua)
Organization: http://groups.google.com/
Message-ID: <72f5f520.0208021439.198cfd52@posting.google.com>

Hi All,

When I set up the telnet server in vxworks, network stack will crash
by "data abort".

Data abort
Exception Address: 0x0096bd80
Current Processor Status Register: 0x20000013
Task: 0xf15c6c "tNetTask"

My board is ARM940T, VxWorks 5.4.

This problem is most likely caused by the socket continul write(or
Read). Anyone meet this problem before?

Thank you!

---------------------------

Newsgroups: comp.os.vxworks
Subject: Does S3C4510B BSP of vxWorks run correctly?
Date: 2 Aug 2002 18:37:13 -0700
From: liuyangxin@163.net (sozn)
Organization: http://groups.google.com/
Message-ID: <e78931c1.0208021737.432d44c8@posting.google.com>

I heard of that there are something wrong with the S3C4510B BSP of vxWorks.
Because the complier of vxworks could not fit S3C4510B of Samsung. It is right,
or not? If someone have used it, please help me.

sozn

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: ccppc compiler steps
Date: Sat, 03 Aug 2002 02:38:38 GMT
From: bill@qswtools.com (William C. Cox)
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <OmH29.9808$cI.698605@newsread2.prod.itd.earthlink.net>
References: <28809481.0207302323.7e0cded0@posting.google.com>
Sender: bill@woola.qswtools.com

In article <28809481.0207302323.7e0cded0@posting.google.com>,
	vividh@hotmail.com (rasayani) writes:
> When I try compiling using ccppc provided by WRS under cygwin,
> I get an error
>     cpp: -lang-c: linker input file unused since linking not done
>     gcc:  program 'cc1' not found
> for some reason the ccppc is calling the gcc compiler and is unable to
> get this compiled. Has anyone faced this problem? I have the tornado
> paths before the cygwin paths in my shell. any other hacks required?

Your timing is perfect!  MichaelG and I just figured this out today.

First, the cc1-not-found error is avoided if you add a directory to your
CygWin PATH variable.  It must point at 
	$WIND_BASE/host/x86-win32/lib/gcc-lib/<arch>-wrs-vxworks/<version>,
which is the directory where cc1.exe is stored, in addition to the
$WIND_BASE/host/x86-win32/bin directory which you already have.

Second, for the pre-processor to find your header files, WIND_BASE
must use the WIN32 drive, colon notation.  Cygwin likes to automount
your WIN32 drives. For example T: is mounted as /t.  This won't work
as a WIND_BASE value.  /cygdrive/t/tornado2 won't work as a WIND_BASE
value either.  //t/tornado2 won't work either.  What we found to work
is a WIND_BASE value like T:\tornado2, where this is the installed
base of your Tornado tree.

I don't know how GCC_EXEC_PREFIX works with this method;  I would
advise you to unset it.

We hope this helps.

> 
> vividh

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How to free up memory that allocated by ramDevCreate?
Date: Fri, 02 Aug 2002 21:43:44 -0700
From: "Michael R. Kesti" <mkesti@gv.net>
Organization: MK Associates
Message-ID: <3D4B5F80.64620CCC@gv.net>
References: <3D4943E9.EAFEA56A@americasm01.nt.com> <3D49E068.DA45BFD8@gv.net> <3D4A2BDD.28F4@despam.autobahn.mb.ca>
Reply-To: mkesti@gv.net

"H. E. Taylor" wrote:

>In article <3D49E068.DA45BFD8@gv.net>,
><mkesti@gv.net> Michael R. Kesti wrote:
>> "Fan, Ji [BVW:9P84:EXCH]" wrote:
>>>
>>>[empty message]
>>
>> I've searched previously, and found no way to do this.
>>
>
>        Ummm.  I don't currently have a VxWorks system to play
>        with, but ISTR that you need to add a ramDevRemove
>        function to the lib & have it remove the mem pool.
>        You have the source?

Yes, the source is supplied in the distribution.  As supplied, it
provides no device destroy function, but one certainly could be added
and called.

- -- 
========================================================================
          Michael Kesti            |  "And like, one and one don't make
                                   |   two, one and one make one."
          mkesti@gv.net            |          - The Who, Bargain

---------------------------

Newsgroups: comp.os.vxworks
Subject: about make
Date: Sat, 3 Aug 2002 15:37:25 +0800
From: "carria" <carriazhong@163.com>
Organization: power
Message-ID: <aig4if$r32$1@mail.cn99.com>
Reply-To: "carria" <carriazhong@163.com>

when I do make a target in the cmd, this err happened, why?
the socdiag.c is in the E:\ftp\firmware\systems\mousse,it's not a cpp
programe,
and I set the HCC=ccppc in the e:\ftp\firmware, can anyone any help?

E:\ftp\firmware\systems\mousse>make
C:/Tornado2TMSL2/host/x86-win32/bin/make -C E:/ftp/firmware cleaning=yes
tree
ccppc -fno-builtin -nostdinc -O2 -DCPU=PPC603 -IE:/ftp/firmware/orion/includ
e  -
Ie:/tornado/target/h -IE:/ftp/firmware/systems/mousse/vxworks/target/config/
Kahl
ua -IE:/ftp/firmware/systems/mousse/vxworks/target/config/Kahlua/all -DMOUSS
E -D
VXWORKS -DVX_VERSION=54 -DBROADCOM_BSP -DINCLUDE_EDITLINE -DETHERII -DINCLUD
E_DR
IVERS -DINCLUDE_BCM_IGMP -DINCLUDE_STP -DBCM_MEM_TYPECHECK -DBCM_SOFTWARE_L2
_TAB
LE -DBCM_ALL_CHIPS -DTRUE=1 -DBE_HOST=1   -Wall -Werror    -I
E:/ftp/firmware/or
ion/include  -DDEBUG -c socdiag.c -o
E:/ftp/firmware/build/tornado-mousse/socdia
g.o
gcc:  program 'cpp' not found

abnormal program termination
make: *** [socdiag.o] Error 0x3

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Sun Aug  4 02:31:07 2002
From: =?iso-8859-1?q?ram=20mohan?= <ramamohankn@yahoo.com>
Date: Sun Aug  4 02:31:09 PDT 2002
Subject: Re: Urgent help request for VxWorks shell()

hi,
 i don't know what is ur requirement with shell
 but i can suggest one way to reach aFunc()
 just use taskSpawn insted of calling shell directly
 so u'll get some thing like as follows
 someFunc();
 taskSpawn(shell............);
 aFunc()
 hope this may help u
Regards
Mohan

 --- the vxWorks Users Group Exploder
<vxwexplo@lbl.gov> wrote: > Submitted-by
vxwexplo-errs@csg.lbl.gov  Thu Aug  1
> 19:29:35 2002
> Submitted-by: "Li Zongliang"
> <zlli@photonicbridges.com>
> 
> 
> This is a multi-part message in MIME format.
> 
> ------=_NextPart_000_0003_01C23A0F.7C34F100
> Content-Type: text/plain;
> 	charset="gb2312"
> Content-Transfer-Encoding: 7bit
> 
> hello all,
> I call shell(1) in my codes as follow:
> 
> 	someFunc();
> 	shell(1);
> 	aFunc();
> 
> My question is:
> 1. When I enter the shell prompt, I could
> interactivate with the shell
> prompt, but how could I exit from it and go to
> aFunc() statement ?
> 
> 2. I write a function called "quit" to exit current
> task, and I can call it
> from the shell prompt. but each time the shell exit,
> 3032 bytes memory was
> consumed.
> 
> please help me. (OS: VxWorks 5.4 / tornado 2.02,
> arch: MPC 8260, CPU:
> PPC603) 
> 
> Thanks in advance.
> 
> 
> ------=_NextPart_000_0003_01C23A0F.7C34F100
> Content-Type: application/ms-tnef;
> 	name="winmail.dat"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment;
> 	filename="winmail.dat"
> 
>
eJ8+Ih4CAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAAqAMAAAAAAACrAAEIgAcAGAAAAElQTS5NaWNy
>
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANIHCAACAAoAHQAAAAUADwEB
>
A5AGAPwFAAAiAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADADYAAAAAAB4AcAAB
>
AAAAKAAAAFVyZ2VudCBoZWxwIHJlcXVlc3QgZm9yIFZ4V29ya3Mgc2hlbGwoKQACAXEAAQAAABYA
>
AAABwjnMbda3Rfn1AopKiL0v0YEZvNTiAAACAR0MAQAAAB4AAABTTVRQOlpMTElAUEhPVE9OSUNC
>
UklER0VTLkNPTQAAAAsAAQ4AAAAAQAAGDgD+CFzMOcIBAgEKDgEAAAAYAAAAAAAAALHT2hUkqMpA
>
sgT/yhRo8+3CgAAACwAfDgEAAAACAQkQAQAAADUCAAAxAgAABgMAAExaRnWgPDaqAwAKAHJjcGc5
>
MzYDAPgLYG5nMTAzM8kOtmZlAdA1MgH3AqQTA+MCAGNoCsBzZXR8MCAHEwKDAFAC8hGXMWQzNAMw
>
J2MMMBQgZaMUEQDgJ2U1AoB9CoGSdgiQd2sLgGQ0DGB+YwBQCwMO8hASC6UT8GiUZWwJACAHQGws
>
CqKRCoBJIGMYESBzF7IQKDEpIAuAIG15dxjABHEEIGEEIAIQF9F3PjoYVBsVAZEZEANwZUbAdW5j
>
KCk7G3oZNa0cymEcbBhjTRnwcQpQWHN0aQIgGaBzGwUxeC4gVxewA6AYsAnwdJkEkCB0F7AZFCBw
>
A2GNBTAsIcEFoHVsZBmhpyIRANAgcHZhIhAgA/CnIlAiTyNQYnUFQGga4PsjhSHReCTgGpADYRmg
>
BUDrAHAj0GcX8HQX8RxkGRBPAZAiEAeAAjAgPxsaMtshYBiwdwUQJKFhGpAccWcgcxjSCYAgIiAw
>
JOAieyhyJ0NjCHAJcCmhAZBz/msjUCgSGLIr5CfSJ5MlLvshYCZCZQDQJQEHcS+pJ0LVI1AzD0Ay
>
JjB5IhAEIOsHgARgchnwdxpxBaAAgPJ1B4BkLhsaC1AxEBHwDReicDNRIWAoT1M6UCBWeFcFsGsE
>
IDWaLhPwLyhxBKBhZBfwaSqgMDIuIXIRsDaQTYBQQyA4MjYwI1BoQ1BVNpBQOOA5MDPrGZAbGlQR
>
wG43ARmxN9B/JIAcgDYwGxUAQRhjFTEAAT1QAAAACwABgAggBgAAAAAAwAAAAAAAAEYAAAAAA4UA
>
AAAAAAADAAOACCAGAAAAAADAAAAAAAAARgAAAAAQhQAAAAAAAAMAB4AIIAYAAAAAAMAAAAAAAABG
>
AAAAAFKFAAC2dAEAHgAJgAggBgAAAAAAwAAAAAAAAEYAAAAAVIUAAAEAAAAEAAAAOS4wAAsADYAI
>
IAYAAAAAAMAAAAAAAABGAAAAAIKFAAABAAAACwA6gAggBgAAAAAAwAAAAAAAAEYAAAAADoUAAAAA
>
AAADADyACCAGAAAAAADAAAAAAAAARgAAAAARhQAAAAAAAAMAPYAIIAYAAAAAAMAAAAAAAABGAAAA
>
ABiFAAAAAAAACwBlgAggBgAAAAAAwAAAAAAAAEYAAAAABoUAAAAAAAADAGaACCAGAAAAAADAAAAA
>
AAAARgAAAAABhQAAAAAAAAIB+A8BAAAAEAAAALHT2hUkqMpAsgT/yhRo8+0CAfoPAQAAABAAAACx
>
09oVJKjKQLIE/8oUaPPtAgH7DwEAAABRAAAAAAAAADihuxAF5RAaobsIACsqVsIAAFBTVFBSWC5E
>
TEwAAAAAAAAAAE5JVEH5v7gBAKoAN9luAAAARjpcbWFpbGRhdGFcb3V0bG9vay5wc3QAAAAAAwD+
>
DwUAAAADAA00/TcAAAIBfwABAAAAOAAAADxNS0VBTENBRUVPQkpNT0hOTkhFRkdFRUNDS0FBLnps
>
bGlAcGhvdG9uaWNicmlkZ2VzLmNvbT4AAwAGEOuTr7cDAAcQigEAAAMAEBAAAAAAAwAREAEAAAAe
>
AAgQAQAAAGUAAABIRUxMT0FMTCxJQ0FMTFNIRUxMKDEpSU5NWUNPREVTQVNGT0xMT1c6U09NRUZV
>
TkMoKTtTSEVMTCgxKTtBRlVOQygpO01ZUVVFU1RJT05JUzoxV0hFTklFTlRFUlRIRVNIRUxMAAAA
> AChb
> 
> ------=_NextPart_000_0003_01C23A0F.7C34F100--
> 
> 
> **********
> 
>     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 Aug  5 04:05:49 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Mon Aug  5 04:05:52 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Mon Aug  5 04:05:46 PDT 2002

        Subject: EndPollSend
        Subject: Re: changes at BSP of 8260
        Subject: Download a File become too slow after the Flash was <boosted>
        Subject: Re: EndPollSend
        Subject: Re: about end of file indicator
        Subject: Re: EndPollSend
        Subject: Libaries in compilation
        Subject: about end of file indicator
        Subject: Re: dosFs hangs
        Subject: about MPC860 bsp
        Subject: can't list directory!
        Subject: Re: about MPC860 bsp

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: EndPollSend
Date: Sun, 04 Aug 2002 16:35:02 GMT
From: "cfk" <cfk_alter_ego@pacbell.net>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <WIc39.5889$du1.67815592@newssvr21.news.prodigy.com>

What is the purpose of the pollSend routine in an END or NPT driver? I am
confused as I have been going through W.Richard Stevens Vol 2 and I dont see
any mention of a poll send or poll receive in the original BSD sources and
am puzzled what it is doing in vxWorks and whether it is used anymore and
for what purpose.
- --
Charles Krinke
http://home.pacbell.net/cfk
cfk@pacbell.net

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: changes at BSP of 8260
Date: 4 Aug 2002 11:01:58 -0700
From: dannyc@harmonicinc.com (Danny Cohen)
Organization: http://groups.google.com/
Message-ID: <41c1fd2b.0208041001.75170cf9@posting.google.com>
References: <41c1fd2b.0207300816.1fccef70@posting.google.com> <3D46EA81.6D96158E@gv.net> <41c1fd2b.0208011120.5f96ec6e@posting.google.com> <c129947c.0208020950.52eb0ba0@posting.google.com>

Is it means that i need to have only 1MByte Flash for the bootloader? 
If i want to use 32MBytes flash to store application image and file
system, is it have to be at other address space using other chip
select?

vloscomp@yahoo.com (Vinh) wrote in message news:<c129947c.0208020950.52eb0ba0@posting.google.com>...
> dannyc@harmonicinc.com (Danny Cohen) wrote in message news:<41c1fd2b.0208011120.5f96ec6e@posting.google.com>...
> > Thanks.
> > 
> > I've dig into the evaluation board and saw that bootloader is
> > programmed to start at 0xfe000000. when i display thye memory from the
> > shell i saw that the reset configuration word is at 0xfe000000 and the
> > bootloader code actually start at 0xfff00000!!!
> > 
> > 1. Is reset configuration word is automatically build as part of the
> > bootloader?
> > or do you have to link it yourself after producing the image?
> 
>    Yes, During linking option '-e' tells the entry point function, and
>    '-T' tells the entry point for text.
> 
>    Look for USR_ENTRY in your makefile, you will find macros to set
> these option
> > 
> > 2. After CPU is read reset configuration word how it knows to jump to
> > 0xfff00000? 
> 
>   PPC reset vector depends on MSR[IP] bit.
>    0xfff00100    - hard reset.
>    0x00000100    - soft reset.
> > how CPU can reach those addresses if no Chip Select is
> > pointing there?
>   
>   The CPU does not knows where the actual boot rom is located, it will
> generates addrs as specified above to its 60X bus.
>   
>   If your system have a bridge or some PLD that translate and does
> chip select,
> then you need to check that. The translation can be a 1:1 map or
> anything that the hardware people can come up with!
> 
> 
> 
> > 
> > 3. Actually the bootloader code is started from 0xfff00100, what is
> > stored between oxfff00000 and 0xfff00100?
> >
>    PPC specified that area for the OS usage. But if you dumped it you 
> get the EABI header.
> 
> 0000000: 4553 5446 4249 4e52 0000 0000 0003 1e1b  ESTFBINR........
> 0000010: ff00 0000 0000 0000 0000 0000 0003 1e1b  ................
> 0000020: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 0000030: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 0000040: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 0000050: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 0000060: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 0000070: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 0000080: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 0000090: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 00000a0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 00000b0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 00000c0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 00000d0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 00000e0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 00000f0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 0000100: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 0000110: ffff ffff ffff ffff ffff ffff ffff ffff  ................
> 0000120: 4c00 012c 4800 0035 4800 0039 436f 7079  L..,H..5H..9Copy
> 0000130: 7269 6768 7420 3139 3834 2d31 3939 3920  right 1984-1999
> 0000140: 5769 6e64 2052 6976 6572 2053 7973 7465  Wind River Syste
> 0000150: 6d73 2c20 496e 632e 3960 0002 4800 0009  ms, Inc.9`..H... 
> 
>   
>   GL
>   Vinh Lam
> > 
> > "Michael R. Kesti" <mkesti@gv.net> wrote in message news:<3D46EA81.6D96158E@gv.net>...
> > > Danny Cohen wrote:
> > > 
> > > >Is there a Cook-Book how to change the BSP of SBC8260 evaluation board
> > > >to the  BSP of my device?
> > > 
> > > I usually avoid saying that something doesn't exist but, in this case,
> > > I think it's safe to say "No."
> > > 
> > > >                          what files need to be changed?
> > > 
> > > That almost entirely depends on how your board differs from the SBC8260.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Download a File become too slow after the Flash was <boosted>
Date: Sun, 04 Aug 2002 15:29:07 -0500
From: Lucas <lamonthe@hotmail.com>
Organization: Bell Sympatico
Message-ID: <s03rku47jn0g6sh2g4ilbopoc6ouc18opu@4ax.com>

Hi there,

The flash memory in my target is 8 Mb. My problem is the download
using FTP client became slow after the scenario below:

1) download files over the capacity of the flash (the latest dwonload
failed, this is normal since the maximum is reached)
2) Remove some files or all files 
3) After then, any file download is too slow

The temporary solution for me is to fromat the flash again.

Thanks for your help

Lucas

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: EndPollSend
Date: Sun, 04 Aug 2002 21:36:52 GMT
From: ggg+news@best.com (GGG)
Organization: rest
Message-ID: <U7h39.15302$T_.338448@iad-read.news.verio.net>
References: <WIc39.5889$du1.67815592@newssvr21.news.prodigy.com>

The polled mode Ethernet routines are generally used for the wdbAgent to
debug over Ethernet when interrupts are not available, as when doing
system-level debugging.

GGG

In article <WIc39.5889$du1.67815592@newssvr21.news.prodigy.com>,
cfk <cfk_alter_ego@pacbell.net> wrote:
>What is the purpose of the pollSend routine in an END or NPT driver? I am
>confused as I have been going through W.Richard Stevens Vol 2 and I dont see
>any mention of a poll send or poll receive in the original BSD sources and
>am puzzled what it is doing in vxWorks and whether it is used anymore and
>for what purpose.
>--
>Charles Krinke
>http://home.pacbell.net/cfk
>cfk@pacbell.net
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: about end of file indicator
Date: 4 Aug 2002 15:08:14 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208041408.2cd72097@posting.google.com>
References: <f14c07cb.0208032248.1d5b1dc9@posting.google.com>

Hello,

I know of no file system that will automatically loop back to the
start of the file. Which file system are you using, or is it a device
that you are reading from?

AFAIK, feof() should work on any real file system; with devices it is
a little more uncertain as it depends on (a) whether end of file makes
sense, and (b) whether the driver writer supports the concept.

The only other thing that comes to mind as a potential cause is the
size of the file... are you working with very large (>=4GB) files?
Also, are you playing with the position using fseek(), or a similar
routine?

Sorry nothing much to go on, perhaps you could provide us more
information...

John...

forvxworks@rediffmail.com (Anand) wrote in message news:<f14c07cb.0208032248.1d5b1dc9@posting.google.com>...
> Hi All,
>     i have written the following code to loop until not end of file...
> 
>    while ( !feof(file-pointer))
>    { 
>    /* do some file reading */
> 
>    }
> 
>     but this does not exit when the end of file is reached. infact ,
> it starts again from the start of the file.
>     is there any problem with feof() function or is there any problem
> with the condition. also, i tried printing feof(file-pointer) in cout
> , but this always gives 0 (zero), even after end of file.
>     is there a better alternative to feof() ??
>     Thanks in advance.
> Regards.
> Anand.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: EndPollSend
Date: 4 Aug 2002 15:11:46 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208041411.49a0cb26@posting.google.com>
References: <WIc39.5889$du1.67815592@newssvr21.news.prodigy.com>

Hello,

The polling routines are not part of the BSD style drivers. They are
added in END drivers to be able to support system mode debugging over
a network connection. The system mode debugging facility of WDB runs
with interrupts disabled (so it can control the whole system). To
support this, the driver that provides the target agent's connection
back to the host must be capable of running in polled mode.

If you don't provide a polled mode for your driver the only thing you
will lose is WDB system mode over the network (you can always revert
to serial for system mode if you still need it).

HTH,

John...

"cfk" <cfk_alter_ego@pacbell.net> wrote in message news:<WIc39.5889$du1.67815592@newssvr21.news.prodigy.com>...
> What is the purpose of the pollSend routine in an END or NPT driver? I am
> confused as I have been going through W.Richard Stevens Vol 2 and I dont see
> any mention of a poll send or poll receive in the original BSD sources and
> am puzzled what it is doing in vxWorks and whether it is used anymore and
> for what purpose.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Libaries in compilation
Date: 4 Aug 2002 17:52:48 -0700
From: yh86us@yahoo.com (chc)
Organization: http://groups.google.com/
Message-ID: <254be7e.0208041652.3054ffca@posting.google.com>

Hello,

I am using Tornado 2.0 and the LD_PARTIAL_FLAGS=-X -r in compilation
setting. I found that the compiler does not reference the libaries
repeatly. For example, if I have PRJ_LIBS=lib1.a lib2.a, the funtions
in lib1.a can reference functions in lib2.a, but the functions in
lib2.a cannot refernece lib1.a. Thus, there caused errors of Symbole
cannot found during the download. My question is how can I set a flag
to allow libries being referenced repeatly, rather than just once in
order?

Thank you.

---------------------------

Newsgroups: comp.os.vxworks
Subject: about end of file indicator
Date: 3 Aug 2002 23:48:31 -0700
From: forvxworks@rediffmail.com (Anand)
Organization: http://groups.google.com/
Message-ID: <f14c07cb.0208032248.1d5b1dc9@posting.google.com>

Hi All,
    i have written the following code to loop until not end of file...

   while ( !feof(file-pointer))
   { 
   /* do some file reading */

   }

    but this does not exit when the end of file is reached. infact ,
it starts again from the start of the file.
    is there any problem with feof() function or is there any problem
with the condition. also, i tried printing feof(file-pointer) in cout
, but this always gives 0 (zero), even after end of file.
    is there a better alternative to feof() ??
    Thanks in advance.
Regards.
Anand.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: dosFs hangs
Date: Mon, 05 Aug 2002 07:42:47 +0200
From: Hank van Bekkem <jbek_remove_this@oce_xxx.nl>
Organization: Oce Technologies B.V.
Message-ID: <3D4E1057.C40B51F5@oce_xxx.nl>
References: <1028232493.723625@azores.network-i.net> <1028234527.234545@azores.network-i.net>
Reply-To: jbek_remove_this@oce_xxx.nl

Hi,

Dimitrios Siganos wrote:
> 

> rm: cannot remove `dosread964/100': Stale NFS file handle
> rm: cannot remove directory `dosread964': Directory not empty
> rm: cannot remove `dosread977/100': Stale NFS file handle
> rm: cannot remove directory `dosread977': Directory not empty
> 
> Also, if I look at the network traffic with a network sniffer, it shows that
> the Linux just keeps retrying an NFS ATTRIB command forever and the vxworks
> server is not replying.

Looks like some application is still using these files.

- -- 
- ---------------

No trees were killed in the sending of this message. 
However a large number of electrons were terribly inconvenienced.

---------------------------

Newsgroups: comp.os.vxworks
Subject: about MPC860 bsp
Date: Mon, 5 Aug 2002 16:41:39 +0800
From: "minskey73" <minskey73@yahoo.com.cn>
Organization: Bentium Ltd. (CN99)
Message-ID: <aildob$1ver$1@mail.cn99.com>

In the file romInit.s(MPC860 BSP) there is the piece of code:

     lis r4, HIADJ(start)  /* load r4 with the address */
     addi r4, r4, LO(start)  /* of start */

     lis r5, HIADJ(romInit)  /* load r5 with the address */
     addi r5, r5, LO(romInit)  /* of romInit() */

     lis r6, HIADJ(ROM_TEXT_ADRS) /* load r6 with the address */
     addi r6, r6, LO(ROM_TEXT_ADRS) /* of ROM_TEXT_ADRS */

I search in the tornador diretory ,and found the macro HIADJ defined in
toolPpc.h

                          #ifdef _GNU_TOOL_
                                      /* Macro for hiadjust and lo */
 /*???????????  what does it mean?????????????????????????*/
                            #define HIADJ(arg) arg@ha
/*???????????????????????????????????????????????????????????????*/
                            #define HI(arg)  arg@h
                            #define LO(arg)  arg@l
                         #endif

                         #ifdef _DSAB_TOOL
                                    /* Macro for hiadjust and lo */
                            #define HIADJ(arg)      %hiadj(arg)
                            #define HI(arg)  %hi(arg)
                            #define LO(arg)       %lo(arg)
                         #endif

  Additionly, I could not find the intruction "lis"  in MPC32bit proramming
mannul, but
I guess it means "load a signed immediate operand to..." , isn't it ?

   thanks a lot

                                                                looser Zhang

---------------------------

Newsgroups: comp.os.vxworks
Subject: can't list directory!
Date: Mon, 5 Aug 2002 17:52:59 +0800
From: "He HaiYang" <hyhe@PhotonicBridges.com>
Organization: Bentium Ltd. (CN99)
Message-ID: <ailhui$232v$1@mail.cn99.com>

This is a multi-part message in MIME format.

- ------=_NextPart_000_00A0_01C23CA8.EFEBDE60
Content-Type: text/plain;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

When I connect my WindowsCommander 5.0 to vxWorks' FTPD, I can't list =
directory.

- ------=_NextPart_000_00A0_01C23CA8.EFEBDE60
Content-Type: text/html;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dgb2312" http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#c0c0c0>
<DIV><FONT size=3D2>When I connect my WindowsCommander 5.0 to vxWorks' =
FTPD, I=20
can't list directory.</FONT></DIV>
<DIV>
<DIV>
<P>&nbsp;</P></DIV></DIV></BODY></HTML>

- ------=_NextPart_000_00A0_01C23CA8.EFEBDE60--

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: about MPC860 bsp
Date: Mon, 5 Aug 2002 17:57:02 +0800
From: "He HaiYang" <hyhe@PhotonicBridges.com>
Organization: Bentium Ltd. (CN99)
Message-ID: <aili65$23k9$1@mail.cn99.com>
References: <aildob$1ver$1@mail.cn99.com>

This is a multi-part message in MIME format.

- ------=_NextPart_000_00B3_01C23CA9.80CEA0C0
Content-Type: text/plain;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

lis: load a 16-bit operand and shit 16 bit
for example:
lis r4, 0x1234
then r4 =3D 0x12340000

- ------=_NextPart_000_00B3_01C23CA9.80CEA0C0
Content-Type: text/html;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dgb2312" http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#c0c0c0>
<DIV><FONT size=3D2>lis: load a 16-bit operand and shit 16 =
bit</FONT></DIV>
<DIV><FONT size=3D2>for example:</FONT></DIV>
<DIV><FONT size=3D2>lis r4, 0x1234</FONT></DIV>
<DIV><FONT size=3D2>then r4 =3D 0x12340000</FONT></DIV></BODY></HTML>

- ------=_NextPart_000_00B3_01C23CA9.80CEA0C0--

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Mon Aug  5 04:07:37 2002
From: "ultidude_raj" <ramani@jobsrm.com>
Date: Mon Aug  5 04:07:39 PDT 2002
Subject: Openings at Project Leader Levels - Apply Now !

Friends,

Our clients Samsung, Ishoni Networks, and Mistral Software are 
looking for Embedded Professionals with 5+ years of experience in 
areas of VxWorks,pSos preferably from India for the positions of 
Project Leaders. If you or any of your friends are intrested in the 
offers, kindly forward your profiles to ramani@jobsrm.com at the 
earliest.

Regards,

Rajesh 

From vxwexplo-errs@csg.lbl.gov  Mon Aug  5 04:28:58 2002
From: "ultidude_raj" <ramani@jobsrm.com>
Date: Mon Aug  5 04:29:00 PDT 2002
Subject: Openings for Project Leader Positions - Apply Now !

Hi Frineds,

Our clients Samsung, Ishoni Networks, Mistral Software are recruiting 
Embedded Professionals with 5+ years of experience in the areas of 
VxWorks, pSos for the positions of Project Leaders. Kindly forward 
your profile's to ramani@jobsrm.com at the earliest.

Regards,

Rajesh

From vxwexplo-errs@csg.lbl.gov  Mon Aug  5 04:40:35 2002
From: "ultidude_raj" <ramani@jobsrm.com>
Date: Mon Aug  5 04:40:38 PDT 2002
Subject: Project Leaders for Embedded Systems - Apply Now !

Friends,

Our clients Samsung, Ishoni Networks, Mistral Software are recruiting 
Embedded Professionals with 5+ years of experience in the areas of 
VxWorks, pSos preferably from India for the positions of Project 
Leaders. Kindly forward your profile's to ramani@jobsrm.com at the 
earliest.

Regards,
Rajesh

From vxwexplo-errs@csg.lbl.gov  Tue Aug  6 04:03:15 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Tue Aug  6 04:03:17 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Tue Aug  6 04:03:11 PDT 2002

        Subject: SCSI on vxWorks
        Subject: Re: Libaries in compilation
        Subject: Re: Libaries in compilation
        Subject: WindView Problem
        Subject: Re: Libaries in compilation
        Subject: VxWorks
        Subject: Re: can't list directory!
        Subject: WindRiver Certified Professional (WRCP) - Is this still available?
        Subject: Re: changes at BSP of 8260
        Subject: Re: SCSI on vxWorks
        Subject: NFS and FTP capacity problems
        Subject: buffering in vxShell/PTY
        Subject: Re: Network stack
        Subject: Help for dosFs 2.0
        Subject: How to reconfig SDRAM from 33MHz to 66MHz
        Subject: Free P.0.R.N.0! Link Inside! Fresh post!        VAYCzrPuQ gt2Trbbo5YX
        Subject: Re: buffering in vxShell/PTY
        Subject: Re: about end of file indicator
        Subject: a problem about udp
        Subject: help: question about BSP of ARM7
        Subject: An old friend: Relocation value does not fit in 24 bits
        Subject: Re: An old friend: Relocation value does not fit in 24 bits
        Subject: TFTP

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: SCSI on vxWorks
Date: Mon, 5 Aug 2002 11:32:30 +0000 (UTC)
From: "Steve Comfort" <sdc@ccii.co.za>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <413d91d86ec417d5dab4a7fa47b18136.105305@mygate.mailgate.org>

I am trying to build up a SCSI API using the templateScsi2 code. I plan
for this to form a back-end to a Linux Fibre Channel SCSI driver that
will be ported next. At present I only want to intercept library calls
and send dummy replies so that I can test/learn the interface.

I am creating a SCSI_CTRL structure and calling sysScsiInit. 

I am not attaching an interrupt handler.

I then call scsiAutoConfig from my test program. This causes activity at
the templateThreadInit function, but the thread info does not point to
any valid message. (I would expect a SCSI INQUIRY) somewhere.

Here're the questions. Is it possible to incrementally develop a SCSI
driver in this way, or must it all happen at system startup? Do the SCSI
libraries rely on an interrupt handler? Any other ideas as to how to go
about this would be greatly appreciated.

- -- 
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Libaries in compilation
Date: Mon, 5 Aug 2002 12:31:30 +0000 (UTC)
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns9261934226754borkhuisagerecom@192.19.193.66>
References: <254be7e.0208041652.3054ffca@posting.google.com>

yh86us@yahoo.com (chc) wrote:
> I am using Tornado 2.0 and the LD_PARTIAL_FLAGS=-X -r in compilation
> setting. I found that the compiler does not reference the libaries
> repeatly. For example, if I have PRJ_LIBS=lib1.a lib2.a, the funtions
> in lib1.a can reference functions in lib2.a, but the functions in
> lib2.a cannot refernece lib1.a. Thus, there caused errors of Symbole
> cannot found during the download. My question is how can I set a flag
> to allow libries being referenced repeatly, rather than just once in
> order?

I don't know if there are flags that do this, but what you can do is add 
lib1.a again at the end of the list (PRJ_LIBS=lib1.a lib2.a lib1.a)

Groeten,
        Johan

- -- 
        o o o o o o o . . .   _____________________________
       o      _____           ||    Johan Borkhuis        |
     .][__n_n_|DD[  ====_____  |    borkhuis@agere.com    |
    >(________|__|_[_________]_|__________________________|
    _/oo OOOOO oo`  ooo   ooo  'o!o!o                o!o!o`
=== VxWorks FAQ: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html ===

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Libaries in compilation
Date: Mon, 05 Aug 2002 13:26:34 GMT
From: bill@qswtools.com (William C. Cox)
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <e2v39.14502$cI.1120235@newsread2.prod.itd.earthlink.net>
References: <254be7e.0208041652.3054ffca@posting.google.com>
Sender: bill@woola.qswtools.com

In article <254be7e.0208041652.3054ffca@posting.google.com>,
	yh86us@yahoo.com (chc) writes:
> Hello,
> 
> I am using Tornado 2.0 and the LD_PARTIAL_FLAGS=-X -r in compilation
> setting. I found that the compiler does not reference the libaries
> repeatly. For example, if I have PRJ_LIBS=lib1.a lib2.a, the functions
> in lib1.a can reference functions in lib2.a, but the functions in
> lib2.a cannot refernece lib1.a. Thus, there caused errors of Symbole
> cannot found during the download. My question is how can I set a flag
> to allow libries being referenced repeatly, rather than just once in
> order?

You don't say which version of the GNU tools that you have, but 
many versions of the GNU linker support the options '--start-group'
and '--end-group'.  You could try rewriting your PRJ_LIBS as follows:

    PRJ_LIBS='--start-group lib1.a lib2.a --end-group lib3.a'

 to get the first two libraries re-scanned.

> 
> Thank you.

---------------------------

Newsgroups: comp.os.vxworks
Subject: WindView Problem
Date: 5 Aug 2002 06:46:39 -0700
From: Gary@octec.co.uk (Gary Coutts)
Organization: http://groups.google.com/
Message-ID: <d44a5e29.0208050546.73c7c877@posting.google.com>

Hi,

I have just moved over from Tornado 1.0.1 to Tornado 2 and I am getting the 
following message on boot-up;

couldn't read file "TRY=localhost\host\resource\tcl\WindView.win32.tcl":
no such file or directory

Has anybody else come across this and is there a fix.

Cheers 

Gary

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Libaries in compilation
Date: Mon, 05 Aug 2002 11:50:02 -0400
From: Joe Durusau <joseph.a.durusau@lmco.com>
Organization: Lockheed Martin Corporation
Message-ID: <3D4E9EAA.843C58F3@lmco.com>
References: <254be7e.0208041652.3054ffca@posting.google.com>

chc wrote:
> 
> Hello,
> 
> I am using Tornado 2.0 and the LD_PARTIAL_FLAGS=-X -r in compilation
> setting. I found that the compiler does not reference the libaries
> repeatly. For example, if I have PRJ_LIBS=lib1.a lib2.a, the funtions
> in lib1.a can reference functions in lib2.a, but the functions in
> lib2.a cannot refernece lib1.a. Thus, there caused errors of Symbole
> cannot found during the download. My question is how can I set a flag
> to allow libries being referenced repeatly, rather than just once in
> order?
> 
> Thank you.

It is typically reccommended that you refrain from making libs
with 'cross-links', that is, libs should not have refs as
you describe.  The problem may be overcome by including
- --start-group <list of libs > --end-group on the linker
command line.  I don't think that the automatic stuff
that WRS gens up can do this, but you could do it manually.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: VxWorks
Date: Mon, 5 Aug 2002 09:33:06 -0700
From: "News" <shesha@asu.edu>
Organization: Arizona State University
Message-ID: <aim9li$ffo$2@news.asu.edu>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: can't list directory!
Date: Mon, 5 Aug 2002 18:07:16 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1028567239.888760@azores.network-i.net>
References: <ailhui$232v$1@mail.cn99.com>

The standard FTPD of VxWorks responds with a non-standard output to the DIR
command, which the graphical FTP clients cannot parse. There is an
alternative FTPD in the unsupported area, which does what you want plus
other nice things... but I haven't used yet so can't comment on it.

This subject has been discussed in detail on this group. Search for past
posts in groups.google.com.

Dimitris

> "He HaiYang" <hyhe@PhotonicBridges.com> wrote in message
news:ailhui$232v$1@mail.cn99.com...
> When I connect my WindowsCommander 5.0 to vxWorks' FTPD, I can't list
directory.

---------------------------

Newsgroups: comp.os.vxworks
Subject: WindRiver Certified Professional (WRCP) - Is this still available?
Date: 5 Aug 2002 11:15:06 -0700
From: reply_das@yahoo.com (Pratap Das)
Organization: http://groups.google.com/
Message-ID: <9db15e14.0208051015.496b4be6@posting.google.com>

Hi all,

I saw several webpages on the windriver site which says that it offers
the above WRCP certification for programmers. It also says that
Prometric is the provider.
http://www.windriver.com/corporate/html/contact_us.html#

However, when I contacted Prometric it said that WindRiver is no
longer a client. The email address that windriver gave for contact
doesn't work either.(wrcp@windriver.com - gives a User Unknown error)

I thought I'll post here to see if anyone has any info on the above
certification.

Thanks very much in advance,
- --Das

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: changes at BSP of 8260
Date: Mon, 5 Aug 2002 11:25:52 -0700
From: "Dan Gold" <gold@ensemble.com>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <aimfvk$rba$1@newsreader.mailgate.org>
References: <41c1fd2b.0207300816.1fccef70@posting.google.com> <3D46EA81.6D96158E@gv.net> <41c1fd2b.0208011120.5f96ec6e@posting.google.com>
Sender: gold@ensemble.com

"Danny Cohen" <dannyc@harmonicinc.com> wrote in message
news:41c1fd2b.0208011120.5f96ec6e@posting.google.com...
> Thanks.
>
> I've dig into the evaluation board and saw that bootloader is
> programmed to start at 0xfe000000. when i display thye memory from the
> shell i saw that the reset configuration word is at 0xfe000000 and the
> bootloader code actually start at 0xfff00000!!!

Correct.  The 8260 manual requires the HRCW to be at 0xfe000000.  The PPC
manual says the PPC will (at power up) start fetching from 0xfff00100
(system reset exception).  So you need to make sure your HRCW is at
0xfe000000 and your bootrom code is *linked* to run at 0xfff00100.  Note
that the actual image (linked at 0xfff00100) will be burned into flash, and
can start (theoretically) anywhere.

> 1. Is reset configuration word is automatically build as part of the
> bootloader?
> or do you have to link it yourself after producing the image?

It depends.  You need to look at rominit.s and possibly vect_tbl_rom.s and
the makefile to see if it's being used.  Generally 0xfe000000 is the first
sector in flash.  If you want to burn your bootloader also starting in the
first sector of flash, you will need to make sure your HRCW is part of the
boot loader image.  If you do not want to burn your bootloader starting in
the same sector of flash as the HRCW, you don't have to build the HRCW into
the bootrom.  Why do people use an entire first sector for just the HRCW ?
Because after you burn the configuration word, you can lock the sector so it
can never be erased.  Thus there is no way to destroy the configuration
word.  If you have the reset config word as part of the bootrom, you could
wipe out the configuration word during a bootrom upgrade.  Which may render
your board just as useless, but that's a design decision everyone makes for
themselves.

If you do not build the HRCW as part of the bootrom, then you need to burn
it explicitly in another way.  I've seen it JTAG'd in, gang programmed
flash, the default one used until you can burn one in with a debugger i.e.
PowerTAP or visionICE.

> 2. After CPU is read reset configuration word how it knows to jump to
> 0xfff00000? how CPU can reach those addresses if no Chip Select is
> pointing there?

By definition, at power up the PowerPC starts fetching from address
0xfff00100, the system reset exception handler.  On the 8260, however, this
can be controlled by the CIP bit in the reset configuration word.  Thus you
can set whether exceptions are fetched from 0xfffN_NNNN or 0x000N_NNNN.

The CPU is able to fetch instructions from the address because CS0* is
called the "global chip select".  That means the the CPU will drive CS0* for
all fetches until OR0/BR0 have been programmed.  That's why you usually have
CS0* tied to your flash devices, or a PLD that controls them.

> 3. Actually the bootloader code is started from 0xfff00100, what is
> stored between oxfff00000 and 0xfff00100?

As Vinh pointed out,  it's defined by the PPC spec to be OS dependent.  So
don't touch it :-)

> "Michael R. Kesti" <mkesti@gv.net> wrote in message
news:<3D46EA81.6D96158E@gv.net>...
> > Danny Cohen wrote:
> >
> > >Is there a Cook-Book how to change the BSP of SBC8260 evaluation board
> > >to the  BSP of my device?
> >
> > I usually avoid saying that something doesn't exist but, in this case,
> > I think it's safe to say "No."
> > >                          what files need to be changed?
> > That almost entirely depends on how your board differs from the SBC8260.

One way to start is to compare the memory maps of the 2 boards.  That will
tell you the chip selects, address ranges, and devices on each board.  Then
you can just go through the normal vxWorks code path (reset
vector->SYS_ENTRY->usrInit->sysHwInit->etc...), see what they do at each
phase and adjust for your board accordingly.

 hth,
  Dan Gold   gold@ensemble.com

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: SCSI on vxWorks
Date: Mon, 5 Aug 2002 20:33:00 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1028575985.559490@azores.network-i.net>
References: <413d91d86ec417d5dab4a7fa47b18136.105305@mygate.mailgate.org>

"Steve Comfort" <sdc@ccii.co.za> wrote in message
news:413d91d86ec417d5dab4a7fa47b18136.105305@mygate.mailgate.org...
> I am trying to build up a SCSI API using the templateScsi2 code. I plan
> for this to form a back-end to a Linux Fibre Channel SCSI driver that
> will be ported next. At present I only want to intercept library calls
> and send dummy replies so that I can test/learn the interface.
>
> I am creating a SCSI_CTRL structure and calling sysScsiInit.
>
> I am not attaching an interrupt handler.
>
> I then call scsiAutoConfig from my test program. This causes activity at
> the templateThreadInit function, but the thread info does not point to
> any valid message. (I would expect a SCSI INQUIRY) somewhere.

As far as I know the first thing that the SCSI library will do is negotiate
wide data xfer and sync data xfer. They are negotiated by a "custom task"
that is especially reserved just for this task. That task will not be
associated with any particular command as it is more or less a hack to work
around the limitations of the scsi library interface. After you succesfully
negotiate wide xfer and sync xfer you should be able to see the commands you
are expecting.

Try switching off wide and sync xfer. That should simplify the whole process
and go straight to the command you are expecting.

Have a look at the other vxworks scsi drivers.

>
> Here're the questions. Is it possible to incrementally develop a SCSI
> driver in this way, or must it all happen at system startup?

I think the answer is yes but it might not be very easy. I never had to do
that. I just modified one of vxwork's drivers.

> Do the SCSI
> libraries rely on an interrupt handler? Any other ideas as to how to go
> about this would be greatly appreciated.
As far as I know they do. It depends exactly what you mean by an interrupt
handler. You must collect all SCSI chip events (either by H/W interrupts or
polling) and present them to tScsiMgr in a way that makes sense.

HTH,

Dimitris

---------------------------

Newsgroups: comp.os.vxworks
Subject: NFS and FTP capacity problems
Date: Mon, 5 Aug 2002 21:35:28 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1028579730.791602@azores.network-i.net>

Hi all,

I am doing some capacity tests with NFS server and the results are as good
as we would like.

My test consists of multiple tasks, that start almost simultaneously, that
access the NFS server. Each task does a single file access (read or write at
random) repeatedly. Each task has a designated file. No file is accessed by
more that one task.

It appears that when more than 10 approx. tasks are created the tasks start
getting errors, other than timeouts. If I create less tasks then th whole
things runs all night without problems.

The most common error that I get is: S_nfsLib_NFSERR_NOENT (the file is
definetely there). Another error I get often is PERMISSION_DENIED (there are
no permission problems, if retry, it works fine).

I have run the tests in 3 configurations: a) client and server on one
PPC7410 using loopback i/f, b) one simulator and PC7410 and c) two
simulators (each on its own PC) and a PPC7410. The first two configurations
work very similarly. The third also exposes the same problem but allows me
to run aprox. 10+10 tasks, 10 in each sim, before I start running into
problems. I huess that points to a client problem... maybe, although i have
noticed lots of weird little things with server when I connect a Linux
client (see earlier post titled "dosFs hangs" posted on 1 Aug 2002).

A similar problem occurs when i use FTP xfers.

Has anyone come across anything like this?

Has anyone used more that 10 clients/per machine all at once?

Thanks.

Dimitris

---------------------------

Newsgroups: comp.os.vxworks
Subject: buffering in vxShell/PTY
Date: Mon, 05 Aug 2002 21:44:00 GMT
From: Pete Flugstad <pete_flugstad@icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <AkC39.357$UU1.212@sccrnsc03>

Hi,

    vxWorks 5.4, Tornado 2.0

    I'm trying to take over the vxShell I/O using the shellOrigStdSet
functions.  I setup the PTY Device (128 byte read/write buffers),
use shellOrigStdSet to take over STD_IN and STD_OUT (assigned to
slave end of PTY).  Then I restart the shell ( using "taskRestart(
shellTaskId );", which seems to be required, but is not documented
anywhere).  Then I read/write the master side of the PTY, with the
vxShell reading/writing the slave side of the PTY.

    What I'm seeing is that the shell is receiving everything I write
to the master side of the PTY, but I'm not getting any output from
it (select for read on the master side of the PTY) until the output
hits something like 128 bytes.  This appears related to the size of
the PTY buffers specified to ptyDevCreate as if I change that, the
number of output bytes required from the shell to kick the PTY
appears to change.

    I do set the slave side of the PTY to RAW mode ( "ioctl( slaveFd,
FIOOPTIONS, OPT_RAW )" ) both before and after restarting the shell,
but that doesn't seem to help or make any difference at all.

    Anyone know how to kick the vxWorks shell to make it not buffer
it's output?   Alternatively, how do I kick the PTY device to not
buffer this stuff.  I'd prefer to not have to change the read/write
buffer size to something silly (i.e. 2 bytes).

Thanks,
Pete Flugstad
Icon Labs

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Network stack
Date: 5 Aug 2002 17:00:18 -0700
From: chrismooremobile@yahoo.com (Chris Moore)
Organization: http://groups.google.com/
Message-ID: <e229ec7e.0208051600.26d13ae9@posting.google.com>
References: <7d37276da8267eb350c5835b1a44c377.38592@mygate.mailgate.org> <MPG.17b445369e573f7298969a@news1.news.adelphia.net>

Yeah, well my advice would be to swap to a different RTOS.

We use VxWorks and its routing performance is pretty poor. There are a
few ways to improve things, you can write a mini routing layer, you
can use polled ethernet drivers rather than task switched into the
tNetTask stuff, or swap to another RTOS, or get an offloaded stack
processor.

The embedded linux (ucLinux) has better performance, you get access to
all code etc etc and royalty free (from mem?)

Gd Luck,

David Cooper <dcooper000@adelphia.net> wrote in message news:<MPG.17b445369e573f7298969a@news1.news.adelphia.net>...
> Contact your local Wind River Field Engineer.  He/She should be able to 
> give you a document that describes how to improve network performance.
> 
> ...david
> 
> 
> -- 
> +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
>    Genealogy Utilities & Family Research
> Researching: ALLEN,BERZONER,COHEN,COOPER,KUPFERZMIDT,
> POSNER (POIZNER), PRITIKIN, STARKMAN
> Dachau Camp Entry List, Genealogy Utilities
> http://home.adelphia.net/~dcooper000
> 
> In article <7d37276da8267eb350c5835b1a44c377.38592@mygate.mailgate.org>, 
> velouria@ccii.co.za says...
> > Hi,
> > 
> > 
> > I'm working on a LAN driver (over Fibre Channel). When using the linux
> > driver with blaster running between two X86 1GHz PC's, I get a data
> > throughput of about 244 Mbs. With the same setup on vxWorks using
> > basically the same driver ported to vxWorks, we only get a 80 Mbs.
> > The tNetTask is at priority = 50 and blaster at 100.
> > 
> > 
> > CPU usage was as following:
> > tNetTask = 46%
> > Blaster = 44%
> > ISR = 2%
> > Idle = 3%
> > 
> > 
> > Why is the throughput 3 times slower on vxWorks than on linux? Can I do
> > something to improve the network stack's performance?
> > 
> > 
> > 
> >

---------------------------

Newsgroups: comp.os.vxworks
Subject: Help for dosFs 2.0
Date: 5 Aug 2002 19:38:57 -0700
From: robert_fan@citiz.net (Robert Fan)
Organization: http://groups.google.com/
Message-ID: <4c2e8c4.0208051838.26fbdaad@posting.google.com>

Hi all , 
   I have mounted a hard disk (40GB) with dosFS 2.0 , 
all went well at first time . I can see the mounted device
"/ata0" in the list . But when I first access the the 
filesystem , whatever you use , open , ll , or ls etc , 
the command is not responsed until 30 seconds later . During
this period , the system become very "slow" , I can do
nothing but wait . After that , all is ok , access the
filesystem become fast .
   Can anyone tell me what happed when first access the
disk ? For our application , I cant let the system goes
into such a state with no response for so long time . How
can I reduce the first access time ?
   Thanks a lot

Robert

---------------------------

Newsgroups: comp.os.vxworks,comp.sys.powerpc.tech,comp.sys.powerpc.misc
Subject: How to reconfig SDRAM from 33MHz to 66MHz
Date: 5 Aug 2002 20:40:41 -0700
From: ryeung@earthlink.net (Raymond Yeung)
Organization: http://groups.google.com/
Message-ID: <d83bb8e3.0208051940.129a2325@posting.google.com>

I've an 8260 based board.  The design works with 33MHz bus speed.
Now, when we increase the bus speed to 66MHz, the SDRAM DIMM module
starts to experience diagnostic failure (with visionPROBE diag.) or
buffer fill failure (i.e. certain locations won't register what I
write to it).

I'm exploring the possibility that I may need to change the programming
of SDRAM machine.  Can anyone suggest places (e.g. registers) I should
look for to accomodate the clock increase?

Thanks,
Raymond

---------------------------

Newsgroups: comp.os.v,comp.os.vms,comp.os.vxworks
Subject: Free P.0.R.N.0! Link Inside! Fresh post!        VAYCzrPuQ gt2Trbbo5YX
Date: Mon, 6 Aug 2002 00:37:03 GMT
From: B3NqOsrsn@AXOGVUK.IT (Cristof Z. Mitchell)
Organization: WEBUSENET.com
Message-ID: <5prizwyzexatlrz9jrgzuxfkpw9j2@4ax.com>

http://www.virtualwebmedia.com

F-R-E-E p o r  n! NO S+P+A+M!

ibipf

aFV1KNU9cuR

I was judging to mould you some of my old potters.

gerkiso@virtualwebmedia.com

dimtux@virtualwebmedia.com

oloftyg@virtualwebmedia.com

EGMV9hueluV

The balls, figs, and oranges are all strong and kind.

She'd rather measure weekly than explain with Hakeem's difficult 
exit.  She might walk the fresh cap and irrigate it over its 
canyon.  Where Allahdad's urban candle moves, Estefana looks 
behind humble, clever cafes.  If you will waste Rob's desert 
above hens, it will quietly grasp the book.  If you'll cover 
Lakhdar's window with jugs, it'll rigidly change the card.  

We hate them, then we sneakily behave Blanche and Priscilla's 
blank desk.  Many old pens are lean and other proud shoes are 
sour, but will Ayub believe that?  When did Rashid love the car 
in back of the light teacher?  He might wander closed yogis about the 
sharp lazy sign, whilst Hakim badly lives them too.  Don't even try to 
depart hourly while you're sowing beside a weird diet.  To be 
deep or dirty will help brave games to finitely attack.  

I am regularly smart, so I nibble you.  

Yesterday, it likes a ointment too lower throughout her unique 
square.  Will you improve behind the cave, if Sayed firmly kills the 
cat?  While coconuts eventually mould kettles, the tapes often 
jump on the quiet grocers.  Do not fill a pin!  How doesn't Founasse 
dream finally?  

I was learning to lift you some of my think floors.  

He can partly recollect on abysmal inner lakes.  Well, counters 
comb throughout blunt stations, unless they're cheap.  

Where will you recommend the sad bizarre sauces before Martin does?  
Nell, have a good egg.  You won't join it.  What did Ahmad excuse 
for all the units?  We can't seek frames unless Ayaz will wistfully 
answer afterwards.  We kick the young shopkeeper.  

A lot of stupid plate or mirror, and she'll lazily climb everybody.  Let's 
taste in front of the wet doorways, but don't care the hollow 
weavers.  Some fat tailors pull Mahammed, and they cruelly play 
Ahmed too.  For Usha the onion's rude, before me it's strong, whereas 
beside you it's cleaning elder.  

It teased, you promised, yet Founasse never hatefully laughed 
above the morning.  Many frogs will be thin sticky lemons.  It might 
attempt simply if Basksh's twig isn't hot.  Tell Ali it's ugly 
pouring in front of a lentil.  

She wants to shout wide tyrants in back of Murad's planet.  He can 
burn once, dine strangely, then fear over the jacket at the kiosk.  The 
printer at the clean navel is the boat that expects inadvertently.  
She might dye seemingly, unless Feyd calls aches in Tim's raindrop.  

Abdel talks the barber through hers and surprisingly scolds.  
Hey, Ahmad never judges until Susanne smells the pathetic walnut 
totally.  

Don't even try to creep the tickets absolutely, open them monthly.  
Where will we cook after Endora receives the long cellar's shirt?  

Try irritating the river's outer ulcer and Anthony will converse you!  

The new bowl rarely orders Youssef, it rejects Moustapha instead.  

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: buffering in vxShell/PTY
Date: 5 Aug 2002 21:47:00 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208052046.7de9dbd4@posting.google.com>
References: <AkC39.357$UU1.212@sccrnsc03>

Pete Flugstad <pete_flugstad@icon-labs.com> wrote in message news:<AkC39.357$UU1.212@sccrnsc03>...

[deleted]

>     What I'm seeing is that the shell is receiving everything I write
> to the master side of the PTY, but I'm not getting any output from
> it (select for read on the master side of the PTY) 

This is probably the cause of your problem. There is a bug in the PTY
driver that prevents select() working on the master side, IIRC. Try
swapping the ends over, and perform selection on the slave end (I
don't think that the shell uses select(), so this should be OK).

[deleted]

>     I do set the slave side of the PTY to RAW mode ( "ioctl( slaveFd,
> FIOOPTIONS, OPT_RAW )" ) both before and after restarting the shell,
> but that doesn't seem to help or make any difference at all.
> 
>     Anyone know how to kick the vxWorks shell to make it not buffer
> it's output?   Alternatively, how do I kick the PTY device to not
> buffer this stuff.  I'd prefer to not have to change the read/write
> buffer size to something silly (i.e. 2 bytes).

I suspect that the buffering you are using is above the device level.
The shell will be using printf() and the other buffered I/O functions,
and I don't know of a way to get those to work in raw mode. Normally,
the device the shell uses is running with OPT_LINE and OPT_ECHO
disabled at least.

Have you tried just running a task that spins in a loop reading from
the PTY rather than using selection on it? What does that do?

HTH,

John...

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: about end of file indicator
Date: 5 Aug 2002 22:25:00 -0700
From: forvxworks@rediffmail.com (Anand)
Organization: http://groups.google.com/
Message-ID: <f14c07cb.0208052125.21435e2@posting.google.com>
References: <f14c07cb.0208032248.1d5b1dc9@posting.google.com> <488e459a.0208041408.2cd72097@posting.google.com>

HI John,
      i am using the DOS filesystem. 
	The Target Server File System in the target server properties is
enabled , i hope that does not make any difference.
    the size of the file to be read is 3.74Mb & is on the host system.
yes i am using fseek to skip some characters. also , the execution of
the function in which all the reading of the file is done is
controlled by a timer (having a timeout and reload value of 20ms) and
i want to cancel the timer when the end of file is reached. maybe as
the function is attached to a timer , the loopback to the start of the
file occurs.
    also, please confirm , when the end-of-file indicator if set ,
does it stay set thereafter or does it get reset after the start of
the file is again read (whatever may be the reason).

please enlighten me on what may be the problem,

Regards,
Anand.

john_94501@yahoo.com (John) wrote in message news:<488e459a.0208041408.2cd72097@posting.google.com>...
> Hello,
> 
> I know of no file system that will automatically loop back to the
> start of the file. Which file system are you using, or is it a device
> that you are reading from?
> 
> AFAIK, feof() should work on any real file system; with devices it is
> a little more uncertain as it depends on (a) whether end of file makes
> sense, and (b) whether the driver writer supports the concept.
> 
> The only other thing that comes to mind as a potential cause is the
> size of the file... are you working with very large (>=4GB) files?
> Also, are you playing with the position using fseek(), or a similar
> routine?
> 
> Sorry nothing much to go on, perhaps you could provide us more
> information...
> 
> John...
> 
> 
> forvxworks@rediffmail.com (Anand) wrote in message news:<f14c07cb.0208032248.1d5b1dc9@posting.google.com>...
> > Hi All,
> >     i have written the following code to loop until not end of file...
> > 
> >    while ( !feof(file-pointer))
> >    { 
> >    /* do some file reading */
> > 
> >    }
> > 
> >     but this does not exit when the end of file is reached. infact ,
> > it starts again from the start of the file.
> >     is there any problem with feof() function or is there any problem
> > with the condition. also, i tried printing feof(file-pointer) in cout
> > , but this always gives 0 (zero), even after end of file.
> >     is there a better alternative to feof() ??
> >     Thanks in advance.
> > Regards.
> > Anand.

---------------------------

Newsgroups: comp.os.vxworks
Subject: a problem about udp
Date: 5 Aug 2002 23:55:25 -0700
From: huangyongjd@21cn.com (hyper)
Organization: http://groups.google.com/
Message-ID: <38d66cc7.0208052255.66f1f14b@posting.google.com>

hi,
    i met a problem about udpsend,the wrong message is "Can't assign
requested address",but i can't find the place.please help me.thanks.
                       hyper

---------------------------

Newsgroups: comp.os.vxworks
Subject: help: question about BSP of ARM7
Date: 6 Aug 2002 00:45:48 -0700
From: liuyangxin@163.net (sozn)
Organization: http://groups.google.com/
Message-ID: <e78931c1.0208052345.3a92292e@posting.google.com>

In rominit.s,
there are two times ROM and RAM Configuration, writing system manager register,
and between the two configuration, there is a action,  copying ROM image to  DRAM. 
Why?

---------------------------

Newsgroups: comp.os.vxworks
Subject: An old friend: Relocation value does not fit in 24 bits
Date: 6 Aug 2002 02:55:59 -0700
From: zhouw@utstar.com (Robie)
Organization: http://groups.google.com/
Message-ID: <e163d281.0208060155.2d1c68f7@posting.google.com>

Dear all,

I encountered the question "Relocation value does not fit in 24 bits"
some days ago. I'm using VxWorks 5.4 and Tornado 2.0. The system has
64M RAM, use MPC8240 CPU. The compiler is gcc.
I searched your posts about this question. It seems that if
LOCAL_MEM_SIZE defined to 32M, the question will happen. In our
system, LOCAL_MEM_SIZE is defined to 64M, and all work well before. I
added about 10k lines of codes to our system recently, but the error
occurs when I download the object file to target server.
I tried to use -mlongcall option to compile the source code, but it's
useless. faint.
Thanks & best regards.

Robie
UTStarcom Inc. China
zhouw@utstar.com

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: An old friend: Relocation value does not fit in 24 bits
Date: Tue, 6 Aug 2002 12:10:21 +0200
From: "Niclas Nilsson" <niclas.p.nilsson@emw.ericsson.se>
Message-ID: <sgN39.89$cA3.2380@news.emw.ericsson.se>
References: <e163d281.0208060155.2d1c68f7@posting.google.com>

I had the exact same problem just a week ago.
Try to rebuild BOTH the kernel and the application with the -mlongcall flag,
not only the application.
I made the mistake only rebuilding the kernel. You have (probably) made the
mistake only recompiling the source code, try both!
/Nisse

Robie wrote in message ...
>Dear all,
>
>I encountered the question "Relocation value does not fit in 24 bits"
>some days ago. I'm using VxWorks 5.4 and Tornado 2.0. The system has
>64M RAM, use MPC8240 CPU. The compiler is gcc.
>I searched your posts about this question. It seems that if
>LOCAL_MEM_SIZE defined to 32M, the question will happen. In our
>system, LOCAL_MEM_SIZE is defined to 64M, and all work well before. I
>added about 10k lines of codes to our system recently, but the error
>occurs when I download the object file to target server.
>I tried to use -mlongcall option to compile the source code, but it's
>useless. faint.
>Thanks & best regards.
>
>Robie
>UTStarcom Inc. China
>zhouw@utstar.com

---------------------------

Newsgroups: comp.os.vxworks
Subject: TFTP
Date: Tue, 6 Aug 2002 18:26:32 +0800
From: "eric" <lihao@accesssolutions.com.tw>
Organization: DCI HiNet
Message-ID: <aio8im$ped@netnews.hinet.net>

Sir
  I am use vxworks 5.4 and Samsung 4510B demo board.  I am include tftp
client and tftp server in my project.  When I use win2000 tftp client to
upload file to tftp server it's will show : Error on server : Access
violation.  What process I must to do?  Create file system? or other work??
Please give me some advice!!! Thank you!!

Best Regards,

lihao

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Tue Aug  6 06:00:43 2002
From: Goldmann Andreas <andreas.goldmann@siemens.com>
Date: Tue Aug  6 06:00:45 PDT 2002
Subject: RE:  buffering in vxShell/PTY

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--------------InterScan_NT_MIME_Boundary
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C23D49.3BDD48E0"

------_=_NextPart_001_01C23D49.3BDD48E0
Content-Type: text/plain;
	charset="ISO-8859-1"

Hi Pete,
pty driver in VxWorks has a bug: the select code  for the  master device
isn't implemented correctly:

Pseudo TYs consist of master and slave devices:
			----------------
			|              |
			|     SLAVE    |
			----------------
			down |   A up
			     V   |  
			----------------
			|              |
			|    MASTER    |
			----------------

which are  interconnected to each other.
The communication from MASTER to SLAVE works fine (upstairs):
If data is written to the master, the slave can read it,
but the communication from SLAVE to MASTER doesn't work. 
That is, if data is written to the slave, the master device 
is not readable.

But You can try a walkaround for this problem: after the port on 
the slave device is opened,
some data has to be written to the master device ("\n" for example) 
After that all data are routed through the 
SLAVE device to the master correctly.

Kind regards and good luck, Andreas

------_=_NextPart_001_01C23D49.3BDD48E0
Content-Type: text/html;
	charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DISO-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.45">
<TITLE>RE:  buffering in vxShell/PTY</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi Pete,</FONT>
<BR><FONT SIZE=3D2>pty driver in VxWorks has a bug: the select =
code&nbsp; for the&nbsp; master device isn't implemented =
correctly:</FONT>
</P>

<P><FONT SIZE=3D2>Pseudo TYs consist of master and slave =
devices:</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>----------------</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp; |</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>|&nbsp;&nbsp;&nbsp;&nbsp; SLAVE&nbsp;&nbsp;&nbsp; |</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>----------------</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>down =
|&nbsp;&nbsp; A up</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp; V&nbsp;&nbsp; |&nbsp; </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>----------------</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp; |</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>|&nbsp;&nbsp;&nbsp; MASTER&nbsp;&nbsp;&nbsp; |</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>----------------</FONT>
</P>

<P><FONT SIZE=3D2>which are&nbsp; interconnected to each other.</FONT>
<BR><FONT SIZE=3D2>The communication from MASTER to SLAVE works fine =
(upstairs):</FONT>
<BR><FONT SIZE=3D2>If data is written to the master, the slave can read =
it,</FONT>
<BR><FONT SIZE=3D2>but the communication from SLAVE to MASTER doesn't =
work. </FONT>
<BR><FONT SIZE=3D2>That is, if data is written to the slave, the master =
device </FONT>
<BR><FONT SIZE=3D2>is not readable.</FONT>
</P>

<P><FONT SIZE=3D2>But You can try a walkaround for this problem: after =
the port on </FONT>
<BR><FONT SIZE=3D2>the slave device is opened,</FONT>
<BR><FONT SIZE=3D2>some data has to be written to the master device =
(&quot;\n&quot; for example) </FONT>
<BR><FONT SIZE=3D2>After that all data are routed through the </FONT>
<BR><FONT SIZE=3D2>SLAVE device to the master correctly.</FONT>
</P>

<P><FONT SIZE=3D2>Kind regards and good luck, Andreas</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C23D49.3BDD48E0--

--------------InterScan_NT_MIME_Boundary--

From vxwexplo-errs@csg.lbl.gov  Wed Aug  7 04:03:17 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Wed Aug  7 04:03:19 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Wed Aug  7 04:03:13 PDT 2002

        Subject: How to allocate the data in different cluster(END driver)
        Subject: Re: An old friend: Relocation value does not fit in 24 bits
        Subject: TFFS Problems! Help Me!
        Subject: Re: Help for dosFs 2.0
        Subject: Re: TFTP
        Subject: Re: about end of file indicator
        Subject: Re: about end of file indicator
        Subject: Re: WindView Problem
        Subject: FILESYSTEM: Loading a file is very slow using ftp
        Subject: Re: An old friend: Relocation value does not fit in 24 bits
        Subject: Re: An old friend: Relocation value does not fit in 24 bits
        Subject: Re: An old friend: Relocation value does not fit in 24 bits
        Subject: Re: Network stack
        Subject: "Relocation value does not fit in 24 bits"
        Subject: Re: TFTP
        Subject: Why can't I make .a files ,while my friend can make both .o and .a files with the same src code?
        Subject: About vxworks source code product--envoy!!!
        Subject: How get the length of the specified function from *.o file?
        Subject: Re: about end of file indicator
        Subject: application initialization in userAppInit() function
        Subject: some  questions about MPC860 BSP
        Subject: Re: Why can't I make .a files ,while my friend can make both .o and .a files with the same src code?
        Subject: Re: An old friend: Relocation value does not fit in 24 bits
        Subject: Attach system Error!
        Subject: Re: mbx860 BSP / 82558 driver problem
        Subject: What cause the system to reset (PPC VxWorks 2)?
        Subject: Continue from the same point after power fail (PPC VxWorks 2)?
        Subject: Re: How to reconfig SDRAM from 33MHz to 66MHz
        Subject: Re: some  questions about MPC860 BSP

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: How to allocate the data in different cluster(END driver)
Date: 6 Aug 2002 04:28:42 -0700
From: g_ch@21cn.com (GANGCHENG)
Organization: http://groups.google.com/
Message-ID: <ce273620.0208060328.2fb692e4@posting.google.com>

Dear all,
when i'm considering the design of my own END driver, I am wondering
how to allocate the data in the different cluster . I know the
function as follows:

netMblkToBufCopy( ) - copy data from an mBlk to a buffer

Although the data packet is maybe bigger than the size of cluster,
this function can directly copy the data from different cluster to one
buffer.Is it right ?

Now reversely I want to get the pointer of buffer in the form of
MBLK-CLBLK-CLUSTER. But the data size is bigger than the cluster size.
Is there a simple way or routine to directly copy the data to
different clusters? The return value is the M_BLK_ID.

TKS

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: An old friend: Relocation value does not fit in 24 bits
Date: Tue, 6 Aug 2002 13:57:23 +0200
From: "Rene Straub" <_remove_rene.straub@yetnet.ch>
Organization: Swisscom IP+ (post doesn't reflect views of Swisscom)
Message-ID: <aiodip$mh0$1@rex.ip-plus.net>
References: <e163d281.0208060155.2d1c68f7@posting.google.com>

"Robie" <zhouw@utstar.com> wrote in message
news:e163d281.0208060155.2d1c68f7@posting.google.com...
> Dear all,
>
> I encountered the question "Relocation value does not fit in 24 bits"
> some days ago. I'm using VxWorks 5.4 and Tornado 2.0. The system has
> 64M RAM, use MPC8240 CPU. The compiler is gcc.
> I searched your posts about this question. It seems that if
> LOCAL_MEM_SIZE defined to 32M, the question will happen. In our
> system, LOCAL_MEM_SIZE is defined to 64M, and all work well before. I
> added about 10k lines of codes to our system recently, but the error
> occurs when I download the object file to target server.
> I tried to use -mlongcall option to compile the source code, but it's
> useless. faint.
> Thanks & best regards.
>
> Robie
> UTStarcom Inc. China
> zhouw@utstar.com

One week ago --> Same problem.
Solution: Increase target server cache memory to 50 MB.
This allows me to download a 10 MB outfile to a PPC target
with 64 MB RAM.

- - Rene

---------------------------

Newsgroups: comp.os.vxworks
Subject: TFFS Problems! Help Me!
Date: 6 Aug 2002 05:15:37 -0700
From: xiaohua.zhang@163.com (xiaohua)
Organization: http://groups.google.com/
Message-ID: <dc50cd74.0208060415.71d8ba6f@posting.google.com>

CPU: S3C4510B(ARM7TDMI)
OS:Tornado2.1.1/VxWorks5.4
Flash:AM29F040B

Problems:
1.Must I build a bootrom with the TFFS? Could I add this component in
the bootaable project and download it to the target board?
2.When I enter the Shell interface I type the command about tffs,they
are not return the correct result.

At last, could you give advices about how  can I use TFFS step by
step?

Thanks a lot

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Help for dosFs 2.0
Date: Tue, 6 Aug 2002 14:37:25 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1028641046.636819@azores.network-i.net>
References: <4c2e8c4.0208051838.26fbdaad@posting.google.com>

When you call dosFsDevCreate it does not really access the disk at all. All
it does is to allocate a software structure to describe the file system.
dosFsonly really "connects" to the file system on disk on the first file
access. This explains the delay.

By default, dosfs also runs chkdsk() on the disk and this wthy it takes 30
secs for your first access. You can disable the chkdsk operation by passing
NONE to dosFsDevCreate.

You can force the file system to be mounted at any time you wish, by just
doing a dummy file access at a time that suits you.

Dimitris

"Robert Fan" <robert_fan@citiz.net> wrote in message
news:4c2e8c4.0208051838.26fbdaad@posting.google.com...
> Hi all ,
>    I have mounted a hard disk (40GB) with dosFS 2.0 ,
> all went well at first time . I can see the mounted device
> "/ata0" in the list . But when I first access the the
> filesystem , whatever you use , open , ll , or ls etc ,
> the command is not responsed until 30 seconds later . During
> this period , the system become very "slow" , I can do
> nothing but wait . After that , all is ok , access the
> filesystem become fast .
>    Can anyone tell me what happed when first access the
> disk ? For our application , I cant let the system goes
> into such a state with no response for so long time . How
> can I reduce the first access time ?
>    Thanks a lot
>
> Robert

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: TFTP
Date: 6 Aug 2002 07:23:25 -0700
From: hanochm@scopus.net (Hanoch Magal)
Organization: http://groups.google.com/
Message-ID: <1d245b50.0208060623.6528e13b@posting.google.com>
References: <aio8im$ped@netnews.hinet.net>

"eric" <lihao@accesssolutions.com.tw> wrote in message news:<aio8im$ped@netnews.hinet.net>...
> Sir
>   I am use vxworks 5.4 and Samsung 4510B demo board.  I am include tftp
> client and tftp server in my project.  When I use win2000 tftp client to
> upload file to tftp server it's will show : Error on server : Access
> violation.  What process I must to do?  Create file system? or other work??
> Please give me some advice!!! Thank you!!
> 
> Best Regards,
> 
> lihao

You probably have to add the call : tftpdDirectoryAdd ("dir"), to
allow the tftp server read/write in the destination folder.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: about end of file indicator
Date: 6 Aug 2002 08:48:56 -0700
From: tyee@nortelnetworks.com (Tom Yee)
Organization: http://groups.google.com/
Message-ID: <4fc8fafd.0208060748.4d432bb9@posting.google.com>
References: <f14c07cb.0208032248.1d5b1dc9@posting.google.com> <488e459a.0208041408.2cd72097@posting.google.com> <f14c07cb.0208052125.21435e2@posting.google.com>

forvxworks@rediffmail.com (Anand) wrote in message news:<f14c07cb.0208052125.21435e2@posting.google.com>...

> yes i am using fseek to skip some characters. 

Sounds like a coding error. We really need to see what your code looks like.

- -Tom

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: about end of file indicator
Date: 6 Aug 2002 09:12:45 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208060812.7a70ea8b@posting.google.com>
References: <f14c07cb.0208032248.1d5b1dc9@posting.google.com> <488e459a.0208041408.2cd72097@posting.google.com> <f14c07cb.0208052125.21435e2@posting.google.com>

Hello,

forvxworks@rediffmail.com (Anand) wrote in message news:<f14c07cb.0208052125.21435e2@posting.google.com>...
> HI John,
>       i am using the DOS filesystem. 
> 	The Target Server File System in the target server properties is
> enabled , i hope that does not make any difference.
>     the size of the file to be read is 3.74Mb & is on the host system.
> yes i am using fseek to skip some characters. also , the execution of
> the function in which all the reading of the file is done is
> controlled by a timer (having a timeout and reload value of 20ms)

What kind of timer? I hope not a watchdog one as the watchdog routines
run at interrupt level... I hope you meant a POSIX timer.

> and
> i want to cancel the timer when the end of file is reached. maybe as
> the function is attached to a timer , the loopback to the start of the
> file occurs.
>     also, please confirm , when the end-of-file indicator if set ,
> does it stay set thereafter or does it get reset after the start of
> the file is again read (whatever may be the reason).

If something causes the file pointer to move back from the end of the
file (an fseek() call for example), then feof() will not indicate that
the end has been reached. It is an instantaneous thing (i.e. it
returns the status of the file pointer at the instant it is called).
 
> please enlighten me on what may be the problem,

I would suggest a little piece of test code that just reads the file
at task level (i.e. no timers) and checks for the end of file. If that
works, then you know that the cause is not the file system or the
feof() function.

Also, if you have two threads of execution sharing a 'FILE *' think
very carefully about how that will work. I would recommend not sharing
them, even between a task and a POSIX timer routine. The POSIX timer
routine is running as a signal handler, so you need to be very careful
about the state of the thread that it interrupted. If both are working
on the file, it is unlikely to work all the time. Try to imagine that
the signal handler is a kind of ISR: it is best to do as little as
possible in it, especially things that could interfere with the main
thread's data or resources.

HTH,

John...

> Regards,
> Anand.
> 
> 
> 
> 
> john_94501@yahoo.com (John) wrote in message news:<488e459a.0208041408.2cd72097@posting.google.com>...
> > Hello,
> > 
> > I know of no file system that will automatically loop back to the
> > start of the file. Which file system are you using, or is it a device
> > that you are reading from?
> > 
> > AFAIK, feof() should work on any real file system; with devices it is
> > a little more uncertain as it depends on (a) whether end of file makes
> > sense, and (b) whether the driver writer supports the concept.
> > 
> > The only other thing that comes to mind as a potential cause is the
> > size of the file... are you working with very large (>=4GB) files?
> > Also, are you playing with the position using fseek(), or a similar
> > routine?
> > 
> > Sorry nothing much to go on, perhaps you could provide us more
> > information...
> > 
> > John...
> > 
> > 
> > forvxworks@rediffmail.com (Anand) wrote in message news:<f14c07cb.0208032248.1d5b1dc9@posting.google.com>...
> > > Hi All,
> > >     i have written the following code to loop until not end of file...
> > > 
> > >    while ( !feof(file-pointer))
> > >    { 
> > >    /* do some file reading */
> > > 
> > >    }
> > > 
> > >     but this does not exit when the end of file is reached. infact ,
> > > it starts again from the start of the file.
> > >     is there any problem with feof() function or is there any problem
> > > with the condition. also, i tried printing feof(file-pointer) in cout
> > > , but this always gives 0 (zero), even after end of file.
> > >     is there a better alternative to feof() ??
> > >     Thanks in advance.
> > > Regards.
> > > Anand.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: WindView Problem
Date: 6 Aug 2002 09:56:04 -0700
From: pegasusian@yahoo.com (=?ISO-8859-1?Q?fatih_=F6zcan?=)
Organization: http://groups.google.com/
Message-ID: <7b02be47.0208060856.1e7c22b6@posting.google.com>
References: <d44a5e29.0208050546.73c7c877@posting.google.com>

If you just serach the newsgroup with windview.win32.tcl you will get the answer:))
But AFAIK if you have windows 2000 you should apply patch of tornado
or you should set the registration not local but remote but with your ip address.

Hope it helps,

Gary@octec.co.uk (Gary Coutts) wrote in message news:<d44a5e29.0208050546.73c7c877@posting.google.com>...
> Hi,
> 
> I have just moved over from Tornado 1.0.1 to Tornado 2 and I am getting the 
> following message on boot-up;
> 
> couldn't read file "TRY=localhost\host\resource\tcl\WindView.win32.tcl":
> no such file or directory
> 
> Has anybody else come across this and is there a fix.
> 
> 
> Cheers 
> 
> Gary

---------------------------

Newsgroups: comp.os.vxworks
Subject: FILESYSTEM: Loading a file is very slow using ftp
Date: Tue, 06 Aug 2002 13:24:53 -0500
From: Lucas <lamonthe@hotmail.com>
Organization: Bell Sympatico
Message-ID: <fj40lus1pj795h38c4gnh78n5gat1srigj@4ax.com>

Hi all,

The problem I got is as follow:
I download many files to
come over the capacity of the Flash memory. After then
I delete some files. A this step if I download  any file
the tranfer is very very slow.

Any help will be considered

Thank's
 

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: An old friend: Relocation value does not fit in 24 bits
Date: 6 Aug 2002 15:23:30 -0400
From: vanbaren@falcon.si.com (vanbaren_gerald)
Organization: Smiths Industries
Message-ID: <3d502232$1@news.si.com>
References:  <e163d281.0208060155.2d1c68f7@posting.google.com>

zhouw@utstar.com (Robie) writes:

>Dear all,

>I encountered the question "Relocation value does not fit in 24 bits"
>some days ago. I'm using VxWorks 5.4 and Tornado 2.0. The system has
>64M RAM, use MPC8240 CPU. The compiler is gcc.
>I searched your posts about this question. It seems that if
>LOCAL_MEM_SIZE defined to 32M, the question will happen. In our
>system, LOCAL_MEM_SIZE is defined to 64M, and all work well before. I
>added about 10k lines of codes to our system recently, but the error
>occurs when I download the object file to target server.
>I tried to use -mlongcall option to compile the source code, but it's
>useless. faint.
>Thanks & best regards.

>Robie
>UTStarcom Inc. China
>zhouw@utstar.com

If it isn't a real addressing problem, it probably is an undefined symbol.

gvb

- --
+-----------------------------------------------------------------------+
|      Jerry Van Baren / vanbaren_gerald@si.com / Grand Rapids, MI      |
| My employer is a company.  Companies are artifacts of a legal system. |
|_____________Artifacts are incapable of having opinions._______________|

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: An old friend: Relocation value does not fit in 24 bits
Date: Tue, 06 Aug 2002 19:32:59 GMT
From: Ricky West <rwwest@nc.rr.com>
Organization: Road Runner - NC
Message-ID: <3D5022BC.4010001@nc.rr.com>
References: <e163d281.0208060155.2d1c68f7@posting.google.com> <aiodip$mh0$1@rex.ip-plus.net>

We saw this problem only with the target loader.  If the physical memory 
on the target is greater than 32 MB, this error will be generated for 
each function in the loadable application that is of REL24 type.  This 
can be seen using objdumpppc.  The -mlongcall generates code that uses 
REL32 for all function calls in the module.

Therefore, all loadable components (e.g. project .out's) would need to 
be compiled with this option.  If libraries are being linked into the 
loadable, they would also need to be built with the -mlongcall.

I don't believe the kernel needs this option since it is usually 
absolutely linked, i.e. all addresses are absolute rather than relocatable.

This at least has been my experience with large memory vxWorks applications.

Ricky W. West

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: An old friend: Relocation value does not fit in 24 bits
Date: Tue, 6 Aug 2002 21:39:14 +0000 (UTC)
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns9262F01B6E5ECborkhuisagerecom@192.19.193.66>
References: <e163d281.0208060155.2d1c68f7@posting.google.com> <sgN39.89$cA3.2380@news.emw.ericsson.se>

"Niclas Nilsson" <niclas.p.nilsson@emw.ericsson.se> wrote:

> I had the exact same problem just a week ago.
> Try to rebuild BOTH the kernel and the application with the -mlongcall
> flag, not only the application.
> I made the mistake only rebuilding the kernel. You have (probably)
> made the mistake only recompiling the source code, try both!

The reason for this is that the memory area that is used by the target 
server is located in the highest memory locations. The standard PPC calls 
only allow 24 bits = 32 MByte of jumps, so if you have 64 MByte the 
loaded code will be out of reach for the kernel if this area is less than 
the 32 MByte.
The suggestion of increasing the target server memory size to more than 
(32+image size) MByte also works, as the image is probably loaded in the 
lowest part of the target server memory area. But this will elimiate the 
increase you had in memory.
Another solution is to use the target shell to load the object files 
instead of the host tools. This will allow the code to be loaded in the 
lower part of the memory.

The solution that was suggested in previous threads was to tell VxWorks 
that there is only 32 MByte. The target server memory area will be 
located in this area. After the system has started up you can add the 
extra memory to the memory pool and it can be used by malloc. But you 
could also use some kind of static memory scheme.

Groeten,
        Johan

- -- 
        o o o o o o o . . .   _____________________________
       o      _____           ||    Johan Borkhuis        |
     .][__n_n_|DD[  ====_____  |    borkhuis@agere.com    |
    >(________|__|_[_________]_|__________________________|
    _/oo OOOOO oo`  ooo   ooo  'o!o!o                o!o!o`
=== VxWorks FAQ: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html ===

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Network stack
Date: 6 Aug 2002 16:22:26 -0700
From: byxiao@public.cz.js.cn (Sheo Boyu)
Organization: http://groups.google.com/
Message-ID: <37ed9c54.0208061522.c73f922@posting.google.com>
References: <7d37276da8267eb350c5835b1a44c377.38592@mygate.mailgate.org> <MPG.17b445369e573f7298969a@news1.news.adelphia.net> <e229ec7e.0208051600.26d13ae9@posting.google.com>

vxWorks feature a 6k or so microkernel,which theoretically has a poorer
network performance than those macrokernel OS,such as Unix or Linux.
This is due to the traditional network stack implimentation is based on 
macrokernel,not microkernel,WRS just port the BSD network stack to 
vxworks,not rewritten them as required for better performance on microkernel.
You can find some document on this issue from CMU following this link:
http://www-2.cs.cmu.edu/afs/cs/project/mach/public/www/doc/publications.html
The article is Networking Performances for Microkernels.
May this help!

chrismooremobile@yahoo.com (Chris Moore) wrote in message news:<e229ec7e.0208051600.26d13ae9@posting.google.com>...
> Yeah, well my advice would be to swap to a different RTOS.
> 
> We use VxWorks and its routing performance is pretty poor. There are a
> few ways to improve things, you can write a mini routing layer, you
> can use polled ethernet drivers rather than task switched into the
> tNetTask stuff, or swap to another RTOS, or get an offloaded stack
> processor.
> 
> The embedded linux (ucLinux) has better performance, you get access to
> all code etc etc and royalty free (from mem?)
> 
> Gd Luck,
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: "Relocation value does not fit in 24 bits"
Date: 6 Aug 2002 17:03:55 -0700
From: b.beauchaine@attbi.com (Bob Beauchaine)
Organization: http://groups.google.com/
Message-ID: <15647182.0208061603.230fa89e@posting.google.com>

Got the problem too.  

1.  Target is Power PC under Tornado 2.0.2
2.  Both the kernel and the application have been compiled with
- -mlongcall.
3.  Cumulative patch 3 and patch 73419 have been applied.
4.  I have to load from the target shell.  Tornado is not an option,
but it doesn't seem to have these problems.

I've got about a dozen symbols showing the error.  Right now, I would
be happy just to be able to identify which symbols are at fault. 
Since I have a third party library with no source code, I suspect my
problem lies here.  Is there any way to coax more information out of
the loader on what symbols can't be relocated?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: TFTP
Date: Wed, 7 Aug 2002 09:34:58 +0800
From: "eric" <lihao@accesssolutions.com.tw>
Organization: DCI HiNet
Message-ID: <aiptnr$57k@netnews.hinet.net>
References: <aio8im$ped@netnews.hinet.net> <1d245b50.0208060623.6528e13b@posting.google.com>

Sir,
   I am add  tftpdDirectoryAdd ("/tftproot") or  tftpdDirectoryAdd
("tftproot") in my program.  But it's still don't work.  May I add other
code or server?  Thank you give me advice again!!

Best Regards,

lihao
2002.08.07

"Hanoch Magal" <hanochm@scopus.net>
???????:1d245b50.0208060623.6528e13b@posting.google.com...
> "eric" <lihao@accesssolutions.com.tw> wrote in message
news:<aio8im$ped@netnews.hinet.net>...
> > Sir
> >   I am use vxworks 5.4 and Samsung 4510B demo board.  I am include tftp
> > client and tftp server in my project.  When I use win2000 tftp client to
> > upload file to tftp server it's will show : Error on server : Access
> > violation.  What process I must to do?  Create file system? or other
work??
> > Please give me some advice!!! Thank you!!
> >
> > Best Regards,
> >
> > lihao
>
> You probably have to add the call : tftpdDirectoryAdd ("dir"), to
> allow the tftp server read/write in the destination folder.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Why can't I make .a files ,while my friend can make both .o and .a files with the same src code?
Date: 6 Aug 2002 18:50:55 -0700
From: xiangxinyan@yahoo.com.cn (Alice)
Organization: http://groups.google.com/
Message-ID: <fcc9f2b4.0208061750.40b99461@posting.google.com>

I tried to make a directory,but only get .o files.
my makefile and src code and maybe all other setups are the same 
with another person,he can make out .a successfully,but I cannot,
WHY?

Is there anything that will make any difference?such as virus? 

Thank you for reading and giving a reply.

alice

---------------------------

Newsgroups: comp.os.vxworks
Subject: About vxworks source code product--envoy!!!
Date: 6 Aug 2002 20:02:41 -0700
From: mingli@mail.daxian.net (Micah Lee)
Organization: http://groups.google.com/
Message-ID: <75f50af3.0208061902.15e21f14@posting.google.com>

The envoy is snmp source code product,My doc tell it can be ported to
PPC and Pentium platforms,but i work on MIPS R4000,please telnet me
how to do!
Thanks!

---------------------------

Newsgroups: comp.os.vxworks
Subject: How get the length of the specified function from *.o file?
Date: 6 Aug 2002 22:27:15 -0700
From: hotJacky@163.net (Bryan)
Organization: http://groups.google.com/
Message-ID: <8f77d4a.0208062127.277e538b@posting.google.com>

HI:
If syslib.c includes a function named strong().When  syslib.c is
compiled by gcc and produce corresponding syslib.o.How can I get the
fact size of the strong() in text section?Can nm ?

sincerely
Bryan

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: about end of file indicator
Date: 6 Aug 2002 22:57:04 -0700
From: forvxworks@rediffmail.com (Anand)
Organization: http://groups.google.com/
Message-ID: <f14c07cb.0208062157.3f5f4eb3@posting.google.com>
References: <f14c07cb.0208032248.1d5b1dc9@posting.google.com> <488e459a.0208041408.2cd72097@posting.google.com> <f14c07cb.0208052125.21435e2@posting.google.com> <488e459a.0208060812.7a70ea8b@posting.google.com>

Hi,
   i will try some piece of test code with the same filesystem and
file without timer and fseek and see whether it works. going by your
reply , i beleive it should work. will get back to you as soon as
possible.
Regards.
Anand.

john_94501@yahoo.com (John) wrote in message news:<488e459a.0208060812.7a70ea8b@posting.google.com>...
> Hello,
> 
> forvxworks@rediffmail.com (Anand) wrote in message news:<f14c07cb.0208052125.21435e2@posting.google.com>...
> > HI John,
> >       i am using the DOS filesystem. 
> > 	The Target Server File System in the target server properties is
> > enabled , i hope that does not make any difference.
> >     the size of the file to be read is 3.74Mb & is on the host system.
> > yes i am using fseek to skip some characters. also , the execution of
> > the function in which all the reading of the file is done is
> > controlled by a timer (having a timeout and reload value of 20ms)
> 
> What kind of timer? I hope not a watchdog one as the watchdog routines
> run at interrupt level... I hope you meant a POSIX timer.
> 
> > and
> > i want to cancel the timer when the end of file is reached. maybe as
> > the function is attached to a timer , the loopback to the start of the
> > file occurs.
> >     also, please confirm , when the end-of-file indicator if set ,
> > does it stay set thereafter or does it get reset after the start of
> > the file is again read (whatever may be the reason).
> 
> If something causes the file pointer to move back from the end of the
> file (an fseek() call for example), then feof() will not indicate that
> the end has been reached. It is an instantaneous thing (i.e. it
> returns the status of the file pointer at the instant it is called).
>  
> > please enlighten me on what may be the problem,
> 
> I would suggest a little piece of test code that just reads the file
> at task level (i.e. no timers) and checks for the end of file. If that
> works, then you know that the cause is not the file system or the
> feof() function.
> 
> Also, if you have two threads of execution sharing a 'FILE *' think
> very carefully about how that will work. I would recommend not sharing
> them, even between a task and a POSIX timer routine. The POSIX timer
> routine is running as a signal handler, so you need to be very careful
> about the state of the thread that it interrupted. If both are working
> on the file, it is unlikely to work all the time. Try to imagine that
> the signal handler is a kind of ISR: it is best to do as little as
> possible in it, especially things that could interfere with the main
> thread's data or resources.
> 
> HTH,
> 
> John...
> 
> > Regards,
> > Anand.
> > 
> > 
> > 
> > 
> > john_94501@yahoo.com (John) wrote in message news:<488e459a.0208041408.2cd72097@posting.google.com>...
> > > Hello,
> > > 
> > > I know of no file system that will automatically loop back to the
> > > start of the file. Which file system are you using, or is it a device
> > > that you are reading from?
> > > 
> > > AFAIK, feof() should work on any real file system; with devices it is
> > > a little more uncertain as it depends on (a) whether end of file makes
> > > sense, and (b) whether the driver writer supports the concept.
> > > 
> > > The only other thing that comes to mind as a potential cause is the
> > > size of the file... are you working with very large (>=4GB) files?
> > > Also, are you playing with the position using fseek(), or a similar
> > > routine?
> > > 
> > > Sorry nothing much to go on, perhaps you could provide us more
> > > information...
> > > 
> > > John...
> > > 
> > > 
> > > forvxworks@rediffmail.com (Anand) wrote in message news:<f14c07cb.0208032248.1d5b1dc9@posting.google.com>...
> > > > Hi All,
> > > >     i have written the following code to loop until not end of file...
> > > > 
> > > >    while ( !feof(file-pointer))
> > > >    { 
> > > >    /* do some file reading */
> > > > 
> > > >    }
> > > > 
> > > >     but this does not exit when the end of file is reached. infact ,
> > > > it starts again from the start of the file.
> > > >     is there any problem with feof() function or is there any problem
> > > > with the condition. also, i tried printing feof(file-pointer) in cout
> > > > , but this always gives 0 (zero), even after end of file.
> > > >     is there a better alternative to feof() ??
> > > >     Thanks in advance.
> > > > Regards.
> > > > Anand.

---------------------------

Newsgroups: comp.os.vxworks
Subject: application initialization in userAppInit() function
Date: 6 Aug 2002 23:04:22 -0700
From: forvxworks@rediffmail.com (Anand)
Organization: http://groups.google.com/
Message-ID: <f14c07cb.0208062204.4677f6b0@posting.google.com>

Hi All ,
    i want to call the project main function in userAppInit() function
so that my project gets spawned as soon as the target boots in Vxworks
and there would be no need to spawn it from the host shell. but when i
include the function call in userAppInit() , it gives an "undefined
reference" error.
    i have delcared the funtion prototype in userAppInit() and also
declared  the main function as extern in the main cpp file. but that
does not help. what other things are to be added for the project to be
spawned for userAppInit() function??

Regards.
Anand.

---------------------------

Newsgroups: comp.os.vxworks
Subject: some  questions about MPC860 BSP
Date: Wed, 7 Aug 2002 15:42:44 +0800
From: "minskey73" <minskey73@yahoo.com.cn>
Organization: Bentium Ltd. (CN99)
Message-ID: <aiqj1v$coa$1@debian.bentium.com>

Hi, all,

    I'm a newer to BSP and MPC assemble language. When I read the file
romInit.s included in MPC860 BSP, I encounter more and more diffcult.

      Could somebody answer my questions:

    1. When load the address to GPR ,Why split this to two step. If the
operand of
       the instruction "load"  is an immediate , does it mean the immediate
must be
       16 bit  and can't not be a 32-bit data?

    2. Why define the macro HIADJ(defined in /target/h/arch/ppc/toolPpc.h)

    3. After loading link register with the address of "start" , Why use the
       instruction "blr" to jump to the next labelled "start". It means the
code
       between "cold" and "start" is not execute in the flash/rom , is it?
but
       where ?

       thank you anyway.

                                                                 looser
                                                               Aug 7 , 2002

The following is a piece of code  of romInit.s.
/****************romInit.s**************************************************
***/
cold:
 li r3, BOOT_COLD /* set cold boot as start type */

 /*
  * When the PowerPC 860 is powered on, the processor fetch the
  * instructions located at the address 0x100. We need to jump
  * from the address 0x100 to the Flash space.
  */

 lis r4, HIADJ(start)  /* load r4 with the address */
 addi r4, r4, LO(start)  /* of start */

 lis r5, HIADJ(romInit)  /* load r5 with the address */
 addi r5, r5, LO(romInit)  /* of romInit() */

 lis r6, HIADJ(ROM_TEXT_ADRS) /* load r6 with the address */
 addi r6, r6, LO(ROM_TEXT_ADRS) /* of ROM_TEXT_ADRS */

 sub r4, r4, r5
 add r4, r4, r6

 mtspr LR, r4    /* save destination address into LR register*/
 blr      /* jump to flash mem address */

start:

 /* clear out r0 */
 xor r0, r0, r0
/***************************************************************************
/

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why can't I make .a files ,while my friend can make both .o and .a files with the same src code?
Date: 7 Aug 2002 01:25:19 -0700
From: sunil@dharwad.com (Sunil K)
Organization: http://groups.google.com/
Message-ID: <396b9cc7.0208070025.5d4b33e@posting.google.com>
References: <fcc9f2b4.0208061750.40b99461@posting.google.com>

xiangxinyan@yahoo.com.cn (Alice) wrote in message news:<fcc9f2b4.0208061750.40b99461@posting.google.com>...
> I tried to make a directory,but only get .o files.
> my makefile and src code and maybe all other setups are the same 
> with another person,he can make out .a successfully,but I cannot,
> WHY?
> 
> Is there anything that will make any difference?such as virus? 
> 
> Thank you for reading and giving a reply.
> 
> alice

 - What is your host OS ? 
 - What is the target ?
 - What are the compile errors that you are getting ?

 It is really vague when you say you cannot compile but
 your friend can. What can one make out with such information :-( 

 Consider posting your Makefile and the compile logs.

Good Luck,
Sunil

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: An old friend: Relocation value does not fit in 24 bits
Date: 7 Aug 2002 01:37:22 -0700
From: zhouw@utstar.com (Robie)
Organization: http://groups.google.com/
Message-ID: <e163d281.0208070037.6a68e73f@posting.google.com>
References: <e163d281.0208060155.2d1c68f7@posting.google.com> <aiodip$mh0$1@rex.ip-plus.net>

Resolved it yesterday night.
I compiled all application files with the option "-mlongcall", then
download it to the target server, the question disappeared!
The size of our object file is about 51M, and target server cache is
10M.
I tried to increase the target server cache to 80M before, but it's
useless.
Anyway, thank you all very much.

Robie
UTStarcom Inc. China

"Rene Straub" <_remove_rene.straub@yetnet.ch> wrote in message news:<aiodip$mh0$1@rex.ip-plus.net>...
> "Robie" <zhouw@utstar.com> wrote in message
> news:e163d281.0208060155.2d1c68f7@posting.google.com...
> > Dear all,
> >
> > I encountered the question "Relocation value does not fit in 24 bits"
> > some days ago. I'm using VxWorks 5.4 and Tornado 2.0. The system has
> > 64M RAM, use MPC8240 CPU. The compiler is gcc.
> > I searched your posts about this question. It seems that if
> > LOCAL_MEM_SIZE defined to 32M, the question will happen. In our
> > system, LOCAL_MEM_SIZE is defined to 64M, and all work well before. I
> > added about 10k lines of codes to our system recently, but the error
> > occurs when I download the object file to target server.
> > I tried to use -mlongcall option to compile the source code, but it's
> > useless. faint.
> > Thanks & best regards.
> >
> > Robie
> > UTStarcom Inc. China
> > zhouw@utstar.com
> 
> One week ago --> Same problem.
> Solution: Increase target server cache memory to 50 MB.
> This allows me to download a 10 MB outfile to a PPC target
> with 64 MB RAM.
> 
> - Rene

---------------------------

Newsgroups: comp.os.vxworks
Subject: Attach system Error!
Date: 7 Aug 2002 01:41:36 -0700
From: seasoblue2000@yahoo.com.cn (seasoblue)
Organization: http://groups.google.com/
Message-ID: <e82d8e83.0208070041.4ee2aa37@posting.google.com>

Hi,All
   I use Tornado 2.0 IDE for Samsung's MCU -- S3C4510B which includes
ARM7TDMI kernel inside,and UART0 to display debug information,
ethernet for data send and receive.
   After dowload .out file and start debugger, I select "attach
system" ,but something is wrong. Tornado IDE displays a message :
    "Target connection has been lost!
        Stopping the debugger now!".

   then connection lost, and Target Server log console displays such
message:
   "TGTSVR (arm@hugh): Wed Aug 07 15:59:17 2002
    Error: rpccore backend client Server can't decode arguments!"

  In config.h file, I configed like this:

   #define INCLUDE_END
   #undef  END_OVERRIDE	/* define if you are using old boot ROMs. */

   #ifdef  INCLUDE_END
   #define INCLUDE_SNDS_END		 /* Include Ethernet driver */
   #define INCLUDE_SNDS_HDLC_END	 /* Include HDLC END driver */
   #define INCLUDE_OLI_END /* Olicom PCMCIA Ethernet card END driver
*/
   #undef  WDB_COMM_TYPE   /* WDB agent communication path is END */ 
   #define WDB_COMM_TYPE   WDB_COMM_END
   #define INCLUDE_WDB_SYS       /*add by seasoblue for system debug*/
   #endif  /* INCLUDE_END */

and I have configed Target Server like this:
    "Tools" -> "Target server" -> "configure"->
       "Target Server Properties"->"Back End"->"wdbrpc"

But now, I can not attach system and also can not start mutiTask
debugging. It's so sad!  anyone can help me ?

    Best Regards,

   seasoblue

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: mbx860 BSP / 82558 driver problem
Date: 7 Aug 2002 01:50:58 -0700
From: david.meadows@roke.co.uk (David Meadows)
Organization: http://groups.google.com/
Message-ID: <6d3e990b.0208070050.730c9f29@posting.google.com>
References: <6d3e990b.0207220735.31de5ea0@posting.google.com> <0ts%8.111538$Wt3.98785@rwcrnsc53> <6d3e990b.0207250143.6addd1f@posting.google.com> <RpV09.149280$_51.97129@rwcrnsc52.ops.asp.att.net> <6d3e990b.0207310737.d3db9e9@posting.google.com> <rE429.16528$Ru5.8073@rwcrnsc52.ops.asp.att.net>

> Or, you aren't doing any PCI configuration cycles. You would be using the
> CON_ADD and CON_DATA registers if you were.

After configuration I use the config addr and data reg (offset 0x500
and 0x504)
to examine the Ethernet card config space. 
I see the following:

(0x00) 12298086 // Matches the EtherExpress Pro-100 compliant card I
have
(0x04) 02900007 // Card has not target or master aborted and is set as
a bus agent.
(0x10) c1000008 // Memory space base address
(0x14) 81020001 // IO space base address
(0x18) c1100000 // Flash memory space base address

> This indicates the QSpan issued a master abort, typical if you attempted to
> access a non-existent PCI device.

Looks to me that the Ethernet card is detected okay during
sysHwInit().
Seems funny that the Ethernet card is okay yet the QSpan sees a Master
Abort.
There are no other cards (yet) in the system.

> This creates a 2GB address range for PCI target image 0. Not really a issue
> if you don't have and mastering PCI devices, but did you really intend to do
> that?

As far as I understand the Ethernet card needs access to PowerPC SDRAM
which is located at 0x8??????? in the 557 memory map. This is
translated to 0x0??????? by the QSpan. Only PCI Memory space access to
SDRAM is supported therefore is there any reason not to map the whole
space? It is intended to use DMA to SDRAM when I get the basic
function working.

> This maps a linear 64MB address space onto the PCI bus. Are your PCI devices
> configured to respond? This area also overlaps your PowerPC RAM, no?

As far as I understand the PCI_MSTR_IO_SIZE and PCI_MSTR_MEM_SIZE
definitions are the same. The only consideration is to ensure that
their contents do not exceed this size.
I set both to be 64MB which gives me 32MB PCI Mem space and 1MB PCI
ISA Mem space along with 32MB PCI IO space and 64KB PCI ISA IO space.
These regions are mapped in CPU space to 0x80000000+ and 0xC0000000+.
The QSpan should map these regions to the same PCI region 0x00000000+.
Therefore in the PCI domain there are two regions:
0x00000000+ //own 557 memory region
0x80000000+ //CPU SDRAM region

And the CPU domain has a number of regions but the important ones
being:
0x00000000+ //own SDRAM
0x80000000+ //PCI IO space (ISA and PCI)
0xC0000000+ //PCI Mem space (ISA and PCI)
0xFA210000+ //QSpan mapped register space

I'm not quite sure what you mean by there is an overlap with the
PowerPC RAM?

Cheers,

David

---------------------------

Newsgroups: comp.os.vxworks
Subject: What cause the system to reset (PPC VxWorks 2)?
Date: Wed, 7 Aug 2002 11:56:29 +0300
From: "Haim Hillel" <Haim.Hillel@Motorola.com>
Organization: Motorola
Message-ID: <aiqne2$b7t$1@newshost.mot.com>

For environment of PPC 855/860/8260 & VxWorks 2: a running system was reset
(because of machine check interrupt, or Watch Dog, etc.).
When the system restarts I whish to recognize as much as possible the reason
and point of
the reset such as CPU Reg., OS contexts Task / ISR etc.
Is someone having code, examples or algorithm?

Best Regards
 Haim Hillel

---------------------------

Newsgroups: comp.os.vxworks
Subject: Continue from the same point after power fail (PPC VxWorks 2)?
Date: Wed, 7 Aug 2002 12:01:55 +0300
From: "Haim Hillel" <Haim.Hillel@Motorola.com>
Organization: Motorola
Message-ID: <aiqno7$bei$1@newshost.mot.com>

For environment of PPC 855/860/8260 & VxWorks 2.
I think to put the image (VxWorks app. And Data) lay compressed in flash, at
startup the code will decompress into SDRAM (cheap memory) and the data will
direct to SRAM which backup by battery, when the power fail to keep also the
Cpu reg.
For recover after power fail restore the code from the flash (with out
reinitialize the data) and load the Cpu reg. from the SRAM, then continue to
run.

Is someone having another idea? Is someone having any code, examples or
algorithm?
or even idea how to build and put into vxWorks_romCompress a split sections
for Code and Data?

Best Regards
 Haim Hillel

---------------------------

Newsgroups: comp.os.vxworks,comp.sys.powerpc.tech,comp.sys.powerpc.misc
Subject: Re: How to reconfig SDRAM from 33MHz to 66MHz
Date: Wed, 7 Aug 2002 13:44:47 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <aiqtlc$6uh$1@news.inter.net.il>
References: <d83bb8e3.0208051940.129a2325@posting.google.com>

on
http://e-www.motorola.com/webapp/sps/site/prod_summary.jsp?code=MPC8260&node
Id=03M943030450467M98657

see:
      AN2165/D MPC8260 SDRAM Support

      AN2178/D MPC8260 SDRAM Timing Diagram

      AN2179/D MPC8260 UPM Timing Diagram

"Raymond Yeung" <ryeung@earthlink.net> wrote in message
news:d83bb8e3.0208051940.129a2325@posting.google.com...
> I've an 8260 based board.  The design works with 33MHz bus speed.
> Now, when we increase the bus speed to 66MHz, the SDRAM DIMM module
> starts to experience diagnostic failure (with visionPROBE diag.) or
> buffer fill failure (i.e. certain locations won't register what I
> write to it).
>
> I'm exploring the possibility that I may need to change the programming
> of SDRAM machine.  Can anyone suggest places (e.g. registers) I should
> look for to accomodate the clock increase?
>
> Thanks,
> Raymond

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: some  questions about MPC860 BSP
Date: Wed, 7 Aug 2002 18:55:40 +0800
From: "Water He" <hyhe@PhotonicBridges.com>
Organization: Bentium Ltd. (CN99)
Message-ID: <aiquc5$2rm4$1@mail.cn99.com>
References: <aiqj1v$coa$1@debian.bentium.com>

1. Because all RISC instruction is 32-bit long, so only 16-bit immediate
operand are allowed to fill in the instruction.

2. Sometimes 'addi' results in carry.

3. The code between "cold" and "start" must be executed just only within
cold booting. I think here 'blr' is not necessary.

- ----------------------------------------------------------------------------
- ---- Water He  Software Engineer Photonic Bridges (China) Co., Ltd. 12th
Floor, High-Tech Building. No.900 Yishan Road, Caohejin, Shanghai. P.R.China
200233 Tel: 86 21 5423 5858 * 6672 Fax: 86 21 5423 5800 Cell: 86 13916708781
Email: hyhe@PhotonicBridges.com
"minskey73" <minskey73@yahoo.com.cn> wrote in message
news:aiqj1v$coa$1@debian.bentium.com...
> Hi, all,
>
>     I'm a newer to BSP and MPC assemble language. When I read the file
> romInit.s included in MPC860 BSP, I encounter more and more diffcult.
>
>       Could somebody answer my questions:
>
>     1. When load the address to GPR ,Why split this to two step. If the
> operand of
>        the instruction "load"  is an immediate , does it mean the
immediate
> must be
>        16 bit  and can't not be a 32-bit data?
>
>     2. Why define the macro HIADJ(defined in /target/h/arch/ppc/toolPpc.h)
>
>     3. After loading link register with the address of "start" , Why use
the
>        instruction "blr" to jump to the next labelled "start". It means
the
> code
>        between "cold" and "start" is not execute in the flash/rom , is it?
> but
>        where ?
>
>        thank you anyway.
>
>                                                                  looser
>                                                                Aug 7 ,
2002
>
>
>
> The following is a piece of code  of romInit.s.
>
/****************romInit.s**************************************************
> ***/
> cold:
>  li r3, BOOT_COLD /* set cold boot as start type */
>
>  /*
>   * When the PowerPC 860 is powered on, the processor fetch the
>   * instructions located at the address 0x100. We need to jump
>   * from the address 0x100 to the Flash space.
>   */
>
>  lis r4, HIADJ(start)  /* load r4 with the address */
>  addi r4, r4, LO(start)  /* of start */
>
>  lis r5, HIADJ(romInit)  /* load r5 with the address */
>  addi r5, r5, LO(romInit)  /* of romInit() */
>
>  lis r6, HIADJ(ROM_TEXT_ADRS) /* load r6 with the address */
>  addi r6, r6, LO(ROM_TEXT_ADRS) /* of ROM_TEXT_ADRS */
>
>  sub r4, r4, r5
>  add r4, r4, r6
>
>  mtspr LR, r4    /* save destination address into LR register*/
>  blr      /* jump to flash mem address */
>
> start:
>
>  /* clear out r0 */
>  xor r0, r0, r0
>
/***************************************************************************
> /
>
>

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Thu Aug  8 00:33:16 2002
From: "Maria Jothi" <mariajothi@sdsindia.com>
Date: Thu Aug  8 00:33:18 PDT 2002
Subject: Vxworks Queries

This is a multi-part message in MIME format.

------=_NextPart_000_003E_01C23EDC.42F2F0A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello Sir ,

Can you please help me in resolving the following issues in VxWorks:

1) Does the OS track the resources allocated to a task?  This allows =
these resources to be recovered and the task safely restarted, which is =
critical for continuous availability.=20

2) What are the facilities for a carrier grade system available on each =
system? Which of the two versions of VxWorks is recommended?=20
 =20
3) How do we minimise the buffer copy between the kernel and the =
application?=20
Is it possible to do it using mblk-clblk clusters? How do we do it using =
mblk-clblk clusters? Can the same functionality be achieved using =
zbufSockLib?

4) How do you register a callback for interrupt driven network I/O using =
ioctl? Can we use the FIOPROTOHOOK ioctl command for network also? If we =
can, is it going to call the callback for every character that arrives =
on the input? Is there a better way to do interrupt driven network I/O =
other than ioctl?=20

Thanks
Maria

------=_NextPart_000_003E_01C23EDC.42F2F0A0
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello Sir ,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can you please help me in resolving the =
following=20
issues in VxWorks:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1)&nbsp;Does the OS track the resources =
allocated=20
to a task?&nbsp; This allows these resources to be recovered and the =
task safely=20
restarted, which is critical for continuous availability. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>2)&nbsp;What are the facilities for a =
carrier grade=20
system available on each system? Which of the two versions of VxWorks is =

recommended?&nbsp;<BR>&nbsp;&nbsp;<BR>3) How do we minimise the buffer =
copy=20
between the kernel and the application? <BR>Is it possible to do it =
using=20
mblk-clblk clusters? How do we do it using mblk-clblk clusters? Can the =
same=20
functionality be achieved using zbufSockLib?<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>4)&nbsp;How do you register a callback =
for=20
interrupt driven network I/O using ioctl? Can we use the FIOPROTOHOOK =
ioctl=20
command for network also? If we can, is it going to call the callback =
for every=20
character that arrives on the input? Is there a better way to do =
interrupt=20
driven network I/O other than ioctl? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Maria</FONT></DIV></BODY></HTML>

------=_NextPart_000_003E_01C23EDC.42F2F0A0--

From vxwexplo-errs@csg.lbl.gov  Thu Aug  8 04:03:21 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Thu Aug  8 04:03:24 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Thu Aug  8 04:03:15 PDT 2002

        Subject: Re: Why can't I make .a files ,while my friend can make both .o and .a files with the same src code?
        Subject: Change IP on the fly - The correct way
        Subject: Re: "Relocation value does not fit in 24 bits"
        Subject: Re: About vxworks source code product--envoy!!!
        Subject: hook IP packets on BSD interface
        Subject: Re: application initialization in userAppInit() function
        Subject: Java Memory Leak - windsurf
        Subject: Re: Java Memory Leak - windsurf
        Subject: How do I obtain a interface name?
        Subject: Q: statistics from windview file
        Subject: Re: How get the length of the specified function from *.o file?
        Subject: Re: statistics from windview file
        Subject: Re: application initialization in userAppInit() function
        Subject: How to start with VxWorks?
        Subject: Re: statistics from windview file
        Subject: printf not working with polled SIO device
        Subject: Re: timeout of sockets in TCPS_ESTABLISHED state without SO_KEEPALIVE option
        Subject: How to find out how long something has taken to execute
        Subject: Re: Java Memory Leak - windsurf
        Subject: Tornado Prototyper
        Subject: how do you detect memory corruption in VxWorks?
        Subject: ifMaskSet problem on pc486 BSP with 3COM509 EtherLink III
        Subject: Re: Attach system Error!
        Subject: Re: How to find out how long something has taken to execute
        Subject: Re: Attach system Error!
        Subject: Re: Tornado Prototyper
        Subject: How to porting envoy(snmp) to MIPS platform.
        Subject: Harddisk problem?
        Subject: arp or route table too small?
        Subject: Re: Network stack
        Subject: Re: How to porting envoy(snmp) to MIPS platform.
        Subject: Re: How to find out how long something has taken to execute
        Subject: Looking for RTL8019AS driver source code for vxworks
        Subject: Harddisk problem details?
        Subject: Re: How do I obtain a interface name?
        Subject: Re: Attach system Error!
        Subject: telnet

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why can't I make .a files ,while my friend can make both .o and .a files with the same src code?
Date: 7 Aug 2002 04:50:13 -0700
From: vijay.peshkar@wipro.com (Vijay Peshkar)
Organization: http://groups.google.com/
Message-ID: <bb8c75e1.0208070350.38e9f7f1@posting.google.com>
References: <fcc9f2b4.0208061750.40b99461@posting.google.com>

Alice,

He's building with archive option. In T2, workspace -> build -> active
build -> properties -> macros, select LIBS from the pull down options
list.

Regards,
Vijay

xiangxinyan@yahoo.com.cn (Alice) wrote in message news:<fcc9f2b4.0208061750.40b99461@posting.google.com>...
> I tried to make a directory,but only get .o files.
> my makefile and src code and maybe all other setups are the same 
> with another person,he can make out .a successfully,but I cannot,
> WHY?
> 
> Is there anything that will make any difference?such as virus? 
> 
> Thank you for reading and giving a reply.
> 
> alice

---------------------------

Newsgroups: comp.os.vxworks
Subject: Change IP on the fly - The correct way
Date: 7 Aug 2002 05:02:42 -0700
From: gabi@tdsoft.com (Gabi)
Organization: http://groups.google.com/
Message-ID: <5607ff2c.0208070402.1a390bf4@posting.google.com>

Hi All,
To all VxWorks users who looking for the right way to modify the IP
address of there target on the fly. The correct way to do so is by
using the following simple code I wrote,see below, any other
suggestion I saw here only doing half of the job.

#include <inetLib.h>
#include <arpLib.h>
#include <ipProto.h>
#include <routeLib.h>
#include <ifLib.h>
#include <hostLib.h>
extern STATUS ipDetach (int , char *);

#define M_ASSERT_RET(Cond,String) if (!(Cond)){ \
       printf("\r\nERROR IN FILE %s Line : %d -
%s\r\n",__FILE__,__LINE__,(String)); return(ERROR);}
#define M_ASSERT(Cond,String) if ((Cond)==FALSE) \
       printf("\r\nERROR IN FILE %s Line : %d -
%s\r\n",__FILE__,__LINE__,(String))
static BOOL   V_Debug = FALSE;
#define M_PRINT_DIBUG(String) if (V_Debug)
printf("\r\n%s\r\n",(String));
/***************************************************************
 * Function Name: SYS_F_RenameDebugFlag
 * Description:	Rename debug flag control.
 * Input: Flag [TRUE/FALSE]
 * Output: None
 * Return Value: None
 ***************************************************************/
void SYS_F_RenameDebugFlag (BOOL Flag)
{
	V_Debug = Flag;
}
/***************************************************************
 * Function Name: SYS_F_RenameIpAdrs
 * Description:	Rename the IP address on the fly.
 * Input: pNetDevName(for ex' "fec"),DevNum(for ex'
1),newIpAddress,new subnet mask,GatwayIp
 * Output: None
 * Return Value: [OK/ERROR]
 ***************************************************************/
STATUS SYS_F_RenameIpAdrs (char *pNetDevName, int DevNum,char
*pNewDevAddr,UINT32  SubNetMask,char *GatwayIp)
{
    char OldNetDevAddrs [INET_ADDR_LEN ];
    char NetWorkAddrs [INET_ADDR_LEN ];
    char ifname [20],targetName[20];
	STATUS hostOK;
	/* check parameters for validity */
	M_ASSERT_RET(pNetDevName[0]!=EOS&&pNewDevAddr[0]!=EOS,"Valid init
parameters");

    /* build interface name */
    sprintf (ifname, "%s%d", pNetDevName, DevNum);

	/* get the old ipAddress & check if the interface attach */
	if (ifAddrGet(ifname,OldNetDevAddrs)==OK)
	{
	   M_PRINT_DIBUG("Interface exsist!\r\n");

	   if (V_Debug) 
	   {
   	      printf("Table before modify the IP!\r\n");
	      arpShow();
		  routeShow();
		  hostShow();
	   }
	   /* get the network address */
	   inet_netof_string(OldNetDevAddrs,NetWorkAddrs);
	   /* flush arp table */
	   arpFlush();
	   M_PRINT_DIBUG("Preform arpFlush!");
	   /* delete any relevant arp to NetDev */
	   arpDelete(OldNetDevAddrs);
	   M_PRINT_DIBUG("Preform arpDelete!");
	   /* delete the Host from the Host table */
	   if ((hostOK=hostGetByAddr(inet_addr(OldNetDevAddrs),targetName))==OK)
	      M_ASSERT(hostDelete(targetName,OldNetDevAddrs)==OK,"Fail to
clear the host table");
	   M_PRINT_DIBUG("Preform hostDelete!");
  	   /* detach the interface */
	   M_ASSERT_RET(ipDetach(DevNum,pNetDevName)==OK,"Fail to detach");
	   M_PRINT_DIBUG("Preform ipDetach!");
	   /* delete any route to the interface */
	   M_ASSERT(routeDelete(NetWorkAddrs,OldNetDevAddrs)!=ERROR,"Fail to
operate routeDelete to NetWorkAddrs");
	   M_PRINT_DIBUG("Preform routeDelete");
	   /* delete any route to the interface */
	   M_ASSERT(ifRouteDelete(pNetDevName,DevNum)!=ERROR,"Fail to operate
ifRouteDelete,an interface is not specified");
	   M_PRINT_DIBUG("Preform ifRouteDelete!");
	   /* check if gateway define */
	   if (strcmp(GatwayIp ,"0.0.0.0") && strcmp(GatwayIp ,"")) 
	   {  
	       routeDelete("0.0.0.0", GatwayIp);
	   }
	   else
	   {
		   printf("Gatway not define!\r\n");
	   }            
	}
	else
	   M_PRINT_DIBUG("Interface Not exsist!\r\n");

	/* attach the interface */
	M_ASSERT_RET(ipAttach(DevNum,pNetDevName)==OK,"Fail to attach to the
interface");
    M_PRINT_DIBUG("Preform ipAttach!");
	/* set the new IP address */
	M_ASSERT(ifMaskSet(ifname, SubNetMask)==OK,"Fail to set the
subnetmask to the interface");

    /* set inet address */
    M_ASSERT(ifAddrSet(ifname, pNewDevAddr)==OK,"Fail to set inet
address");

    /* add host name to host table */
	if (hostOK==OK)
 	   M_ASSERT(hostAdd (targetName, pNewDevAddr)==OK,"Fail to add the
target name to host table");

    if ((strcmp(GatwayIp ,"0.0.0.0")!=0) && (strcmp(GatwayIp ,"")!=0
))
       M_ASSERT(routeNetAdd("0.0.0.0", GatwayIp)==OK,"Fail to route
the GatewayIp 0.0.0.0");
	/* table after modify the IP */
	if (V_Debug) 
	{
   	   printf("Table after modify the IP!\r\n");
	   arpShow();
	   routeShow();
	   hostShow();
	}
	return(OK);
}

Any reject will be welcome.
Enjoy
Gabi Segev Serusi
gabi@tdSoft.com

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: "Relocation value does not fit in 24 bits"
Date: Wed, 7 Aug 2002 14:19:31 +0200
From: "Rene Straub" <_remove_rene.straub@yetnet.ch>
Organization: Swisscom IP+ (post doesn't reflect views of Swisscom)
Message-ID: <air389$4j5$1@rex.ip-plus.net>
References: <15647182.0208061603.230fa89e@posting.google.com>

"Bob Beauchaine" <b.beauchaine@attbi.com> wrote in message
news:15647182.0208061603.230fa89e@posting.google.com...
> Got the problem too.
>
> 1.  Target is Power PC under Tornado 2.0.2
> 2.  Both the kernel and the application have been compiled with
> -mlongcall.
> 3.  Cumulative patch 3 and patch 73419 have been applied.
> 4.  I have to load from the target shell.  Tornado is not an option,
> but it doesn't seem to have these problems.
>
> I've got about a dozen symbols showing the error.  Right now, I would
> be happy just to be able to identify which symbols are at fault.
> Since I have a third party library with no source code, I suspect my
> problem lies here.  Is there any way to coax more information out of
> the loader on what symbols can't be relocated?

Bob,

watch out for the .MAP file. You can also use objdumpppc to view the
symbols of your 3rd party library (or any other object file). Use the
options
- --syms to show the imported/exported symbols. Use --reloc to view the
relocations. This will also show you where 24 bit relocs are still used.

Yours
- - Rene

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: About vxworks source code product--envoy!!!
Date: Wed, 07 Aug 2002 12:31:56 GMT
From: David Cooper <dcooper000@adelphia.net>
Organization: none
Message-ID: <MPG.17badd49373e5deb98969b@news1.news.adelphia.net>
References: <75f50af3.0208061902.15e21f14@posting.google.com>

The examples given in the docs for PPC and Pentimum are just that, 
examples.  Follow the procedures outlined in the docs, replacing MIPS 
R4000 specifics when PPC or Pentium specifics are given.

...david

- -- 
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
   Genealogy Utilities & Family Research
Researching: ALLEN,BERZONER,COHEN,COOPER,KUPFERZMIDT,
POSNER (POIZNER), PRITIKIN, STARKMAN
Dachau Camp Entry List, Genealogy Utilities
http://home.adelphia.net/~dcooper000

In article <75f50af3.0208061902.15e21f14@posting.google.com>, 
mingli@mail.daxian.net says...
> The envoy is snmp source code product,My doc tell it can be ported to
> PPC and Pentium platforms,but i work on MIPS R4000,please telnet me
> how to do!
> Thanks!
> 

---------------------------

Newsgroups: comp.os.vxworks
Subject: hook IP packets on BSD interface
Date: 7 Aug 2002 05:35:35 -0700
From: michaelmez@lightscapenet.com (Michael)
Organization: http://groups.google.com/
Message-ID: <49faca9b.0208070435.506cf679@posting.google.com>

Hello,
How can I hook outgoing and incoming IP packets if I'm using not MUX
interfaces. (except IpFilterHook and etherOuput(Input)Hook)?

Thanks in advance.

Michael Mezheritsky

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: application initialization in userAppInit() function
Date: Wed, 07 Aug 2002 12:35:42 GMT
From: David Cooper <dcooper000@adelphia.net>
Organization: none
Message-ID: <MPG.17bade2ac7e81def98969c@news1.news.adelphia.net>
References: <f14c07cb.0208062204.4677f6b0@posting.google.com>

Dumb question; but, did you include the source code for your 
userAppInit() function into the project ?  Or are you trying to use the 
userAppInit() function provided in the BSP ?  If the latter, I believe 
there is a macro in config.h that has to be #define'd.

...david

- -- 
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
   Genealogy Utilities & Family Research
Researching: ALLEN,BERZONER,COHEN,COOPER,KUPFERZMIDT,
POSNER (POIZNER), PRITIKIN, STARKMAN
Dachau Camp Entry List, Genealogy Utilities
http://home.adelphia.net/~dcooper000

In article <f14c07cb.0208062204.4677f6b0@posting.google.com>, 
forvxworks@rediffmail.com says...
> Hi All ,
>     i want to call the project main function in userAppInit() function
> so that my project gets spawned as soon as the target boots in Vxworks
> and there would be no need to spawn it from the host shell. but when i
> include the function call in userAppInit() , it gives an "undefined
> reference" error.
>     i have delcared the funtion prototype in userAppInit() and also
> declared  the main function as extern in the main cpp file. but that
> does not help. what other things are to be added for the project to be
> spawned for userAppInit() function??
> 
> Regards.
> Anand.
> 

---------------------------

Newsgroups: comp.os.vxworks
Subject: Java Memory Leak - windsurf
Date: Wed, 7 Aug 2002 14:45:44 +0100
From: "David Cozens" <David.Cozens@epid.eurotherm.co.uk>
Message-ID: <3d512489$0$236$ed9e5944@reading.news.pipex.net>

I thought it was about time I made this post to see if my experience is
typical.

We produce a product using vxWorks and personal Jworks. We first used JWorks
3.0 then 3.0.2 and are just finalising a move to JWorks 3.1.

In our initial work on JWorks 3.0 we found a memory leak in the
GridBagLayout class. This took us a long time to isolate, we raised a TSR
and received a fairly prompt fix of a couple of classes in the java.awt
package.

The original TSR for the memory leak was 148994, we then got a fix under
SPR29842, when we moved to JWorks 3.0.2 we raised TSR161458 for the same
problem, the same fix still worked. We have now found the same problem still
exists under JWorks 3.1 and have been told that SPR80439 fixes this problem
and it will be rolled up in the next cumalative patch.

The thing that bugs me is that when I look on windsurf I can view my TSR's
as closed (They don't refer to any SPRs) I cannot find either SPR,
apparently they are not published. This is a bug that we gave a test case to
windriver on two yeras ago. They have a fix for this and yet they hav'nt
told the developer community. Why not? What are they hiding?

If windsurf and the windriver support organisation is supposed to allow us
to find out about faults so that we can get patches or work around them then
from my point of viw it is patently failing. Any ideas of what we can do to
get faults in the windriver code more visible?

I look forward to responses

Dave

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Java Memory Leak - windsurf
Date: 07 Aug 2002 10:50:59 -0400
From: Bill Pringlemeir <spam_account@sympatico.ca>
Organization: Bell Sympatico
Message-ID: <m2u1m6wwmk.fsf@sympatico.ca>
References: <3d512489$0$236$ed9e5944@reading.news.pipex.net>
Sender: bpringle@DeadDuck

[snip]

 David> If windsurf and the windriver support organisation is supposed
 David> to allow us to find out about faults so that we can get
 David> patches or work around them then from my point of viw it is
 David> patently failing. Any ideas of what we can do to get faults in
 David> the windriver code more visible?

 David> I look forward to responses

We could open a bug data base on some open-source repository.  Or
someone could setup a data base with some open source defect tracking
software.  Someone posted an xls file of SPRs to this newsgroup some
time ago.

fwiw,
Bill Pringlemeir.

- -- 
What do I know about sex? I'm a married man. - Tom Clancy

---------------------------

Newsgroups: comp.os.vxworks
Subject: How do I obtain a interface name?
Date: 7 Aug 2002 08:27:24 -0700
From: tony.pedley@powerconv.alstom.com (TonyP)
Organization: http://groups.google.com/
Message-ID: <c47fbd59.0208070727.2f6cb9ca@posting.google.com>

I wish to use a function which obtains the name(s) of the ethernet interfaces
e.g like the ones shown in ifShow. 

Anyone any idea how to do it?

Presumably there must be a way of parsing through a list of interfaces. 

Hoping

All the best

Tony

---------------------------

Newsgroups: comp.os.vxworks
Subject: Q: statistics from windview file
Date: Wed, 7 Aug 2002 17:32:10 +0200
From: <soenke.koppatsch@icn.siemens.de>
Organization: Siemens Inc.
Message-ID: <aireie$mva$1@news.mch.sbs.de>

Hi !

I would like to get out statistics from a WindView file.
e.g Duration of Interrupts, time per task, ...

Do anybody have a "statistic tool" for windview or a program to convert the
*.wvr  into a
readable format.

Any hint welcome !

Thank you !
Snke

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How get the length of the specified function from *.o file?
Date: Wed, 07 Aug 2002 15:48:03 GMT
From: "H. E. Taylor" <het@despam.autobahn.mb.ca>
Organization: MTS Internet
Message-ID: <3D515BA5.1FE1@despam.autobahn.mb.ca>
References: <8f77d4a.0208062127.277e538b@posting.google.com>

In article <8f77d4a.0208062127.277e538b@posting.google.com>,
<hotJacky@163.net> Bryan wrote:
> 
> If syslib.c includes a function named strong().When  syslib.c is
> compiled by gcc and produce corresponding syslib.o.How can I get the
> fact size of the strong() in text section?Can nm ?
> 

	I don't know of an automated tool that will give you this info.
	[That doesn't mean there isn't one. ;-)]
	But you can do it by hand, utilizing nm with a numeric sort.
	
	Caveat: I'm not familiar with this function and if it's written
	in asm, all bets are off.  [Check the disassembly for jumps to
	a common exit.]  

	Btw, there are online binutil docs at:
	http://www.delorie.com/gnu/docs/

<hth>
- -het

- --
"progress in software has not followed Moore's law."  -John Holland 

Computer Links: http://www.autobahn.mb.ca/~het/clinks.html
H.E. Taylor  http://www.autobahn.mb.ca/~het/

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: statistics from windview file
Date: Wed, 7 Aug 2002 17:33:16 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1028737997.809096@azores.network-i.net>
References: <aireie$mva$1@news.mch.sbs.de>

Winview has a Tcl API. I would expect that should give you access to the
stats that you desire.

I have never done it myself...

Dimitris

<soenke.koppatsch@icn.siemens.de> wrote in message
news:aireie$mva$1@news.mch.sbs.de...
> Hi !
>
> I would like to get out statistics from a WindView file.
> e.g Duration of Interrupts, time per task, ...
>
> Do anybody have a "statistic tool" for windview or a program to convert
the
> *.wvr  into a
> readable format.
>
> Any hint welcome !
>
> Thank you !
> Snke
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: application initialization in userAppInit() function
Date: Wed, 07 Aug 2002 13:07:55 -0400
From: david lindauer <dlindauer@notifier-is.net>
Message-ID: <3D5153EB.304E6AFB@notifier-is.net>
References: <f14c07cb.0208062204.4677f6b0@posting.google.com>

Anand wrote:

> Hi All ,
>     i want to call the project main function in userAppInit() function
> so that my project gets spawned as soon as the target boots in Vxworks
> and there would be no need to spawn it from the host shell. but when i
> include the function call in userAppInit() , it gives an "undefined
> reference" error.
>     i have delcared the funtion prototype in userAppInit() and also
> declared  the main function as extern in the main cpp file. but that
> does not help. what other things are to be added for the project to be
> spawned for userAppInit() function??
>
> Regards.
> Anand.

when you declare a function in a C++ file, the compiler mangles the name
differently than for a C file.  UserAppInit.C expects it one way, but
since the function is in a C++ file it is declared another.

In your C++ file do this:

extern "C" mainfunc(parmlist)
{
}
and that will cause the name to be the same for both files.

David

---------------------------

Newsgroups: comp.os.vxworks
Subject: How to start with VxWorks?
Date: 7 Aug 2002 10:35:06 -0700
From: kaiduanx@yahoo.ca (kaiduan)
Organization: http://groups.google.com/
Message-ID: <9b577325.0208070935.7771c042@posting.google.com>

hi,

I am attracted by the mysteries of VxWorks, and want to start by
myself, I got a Tornado Prototyper on Windows. Here, I have some
questions:

1. Are there some books on VxWorks for introduction? For example, the
whole process to start a embedded project, from the CPU selection,
memory requirement analysis, source code writting, debugging, testing
and delivery?

2. Are there some SOURCE CODE PROJECT on VxWorks to start? The best
way to learn is to get a REAL project and hack it.

Thanks for help.

kaiduan xie

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: statistics from windview file
Date: Wed, 07 Aug 2002 18:01:11 GMT
From: David Cooper <dcooper000@adelphia.net>
Organization: none
Message-ID: <MPG.17bb2a7371948ede98969e@news1.news.adelphia.net>
References: <aireie$mva$1@news.mch.sbs.de> <1028737997.809096@azores.network-i.net>

If you search around on WindSurf, I think you might find a tcl script 
which will convert WindView output to an excel spreadsheet -- but, last I 
knew of this, it has some bugs.  Check with your local WindRiver FAE, 
he/she might be able to dig up a corrected version.

...david

In article <1028737997.809096@azores.network-i.net>, 
nospam_dimitrios.siganos@newport-networks.com says...
> Winview has a Tcl API. I would expect that should give you access to the
> stats that you desire.
> 
> I have never done it myself...
> 
> Dimitris
> 
> <soenke.koppatsch@icn.siemens.de> wrote in message
> news:aireie$mva$1@news.mch.sbs.de...
> > Hi !
> >
> > I would like to get out statistics from a WindView file.
> > e.g Duration of Interrupts, time per task, ...
> >
> > Do anybody have a "statistic tool" for windview or a program to convert
> the
> > *.wvr  into a
> > readable format.
> >
> > Any hint welcome !
> >
> > Thank you !
> > Snke
> >
> >
> 
> 
> 
> 

---------------------------

Newsgroups: comp.os.vxworks
Subject: printf not working with polled SIO device
Date: Wed, 07 Aug 2002 13:55:20 -0600
From: Rick Moleres <Rick.Moleres@xilinx.com>
Organization: Xilinx, Inc.
Message-ID: <3D517B28.E4D1C7F9@xilinx.com>

This is a multi-part message in MIME format.
- --------------F7137509181E629F67FD7A9A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello all,

I have a UART 16550 device and have written an SIO device driver for
VxWorks 5.4/Tornado 2.0.2.  The driver has the expected poll send, poll
recv, and TxStartup SIO functions - and works correctly in interrupt
mode.  However, if I use sioIoctl with SIO_MODE_POLL to put the driver
into polled mode, printf then does not work.  In fact, file I/O doesn't
seem to work when it's in polled mode either.  The only I/O functions
that seem to work are sioPollOuput() and sioPollInput() from sioLib.h.

My questions are: Should printf and file I/O (e.g., fputs) work when the
SIO driver is in polled mode?  If so, is there something I'm forgetting
to do?  Or is there an outage in my driver?  I debugged a little and saw
that even though the driver is in polled mode, VxWorks calls the SIO
txStartup function of the driver instead of the pollOutput function
(from the SIO_CHAN structure).  Should the driver's txStartup function
be smart enough to check the interrupt/polled mode and if in polled mode
send as many bytes as possible before returning from this function?

Any help is appreciated,

Rick

- --------------F7137509181E629F67FD7A9A
Content-Type: text/x-vcard; charset=us-ascii;
 name="Rick.Moleres.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Rick Moleres
Content-Disposition: attachment;
 filename="Rick.Moleres.vcf"

begin:vcard 
n:Moleres;Rick
tel;fax:(505) 798-4809
tel;work:(505) 798-4870
x-mozilla-html:FALSE
org:Xilinx, Inc.;IP Solutions Division
adr:;;7801 Jefferson St. NE;Albuquerque;New Mexico;87109;USA
version:2.1
email;internet:moleres@xilinx.com
fn:Rick Moleres
end:vcard

- --------------F7137509181E629F67FD7A9A--

---------------------------

Newsgroups: comp.os.vxworks,comp.unix.bsd.openbsd.misc
Subject: Re: timeout of sockets in TCPS_ESTABLISHED state without SO_KEEPALIVE option
Date: Thu, 08 Aug 2002 04:39:12 -0400
From: Neil Horman <nhorman@lvl7.com>
Organization: WEBUSENET.com
Message-ID: <3D522E30.3010204@lvl7.com>
References: <7995bbab.0207191454.7cf49dbe@posting.google.com>
Reply-To: nhorman@lvl7.com

I don't think this is a bug at all.  From unixguide.net:

>  What exactly does SO_KEEPALIVE do?
> 
> From Andrew Gierth (andrew@erlenstar.demon.co.uk):
> 
>   The SO_KEEPALIVE option causes a packet (called a 'keepalive probe')
>   to be sent to the remote system if a long time (by default, more than
>   2 hours) passes with no other data being sent or received. This packet
>   is designed to provoke an ACK response from the peer. This enables
>   detection of a peer which has become unreachable (e.g. powered off or
>   disconnected from the net).  See ``2.8 Why does it take so long to
>   detect that the peer died?''  for further discussion.
> 
>   Note that the figure of 2 hours comes from RFC1122, "Requirements for
>   Internet Hosts".
> 

The above indicates that keepalive probes are there for the benefit of 
determining weather or connection partner is still communicating.  If you have a 
socket on which SO_KEEPALIVE is not set, then thats indicating keepalive frames 
should never be sent out, meaning you have no way of telling weather or not your 
communication partner is still up.  Consequently the only thing that happens in 
the keepalive portion of the ip stack referenced below is that the keepalive 
timer is reset for the next two hour interval, during which time you might turn 
SO_KEEPALIVE on with a call to setsockopt.  Basically, without keepalive turned 
on, your tcp socket will never leave the established state (reference figure 
11.2 in Internetworking with TCP/IP Vol. II).

To summarize, if you want your sockets to "timeout" then you need SO_KEEPALIVE 
turned on, so that your socket can detect when its communication parter is no 
longer speaking.  If the 2 hour delay is to large (the tcp_keepidle
  value below), you should be able to reduce it.  Linux has an entry in the proc 
filesystem and a sysctl function to do this. I'm sure VxWorks has a simmilar 
sysctl function

Hope that helps!
Neil

Vadim wrote:

> It doesn't seem that sockets in TCPS_ESTABLISHED state without
> SO_KEEPALIVE option timeout.  We are running a vxWorks stack (with
> latest patches from WindRiver), which is based on 4.4BSD code.  After
> some investigation I've tracked the problem down to tcp_timers()
> function.  The code in question is very similar to Figure 25.16 (page
> 829) of Stevens' TCP/IP Illustrated Volume 2 (attached below).
> 
>     Some of our sockets do not have the SO_KEEPALIVE option.  This
> causes the expression in the 'if' statement on line 229 to evaluate to
> 0.  Thus, the else statement on line 250 resets the TCPT_KEEP timer to
> tcp_keepidle (which is 2 hours).
> 
>     I put some printfs in the code, which confirmed that sockets
> without SO_KEEPALIVE option are never dropped and their TCTP_KEEP
> timer is reset every two hours.
> 
>     Line 231 checks whether the session has expired; however, it is
> not possible to run this code unless the SO_KEEPALIVE is set.
> 
>     I looked at the latest OpenBSD code.  It looks like it's been
> restructured; however, the logic of tcp_timer_keep() function remained
> the same as in 4.4BSD.
> 
>     Is there another mechanism that is supposed to drop these sockets?
>  Has anyone experienced this problem as well?
> 
> 
> 
> 225	case TCPT_KEEP:
> 226		tcpstat.tcps_keeptimeo++;
> 227		if (tp->t_state < TCPS_ESTABLISHED)
> 228			goto dropit;
> 229		if (tp->t_inpcb->inp_socket->so_options & SO_KEEPALIVE &&
> 230		    tp->t_state <= TCPS_CLOSE_WAIT) {
> 231		    	if (tp->t_idle >= tcp_keepidle + tcp_maxidle)
> 232				goto dropit;
> 233			/*
> 234			 * Send a packet designed to force a response
> 235			 * if the peer is up and reachable:
> 236			 * either an ACK if the connection is still alive,
> 237			 * or an RST if the peer has closed the connection
> 238			 * due to timeout or reboot.
> 239			 * Using sequence number tp->snd_una-1
> 240			 * causes the transmitted zero-length segment
> 241			 * to lie outside the receive window;
> 242			 * by the protocol spec, this requires the
> 243			 * correspondent TCP to respond.
> 244			 */
> 245			tcpstat.tcps_keepprobe++;
> 246			tcp_respond(tp, mtod(tp->t_template, struct tcpiphdr *), (struct
> mbuf *)NULL,
> 247				    tp->rcv_nxt, tp->snd_una - 1, 0);
> 248			tp->t_timer[TCPT_KEEP] = tcp_keepintvl;
> 249		} else
> 250			tp->t_timer[TCPT_KEEP] = tcp_keepidle;
> 251		break;
> 252	dropit:
> 253		tcpstat.tcps_keepdrops++;
> 254		tp = tcp_drop(tp, ETIMEDOUT);
> 255		break;
> 
> Thanks,
> Vadim
> 

---------------------------

Newsgroups: comp.os.vxworks
Subject: How to find out how long something has taken to execute
Date: Wed, 7 Aug 2002 16:48:04 -0400
From: "Cedric Le Roux" <lerouxc@db.erau.edu>
Message-ID: <3d51877e$1_2@nopics.sjc>

Hello all,

I would like to know if it is possible to measure the time it takes for
something to execute.  I would like to have the resolution in microseconds
if possible.  I am using the system clock at 60Hz.   And the aux clock could
not provide me with such high resolution.
The system date and time registers only go to full seconds resolution, so
that doesn't help either.
Could WindView help me here?

I've also been told about something called the PIT.  Supposed to have very
high resolution.  But I cannot find info on it.  Can anyone clarify this
concept for me?

Specs:

VxWorks 5.4
VME PowerPC (SBS Power7e)

thanks

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Java Memory Leak - windsurf
Date: Wed, 7 Aug 2002 21:14:29 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3D518E59.9060508@spamm.me.l8s.co.uk>
References: <3d512489$0$236$ed9e5944@reading.news.pipex.net>

> The original TSR for the memory leak was 148994, we then got a fix under
> SPR29842, when we moved to JWorks 3.0.2 we raised TSR161458 for the same
> problem, the same fix still worked. We have now found the same problem still
> exists under JWorks 3.1 and have been told that SPR80439 fixes this problem
> and it will be rolled up in the next cumalative patch.
> 
> The thing that bugs me is that when I look on windsurf I can view my TSR's
> as closed (They don't refer to any SPRs) I cannot find either SPR,
> apparently they are not published. This is a bug that we gave a test case to
> windriver on two yeras ago. They have a fix for this and yet they hav'nt
> told the developer community. Why not? What are they hiding?
> 
> If windsurf and the windriver support organisation is supposed to allow us
> to find out about faults so that we can get patches or work around them then
> from my point of viw it is patently failing. Any ideas of what we can do to
> get faults in the windriver code more visible?

You are lucky!
If you find a 'workaround' when you raise the TSR, NOTHING ever
happens.  Only if they generate a patch is there EVER a chance of the
fix getting into a later release.  To get that done you need to have
someone whose full time job is beating up WRS support.

The whole 'support' scheme sucks badly.

The product I worked on only shipped because of the patches I made to
WRS supplied object code that we didn't have the source to....

	David

---------------------------

Newsgroups: comp.os.vxworks
Subject: Tornado Prototyper
Date: 7 Aug 2002 16:44:06 -0700
From: tech_mail_me@yahoo.com (techie)
Organization: http://groups.google.com/
Message-ID: <40b2e24a.0208071544.7163cc78@posting.google.com>

Hi All,
   I would like to know from where I can get the evaluation copy of
Tornado Prototyper. I checked in the windriver site, but the site
doesn't seem to offering it anymore for free.
Does anybody know of any other site from where I can download the
same?
Can anybody help me with the info or the prototyper itself!!!
Thanks in advance,
techie.

---------------------------

Newsgroups: comp.os.vxworks
Subject: how do you detect memory corruption in VxWorks?
Date: Wed, 07 Aug 2002 18:49:13 -0500
From: s <wangs@REMOVE.ieee.org>
Organization: OneIT Directory Services News Site
Message-ID: <3D51B1F9.4040005@REMOVE.ieee.org>

Hi All,

Considering the os is a single memory space addressable by all threads, 
how do you detect memory corruption?

(In particular, a memory corruption where the stack is corrupted, -- not 
referring to a stackOverflow, where checkStack can give an indication 
which thread caused the offense)

Thanks in advance,
- -- Sam

---------------------------

Newsgroups: comp.os.vxworks
Subject: ifMaskSet problem on pc486 BSP with 3COM509 EtherLink III
Date: 7 Aug 2002 17:35:12 -0700
From: duesp@yahoo.com (Chak)
Organization: http://groups.google.com/
Message-ID: <cacb10a4.0208071635.6a787d5c@posting.google.com>

Hi,

I have PC 486 with 3COM 509. I am having trouble in setting mask.

Here is what i have done.

1) Loaded the device into the MUX with
   pCookie = muxDevLoad(...)
  
   status : success
2) Started the MUX with 
   muxDevStart(pCookie);
   status : success

3) I could see the device with pEnd = endFindByName(unitno being 0)
   device name = "elt"
   unit no     = 0

   status : success
4) muxIoCtl(pEnd, interface table)

   status : success  

5) attach the ip..
   ipAttach(unitno=0, device name="elt")
   status = success

from VxWorks shell, I can see the device with
- --> ifShow
    device elt unitno 0
    MAC address :....
    flags BROADCAST UP RUNNING

Now the actual problem starts
when i say ifMaskSet("elt0",0xffffff00), it returns me an error.
error no = 0x730008.

and subsequent calls fail as is expected for setting the ip address etc.

On the BOOT ROM.
inet on ethernet : 90.0.0.123:ffffff00

Any help is greatly appriciated.

Thanks and Regards
Chakri

PS: I would appriciate if any one responds with CC to duesp@yahoo.com

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Attach system Error!
Date: Thu, 08 Aug 2002 00:41:59 GMT
From: "drdiags" <drdiags@attbi.com>
Organization: AT&T Broadband
Message-ID: <r7j49.28759$7n5.5299@sccrnsc01>
References: <e82d8e83.0208070041.4ee2aa37@posting.google.com>

Hello Seasoblue,

   Have you verified that the "tWdbTask" is running? I ran into a problem
where
if INCLUDE_WDB_TASK was not also defined, then the WDB task was not
spawned. This would cause any connection through the target server to
fail. So, if you have a serial connection with a symbol table include along
with
the target shell, you will know if this is the problem you are facing.
HTH.....

"seasoblue" <seasoblue2000@yahoo.com.cn> wrote in message
news:e82d8e83.0208070041.4ee2aa37@posting.google.com...
> Hi,All
>    I use Tornado 2.0 IDE for Samsung's MCU -- S3C4510B which includes
> ARM7TDMI kernel inside,and UART0 to display debug information,
> ethernet for data send and receive.
>    After dowload .out file and start debugger, I select "attach
> system" ,but something is wrong. Tornado IDE displays a message :
>     "Target connection has been lost!
>         Stopping the debugger now!".
>
>    then connection lost, and Target Server log console displays such
> message:
>    "TGTSVR (arm@hugh): Wed Aug 07 15:59:17 2002
>     Error: rpccore backend client Server can't decode arguments!"
>
>   In config.h file, I configed like this:
>
>    #define INCLUDE_END
>    #undef  END_OVERRIDE /* define if you are using old boot ROMs. */
>
>    #ifdef  INCLUDE_END
>    #define INCLUDE_SNDS_END /* Include Ethernet driver */
>    #define INCLUDE_SNDS_HDLC_END /* Include HDLC END driver */
>    #define INCLUDE_OLI_END /* Olicom PCMCIA Ethernet card END driver
> */
>    #undef  WDB_COMM_TYPE   /* WDB agent communication path is END */
>    #define WDB_COMM_TYPE   WDB_COMM_END
>    #define INCLUDE_WDB_SYS       /*add by seasoblue for system debug*/
>    #endif  /* INCLUDE_END */
>
> and I have configed Target Server like this:
>     "Tools" -> "Target server" -> "configure"->
>        "Target Server Properties"->"Back End"->"wdbrpc"
>
> But now, I can not attach system and also can not start mutiTask
> debugging. It's so sad!  anyone can help me ?
>
>     Best Regards,
>
>    seasoblue

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How to find out how long something has taken to execute
Date: Thu, 08 Aug 2002 00:47:03 GMT
From: nunya@damn.business.com (Bruce)
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <3d51bff4.445180@news.houston.sbcglobal.net>
References: <3d51877e$1_2@nopics.sjc>

In comp.os.vxworks
"Cedric Le Roux" <lerouxc@db.erau.edu> wrote:

>I would like to know if it is possible to measure the time it takes for
>something to execute.  I would like to have the resolution in microseconds
>if possible.  I am using the system clock at 60Hz.   And the aux clock could
>not provide me with such high resolution.
>The system date and time registers only go to full seconds resolution, so
>that doesn't help either.
>Could WindView help me here?

Windview can definitely do it.  Also, look at the timeex() function.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Attach system Error!
Date: Thu, 08 Aug 2002 00:59:06 GMT
From: "drdiags" <drdiags@attbi.com>
Organization: AT&T Broadband
Message-ID: <unj49.28013$nF5.6897@sccrnsc02>
References: <e82d8e83.0208070041.4ee2aa37@posting.google.com> <r7j49.28759$7n5.5299@sccrnsc01>

Sorry,

   I missed the note about downloading the *.out file, so unless you loaded
the app from the
target shell, never mind...............

"drdiags" <drdiags@attbi.com> wrote in message
news:r7j49.28759$7n5.5299@sccrnsc01...
> Hello Seasoblue,
>
>    Have you verified that the "tWdbTask" is running? I ran into a problem
> where
> if INCLUDE_WDB_TASK was not also defined, then the WDB task was not
> spawned. This would cause any connection through the target server to
> fail. So, if you have a serial connection with a symbol table include
along
> with
> the target shell, you will know if this is the problem you are facing.
> HTH.....
>
> "seasoblue" <seasoblue2000@yahoo.com.cn> wrote in message
> news:e82d8e83.0208070041.4ee2aa37@posting.google.com...
> > Hi,All
> >    I use Tornado 2.0 IDE for Samsung's MCU -- S3C4510B which includes
> > ARM7TDMI kernel inside,and UART0 to display debug information,
> > ethernet for data send and receive.
> >    After dowload .out file and start debugger, I select "attach
> > system" ,but something is wrong. Tornado IDE displays a message :
> >     "Target connection has been lost!
> >         Stopping the debugger now!".
> >
> >    then connection lost, and Target Server log console displays such
> > message:
> >    "TGTSVR (arm@hugh): Wed Aug 07 15:59:17 2002
> >     Error: rpccore backend client Server can't decode arguments!"
> >
> >   In config.h file, I configed like this:
> >
> >    #define INCLUDE_END
> >    #undef  END_OVERRIDE /* define if you are using old boot ROMs. */
> >
> >    #ifdef  INCLUDE_END
> >    #define INCLUDE_SNDS_END /* Include Ethernet driver */
> >    #define INCLUDE_SNDS_HDLC_END /* Include HDLC END driver */
> >    #define INCLUDE_OLI_END /* Olicom PCMCIA Ethernet card END driver
> > */
> >    #undef  WDB_COMM_TYPE   /* WDB agent communication path is END */
> >    #define WDB_COMM_TYPE   WDB_COMM_END
> >    #define INCLUDE_WDB_SYS       /*add by seasoblue for system debug*/
> >    #endif  /* INCLUDE_END */
> >
> > and I have configed Target Server like this:
> >     "Tools" -> "Target server" -> "configure"->
> >        "Target Server Properties"->"Back End"->"wdbrpc"
> >
> > But now, I can not attach system and also can not start mutiTask
> > debugging. It's so sad!  anyone can help me ?
> >
> >     Best Regards,
> >
> >    seasoblue
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Tornado Prototyper
Date: Wed, 07 Aug 2002 21:05:08 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D51C3C4.94D08796@bellsouth.net>
References: <40b2e24a.0208071544.7163cc78@posting.google.com>

techie wrote:

> Hi All,
>    I would like to know from where I can get the evaluation copy of
> Tornado Prototyper. I checked in the windriver site, but the site
> doesn't seem to offering it anymore for free.
> Does anybody know of any other site from where I can download the
> same?
> Can anybody help me with the info or the prototyper itself!!!
> Thanks in advance,
> techie.

No.  The prototyper has been discontinued.  It is possible that a local
rep will offer you a limited time evaluation license for free.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: How to porting envoy(snmp) to MIPS platform.
Date: 7 Aug 2002 18:23:51 -0700
From: mingli@mail.daxian.net (Micah Lee)
Organization: http://groups.google.com/
Message-ID: <75f50af3.0208071723.14240c27@posting.google.com>

My envoy can porting to PPC and Pentium,but my system run in MIPS,so i
want it  porting to VxWorks with MIPS.How to do?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Harddisk problem?
Date: 7 Aug 2002 18:28:49 -0700
From: oe_zhou@sohu.com (oe_zhou)
Organization: http://groups.google.com/
Message-ID: <758a30ff.0208071728.343c3d33@posting.google.com>

I have to add a harddisk to mpc860.
My system is Vxworks 5.4.
Can anyone tell me how to do? 
thx. I am a newphant.

---------------------------

Newsgroups: comp.os.vxworks
Subject: arp or route table too small?
Date: 7 Aug 2002 20:23:48 -0700
From: chwin@china.com (Adom)
Organization: http://groups.google.com/
Message-ID: <92dbccc1.0208071923.58123a2f@posting.google.com>

hi,all

   I encount a serious problem about WRS network stack.
   I implement a gateway whit NAT on WRS network stack.
   Normal it is ok.
   But when it is used in envirment with more than 220 hosts, 
   there are several hosts that can't surf, the other is 
   ok.

   When using "ping" on this host, there is MAC address
   of LAN port of gateway in host arp table, but the 
   ping is timeout.
   When i reboot the gateway, maybe these hosts are ok,but 
   there are several other hosts are the same.

   It puzzles me.Is there any restrict about arp table numbers.

   Help,thanks!

                                       Adom

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Network stack
Date: 7 Aug 2002 20:26:41 -0700
From: chwin@china.com (Adom)
Organization: http://groups.google.com/
Message-ID: <92dbccc1.0208071926.1affec86@posting.google.com>
References: <7d37276da8267eb350c5835b1a44c377.38592@mygate.mailgate.org> <MPG.17b445369e573f7298969a@news1.news.adelphia.net> <e229ec7e.0208051600.26d13ae9@posting.google.com> <37ed9c54.0208061522.c73f922@posting.google.com>

I have implement a fast forward for WRS netstack, but the 
effect is not ideal.
Is it the problem of struct of WRS netstatck and driver ?

                                   Adom

byxiao@public.cz.js.cn (Sheo Boyu) wrote in message news:<37ed9c54.0208061522.c73f922@posting.google.com>...
> vxWorks feature a 6k or so microkernel,which theoretically has a poorer
> network performance than those macrokernel OS,such as Unix or Linux.
> This is due to the traditional network stack implimentation is based on 
> macrokernel,not microkernel,WRS just port the BSD network stack to 
> vxworks,not rewritten them as required for better performance on microkernel.
> You can find some document on this issue from CMU following this link:
> http://www-2.cs.cmu.edu/afs/cs/project/mach/public/www/doc/publications.html
> The article is Networking Performances for Microkernels.
> May this help!
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How to porting envoy(snmp) to MIPS platform.
Date: Thu, 08 Aug 2002 03:57:27 GMT
From: FrankG <nospam@bogus.com>
Organization: Giganews.Com - Premium News Outsourcing
Message-ID: <3D51ECA7.2030903@bogus.com>
References: <75f50af3.0208071723.14240c27@posting.google.com>

Micah Lee wrote:
> My envoy can porting to PPC and Pentium,but my system run in MIPS,so i
> want it  porting to VxWorks with MIPS.How to do?

I just went through building envoy for PowerPC I am not aware of any 
MIPS specific problems. If there are MIPs problems please let me know.

The steps as I understand them first are obtain the Epilogue9.2 cd. This 
cd contains envoy (the snmp agent library) emissary (the mib compiler) 
and snark a sample snmp agent application. Epilogue is the name for the 
product line and I believe the name of the company that wind river 
bought. Your company may have to cough up $12,000 for snmpv2c or $24,000
for snmpv3 the cost of a single development license. That is what my 
company had to so.

The CD should come with a printed sheet showing the various decryption 
keys or decrypting the tar files corresponding to the products you are 
licensed to use. All of the steps I am telling you are detailed in the 
printed documentation that should accompany the CD.

Next run the pdecode executable from the CD for your host platform. You 
can also run the windows version and ftp the tar files to the host 
environment. Most non-root users can not mount a CD on there unix 
systems. You will be prompted for the keys. If all goes well you will 
have a tar file cooresponding to each software that you provided a 
license key for in the output directory that you specified.

Now that you have the tar files on your host development platform move 
them to where you want the root epilogue directory to be then untar.
'tar -xvf *.tar' will work if those are the only tar files in the 
current directory. If hosted on windows use winzip or cygwin gnu tar.

Once you have your source tree you need to build according to the 
instructions in the quickstart guide. They are too much to go into here
you get to play with a dreadful little program called makmak. It is a 
makefile generator. You feed it a config file that you have configured 
for your target in this case MIPS. It outputs the makefile. If you mess
up the config it messes up the makefile. Eventually you should be able
to get a working makefile.

Then you can make clean; make all in the root of envoy. If the build 
completes successfully you did everything right. It is possible to mess 
up the config and have dependencies on unlicensed (missing) sources.

After you build envoy you will want to add INCLUDE_SNMPD into the 
configNet.h of your BSP and add LIB_EXTRA = libenvoy.a libecommon.a
and MACH_EXTRA += snmplib.o in the makefile for your BSP.

You *may* want to rebuild the mibcomp (emissary) if you use deprecated
features such as -array or -man.h or -man output formats. I had to do 
that because we are using them.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How to find out how long something has taken to execute
Date: 7 Aug 2002 22:02:24 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208072102.6fddd400@posting.google.com>
References: <3d51877e$1_2@nopics.sjc>

Hello,

Take a look at the timestamp driver facilities - routines prefixed
with sysTimestamp which are included when INCLUDE_TIMESTAMP is
defined, and your BSP's timer driver supports it (look in
target/src/drv/timer for the source to these). Your PPC board should
have a timestamp driver with sub-microsecond resolution - be careful
about rollovers!

You can find out more about timestamp drivers from this app note which
explains how to actually write one:

http://web2.windriver.com/windsurf/techpubs/ide/tornado/t101/w/vxworks/timestamp/timestamp.pdf

Alternatively, read the following section in the WindView manual:

http://web2.windriver.com/windsurf/techpubs/ide/tornado/t22/windview/wvug/x-timestamp.html

Of course, WindView might be useful for you too as it allows you to
define user events and capture logic analyser type traces, complete
with timestamps of course...

HTH,

John...

"Cedric Le Roux" <lerouxc@db.erau.edu> wrote in message news:<3d51877e$1_2@nopics.sjc>...
> Hello all,
> 
> I would like to know if it is possible to measure the time it takes for
> something to execute.  I would like to have the resolution in microseconds
> if possible.  I am using the system clock at 60Hz.   And the aux clock could
> not provide me with such high resolution.
> The system date and time registers only go to full seconds resolution, so
> that doesn't help either.
> Could WindView help me here?
> 
> I've also been told about something called the PIT.  Supposed to have very
> high resolution.  But I cannot find info on it.  Can anyone clarify this
> concept for me?
> 
> Specs:
> 
> VxWorks 5.4
> VME PowerPC (SBS Power7e)
> 
> 
> thanks

---------------------------

Newsgroups: comp.os.vxworks
Subject: Looking for RTL8019AS driver source code for vxworks
Date: 7 Aug 2002 22:27:28 -0700
From: siyoungmoon@hanmail.net (Art Siyoung Moon)
Organization: http://groups.google.com/
Message-ID: <e914b53e.0208072127.7c932763@posting.google.com>

Hi all,
I ues vxwork 5.4.
I am looking for RTL8019AS driver source code for vxworks.
If anyone have it or any infomation about RTL8019AS driver source code.
Please send me email
Thanks in advance.

siyoungmoon@hanmail.net

---------------------------

Newsgroups: comp.os.vxworks
Subject: Harddisk problem details?
Date: 7 Aug 2002 23:52:31 -0700
From: oe_zhou@sohu.com (oe_zhou)
Organization: http://groups.google.com/
Message-ID: <758a30ff.0208072252.4b9b46e3@posting.google.com>

hi,every one.
I am using mpc860+VxWorks.
Now i want to add a harddisk and i use dos file system.
Can i connect the harddish directly to the mpc860?
Or must i implement the PCI bus and use IDE controller 
to add the disk?
help me .....thanks!

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How do I obtain a interface name?
Date: 8 Aug 2002 02:12:31 -0700
From: chwin@china.com (Adom)
Organization: http://groups.google.com/
Message-ID: <92dbccc1.0208080112.2ebf0089@posting.google.com>
References: <c47fbd59.0208070727.2f6cb9ca@posting.google.com>

struct ifnet* pIfNet;
pIfNet = ifunit(1);

NAME = pIfNet->if_name + pIfNet->if_unit 

or
//get all interface
pIfNet = ifnet;
while (pIfNet)
{
   get if_name and if_unit
   pIfNet = pIfNet->if_next;
}

tony.pedley@powerconv.alstom.com (TonyP) wrote in message news:<c47fbd59.0208070727.2f6cb9ca@posting.google.com>...
> I wish to use a function which obtains the name(s) of the ethernet interfaces
> e.g like the ones shown in ifShow. 
> 
> Anyone any idea how to do it?
> 
> Presumably there must be a way of parsing through a list of interfaces. 
> 
> Hoping
> 
> All the best
> 
> Tony

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Attach system Error!
Date: 8 Aug 2002 02:44:15 -0700
From: seasoblue2000@yahoo.com.cn (seasoblue)
Organization: http://groups.google.com/
Message-ID: <e82d8e83.0208080144.59809699@posting.google.com>
References: <e82d8e83.0208070041.4ee2aa37@posting.google.com> <r7j49.28759$7n5.5299@sccrnsc01> <unj49.28013$nF5.6897@sccrnsc02>

Hi, drdiags
  yes, I can watch the "tWdbTask" running by use 'i' command under
host shell. But I wonder that how I can load the app(Is it the .out
file?) from target shell, which command should I use under the shell?
    Thank you for your reply!

Best Regards,

   seasoblue

"drdiags" <drdiags@attbi.com> wrote in message news:<unj49.28013$nF5.6897@sccrnsc02>...
> Sorry,
> 
>    I missed the note about downloading the *.out file, so unless you loaded
> the app from the
> target shell, never mind...............
> 
> "drdiags" <drdiags@attbi.com> wrote in message
> news:r7j49.28759$7n5.5299@sccrnsc01...
> > Hello Seasoblue,
> >
> >    Have you verified that the "tWdbTask" is running? I ran into a problem
> > where
> > if INCLUDE_WDB_TASK was not also defined, then the WDB task was not
> > spawned. This would cause any connection through the target server to
> > fail. So, if you have a serial connection with a symbol table include
>  along
...........

---------------------------

Newsgroups: comp.os.vxworks
Subject: telnet
Date: Thu, 8 Aug 2002 18:09:54 +0800
From: "eric" <lihao@accesssolutions.com.tw>
Organization: DCI HiNet
Message-ID: <aitg9k$gjd@netnews.hinet.net>

Sir,
   Very thank many people give me advice about tftp in vxworks.  Now I have
a problem about telnet server function.  I have a program is console menu.
I'm want to show the menu via telnet protocol to telnet client.  I am
include telnetd and target shell and in usrAppInit.c setting
telnetdParserSet([menu function name]); but it don't work!!  May I loss some
step or menu function must modify?  Please give me some advice.  Thank you
again!!

Best Regards,

lihao
2002.08.08

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Fri Aug  9 04:03:20 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Fri Aug  9 04:03:23 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Fri Aug  9 04:03:16 PDT 2002

        Subject: Looking for ne2000 driver source code for vxworks
        Subject: trouble in ping with a larger packet on ne2000 Ethernet
        Subject: National DP83815 - VxWorks
        Subject: netClusterGet()
        Subject: TCP - 1 minute
        Subject: netClusterGet
        Subject: Problem after upgrade solaris from 2.6 to 2.8 and Tornado from 2.0 to 2.02
        Subject: follow-up - Re: buffering in vxShell/PTY
        Subject: vxWorks_romCompress
        Subject: Re: National DP83815 - VxWorks
        Subject: Boot time
        Subject: wdbSystemSuspend  : linker error
        Subject: taskLock()/taskUnlock() semantics
        Subject: TCP Application Hangs
        Subject: Micro Second delay/clock  implementation with an i960 proceesor
        Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
        Subject: Re: Looking for RTL8019AS driver source code for vxworks
        Subject: DHCP instead of BootP?
        Subject: SSP startup sequence
        Subject: Harddisk problem details?
        Subject: Re: taskLock()/taskUnlock() semantics
        Subject: Re: wdbSystemSuspend  : linker error
        Subject: Re: TCP - 1 minute
        Subject: Re: Boot time
        Subject: Re: Looking for ne2000 driver source code for vxworks
        Subject: Using Monitor in VxWorks
        Subject: Re: TCP Application Hangs
        Subject: Timing Analysis .. help ...
        Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
        Subject: Re: Harddisk problem details?
        Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
        Subject: Re: How do I obtain a interface name?
        Subject: Standalone image
        Subject: Re: Boot time
        Subject: Re: Boot time
        Subject: USB to USB
        Subject: where can I get ar386's help or it's manual?
        Subject: Re: about end of file indicator
        Subject: Re: application initialization in userAppInit() function
        Subject: Re: where can I get ar386's help or it's manual?

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Looking for ne2000 driver source code for vxworks
Date: 8 Aug 2002 05:18:43 -0700
From: rover2@163.com (rover)
Organization: http://groups.google.com/
Message-ID: <7f29c2ad.0208080418.6bcdadf9@posting.google.com>

Hi all:
I ues vxwork 5.4.
I am looking for NE2000 driver source code for vxworks.
If anyone have it or any infomation about ne2000 driver source code.
Please send me email
Thanks in advance.

rover2@163.com

---------------------------

Newsgroups: comp.os.vxworks
Subject: trouble in ping with a larger packet on ne2000 Ethernet
Date: 8 Aug 2002 05:39:38 -0700
From: rover2@163.com (rover)
Organization: http://groups.google.com/
Message-ID: <7f29c2ad.0208080439.62e501b7@posting.google.com>

Hi,all

I have a 486(pc104) with a ne2000 ethernet card,use vxworks 5.4.

when I ping it with a litter packet(<1500 bytes),it is ok,but when the
packet is larger(>1500),ping is failed! why?

blow is:

ping 192.168.144.1 -t -l 1500 

Pinging 192.168.144.1 with 1500 bytes of data: 

Request timed out. 
Request timed out. 
Request timed out. 
Request timed out. 

ping 192.168.144.1 -t -l 1472 

Pinging 192.168.144.1 with 1472 bytes of data: 

Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64 
Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64 
Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64 

regards

---------------------------

Newsgroups: comp.os.vxworks
Subject: National DP83815 - VxWorks
Date: 8 Aug 2002 06:35:47 -0700
From: gst3376@rit.edu (Guven Turgut)
Organization: http://groups.google.com/
Message-ID: <e5ea166c.0208080535.1fa3c0af@posting.google.com>

I am using Tornado 2.02 and VxWorks 5.4 on a PC104 box-Prometheus from
Diamond Systems.

I am having trouble compiling the VxWorks image with the ethernet
drivers that were shipped with the Prometheus system.  I am following
the directions given with the files and I get an error when I run the
'make vxWorks' command.  The error message reads as follows:

..............partialImage.o(.data+0xe64):C:\Tornado\target\proj\Vx_eth\default\C:\Tornado\target\config
\pc486\sysLib.c: undefined reference to `dp83815Load'
make: *** [vxWorks] Error 0x1

Done.

It seems to be looking for a function named dp83815Load and not being
able to locate it.

Anyone see this error before?

---------------------------

Newsgroups: comp.os.vxworks
Subject: netClusterGet()
Date: Thu, 8 Aug 2002 13:53:58 +0000 (UTC)
From: "Dieter Bahlmann" <velouria@ccii.co.za>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <954a53bbde46af6cf8be62ee593a5435.38592@mygate.mailgate.org>

Hi,

Is there a way to force netClusterGet() to allocate clusters on a 8-byte
boundary?

Thanks

- -- 
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

---------------------------

Newsgroups: comp.os.vxworks
Subject: TCP - 1 minute
Date: Thu, 8 Aug 2002 14:57:42 +0100
From: "DMC" <david.mccorkindale@nospam.com>
Message-ID: <3d527803$1@pull.gecm.com>

Hi people,

when a TCP socket is closed the assorted blocks associated with the socket
remain locked for 1 minute. Is there any way of reducing this time? I have
played around with idle/persist values in tcp_timer.h, but nothing seems to
make any difference.

Ta,

David.

---------------------------

Newsgroups: comp.os.vxworks
Subject: netClusterGet
Date: Thu, 8 Aug 2002 14:13:41 +0000 (UTC)
From: "Dieter Bahlmann" <velouria@ccii.co.za>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <20f83611b0d38cb388c37e3589a5e2d0.38592@mygate.mailgate.org>

Hi,

Is there a way I can force netClusterGet to allocate clusters on a
8-byte boundary?

Thanks

- -- 
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

---------------------------

Newsgroups: comp.os.vxworks
Subject: Problem after upgrade solaris from 2.6 to 2.8 and Tornado from 2.0 to 2.02
Date: 8 Aug 2002 07:53:14 -0700
From: richness@sina.com (richard)
Organization: http://groups.google.com/
Message-ID: <465da109.0208080653.6d83441a@posting.google.com>

hi, all
   I am now working with the following development environment: sun
workstation
running solaris 2.8, Tornado 2.02 (vxworks 5.4.2) after upgrade from
solaris
2.6 and Tornado 2.0, with MVME2431(PPC750) cpu board and MVME512-004
A/D & D/A
board. 
   I wrote a module to sample the voltage and output some data and it
worked well before upgrade. And now it seems to hang(no response).
   Does anybody have any tips or suggestion?

   Thanks in advance.

   Richard.

---------------------------

Newsgroups: comp.os.vxworks
Subject: follow-up - Re: buffering in vxShell/PTY
Date: Thu, 08 Aug 2002 16:59:38 GMT
From: Pete Flugstad <pete_flugstad@nospam.icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <3D52A37A.6060104@nospam.icon-labs.com>
References: <AkC39.357$UU1.212@sccrnsc03> <488e459a.0208052046.7de9dbd4@posting.google.com>

Okay, I got a couple of replies on this.  As noted in the newsgroup
followups, there's a bug on the Master side of the PTY driver that
prevents select from operating properly until the slave->master PTY
buffer is full (or at least, that's the symptom).  I don't currently
have access to WindSurf, so I can't see if there are any patches for
this.  Does anyone know if there are?

I tried a couple of ways to work around this:

- - swapping the master and slave side of the PTY didn't seem to work,
   although I probably should have tested it some more.

- - I tried setting timing out the select and using FIONREAD to see if
   there were any bytes available on the master, but this didn't work
   either.  I expect this is related to the bug?

- - I tried setting the master to non-blocking I/O (FIONBIO) then
   periodically reading from it to see if there was anything
   available, but this didn't seem to work either.  I expect that
   the PTY driver does not support non-blocking I/O.

My final solution, which appears to work OK, was to create a seperate
thread and just have it block on reading from the masterFD.  My original
thread deals with the other direction.  This is probably the only way
to work around this, as it seems to be how the vxWorks TelnetD code
works, as it spawns two tasks when a new connection comes in - the only
reason I can think to have two tasks is to work around this problem.

I'm not terribly happy about having to have a seperate thread for
this hanging around, but it does seem to work OK.

This bug appears to have been around for quite a while now (I see
references to it in Google's archive from 1999).  I'd be surprised
if WRS hasn't fixed it by now.

Thanks for all the help!!!

Pete Flugstad
Icon Labs

---------------------------

Newsgroups: comp.os.vxworks
Subject: vxWorks_romCompress
Date: Thu, 08 Aug 2002 19:29:42 GMT
From: Raymond Kristiansen <raymond@spam.no>
Message-ID: <3D52C6A6.5EACECD1@spam.no>

Hello.

I am using Tornado 2.0 for development of my vxWorks system running on
ppc with BSP mv2400. I have currently a bootable project that is loaded
by a bootrom over a network connection. This works just fine. 

However, my next step is to make the system standalone, with no network
connection, so I am aiming at building a vxWorks_romCompress image. When
I change the build specification to build this image instead of the
previous vxWorks-image, and build the project, I encounter the following
error:

ldppc -X -N -e _romInit  -Ttext ff000100 -Tdata 00800000 \
    romInit.o romStart.o hawkSmc.o hawkI2c.o sysMotVpdUtil.o version.o 
/usr/wind/target/lib/libPPC604gnuvx.a vxWorks.Z.o -o vxWorks_romCompress
romStart.o: In function `romStart':
romStart.o(.text+0x2a): undefined reference to `binArrayStart'
romStart.o(.text+0x2e): undefined reference to `binArrayStart'
romStart.o(.text+0x3a): undefined reference to `binArrayStart'
romStart.o(.text+0x3e): undefined reference to `binArrayStart'
romStart.o(.text+0x52): undefined reference to `binArrayEnd'
romStart.o(.text+0x56): undefined reference to `binArrayEnd'
make: *** [vxWorks_romCompress] Error 1

When scanning through the file bootInit.c, I found a remark (note
03f,23may95,yao) that it has
been "define[d] binArrayStart and binArrayEnd for PowerPC because tools
don't prepend "_"."

So what I did was add the lines

#if     ((CPU_FAMILY == MIPS) || (CPU_FAMILY==PPC))
#define binArrayStart   _binArrayStart
#define binArrayEnd     _binArrayEnd
#endif

in the file romStart.c. Now the build succeeds, and vxWorks_romCompress
is created, but after programming my flash with this image, nothing
happens when I switch on the power.

Has anybody else encountered the same problem? Is the define-workaround
that I have added not good enough?

Any help or hints are most appreciated.

Regards,

Ray

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: National DP83815 - VxWorks
Date: 8 Aug 2002 13:15:26 -0700
From: michaelsander@yahoo.com (Michael Sander)
Organization: http://groups.google.com/
Message-ID: <f3e309ab.0208081215.5a85fd08@posting.google.com>
References: <e5ea166c.0208080535.1fa3c0af@posting.google.com>

Having played with the DP83815 VxWorks driver software available at
National's website,
http://www.national.com/appinfo/networks/0,1804,829,00.html#Others

I would guess that you haven't linked in the library 
/Tornado/target/libDp/obj<BSP>/dp83815End.o

Hope that helps,

Michael <dot> Sander <at> EmhartGlass <dot> com

gst3376@rit.edu (Guven Turgut) wrote in message news:<e5ea166c.0208080535.1fa3c0af@posting.google.com>...
> I am using Tornado 2.02 and VxWorks 5.4 on a PC104 box-Prometheus from
> Diamond Systems.
> 
> I am having trouble compiling the VxWorks image with the ethernet
> drivers that were shipped with the Prometheus system.  I am following
> the directions given with the files and I get an error when I run the
> 'make vxWorks' command.  The error message reads as follows:
> 
> ..............partialImage.o(.data+0xe64):C:\Tornado\target\proj\Vx_eth\default\C:\Tornado\target\config
> \pc486\sysLib.c: undefined reference to `dp83815Load'
> make: *** [vxWorks] Error 0x1
> 
> Done.
> 
> It seems to be looking for a function named dp83815Load and not being
> able to locate it.
> 
> Anyone see this error before?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Boot time
Date: Thu, 08 Aug 2002 20:43:21 GMT
From: Raymond Kristiansen <raymond@spam.no>
Message-ID: <3D52D7E7.4370262D@spam.no>

Hello.

I am using Tornado 2.0 for development of my vxWorks system running on
ppc with BSP mv2400.

I have created a bootrom and programmed my flash with it, so that the
system loads vxWorks images over the network on startup. However, the
boot time for the bootrom is endless (at least it seems that way when
you do it often :)

I have a terminal emulator connected to the serial port of the CPU card.
After power on and the autoboot countdown, the boot parameters (boot
device, unit number, processor number etc.) is displayed. After this,
there is a delay for about one minute before the system
continues with:

Attached TCP/IP interface to dc0.
Attaching network interface lo0... done.
Loading... 1916904
Starting at 0x100000... 

After this, is takes about 15 seconds before the system is up and
running.

Is this normal? I would've thought it to be done on a few seconds, and
that the image loading would be the major time-consuming part, but this
only takes a few seconds. Does anyone have any idea why it is taking so
long?

Regards,

Ray

---------------------------

Newsgroups: comp.os.vxworks
Subject: wdbSystemSuspend  : linker error
Date: 8 Aug 2002 13:54:34 -0700
From: rishi_bhargava@yahoo.com (Rishi Bhargava)
Organization: http://groups.google.com/
Message-ID: <2474871.0208081254.16b73a2f@posting.google.com>

I tried to include the call to wdbSystemSuspend in my code as I want
to suspend the system at an early stage so that I can conenct the
target and start a debugger. When I include this I get a linker error
: undefined reference ...

I am linking the libPPC860gnuvx.a. Can anybody suggest what could be
goinf wrong .. any include definitions I need??

thanks
Rishi

---------------------------

Newsgroups: comp.os.vxworks
Subject: taskLock()/taskUnlock() semantics
Date: 8 Aug 2002 14:06:09 -0700
From: emil@lapel.com (Emil Rojas)
Organization: http://groups.google.com/
Message-ID: <754b62e0.0208081306.200b3715@posting.google.com>

I would like to clarify the semantics of task locking in VxWorks.
The reference manual says, &#8220;the task that calls [taskLock()]
will be the only task that is allowed to execute, unless the task
explicitly gives up the CPU &#8230;&#8221;  So lets say I have the
following code:

	taskLock ();
l1:
	if (abc)
	     semTake (semId, INFINITE_TIMEOUT);
l2:
	abc = false;
	taskUnlock ();

If abc is true and I call semTake(), the code blocks and sometime
later after another taske gives the semaphore and I arrive at l2, is
task locking true?  I.e. do I returned with tasks locked from the
semaphore?  Another way of asking this, is are tasks always locked at
label l2?

---------------------------

Newsgroups: comp.os.vxworks
Subject: TCP Application Hangs
Date: 8 Aug 2002 14:18:00 -0700
From: harin.sandhoo@itt.com (Harin)
Organization: http://groups.google.com/
Message-ID: <e33b8f50.0208081317.544c902@posting.google.com>

Hi All,

Does anyone know of a reason that the Send-Q on a TCP socket will be
full, but the receive buffer on its peer will be empty?

I have two machines, each running a client and a server.   Each
client, opens up its own socket to the other's server and proceeds to
send data at the same time.  After some time, the clients appear to
hang.

I have checked the various clusters using mbufShow,
netStackDataPoolShow, netStackSysPoolShow, and they all appear to have
plenty of clusters available.  Eventually, the call to send returns
S_errno_EPIPE, which I believe is cause by the fact the Send-Qs are
full.

I do have TCP_NODELAY enabled, as all of the messages I am sending are
below 1020 bytes.  The problem appears to occur when I inject bit
errors into the message traffic.  If I do not inject the errors, it
appears to work fine.

I am fairly new to socket programming, but I thought since each client
had their own socket, there wouldn't be a deadlock issue.  Does this
sounds like an application error?  Any help would be greatly
appreciated.

TIA,
Harin

---------------------------

Newsgroups: comp.os.vxworks
Subject: Micro Second delay/clock  implementation with an i960 proceesor
Date: 8 Aug 2002 15:00:50 -0700
From: amraja8@hotmail.com (Raja)
Organization: http://groups.google.com/
Message-ID: <7da11b7d.0208081400.6ef10df4@posting.google.com>

Hi
	I need to implement a microsecond clock or any timer that can provide
me delay in the order of micro seconds. I tried using system clock
which gives me a clock rate of 60 ticks per second only. I tried to
get the clock rate of the auxiliary clock and it seems to be the same
60 ticks  per second.

I would  highly appreciate if you could let me know of any ideas
regarding this.

Note: I am using VME board (VMETRO - Power Midas 1200s )that has an an
i960 processor and am running in Tornado 2.0 IDE( for i960 )

Thank you,
Raja.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
Date: Thu, 08 Aug 2002 19:38:38 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D5300FE.9B64E3B@bellsouth.net>
References: <7da11b7d.0208081400.6ef10df4@posting.google.com>

Raja wrote:

> Hi
>         I need to implement a microsecond clock or any timer that can provide
> me delay in the order of micro seconds. I tried using system clock
> which gives me a clock rate of 60 ticks per second only. I tried to
> get the clock rate of the auxiliary clock and it seems to be the same
> 60 ticks  per second.
>
> I would  highly appreciate if you could let me know of any ideas
> regarding this.
>
> Note: I am using VME board (VMETRO - Power Midas 1200s )that has an an
> i960 processor and am running in Tornado 2.0 IDE( for i960 )
>
> Thank you,
> Raja.

You are extremely unlikely to get a _reliable_ and _reproducible_ delay
in th eorder of 10s of microseconds.  There is just too much uncertainty
caused by interrupts and suchlike.  There are hardware devices out there
that can give you an int in X microseconds, where X is quite small.  But
the fact remains that a delay of say 10 uSec that is _always_ 10, not 9 and not
11 microseconds is available only in statre machines and such, not
in software.  Withour knowing exactly what you are doing,
I can't give you a better answer.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Looking for RTL8019AS driver source code for vxworks
Date: 8 Aug 2002 20:01:38 -0700
From: wys205@sina.com (John Wang)
Organization: http://groups.google.com/
Message-ID: <d94a7556.0208081901.1ef690cb@posting.google.com>
References: <e914b53e.0208072127.7c932763@posting.google.com>

siyoungmoon@hanmail.net (Art Siyoung Moon) wrote in message news:<e914b53e.0208072127.7c932763@posting.google.com>...
> Hi all,
> I ues vxwork 5.4.
> I am looking for RTL8019AS driver source code for vxworks.
> If anyone have it or any infomation about RTL8019AS driver source code.
> Please send me email
> Thanks in advance.
> 
> siyoungmoon@hanmail.net

RTL8019AS is compatible with NE2000,just use the driver source code of
NE2000 instead of RTL8019AS.

Hope this help!

John

---------------------------

Newsgroups: comp.os.vxworks
Subject: DHCP instead of BootP?
Date: 8 Aug 2002 20:10:56 -0700
From: dannyc@harmonicinc.com (Danny Cohen)
Organization: http://groups.google.com/
Message-ID: <41c1fd2b.0208081910.54b2a4e4@posting.google.com>

Can i change the bootrom code to take the boot parameters from DHCP
server instead of BootP server?
What are the pros and cons of DHCP server?

---------------------------

Newsgroups: comp.os.vxworks
Subject: SSP startup sequence
Date: 8 Aug 2002 20:22:10 -0700
From: yanh_yang@163.com (lilyang)
Organization: http://groups.google.com/
Message-ID: <9dad7e1f.0208081922.21f8d58c@posting.google.com>

Hi,I am a SSP beginner
I want to know SSP startup entry point and its startup sequence,what
is the relation between BSP and SSP and how they are related?
Would you like to help me?
Thanks!

---------------------------

Newsgroups: comp.os.vxworks
Subject: Harddisk problem details?
Date: 8 Aug 2002 20:45:10 -0700
From: oe_zhou@sohu.com (oe_zhou)
Organization: http://groups.google.com/
Message-ID: <758a30ff.0208081945.4836062e@posting.google.com>

hi,every one.
I am using mpc860+VxWorks.
Now i want to add a harddisk and i use dos file system.
Can i connect the harddish directly to the mpc860?
Or must i implement the PCI bus and use IDE controller 
to add the disk?
help me .....thanks!

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: taskLock()/taskUnlock() semantics
Date: 8 Aug 2002 21:59:12 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208082059.46ed20c9@posting.google.com>
References: <754b62e0.0208081306.200b3715@posting.google.com>

Hello,

emil@lapel.com (Emil Rojas) wrote in message news:<754b62e0.0208081306.200b3715@posting.google.com>...
> I would like to clarify the semantics of task locking in VxWorks.
> The reference manual says, &#8220;the task that calls [taskLock()]
> will be the only task that is allowed to execute, unless the task
> explicitly gives up the CPU &#8230;&#8221;  So lets say I have the
> following code:
> 
> 	taskLock ();
> l1:
> 	if (abc)
> 	     semTake (semId, INFINITE_TIMEOUT);
> l2:
> 	abc = false;
> 	taskUnlock ();
> 
> If abc is true and I call semTake(), the code blocks and sometime
> later after another taske gives the semaphore and I arrive at l2, is
> task locking true?  I.e. do I returned with tasks locked from the
> semaphore?  Another way of asking this, is are tasks always locked at
> label l2?

Yes, the scheduler will be locked at l2 irrespective of the state of
abc. Your understanding of manual is correct.

HTH,

John...

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: wdbSystemSuspend  : linker error
Date: 8 Aug 2002 22:01:58 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208082101.2cea1ca3@posting.google.com>
References: <2474871.0208081254.16b73a2f@posting.google.com>

Hello,

You don't have the WDB system mode debugging support in your kernel.
Check for INCLUDE_WDB_SYS and also that you have the WDB connection
set to WDB_COMM_END or WDB_COMM_SERIAL (the older WDB_COMM_NETWORK
excludes system mode support as it does not support polling mode).

HTH,

John...

rishi_bhargava@yahoo.com (Rishi Bhargava) wrote in message news:<2474871.0208081254.16b73a2f@posting.google.com>...
> I tried to include the call to wdbSystemSuspend in my code as I want
> to suspend the system at an early stage so that I can conenct the
> target and start a debugger. When I include this I get a linker error
> : undefined reference ...
> 
> I am linking the libPPC860gnuvx.a. Can anybody suggest what could be
> goinf wrong .. any include definitions I need??
> 
> thanks
> Rishi

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: TCP - 1 minute
Date: 8 Aug 2002 22:10:22 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208082110.60c3d09d@posting.google.com>
References: <3d527803$1@pull.gecm.com>

Hello,

"DMC" <david.mccorkindale@nospam.com> wrote in message news:<3d527803$1@pull.gecm.com>...
> Hi people,
> 
> when a TCP socket is closed the assorted blocks associated with the socket
> remain locked for 1 minute. Is there any way of reducing this time?

Not without having the source to the network stack. 

> I have
> played around with idle/persist values in tcp_timer.h, but nothing seems to
> make any difference.

It wouldn't unless you had the source to the network stack and rebuilt
that. It amazes me how many people think that they can change a value
in a system header file and magically the pre-compiled binaries they
have will be updated...

I guess the next question I would ask would be why do you want to
change the time? If you simply wish to reuse the port number on the
local end (say to re-open a server's listening port after restarting
it), check out the SO_REUSEADDR option to setsockopt().

If you are running out of buffers in the network stack for new
connections, try increasing the size of the network stack buffers
sufficiently to cope with the expected peak rate of socket consumption
for 2 minutes. You should look for App Note 51 on WindSurf (in the
Java section), and also investigate the number of receive and transmit
buffers configured into your network interface driver via the load
string (usually found in configNet.h or a sysXXX.c file in the BSP).

HTH,

John...

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Boot time
Date: 8 Aug 2002 22:12:52 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208082112.31896fc@posting.google.com>
References: <3D52D7E7.4370262D@spam.no>

Hello,

Do you have a large amount of RAM, or a mapping in sysPhysMemDesc for
a large block of PCI or VME space? These can result in the startup
time being increased as the system generates all the PTEs in the MMU
hash table for them.

You could look into using the BAT registers to map any large areas of
PCI or VME space instead; these are much more efficient for larger
mappings (though less flexible in terms of cache and access rights
management).

HTH,

John...

Raymond Kristiansen <raymond@spam.no> wrote in message news:<3D52D7E7.4370262D@spam.no>...
> Hello.
> 
> I am using Tornado 2.0 for development of my vxWorks system running on
> ppc with BSP mv2400.
> 
> I have created a bootrom and programmed my flash with it, so that the
> system loads vxWorks images over the network on startup. However, the
> boot time for the bootrom is endless (at least it seems that way when
> you do it often :)
> 
> I have a terminal emulator connected to the serial port of the CPU card.
> After power on and the autoboot countdown, the boot parameters (boot
> device, unit number, processor number etc.) is displayed. After this,
> there is a delay for about one minute before the system
> continues with:
> 
> Attached TCP/IP interface to dc0.
> Attaching network interface lo0... done.
> Loading... 1916904
> Starting at 0x100000... 
> 
> After this, is takes about 15 seconds before the system is up and
> running.
> 
> Is this normal? I would've thought it to be done on a few seconds, and
> that the image loading would be the major time-consuming part, but this
> only takes a few seconds. Does anyone have any idea why it is taking so
> long?
> 
> Regards,
> 
> Ray

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Looking for ne2000 driver source code for vxworks
Date: 8 Aug 2002 22:21:12 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208082121.35e1fb98@posting.google.com>
References: <7f29c2ad.0208080418.6bcdadf9@posting.google.com>

Hello,

You should be aware that the source code to any part of VxWorks is
licensed, as are the binaries. Obtaining it from somebody other than
Wind River would constitute a crime, probably for both the sender and
yourself since they are unlikely to be authorised to distribute it,
and you do not have a license for it (otherwise you'd have it).

You could try asking your FAE and/or WRS customer support for it, or
for a newer version of the driver. Do you have the latest patches
installed (e.g. cumulative patch 4)?

HTH,

John...

rover2@163.com (rover) wrote in message news:<7f29c2ad.0208080418.6bcdadf9@posting.google.com>...
> Hi all:
> I ues vxwork 5.4.
> I am looking for NE2000 driver source code for vxworks.
> If anyone have it or any infomation about ne2000 driver source code.
> Please send me email
> Thanks in advance.
> 
> rover2@163.com

---------------------------

Newsgroups: comp.os.vxworks
Subject: Using Monitor in VxWorks
Date: 8 Aug 2002 22:50:07 -0700
From: ajay_garg@delhi.tcs.co.in (Ajay Garg)
Organization: http://groups.google.com/
Message-ID: <ae7893e8.0208082150.d49e@posting.google.com>

Hi,
   I want a character based menu to run on a VxWorks machine. I want
to embed my application code with image itself. That seems fine. But
while displaying i want my application to show formatted output like

    1. File                        2. Edit
  so when i press a tab it should go from File to Edit or vice-versa.
And if I press ctrl+F it should go to File munu etc.
   In case of DOS, we have display as memory pages and we can write to
those memory locations and control many things. But how this is
possible in case of VxWorks.

Any help will be appreciated greatly.
Thanks in advance,
Regards,
Ajay garg.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: TCP Application Hangs
Date: 8 Aug 2002 22:53:57 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208082153.79d83087@posting.google.com>
References: <e33b8f50.0208081317.544c902@posting.google.com>

Hello,

What are the priorities of the tasks? Is it possible that the senders
are starving the receivers of CPU time? Are your senders working in
blocking mode?

Another thing to check would be the receive and transmit buffers for
the network driver itself. They are configured via the END load string
(check configNet.h for your BSP).

Finally, the EPIPE error is only generated when the connection is
dropped, and not directly as a result of the buffers being full. You
might want to try running the transfer in just one direction to start
with and see if that is working correctly. Or, assuming that there is
not too much code, try posting it here and people will see if they can
spot any mistakes.

From the code, all I can see that could cause EPIPE is something
closing the local socket (I assume this is not the case), or the
remote end disconnecting for some reason. Now, if the data is not
flowing, the TCP timout could be disconnecting you.

HTH,

John...

harin.sandhoo@itt.com (Harin) wrote in message news:<e33b8f50.0208081317.544c902@posting.google.com>...
> Hi All,
> 
> Does anyone know of a reason that the Send-Q on a TCP socket will be
> full, but the receive buffer on its peer will be empty?
> 
> I have two machines, each running a client and a server.   Each
> client, opens up its own socket to the other's server and proceeds to
> send data at the same time.  After some time, the clients appear to
> hang.
> 
> I have checked the various clusters using mbufShow,
> netStackDataPoolShow, netStackSysPoolShow, and they all appear to have
> plenty of clusters available.  Eventually, the call to send returns
> S_errno_EPIPE, which I believe is cause by the fact the Send-Qs are
> full.
> 
> I do have TCP_NODELAY enabled, as all of the messages I am sending are
> below 1020 bytes.  The problem appears to occur when I inject bit
> errors into the message traffic.  If I do not inject the errors, it
> appears to work fine.
> 
> I am fairly new to socket programming, but I thought since each client
> had their own socket, there wouldn't be a deadlock issue.  Does this
> sounds like an application error?  Any help would be greatly
> appreciated.
> 
> TIA,
> Harin

---------------------------

Newsgroups: comp.os.vxworks
Subject: Timing Analysis .. help ...
Date: 8 Aug 2002 22:58:34 -0700
From: mridulgupta1@yahoo.com (Mridul Gupta)
Organization: http://groups.google.com/
Message-ID: <fef31d0c.0208082158.5c30214e@posting.google.com>

Hi All,

I am a newbie to VxWorks. I have written some C++ code for our
project. Now I want the timing analysis of that code. We are using
MPC860 processor. Processor documentation gives the details about
assembly instruction execution timings. Where can I find C/C++
instruction execution timings.

Thanx and Best Regards
Mridul

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
Date: 8 Aug 2002 22:59:32 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208082159.5b347afb@posting.google.com>
References: <7da11b7d.0208081400.6ef10df4@posting.google.com> <3D5300FE.9B64E3B@bellsouth.net>

Hello,

Probably your best bet in cases where the delay is as small as this is
to loop reading from an uncached location in, say, ROM where the
number of cycles to get the value is (a) known, and (b) constant. Of
course, it is very much board dependent, but it should be pretty
accurate since it will be controlled by the system clock in most
cases.

HTH,

John...

joe durusau <durusau@bellsouth.net> wrote in message news:<3D5300FE.9B64E3B@bellsouth.net>...
> Raja wrote:
> 
> > Hi
> >         I need to implement a microsecond clock or any timer that can provide
> > me delay in the order of micro seconds. I tried using system clock
> > which gives me a clock rate of 60 ticks per second only. I tried to
> > get the clock rate of the auxiliary clock and it seems to be the same
> > 60 ticks  per second.
> >
> > I would  highly appreciate if you could let me know of any ideas
> > regarding this.
> >
> > Note: I am using VME board (VMETRO - Power Midas 1200s )that has an an
> > i960 processor and am running in Tornado 2.0 IDE( for i960 )
> >
> > Thank you,
> > Raja.
> 
> You are extremely unlikely to get a _reliable_ and _reproducible_ delay
> in th eorder of 10s of microseconds.  There is just too much uncertainty
> caused by interrupts and suchlike.  There are hardware devices out there
> that can give you an int in X microseconds, where X is quite small.  But
> the fact remains that a delay of say 10 uSec that is _always_ 10, not 9 and not
> 11 microseconds is available only in statre machines and such, not
> in software.  Withour knowing exactly what you are doing,
> I can't give you a better answer.
> 
> Speaking only for myself,
> 
> Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Harddisk problem details?
Date: Fri, 09 Aug 2002 06:11:08 GMT
From: "John Kevin Fabiani" <nospam@nospam.net>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <02J49.187$n16.11894986@newssvr15.news.prodigy.com>
References: <758a30ff.0208081945.4836062e@posting.google.com>

The WindRiver mbx860 BSP implements the PCI bus
and uses the IDE controller.

- -j

"oe_zhou" <oe_zhou@sohu.com> wrote in message
news:758a30ff.0208081945.4836062e@posting.google.com...
> hi,every one.
> I am using mpc860+VxWorks.
> Now i want to add a harddisk and i use dos file system.
> Can i connect the harddish directly to the mpc860?
> Or must i implement the PCI bus and use IDE controller
> to add the disk?
> help me .....thanks!

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
Date: Fri, 09 Aug 2002 06:26:46 GMT
From: brede.thurmann@kongsberg-simrad.com (BT)
Message-ID: <3d536089.261013838@news.eunet.no>
References: <7da11b7d.0208081400.6ef10df4@posting.google.com>

You should can change the rate of the AUX clock with
sysAuxClkRateSet() in the ranges the timer can support.

The AUX clock is "normally" not used for any other purpose than "spy"
so as long as you are not using spy you can do whatever you want with
the AUX clock.

Brede

On 8 Aug 2002 15:00:50 -0700, amraja8@hotmail.com (Raja) wrote:

>Hi
>	I need to implement a microsecond clock or any timer that can provide
>me delay in the order of micro seconds. I tried using system clock
>which gives me a clock rate of 60 ticks per second only. I tried to
>get the clock rate of the auxiliary clock and it seems to be the same
>60 ticks  per second.
>
>I would  highly appreciate if you could let me know of any ideas
>regarding this.
>
>Note: I am using VME board (VMETRO - Power Midas 1200s )that has an an
>i960 processor and am running in Tornado 2.0 IDE( for i960 )
>
>Thank you,
>Raja.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How do I obtain a interface name?
Date: 9 Aug 2002 00:18:47 -0700
From: g_ch@21cn.com (GANGCHENG)
Organization: http://groups.google.com/
Message-ID: <ce273620.0208082318.30df1be2@posting.google.com>
References: <c47fbd59.0208070727.2f6cb9ca@posting.google.com> <92dbccc1.0208080112.2ebf0089@posting.google.com>

Refer to the VxWorks help
NAME
 ifunit( ) - map an interface name to an interface structure pointer

SYNOPSIS

struct ifnet *ifunit
    (
    char * ifname /* name of the interface */
    )

But firstly I don't know the interface name. I am afraid this method 
/*ifunit(1)*/ is not useful.

B.T.W How to set the interface name ?

chwin@china.com (Adom) wrote in message news:<92dbccc1.0208080112.2ebf0089@posting.google.com>...
> struct ifnet* pIfNet;
> pIfNet = ifunit(1);
> 
> NAME = pIfNet->if_name + pIfNet->if_unit 
> 
> or
> //get all interface
> pIfNet = ifnet;
> while (pIfNet)
> {
>    get if_name and if_unit
>    pIfNet = pIfNet->if_next;
> }
> 
> tony.pedley@powerconv.alstom.com (TonyP) wrote in message news:<c47fbd59.0208070727.2f6cb9ca@posting.google.com>...
> > I wish to use a function which obtains the name(s) of the ethernet interfaces
> > e.g like the ones shown in ifShow. 
> > 
> > Anyone any idea how to do it?
> > 
> > Presumably there must be a way of parsing through a list of interfaces. 
> > 
> > Hoping
> > 
> > All the best
> > 
> > Tony

---------------------------

Newsgroups: comp.os.vxworks
Subject: Standalone image
Date: 9 Aug 2002 00:44:03 -0700
From: vividh@hotmail.com (rasayani)
Organization: http://groups.google.com/
Message-ID: <28809481.0208082344.59a5b47b@posting.google.com>

I am creating a standalone image for VxWorks. I can see all the
symbols using nmppc to the tmp.o file that is created. All the
definitions for the symbol table are present in config.h.
But when makesymtbl PPC tmp.o is run this creates a symTbl.c file with
zero symbols.
Can anyone explain me why?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Boot time
Date: 9 Aug 2002 01:49:36 -0700
From: maximilian.epple@gmx.net (Maximilian Epple)
Organization: http://groups.google.com/
Message-ID: <765c5e3c.0208090049.3f17ad7a@posting.google.com>
References: <3D52D7E7.4370262D@spam.no>

Hi Raymond,

you have to change the END_LOAD_STRING in your sysDec21x40End.c file
from
static char decParamTemplate[] =
"0x%x:0x%x:0x%x:0x%x:-1:-1:-1:0:0x%x";
to for example
static char decParamTemplate[] =
"0x%x:0x%x:0x%x:0x%x:-1:-1:-1:0:0x%x:0x8";

the last value in the string is the <phyAddr> and can range from 0 to
64 (0 is the default) and the CPU is probing all of them beginning
from 0 (or 0x8 in the second case) until it gets the good one, and
this is very time consuming. If I remember right, this change speeded
up the boot time for my board by about 40sec.

Besides that, I suppose that you are using 10MBit/s and not 100MBit/s.
If you want to work with 100MBit/s you have to apply T2CP4.

HTH
	Max

Raymond Kristiansen <raymond@spam.no> wrote in message news:<3D52D7E7.4370262D@spam.no>...
> Hello.
> 
> I am using Tornado 2.0 for development of my vxWorks system running on
> ppc with BSP mv2400.
> 
> I have created a bootrom and programmed my flash with it, so that the
> system loads vxWorks images over the network on startup. However, the
> boot time for the bootrom is endless (at least it seems that way when
> you do it often :)
> 
> I have a terminal emulator connected to the serial port of the CPU card.
> After power on and the autoboot countdown, the boot parameters (boot
> device, unit number, processor number etc.) is displayed. After this,
> there is a delay for about one minute before the system
> continues with:
> 
> Attached TCP/IP interface to dc0.
> Attaching network interface lo0... done.
> Loading... 1916904
> Starting at 0x100000... 
> 
> After this, is takes about 15 seconds before the system is up and
> running.
> 
> Is this normal? I would've thought it to be done on a few seconds, and
> that the image loading would be the major time-consuming part, but this
> only takes a few seconds. Does anyone have any idea why it is taking so
> long?
> 
> Regards,
> 
> Ray

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Boot time
Date: Fri, 09 Aug 2002 09:05:41 GMT
From: Raymond Kristiansen <raymond@spacetec.no>
Organization: Kongsberg Spacetec AS
Message-ID: <3D5385E4.B8AF8725@spacetec.no>
References: <3D52D7E7.4370262D@spam.no> <765c5e3c.0208090049.3f17ad7a@posting.google.com>

Hi Maximilian,

and thanks for the tip. The current line in my sysDec21x40End.c is

static char decParamTemplate[] = 
"0x%x:0x%x:0x%x:0x%x:-1:-1:-1:0:0x%x:0x%x:";

If I change this line to 

static char decParamTemplate[] =
"0x%x:0x%x:0x%x:0x%x:-1:-1:-1:0:0x%x:0x8";

what am I actually doing? How is 0x%x interpreted? And was 0x8 just a
suggestion, or is this number something that I should choose depending
on my system (RAM, Flash etc)?

Thanks,

Ray

Maximilian Epple wrote:
> 
> Hi Raymond,
> 
> you have to change the END_LOAD_STRING in your sysDec21x40End.c file
> from
> static char decParamTemplate[] =
> "0x%x:0x%x:0x%x:0x%x:-1:-1:-1:0:0x%x";
> to for example
> static char decParamTemplate[] =
> "0x%x:0x%x:0x%x:0x%x:-1:-1:-1:0:0x%x:0x8";
> 
> the last value in the string is the <phyAddr> and can range from 0 to
> 64 (0 is the default) and the CPU is probing all of them beginning
> from 0 (or 0x8 in the second case) until it gets the good one, and
> this is very time consuming. If I remember right, this change speeded
> up the boot time for my board by about 40sec.
> 
> Besides that, I suppose that you are using 10MBit/s and not 100MBit/s.
> If you want to work with 100MBit/s you have to apply T2CP4.
> 
> HTH
>         Max
> 
> Raymond Kristiansen <raymond@spam.no> wrote in message news:<3D52D7E7.4370262D@spam.no>...
> > Hello.
> >
> > I am using Tornado 2.0 for development of my vxWorks system running on
> > ppc with BSP mv2400.
> >
> > I have created a bootrom and programmed my flash with it, so that the
> > system loads vxWorks images over the network on startup. However, the
> > boot time for the bootrom is endless (at least it seems that way when
> > you do it often :)
> >
> > I have a terminal emulator connected to the serial port of the CPU card.
> > After power on and the autoboot countdown, the boot parameters (boot
> > device, unit number, processor number etc.) is displayed. After this,
> > there is a delay for about one minute before the system
> > continues with:
> >
> > Attached TCP/IP interface to dc0.
> > Attaching network interface lo0... done.
> > Loading... 1916904
> > Starting at 0x100000...
> >
> > After this, is takes about 15 seconds before the system is up and
> > running.
> >
> > Is this normal? I would've thought it to be done on a few seconds, and
> > that the image loading would be the major time-consuming part, but this
> > only takes a few seconds. Does anyone have any idea why it is taking so
> > long?
> >
> > Regards,
> >
> > Ray

- -- 
- ----------------------------------------------------------
Raymond Kristiansen, M. Sc.
Kongsberg Spacetec AS		Phone: +47 77 66 08 28
Prestvannveien 38		Fax  : +47 77 65 58 59
N-9292 Troms			Mail : raymond@spacetec.no
- ----------------------------------------------------------

---------------------------

Newsgroups: comp.os.vxworks
Subject: USB to USB
Date: Fri, 9 Aug 2002 11:02:45 +0100
From: "Paul" <peedeesee@hotmail.com>
Organization: Logica UK Ltd
Message-ID: <1028887367.61862@ernani.logica.co.uk>

I've been trying to find a pc/104 processor baord that can run VxWorks
AND act as a USB device (not host!), but with no success.

My next option is to use a pc/104 SBC with a USB host controller and
then use a 'USB to USB' chip to connect to my host PC.

The question is, what does a 'USB to USB' chip enumerate as under
VxWorks, i.e. how do I drive it? Does it look like an ethernet comms
device?

Thanks in advance for any advice/experience.

---------------------------

Newsgroups: comp.os.vxworks
Subject: where can I get ar386's help or it's manual?
Date: 9 Aug 2002 03:17:46 -0700
From: rover2@163.com (rover)
Organization: http://groups.google.com/
Message-ID: <7f29c2ad.0208090217.758f8a6b@posting.google.com>

Hi,all

where can I get ar386's help or it's manual?

regards.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: about end of file indicator
Date: 9 Aug 2002 03:26:45 -0700
From: forvxworks@rediffmail.com (Anand)
Organization: http://groups.google.com/
Message-ID: <f14c07cb.0208090226.7d2752cd@posting.google.com>
References: <f14c07cb.0208032248.1d5b1dc9@posting.google.com> <488e459a.0208041408.2cd72097@posting.google.com> <f14c07cb.0208052125.21435e2@posting.google.com> <488e459a.0208060812.7a70ea8b@posting.google.com> <f14c07cb.0208062157.3f5f4eb3@posting.google.com>

Hi John,

Thanks for the good suggestion you gave me . it was a problem with
fseek. i replaced the fseek and the code worked.
Thank You
Anand.

forvxworks@rediffmail.com (Anand) wrote in message news:<f14c07cb.0208062157.3f5f4eb3@posting.google.com>...
> Hi,
>    i will try some piece of test code with the same filesystem and
> file without timer and fseek and see whether it works. going by your
> reply , i beleive it should work. will get back to you as soon as
> possible.
> Regards.
> Anand.
> 
> 
> 
> john_94501@yahoo.com (John) wrote in message news:<488e459a.0208060812.7a70ea8b@posting.google.com>...
> > Hello,
> > 
> > forvxworks@rediffmail.com (Anand) wrote in message news:<f14c07cb.0208052125.21435e2@posting.google.com>...
> > > HI John,
> > >       i am using the DOS filesystem. 
> > > 	The Target Server File System in the target server properties is
> > > enabled , i hope that does not make any difference.
> > >     the size of the file to be read is 3.74Mb & is on the host system.
> > > yes i am using fseek to skip some characters. also , the execution of
> > > the function in which all the reading of the file is done is
> > > controlled by a timer (having a timeout and reload value of 20ms)
> > 
> > What kind of timer? I hope not a watchdog one as the watchdog routines
> > run at interrupt level... I hope you meant a POSIX timer.
> > 
> > > and
> > > i want to cancel the timer when the end of file is reached. maybe as
> > > the function is attached to a timer , the loopback to the start of the
> > > file occurs.
> > >     also, please confirm , when the end-of-file indicator if set ,
> > > does it stay set thereafter or does it get reset after the start of
> > > the file is again read (whatever may be the reason).
> > 
> > If something causes the file pointer to move back from the end of the
> > file (an fseek() call for example), then feof() will not indicate that
> > the end has been reached. It is an instantaneous thing (i.e. it
> > returns the status of the file pointer at the instant it is called).
> >  
> > > please enlighten me on what may be the problem,
> > 
> > I would suggest a little piece of test code that just reads the file
> > at task level (i.e. no timers) and checks for the end of file. If that
> > works, then you know that the cause is not the file system or the
> > feof() function.
> > 
> > Also, if you have two threads of execution sharing a 'FILE *' think
> > very carefully about how that will work. I would recommend not sharing
> > them, even between a task and a POSIX timer routine. The POSIX timer
> > routine is running as a signal handler, so you need to be very careful
> > about the state of the thread that it interrupted. If both are working
> > on the file, it is unlikely to work all the time. Try to imagine that
> > the signal handler is a kind of ISR: it is best to do as little as
> > possible in it, especially things that could interfere with the main
> > thread's data or resources.
> > 
> > HTH,
> > 
> > John...
> > 
> > > Regards,
> > > Anand.
> > > 
> > > 
> > > 
> > > 
> > > john_94501@yahoo.com (John) wrote in message news:<488e459a.0208041408.2cd72097@posting.google.com>...
> > > > Hello,
> > > > 
> > > > I know of no file system that will automatically loop back to the
> > > > start of the file. Which file system are you using, or is it a device
> > > > that you are reading from?
> > > > 
> > > > AFAIK, feof() should work on any real file system; with devices it is
> > > > a little more uncertain as it depends on (a) whether end of file makes
> > > > sense, and (b) whether the driver writer supports the concept.
> > > > 
> > > > The only other thing that comes to mind as a potential cause is the
> > > > size of the file... are you working with very large (>=4GB) files?
> > > > Also, are you playing with the position using fseek(), or a similar
> > > > routine?
> > > > 
> > > > Sorry nothing much to go on, perhaps you could provide us more
> > > > information...
> > > > 
> > > > John...
> > > > 
> > > > 
> > > > forvxworks@rediffmail.com (Anand) wrote in message news:<f14c07cb.0208032248.1d5b1dc9@posting.google.com>...
> > > > > Hi All,
> > > > >     i have written the following code to loop until not end of file...
> > > > > 
> > > > >    while ( !feof(file-pointer))
> > > > >    { 
> > > > >    /* do some file reading */
> > > > > 
> > > > >    }
> > > > > 
> > > > >     but this does not exit when the end of file is reached. infact ,
> > > > > it starts again from the start of the file.
> > > > >     is there any problem with feof() function or is there any problem
> > > > > with the condition. also, i tried printing feof(file-pointer) in cout
> > > > > , but this always gives 0 (zero), even after end of file.
> > > > >     is there a better alternative to feof() ??
> > > > >     Thanks in advance.
> > > > > Regards.
> > > > > Anand.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: application initialization in userAppInit() function
Date: 9 Aug 2002 03:30:00 -0700
From: forvxworks@rediffmail.com (Anand)
Organization: http://groups.google.com/
Message-ID: <f14c07cb.0208090230.e617ab8@posting.google.com>
References: <f14c07cb.0208062204.4677f6b0@posting.google.com> <3D5153EB.304E6AFB@notifier-is.net>

Hi David,
   Thanks David. Your reply helped me a lot and the application gets
initialized in userAppInit()
Thank You.
Anand.

david lindauer <dlindauer@notifier-is.net> wrote in message news:<3D5153EB.304E6AFB@notifier-is.net>...
> Anand wrote:
> 
> > Hi All ,
> >     i want to call the project main function in userAppInit() function
> > so that my project gets spawned as soon as the target boots in Vxworks
> > and there would be no need to spawn it from the host shell. but when i
> > include the function call in userAppInit() , it gives an "undefined
> > reference" error.
> >     i have delcared the funtion prototype in userAppInit() and also
> > declared  the main function as extern in the main cpp file. but that
> > does not help. what other things are to be added for the project to be
> > spawned for userAppInit() function??
> >
> > Regards.
> > Anand.
> 
> when you declare a function in a C++ file, the compiler mangles the name
> differently than for a C file.  UserAppInit.C expects it one way, but
> since the function is in a C++ file it is declared another.
> 
> In your C++ file do this:
> 
> extern "C" mainfunc(parmlist)
> {
> }
> and that will cause the name to be the same for both files.
> 
> David

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: where can I get ar386's help or it's manual?
Date: Fri, 09 Aug 2002 06:40:31 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D539C1F.EFA8FF5D@bellsouth.net>
References: <7f29c2ad.0208090217.758f8a6b@posting.google.com>

rover wrote:

> Hi,all
>
> where can I get ar386's help or it's manual?
>
> regards.

If you are talking about the one in the gnu toolkit, see www.gnu.org, or
look
at the manuals that wrs should havew sent you.  There will be a section
on machine-specific stuff.

Speaking only for myself,

Joe Durusau

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Sat Aug 10 04:03:19 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Sat Aug 10 04:03:22 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Sat Aug 10 04:03:15 PDT 2002

        Subject: Re: Using Monitor in VxWorks
        Subject: Re: where can I get ar386's help or it's manual?
        Subject: Re: Timing Analysis .. help ...
        Subject: Re: DHCP instead of BootP?
        Subject: Re: Standalone image
        Subject: Re: SSP startup sequence
        Subject: Re: USB to USB
        Subject: Re: USB to USB
        Subject: Re: Standalone image
        Subject: Re: vxWorks_romCompress
        Subject: Re: Standalone image
        Subject: termios library
        Subject: Re: Boot time
        Subject: kernelTimeSlice and double calculations
        Subject: Re: kernelTimeSlice and double calculations
        Subject: Re: TCP Application Hangs
        Subject: Re: where can I get ar386's help or it's manual?
        Subject: C++
        Subject: Re: Data abort of ARM940 when use vxWorks telnet
        Subject: Re: C++
        Subject: how to overload malloc and free function 
        Subject: Re: how to overload malloc and free function
        Subject: Re: how to overload malloc and free function
        Subject: Re: how to overload malloc and free function 
        Subject: symRemove command 
        Subject: Re: how to overload malloc and free function
        Subject: Re: how to overload malloc and free function
        Subject: Re: how to overload malloc and free function
        Subject: Problem with network traffic and file system ??
        Subject: Re: trouble in ping with a larger packet on ne2000 Ethernet
        Subject: Re: Data abort of ARM940 when use vxWorks telnet
        Subject: Re: Attach system Error!
        Subject: Re: C++
        Subject: How to debug in Toronto Prototyper?
        Subject: routeAdd failed??

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Using Monitor in VxWorks
Date: 9 Aug 2002 04:05:36 -0700
From: shyang@netease.com (yang)
Organization: http://groups.google.com/
Message-ID: <8446174.0208090305.1e2e6119@posting.google.com>
References: <ae7893e8.0208082150.d49e@posting.google.com>

ajay_garg@delhi.tcs.co.in (Ajay Garg) wrote in message news:<ae7893e8.0208082150.d49e@posting.google.com>...
> Hi,
>    I want a character based menu to run on a VxWorks machine. I want
> to embed my application code with image itself. That seems fine. But
> while displaying i want my application to show formatted output like
> 
>     1. File                        2. Edit
>   so when i press a tab it should go from File to Edit or vice-versa.
> And if I press ctrl+F it should go to File munu etc.
>    In case of DOS, we have display as memory pages and we can write to
> those memory locations and control many things. But how this is
> possible in case of VxWorks.
> 
> Any help will be appreciated greatly.
> Thanks in advance,
> Regards,
> Ajay garg.

I think you can write it and put it by com port

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: where can I get ar386's help or it's manual?
Date: Fri, 9 Aug 2002 11:12:24 +0000 (UTC)
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns926585D169D47borkhuisagerecom@192.19.193.66>
References: <7f29c2ad.0208090217.758f8a6b@posting.google.com>

rover2@163.com (rover) wrote:

> where can I get ar386's help or it's manual?

Look in the manu7als that were supplied by WindRiver. You can find it in 
the GNU Toolkit user's guide -> GNU Binary Utilities

Groeten,
        Johan

- -- 
        o o o o o o o . . .   _____________________________
       o      _____           ||    Johan Borkhuis        |
     .][__n_n_|DD[  ====_____  |    borkhuis@agere.com    |
    >(________|__|_[_________]_|__________________________|
    _/oo OOOOO oo`  ooo   ooo  'o!o!o                o!o!o`
=== VxWorks FAQ: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html ===

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Timing Analysis .. help ...
Date: Fri, 09 Aug 2002 19:13:42 -0400
From: Neil Horman <nhorman@lvl7.com>
Organization: WEBUSENET.com
Message-ID: <3D544CA6.2000006@lvl7.com>
References: <fef31d0c.0208082158.5c30214e@posting.google.com>
Reply-To: nhorman@lvl7.com

Mridul Gupta wrote:

> Hi All,
> 
> I am a newbie to VxWorks. I have written some C++ code for our
> project. Now I want the timing analysis of that code. We are using
> MPC860 processor. Processor documentation gives the details about
> assembly instruction execution timings. Where can I find C/C++
> instruction execution timings.
> 
> Thanx and Best Regards
> Mridul
> 

I'm afraid that there is no such thing.  C and C++ are for the most part 
non-deterministic in the number of assembly instructions any given line of C 
code will transform into.  The only way you can do reasonable timing analysis of 
your C/C++ code is to get a tool to measure it.  Depending on the application 
and platform, some people will have their software trigger pin state changes 
which can be monitored with an o-scope, while others buy software analysis 
packages.  At a base starting point VxWorks has a native api call called timeX 
which is simmilar to the standard unix time utility.  It estimates the execution 
time of any one function.
Hope that helps
Neil

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: DHCP instead of BootP?
Date: Fri, 9 Aug 2002 13:17:03 +0200
From: "Rene Straub" <_remove_rene.straub@yetnet.ch>
Organization: Swisscom IP+ (post doesn't reflect views of Swisscom)
Message-ID: <aj08b5$qnr$1@rex.ip-plus.net>
References: <41c1fd2b.0208081910.54b2a4e4@posting.google.com>

"Danny Cohen" <dannyc@harmonicinc.com> wrote in message
news:41c1fd2b.0208081910.54b2a4e4@posting.google.com...
> Can i change the bootrom code to take the boot parameters from DHCP
> server instead of BootP server?
> What are the pros and cons of DHCP server?

Hoi Danni,

as you might know DHCP is an extension of the BOOTP protocol.
Because of this many DHCP servers also respond to BOOTP
requests (i.e. the ISC server (www.isc.org) does this ).
If your DHCP server works this way you don't need to change
the client part.

In general the DHCP protocol is more complex than BOOTP. It
features about 7 messages, whereas BOOTP only uses 2. DHCP
can issue dynamic IP addresses based on a lease scheme. A
client needs to renew an obtained lease, if it wan't to keep the
current IP address. BOOTP supplies an IP address, but without
a lease scheme (the client may use the IP address forever).

Yours
- - Rene

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Standalone image
Date: Fri, 09 Aug 2002 12:23:37 GMT
From: David Cooper <dcooper000@adelphia.net>
Organization: none
Message-ID: <MPG.17bd7e498245d4a398969f@news1.news.adelphia.net>
References: <28809481.0208082344.59a5b47b@posting.google.com>

What version of Tornado are you using ?  I seem to remember seeing this 
problem and I believe there was a problem with an earlier version 
makesymtbl.  Check on WindSurf for an update.

...david

In article <28809481.0208082344.59a5b47b@posting.google.com>, 
vividh@hotmail.com says...
> I am creating a standalone image for VxWorks. I can see all the
> symbols using nmppc to the tmp.o file that is created. All the
> definitions for the symbol table are present in config.h.
> But when makesymtbl PPC tmp.o is run this creates a symTbl.c file with
> zero symbols.
> Can anyone explain me why?
> 

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: SSP startup sequence
Date: Fri, 09 Aug 2002 12:28:12 GMT
From: David Cooper <dcooper000@adelphia.net>
Organization: none
Message-ID: <MPG.17bd7f546fbeb9059896a0@news1.news.adelphia.net>
References: <9dad7e1f.0208081922.21f8d58c@posting.google.com>

A BSP is a Board Support Package, an SSP is a Switch Control Package.  
The difference is that the BSP is contains all the board routines and 
drivers for the board that you are working with less any of the Switch 
Processor interfaces.  The SSP contains all the Switch Processor 
interface routines.  

TMS (Tornado for Managed Switches) is shipped with reference copies of 
various BSPs and SSPs. If you have one of those reference boards, the BSP 
and SSP should come up without modification.

...david

In article <9dad7e1f.0208081922.21f8d58c@posting.google.com>, 
yanh_yang@163.com says...

> Hi,I am a SSP beginner
> I want to know SSP startup entry point and its startup sequence,what
> is the relation between BSP and SSP and how they are related?
> Would you like to help me?
> Thanks!
> 

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: USB to USB
Date: Fri, 09 Aug 2002 12:29:53 GMT
From: David Cooper <dcooper000@adelphia.net>
Organization: none
Message-ID: <MPG.17bd7fbbb7561de19896a1@news1.news.adelphia.net>
References: <1028887367.61862@ernani.logica.co.uk>

Wind River sells a separate USB Developers Kit (both Host and Peripheral 
stacks) -- USB drivers are NOT contained in the standard vxWorks / 
Tornado distribution.

...david

In article <1028887367.61862@ernani.logica.co.uk>, peedeesee@hotmail.com 
says...
> I've been trying to find a pc/104 processor baord that can run VxWorks
> AND act as a USB device (not host!), but with no success.
> 
> My next option is to use a pc/104 SBC with a USB host controller and
> then use a 'USB to USB' chip to connect to my host PC.
> 
> The question is, what does a 'USB to USB' chip enumerate as under
> VxWorks, i.e. how do I drive it? Does it look like an ethernet comms
> device?
> 
> Thanks in advance for any advice/experience.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: USB to USB
Date: Fri, 9 Aug 2002 13:43:59 +0100
From: "Paul" <peedeesee@hotmail.com>
Organization: Logica UK Ltd
Message-ID: <1028897040.726175@ernani.logica.co.uk>
References: <1028887367.61862@ernani.logica.co.uk> <MPG.17bd7fbbb7561de19896a1@news1.news.adelphia.net>

Hi David,

Thanks for that, but I already have the USB Kit. What I need to know
is how these USB to USB devices appear. It would seem that they
pretend to be an Ethernet connection.

Is this correct? If so, then does the VxWorks USB kit provide suitable
drivers? I'm still waiting for the hardware, hence I can't test it myself.

"David Cooper" <dcooper000@adelphia.net> wrote in message
news:MPG.17bd7fbbb7561de19896a1@news1.news.adelphia.net...
> Wind River sells a separate USB Developers Kit (both Host and Peripheral
> stacks) -- USB drivers are NOT contained in the standard vxWorks /
> Tornado distribution.
>
> ...david
>
> In article <1028887367.61862@ernani.logica.co.uk>, peedeesee@hotmail.com
> says...
> > I've been trying to find a pc/104 processor baord that can run VxWorks
> > AND act as a USB device (not host!), but with no success.
> >
> > My next option is to use a pc/104 SBC with a USB host controller and
> > then use a 'USB to USB' chip to connect to my host PC.
> >
> > The question is, what does a 'USB to USB' chip enumerate as under
> > VxWorks, i.e. how do I drive it? Does it look like an ethernet comms
> > device?
> >
> > Thanks in advance for any advice/experience.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Standalone image
Date: Fri, 09 Aug 2002 13:44:29 +0100
From: Paul Caswell <paul.caswell@baesystems.com>
Organization: Land & Sea Systems
Message-ID: <3D53B92D.1E1CFB3F@baesystems.com>
References: <28809481.0208082344.59a5b47b@posting.google.com>

I encountered a similar problem with our build a while ago.  When I
build a vxWorks_romResident image and download it to our target the
symbols were all available (viewed in ICE).  When I do the same for a
vxWorks_rom image then most of the sysmbols were gone.  I asked Wind
River and they were able to repeat the problem but not suggest a
solution (said it might be a bug). Six months down the line and still no
answer.

Not much help I know but if you do find an answer then please let me
know.
Regards
Paul

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: vxWorks_romCompress
Date: 9 Aug 2002 06:00:51 -0700
From: mark.fanara@trans.ge.com (Mark Fanara)
Organization: http://groups.google.com/
Message-ID: <ec724ed9.0208090500.3b2671e0@posting.google.com>
References: <3D52C6A6.5EACECD1@spam.no>

We currently build this image use the Tornado 2 IDE. I don't recall
all of the steps required to do it, but it was not as complicated as
what you are trying. I suggest contacting your WindRiver Field
Application Engineer (assuming you have your maintenance contract
current) and asking for instructions.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Standalone image
Date: Fri, 9 Aug 2002 13:18:44 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3D53C1D9.8050803@spamm.me.l8s.co.uk>
References: <28809481.0208082344.59a5b47b@posting.google.com> <3D53B92D.1E1CFB3F@baesystems.com>

Paul Caswell wrote:
> I encountered a similar problem with our build a while ago.  When I
> build a vxWorks_romResident image and download it to our target the
> symbols were all available (viewed in ICE).  When I do the same for a
> vxWorks_rom image then most of the sysmbols were gone.  I asked Wind
> River and they were able to repeat the problem but not suggest a
> solution (said it might be a bug). Six months down the line and still no
> answer.

I ended up using a non-standard build to get the application (etc) into
a compressed ROM image with all the networking and the 'standalone'
symbol table (although I used a 'hand generated' one that contained
only the useful symbols).  All the bits for the build are there, it
is just a hybrid of all the standard images.

	David

---------------------------

Newsgroups: comp.os.vxworks
Subject: termios library
Date: 9 Aug 2002 06:22:47 -0700
From: chs@lucent.com (ChengHsin Hsu)
Organization: http://groups.google.com/
Message-ID: <8b53eb96.0208090522.54a32fda@posting.google.com>

Hi All,

   I would like to have termios library ported to our MIPS64 system.
It looks like I need to provide a set of wrapping function call to
either ttyLib or lower level UART operations. Am I right until now?
   Is there any sample code or template which can acceslarte my
porting work?
   Thanks a bunch!

Regards,
Bear.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Boot time
Date: Fri, 09 Aug 2002 15:35:27 +0000
From: max@nospam.com
Organization: EPFL
Message-ID: <3D53E13F.9F4BD5C2@nospam.com>
References: <3D52D7E7.4370262D@spam.no> <765c5e3c.0208090049.3f17ad7a@posting.google.com> <3D5385E4.B8AF8725@spacetec.no>

Hi Raymond,

Raymond Kristiansen wrote:
> 
> Hi Maximilian,
> 
> and thanks for the tip. The current line in my sysDec21x40End.c is
> 
> static char decParamTemplate[] =
> "0x%x:0x%x:0x%x:0x%x:-1:-1:-1:0:0x%x:0x%x:";
> 
> If I change this line to
> 
> static char decParamTemplate[] =
> "0x%x:0x%x:0x%x:0x%x:-1:-1:-1:0:0x%x:0x8";
> 
> what am I actually doing? How is 0x%x interpreted?

I don't know! But by reading the code of the file (and the comments
within) I have the impression that this string will be parsed and that a
0x%x is only a placeholder and will be replaced by a default value when
the string is parsed.

> And was 0x8 just a
> suggestion, or is this number something that I should choose depending
> on my system (RAM, Flash etc)?
> 
0x8 works for my board. The idea is to begin with 0 and to increase the
value. The higest one which works is the good one.

> Thanks,
> 
> Ray
> 
> Maximilian Epple wrote:
> >
> > Hi Raymond,
> >
> > you have to change the END_LOAD_STRING in your sysDec21x40End.c file
> > from
> > static char decParamTemplate[] =
> > "0x%x:0x%x:0x%x:0x%x:-1:-1:-1:0:0x%x";
> > to for example
> > static char decParamTemplate[] =
> > "0x%x:0x%x:0x%x:0x%x:-1:-1:-1:0:0x%x:0x8";
> >
> > the last value in the string is the <phyAddr> and can range from 0 to
> > 64 (0 is the default) and the CPU is probing all of them beginning
> > from 0 (or 0x8 in the second case) until it gets the good one, and
> > this is very time consuming. If I remember right, this change speeded
> > up the boot time for my board by about 40sec.
> >
> > Besides that, I suppose that you are using 10MBit/s and not 100MBit/s.
> > If you want to work with 100MBit/s you have to apply T2CP4.
> >
> > HTH
> >         Max
> >
> > Raymond Kristiansen <raymond@spam.no> wrote in message news:<3D52D7E7.4370262D@spam.no>...
> > > Hello.
> > >
> > > I am using Tornado 2.0 for development of my vxWorks system running on
> > > ppc with BSP mv2400.
> > >
> > > I have created a bootrom and programmed my flash with it, so that the
> > > system loads vxWorks images over the network on startup. However, the
> > > boot time for the bootrom is endless (at least it seems that way when
> > > you do it often :)
> > >
> > > I have a terminal emulator connected to the serial port of the CPU card.
> > > After power on and the autoboot countdown, the boot parameters (boot
> > > device, unit number, processor number etc.) is displayed. After this,
> > > there is a delay for about one minute before the system
> > > continues with:
> > >
> > > Attached TCP/IP interface to dc0.
> > > Attaching network interface lo0... done.
> > > Loading... 1916904
> > > Starting at 0x100000...
> > >
> > > After this, is takes about 15 seconds before the system is up and
> > > running.
> > >
> > > Is this normal? I would've thought it to be done on a few seconds, and
> > > that the image loading would be the major time-consuming part, but this
> > > only takes a few seconds. Does anyone have any idea why it is taking so
> > > long?
> > >
> > > Regards,
> > >
> > > Ray
> 
> --
> ----------------------------------------------------------
> Raymond Kristiansen, M. Sc.
> Kongsberg Spacetec AS           Phone: +47 77 66 08 28
> Prestvannveien 38               Fax  : +47 77 65 58 59
> N-9292 Troms                   Mail : raymond@spacetec.no
> ----------------------------------------------------------

---------------------------

Newsgroups: comp.os.vxworks
Subject: kernelTimeSlice and double calculations
Date: 9 Aug 2002 07:31:06 -0700
From: R.Ruhland@gmx.de (Rudolf Ruhland)
Organization: http://groups.google.com/
Message-ID: <7a73a529.0208090631.75760f95@posting.google.com>

The following code shows some interesting errors when calculating with
double, as soon as timeslicing is active.

Any ideas why this happens. I am using a PC platform (Pentium III).

/* Code snippet */

#include <stdio.h>
#include <math.h>
#include <semLib.h>
#include <tickLib.h>
#include <sysLib.h>
#include <memLib.h>
#include <taskLib.h>
#include <logLib.h>

/*++++ LOCAL FUNCTIONS DEFINITION
+++++++++++++++++++++++++++++++++++++++++++*/
static void doubleFPPTest(void)
{
  double       doubleDummy;
  unsigned int nBurnNow = 1612345;
  unsigned int ticksNoContention = 100;
  unsigned int ticksNow = 102;
  unsigned int intRound = 0;
  unsigned int intCount = 0;
  unsigned char charLine [80];

  while (TRUE)
  {
    doubleDummy = ((double) (nBurnNow)) * (((double)
(ticksNoContention)) / ((double)(ticksNow)));
    intCount++;
    intRound = iround (doubleDummy);
    if ( (iround (doubleDummy) != 1580730) ||  (intRound != 1580730) )
    {
      sprintf (charLine, "FPP calculation error: %10f %10d Count:
%10d", doubleDummy, intRound, intCount);
      logMsg ("%s\n", (int) charLine, 0, 0, 0, 0, 0);
    }
    taskDelay (1);
  }
}

static void doubleFPPTestWithoutDelay(void)
{
  double       doubleDummy;
  unsigned int nBurnNow = 1612345;
  unsigned int ticksNoContention = 100;
  unsigned int ticksNow = 102;
  unsigned int intRound = 0;
  unsigned int intCount = 0;
  unsigned char charLine [80];

  while (TRUE)
  {
    doubleDummy = ((double) (nBurnNow)) * (((double)
(ticksNoContention)) / ((double)(ticksNow)));
    intCount++;
    intRound = iround (doubleDummy);
    if ( (iround (doubleDummy) != 1580730) ||  (intRound != 1580730) )
    {
      sprintf (charLine, "FPP calculation error: %10f %10d Count:
%10d", doubleDummy, intRound, intCount);
      logMsg ("%s\n", (int) charLine, 0, 0, 0, 0, 0);
    }
    if (intCount > 100000)
    {
      taskDelay (1);
      intCount = 0;
    }
  }
}

static void switchKernelTimeSlice(void)
{
  while (TRUE)
  {
    kernelTimeSlice(1);
    taskDelay (500);
    kernelTimeSlice(0);
    taskDelay (500);
  }
}  

void FPPTest(void)
{
  int i;
  for (i=1;i<10 ;i++ )
  {
    taskSpawn(NULL, 100, 0, 3000, 
      (FUNCPTR)(&doubleFPPTest), 
      0,0,0,0,0,0,0,0,0,0);
  }
  taskSpawn(NULL, 101, 0, 3000, 
    (FUNCPTR)(&doubleFPPTestWithoutDelay), 
    0,0,0,0,0,0,0,0,0,0);

  for (i=1;i<10 ;i++ )
  {
    taskSpawn(NULL, 100, 0, 3000, 
      (FUNCPTR)(&doubleFPPTest), 
      0,0,0,0,0,0,0,0,0,0);
  }
  taskSpawn(NULL, 101, 0, 3000, 
    (FUNCPTR)(&doubleFPPTestWithoutDelay), 
    0,0,0,0,0,0,0,0,0,0);
  taskSpawn(NULL, 50, 0, 3000, 
    (FUNCPTR)(&switchKernelTimeSlice), 
    0,0,0,0,0,0,0,0,0,0);
}

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: kernelTimeSlice and double calculations
Date: Fri, 9 Aug 2002 10:43:42 -0400
From: Keith Arner <karner@pit.comms.marconi.com>
Organization: Marconi
Message-ID: <313680C9A886D511A06000204840E1CF67A193-100000@whq-msgusr-02.pit.comms.marconi.com>
References: <7a73a529.0208090631.75760f95@posting.google.com>
Reply-To: Keith Arner <keith.arner@marconi.com>

On 9 Aug 2002, Rudolf Ruhland wrote:

> The following code shows some interesting errors when calculating with
> double, as soon as timeslicing is active.
  [ ... snip ... ]
> void FPPTest(void)
> {
>   int i;
>   for (i=1;i<10 ;i++ )
>   {
>     taskSpawn(NULL, 100, 0, 3000,
>       (FUNCPTR)(&doubleFPPTest),
>       0,0,0,0,0,0,0,0,0,0);
>   }

You need to specify VX_FP_TASK in the "options" argument (arg 3) to
taskSpawn().  If you do not, then the scheduler is not garunteed to copy
the floating point registers on a context switch, which will appear at the
application level to be spontaneously corrupted floating point operations.

Keith

- -- 
mv ~karner /loony/bin

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: TCP Application Hangs
Date: 9 Aug 2002 07:54:53 -0700
From: harin.sandhoo@itt.com (Harin)
Organization: http://groups.google.com/
Message-ID: <e33b8f50.0208090654.3e04708f@posting.google.com>
References: <e33b8f50.0208081317.544c902@posting.google.com> <488e459a.0208082153.79d83087@posting.google.com>

The receivers are running at a priority of 51, and the senders at 52
so I don't think they are starving the receivers of CPU time.  I also
have round robin scheduling enabled for tasks of equal priority.

The senders are in blocking mode.  

I used the function endPoolShow to check the clusters available to the
network cards themselves and they appear to have plenty of space
available.  I do believe the EPIPE error is cause by the send
returning because of a timeout.

Do you think I should try increasing the size of the Send and Receive
Queues?  I have them set to 65K as it is, and thought that would be
more than enough.

I just don't understand why the Send-Q on one side would be full,
while the Recv-Q is empty.  The data does not seem to be flowing, but
I can not figure out what the cause is.

Thanks,
Harin

john_94501@yahoo.com (John) wrote in message news:<488e459a.0208082153.79d83087@posting.google.com>...
> Hello,
> 
> What are the priorities of the tasks? Is it possible that the senders
> are starving the receivers of CPU time? Are your senders working in
> blocking mode?
> 
> Another thing to check would be the receive and transmit buffers for
> the network driver itself. They are configured via the END load string
> (check configNet.h for your BSP).
> 
> Finally, the EPIPE error is only generated when the connection is
> dropped, and not directly as a result of the buffers being full. You
> might want to try running the transfer in just one direction to start
> with and see if that is working correctly. Or, assuming that there is
> not too much code, try posting it here and people will see if they can
> spot any mistakes.
> 
> From the code, all I can see that could cause EPIPE is something
> closing the local socket (I assume this is not the case), or the
> remote end disconnecting for some reason. Now, if the data is not
> flowing, the TCP timout could be disconnecting you.
> 
> HTH,
> 
> John...
> 
> 
> harin.sandhoo@itt.com (Harin) wrote in message news:<e33b8f50.0208081317.544c902@posting.google.com>...
> > Hi All,
> > 
> > Does anyone know of a reason that the Send-Q on a TCP socket will be
> > full, but the receive buffer on its peer will be empty?
> > 
> > I have two machines, each running a client and a server.   Each
> > client, opens up its own socket to the other's server and proceeds to
> > send data at the same time.  After some time, the clients appear to
> > hang.
> > 
> > I have checked the various clusters using mbufShow,
> > netStackDataPoolShow, netStackSysPoolShow, and they all appear to have
> > plenty of clusters available.  Eventually, the call to send returns
> > S_errno_EPIPE, which I believe is cause by the fact the Send-Qs are
> > full.
> > 
> > I do have TCP_NODELAY enabled, as all of the messages I am sending are
> > below 1020 bytes.  The problem appears to occur when I inject bit
> > errors into the message traffic.  If I do not inject the errors, it
> > appears to work fine.
> > 
> > I am fairly new to socket programming, but I thought since each client
> > had their own socket, there wouldn't be a deadlock issue.  Does this
> > sounds like an application error?  Any help would be greatly
> > appreciated.
> > 
> > TIA,
> > Harin

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: where can I get ar386's help or it's manual?
Date: Fri, 09 Aug 2002 15:23:03 GMT
From: "H. E. Taylor" <het@despam.autobahn.mb.ca>
Organization: MTS Internet
Message-ID: <3D53F8C8.6F4E@despam.autobahn.mb.ca>
References: <7f29c2ad.0208090217.758f8a6b@posting.google.com>

In article <7f29c2ad.0208090217.758f8a6b@posting.google.com>,
<rover2@163.com> rover wrote:
> 
> where can I get ar386's help or it's manual?
> 

	Versionitis may apply, but this is worth a look:
	http://www.delorie.com/gnu/docs/

<salaam>
- -het

- --
"progress in software has not followed Moore's law."  -John Holland 

Computer Links: http://www.autobahn.mb.ca/~het/clinks.html
H.E. Taylor  http://www.autobahn.mb.ca/~het/

---------------------------

Newsgroups: comp.os.vxworks
Subject: C++
Date: 9 Aug 2002 09:45:53 -0700
From: vxworks@india.com (V R R Raju)
Organization: http://groups.google.com/
Message-ID: <d6e2de0a.0208090845.455d6af1@posting.google.com>

Dear friends,

I am trying to work on C++ (BSP 486).I am newbie and I don't know how
to proceed with it. Can anybody please guide me.

Thanks in advance

with regards,

Rajneesh

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Data abort of ARM940 when use vxWorks telnet
Date: 9 Aug 2002 10:20:09 -0700
From: womeiwenhua@yahoo.com (womeiwenhua)
Organization: http://groups.google.com/
Message-ID: <72f5f520.0208090920.4deebf0b@posting.google.com>
References: <72f5f520.0208021439.198cfd52@posting.google.com> <488e459a.0208031118.5ec371db@posting.google.com>

Thank you. 

The data abort occur in function "_cksum".

After I add some task delay between the continual write socket, it
work well. I doubt there is a bug in the TCP for ARM. Is there any way
to debug/check the TCP queue?

john_94501@yahoo.com (John) wrote in message news:<488e459a.0208031118.5ec371db@posting.google.com>...
> Hello,
> 
> How about you perform a stack trace on the network task and find out
> for certain what caused it. Alternatively, if you don't have the
> target tools installed, or don't have serial WDB, try finding out
> which function 0x96bd80 is in from your image. That's not as useful as
> the full trace, but might tell you something.
> 
> HTH,
> 
> John...
> 
> womeiwenhua@yahoo.com (womeiwenhua) wrote in message news:<72f5f520.0208021439.198cfd52@posting.google.com>...
> > Hi All,
> > 
> > When I set up the telnet server in vxworks, network stack will crash
> > by "data abort".
> > 
> > Data abort
> > Exception Address: 0x0096bd80
> > Current Processor Status Register: 0x20000013
> > Task: 0xf15c6c "tNetTask"
> > 
> > 
> > My board is ARM940T, VxWorks 5.4.
> > 
> > This problem is most likely caused by the socket continul write(or
> > Read). Anyone meet this problem before?
> > 
> > Thank you!

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: C++
Date: Fri, 09 Aug 2002 17:29:54 GMT
From: "H. E. Taylor" <het@despam.autobahn.mb.ca>
Organization: MTS Internet
Message-ID: <3D541683.56DF@despam.autobahn.mb.ca>
References: <d6e2de0a.0208090845.455d6af1@posting.google.com>

In article <d6e2de0a.0208090845.455d6af1@posting.google.com>,
<vxworks@india.com> V R R Raju wrote:
> 
> I am trying to work on C++ (BSP 486).I am newbie and I don't know how
> to proceed with it. Can anybody please guide me.
> 

	You will need to be more explicit.
	What problems are you having?
	The language? Compiling?  Running the code?
	Can you compile & run Hello World++ ?
	ISTR, there is a bit in the manuals, btw.

<namaste>
- -het

- --
"...the games grown men play in corporate life I find 
revolting and I cannot personally participate." 
- - Seymour Cray [in his letter of resignation from CDC]

Computer Links: http://www.autobahn.mb.ca/~het/clinks.html
H.E. Taylor  http://www.autobahn.mb.ca/~het/

---------------------------

Newsgroups: comp.os.vxworks
Subject: how to overload malloc and free function 
Date: Fri, 09 Aug 2002 17:41:56 GMT
From: "Hadi" <sdfs@hotmail.com>
Organization: Magma Communications Ltd.
Message-ID: <E9T49.6935$V21.128580@news>

Can some one give me some hint how to overload those two function.
I want my own malloc functions to be called. and from my own malloc function
I will call vxWork malloc.
            Hadi
ps : email me at hdewan@spacebridge.com

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: how to overload malloc and free function
Date: 09 Aug 2002 14:24:46 -0400
From: Bill Pringlemeir <spam_account@sympatico.ca>
Organization: Bell Sympatico
Message-ID: <m2eld7j3f5.fsf@sympatico.ca>
References: <E9T49.6935$V21.128580@news>
Sender: bpringle@DeadDuck

 Hadi> Can some one give me some hint how to overload those two
 Hadi> function.  I want my own malloc functions to be called. and
 Hadi> from my own malloc function I will call vxWork malloc.

This can be done using the GNU Binutils.  The same question was asked
recently in relation to "ar386".  Basically all of the GNU Binutils
exist with an architecture suffix (like, "arm", "ppc", "386", "mips,
"68k", etc).

The following tools and commands are useful in this context.  I will use
the extention "tool".  Replace it with your arch.

Go to your "tornado/target/lib", and this will get the objects.

  arTOOL -x libARCH.a memLib.o memPartLib.o

You can see the symbols like this,

  objdumpTOOL --syms memLib.o

Create a library with the name changed,

  ldTOOL -r -o modMemLib.o -defsym _origCalloc=_calloc memLib.o

Nuke the old symbol,
  
  objcopyTOOL -N _calloc modMemLib.o newMemLib.o
 
You can replace the file in the "libARCH.a" or you can link with your
newMemLib.o first and then use the library.  As long you define calloc
in another file that is linked before the library, there won't be a
problem.  People calling "calloc" will call your code and it can call
"origCalloc".  You might not need the underscore `_', depending on
your particular tools.

An alternative method is to use a hex editor and change the symbol in
a copy of the memLib.o file.  Ie, change "_calloc" to "_CALLOC".

The above method is better as it can be implemented in a Makefile.
Hopefully this solves your memory problem.  I have just been looking
at porting LeakTracer or dmalloc today.
           
 Hadi> ps : email me at hdewan@spacebridge.com

No.  Stop posting to a newsgroup.  Help is free because we try to help
each other.  This seems to indicate that you have no intention of
helping anyone else.

hth (someone),
Bill Pringlemeir.

- -- 
Whales are fun, right?  I firmly believe that all young dudes should
get ten-inchers .

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: how to overload malloc and free function
Date: Fri, 9 Aug 2002 19:17:29 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3D541554.8030607@spamm.me.l8s.co.uk>
References: <E9T49.6935$V21.128580@news>

Hadi wrote:
> Can some one give me some hint how to overload those two function.
> I want my own malloc functions to be called. and from my own malloc function
> I will call vxWork malloc.

Well since malloc(size) is just a call to memPartAlloc(memSysPartId,size)
(or maybe a direct call of memPartAlignedAlloc).
You can overwrite the first instruction of malloc() so that it
is a jump to your routine, do what you want to do then call
memPartAlloc().
If your code is write protected there are some routines lurking
that will let you overwrite it (disassemble 'b' at look what it
uses to write in the breakpoint...)

	David

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: how to overload malloc and free function 
Date: Fri, 09 Aug 2002 20:17:20 GMT
From: "Hadi" <sdfs@hotmail.com>
Organization: Magma Communications Ltd.
Message-ID: <krV49.6968$V21.128675@news>
References: <E9T49.6935$V21.128580@news>

I was trying do this my removing the symbol from the symbol table. Then
later replacing it with
my own malloc address. I am having the following problem

- -> tmpAddr=100
- -> sType='p'
- ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
value = 0 = 0x0
- ->
- ->
- ->
- -> symRemove(sysSymTbl,"malloc",sType)
value = -1 = 0xffffffff
- ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
value = 0 = 0x0

As you can see the symRemove fails. Can some one tell me why
           Hadi
"Hadi" <sdfs@hotmail.com> wrote in message
news:E9T49.6935$V21.128580@news...
> Can some one give me some hint how to overload those two function.
> I want my own malloc functions to be called. and from my own malloc
function
> I will call vxWork malloc.
>             Hadi
> ps : email me at hdewan@spacebridge.com
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: symRemove command 
Date: Fri, 09 Aug 2002 20:43:35 GMT
From: "Hadi" <sdfs@hotmail.com>
Organization: Magma Communications Ltd.
Message-ID: <XPV49.6971$V21.128970@news>

Hi ,
I am trying to remove a symble. I am having hard time doing so Following is
what I am doing
- -> tmpAddr=100
- -> sType='p'
- ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
value = 0 = 0x0
- ->
- ->
- ->
- -> symRemove(sysSymTbl,"malloc",sType)
value = -1 = 0xffffffff
- ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
value = 0 = 0x0

As you can see "symRemove" function failed.
One more question when I load new module in vxWork. Under what symbol table
those new function go under
        Hadi

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: how to overload malloc and free function
Date: Fri, 9 Aug 2002 21:16:49 +0000 (UTC)
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns9265EC4DED68Bborkhuisagerecom@192.19.193.66>
References: <E9T49.6935$V21.128580@news> <krV49.6968$V21.128675@news>

"Hadi" <sdfs@hotmail.com> wrote:

> I was trying do this my removing the symbol from the symbol table. Then
> later replacing it with
> my own malloc address. I am having the following problem
> 
> -> tmpAddr=100
> -> sType='p'
> ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
> value = 0 = 0x0
> ->
> ->
> ->
> -> symRemove(sysSymTbl,"malloc",sType)
> value = -1 = 0xffffffff
> ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
> value = 0 = 0x0
> 
> 
> 
> As you can see the symRemove fails. Can some one tell me why

Even if that worked, it would not have worked for you. This would only 
work for objects loaded after these functioncalls, and I expect that you 
want to replace all calls. BTW: if you add the symbol to the symbol table 
thee new symbol will be used, so no need to use symRemove.

The only way to do this is replace the module in the libary that 
implements the malloc and free with your own module.

Groeten,
        Johan

- -- 
        o o o o o o o . . .   _____________________________
       o      _____           ||    Johan Borkhuis        |
     .][__n_n_|DD[  ====_____  |    borkhuis@agere.com    |
    >(________|__|_[_________]_|__________________________|
    _/oo OOOOO oo`  ooo   ooo  'o!o!o                o!o!o`
=== VxWorks FAQ: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html ===

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: how to overload malloc and free function
Date: Fri, 09 Aug 2002 22:09:38 GMT
From: "Hadi" <sdfs@hotmail.com>
Organization: Magma Communications Ltd.
Message-ID: <C4X49.6973$V21.129158@news>
References: <E9T49.6935$V21.128580@news> <krV49.6968$V21.128675@news> <Xns9265EC4DED68Bborkhuisagerecom@192.19.193.66>

Johan,
Thanks for the response. What I was trying to do is following
1. Find the address of vxWork malloc.
2. Load my own malloc function called "hadi_malloc"
3. Delete vxWork "malloc" from the symbol table
4. Add a new symbol called "malloc" whose adress points to "hadi_malloc"
5. Load the application(The application would try to resolve the reference
with the new malloc which is infact "hadi_malloc")

By the way do you know why the symRemove fails anyway. I would really
appreciate it.

- -> tmpAddr=100
- -> sType='p'
- ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
value = 0 = 0x0
- ->
- ->
- ->
- -> symRemove(sysSymTbl,"malloc",sType)
value = -1 = 0xffffffff
- ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
value = 0 = 0x0

When I load a module into memory which symbol table does it go to.
           Hadi

 "Johan Borkhuis" <borkhuis@agere.com> wrote in message
news:Xns9265EC4DED68Bborkhuisagerecom@192.19.193.66...
> "Hadi" <sdfs@hotmail.com> wrote:
>
> > I was trying do this my removing the symbol from the symbol table. Then
> > later replacing it with
> > my own malloc address. I am having the following problem
> >
> > -> tmpAddr=100
> > -> sType='p'
> > ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
> > value = 0 = 0x0
> > ->
> > ->
> > ->
> > -> symRemove(sysSymTbl,"malloc",sType)
> > value = -1 = 0xffffffff
> > ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
> > value = 0 = 0x0
> >
> >
> >
> > As you can see the symRemove fails. Can some one tell me why
>
> Even if that worked, it would not have worked for you. This would only
> work for objects loaded after these functioncalls, and I expect that you
> want to replace all calls. BTW: if you add the symbol to the symbol table
> thee new symbol will be used, so no need to use symRemove.
>
> The only way to do this is replace the module in the libary that
> implements the malloc and free with your own module.
>
> Groeten,
>         Johan
>
> --
>         o o o o o o o . . .   _____________________________
>        o      _____           ||    Johan Borkhuis        |
>      .][__n_n_|DD[  ====_____  |    borkhuis@agere.com    |
>     >(________|__|_[_________]_|__________________________|
>     _/oo OOOOO oo`  ooo   ooo  'o!o!o                o!o!o`
> === VxWorks FAQ: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html ===
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: how to overload malloc and free function
Date: Fri, 9 Aug 2002 22:22:46 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3D5440C3.2090609@spamm.me.l8s.co.uk>
References: <E9T49.6935$V21.128580@news> <krV49.6968$V21.128675@news>

Hadi wrote:
> I was trying do this my removing the symbol from the symbol table. Then
> later replacing it with
> my own malloc address. I am having the following problem

At best that will make your code link to the other symbol when loaded.
But that depends on which symbol table it being used by the loader.

After all you can change what the code you compile does by compiling
it with -Dmalloc=my_malloc.

Changing the symbol table is likely to be as useful as trying to change
a tcp timer by editing the .h file.

	David

---------------------------

Newsgroups: comp.os.vxworks
Subject: Problem with network traffic and file system ??
Date: Fri, 9 Aug 2002 16:49:18 -0700
From: "Parangodath, Binish [SC7:326:EXCH]" <binishp@americasm06.nt.com>
Organization: Nortel Networks
Message-ID: <aj1kam$8j9$1@bcarh8ab.ca.nortel.com>

Hi all,

I have two systems running VxWorks(PPC750 ,dosFs,connected by 100Mbps
ethernet).My application needs to send files from one system to another
through a TCP socket.The system which receives the file, writes it to a
flash disk and send a ack back to the sender indicating the status on the
same socket.But since the application on the sender will wait for only 100ms
for the ack from the receiver, sender used to timeout while sending huge
files.So I tried splitting huge file in to parts which will fit in to one
MTU and then sending.On the receiver side I keep the file open, write each
chunk to the flash and send an ack back to the application for each
chunk.Since the data transferred and written to the flash is small for each
transfer I thought sender would get the ack with in 100ms for each of the
chunks.
But when I have a huge file of 1MB out of the 850-900 chunks, for 4-5 chunks
it takes more than 500ms to get a response from the receiver.I tried timing
the events on the receiver from recieving the chunk,writing it and to send
back the reponse.Most of the cases it was less than a millisecond.But after
200-250 chunks time taken shoots up to 10-15 ms.

I tried TCP_NODELAY,modifying recv_buffer,flushing of the file for each
chunk,reducing priority of diskcacheUpdate task.None of these helped.

Can somebody help me in giving some pointers as to where the problem might
be ?

Thanks in advance,
Binish

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: trouble in ping with a larger packet on ne2000 Ethernet
Date: 9 Aug 2002 19:12:58 -0700
From: rover2@163.com (rover)
Organization: http://groups.google.com/
Message-ID: <7f29c2ad.0208091812.5eadfa30@posting.google.com>
References: <7f29c2ad.0208080439.62e501b7@posting.google.com>

rover2@163.com (rover) wrote in message news:<7f29c2ad.0208080439.62e501b7@posting.google.com>...
> Hi,all
> 
> I have a 486(pc104) with a ne2000 ethernet card,use vxworks 5.4.
> 
> when I ping it with a litter packet(<1500 bytes),it is ok,but when the
> packet is larger(>1500),ping is failed! why?
> 
> blow is:
> 
> ping 192.168.144.1 -t -l 1500 
> 
> Pinging 192.168.144.1 with 1500 bytes of data: 
> 
> Request timed out. 
> Request timed out. 
> Request timed out. 
> Request timed out. 
> 
> ping 192.168.144.1 -t -l 1472 
> 
> Pinging 192.168.144.1 with 1472 bytes of data: 
> 
> Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64 
> Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64 
> Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64 
> 
> regards

who can help me?

thank very much.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Data abort of ARM940 when use vxWorks telnet
Date: Sat, 10 Aug 2002 02:39:18 GMT
From: "drdiags" <drdiags@attbi.com>
Organization: AT&T Broadband
Message-ID: <q1%49.47468$nF5.10917@sccrnsc02>
References: <72f5f520.0208021439.198cfd52@posting.google.com> <488e459a.0208031118.5ec371db@posting.google.com> <72f5f520.0208090920.4deebf0b@posting.google.com>

Have you enabled Unaligned exceptions in your BSP? I think that you may
need to get a copy of the optimized in_chksum() routine, which I am told
was available on the ARM website, if you have. Saw something
similar on an XScale wrPpmcI80310 for T2.1 for XScale. Turned
out that if you turned on the above exception, telnet would hang. You
could contact WRS support about your problem. Hwa or Lenoid
could explain about why for performance reasons, the network
stack does unaligned data access during the TCP checksum
calculation. But the adding of a delay causing it to work
blows all the above out of the water.......

"womeiwenhua" <womeiwenhua@yahoo.com> wrote in message
news:72f5f520.0208090920.4deebf0b@posting.google.com...
> Thank you.
>
> The data abort occur in function "_cksum".
>
> After I add some task delay between the continual write socket, it
> work well. I doubt there is a bug in the TCP for ARM. Is there any way
> to debug/check the TCP queue?
>
> john_94501@yahoo.com (John) wrote in message
news:<488e459a.0208031118.5ec371db@posting.google.com>...
> > Hello,
> >
> > How about you perform a stack trace on the network task and find out
> > for certain what caused it. Alternatively, if you don't have the
> > target tools installed, or don't have serial WDB, try finding out
> > which function 0x96bd80 is in from your image. That's not as useful as
> > the full trace, but might tell you something.
> >
> > HTH,
> >
> > John...
> >
> > womeiwenhua@yahoo.com (womeiwenhua) wrote in message
news:<72f5f520.0208021439.198cfd52@posting.google.com>...
> > > Hi All,
> > >
> > > When I set up the telnet server in vxworks, network stack will crash
> > > by "data abort".
> > >
> > > Data abort
> > > Exception Address: 0x0096bd80
> > > Current Processor Status Register: 0x20000013
> > > Task: 0xf15c6c "tNetTask"
> > >
> > >
> > > My board is ARM940T, VxWorks 5.4.
> > >
> > > This problem is most likely caused by the socket continul write(or
> > > Read). Anyone meet this problem before?
> > >
> > > Thank you!

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Attach system Error!
Date: Sat, 10 Aug 2002 02:48:23 GMT
From: "drdiags" <drdiags@attbi.com>
Organization: AT&T Broadband
Message-ID: <X9%49.48637$7n5.8693@sccrnsc01>
References: <e82d8e83.0208070041.4ee2aa37@posting.google.com> <r7j49.28759$7n5.5299@sccrnsc01> <unj49.28013$nF5.6897@sccrnsc02> <e82d8e83.0208080144.59809699@posting.google.com>

If you add the target shell and loader (if using the IDE) and a symbol table
(I prefer a built-in), then you can use the "ld" command on the
*.out file which would be the final partial link of all the *.o files
in your downloadable application. If you only have one *.o in your
app, then you could load the *.o. Anyway, an example is like
so:

(with your ftp server running, if you loaded your kernel using FTP,
 NFS doesn't require the FTP server of course)

From the target shell (or serial port, usually the first channel)
========================================

>pwd
diags:
>cd "/somedirectory/application_directory"
>ls
my.out
>ld < my.out (In the on-line documentation, "ld" is discussed further
regarding other options)
>sp or run the entry point

"seasoblue" <seasoblue2000@yahoo.com.cn> wrote in message
news:e82d8e83.0208080144.59809699@posting.google.com...
> Hi, drdiags
>   yes, I can watch the "tWdbTask" running by use 'i' command under
> host shell. But I wonder that how I can load the app(Is it the .out
> file?) from target shell, which command should I use under the shell?
>     Thank you for your reply!
>
> Best Regards,
>
>    seasoblue
>
>
> "drdiags" <drdiags@attbi.com> wrote in message
news:<unj49.28013$nF5.6897@sccrnsc02>...
> > Sorry,
> >
> >    I missed the note about downloading the *.out file, so unless you
loaded
> > the app from the
> > target shell, never mind...............
> >
> > "drdiags" <drdiags@attbi.com> wrote in message
> > news:r7j49.28759$7n5.5299@sccrnsc01...
> > > Hello Seasoblue,
> > >
> > >    Have you verified that the "tWdbTask" is running? I ran into a
problem
> > > where
> > > if INCLUDE_WDB_TASK was not also defined, then the WDB task was not
> > > spawned. This would cause any connection through the target server to
> > > fail. So, if you have a serial connection with a symbol table include
> >  along
> ...........

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: C++
Date: Sat, 10 Aug 2002 04:28:15 GMT
From: Russ <lyttlec@earthlink.net>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <zD059.7760$M4.610904@newsread2.prod.itd.earthlink.net>
References: <d6e2de0a.0208090845.455d6af1@posting.google.com>

V R R Raju wrote:

> Dear friends,
> 
> I am trying to work on C++ (BSP 486).I am newbie and I don't know how
> to proceed with it. Can anybody please guide me.
> 
> Thanks in advance
> 
> with regards,
> 
> Rajneesh

Two simple points :

Tornado uses the gnu tools, so there is no problem with C++. Be sure to name 
your C++ files *.cpp and *.hpp. Otherwise they will be compiled as C files 
(gcc instead of g++), and that doesn't work

If you want to use the simulator on a pc, be careful about casting. Most 
casts fail if you design your data structures for, say a PPC and then try 
to run the simulator on the PC.

- -- 
Russ Lyttle - Not powered by ActiveX
Please visit <http://home.earthlink.net> for OBD-II
information and links.

---------------------------

Newsgroups: comp.os.vxworks
Subject: How to debug in Toronto Prototyper?
Date: 9 Aug 2002 23:00:23 -0700
From: kaiduanx@yahoo.ca (kaiduan)
Organization: http://groups.google.com/
Message-ID: <9b577325.0208092200.302a5754@posting.google.com>

hi,

I am a totally newbiw on VxWorks and got a Tornado Prototyper. I just
used the demo project (gzimo). I start with the debugger in Tornado.
However, after setting a breakpoint on the following function.

/*************************************************************************
*
* schlep - collect data into a sample to be processed, a task.
*
* Repeatedly, wait for and place NUM_SAMPLE data onto the list,
* then awaken the cruncher. 
*/
void schlep()
{
     FOREVER
	{
	for (nodeIdx = 0; nodeIdx < NUM_SAMPLE; nodeIdx++)
            {
	    semTake (dataSemId, WAIT_FOREVER);	/* Wait for datum */
            ^^^^^^ breakpoint	   
            if (runState == SCHLEP_STOP)
		{
		runState = CRUNCH_STOP;
		semGive (syncSemId);
		return;
		}

	    nodeAdd (cosmicData, nodeIdx);
            }

	semGive (syncSemId); 		/* Wake up the cruncher! */
	}     
    }
}

after attach schlep, it stops at the breakpoint correctly, however,
after issue a step over command, I cannot move further any more, the
debug buttons became gray (was disabled). Can anyone tell me why and
how to debug?

2. The other question, for the system mode debug, the commands issued
is listed below,

> attach system
> info threads
33 task 0x45e9130 + tExcTask    0x417efb in wdbSuspendSystemHere ()
  32 task 0x45e4718   tLogTask    0x4276be in windExit ()
  31 task 0x45e0bc8   tWdbTask    0x4276be in windExit ()
  30 task 0x45d5858   tCosmos     0x4276be in windExit ()
  29 task 0x45ce790   tSchlep     0x4276be in windExit ()
  28 task 0x45c76c8   tCrunch     0x4276be in windExit ()
  27 task 0x45b2470   tCosmos     0x4276be in windExit ()
  26 task 0x45ab3a8   tSchlep     0x4276be in windExit ()
  25 task 0x45a42e0   tCrunch     0x4276be in windExit ()
  24 task 0x458f088   tCosmos     0x4276be in windExit ()
  23 task 0x4587fc0   tSchlep     0x4276be in windExit ()
  22 task 0x4580ef8   tCrunch     0x4276be in windExit ()
  21 task 0x456bca0   tCosmos     0x4276be in windExit ()
  20 task 0x4564bd8   tSchlep     0x4276be in windExit ()
  19 task 0x455db10   tCrunch     0x4276be in windExit ()
  18 task 0x454f980   tCosmos     0x4276be in windExit ()
  17 task 0x45488b8   tSchlep     0x4276be in windExit ()
  16 task 0x45417f0   tCrunch     0x4276be in windExit ()
  15 task 0x452c598   tCosmos     0x4276be in windExit ()
  14 task 0x45254d0   tSchlep     0x4276be in windExit ()
  13 task 0x451e408   tCrunch     0x4276be in windExit ()
  12 task 0x4510278   tCosmos     0x4276be in windExit ()
  11 task 0x45091b0   tSchlep     0x4276be in windExit ()
  10 task 0x45020e8   tCrunch     0x4276be in windExit ()
  9 task 0x44ece90   tCosmos     0x4276be in windExit ()
  8 task 0x44e5dc8   tSchlep     0x4276be in windExit ()
  7 task 0x44ded00   tCrunch     0x4276be in windExit ()
  6 task 0x44c9aa8   tCosmos     0x4276be in windExit ()
  5 task 0x44c29e0   tSchlep     0x4276be in windExit ()
  4 task 0x44bb918   tCrunch     0x4276be in windExit ()
  3 task 0x44a66c0   tCosmos     0x4276be in windExit ()
  2 task 0x449f5f8   tSchlep     0x4276be in windExit ()
  1 task 0x4498530   tCrunch     0x4276be in windExit ()

there are so many threads, actually, in the demo program, there are
only three tasks created, tCrunch, tSchlep,tCosmos. How to know which
thread id is the really thread to which I want to switch? Thanks for
help.

kaiduan xie

---------------------------

Newsgroups: comp.os.vxworks
Subject: routeAdd failed??
Date: 10 Aug 2002 01:38:38 -0700
From: rover2@163.com (rover)
Organization: http://groups.google.com/
Message-ID: <7f29c2ad.0208100038.2974b21c@posting.google.com>

Hi,all

I have two problem:

1.I have a target with IP is 192.168.144.2,getway is 192.168.144.1.
  I have blow:

  routeAdd("192.168.144.0","192.168.144.1");

  the function return ERROR,replace it with

  routeAdd("0",,"192.168.144.1");

  it return OK,why?

2.I transfer files using ftp,at begin it's speed is about 100k/s,but
at end it down to about 20k/s gradually,why?

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Sun Aug 11 03:49:17 2002
From: Ilia Bosis <Ilia_Bosis@packetlight.com>
Date: Sun Aug 11 03:49:19 PDT 2002
Subject: RE: Vxworks Queries

Hi Maria !
The answers are below under the each question

> -----Original Message-----
> From: vxwexplo@lbl.gov [mailto:vxwexplo@lbl.gov]
> Sent: Thursday, August 08, 2002 9:52 AM
> To: vxworks_users@csg.lbl.gov
> Subject: Vxworks Queries
> 
> 
> Submitted-by vxwexplo-errs@csg.lbl.gov  Thu Aug  8 00:33:16 2002
> Submitted-by: "Maria Jothi" <mariajothi@sdsindia.com>
> 
> 
> This is a multi-part message in MIME format.
> 
> ------=_NextPart_000_003E_01C23EDC.42F2F0A0
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> 
> Hello Sir ,
> 
> Can you please help me in resolving the following issues in VxWorks:
> 
> 1) Does the OS track the resources allocated to a task?  This allows =
> these resources to be recovered and the task safely 
> restarted, which is =
> critical for continuous availability.=20

The short answer in NO !
VxWorks may free the memory allocated by the OS itself (e.g. stack space,
Task Control Block)
but it NEVER frees the resources, allocated by the user.
It's your responsibility to free all the allocated resources when they are
no longer needed.

On a side note, the VxWorks memory allocator tends to fragment terribly, so
using the separate memory regions (that's called "partitions" in VxWorks) is
strongly recommended 
if Your application is ought to pass through a number of malloc/free cycles.

> 
> 2) What are the facilities for a carrier grade system 
> available on each =
> system? Which of the two versions of VxWorks is recommended?=20
>  =20

You mean the VxWorks vs. VxWorksAE, right ?
I'd never worked with the AE, so no personal experience here.
From the spec it seems that AE has some memory protection facilities that
may facilitate debugging.
On another side, it's less mature and so more bugs are expected.
In any case, the high availability is the matter of system design and proper
testing and not just the single component (such as the RTOS) of the system.
There are a number of the carrier grade systems in the field, built around
the classic VxWorks, so the task is definitely doable with it.

> 3) How do we minimise the buffer copy between the kernel and the =
> application?=20
> Is it possible to do it using mblk-clblk clusters? How do we 
> do it using =
> mblk-clblk clusters? Can the same functionality be achieved using =
> zbufSockLib?
> 

> 4) How do you register a callback for interrupt driven 
> network I/O using =
> ioctl? Can we use the FIOPROTOHOOK ioctl command for network 
> also? If we =
> can, is it going to call the callback for every character 
> that arrives =
> on the input? Is there a better way to do interrupt driven 
> network I/O =
> other than ioctl?=20

The interrupt service routine (ISR) is belongs to device driver.
VxWorks provide facilities to write Your own device driver (including the
ISR) and attach it to the system. 
Doing the interrupt driven I/O via ioctl is definitely not a best way to go.
Note that in the classic VxWorks Your interface to the driver is not limited
to the classic driver API.
Because the whole system (OS kernel, drivers & application) run in the
single address space with no protection, You can just call any driver'
function directly from the application (or from the shell), check the
driver's variables, etc..
That's not the case for the AE. 
From my experience, driver debugging in the classic VxWorks is only a bit
harder than debugging the application code. It's not a nightmare as it's
happens with other systems.

> 
> Thanks
> Maria

Hope this helps.
	Ilia.

P.S.
Please, Please, Don't send Exploder messages as HTML !
People doesn't get the HTML formatting after the message passes the
Exploder, but they get a lot of noise instead.

--------------------------------------------
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  Sun Aug 11 04:03:10 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Sun Aug 11 04:03:12 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Sun Aug 11 04:03:07 PDT 2002

        Subject: Re: Data abort of ARM940 when use vxWorks telnet
        Subject: Re: trouble in ping with a larger packet on ne2000 Ethernet
        Subject: Re: Download a File become too slow after the Flash was <boosted>
        Subject: Re: Harddisk problem details?
        Subject: Re: about MPC860 bsp
        Subject: attaching symbol table in a bin file
        Subject: why this make error occor?
        Subject: ftp server problem?
        Subject: Re: how to overload malloc and free function
        Subject: Re: How get the length of the specified function from *.o file?

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Data abort of ARM940 when use vxWorks telnet
Date: Sat, 10 Aug 2002 11:09:56 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3D54F52C.9060702@spamm.me.l8s.co.uk>
References: <72f5f520.0208021439.198cfd52@posting.google.com> <488e459a.0208031118.5ec371db@posting.google.com> <72f5f520.0208090920.4deebf0b@posting.google.com> <q1%49.47468$nF5.10917@sccrnsc02>

drdiags wrote:
> Have you enabled Unaligned exceptions in your BSP? I think that you may
> need to get a copy of the optimized in_chksum() routine, which I am told
> was available on the ARM website, if you have. Saw something
> similar on an XScale wrPpmcI80310 for T2.1 for XScale. Turned
> out that if you turned on the above exception, telnet would hang. You
> could contact WRS support about your problem. Hwa or Lenoid
> could explain about why for performance reasons, the network
> stack does unaligned data access during the TCP checksum
> calculation. But the adding of a delay causing it to work
> blows all the above out of the water.......

You can't enable the unaligned exception because gcc generates
then for some 16bit memory cycles.

The arm assembler chksum routine in vxworks does contain a bug,
but it just generates an incorrect checksum.
(WRS ought to be shipping the fixed code by know - but I suspect
they are still using the 'workaround' of using the C routine).

It you have a repeateably fault, it shouldn't be too hard to debug
- - even whitout any of the sources.
Start off by looking at the stack trace, the registers, and the
disassembly of the associated code and work out what it is trying to
do.  Use the host tools to set a breakpoint on the routine (having
cleared the bit that stops tNetTask hitting breakpoints) to see
how often the code is executed ane what it might usually be doing.
Then apply inspired queswork.

	David

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: trouble in ping with a larger packet on ne2000 Ethernet
Date: Sat, 10 Aug 2002 11:14:13 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3D54F62E.7060304@spamm.me.l8s.co.uk>
References: <7f29c2ad.0208080439.62e501b7@posting.google.com>

> 
> when I ping it with a litter packet(<1500 bytes),it is ok,but when the
> packet is larger(>1500),ping is failed! why?

Well the 1500 byte ping has to be fragmented by IP into two
ethernet frames.
So one of:
1) your system isn't sending both frames
2) the target system fails to re-assemble them
3) the target fails to send both reply frames
4) your system fails to receive both frames
5) your system fails to re-assemble both frames

you need to sort out which.
an ethernet trace will help,
you might find enough info from the MAC layer stats
		
	David

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Download a File become too slow after the Flash was <boosted>
Date: Sat, 10 Aug 2002 11:19:38 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3D54F773.1040308@spamm.me.l8s.co.uk>
References: <s03rku47jn0g6sh2g4ilbopoc6ouc18opu@4ax.com>

> The flash memory in my target is 8 Mb. My problem is the download
> using FTP client became slow after the scenario below:
> 
> 1) download files over the capacity of the flash (the latest dwonload
> failed, this is normal since the maximum is reached)
> 2) Remove some files or all files 
> 3) After then, any file download is too slow
> 
> The temporary solution for me is to fromat the flash again.

You don't say what you are using to write to the flash.
The underlying problem is that it takes around 0.5 seconds
to erase a flash sector, and these sectors are quite large
(could be 128kb) so, unless something is done to speed things
up every sector write ends up doing a 'read modify write'
cycle on a flash sector.
When you format I suspect the flash is written with 0xff
bytes - whih can be written without an erase.

TFFS is supposed to get aroung this.
A cache line the size of the flsh sector and a few 512 byte
buffers will help no end.

	David

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Harddisk problem details?
Date: 10 Aug 2002 04:49:15 -0700
From: oe_zhou@sohu.com (oe_zhou)
Organization: http://groups.google.com/
Message-ID: <758a30ff.0208100349.1ab84d5b@posting.google.com>
References: <758a30ff.0208081945.4836062e@posting.google.com> <02J49.187$n16.11894986@newssvr15.news.prodigy.com>

Thanks.
But i want to know whether i can directly link the harddisk to the memory 
controller.Because the IDE controller is not easy to buy only one or two.
Thanks again.

========================================================================
"John Kevin Fabiani" <nospam@nospam.net> wrote in message news:<02J49.187$n16.11894986@newssvr15.news.prodigy.com>...
> The WindRiver mbx860 BSP implements the PCI bus
> and uses the IDE controller.
> 
> -j
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: about MPC860 bsp
Date: Sat, 10 Aug 2002 11:37:06 -0700
From: "Vivek Kumar" <_REMOVE_ME_.vivek@.employees.org>
Organization: usenet.com http://www.usenet.com 80,000+ UNCENSORED Newsgroups. The #1 Usenet Service on the Planet!
Message-ID: <3d555ac9@post.usenet.com>
References: <aildob$1ver$1@mail.cn99.com>
Reply-To: "Vivek Kumar" <_REMOVE_ME_.vivek@.employees.org>

**** Post for FREE via your newsreader at post.usenet.com ****

Hi,

PPC being  a risc machiene with 32bit instrctions, so loading a 32 bit
constant requires
a load and shift followed by an add operation. In PowerPC architecture, add
with 1
6 bits are sign exteded to 32 bits. HIADJ() obtains the upper half of the 32
bit constant,
adusting the value for the lower half also so that the subsiquet addi
instructions results
in the correct value being used.

lis is load immidiate and shift (left) used to load the immidiate value to
the the upper 16 bits
Hope that helps,

- -Vivek

Embedded Systems Consultant
http://www.vivekkumar.net

"minskey73" <minskey73@yahoo.com.cn> wrote in message
news:aildob$1ver$1@mail.cn99.com...
> In the file romInit.s(MPC860 BSP) there is the piece of code:
>
>      lis r4, HIADJ(start)  /* load r4 with the address */
>      addi r4, r4, LO(start)  /* of start */
>
>      lis r5, HIADJ(romInit)  /* load r5 with the address */
>      addi r5, r5, LO(romInit)  /* of romInit() */
>
>      lis r6, HIADJ(ROM_TEXT_ADRS) /* load r6 with the address */
>      addi r6, r6, LO(ROM_TEXT_ADRS) /* of ROM_TEXT_ADRS */
>
> I search in the tornador diretory ,and found the macro HIADJ defined in
> toolPpc.h
>
>                           #ifdef _GNU_TOOL_
>                                       /* Macro for hiadjust and lo */
>  /*???????????  what does it mean?????????????????????????*/
>                             #define HIADJ(arg) arg@ha
> /*???????????????????????????????????????????????????????????????*/
>                             #define HI(arg)  arg@h
>                             #define LO(arg)  arg@l
>                          #endif
>
>                          #ifdef _DSAB_TOOL
>                                     /* Macro for hiadjust and lo */
>                             #define HIADJ(arg)      %hiadj(arg)
>                             #define HI(arg)  %hi(arg)
>                             #define LO(arg)       %lo(arg)
>                          #endif
>
>
>   Additionly, I could not find the intruction "lis"  in MPC32bit
proramming
> mannul, but
> I guess it means "load a signed immediate operand to..." , isn't it ?
>
>
>
>    thanks a lot
>
>                                                                 looser
Zhang
>
>

- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 *** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
                      http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

---------------------------

Newsgroups: comp.os.vxworks
Subject: attaching symbol table in a bin file
Date: 10 Aug 2002 13:15:47 -0700
From: arohb@cc.usu.edu (Aroh Barjatya)
Organization: http://groups.google.com/
Message-ID: <ecdec0b9.0208101215.2c264161@posting.google.com>

Hi all,

I have to make a standalone system and my CPU card has following
specs:
Hitachi SH3 7709
5 MB SRAM
256 KB EEPROm
8 MB Flash
Three RS232 ports

The way I am using this system right now is:
1> Boot using my EEPROMS
2> copy the VxWorks binary image from Flash to SRAM and then jump to
its start and execute off that place.

Though we did not intend to use target shell before, and just used
tornado shell from port 0, we have suddenly got a requirement to have
a target shell.
But the way system is right now, our custom made BSP doesnt support
ELF format and hence I have to burn bin format in the flash. The
problem is that when I convert my elf image to bin format, it strips
the image off all the symbols. And hence when my target shell comes up
it doesnt recognize any symbol and just says "undefined symbol :help"

SO I guess my questions are as follows:

1>> elftobin strips my image off all symbols. Is there anyway I can
let the symbols be in there so that my shell sees them. But the fact
would still remain that the binary image would not be relocatable. how
do I solve this

2>> How can I make my bootROMS understand the ELF format for booting.
Lets say I burn the ELF image in Flash, the bootROMS when they boot up
should not just copy the ELF image from Flash to SRAM, but rather
understand the ELF image and then boot of an ELF format.
Would enabling "bootELFInit" in bootconfig.c help ??

3>> When I boot my CPU board using the TSFS VIO CONSOLE boot through
port 0, the target shell comes up on port 1 and then recognizes all
the symbols. Its just that when I convert my image to binary and burn
in flash and then boot the system through flash that it stops
recognizing symbols.
And hence another question is "How does the ELF image get downloaded
through TSFS VIO that it keeps the symbol table intact"

I am using a WIN2000 machine as a developement host.

Any help would be deeply appreciated.

Thanks
Aroh

---------------------------

Newsgroups: comp.os.vxworks
Subject: why this make error occor?
Date: 11 Aug 2002 02:46:49 -0700
From: wangwz@chinatopglobal.com (wangwz)
Organization: http://groups.google.com/
Message-ID: <72c0062e.0208110146.5cb49335@posting.google.com>

I try to build a vxworrk boot image, but it display following error:
make: *** No rule to make target
`{D:\Tornado\target\config\SBC8240\}', needed by `part ialImage.o'. 
Stop.

what it means? How to solve it?
Thanks.

---------------------------

Newsgroups: comp.os.vxworks
Subject: ftp server problem?
Date: 11 Aug 2002 02:48:53 -0700
From: oe_zhou@sohu.com (oe_zhou)
Organization: http://groups.google.com/
Message-ID: <758a30ff.0208110148.7609b4ba@posting.google.com>

Hi,everyone!
when i run ftp server in the Tornado2 program,an error occured.
It was "Address already in use".what's the matter???
thanks.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: how to overload malloc and free function
Date: Sun, 11 Aug 2002 10:08:45 +0000 (UTC)
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns92677B0B13DF6borkhuisagerecom@192.19.193.66>
References: <E9T49.6935$V21.128580@news> <krV49.6968$V21.128675@news> <Xns9265EC4DED68Bborkhuisagerecom@192.19.193.66> <C4X49.6973$V21.129158@news>

"Hadi" <sdfs@hotmail.com> wrote:

> Johan,
> Thanks for the response. What I was trying to do is following
> 1. Find the address of vxWork malloc.
> 2. Load my own malloc function called "hadi_malloc"
> 3. Delete vxWork "malloc" from the symbol table
> 4. Add a new symbol called "malloc" whose adress points to
> "hadi_malloc" 
> 5. Load the application(The application would try to
> resolve the reference with the new malloc which is infact
> "hadi_malloc") 

You can leave step 3 out of this. If you just rename "hadi_malloc" to 
"malloc" your function will replace the definition that is already in the 
symbol table. But this only works for the modules you loaded afterwards, 
so you are OK if you only need it for your application.

Groeten,
        Johan

- -- 
        o o o o o o o . . .   _____________________________
       o      _____           ||    Johan Borkhuis        |
     .][__n_n_|DD[  ====_____  |    borkhuis@agere.com    |
    >(________|__|_[_________]_|__________________________|
    _/oo OOOOO oo`  ooo   ooo  'o!o!o                o!o!o`
=== VxWorks FAQ: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html ===

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How get the length of the specified function from *.o file?
Date: Sun, 11 Aug 2002 13:37:53 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <aj5eof$f1p$1@news.inter.net.il>
References: <8f77d4a.0208062127.277e538b@posting.google.com>

Generete a MAP file using the linker or dumper --
 -- all the functions are listed in order ...

"Bryan" <hotJacky@163.net> wrote in message
news:8f77d4a.0208062127.277e538b@posting.google.com...
> HI:
> If syslib.c includes a function named strong().When  syslib.c is
> compiled by gcc and produce corresponding syslib.o.How can I get the
> fact size of the strong() in text section?Can nm ?
>
> sincerely
> Bryan

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Mon Aug 12 04:03:15 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Mon Aug 12 04:03:17 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Mon Aug 12 04:03:12 PDT 2002

        Subject: Re: statistics from windview file
        Subject: Re: What cause the system to reset (PPC VxWorks 2)?
        Subject: Re: Problem with network traffic and file system ??
        Subject: Re: how do you detect memory corruption in VxWorks?
        Subject: Re: some  questions about MPC860 BSP
        Subject: Re: trouble in ping with a larger packet on ne2000 Ethernet
        Subject: Re: why this make error occor?
        Subject: Re: attaching symbol table in a bin file
        Subject: Re: Filesystem detection
        Subject: Re: ftp server problem?
        Subject: Re: USB to USB
        Subject: uninitilized interrupt
        Subject: Re: trouble in ping with a larger packet on ne2000 Ethernet
        Subject: Re: attaching symbol table in a bin file
        Subject: Re: How to find out how long something has taken to execute
        Subject: can num change into character
        Subject: Swap between target Shell and MyShell
        Subject: ppmc7xx
        Subject: Re: uninitilized interrupt
        Subject: Re: can num change into character
        Subject: Re: can num change into character

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Re: statistics from windview file
Date: Sun, 11 Aug 2002 14:35:21 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <aj5i45$g0a$1@news.inter.net.il>
References: <aireie$mva$1@news.mch.sbs.de>

For interrupt latency Windview is not suitable : you better use some
hardware timer.

For example : in PowerPC you might want to probe the PowerPC decrementer
count register in the first line of
the interrupt service routine.

For general measurement you better use the PowerPC timebase.

<soenke.koppatsch@icn.siemens.de> wrote in message
news:aireie$mva$1@news.mch.sbs.de...
> Hi !
>
> I would like to get out statistics from a WindView file.
> e.g Duration of Interrupts, time per task, ...
>
> Do anybody have a "statistic tool" for windview or a program to convert
the
> *.wvr  into a
> readable format.
>
> Any hint welcome !
>
> Thank you !
> Snke
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: What cause the system to reset (PPC VxWorks 2)?
Date: Sun, 11 Aug 2002 14:49:21 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <aj5iuf$g6i$1@news.inter.net.il>
References: <aiqne2$b7t$1@newshost.mot.com>

Hi,

Several levels:

Hardware first: each interrupt handler modify it's unique registers (the
ones' which are not stored in the task context, such as the GPR etc.) -- You
can bind your own interrupt handler to VxWorks (take a look in excArchLib
library) and probe them. Note that you can not print them using the serial
channel because the driver is interrupt driven and PowerPC is not supporting
nested interrupt (OK, it does but not that easy and VxWorks certainly
isn't).

You might print in polling -- but yet it takes too long.

task level:

Big problem: the ELF incremental mechanism might locate your image
anywhere -- I suggest you build bootrom_uncmp.hex and generate a map file to
receive
any info regarding the software status on failure.

"Haim Hillel" <Haim.Hillel@Motorola.com> wrote in message
news:aiqne2$b7t$1@newshost.mot.com...
> For environment of PPC 855/860/8260 & VxWorks 2: a running system was
reset
> (because of machine check interrupt, or Watch Dog, etc.).
> When the system restarts I whish to recognize as much as possible the
reason
> and point of
> the reset such as CPU Reg., OS contexts Task / ISR etc.
> Is someone having code, examples or algorithm?
>
> Best Regards
>  Haim Hillel
>
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Problem with network traffic and file system ??
Date: Sun, 11 Aug 2002 14:57:50 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <aj5jeb$gbt$1@news.inter.net.il>
References: <aj1kam$8j9$1@bcarh8ab.ca.nortel.com>

If the connection is reliable, you might considering to switch to UDP socket
and
add your own handshake mechnism or even use TFTP.

RamiG

"Parangodath, Binish [SC7:326:EXCH]" <binishp@americasm06.nt.com> wrote in
message news:aj1kam$8j9$1@bcarh8ab.ca.nortel.com...
> Hi all,
>
> I have two systems running VxWorks(PPC750 ,dosFs,connected by 100Mbps
> ethernet).My application needs to send files from one system to another
> through a TCP socket.The system which receives the file, writes it to a
> flash disk and send a ack back to the sender indicating the status on the
> same socket.But since the application on the sender will wait for only
100ms
> for the ack from the receiver, sender used to timeout while sending huge
> files.So I tried splitting huge file in to parts which will fit in to one
> MTU and then sending.On the receiver side I keep the file open, write each
> chunk to the flash and send an ack back to the application for each
> chunk.Since the data transferred and written to the flash is small for
each
> transfer I thought sender would get the ack with in 100ms for each of the
> chunks.
> But when I have a huge file of 1MB out of the 850-900 chunks, for 4-5
chunks
> it takes more than 500ms to get a response from the receiver.I tried
timing
> the events on the receiver from recieving the chunk,writing it and to send
> back the reponse.Most of the cases it was less than a millisecond.But
after
> 200-250 chunks time taken shoots up to 10-15 ms.
>
> I tried TCP_NODELAY,modifying recv_buffer,flushing of the file for each
> chunk,reducing priority of diskcacheUpdate task.None of these helped.
>
> Can somebody help me in giving some pointers as to where the problem might
> be ?
>
> Thanks in advance,
> Binish
>
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: how do you detect memory corruption in VxWorks?
Date: Sun, 11 Aug 2002 15:18:34 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <aj5kl7$he9$1@news.inter.net.il>
References: <3D51B1F9.4040005@REMOVE.ieee.org>

You might use the MMU to protect regions -- including the stack -- as "read
only" and identify memory write to illegal regions whenever task scheduling
occurs.

"s" <wangs@REMOVE.ieee.org> wrote in message
news:3D51B1F9.4040005@REMOVE.ieee.org...
> Hi All,
>
> Considering the os is a single memory space addressable by all threads,
> how do you detect memory corruption?
>
> (In particular, a memory corruption where the stack is corrupted, -- not
> referring to a stackOverflow, where checkStack can give an indication
> which thread caused the offense)
>
> Thanks in advance,
> -- Sam
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: some  questions about MPC860 BSP
Date: Sun, 11 Aug 2002 15:48:23 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <aj5mdd$htu$1@news.inter.net.il>
References: <aiqj1v$coa$1@debian.bentium.com>

The cold reset is activeated when you press ctrl-X or activated reboot()
using the shell.

"minskey73" <minskey73@yahoo.com.cn> wrote in message
news:aiqj1v$coa$1@debian.bentium.com...
> Hi, all,
>
>     I'm a newer to BSP and MPC assemble language. When I read the file
> romInit.s included in MPC860 BSP, I encounter more and more diffcult.
>
>       Could somebody answer my questions:
>
>     1. When load the address to GPR ,Why split this to two step. If the
> operand of
>        the instruction "load"  is an immediate , does it mean the
immediate
> must be
>        16 bit  and can't not be a 32-bit data?
>
>     2. Why define the macro HIADJ(defined in /target/h/arch/ppc/toolPpc.h)
>
>     3. After loading link register with the address of "start" , Why use
the
>        instruction "blr" to jump to the next labelled "start". It means
the
> code
>        between "cold" and "start" is not execute in the flash/rom , is it?
> but
>        where ?
>
>        thank you anyway.
>
>                                                                  looser
>                                                                Aug 7 ,
2002
>
>
>
> The following is a piece of code  of romInit.s.
>
/****************romInit.s**************************************************
> ***/
> cold:
>  li r3, BOOT_COLD /* set cold boot as start type */
>
>  /*
>   * When the PowerPC 860 is powered on, the processor fetch the
>   * instructions located at the address 0x100. We need to jump
>   * from the address 0x100 to the Flash space.
>   */
>
>  lis r4, HIADJ(start)  /* load r4 with the address */
>  addi r4, r4, LO(start)  /* of start */
>
>  lis r5, HIADJ(romInit)  /* load r5 with the address */
>  addi r5, r5, LO(romInit)  /* of romInit() */
>
>  lis r6, HIADJ(ROM_TEXT_ADRS) /* load r6 with the address */
>  addi r6, r6, LO(ROM_TEXT_ADRS) /* of ROM_TEXT_ADRS */
>
>  sub r4, r4, r5
>  add r4, r4, r6
>
>  mtspr LR, r4    /* save destination address into LR register*/
>  blr      /* jump to flash mem address */
>
> start:
>
>  /* clear out r0 */
>  xor r0, r0, r0
>
/***************************************************************************
> /
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: trouble in ping with a larger packet on ne2000 Ethernet
Date: Sun, 11 Aug 2002 17:37:29 GMT
From: "cfk" <cfk_alter_ego@pacbell.net>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <thx59.1066$8_7.44448036@newssvr14.news.prodigy.com>
References: <7f29c2ad.0208080439.62e501b7@posting.google.com> <7f29c2ad.0208091812.5eadfa30@posting.google.com>

Let me take a wild stab at this one and suggest that the size of the ping
packet needs to be less then the smallest MTU between the host you are
pinging from and the host you are pinging to. I believe MTU is usually 1500
on an ethernet link.

"rover" <rover2@163.com> wrote in message
news:7f29c2ad.0208091812.5eadfa30@posting.google.com...
> rover2@163.com (rover) wrote in message
news:<7f29c2ad.0208080439.62e501b7@posting.google.com>...
> > Hi,all
> >
> > I have a 486(pc104) with a ne2000 ethernet card,use vxworks 5.4.
> >
> > when I ping it with a litter packet(<1500 bytes),it is ok,but when the
> > packet is larger(>1500),ping is failed! why?
> >
> > blow is:
> >
> > ping 192.168.144.1 -t -l 1500
> >
> > Pinging 192.168.144.1 with 1500 bytes of data:
> >
> > Request timed out.
> > Request timed out.
> > Request timed out.
> > Request timed out.
> >
> > ping 192.168.144.1 -t -l 1472
> >
> > Pinging 192.168.144.1 with 1472 bytes of data:
> >
> > Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64
> > Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64
> > Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64
> >
> > regards
>
> who can help me?
>
> thank very much.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: why this make error occor?
Date: Sun, 11 Aug 2002 17:42:38 GMT
From: "cfk" <cfk_alter_ego@pacbell.net>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <imx59.1067$8U7.44076351@newssvr14.news.prodigy.com>
References: <72c0062e.0208110146.5cb49335@posting.google.com>

This statement could be translated to "file not found by the make program".
In this case it looks either like a directory
(D:\Tornado\target\config\SBC8240\) or you chopped the name of the file off
the error message. The missing file is the one needed by "part ialImage.o".
(I suspect there is not a space between the "t" and the "i").
Charles

"wangwz" <wangwz@chinatopglobal.com> wrote in message
news:72c0062e.0208110146.5cb49335@posting.google.com...
> I try to build a vxworrk boot image, but it display following error:
> make: *** No rule to make target
> `{D:\Tornado\target\config\SBC8240\}', needed by `part ialImage.o'.
> Stop.
>
> what it means? How to solve it?
> Thanks.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: attaching symbol table in a bin file
Date: 11 Aug 2002 11:17:13 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208111017.6929afb8@posting.google.com>
References: <ecdec0b9.0208101215.2c264161@posting.google.com>

Hello,

You're confusing the ELF symbol table with the target shell's symbol
table support. You simply need to add INCLUDE_STANDALONE_SYM_TBL
instead of INCLUDE_NET_SYM_TBL and you will achieve what you want.

FYI, the ELF symbol table within the kernel binary is never used by
the target shell; it either loads a .sym file from the boot media, or
uses a special built in one when compiled with the standalone symbol
table support.

HTH,

John...

arohb@cc.usu.edu (Aroh Barjatya) wrote in message news:<ecdec0b9.0208101215.2c264161@posting.google.com>...
> Hi all,
> 
> I have to make a standalone system and my CPU card has following
> specs:
> Hitachi SH3 7709
> 5 MB SRAM
> 256 KB EEPROm
> 8 MB Flash
> Three RS232 ports
> 
> The way I am using this system right now is:
> 1> Boot using my EEPROMS
> 2> copy the VxWorks binary image from Flash to SRAM and then jump to
> its start and execute off that place.
> 
> Though we did not intend to use target shell before, and just used
> tornado shell from port 0, we have suddenly got a requirement to have
> a target shell.
> But the way system is right now, our custom made BSP doesnt support
> ELF format and hence I have to burn bin format in the flash. The
> problem is that when I convert my elf image to bin format, it strips
> the image off all the symbols. And hence when my target shell comes up
> it doesnt recognize any symbol and just says "undefined symbol :help"
> 
> SO I guess my questions are as follows:
> 
> 1>> elftobin strips my image off all symbols. Is there anyway I can
> let the symbols be in there so that my shell sees them. But the fact
> would still remain that the binary image would not be relocatable. how
> do I solve this
> 
> 2>> How can I make my bootROMS understand the ELF format for booting.
> Lets say I burn the ELF image in Flash, the bootROMS when they boot up
> should not just copy the ELF image from Flash to SRAM, but rather
> understand the ELF image and then boot of an ELF format.
> Would enabling "bootELFInit" in bootconfig.c help ??
> 
> 
> 3>> When I boot my CPU board using the TSFS VIO CONSOLE boot through
> port 0, the target shell comes up on port 1 and then recognizes all
> the symbols. Its just that when I convert my image to binary and burn
> in flash and then boot the system through flash that it stops
> recognizing symbols.
> And hence another question is "How does the ELF image get downloaded
> through TSFS VIO that it keeps the symbol table intact"
> 
> I am using a WIN2000 machine as a developement host.
> 
> Any help would be deeply appreciated.
> 
> Thanks
> Aroh

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Filesystem detection
Date: Sun, 11 Aug 2002 20:31:26 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$9kzo0h$a59$1@lnews.actcom.co.il>
References: <zgB29.8637$cI.646187@newsread2.prod.itd.earthlink.net>

I think there is a simple solution to this:

Iterate over all existing devices, akin to "devs" command, and try every one
of these devices with a typically file system=ish ioctl, e.g. the one used
by readdir(),
ot just use opendir() which will atttempt to open the device's root
directory.

Only file systems will respond favourably to opendir(), others will return
ERROR,
and it is by far insufficient to only test for the file sys, you must know
if there any actual devices which are formatted and have a file system on
them.

Besides, I have a feeling you will NEED a list of available file system
volumes subsequently.

"Kevin Lay" <circlemtn@earthlink.net> wrote in message
news:zgB29.8637$cI.646187@newsread2.prod.itd.earthlink.net...
> Hi all,
>     Is there a portable, reliable, and hopefully simple way to detect
> whether a filesystem exists at runtime?  I'm working on a general app
which
> needs to port to environments which may or may not have a filesystem.
The
> app sets up services (in ACE) differently depending on whether files are
> available.
>     It seems I should be able to determine whether DOSFS or NFS or neither
> is installed, at least.... and it's got to be 100% reliable.
>
> Thanks
> Kevin
>
>
>
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: ftp server problem?
Date: Sun, 11 Aug 2002 16:40:44 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D56CBCC.22804F77@bellsouth.net>
References: <758a30ff.0208110148.7609b4ba@posting.google.com>

oe_zhou wrote:

> Hi,everyone!
> when i run ftp server in the Tornado2 program,an error occured.
> It was "Address already in use".what's the matter???
> thanks.

It sounds like something was alaready opening the port that ftp
was trying to use.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: USB to USB
Date: Sun, 11 Aug 2002 23:46:48 GMT
From: David Cooper <dcooper000@adelphia.net>
Organization: none
Message-ID: <MPG.17c0c16ca976c63d9896a2@news1.news.adelphia.net>
References: <1028887367.61862@ernani.logica.co.uk> <MPG.17bd7fbbb7561de19896a1@news1.news.adelphia.net> <1028897040.726175@ernani.logica.co.uk>

Sorry, do not know the details of the USB Developers Kit. Anyone else ?

...david

In article <1028897040.726175@ernani.logica.co.uk>, peedeesee@hotmail.com 
says...
> Hi David,
> 
> Thanks for that, but I already have the USB Kit. What I need to know
> is how these USB to USB devices appear. It would seem that they
> pretend to be an Ethernet connection.
> 
> Is this correct? If so, then does the VxWorks USB kit provide suitable
> drivers? I'm still waiting for the hardware, hence I can't test it myself.
> 
> 
> 
> 
> "David Cooper" <dcooper000@adelphia.net> wrote in message
> news:MPG.17bd7fbbb7561de19896a1@news1.news.adelphia.net...
> > Wind River sells a separate USB Developers Kit (both Host and Peripheral
> > stacks) -- USB drivers are NOT contained in the standard vxWorks /
> > Tornado distribution.
> >
> > ...david
> >
> > In article <1028887367.61862@ernani.logica.co.uk>, peedeesee@hotmail.com
> > says...
> > > I've been trying to find a pc/104 processor baord that can run VxWorks
> > > AND act as a USB device (not host!), but with no success.
> > >
> > > My next option is to use a pc/104 SBC with a USB host controller and
> > > then use a 'USB to USB' chip to connect to my host PC.
> > >
> > > The question is, what does a 'USB to USB' chip enumerate as under
> > > VxWorks, i.e. how do I drive it? Does it look like an ethernet comms
> > > device?
> > >
> > > Thanks in advance for any advice/experience.
> 
> 
> 

- -- 
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
   Genealogy Utilities & Family Research
Researching: ALLEN,BERZONER,COHEN,COOPER,KUPFERZMIDT,
POSNER (POIZNER), PRITIKIN, STARKMAN
Dachau Camp Entry List, Genealogy Utilities
http://home.adelphia.net/~dcooper000

---------------------------

Newsgroups: comp.os.vxworks
Subject: uninitilized interrupt
Date: 11 Aug 2002 18:30:07 -0700
From: kevinatnj@yahoo.com.cn (kewin)
Organization: http://groups.google.com/
Message-ID: <221caa76.0208111730.552d2d81@posting.google.com>

hi all

   My PPC8260 system have got a CD1865 as my sio device.I used
intconnect to
connect IRQ3 to my sio driver.The driver can work,but when it was
working vxworks system will print "uninitilized interrup" on
screen.Will anybody tell me
why?
  Thanks in advance
                                            
                                            kevin

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: trouble in ping with a larger packet on ne2000 Ethernet
Date: 11 Aug 2002 18:39:28 -0700
From: rover2@163.com (rover)
Organization: http://groups.google.com/
Message-ID: <7f29c2ad.0208111739.76239413@posting.google.com>
References: <7f29c2ad.0208080439.62e501b7@posting.google.com> <7f29c2ad.0208091812.5eadfa30@posting.google.com> <thx59.1066$8_7.44448036@newssvr14.news.prodigy.com>

When I ping another pc(win2000),same thing happend!!

How can I get and modify MTU?

thanks advance.

"cfk" <cfk_alter_ego@pacbell.net> wrote in message news:<thx59.1066$8_7.44448036@newssvr14.news.prodigy.com>...
> Let me take a wild stab at this one and suggest that the size of the ping
> packet needs to be less then the smallest MTU between the host you are
> pinging from and the host you are pinging to. I believe MTU is usually 1500
> on an ethernet link.
> 
> 
> "rover" <rover2@163.com> wrote in message
> news:7f29c2ad.0208091812.5eadfa30@posting.google.com...
> > rover2@163.com (rover) wrote in message
>  news:<7f29c2ad.0208080439.62e501b7@posting.google.com>...
> > > Hi,all
> > >
> > > I have a 486(pc104) with a ne2000 ethernet card,use vxworks 5.4.
> > >
> > > when I ping it with a litter packet(<1500 bytes),it is ok,but when the
> > > packet is larger(>1500),ping is failed! why?
> > >
> > > blow is:
> > >
> > > ping 192.168.144.1 -t -l 1500
> > >
> > > Pinging 192.168.144.1 with 1500 bytes of data:
> > >
> > > Request timed out.
> > > Request timed out.
> > > Request timed out.
> > > Request timed out.
> > >
> > > ping 192.168.144.1 -t -l 1472
> > >
> > > Pinging 192.168.144.1 with 1472 bytes of data:
> > >
> > > Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64
> > > Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64
> > > Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64
> > >
> > > regards
> >
> > who can help me?
> >
> > thank very much.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: attaching symbol table in a bin file
Date: 11 Aug 2002 19:19:41 -0700
From: arohb@cc.usu.edu (Aroh Barjatya)
Organization: http://groups.google.com/
Message-ID: <ecdec0b9.0208111819.586ff641@posting.google.com>
References: <ecdec0b9.0208101215.2c264161@posting.google.com> <488e459a.0208111017.6929afb8@posting.google.com>

John,

These are some of the relevant includes in my config.h
#define INCLUDE_SHELL
#define INCLUDE_LOADER
#define INCLUDE_SHOW_ROUTINES
#define INCLUDE_STAT_SYM_TBL
#define INCLUDE_SYM_TBL
#define INCLUDE_UNLOADER
#define INCLUDE_STANDALONE_SYM_TBL
#define INCLUDE_DEBUG
#define INCLUDE_EXC_TASK	
#define INCLUDE_EXC_HANDLING	
#define INCLUDE_WDB_EVENTS    
#define INCLUDE_WDB
#define INCLUDE_WDB_VIO
#define INCLUDE_WDB_TSFS
#define INCLUDE_TSFS_BOOT	/* Boot using Target Server File System */
#define INCLUDE_TSFS_BOOT_VIO_CONSOLE	/* use tgtsvr Console for
TSFS_BOOT */
          

as you can see that I have the #define INCLUDE_STANDALONE_SYM_TBL
defined...
the reason I define these in the config.h and not just do vxWorks.st
is because the STANDALONE option undefs WDB stuff...

But I need both the WDB running off the port 0 to have the TSFS boot
option.... and also have target shell running  off port 1.

Let me remind you, when I boot off TSFS, target shell comes up on port
1 and has all the symbols visible to it. But when I burn the binary
file of the same image (after elftobin) the target shell comes up but
doesnt recognize any symbols...

I still think that the elftobin utility removes all the symbols... 

Is it possible for me to burn an vxWorks.st_rom image in the
flash....even if I dont remove the eeproms... I would then be doing
something like this
1> boot bootroms
2> and then boot through vxWorks.st_rom ..
seems weird.... but would it be possible...

john_94501@yahoo.com (John) wrote in message news:<488e459a.0208111017.6929afb8@posting.google.com>...
> Hello,
> 
> You're confusing the ELF symbol table with the target shell's symbol
> table support. You simply need to add INCLUDE_STANDALONE_SYM_TBL
> instead of INCLUDE_NET_SYM_TBL and you will achieve what you want.
> 
> FYI, the ELF symbol table within the kernel binary is never used by
> the target shell; it either loads a .sym file from the boot media, or
> uses a special built in one when compiled with the standalone symbol
> table support.
> 
> HTH,
> 
> John...

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How to find out how long something has taken to execute
Date: 11 Aug 2002 22:05:38 -0700
From: vdalal@hotmail.com (Vasu Dalal)
Organization: http://groups.google.com/
Message-ID: <363d071b.0208112105.32f969ba@posting.google.com>
References: <3d51877e$1_2@nopics.sjc> <488e459a.0208072102.6fddd400@posting.google.com>

Hello;

> Of course, WindView might be useful for you too as it allows you to
> define user events

U can define user defined events thus:

wvEvent (10,0,0);
my_function_underTest();
wvEvent (20,0,0);

 The two events (#10 and #20) will show up in the WindView trace.
This will give a very-high accuracy and high-clock resolution
time-stamp. U wil have to turn on aux. clock for WindView.

HTH,
vasu

---------------------------

Newsgroups: comp.os.vxworks
Subject: can num change into character
Date: Mon, 12 Aug 2002 14:13:16 +0800
From: "carria" <carriazhong@163.com>
Organization: power
Message-ID: <aj7jfh$5d3$1@mail.cn99.com>
Reply-To: "carria" <carriazhong@163.com>

Hello all,
      In my function f1()
      void f1(void){
        int i;
        char *name="link";
        for(i=1;i<20;i++){
          ...   /* I want to let the *name be changed,if i=00,the *name is
"link00"
           and when i=19, *name is "link19"
            };
         }
       How to do this?
       it seems too simple,...

---------------------------

Newsgroups: comp.os.vxworks
Subject: Swap between target Shell and MyShell
Date: 12 Aug 2002 01:52:37 -0700
From: gabi@tdsoft.com (Gabi)
Organization: http://groups.google.com/
Message-ID: <5607ff2c.0208120052.411478e@posting.google.com>

Hi,
What is the right way to swap between myShell and the VxWorks target
shell (both ways).
Gabi Segev Serusi
gabi@tdSoft.com

---------------------------

Newsgroups: comp.os.vxworks
Subject: ppmc7xx
Date: 12 Aug 2002 02:27:03 -0700
From: forbes_bofeng@sohu.com (forbes)
Organization: http://groups.google.com/
Message-ID: <7d3efabf.0208120127.1c59a1f@posting.google.com>

Everyone:
  Hello!
  We bought a demo board of ppmc7xx from Wind River Corp.
  Their readme file said that use VersionClick to put bootrom into flash, but I
have no VersionClick, we have PowerTap. We use NIC is 82559 in PCI slot, When 
we use PowerTap to put bootrom_uncmp.hex into flash, The board will setup ,but 
NIC 82559 could failed!
  Why?

  Thankyou!

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: uninitilized interrupt
Date: Mon, 12 Aug 2002 06:34:34 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D578F3A.C9C3BB1E@bellsouth.net>
References: <221caa76.0208111730.552d2d81@posting.google.com>

kewin wrote:

> hi all
>
>    My PPC8260 system have got a CD1865 as my sio device.I used
> intconnect to
> connect IRQ3 to my sio driver.The driver can work,but when it was
> working vxworks system will print "uninitilized interrup" on
> screen.Will anybody tell me
> why?
>   Thanks in advance
>
>                                             kevin

You need to use intConnect or one of its cousings to tell the system
what to do about the interrupt.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: can num change into character
Date: Mon, 12 Aug 2002 06:35:28 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D578F70.23EDD722@bellsouth.net>
References: <aj7jfh$5d3$1@mail.cn99.com>

carria wrote:

> Hello all,
>       In my function f1()
>       void f1(void){
>         int i;
>         char *name="link";
>         for(i=1;i<20;i++){
>           ...   /* I want to let the *name be changed,if i=00,the *name is
> "link00"
>            and when i=19, *name is "link19"
>             };
>          }
>        How to do this?
>        it seems too simple,...

man sprintf

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: can num change into character
Date: Mon, 12 Aug 2002 11:56:35 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1029149794.152683@azores.network-i.net>
References: <aj7jfh$5d3$1@mail.cn99.com>

Obviously not optimised for speed but shows the principle...

void f1(void){
    int i;
    char name[] = "link$$";
    for(i=1;i<20;i++){
        name[strlen(name)-1] = i % 10 + '0';
        name[strlen(name)-2] = (i/10) % 10 + '0';
        ...
    }
}

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Mon Aug 12 22:27:36 2002
From: "Partha" <partha@ionicmicro.com>
Date: Mon Aug 12 22:27:38 PDT 2002
Subject: Re: USB to USB

--------------Boundary-00=_BWORQL80000000000000
Content-Type: Multipart/Alternative;
  boundary="------------Boundary-00=_CWORLVC0000000000000"

--------------Boundary-00=_CWORLVC0000000000000
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,=0D
    USB is just a serial bus which needs generic drivers for both master =
&
device(s). Now it's your choice what application you run on top of this
generic serial bus i.e. you need to provide your driver for your device. =
You
can simulate any application e.g. Modem, Ethernet, Handicam ... etc.=0D
    VxWorks provides no support for USB currently & I doubt they'll do th=
at
in near future. We 've written our own VxWorks drivers for USB master/sla=
ves
plus for modem & ethernet for .. again master & slaves.=0D
    You can reach me at partha@ionicmicro.com if you need to know more. W=
e
ve developed the drivers for Motorola Coldfire families & Phillips master=
 &
slave USB chips. Porting them to other processors or USB chips is just a
matter of few coffee's ;)=0D
=0D
Regards=0D
Partha=0D
Firmware Engineer=0D
Ionic Microsystems Pvt Ltd=0D
Bangalore, India=0D
www.ionicmicro.com=0D
   =20

Note: 
   Unless otherwise noted, the information provided by this mail does not represent the official statements or views of Ionic Microsystems. 
   Privileged/Confidential information may be contained in this message and may be subject to legal privilege. Access to this e-mail by anyone other than the intended is unauthorised. If you are not the intended recipient (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver this message (or any part of its contents ) to anyone or take any action in reliance on it. In such case, you should destroy this message, and notify us immediately. If you have received this email in error, please notify us immediately by e-mail or telephone and delete the e-mail from any computer.
If you or your employer does not consent to internet e-mail messages of this kind, please notify us immediately. All reasonable precautions have been taken to ensure no viruses are present in this e-mail. As our company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use.

--------------Boundary-00=_CWORLVC0000000000000
Content-Type: Text/HTML;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-885=
9-1"><html>
<head>
<meta name=3D"GENERATOR" content=3D"IncrediMail 1.0">=0D
<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>BA285063-5BCE-11D4-AF8D-0050DAC67E11</X-FID>
<X-FVER></X-FVER>
<X-FIT></X-FIT>
<X-FCOL></X-FCOL>
<X-FCAT></X-FCAT>
<X-FDIS></X-FDIS>
<X-BG>25BD2D4E-AEA5-11D6-A22A-0050BA8D46AC</X-BG>
<X-BGT>repeat</X-BGT>
<X-BGC>#dce0e3</X-BGC>
<X-BGPX>0px</X-BGPX>
<X-BGPY>0px</X-BGPY>
<X-ASN>ANIM3D00-NONE-0000-0000-000000000000</X-ASN>
<X-ASNF>0</X-ASNF>
<X-ASH>ANIM3D00-NONE-0000-0000-000000000000</X-ASH>
<X-ASHF>1</X-ASHF>
<X-AN>6486DDE0-3EFD-11D4-BA3D-0050DAC68030</X-AN>
<X-ANF>0</X-ANF>
<X-AP>6486DDE0-3EFD-11D4-BA3D-0050DAC68030</X-AP>
<X-APF>1</X-APF>
<X-AD>C3C52140-4147-11D4-BA3D-0050DAC68030</X-AD>
<X-ADF>0</X-ADF>
<X-AUTO>X-ASN,X-ASH,X-AN,X-AP,X-AD</X-AUTO>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
=0A</head>
<BODY style=3D"BACKGROUND-POSITION: 0px 0px; BACKGROUND-REPEAT: repeat; F=
ONT-FAMILY: Comic Sans MS; FONT-SIZE: 12pt; MARGIN: 0px 10px 10px" text=3D=
#000040 bgColor=3D#dce0e3 background=3Dcid:25BD2D4E-AEA5-11D6-A22A-0050BA=
8D46AC scroll=3D"yes" X-FIT=3D"Letter" X-FCAT=3D"Elegant Paper" X-FCOL=3D=
"Elegant Paper" X-FDIS=3D"Rice Fields" X-FID=3D"BA285063-5BCE-11D4-AF8D-0=
050DAC67E11" X-FVER=3D"2.0" X-ASN=3D"ANIM3D00-NONE-0000-0000-000000000000=
" X-ASNF=3D"0" X-ASH =3D"ANIM3D00-NONE-0000-0000-000000000000" X-ASHF =3D=
"1" X-AN =3D"6486DDE0-3EFD-11D4-BA3D-0050DAC68030" X-ANF=3D"0" X-AP=3D"64=
86DDE0-3EFD-11D4-BA3D-0050DAC68030" X-APF=3D"1" X-AD=3D"C3C52140-4147-11D=
4-BA3D-0050DAC68030" X-ADF=3D"0" SIGCOLOR=3D"0" ORGYPOS=3D"0"><TABLE id=3D=
INCREDIMAINTABLE cellSpacing=3D0 cellPadding=3D2 width=3D"95%" border=3D0=
>
<TBODY>

<TR>

<TD id=3DINCREDITEXTREGION style=3D"FONT-FAMILY: Comic Sans MS; FONT-SIZE=
: 10pt; PADDING-LEFT: 7px; PADDING-RIGHT: 7px"=20
    width=3D"100%">
      <DIV>Hi,</DIV>
      <DIV>&nbsp;&nbsp;&nbsp; USB is just a serial bus which needs generi=
c=20
      drivers for both master &amp; device(s). Now it's your choice what=20
      application you run on top of this generic serial bus i.e. you need=
 to=20
      provide your driver for your device. You can simulate any applicati=
on e.g.=20
      Modem, Ethernet, Handicam ... etc.</DIV>
      <DIV>&nbsp;&nbsp;&nbsp; VxWorks provides no support for USB&nbsp;cu=
rrently=20
      &amp; I doubt they'll do that in near future. We 've written our ow=
n=20
      VxWorks drivers for USB master/slaves plus for modem &amp; ethernet=
 for ..=20
      again master &amp; slaves.</DIV>
      <DIV>&nbsp;&nbsp;&nbsp; You can reach me at <A=20
      href=3D"mailto:partha@ionicmicro.com">partha@ionicmicro.com</A> if =
you need=20
      to know more. We've developed the drivers for Motorola Coldfire fam=
ilies=20
      &amp; Phillips master &amp; slave USB chips. Porting them to other=20
      processors or USB chips is just a matter of few coffee's ;)</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>Regards</DIV>
      <DIV>Partha</DIV>
      <DIV>Firmware Engineer</DIV>
      <DIV>Ionic Microsystems Pvt Ltd</DIV>
      <DIV>Bangalore, India</DIV>
      <DIV><A href=3D"http://www.ionicmicro.com">www.ionicmicro.com</A></=
DIV>
      <DIV>&nbsp;&nbsp;&nbsp; </DIV></TD></TR>
<TR>
<TD id=3DINCREDIFOOTER width=3D"100%">
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%">
<TBODY>
<TR>
<TD width=3D"100%"></TD>
<TD id=3DINCREDISOUND vAlign=3Dbottom align=3Dmiddle></TD>
<TD id=3DINCREDIANIM vAlign=3Dbottom align=3Dmiddle></TD></TR></TBODY></T=
ABLE></TD></TR></TBODY></TABLE><SPAN=20
id=3DIncrediStamp><SPAN dir=3Dltr><FONT face=3D"Arial, Helvetica, sans-se=
rif"=20
size=3D2>____________________________________________________<BR><FONT=20
face=3D"Comic Sans MS" size=3D2><A=20
href=3D"http://www.incredimail.com/redir.asp?ad_id=3D309&amp;lang=3D9"><I=
MG=20
align=3Dbaseline alt=3D"" border=3D0 hspace=3D0=20
src=3D"cid:25BD2D4D-AEA5-11D6-A22A-0050BA8D46AC"></A>&nbsp; <I>IncrediMai=
l</I> -=20
<B>Email has finally evolved</B> - </FONT><A=20
href=3D"http://www.incredimail.com/redir.asp?ad_id=3D309&amp;lang=3D9"><F=
ONT=20
face=3D"Times New Roman" size=3D3><B><U>Click=20
Here</U></B></FONT></A></SPAN></SPAN></FONT>
<BR>
Note: <BR>
   Unless otherwise noted, the information provided by this mail does not represent the official statements or views of Ionic Microsystems. <BR>
   Privileged/Confidential information may be contained in this message and may be subject to legal privilege. Access to this e-mail by anyone other than the intended is unauthorised. If you are not the intended recipient (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver this message (or any part of its contents ) to anyone or take any action in reliance on it. In such case, you should destroy this message, and notify us immediately. If you have received this email in error, please notify us immediately by e-mail or telephone and delete the e-mail from any computer.<BR>
If you or your employer does not consent to internet e-mail messages of this kind, please notify us immediately. All reasonable precautions have been taken to ensure no viruses are present in this e-mail. As our company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use.<BR>
</BODY></html>
--------------Boundary-00=_CWORLVC0000000000000--

--------------Boundary-00=_BWORQL80000000000000
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-ID: <25BD2D4D-AEA5-11D6-A22A-0050BA8D46AC>

R0lGODlhFAAPALMIAP9gAM9gAM8vAM9gL/+QL5AvAGAvAP9gL////wAAAAAAAAAAAAAAAAAAAAAA
AAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJFAAIACwAAAAAFAAPAAAEVRDJSaudJuudrxlEKI6B
URlCUYyjKpgYAKSgOBSCDEuGDKgrAtC3Q/R+hkPJEDgYCjpKr5A8WK9OaPFZwHoPqm3366VKyeRt
E30tVVRscMHDqV/u+AgAIfkEBWQACAAsAAAAABQADwAABBIQyUmrvTjrzbv/YCiOZGmeaAQAIfkE
CRQACAAsAgABABAADQAABEoQIUOrpXIOwrsPxiQUheeRAgUA49YNhbCqK1kS9grQhXGAhsDBUJgZ
AL2Dcqkk7ogFpvRAokSn0p4PO6UIuUsQggSmFjKXdAgRAQAh+QQFCgAIACwAAAAAFAAPAAAEEhDJ
Sau9OOvNu/9gKI5kaZ5oBAAh+QQJFAAIACwCAAEAEAANAAAEShAhQ6ulcg7Cuw/GJBSF55ECBQDj
1g2FsKorWRL2CtCFcYCGwMFQmBkAvYNyqSTuiAWm9ECiRKfSng87pQi5SxCCBKYWMpd0CBEBACH5
BAVkAAgALAAAAAAUAA8AAAQSEMlJq7046827/2AojmRpnmgEADs=

--------------Boundary-00=_BWORQL80000000000000
Content-Type: Image/jpeg
Content-ID: <25BD2D4E-AEA5-11D6-A22A-0050BA8D46AC>
Content-Transfer-Encoding: base64

/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMA
EAMCAwYAAAHbAAAC1gAABZX/2wCEABALCwsMCxAMDBAXDw0PFxsUEBAUGx8XFxcXFx8eFxoaGhoX
Hh4jJSclIx4vLzMzLy9AQEBAQEBAQEBAQEBAQEABEQ8PERMRFRISFRQRFBEUGhQWFhQaJhoaHBoa
JjAjHh4eHiMwKy4nJycuKzU1MDA1NUBAP0BAQEBAQEBAQEBAQP/CABEIAGUAcwMBIgACEQEDEQH/
xACAAAEBAQEAAAAAAAAAAAAAAAAAAQIGAQEBAAAAAAAAAAAAAAAAAAAAARABAAICAwEAAgMAAAAA
AAAAAQARIQIxQRIiQDIQMFARAAICAgIBBAIDAQEAAAAAAAERACExQVFhcYGRobECEsHhMtHxEgEA
AAAAAAAAAAAAAAAAAABQ/9oADAMBAAIRAxEAAADtRZYE1ASghQFgUZoCkKSwLmhcllAEqkSkqFAl
hUomoAS3IoJqFlDNpFEAQFE1AIVYAWIVKAJRNZpYCwVmmshKACA0CBAUCBYGwf/aAAgBAgABBQD8
B/yP/9oACAEDAAEFAPz6/or8H//aAAgBAQABBQC2+ZeHjbD+saX6hwXeDW1Rg4xLLTa+m7ZiIEsI
1MTiHP1dYpvFADiFM1/X6nq9byuwdPPz5oFofWlEMQ9ULKrWq2ppG9Y2J6INQma9lVTRdlUKgHzX
XSEECw1SYu5WsGoJPkisZYpx31GvXZQ/JM3VwShzVTsp1EZbBI8LcaUSih86+s2Zl4Wp6+lAZnVs
Dkjdku5m+lJTdXDG2SHM9M2wKX1YxsaZTTwmoVrYnqsMrM652yjs01K0mtbGAz6Y5dpfqNz06qpq
5QNjiIjiZtbhtceNuf0jyeqGgu6rXMvI4omPWbPMYzEfMI+axHnFvOP4/9oACAECAgY/AGP/2gAI
AQMCBj8AY//aAAgBAQEGPwB72Yucb1BfIhFEaeZ+xRXFQELN+HEUQdjU0Xn4g9gRCQcpw1yajGYs
P/kFvUzvjUBWrIMFHI2OJQNEAjiEEFdTmfG/MTHq5RFOnpTV3kzCBx7x4YOD1AV5uYJvnqMA0hep
jfwpYCwC4Bx3q55zeZRBCw9TkoIuHw78RdczSNH2mgqcLpRC+RASAkA3B13mcYd5mR84c/yOx4lW
tRAZ6mGDhiP9WgXVyhWA+xDgMOWGMsTg/wBTz8SjjXrP8hHIlX1MZ6mDzgc/cIV/iyN1GBR0MQMK
jnEzvvMz8mUkErKlfqU63iV+IKNH7mNZBLFQEpEDeDOV32IVn8WR4caoywqI2p695mbZzNUQIcKf
k0bo+0NpCqn7CiQiNGXkdQen1DpjGeZ7WNw3pK+I93maCPc16+Zkf6XxMCsFwAkaiIB57vc/IAhZ
/HqZBBbB0ZokAEOGxsYqBgPp8agQBu4VSMJdqx6SwDsGBrTmAR93uZGX6KePowEADAIjoX8gw459
CICaW/MLGvodQfkDW71zBxRHtB3j3jC4PMIYoAgKNfPMCQNN7jCzvlzXPopzhQvNZY3CRya9ZrEF
fRE0iCB5mscZuVYfKmAi94uE3Q8qfytQ7xD0svmFcmaxNPI8iMjh3pmF2HbzqeUi+YkiD/MrOl5L
mbwPuWVfmXpv3hDH8qAjPpiZHXkRnSd6ZhB53mejzKV6US0K9TCCLyCeIhtETX5MsHBGJkD/ANiF
kMCE2qGoCdZ8Q8AMGpYFqEhdhRIYH3CF3d1M/Mexma+4CwdQ2Ddcx0exAlmj04QUQd8QWLB/iB5G
xmEg5TENVZqPYzFV8eHAy9T/AEc8a4n3Ov6g/VwvE6lpQ4VNysXzhS8esOO8w/rlF/rypjV3B5H1
Knr8T//Z

--------------Boundary-00=_BWORQL80000000000000--

From vxwexplo-errs@csg.lbl.gov  Mon Aug 12 23:00:04 2002
From: "arvind" <arvind@cwlglobal.com>
Date: Mon Aug 12 23:00:06 PDT 2002
Subject: Please Help me out

This is a multi-part message in MIME format.

------=_NextPart_000_006A_01C123CD.FBB51120
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear sir=20

I am beginer in Vxworks and Tornado II, Facing problem in running =
multiple (Vxsim NT)Simulator client on Windows NT.

I followed following these steps. Up to 9 th step it very exactly, but =
it is not ping between them and even self ping...........

but it ping for IP 127.0.0.1.  I am useing downloaded Tornado II =
version. Please help me out.

Regard
Arvind Shirabur

Running multiple simulators on NT

Goal: How to do networking with SIM NT=20
Goal: Setup Networking on Full VxSim (SIM NT) on Windows NT=20
Fact: VxSim for Windows NT=20
Fact: Windows NT 4.0=20
Fact: Tornado / 2.0=20
Fact: VxWorks / 5.4=20
Fact: simpc=20
Fix: This solution describes how to configure the full VxSim or Sim NT =
on WinNT, build VxWorks, launch two VxSim targets, and ping each other.=20
  1.. Confirm the Full VxSim product is installed.=20
  2.. Install and Configure ULIP.=20
  3.. Turn on IP Forwarding on the NT=20
  4.. Modify target/config/simpc/config.h=20
  5.. Create a New Project=20
  6.. Configure the Project and Build VxWorks=20
  7.. Launch VxSim target and attach Target Server=20
  8.. Launch Second VxSim target and target server=20
  9.. Ping the VxSim targets.=20
Details:=20
1. Confirm the Full VxSim product is installed.
  1.. The file setup.log should have at least the following entries:=20
    a.. 100-9878-30 Driver Objects/Headers: simnt=20
    b.. 100-9884-30 Tornado Full Simulator: x86-winNT=20
    c.. 100-10026-30 Tornado Object: x86-winNT x simnt=20
  The full VxSimulator product is a BSP and requires the appropriate =
Tornado object.=20
  2.. If the full simulator is installed, the file =
$WIND_BASE/target/config/simpc/fullSimInstalled.flag exists and contains =
a single line:=20
   // Presence of this file indicates that the full simulator has been =
installed.

2. Install and configure ULIP.
Please follow the instructions in the VxWorks 5.4 Programmer's Guide, =
pp. 551-552 (Appendix H.5 VxSim Networking Component, "Installing ULIP =
on a Windows NT Host").=20
Basically, this section describes how to navigate to the Network control =
panel:=20
Settings > Control Panel > Network=20
Select the "Adapters" tab, and install the ULIP driver by specifying the =
path to the driver, located in your Tornado installation at =
../host/x86-w2in32/bin.=20

IMPORTANT:=20
However, for IP address enter the following:=20

90.0.0.254=20

instead of the value listed in the Programmer's Guide, which is =
90.0.0.255. The 255 is incorrect and specifies the broadcast address. =
Again, 255 is wrong; use 254.=20
If the ULIP driver has already been installed and it is necessary to =
modify or to verify the settings, do the following:=20

  1.. Navigate from Start > Settings > Control Panels > Network=20
  2.. Select the "Protocols" tab and "TCP/IP"=20
  3.. Select "Properties"=20
  4.. In "IP Address" tab, from the "Adapter" pull down menu, select =
ULIP Virtual Adapter.=20
  5.. Select "Specify an IP address"=20
  For IP Address, input 90.0.0.254=20
  For Subnet Mask, input 255.255.255.0=20
3. Turn on IP forwarding
For one vxSim target to talk to another, IP forwarding needs to be =
turned on.=20
To turn on IP forwarding on NT:=20

  1.. Navigate to the Network Control Panel:=20
  Start > Settings > Control Panels > Network=20
  2.. Once there, select the "Protocol" tab, select "TCP/IP" and select =
"Properties".=20
  3.. Select "Routing"=20
  Click on "Enable IP Forwarding"=20
After all these changes, you should be prompted that it is necessary to =
shutdown and restart WinNT.=20
4. Modify CONFIG.H
Locate config.h and the following lines:=20

/*
* The default configuration is no network. If you've
installed the
* full featured simulator (unbundled), change TRUE to
FALSE below.
*/

#if TRUE /* change this to FALSE for full VxSim */
#undef INCLUDE_NETWORK
#undef INCLUDE_NET_INIT
#undef WDB_COMM_TYPE
#define WDB_COMM_TYPE WDB_COMM_PIPE
#undef WDB_TTY_TEST
#else /* !TRUE */
#define INCLUDE_END
#endif

Change the TRUE to FALSE, per the comment above.=20
Do this before you build a project based on simpc!!=20
5. CREATE A NEW PROJECT
Create a new project, which should be a downloadable vxWorks boot image, =
based on the bsp: simpc.=20

6. CONFIGURE PROJECT AND BUILD VXWORKS
Configure the new Project to include a target shell, symbol table, show =
routines, net show routines and ping.=20
Using the Project facility, identify the following components and =
include them.=20

  1.. Find the PING client under:=20
  network components > network protocols > network applications > PING =
client=20
  Or right-click in the Project facility's "VxWorks" tab window, and =
select "Find Object..." In the dialog box that appears, from the =
pull-down menu, select "Components" and scroll through the list to find =
the object: INCLUDE_PING.=20
  2.. Locate network components > network debugging. Right-click on =
network debugging From the check list. select:=20
    a.. UDP show routines=20
    b.. TCP show routines=20
    c.. ICMP show routines=20
    d.. IGMP show routines=20
    e.. Network show routines
  3.. Under development tool components, locate show routines. =
Right-click on show routines. Select and include:=20
    a.. memory show routines=20
    b.. stdio show routines=20
    c.. symbol table show routines=20
    d.. task show routines=20
  4.. Also under development tool components, include the downloaded =
symbol table:=20
  > symbol table components >symbol table initialization components =
>select symbol table initialization > >downloaded symbol table=20
  5.. Include error status table (or INCLUDE_STAT_SYM_TBL):=20
  >symbol table components > error status table=20
  6.. Locate target shell component and include it.=20
  >development tool components > >target shell components > target shell =

  (target debugging will automatically be included.)=20
  7.. Right-click in the VxWorks tab of the Project Facility and select =
"Rebuild all (vxWorks.exe).=20
7. LAUNCH VXSIM TARGET AND TARGET SERVER
Launch a VxSim target by clicking on VxSim icon in tool bar. From the =
dialog box that appears, select "Custom-built simulator".=20
Click on "Browse" and navigate to the directory where the vxWorks.exe =
image is located, i.e. D:\T2sim\target\proj\simPROJ\default\vxWorks.exe=20
A "VxWorks Simulator for Windows" window appears:=20

0x4b9aeb0
Attached TCP/IP interface to nt unit 0
Attaching interface lo0...done
Loading symbol table from
host:D:/T2sim/target/proj/fullSimNT2/default/vxWorks.exe.sym
...done

VxWorks

Copyright 1984-1998 Wind River Systems, Inc.

CPU: VxSim for Windows
VxWorks: 5.4
BSP version: 1.1/1
Creation date: Jul 7 1999
WDB: Ready.

7.1 Launching the target server
When the target is successfully launched, a window automatically =
appears: "VxSim Launch: Launch Target Server" A message reads:=20

"A Target Server named "vxsim@heiwa" is required and
will be started."

IMPORTANT: click on CANCEL Clicking on OK launches a target server that =
fails:=20
"tgtsvr (vxTarget@heiwa): Wed Aug 25 00:17:08 1999
Wind River Systems Target Server: NT/Win95 version
Error: Target vxsim5 unknown. Attach failed.
Error: Backend initialization routine failed.
Problem during Backend initialization
Target Server will exit"

And then an error box also appears:=20
Target Server failed to initialize before timeout.
a
(The automatically launched target server fails because the name of the =
target is vxTarget, as hostShow will indicate later. The name of the =
target is hardcoded in configAll.h to vxTarget.)=20
INSTEAD, from Tornado menu: select Tools > Target Server=20
Configure the target server to use wdbrpc backend, to attach to a target =
with IP address 90.0.0.1. The target server command line should look =
like this:=20

tgtsvr.exe 90.0.0.1 -n vxTarget1 -V -B wdbrpc -R d\ -RW

Click on "Launch"=20
Confirm that the Target Server connected to the target by =
double-clicking on the small red and white, bulls-eye icon that appears =
in the lower right hand corner of the desktop.=20

A window called vxTarget1@heiwa Log Console appears and contains =
something like the following text:=20

tgtsvr (vxTarget1@heiwa): Tue Aug 24 23:13:59 1999
Wind River Systems Target Server: NT/Win95 version
Connecting to target agent... succeeded.
Attaching C++ interface... succeeded.
Attaching pecoff OMF reader for SIMNT CPU family... succeeded.

Launch windsh and run ifShow=20
Copyright 1995-1999 Wind River Systems, Inc.

C++ Constructors/Destructors Strategy is AUTOMATIC

-> 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
value =3D 0 =3D 0x0

8. Launch second VxSim target
Launch a second VxSim target by clicking on the VxSim icon, and use =
processor 1 (instead of 0).=20
Follow the same procedure as above to launch a second target server. The =
IP address of the target is 90.0.0.2 (if processor 1 was used).=20
VxSimNT targets can be numbered from 0-9. IP addresses from 90.0.0.1 =
through 90.0.0.10=20
(Unlike VxSim on Solaris using ULIP which supports up to 15 targets, =
full VxSimNT only supports up to 10 targets.)=20
Selecting target server "VxSim2@heiwa", start another Windsh:=20

Copyright 1995-1999 Wind River Systems, Inc.

C++ Constructors/Destructors Strategy is AUTOMATIC

->

hostShow identifies the VxSim target as "vxTarget" with an IP address of =
90.0.0.2.=20
-> hostShow
hostname inet address aliases
-------- ------------ -------
vxTarget 90.0.0.2
localhost 127.0.0.1
host 90.0.0.254
value =3D 0 =3D 0x0

-> ifShow
nt (unit number 0):
Flags: (0xf1) UP POINT-TO-POINT RUNNING
Type: ETHERNET_CSMACD
Internet address: 90.0.0.2
Destination Internet address: 0.0.0.0
Netmask 0xff000000 Subnetmask 0xff000000
Metric is 0
Maximum Transfer Unit size is 1520
4 packets received; 5 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
value =3D 0 =3D 0x0

9. Ping the vxSim targets.
Vxsim targets can now ping each other:=20

>From Windsh of target 90.0.0.2:=20

-> ping "90.0.0.1",3
PING 90.0.0.1: 56 data bytes
64 bytes from 90.0.0.1: icmp_seq=3D0. time=3D48. ms
64 bytes from 90.0.0.1: icmp_seq=3D1. time=3D64. ms
64 bytes from 90.0.0.1: icmp_seq=3D0. time=3D1072. ms
----90.0.0.1 PING Statistics----
2 packets transmitted, 3 packets received, -50%
packet loss
round-trip (ms) min/avg/max =3D 48/394/1072
value =3D 0 =3D 0x0
->

>From WinNT DOS command prompt, ping the targets:=20
c:\tornado>ping 90.0.0.1

Pinging 90.0.0.1 with 32 bytes of data:

Reply from 90.0.0.1: bytes=3D32 time=3D30ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time<10ms TTL=3D64

c:\tornado>ping 90.0.0.2

Pinging 90.0.0.2 with 32 bytes of data:

Reply from 90.0.0.2: bytes=3D32 time=3D30ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64

=20

=A9 J.A. Borkhuis, 2000
Last Updated: 02/12/2002 16:06:50=20

------=_NextPart_000_006A_01C123CD.FBB51120
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.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Dear sir </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am beginer in Vxworks and Tornado II, =
Facing=20
problem in running multiple (Vxsim NT)Simulator client on Windows=20
NT.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I followed following these steps. =
<STRONG>Up to 9=20
th step it very exactly</STRONG>, but it is not ping between them and =
even self=20
ping...........</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>but it ping for IP =
<STRONG>127.0.0.1.&nbsp;=20
</STRONG>I am useing downloaded Tornado II version. Please help me=20
out.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regard</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Arvind Shirabur</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<CENTER>
<H1><B>Running multiple simulators on NT</B></H1></CENTER><BR>Goal: How =
to do=20
networking with SIM NT <BR>Goal: Setup Networking on Full VxSim (SIM NT) =
on=20
Windows NT <BR>Fact: VxSim for Windows NT <BR>Fact: Windows NT 4.0 =
<BR>Fact:=20
Tornado / 2.0 <BR>Fact: VxWorks / 5.4 <BR>Fact: simpc <BR>Fix: This =
solution=20
describes how to configure the full VxSim or Sim NT on WinNT, build =
VxWorks,=20
launch two VxSim targets, and ping each other.=20
<OL>
  <LI>Confirm the Full VxSim product is installed.=20
  <LI>Install and Configure ULIP.=20
  <LI>Turn on IP Forwarding on the NT=20
  <LI>Modify target/config/simpc/config.h=20
  <LI>Create a New Project=20
  <LI>Configure the Project and Build VxWorks=20
  <LI>Launch VxSim target and attach Target Server=20
  <LI>Launch Second VxSim target and target server=20
  <LI>Ping the VxSim targets. </LI></OL>Details:=20
<H4>1. Confirm the Full VxSim product is installed.</H4>
<OL>
  <LI>The file setup.log should have at least the following entries:=20
  <UL>
    <LI>100-9878-30 Driver Objects/Headers: simnt=20
    <LI>100-9884-30 Tornado Full Simulator: x86-winNT=20
    <LI>100-10026-30 Tornado Object: x86-winNT x simnt </LI></UL>The =
full=20
  VxSimulator product is a BSP and requires the appropriate Tornado =
object.=20
  <LI>If the full simulator is installed, the file=20
  $WIND_BASE/target/config/simpc/fullSimInstalled.flag exists and =
contains a=20
  single line: <PRE>   // Presence of this file indicates that the full =
simulator has been installed.
</PRE></LI></OL>
<H4>2. Install and configure ULIP.</H4>
<P>Please follow the instructions in the VxWorks 5.4 Programmer's Guide, =
pp.=20
551-552 (Appendix H.5 VxSim Networking Component, "Installing ULIP on a =
Windows=20
NT Host"). <BR>Basically, this section describes how to navigate to the =
Network=20
control panel: <BR>Settings &gt; Control Panel &gt; Network <BR>Select =
the=20
"Adapters" tab, and install the ULIP driver by specifying the path to =
the=20
driver, located in your Tornado installation at ../host/x86-w2in32/bin.=20
<P>IMPORTANT: <BR>However, for IP address enter the following:=20
<P>90.0.0.254=20
<P>instead of the value listed in the Programmer's Guide, which is =
90.0.0.255.=20
The 255 is incorrect and specifies the broadcast address. Again, 255 is =
wrong;=20
use 254. <BR>If the ULIP driver has already been installed and it is =
necessary=20
to modify or to verify the settings, do the following:=20
<OL>
  <LI>Navigate from Start &gt; Settings &gt; Control Panels &gt; Network =

  <LI>Select the "Protocols" tab and "TCP/IP"=20
  <LI>Select "Properties"=20
  <LI>In "IP Address" tab, from the "Adapter" pull down menu, select =
ULIP=20
  Virtual Adapter.=20
  <LI>Select "Specify an IP address" <BR>For IP Address, input =
90.0.0.254=20
  <BR>For Subnet Mask, input 255.255.255.0 </LI></OL>
<H4>3. Turn on IP forwarding</H4>
<P>For one vxSim target to talk to another, IP forwarding needs to be =
turned on.=20
<BR>To turn on IP forwarding on NT:=20
<OL>
  <LI>Navigate to the Network Control Panel: <BR>Start &gt; Settings =
&gt;=20
  Control Panels &gt; Network=20
  <LI>Once there, select the "Protocol" tab, select "TCP/IP" and select=20
  "Properties".=20
  <LI>Select "Routing" <BR>Click on "Enable IP Forwarding" =
</LI></OL>After all=20
these changes, you should be prompted that it is necessary to shutdown =
and=20
restart WinNT.=20
<H4>4. Modify CONFIG.H</H4>
<P>Locate config.h and the following lines: <PRE>/*
* The default configuration is no network. If you've
installed the
* full featured simulator (unbundled), change TRUE to
FALSE below.
*/

#if TRUE /* change this to FALSE for full VxSim */
#undef INCLUDE_NETWORK
#undef INCLUDE_NET_INIT
#undef WDB_COMM_TYPE
#define WDB_COMM_TYPE WDB_COMM_PIPE
#undef WDB_TTY_TEST
#else /* !TRUE */
#define INCLUDE_END
#endif
</PRE>Change the TRUE to FALSE, per the comment above. <BR>Do this =
before you=20
build a project based on simpc!!=20
<H4>5. CREATE A NEW PROJECT</H4>
<P>Create a new project, which should be a downloadable vxWorks boot =
image,=20
based on the bsp: simpc.=20
<H4>6. CONFIGURE PROJECT AND BUILD VXWORKS</H4>
<P>Configure the new Project to include a target shell, symbol table, =
show=20
routines, net show routines and ping. <BR>Using the Project facility, =
identify=20
the following components and include them.=20
<OL>
  <LI>Find the PING client under: <BR>network components &gt; network =
protocols=20
  &gt; network applications &gt; PING client <BR>Or right-click in the =
Project=20
  facility's "VxWorks" tab window, and select "Find Object..." In the =
dialog box=20
  that appears, from the pull-down menu, select "Components" and scroll =
through=20
  the list to find the object: INCLUDE_PING.=20
  <LI>Locate network components &gt; network debugging. Right-click on =
network=20
  debugging From the check list. select:=20
  <UL>
    <LI>UDP show routines=20
    <LI>TCP show routines=20
    <LI>ICMP show routines=20
    <LI>IGMP show routines=20
    <LI>Network show routines</LI></UL>
  <LI>Under development tool components, locate show routines. =
Right-click on=20
  show routines. Select and include:=20
  <UL>
    <LI>memory show routines=20
    <LI>stdio show routines=20
    <LI>symbol table show routines=20
    <LI>task show routines </LI></UL>
  <LI>Also under development tool components, include the downloaded =
symbol=20
  table: <BR>&gt; symbol table components &gt;symbol table =
initialization=20
  components &gt;select symbol table initialization &gt; &gt;downloaded =
symbol=20
  table=20
  <LI>Include error status table (or INCLUDE_STAT_SYM_TBL): =
<BR>&gt;symbol table=20
  components &gt; error status table=20
  <LI>Locate target shell component and include it. <BR>&gt;development =
tool=20
  components &gt; &gt;target shell components &gt; target shell =
<BR>(target=20
  debugging will automatically be included.)=20
  <LI>Right-click in the VxWorks tab of the Project Facility and select =
"Rebuild=20
  all (vxWorks.exe). </LI></OL>
<H4>7. LAUNCH VXSIM TARGET AND TARGET SERVER</H4>
<P>Launch a VxSim target by clicking on VxSim icon in tool bar. From the =
dialog=20
box that appears, select "Custom-built simulator". <BR>Click on "Browse" =
and=20
navigate to the directory where the vxWorks.exe image is located, i.e.=20
D:\T2sim\target\proj\simPROJ\default\vxWorks.exe <BR>A "VxWorks =
Simulator for=20
Windows" window appears: <PRE>0x4b9aeb0
Attached TCP/IP interface to nt unit 0
Attaching interface lo0...done
Loading symbol table from
host:D:/T2sim/target/proj/fullSimNT2/default/vxWorks.exe.sym
...done

VxWorks

Copyright 1984-1998 Wind River Systems, Inc.

CPU: VxSim for Windows
VxWorks: 5.4
BSP version: 1.1/1
Creation date: Jul 7 1999
WDB: Ready.
</PRE>
<H4>7.1 Launching the target server</H4>
<P>When the target is successfully launched, a window automatically =
appears:=20
"VxSim Launch: Launch Target Server" A message reads: <PRE>"A Target =
Server named "vxsim@heiwa" is required and
will be started."
</PRE>IMPORTANT: click on CANCEL Clicking on OK launches a target server =
that=20
fails: <PRE>"tgtsvr (vxTarget@heiwa): Wed Aug 25 00:17:08 1999
Wind River Systems Target Server: NT/Win95 version
Error: Target vxsim5 unknown. Attach failed.
Error: Backend initialization routine failed.
Problem during Backend initialization
Target Server will exit"
</PRE>And then an error box also appears: <PRE>Target Server failed to =
initialize before timeout.
a</PRE>(The automatically launched target server fails because the name =
of the=20
target is vxTarget, as hostShow will indicate later. The name of the =
target is=20
hardcoded in configAll.h to vxTarget.)=20
<P>INSTEAD, from Tornado menu: select Tools &gt; Target Server =
<BR>Configure the=20
target server to use wdbrpc backend, to attach to a target with IP =
address=20
90.0.0.1. The target server command line should look like this: =
<PRE>tgtsvr.exe 90.0.0.1 -n vxTarget1 -V -B wdbrpc -R d\ -RW
</PRE>Click on "Launch"=20
<P>Confirm that the Target Server connected to the target by =
double-clicking on=20
the small red and white, bulls-eye icon that appears in the lower right =
hand=20
corner of the desktop.=20
<P>A window called vxTarget1@heiwa Log Console appears and contains =
something=20
like the following text: <PRE>tgtsvr (vxTarget1@heiwa): Tue Aug 24 =
23:13:59 1999
Wind River Systems Target Server: NT/Win95 version
Connecting to target agent... succeeded.
Attaching C++ interface... succeeded.
Attaching pecoff OMF reader for SIMNT CPU family... succeeded.
</PRE>Launch windsh and run ifShow <PRE>Copyright 1995-1999 Wind River =
Systems, Inc.

C++ Constructors/Destructors Strategy is AUTOMATIC

-&gt; 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
value =3D 0 =3D 0x0
</PRE>
<H4>8. Launch second VxSim target</H4>
<P>Launch a second VxSim target by clicking on the VxSim icon, and use =
processor=20
1 (instead of 0). <BR>Follow the same procedure as above to launch a =
second=20
target server. The IP address of the target is 90.0.0.2 (if processor 1 =
was=20
used). <BR>VxSimNT targets can be numbered from 0-9. IP addresses from =
90.0.0.1=20
through 90.0.0.10 <BR>(Unlike VxSim on Solaris using ULIP which supports =
up to=20
15 targets, full VxSimNT only supports up to 10 targets.) <BR>Selecting =
target=20
server "VxSim2@heiwa", start another Windsh: <PRE>Copyright 1995-1999 =
Wind River Systems, Inc.

C++ Constructors/Destructors Strategy is AUTOMATIC

-&gt;
</PRE>hostShow identifies the VxSim target as "vxTarget" with an IP =
address of=20
90.0.0.2. <PRE>-&gt; hostShow
hostname inet address aliases
-------- ------------ -------
vxTarget 90.0.0.2
localhost 127.0.0.1
host 90.0.0.254
value =3D 0 =3D 0x0

-&gt; ifShow
nt (unit number 0):
Flags: (0xf1) UP POINT-TO-POINT RUNNING
Type: ETHERNET_CSMACD
Internet address: 90.0.0.2
Destination Internet address: 0.0.0.0
Netmask 0xff000000 Subnetmask 0xff000000
Metric is 0
Maximum Transfer Unit size is 1520
4 packets received; 5 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
value =3D 0 =3D 0x0
</PRE>
<H4>9. Ping the vxSim targets.</H4>
<P>Vxsim targets can now ping each other:=20
<P>From Windsh of target 90.0.0.2: <PRE>-&gt; ping "90.0.0.1",3
PING 90.0.0.1: 56 data bytes
64 bytes from 90.0.0.1: icmp_seq=3D0. time=3D48. ms
64 bytes from 90.0.0.1: icmp_seq=3D1. time=3D64. ms
64 bytes from 90.0.0.1: icmp_seq=3D0. time=3D1072. ms
----90.0.0.1 PING Statistics----
2 packets transmitted, 3 packets received, -50%
packet loss
round-trip (ms) min/avg/max =3D 48/394/1072
value =3D 0 =3D 0x0
-&gt;
</PRE>From WinNT DOS command prompt, ping the targets: =
<PRE>c:\tornado&gt;ping 90.0.0.1

Pinging 90.0.0.1 with 32 bytes of data:

Reply from 90.0.0.1: bytes=3D32 time=3D30ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time&lt;10ms TTL=3D64

c:\tornado&gt;ping 90.0.0.2

Pinging 90.0.0.2 with 32 bytes of data:

Reply from 90.0.0.2: bytes=3D32 time=3D30ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64
</PRE>
<P>&nbsp;<BR>
<CENTER>=A9 J.A. Borkhuis, 2000</CENTER>
<CENTER>
<SCRIPT language=3DJavaScript>=0A=
<!--=0A=
        var theDate =3D ""=0A=
        theDate =3D document.lastModified=0A=
        document.write("Last Updated: ");=0A=
        document.write(theDate);=0A=
        document.write();=0A=
//-->=0A=
</SCRIPT>
Last Updated: 02/12/2002 16:06:50 </CENTER></FONT></DIV></BODY></HTML>

------=_NextPart_000_006A_01C123CD.FBB51120--

From vxwexplo-errs@csg.lbl.gov  Tue Aug 13 00:06:29 2002
From: Ilia Bosis <Ilia_Bosis@packetlight.com>
Date: Tue Aug 13 00:06:31 PDT 2002
Subject: Re:  Re: trouble in ping with a larger packet on ne2000 Ethernet

Rover !
Some clarifications are in place:

-- The MTU is an inherent property of the physical media. 
   While You is on the Ethernet, Your MTU is fixed to:
   MaxEthernetFrameSize - EthernetMAC_HeaderSize - IP_HeaderSize.
   In any case it's LESS than 1500(the MaxEthernetFrameSize).

-- According to the IP protocol standard, the IP stack must be able 
   to fragment too long messages (with size > MTU) into chunks.
   However, that fragmentation brings a bag of troubles, 
   so the consensus today is to avoid the IP fragmentation 
   as much as possible.

-- "Standard" ping (one that You can find on any computer)
   has a command-line option that force IP to NOT fragment the packets.
   I.e. it's just drop the too long packets instead of fragmenting them.
   Try ping -h or ping -? from the DOS/UNIX prompt
   to see the ping options on Your computer.

-- From my experience, the VxWorks IP stack has a problems with the   
   fragmentation (or it's configured to not fragment by default).
   Anyway, I'd never succeeded to ping VxWorks target 
   with the packets longer that the MTU.

Hope, this helps.
	Ilia.

Date: 11 Aug 2002 18:39:28 -0700
From: rover2@163.com (rover)

When I ping another pc(win2000),same thing happend!!

How can I get and modify MTU?

thanks advance.

"cfk" <cfk_alter_ego@pacbell.net> wrote in message
news:<thx59.1066$8_7.44448036@newssvr14.news.prodigy.com>...
> Let me take a wild stab at this one and suggest that the size of the ping
> packet needs to be less then the smallest MTU between the host you are
> pinging from and the host you are pinging to. I believe MTU is usually
1500
> on an ethernet link.
> 
> 
> "rover" <rover2@163.com> wrote in message
> news:7f29c2ad.0208091812.5eadfa30@posting.google.com...
> > rover2@163.com (rover) wrote in message
>  news:<7f29c2ad.0208080439.62e501b7@posting.google.com>...
> > > Hi,all
> > >
> > > I have a 486(pc104) with a ne2000 ethernet card,use vxworks 5.4.
> > >
> > > when I ping it with a litter packet(<1500 bytes),it is ok,but when the
> > > packet is larger(>1500),ping is failed! why?
> > >
> > > blow is:
> > >
> > > ping 192.168.144.1 -t -l 1500
> > >
> > > Pinging 192.168.144.1 with 1500 bytes of data:
> > >
> > > Request timed out.
> > > Request timed out.
> > > Request timed out.
> > > Request timed out.
> > >
> > > ping 192.168.144.1 -t -l 1472
> > >
> > > Pinging 192.168.144.1 with 1472 bytes of data:
> > >
> > > Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64
> > > Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64
> > > Reply from 192.168.144.1: bytes=1472 time<10ms TTL=64
> > >
> > > regards
> >
> > who can help me?
> >
> > thank very much.

--------------------------------------------
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  Tue Aug 13 00:08:04 2002
From: "arvind" <arvind@cwlglobal.com>
Date: Tue Aug 13 00:08:07 PDT 2002
Subject: Please Help me out

This is a multi-part message in MIME format.

------=_NextPart_000_006A_01C123CD.FBB51120
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear sir=20

I am beginer in Vxworks and Tornado II, Facing problem in running =
multiple (Vxsim NT)Simulator client on Windows NT.

I followed following these steps. Up to 9 th step it very exactly, but =
it is not ping between them and even self ping...........

but it ping for IP 127.0.0.1.  I am useing downloaded Tornado II =
version. Please help me out.

Regard
Arvind Shirabur

Running multiple simulators on NT

Goal: How to do networking with SIM NT=20
Goal: Setup Networking on Full VxSim (SIM NT) on Windows NT=20
Fact: VxSim for Windows NT=20
Fact: Windows NT 4.0=20
Fact: Tornado / 2.0=20
Fact: VxWorks / 5.4=20
Fact: simpc=20
Fix: This solution describes how to configure the full VxSim or Sim NT =
on WinNT, build VxWorks, launch two VxSim targets, and ping each other.=20
  1.. Confirm the Full VxSim product is installed.=20
  2.. Install and Configure ULIP.=20
  3.. Turn on IP Forwarding on the NT=20
  4.. Modify target/config/simpc/config.h=20
  5.. Create a New Project=20
  6.. Configure the Project and Build VxWorks=20
  7.. Launch VxSim target and attach Target Server=20
  8.. Launch Second VxSim target and target server=20
  9.. Ping the VxSim targets.=20
Details:=20
1. Confirm the Full VxSim product is installed.
  1.. The file setup.log should have at least the following entries:=20
    a.. 100-9878-30 Driver Objects/Headers: simnt=20
    b.. 100-9884-30 Tornado Full Simulator: x86-winNT=20
    c.. 100-10026-30 Tornado Object: x86-winNT x simnt=20
  The full VxSimulator product is a BSP and requires the appropriate =
Tornado object.=20
  2.. If the full simulator is installed, the file =
$WIND_BASE/target/config/simpc/fullSimInstalled.flag exists and contains =
a single line:=20
   // Presence of this file indicates that the full simulator has been =
installed.

2. Install and configure ULIP.
Please follow the instructions in the VxWorks 5.4 Programmer's Guide, =
pp. 551-552 (Appendix H.5 VxSim Networking Component, "Installing ULIP =
on a Windows NT Host").=20
Basically, this section describes how to navigate to the Network control =
panel:=20
Settings > Control Panel > Network=20
Select the "Adapters" tab, and install the ULIP driver by specifying the =
path to the driver, located in your Tornado installation at =
../host/x86-w2in32/bin.=20

IMPORTANT:=20
However, for IP address enter the following:=20

90.0.0.254=20

instead of the value listed in the Programmer's Guide, which is =
90.0.0.255. The 255 is incorrect and specifies the broadcast address. =
Again, 255 is wrong; use 254.=20
If the ULIP driver has already been installed and it is necessary to =
modify or to verify the settings, do the following:=20

  1.. Navigate from Start > Settings > Control Panels > Network=20
  2.. Select the "Protocols" tab and "TCP/IP"=20
  3.. Select "Properties"=20
  4.. In "IP Address" tab, from the "Adapter" pull down menu, select =
ULIP Virtual Adapter.=20
  5.. Select "Specify an IP address"=20
  For IP Address, input 90.0.0.254=20
  For Subnet Mask, input 255.255.255.0=20
3. Turn on IP forwarding
For one vxSim target to talk to another, IP forwarding needs to be =
turned on.=20
To turn on IP forwarding on NT:=20

  1.. Navigate to the Network Control Panel:=20
  Start > Settings > Control Panels > Network=20
  2.. Once there, select the "Protocol" tab, select "TCP/IP" and select =
"Properties".=20
  3.. Select "Routing"=20
  Click on "Enable IP Forwarding"=20
After all these changes, you should be prompted that it is necessary to =
shutdown and restart WinNT.=20
4. Modify CONFIG.H
Locate config.h and the following lines:=20

/*
* The default configuration is no network. If you've
installed the
* full featured simulator (unbundled), change TRUE to
FALSE below.
*/

#if TRUE /* change this to FALSE for full VxSim */
#undef INCLUDE_NETWORK
#undef INCLUDE_NET_INIT
#undef WDB_COMM_TYPE
#define WDB_COMM_TYPE WDB_COMM_PIPE
#undef WDB_TTY_TEST
#else /* !TRUE */
#define INCLUDE_END
#endif

Change the TRUE to FALSE, per the comment above.=20
Do this before you build a project based on simpc!!=20
5. CREATE A NEW PROJECT
Create a new project, which should be a downloadable vxWorks boot image, =
based on the bsp: simpc.=20

6. CONFIGURE PROJECT AND BUILD VXWORKS
Configure the new Project to include a target shell, symbol table, show =
routines, net show routines and ping.=20
Using the Project facility, identify the following components and =
include them.=20

  1.. Find the PING client under:=20
  network components > network protocols > network applications > PING =
client=20
  Or right-click in the Project facility's "VxWorks" tab window, and =
select "Find Object..." In the dialog box that appears, from the =
pull-down menu, select "Components" and scroll through the list to find =
the object: INCLUDE_PING.=20
  2.. Locate network components > network debugging. Right-click on =
network debugging From the check list. select:=20
    a.. UDP show routines=20
    b.. TCP show routines=20
    c.. ICMP show routines=20
    d.. IGMP show routines=20
    e.. Network show routines
  3.. Under development tool components, locate show routines. =
Right-click on show routines. Select and include:=20
    a.. memory show routines=20
    b.. stdio show routines=20
    c.. symbol table show routines=20
    d.. task show routines=20
  4.. Also under development tool components, include the downloaded =
symbol table:=20
  > symbol table components >symbol table initialization components =
>select symbol table initialization > >downloaded symbol table=20
  5.. Include error status table (or INCLUDE_STAT_SYM_TBL):=20
  >symbol table components > error status table=20
  6.. Locate target shell component and include it.=20
  >development tool components > >target shell components > target shell =

  (target debugging will automatically be included.)=20
  7.. Right-click in the VxWorks tab of the Project Facility and select =
"Rebuild all (vxWorks.exe).=20
7. LAUNCH VXSIM TARGET AND TARGET SERVER
Launch a VxSim target by clicking on VxSim icon in tool bar. From the =
dialog box that appears, select "Custom-built simulator".=20
Click on "Browse" and navigate to the directory where the vxWorks.exe =
image is located, i.e. D:\T2sim\target\proj\simPROJ\default\vxWorks.exe=20
A "VxWorks Simulator for Windows" window appears:=20

0x4b9aeb0
Attached TCP/IP interface to nt unit 0
Attaching interface lo0...done
Loading symbol table from
host:D:/T2sim/target/proj/fullSimNT2/default/vxWorks.exe.sym
...done

VxWorks

Copyright 1984-1998 Wind River Systems, Inc.

CPU: VxSim for Windows
VxWorks: 5.4
BSP version: 1.1/1
Creation date: Jul 7 1999
WDB: Ready.

7.1 Launching the target server
When the target is successfully launched, a window automatically =
appears: "VxSim Launch: Launch Target Server" A message reads:=20

"A Target Server named "vxsim@heiwa" is required and
will be started."

IMPORTANT: click on CANCEL Clicking on OK launches a target server that =
fails:=20
"tgtsvr (vxTarget@heiwa): Wed Aug 25 00:17:08 1999
Wind River Systems Target Server: NT/Win95 version
Error: Target vxsim5 unknown. Attach failed.
Error: Backend initialization routine failed.
Problem during Backend initialization
Target Server will exit"

And then an error box also appears:=20
Target Server failed to initialize before timeout.
a
(The automatically launched target server fails because the name of the =
target is vxTarget, as hostShow will indicate later. The name of the =
target is hardcoded in configAll.h to vxTarget.)=20
INSTEAD, from Tornado menu: select Tools > Target Server=20
Configure the target server to use wdbrpc backend, to attach to a target =
with IP address 90.0.0.1. The target server command line should look =
like this:=20

tgtsvr.exe 90.0.0.1 -n vxTarget1 -V -B wdbrpc -R d\ -RW

Click on "Launch"=20
Confirm that the Target Server connected to the target by =
double-clicking on the small red and white, bulls-eye icon that appears =
in the lower right hand corner of the desktop.=20

A window called vxTarget1@heiwa Log Console appears and contains =
something like the following text:=20

tgtsvr (vxTarget1@heiwa): Tue Aug 24 23:13:59 1999
Wind River Systems Target Server: NT/Win95 version
Connecting to target agent... succeeded.
Attaching C++ interface... succeeded.
Attaching pecoff OMF reader for SIMNT CPU family... succeeded.

Launch windsh and run ifShow=20
Copyright 1995-1999 Wind River Systems, Inc.

C++ Constructors/Destructors Strategy is AUTOMATIC

-> 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
value =3D 0 =3D 0x0

8. Launch second VxSim target
Launch a second VxSim target by clicking on the VxSim icon, and use =
processor 1 (instead of 0).=20
Follow the same procedure as above to launch a second target server. The =
IP address of the target is 90.0.0.2 (if processor 1 was used).=20
VxSimNT targets can be numbered from 0-9. IP addresses from 90.0.0.1 =
through 90.0.0.10=20
(Unlike VxSim on Solaris using ULIP which supports up to 15 targets, =
full VxSimNT only supports up to 10 targets.)=20
Selecting target server "VxSim2@heiwa", start another Windsh:=20

Copyright 1995-1999 Wind River Systems, Inc.

C++ Constructors/Destructors Strategy is AUTOMATIC

->

hostShow identifies the VxSim target as "vxTarget" with an IP address of =
90.0.0.2.=20
-> hostShow
hostname inet address aliases
-------- ------------ -------
vxTarget 90.0.0.2
localhost 127.0.0.1
host 90.0.0.254
value =3D 0 =3D 0x0

-> ifShow
nt (unit number 0):
Flags: (0xf1) UP POINT-TO-POINT RUNNING
Type: ETHERNET_CSMACD
Internet address: 90.0.0.2
Destination Internet address: 0.0.0.0
Netmask 0xff000000 Subnetmask 0xff000000
Metric is 0
Maximum Transfer Unit size is 1520
4 packets received; 5 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
value =3D 0 =3D 0x0

9. Ping the vxSim targets.
Vxsim targets can now ping each other:=20

>From Windsh of target 90.0.0.2:=20

-> ping "90.0.0.1",3
PING 90.0.0.1: 56 data bytes
64 bytes from 90.0.0.1: icmp_seq=3D0. time=3D48. ms
64 bytes from 90.0.0.1: icmp_seq=3D1. time=3D64. ms
64 bytes from 90.0.0.1: icmp_seq=3D0. time=3D1072. ms
----90.0.0.1 PING Statistics----
2 packets transmitted, 3 packets received, -50%
packet loss
round-trip (ms) min/avg/max =3D 48/394/1072
value =3D 0 =3D 0x0
->

>From WinNT DOS command prompt, ping the targets:=20
c:\tornado>ping 90.0.0.1

Pinging 90.0.0.1 with 32 bytes of data:

Reply from 90.0.0.1: bytes=3D32 time=3D30ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time<10ms TTL=3D64

c:\tornado>ping 90.0.0.2

Pinging 90.0.0.2 with 32 bytes of data:

Reply from 90.0.0.2: bytes=3D32 time=3D30ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64

=20

=A9 J.A. Borkhuis, 2000
Last Updated: 02/12/2002 16:06:50=20

------=_NextPart_000_006A_01C123CD.FBB51120
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.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Dear sir </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am beginer in Vxworks and Tornado II, =
Facing=20
problem in running multiple (Vxsim NT)Simulator client on Windows=20
NT.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I followed following these steps. =
<STRONG>Up to 9=20
th step it very exactly</STRONG>, but it is not ping between them and =
even self=20
ping...........</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>but it ping for IP =
<STRONG>127.0.0.1.&nbsp;=20
</STRONG>I am useing downloaded Tornado II version. Please help me=20
out.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regard</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Arvind Shirabur</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<CENTER>
<H1><B>Running multiple simulators on NT</B></H1></CENTER><BR>Goal: How =
to do=20
networking with SIM NT <BR>Goal: Setup Networking on Full VxSim (SIM NT) =
on=20
Windows NT <BR>Fact: VxSim for Windows NT <BR>Fact: Windows NT 4.0 =
<BR>Fact:=20
Tornado / 2.0 <BR>Fact: VxWorks / 5.4 <BR>Fact: simpc <BR>Fix: This =
solution=20
describes how to configure the full VxSim or Sim NT on WinNT, build =
VxWorks,=20
launch two VxSim targets, and ping each other.=20
<OL>
  <LI>Confirm the Full VxSim product is installed.=20
  <LI>Install and Configure ULIP.=20
  <LI>Turn on IP Forwarding on the NT=20
  <LI>Modify target/config/simpc/config.h=20
  <LI>Create a New Project=20
  <LI>Configure the Project and Build VxWorks=20
  <LI>Launch VxSim target and attach Target Server=20
  <LI>Launch Second VxSim target and target server=20
  <LI>Ping the VxSim targets. </LI></OL>Details:=20
<H4>1. Confirm the Full VxSim product is installed.</H4>
<OL>
  <LI>The file setup.log should have at least the following entries:=20
  <UL>
    <LI>100-9878-30 Driver Objects/Headers: simnt=20
    <LI>100-9884-30 Tornado Full Simulator: x86-winNT=20
    <LI>100-10026-30 Tornado Object: x86-winNT x simnt </LI></UL>The =
full=20
  VxSimulator product is a BSP and requires the appropriate Tornado =
object.=20
  <LI>If the full simulator is installed, the file=20
  $WIND_BASE/target/config/simpc/fullSimInstalled.flag exists and =
contains a=20
  single line: <PRE>   // Presence of this file indicates that the full =
simulator has been installed.
</PRE></LI></OL>
<H4>2. Install and configure ULIP.</H4>
<P>Please follow the instructions in the VxWorks 5.4 Programmer's Guide, =
pp.=20
551-552 (Appendix H.5 VxSim Networking Component, "Installing ULIP on a =
Windows=20
NT Host"). <BR>Basically, this section describes how to navigate to the =
Network=20
control panel: <BR>Settings &gt; Control Panel &gt; Network <BR>Select =
the=20
"Adapters" tab, and install the ULIP driver by specifying the path to =
the=20
driver, located in your Tornado installation at ../host/x86-w2in32/bin.=20
<P>IMPORTANT: <BR>However, for IP address enter the following:=20
<P>90.0.0.254=20
<P>instead of the value listed in the Programmer's Guide, which is =
90.0.0.255.=20
The 255 is incorrect and specifies the broadcast address. Again, 255 is =
wrong;=20
use 254. <BR>If the ULIP driver has already been installed and it is =
necessary=20
to modify or to verify the settings, do the following:=20
<OL>
  <LI>Navigate from Start &gt; Settings &gt; Control Panels &gt; Network =

  <LI>Select the "Protocols" tab and "TCP/IP"=20
  <LI>Select "Properties"=20
  <LI>In "IP Address" tab, from the "Adapter" pull down menu, select =
ULIP=20
  Virtual Adapter.=20
  <LI>Select "Specify an IP address" <BR>For IP Address, input =
90.0.0.254=20
  <BR>For Subnet Mask, input 255.255.255.0 </LI></OL>
<H4>3. Turn on IP forwarding</H4>
<P>For one vxSim target to talk to another, IP forwarding needs to be =
turned on.=20
<BR>To turn on IP forwarding on NT:=20
<OL>
  <LI>Navigate to the Network Control Panel: <BR>Start &gt; Settings =
&gt;=20
  Control Panels &gt; Network=20
  <LI>Once there, select the "Protocol" tab, select "TCP/IP" and select=20
  "Properties".=20
  <LI>Select "Routing" <BR>Click on "Enable IP Forwarding" =
</LI></OL>After all=20
these changes, you should be prompted that it is necessary to shutdown =
and=20
restart WinNT.=20
<H4>4. Modify CONFIG.H</H4>
<P>Locate config.h and the following lines: <PRE>/*
* The default configuration is no network. If you've
installed the
* full featured simulator (unbundled), change TRUE to
FALSE below.
*/

#if TRUE /* change this to FALSE for full VxSim */
#undef INCLUDE_NETWORK
#undef INCLUDE_NET_INIT
#undef WDB_COMM_TYPE
#define WDB_COMM_TYPE WDB_COMM_PIPE
#undef WDB_TTY_TEST
#else /* !TRUE */
#define INCLUDE_END
#endif
</PRE>Change the TRUE to FALSE, per the comment above. <BR>Do this =
before you=20
build a project based on simpc!!=20
<H4>5. CREATE A NEW PROJECT</H4>
<P>Create a new project, which should be a downloadable vxWorks boot =
image,=20
based on the bsp: simpc.=20
<H4>6. CONFIGURE PROJECT AND BUILD VXWORKS</H4>
<P>Configure the new Project to include a target shell, symbol table, =
show=20
routines, net show routines and ping. <BR>Using the Project facility, =
identify=20
the following components and include them.=20
<OL>
  <LI>Find the PING client under: <BR>network components &gt; network =
protocols=20
  &gt; network applications &gt; PING client <BR>Or right-click in the =
Project=20
  facility's "VxWorks" tab window, and select "Find Object..." In the =
dialog box=20
  that appears, from the pull-down menu, select "Components" and scroll =
through=20
  the list to find the object: INCLUDE_PING.=20
  <LI>Locate network components &gt; network debugging. Right-click on =
network=20
  debugging From the check list. select:=20
  <UL>
    <LI>UDP show routines=20
    <LI>TCP show routines=20
    <LI>ICMP show routines=20
    <LI>IGMP show routines=20
    <LI>Network show routines</LI></UL>
  <LI>Under development tool components, locate show routines. =
Right-click on=20
  show routines. Select and include:=20
  <UL>
    <LI>memory show routines=20
    <LI>stdio show routines=20
    <LI>symbol table show routines=20
    <LI>task show routines </LI></UL>
  <LI>Also under development tool components, include the downloaded =
symbol=20
  table: <BR>&gt; symbol table components &gt;symbol table =
initialization=20
  components &gt;select symbol table initialization &gt; &gt;downloaded =
symbol=20
  table=20
  <LI>Include error status table (or INCLUDE_STAT_SYM_TBL): =
<BR>&gt;symbol table=20
  components &gt; error status table=20
  <LI>Locate target shell component and include it. <BR>&gt;development =
tool=20
  components &gt; &gt;target shell components &gt; target shell =
<BR>(target=20
  debugging will automatically be included.)=20
  <LI>Right-click in the VxWorks tab of the Project Facility and select =
"Rebuild=20
  all (vxWorks.exe). </LI></OL>
<H4>7. LAUNCH VXSIM TARGET AND TARGET SERVER</H4>
<P>Launch a VxSim target by clicking on VxSim icon in tool bar. From the =
dialog=20
box that appears, select "Custom-built simulator". <BR>Click on "Browse" =
and=20
navigate to the directory where the vxWorks.exe image is located, i.e.=20
D:\T2sim\target\proj\simPROJ\default\vxWorks.exe <BR>A "VxWorks =
Simulator for=20
Windows" window appears: <PRE>0x4b9aeb0
Attached TCP/IP interface to nt unit 0
Attaching interface lo0...done
Loading symbol table from
host:D:/T2sim/target/proj/fullSimNT2/default/vxWorks.exe.sym
...done

VxWorks

Copyright 1984-1998 Wind River Systems, Inc.

CPU: VxSim for Windows
VxWorks: 5.4
BSP version: 1.1/1
Creation date: Jul 7 1999
WDB: Ready.
</PRE>
<H4>7.1 Launching the target server</H4>
<P>When the target is successfully launched, a window automatically =
appears:=20
"VxSim Launch: Launch Target Server" A message reads: <PRE>"A Target =
Server named "vxsim@heiwa" is required and
will be started."
</PRE>IMPORTANT: click on CANCEL Clicking on OK launches a target server =
that=20
fails: <PRE>"tgtsvr (vxTarget@heiwa): Wed Aug 25 00:17:08 1999
Wind River Systems Target Server: NT/Win95 version
Error: Target vxsim5 unknown. Attach failed.
Error: Backend initialization routine failed.
Problem during Backend initialization
Target Server will exit"
</PRE>And then an error box also appears: <PRE>Target Server failed to =
initialize before timeout.
a</PRE>(The automatically launched target server fails because the name =
of the=20
target is vxTarget, as hostShow will indicate later. The name of the =
target is=20
hardcoded in configAll.h to vxTarget.)=20
<P>INSTEAD, from Tornado menu: select Tools &gt; Target Server =
<BR>Configure the=20
target server to use wdbrpc backend, to attach to a target with IP =
address=20
90.0.0.1. The target server command line should look like this: =
<PRE>tgtsvr.exe 90.0.0.1 -n vxTarget1 -V -B wdbrpc -R d\ -RW
</PRE>Click on "Launch"=20
<P>Confirm that the Target Server connected to the target by =
double-clicking on=20
the small red and white, bulls-eye icon that appears in the lower right =
hand=20
corner of the desktop.=20
<P>A window called vxTarget1@heiwa Log Console appears and contains =
something=20
like the following text: <PRE>tgtsvr (vxTarget1@heiwa): Tue Aug 24 =
23:13:59 1999
Wind River Systems Target Server: NT/Win95 version
Connecting to target agent... succeeded.
Attaching C++ interface... succeeded.
Attaching pecoff OMF reader for SIMNT CPU family... succeeded.
</PRE>Launch windsh and run ifShow <PRE>Copyright 1995-1999 Wind River =
Systems, Inc.

C++ Constructors/Destructors Strategy is AUTOMATIC

-&gt; 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
value =3D 0 =3D 0x0
</PRE>
<H4>8. Launch second VxSim target</H4>
<P>Launch a second VxSim target by clicking on the VxSim icon, and use =
processor=20
1 (instead of 0). <BR>Follow the same procedure as above to launch a =
second=20
target server. The IP address of the target is 90.0.0.2 (if processor 1 =
was=20
used). <BR>VxSimNT targets can be numbered from 0-9. IP addresses from =
90.0.0.1=20
through 90.0.0.10 <BR>(Unlike VxSim on Solaris using ULIP which supports =
up to=20
15 targets, full VxSimNT only supports up to 10 targets.) <BR>Selecting =
target=20
server "VxSim2@heiwa", start another Windsh: <PRE>Copyright 1995-1999 =
Wind River Systems, Inc.

C++ Constructors/Destructors Strategy is AUTOMATIC

-&gt;
</PRE>hostShow identifies the VxSim target as "vxTarget" with an IP =
address of=20
90.0.0.2. <PRE>-&gt; hostShow
hostname inet address aliases
-------- ------------ -------
vxTarget 90.0.0.2
localhost 127.0.0.1
host 90.0.0.254
value =3D 0 =3D 0x0

-&gt; ifShow
nt (unit number 0):
Flags: (0xf1) UP POINT-TO-POINT RUNNING
Type: ETHERNET_CSMACD
Internet address: 90.0.0.2
Destination Internet address: 0.0.0.0
Netmask 0xff000000 Subnetmask 0xff000000
Metric is 0
Maximum Transfer Unit size is 1520
4 packets received; 5 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
value =3D 0 =3D 0x0
</PRE>
<H4>9. Ping the vxSim targets.</H4>
<P>Vxsim targets can now ping each other:=20
<P>From Windsh of target 90.0.0.2: <PRE>-&gt; ping "90.0.0.1",3
PING 90.0.0.1: 56 data bytes
64 bytes from 90.0.0.1: icmp_seq=3D0. time=3D48. ms
64 bytes from 90.0.0.1: icmp_seq=3D1. time=3D64. ms
64 bytes from 90.0.0.1: icmp_seq=3D0. time=3D1072. ms
----90.0.0.1 PING Statistics----
2 packets transmitted, 3 packets received, -50%
packet loss
round-trip (ms) min/avg/max =3D 48/394/1072
value =3D 0 =3D 0x0
-&gt;
</PRE>From WinNT DOS command prompt, ping the targets: =
<PRE>c:\tornado&gt;ping 90.0.0.1

Pinging 90.0.0.1 with 32 bytes of data:

Reply from 90.0.0.1: bytes=3D32 time=3D30ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.1: bytes=3D32 time&lt;10ms TTL=3D64

c:\tornado&gt;ping 90.0.0.2

Pinging 90.0.0.2 with 32 bytes of data:

Reply from 90.0.0.2: bytes=3D32 time=3D30ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64
Reply from 90.0.0.2: bytes=3D32 time=3D10ms TTL=3D64
</PRE>
<P>&nbsp;<BR>
<CENTER>=A9 J.A. Borkhuis, 2000</CENTER>
<CENTER>
<SCRIPT language=3DJavaScript>=0A=
<!--=0A=
        var theDate =3D ""=0A=
        theDate =3D document.lastModified=0A=
        document.write("Last Updated: ");=0A=
        document.write(theDate);=0A=
        document.write();=0A=
//-->=0A=
</SCRIPT>
Last Updated: 02/12/2002 16:06:50 </CENTER></FONT></DIV></BODY></HTML>

------=_NextPart_000_006A_01C123CD.FBB51120--

From vxwexplo-errs@csg.lbl.gov  Tue Aug 13 02:53:08 2002
From: "Jianfeng WANG" <wangjf@wmc.ee.tsinghua.edu.cn>
Date: Tue Aug 13 02:53:10 PDT 2002
Subject: Re: Vx Exploder Digest

Hi, all

Now I am developing my MPC860 board, under Tornado2.0, Vxworks5.4. 
An idea came to my mind is whether it is feasible to use the 860 ethernet debug port to transfer data, after the vxworks image has been successfully donwloaded to the FLASH, as the board was reset? Because I think the ethnet port is more userful and powerful, how could I waste it to boot/debug the board only? And I believe there must some talents have already done the job to use the 860 ethernet port as an normal ethernet port(as the hub, switch, or the NiC card on PCs).

So, where should I start in my situation? Change the BSP code? Can anyone kindly show me some demo codes?
I'm looking forward to hearing from you! Thanks in advance.

Best Regards,

Jianfeng WANG
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mr. Jianfeng WANG                   State Key Lab on Microwave & Digital Communications
AAA-E14059, Tsinghua University     11-422, Dept. of E.E., Tsinghua University
Beijing, 100084, P. R. CHINA        86-10-6277-1118
86-10-6277-9026                     wangjf@ieee.org                          
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2002-08-13 13:15:33

From vxwexplo-errs@csg.lbl.gov  Tue Aug 13 04:03:14 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Tue Aug 13 04:03:16 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Tue Aug 13 04:03:10 PDT 2002

        Subject: Re: [AE] COM Port / ATA Device access problem
        Subject: Re: can num change into character
        Subject: Re: routeAdd failed??
        Subject: Re: taskLock()/taskUnlock() semantics
        Subject: Re: How to find out how long something has taken to execute
        Subject: Re: uninitilized interrupt
        Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
        Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
        Subject: Re: Boot time
        Subject: Re: porting vxworks to i386ex custom board
        Subject: Re: How to find out how long something has taken to execute
        Subject: Re: routeAdd failed??
        Subject: Why msgQSend can be called by ISR?
        Subject: Re: Timing Analysis .. help ...
        Subject: telnet
        Subject: Re: how to using TCP on  non blocking socket calls
        Subject: SingleStep Problem with Address Translation on the PPC 855T
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: Network stack

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Re: [AE] COM Port / ATA Device access problem
Date: Mon, 12 Aug 2002 13:23:59 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$agaq0h$uib$1@lnews.actcom.co.il>
References: <d64227b2.0208010849.616c7230@posting.google.com>

Brian,

Most chanses are this is a hardware bug, and most probably your test is
almost what is needed for the hardware engineers to trigger their logic
analyzer on the lockup situation.

Still, it would be interesting to increase the delay, you did not mention
the frequency of your sysClk, if it's the default 60 Hz, then
syClkRateGet()/64 yelds a ZERO, which means you have no delay at all, but
this should not be a problem because both the ATA and COM drivers depend on
Interrupts, and their tasks will PEND until an interrupt signifies that data
is available.

Also, you did not provide much detail about the type of lockup you
experience: could this be only that the COM ports are locked because of a
lost interrupt ?

- - Leonid

"BS" <strick@hiwaay.net> wrote in message
news:d64227b2.0208010849.616c7230@posting.google.com...
> Whenever I run a test where I read/write to both the ATA device and
> COM ports in a tight loop my system locks up.
>
> ATA Test: For this test I create/open a file, write 36 bytes to the
> file in a loop that runs 500 times with a delay of
> taskDelay(sysClkRateGet() / 64), then close the file, delete the file,
> and restart the test. I have run this test by itself for over 12 hours
> without any errors.
>
> COM Test: For this test I have loopback connectors on both COM ports.
> I spawn a task for each port that opens the COM device, goes into a
> loop that sets the baud rate, then reads and writes to the device in a
> loop that runs 500 times with a delay of taskDelay(sysClkRateGet() /
> 64). I set the baud rate to 9600, 38400, and 115200 during the test,
> then start over from the beginning. I have run this test by itself for
> over 12 hours without any errors.
>
> When I run boths tests at the same time the system will lock up. The
> failures don't seem to be related to the baud rate setting.
>
> Does anyone have any advise for this problem?
>
> Thanks,
> Brian

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: can num change into character
Date: Mon, 12 Aug 2002 12:29:41 +0100
From: Philipez <philipez@blaq.co.uk>
Organization: Blaq Industries
Message-ID: <ulf7168n5b9ndf@corp.supernews.com>
References: <aj7jfh$5d3$1@mail.cn99.com>

On Mon, 12 Aug 2002 07:13:16 +0100, carria wrote:

>          ...   /* I want to let the *name be changed,if i=00,the *name
>           is "link00" and when i=19, *name is "link19" */

How about:

for (i = 0; i < 20; i++)
{
    char buff[8];
    sprintf(buff, "link%02d", i);
    /* buff contains "linkXX" */
}

Cheers,
Philipez.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: routeAdd failed??
Date: Mon, 12 Aug 2002 15:06:48 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$77fq0h$lrb$1@lnews.actcom.co.il>
References: <7f29c2ad.0208100038.2974b21c@posting.google.com>

The reason for the first routeAdd to fail is that you already have a route
to 192.168.144.0/24 when you attach the ethernet interface, and VxWorks
network stack does not allow multiple (aka alternative) routes to the same
destination network.

Do you REALLY want all your communications to including ones on the local
segment 192.168.144.xxx to go via the default gateway ?

The second form of routeAdd will cause all traffic outside the
192.168.144.xxx segment to go via the router and the local traffic to go
directly over the Ethernet segment.

regarding FTP, you need to provide more details, i.e. what is the role of
VxWorks (client or server) what is the peer OS, what file system is used (if
any) etc. FTP is just a protocol and there is so many things one can do with
it ...!

"rover" <rover2@163.com> wrote in message
news:7f29c2ad.0208100038.2974b21c@posting.google.com...
> Hi,all
>
> I have two problem:
>
> 1.I have a target with IP is 192.168.144.2,getway is 192.168.144.1.
>   I have blow:
>
>   routeAdd("192.168.144.0","192.168.144.1");
>
>   the function return ERROR,replace it with
>
>   routeAdd("0",,"192.168.144.1");
>
>   it return OK,why?
>
> 2.I transfer files using ftp,at begin it's speed is about 100k/s,but
> at end it down to about 20k/s gradually,why?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: taskLock()/taskUnlock() semantics
Date: 12 Aug 2002 06:37:57 -0700
From: emil@lapel.com (Emil Rojas)
Organization: http://groups.google.com/
Message-ID: <754b62e0.0208120537.743cce42@posting.google.com>
References: <754b62e0.0208081306.200b3715@posting.google.com> <488e459a.0208082059.46ed20c9@posting.google.com>

This is good news, and I was hoping what it had to be.  
Of course I did not understand the manual to say this, but I do hope
it is true.  Do you care to elucidate how you came by this
understanding?

john_94501@yahoo.com (John) wrote in message news:<488e459a.0208082059.46ed20c9@posting.google.com>...
[clip]
> 
> Yes, the scheduler will be locked at l2 irrespective of the state of
> abc. Your understanding of manual is correct.
> 
> HTH,
> 
> John...

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How to find out how long something has taken to execute
Date: Mon, 12 Aug 2002 20:01:52 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <aj8pkc$shn$1@news.inter.net.il>
References: <3d51877e$1_2@nopics.sjc> <488e459a.0208072102.6fddd400@posting.google.com> <363d071b.0208112105.32f969ba@posting.google.com>

Better use some hardware timer, such as PowerPC TimeBase -- much more
reliable, much more accurate.

Got the mechanism if you want it .

"Vasu Dalal" <vdalal@hotmail.com> wrote in message
news:363d071b.0208112105.32f969ba@posting.google.com...
> Hello;
>
> > Of course, WindView might be useful for you too as it allows you to
> > define user events
>
> U can define user defined events thus:
>
> wvEvent (10,0,0);
> my_function_underTest();
> wvEvent (20,0,0);
>
>  The two events (#10 and #20) will show up in the WindView trace.
> This will give a very-high accuracy and high-clock resolution
> time-stamp. U wil have to turn on aux. clock for WindView.
>
> HTH,
> vasu

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: uninitilized interrupt
Date: Mon, 12 Aug 2002 20:04:17 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <aj8pot$smo$1@news.inter.net.il>
References: <221caa76.0208111730.552d2d81@posting.google.com>

Hi,

Did you use the intConnect () system call  to bind the driver's interrupt
handler to VxWorks interrupts mechansim ?

look for something in the following format:

intConnect (IV_IRQ3, SerialChannellIntrHander, 0);

"kewin" <kevinatnj@yahoo.com.cn> wrote in message
news:221caa76.0208111730.552d2d81@posting.google.com...
> hi all
>
>    My PPC8260 system have got a CD1865 as my sio device.I used
> intconnect to
> connect IRQ3 to my sio driver.The driver can work,but when it was
> working vxworks system will print "uninitilized interrup" on
> screen.Will anybody tell me
> why?
>   Thanks in advance
>
>                                             kevin

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
Date: Mon, 12 Aug 2002 19:40:37 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$mvrq0h$37c$1@lnews.actcom.co.il>
References: <7da11b7d.0208081400.6ef10df4@posting.google.com>

Raja,

I have faced a similar problem when writing Flash memory drivers a few years
back, where the delay needs not be accurate, but must be larger than a
specified time, e.g. > 6 microsec for byte/word write command.

The was we did this was to write a loop that accesses the Flash memory
(assumed to be non-cached) multiple times, while the loop count was set to a
value perviously determined by a measured loop. During initialization, the
Calibration function would run the loop for a full system clock period, i.e.
it would start counting when the tickGet() value changes 1st time, and stops
counting with vxTicks changes the second time. Knowing the time length of
this period we would scale the loop count per microsecond.

If we needed accurate pulses, then during the coutining all interrupts would
be locked out (which is OK for a few microseconds), but if it would be
acceptable for the pulses to be "longer then X usec", we would leave
interrupts and scheduling turned on.

"Raja" <amraja8@hotmail.com> wrote in message
news:7da11b7d.0208081400.6ef10df4@posting.google.com...
> Hi
> I need to implement a microsecond clock or any timer that can provide
> me delay in the order of micro seconds. I tried using system clock
> which gives me a clock rate of 60 ticks per second only. I tried to
> get the clock rate of the auxiliary clock and it seems to be the same
> 60 ticks  per second.
>
> I would  highly appreciate if you could let me know of any ideas
> regarding this.
>
> Note: I am using VME board (VMETRO - Power Midas 1200s )that has an an
> i960 processor and am running in Tornado 2.0 IDE( for i960 )
>
> Thank you,
> Raja.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
Date: 12 Aug 2002 15:00:11 -0400
From: Bill Pringlemeir <spam_account@sympatico.ca>
Organization: Bell Sympatico
Message-ID: <m2fzxj6gxw.fsf@sympatico.ca>
References: <7da11b7d.0208081400.6ef10df4@posting.google.com> <newscache$mvrq0h$37c$1@lnews.actcom.co.il>
Sender: bpringle@DeadDuck

"Raja" <amraja8@hotmail.com> wrote in message
news:7da11b7d.0208081400.6ef10df4@posting.google.com...
> Hi
> I need to implement a microsecond clock or any timer that can provide
> me delay in the order of micro seconds. I tried using system clock
> which gives me a clock rate of 60 ticks per second only. I tried to
> get the clock rate of the auxiliary clock and it seems to be the same
> 60 ticks  per second.

 Leonid> The was we did this was to write a loop that accesses the
 Leonid> Flash memory (assumed to be non-cached) multiple times, while
 Leonid> the loop count was set to a value perviously determined by a
 Leonid> measured loop. During initialization, the Calibration

[snip]

This is a modified version of code posted on comp.os.vxworks
previously.  I have modified it to add assembler code to the delay
loop.  This increases the precision.  People could add assembler code
for the other processors.

I think the original author is "espin".... Ah it is in the FAQ under,
 "http://www.xs4all.nl/~borkhuis/vxworks/vxw_pt6.html#6.1-A".

The author is Geoffrey Espin.  Now you have two versions...

hth,
Bill Pringlemeir.

/* delayLib.c - hard delay routines */

/* 
 * DESCRIPTION
 * This module provides "hard" delay routines for micro and millisecond
 * periods.
 * 
 * EXAMPLE .CS
 * -> delayCalibrate(); /@ call used for calibration @/
 * -> timexN delayMsec, 10
 * timex: 75 reps, time per rep = 10209 +/- 222 (2%) microsecs
 * value = 59 = 0x3b = ';'
 * -> .CE
 * 
 * The routines sysClkRateGet() and tickGet() are used to calibrate
 * the timing loop.  Therefore, the first call is much longer than
 * requested if delayCalibrate is not called.  If the system clock
 * rate is changed, a new calibration must be explicitly made.
 *
 * 
 * The calibration should be done with interrupts off.  This will
 * guarantee that the delays are at least the specified time period.
 * Calls to delayUsec and delayMsec maybe of a longer period due to
 * interrupt delays.
 *
 */
#include "vxWorks.h"
#include "tickLib.h"
#include "sysLib.h"
#include "delayLib.h"

#ifdef DEBUG
# include <stdio.h> 
# define INFO_PRINT printf
  int unsigned delayLoop = 0;
#else
# define INFO_PRINT(s...) /* nothing. */
  static unsigned int delayLoop = 0;
#endif

/*****************************************************************************
*
* delayCalibrate - calibrate hard delay loops.
*
* RETURNS: N/A
*/
void delayCalibrate(void)
{
    unsigned int maxLoop;
    int start = 0;
    int stop = 0;
    unsigned int mpt = (1000 * 1000) / sysClkRateGet (); /* usecs per tick */
    
    /* Course calculation of delay, up to twelve iterations */
    for (delayLoop = 1; delayLoop < 0x1000 && stop == start; delayLoop<<=1)
    {
        /* wait for clock turn over */
        stop = start = tickGet ();
        while(start == stop)
            start = tickGet ();

        delayUsec (mpt);

        stop = tickGet ();
    }
        
    start = stop = 0;
    delayLoop = max(delayLoop, 4);
    maxLoop = delayLoop/2;        /* loop above overshoots */

    INFO_PRINT("maxLoop = %d\n", maxLoop);

    /* Find `delayLoop' to match tick interval. Start at 1/4 course */
    for (delayLoop /= 4; delayLoop < maxLoop && stop == start; delayLoop++)
    {
        /* wait for clock turn over */
        stop = start = tickGet ();
        while(start == stop)
        {
            start = tickGet ();
        }

        delayUsec (mpt);

        stop = tickGet ();
    }

    INFO_PRINT("delayLoop = %d\n", delayLoop);
}

#if CPU_FAMILY == ARM
/*****************************************************************************
*
* delayUsec - hard delay for <u> microseconds
*
* Notes: this routine is in assembler not to make the "delay fast", but
* to improve the resolution of the timer loop.  It is doubles the precision
* of a `C' compiler loop.
*
* RETURNS: N/A
*/
void delayUsec(unsigned int u)      /* # of microsecs */
{
    __asm__ volatile (
        "     cmp     %1,#0 \n"     /* Set delayLoop > 0 */
        "     moveq   %1,#1 \n"
        "20:  mov     r1,%1 \n"
        "10:  subs    r1,r1,#1 \n"  /* Inner loop counts delayLoop */
        "     bne     10b \n"
        "     subs    %0,%0,#1 \n"  /* Outer loop counts `u'. */
        "     bne     20b \n"
        : /* No outputs */
        : "r" (u), "r" (delayLoop)  /* %0 is u, %1 is delayLoop */
        : "1");                     /* trashes r1. */
}

#else
/* Equivalent `C' of above function version for reference. */
void delayUsec(unsigned int u)
{
    unsigned int i;

    for (; u; u--)
    {
        for (i = delayLoop; i; i--);
    }
}
#endif

/*****************************************************************************
*
* delayMsec - hard delay for <m> milliseconds
*
* RETURNS: N/A
*/
void delayMsec(unsigned int m)      /* # of millisecs */
{
    delayUsec (m * 1000);
}

/* delayLib.h - self-calibrating hard delay routines header file */

/*
modification history
- --------------------
27Mar96,espin   written.
*/

#ifndef __INCdelayLibh
#define __INCdelayLibh

#ifdef __cplusplus
extern "C"
{
#endif

extern void delayCalibrate(void);
extern void delayUsec (unsigned int u);
extern void delayMsec (unsigned int m);

#ifdef __cplusplus
}
#endif
    
#endif  /* __INCdelayLibh */

- -- 
I want  EARS!  I want  two ROUND  BLACK EARS to  make me feel  warm 'n
secure!!

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Boot time
Date: Mon, 12 Aug 2002 19:29:20 GMT
From: Raymond Kristiansen <raymond@spacetec.no>
Organization: Kongsberg Spacetec AS
Message-ID: <3D580C8F.77362B1D@spacetec.no>
References: <3D52D7E7.4370262D@spam.no> <765c5e3c.0208090049.3f17ad7a@posting.google.com> <3D5385E4.B8AF8725@spacetec.no> <3D53E13F.9F4BD5C2@nospam.com>

max@nospam.com wrote:
> 
> >
> 0x8 works for my board. The idea is to begin with 0 and to increase the
> value. The higest one which works is the good one.
> 

Thanks for your tip. I just thought I'd let you know that I used the
command

dec21x40PhyFind(endFindByName("dc",0))

in the windSh shell after I got a tip from Windriver support, which
finds the first PHY for the interface. This gave the result 0x8, which I
used in my file. It didn't improve my boot time, though, so I am still
interested in more hints on the subject.

Regards,
Ray

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: porting vxworks to i386ex custom board
Date: Mon, 12 Aug 2002 15:46:23 -0400
From: david lindauer <dlindauer@notifier-is.net>
Message-ID: <3D58108F.7AFBAAB1@notifier-is.net>
References: <e5135634.0208120407.567f1221@posting.google.com>

you have to write a BSP, which is the low-level interface between Vxworks
and the hardware.  I would start with the standard 386 Bsp and rewrite/add
the parts that are specific to your board but non-standard.

David

Jyothi M wrote:

> i am working on custom build i386ex board. i want to port vxworks on it.
> my board has 2mb flash, 256kb ram, and 2serial ports.
>
> how can i proced further.
>
> regards.
> Jyothi.M

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How to find out how long something has taken to execute
Date: Mon, 12 Aug 2002 17:18:38 -0400
From: "Cedric Le Roux" <lerouxc@db.erau.edu>
Message-ID: <3d58260d_3@nopics.sjc>
References: <3d51877e$1_2@nopics.sjc>

I ended up using John's advice.
vxWorks has some nice built-in timestamping features, and the article he
pointed me to was excellent regarding vxWorks timestamp drivers.
Luckily, all I had to do was include high resolution timers in tornado and
rebuild the kernel.
Then I could use the sysTimestamp functions.
This has allowed me to measure execution time to a resolution which is finer
than microseconds.
With a little manipulation, I converted the number to microseconds, which is
all the resolution I really needed.
Furthermore, it takes little overhead to make these timestamping calls.  A
WindView implementation would have been much more cumbersome.

"Cedric Le Roux" <lerouxc@db.erau.edu> wrote in message
news:3d51877e$1_2@nopics.sjc...
> Hello all,
>
> I would like to know if it is possible to measure the time it takes for
> something to execute.  I would like to have the resolution in microseconds
> if possible.  I am using the system clock at 60Hz.   And the aux clock
could
> not provide me with such high resolution.
> The system date and time registers only go to full seconds resolution, so
> that doesn't help either.
> Could WindView help me here?
>
> I've also been told about something called the PIT.  Supposed to have very
> high resolution.  But I cannot find info on it.  Can anyone clarify this
> concept for me?
>
> Specs:
>
> VxWorks 5.4
> VME PowerPC (SBS Power7e)
>
>
> thanks
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: routeAdd failed??
Date: 12 Aug 2002 18:39:19 -0700
From: rover2@163.com (rover)
Organization: http://groups.google.com/
Message-ID: <7f29c2ad.0208121739.1f8bc52f@posting.google.com>
References: <7f29c2ad.0208100038.2974b21c@posting.google.com> <newscache$77fq0h$lrb$1@lnews.actcom.co.il>

sorry,I forget to tell you they(pc and target) connect directly(no router).

thanks.

"Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM> wrote in message news:<newscache$77fq0h$lrb$1@lnews.actcom.co.il>...
> The reason for the first routeAdd to fail is that you already have a route
> to 192.168.144.0/24 when you attach the ethernet interface, and VxWorks
> network stack does not allow multiple (aka alternative) routes to the same
> destination network.
> 
> Do you REALLY want all your communications to including ones on the local
> segment 192.168.144.xxx to go via the default gateway ?
> 
> The second form of routeAdd will cause all traffic outside the
> 192.168.144.xxx segment to go via the router and the local traffic to go
> directly over the Ethernet segment.
> 
> regarding FTP, you need to provide more details, i.e. what is the role of
> VxWorks (client or server) what is the peer OS, what file system is used (if
> any) etc. FTP is just a protocol and there is so many things one can do with
> it ...!
> 
> "rover" <rover2@163.com> wrote in message
> news:7f29c2ad.0208100038.2974b21c@posting.google.com...
> > Hi,all
> >
> > I have two problem:
> >
> > 1.I have a target with IP is 192.168.144.2,getway is 192.168.144.1.
> >   I have blow:
> >
> >   routeAdd("192.168.144.0","192.168.144.1");
> >
> >   the function return ERROR,replace it with
> >
> >   routeAdd("0",,"192.168.144.1");
> >
> >   it return OK,why?
> >
> > 2.I transfer files using ftp,at begin it's speed is about 100k/s,but
> > at end it down to about 20k/s gradually,why?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Why msgQSend can be called by ISR?
Date: 12 Aug 2002 18:40:55 -0700
From: hotJacky@163.net (Bryan)
Organization: http://groups.google.com/
Message-ID: <8f77d4a.0208121740.796881b1@posting.google.com>

HI:
I want to replace message queue management supplied by VxWorks 
with another type.msgQSend can be called by ISR,however,my send
function calling the semTake function,So it can not be called by
ISR.how can my send function can be called by ISR?Locking 
intterrupt?Now that VxWorks can,I think we also can do it.Would
anyone can help me?Thanks!

sincerely
Bryan

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Timing Analysis .. help ...
Date: 12 Aug 2002 22:04:26 -0700
From: mridulgupta1@yahoo.com (Mridul Gupta)
Organization: http://groups.google.com/
Message-ID: <fef31d0c.0208122104.4ac40b7a@posting.google.com>
References: <fef31d0c.0208082158.5c30214e@posting.google.com> <3D544CA6.2000006@lvl7.com>

Hi Neil,

thanx for your valuable reply ... i am trying few things with clockLib
... I have few queries ...

If i read clock time using clock_gettime just before and after the
code, will i be able to get approximate execution time ??

If I have a taskDelay(1) in my code, will this time it be included in
the execution time ??

How do I time a function having infinite loop using timex ??

what is the effect of sysClkRateSet() on timing calculation?? 

Thanx and Regards
Mridul

Neil Horman <nhorman@lvl7.com> wrote in message news:<3D544CA6.2000006@lvl7.com>...
> Mridul Gupta wrote:
> 
> > Hi All,
> > 
> > I am a newbie to VxWorks. I have written some C++ code for our
> > project. Now I want the timing analysis of that code. We are using
> > MPC860 processor. Processor documentation gives the details about
> > assembly instruction execution timings. Where can I find C/C++
> > instruction execution timings.
> > 
> > Thanx and Best Regards
> > Mridul
> > 
> 
> I'm afraid that there is no such thing.  C and C++ are for the most part 
> non-deterministic in the number of assembly instructions any given line of C 
> code will transform into.  The only way you can do reasonable timing analysis of 
> your C/C++ code is to get a tool to measure it.  Depending on the application 
> and platform, some people will have their software trigger pin state changes 
> which can be monitored with an o-scope, while others buy software analysis 
> packages.  At a base starting point VxWorks has a native api call called timeX 
> which is simmilar to the standard unix time utility.  It estimates the execution 
> time of any one function.
> Hope that helps
> Neil

---------------------------

Newsgroups: comp.os.vxworks
Subject: telnet
Date: Tue, 13 Aug 2002 13:57:05 +0800
From: "eric" <lihao@accesssolutions.com.tw>
Organization: DCI HiNet
Message-ID: <aja727$ehs@netnews.hinet.net>

sir,
   I am want to have telnet server function.  But I include Telnet server in
my project and use pc telnet.exe to remote login my targer server.  It is
only show "->" and any command don't work.  May I loss any step or command?
Please give me some advice.

Best Regards,

lihao
2002.08.13

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: how to using TCP on  non blocking socket calls
Date: 12 Aug 2002 23:29:37 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208122229.160b6c16@posting.google.com>
References: <8446174.0208121729.3ba5682a@posting.google.com>

Hello,

VxWorks does not have a poll() function, but you can use select() with
a zero second timout (*not* a NULL timeout since that implies never
timeout) to simply check for data on a number of sockets without
blocking.

Alternatively, just set all the sockets to non-blocking (FIONBIO
option) then the reads & writes will never block (not as easy to work
with though).

Finally, you could have a task for each socket. This works pretty well
in VxWorks as the tasks are very lightweight.

HTH,

John...

shyang@netease.com (yang) wrote in message news:<8446174.0208121729.3ba5682a@posting.google.com>...
> I  want to poll several sockets in the same time with a poll() call
> and don't want to be blocked on one socket.But I don't know how to
> realize it?
> Thanks

---------------------------

Newsgroups: comp.sys.powerpc.tech,comp.os.vxworks,comp.arch.embedded,comp.realtime,comp.os.linux.embedded
Subject: SingleStep Problem with Address Translation on the PPC 855T
Date: 13 Aug 2002 01:45:02 -0700
From: ralph@depping.com (ralph)
Organization: http://groups.google.com/
Message-ID: <3dcfdb29.0208130045.a5557a@posting.google.com>

Hi All,
we're finding that SingleStep with vision (7.7.2) using a VisionProbe
2 (all from Windriver) is having a problem with address translation on
the PPC 855T with address translation enabled.  All of our user
applications share the same logical address space.  When we context
switch we update the L1 table descriptors to point to the L2 tables
for the process that is about to execute.  We therefore use a non 1 to
1 (logical==physical) address mapping in order to allow each process
to be linked and executed at the same logical address.
The problem is that SingleStep doesn't seem to like address
translation that is not 1 to 1 and dies a horrible death (SingleStep
hangs) if we try to step through assembly that is accessed using such
addresses.
For example we load the address of the processes supervisor stack (at
logical address 0xC0F8_0000) to the stack pointer (r1, EABI standard)
and try to pull values off the stack into registers during a context
switch in order to restore the context of the process.  However as
soon as we try and access something from the stack in this case
SingleStep dies.

1.) Is this a known limitation of SingleStep i.e. it can't handle
address translation that is not 1 to 1, or is there something we are
possibly doing incorrectly?

2.) Are there any known solutions to this problem? (changing our user
processes to use a 1 to 1 mapping is NOT an option!)

3.) Windriver recommended trying some Linux facility CF MMU LINUX. 
Does anyone have any experience of this and how it works?

Any input is appreciated!

Ralph

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: Tue, 13 Aug 2002 06:24:35 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D58DE63.CFB73EBF@bellsouth.net>
References: <8f77d4a.0208121740.796881b1@posting.google.com>

Bryan wrote:

> HI:
> I want to replace message queue management supplied by VxWorks
> with another type.msgQSend can be called by ISR,however,my send
> function calling the semTake function,So it can not be called by
> ISR.how can my send function can be called by ISR?Locking
> intterrupt?Now that VxWorks can,I think we also can do it.Would
> anyone can help me?Thanks!
>
> sincerely
> Bryan

No, it doesn't lock anything.  If the Msgque would block, it returns an
error,
and the que attempt fails.

The general rule remains that an ISR may never ever do anything
that would block.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: Tue, 13 Aug 2002 12:28:14 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$yi2s0h$xme$1@lnews.actcom.co.il>
References: <8f77d4a.0208121740.796881b1@posting.google.com>

Bryan,

VXworks msgQSend does not use semaphores at all, it uses the undocumented
lower-level microkernel calls. Also, msgQSend() is only a stub function,
which calls a different implementation depending on the caller context (task
or ISR).

The proper solution for you would greatly depend on what you are trying to
acoumplish, and on the reason WHY you decided to replace msgQSend in the
first place.

Also note that rngLib functions can be called from ISR, and they dont use
semaphores or any other microkernel calls either, so if your requirements
can be met with rngLib, it's a better choise. Many internal VxWorks modules
use rngLib, for example excJobAdd(), netJobAdd(), logMsg(), ...

HTH

"Bryan" <hotJacky@163.net> wrote in message
news:8f77d4a.0208121740.796881b1@posting.google.com...
> HI:
> I want to replace message queue management supplied by VxWorks
> with another type.msgQSend can be called by ISR,however,my send
> function calling the semTake function,So it can not be called by
> ISR.how can my send function can be called by ISR?Locking
> intterrupt?Now that VxWorks can,I think we also can do it.Would
> anyone can help me?Thanks!
>
> sincerely
> Bryan

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Network stack
Date: Tue, 13 Aug 2002 12:42:31 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$r63s0h$7ne$1@lnews.actcom.co.il>
References: <7d37276da8267eb350c5835b1a44c377.38592@mygate.mailgate.org> <MPG.17b445369e573f7298969a@news1.news.adelphia.net> <e229ec7e.0208051600.26d13ae9@posting.google.com> <37ed9c54.0208061522.c73f922@posting.google.com>

I would have to disagree with Sheo.

There is nothing in the Wind microkernel architecture that would make a
network stack slower then on Unix kernel. There are only a few isolated
differences between the Wind and Unix implementations, and here they are:

1. On Unix, input processing is performed directly from within the ISR, on
VxWorks, most work is deferred to tNetTask, so that system engineers can
prioritize their network processing wrt other RT activities by means of task
priority settings.
2. Mutual exclusion on Unix is done by raising CPU interrupt mask (i.e.
interrupt locking), while on VxWorks, since most work is deferred to a task
level, there is a single Mutex semaphore for protection of the entire
network stack. The driver still may use interrupt locking though.

These two differences do indeed incur some overhead, but this overhead is
negligible when transmitting data in large packets, because this only adds
per-packet overhead of a few microseconds or less.

So the reason for a VxWorks network to underperform a Unix counterpart is
most probably an implementation issue - the VxWorks network stack is based
on a rather old BSD code, while the Linux community has enhanced the code
considerably over the recent years with the explosion of Internet use of
Linux servers.

Also, the driver is many times the culprit of performance, as I have been
able many times before ti incrase VxWorks network performance many fold by
enhancing and optimizing the driver. As a side note, using the END API would
definitely yield performance inferior to a BSD driver, (yet END has some
benefits over BSD).
Sadly, network performace has rarely been a priority for WindRiver
development engineers, and performance testing of the network stack and the
assorted drivers has been rather limitted.

- - Leonid

"Sheo Boyu" <byxiao@public.cz.js.cn> wrote in message
news:37ed9c54.0208061522.c73f922@posting.google.com...
> vxWorks feature a 6k or so microkernel,which theoretically has a poorer
> network performance than those macrokernel OS,such as Unix or Linux.
> This is due to the traditional network stack implimentation is based on
> macrokernel,not microkernel,WRS just port the BSD network stack to
> vxworks,not rewritten them as required for better performance on
microkernel.
> You can find some document on this issue from CMU following this link:
>
http://www-2.cs.cmu.edu/afs/cs/project/mach/public/www/doc/publications.html
> The article is Networking Performances for Microkernels.
> May this help!
>
> chrismooremobile@yahoo.com (Chris Moore) wrote in message
news:<e229ec7e.0208051600.26d13ae9@posting.google.com>...
> > Yeah, well my advice would be to swap to a different RTOS.
> >
> > We use VxWorks and its routing performance is pretty poor. There are a
> > few ways to improve things, you can write a mini routing layer, you
> > can use polled ethernet drivers rather than task switched into the
> > tNetTask stuff, or swap to another RTOS, or get an offloaded stack
> > processor.
> >
> > The embedded linux (ucLinux) has better performance, you get access to
> > all code etc etc and royalty free (from mem?)
> >
> > Gd Luck,
> >

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Tue Aug 13 04:55:01 2002
From: "Vivek Sharma" <viveks@ipr.res.in>
Date: Tue Aug 13 04:55:03 PDT 2002
Subject: How to verify the support of PPC 750 in T 2.0.2.

This is a multi-part message in MIME format.

------=_NextPart_000_001E_01C242ED.D862EF40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
    I am new to this list as well as Tornado and VxWorks. I am in the =
process of buying tornado for PPC 750 and have received one copy, but =
couldn't trace out the support for PPC 750 while I could see some files =
with labels containing 603, 604,860,403 etc. So, my question is that how =
to verify whether PPC 750 support is there in our version. Also we are =
in the process to acquire T 2.2 in this month itself. I request somebody =
here from the list could help me out so that I couldn't get cheated by =
the vendors.

Thanks,
Vivek

------=_NextPart_000_001E_01C242ED.D862EF40
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I am new to this =
list as well as=20
Tornado and VxWorks. I am in the process of buying tornado for PPC 750 =
and have=20
received one copy, but couldn't trace out the support for PPC 750 while =
I could=20
see some files with labels containing 603, 604,860,403 etc. So, my =
question is=20
that how to verify whether PPC 750 support is there in our version. Also =
we are=20
in the process to acquire T 2.2 in this month itself. I request somebody =
here=20
from the list could help me out so that I couldn't get cheated by the=20
vendors.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Vivek</FONT></DIV></BODY></HTML>

------=_NextPart_000_001E_01C242ED.D862EF40--

From vxwexplo-errs@csg.lbl.gov  Tue Aug 13 05:50:01 2002
From: "David P Hidalgo" <dphidalg@crisa.es>
Date: Tue Aug 13 05:50:04 PDT 2002
Subject: Network problems with DEC(Intel)21143

HI, vxworks mates

We are trying to generate a VxWorks custom image for a Inova K6-CPU, which
incorporates a DEC(Intel)21143 as
Ethernet controller. The generated image is loaded by TFTP correctly and
runs ok, but without network (for example, the target does not respond to
ping callings). All WDB and network components have been included as well as
the DEC(Intel)21143 ethernet controller. Have some of you suffer this
problem before? Thanks in advance.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 David P. Hidalgo
 SW Engineer
 mailto:dphidalg@crisa.es
 Tfn: 918068713
 ASTRIUM-CRISA - www.crisa.es
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

From vxwexplo-errs@csg.lbl.gov  Tue Aug 13 22:32:38 2002
From: vvkoduri@hss.hns.com
Date: Tue Aug 13 22:32:40 PDT 2002
Subject: file operation related problem

Hi  folks ,

               I had a problem related to file operations in the vxWorks. In my
stack development application , we had requirement to save the incoming &
outgoing data in the trace file. This file is placed at the host machine
accesable through NFS.

              Problem is that at run time we are not able to save the data in
the file. Only after calling fclose. The data get saved in the file. It seems
fflush( fd)  function is not working.  I try to put fclose function in the
AddHook function of the reboot(). But on reboot command. It doesn't seems to
work. Through I try to disable the intruppts & making the priority high in the
Hook function itself.  Do somebody face similar problem kindfly do let me know
some solution

Gagandeep

From vxwexplo-errs@csg.lbl.gov  Wed Aug 14 04:03:13 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Wed Aug 14 04:03:16 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Wed Aug 14 04:03:09 PDT 2002

        Subject: Re: Why msgQSend can be called by ISR?
        Subject: How realized message queue managment in VxWorks?
        Subject: Verify VxWorks integrity
        Subject: Re: uninitilized interrupt
        Subject: Re: Verify VxWorks integrity
        Subject: Strange files appearing on the hard drive
        Subject: Changing a password / loginUserDelete() doesn't free memory
        Subject: Re: telnet problem
        Subject: Need to watch DTR status on a PPC
        Subject: Re: netClusterGet()
        Subject: Re: Need to watch DTR status on a PPC
        Subject: Re: porting vxworks to i386ex custom board
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: Command-line compiler problems with Tornado 2.1/NT for MIPS
        Subject: Re: Changing a password / loginUserDelete() doesn't free memory
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: ipAttach ipDetach memory leak problem
        Subject: help: problem during building
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: IP_MAX_UNITs on custom built simulator

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: Tue, 13 Aug 2002 13:06:22 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$ia4s0h$8qe$1@lnews.actcom.co.il>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <3D58DE63.CFB73EBF@bellsouth.net>

Joe,

msgQSend from ISR context does not block, which is correct, but it does need
to LOCK the resource, or rather detect if the resource (i.e. msgQ) is locked
at task level, in which case it can not proceed with the operation.
Proceeding might cause a race consition, so the call is DEFERRED to the
windWorkQ instead.

I beleive the original poster was rightfully concerned with LOCKING (not
BLOCKING).

"joe durusau" <durusau@bellsouth.net> wrote in message
news:3D58DE63.CFB73EBF@bellsouth.net...
>
>
> Bryan wrote:
>
> > HI:
> > I want to replace message queue management supplied by VxWorks
> > with another type.msgQSend can be called by ISR,however,my send
> > function calling the semTake function,So it can not be called by
> > ISR.how can my send function can be called by ISR?Locking
> > intterrupt?Now that VxWorks can,I think we also can do it.Would
> > anyone can help me?Thanks!
> >
> > sincerely
> > Bryan
>
> No, it doesn't lock anything.  If the Msgque would block, it returns an
> error,
> and the que attempt fails.
>
> The general rule remains that an ISR may never ever do anything
> that would block.
>
> Speaking only for myself,
>
> Joe Durusau
>
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: How realized message queue managment in VxWorks?
Date: 13 Aug 2002 04:56:06 -0700
From: hotJacky@163.net (Bryan)
Organization: http://groups.google.com/
Message-ID: <8f77d4a.0208130356.87a23bd@posting.google.com>

HI:
It seemed that every memssage only use additional eight bytes to
describe attributes about itself.I conclude it with my test code.The
additional bytes may be used to record message length and other
attributes.More,msgQSend can be called by ISR.It must use locking
intterupt or locking interrupt.May be It is most difficult.Anyone can
make more step to describe this discussion?Thank you!

Sincerely,
Bryan

---------------------------

Newsgroups: comp.os.vxworks
Subject: Verify VxWorks integrity
Date: Tue, 13 Aug 2002 14:12:32 +0200
From: Mikael Lundqvist <mikael.lundqvist@avionics.saab.se>
Organization: Saab Avionics
Message-ID: <3D58F7B0.6714D123@avionics.saab.se>

I have just about finished adapting VxWorks to our tailored hardware.
Now I would like to verify the correctness of my adaptation in some way.
This question arises after each adaptation to new hardware. Does anybody
now of a general approach of verifying the RTOS integrity. Is a test
suite a good approach?

Regards,
Mikael Lundqvist
Software Design Engineer

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: uninitilized interrupt
Date: Tue, 13 Aug 2002 15:36:39 +0200
From: Niclas P Nilsson <niclas.p.nilsson@emw.ericsson.se>
Organization: Ericsson Microwave Systems AB
Message-ID: <3D590B67.DF0B1FC4@emw.ericsson.se>
References: <221caa76.0208111730.552d2d81@posting.google.com> <aj8pot$smo$1@news.inter.net.il>

You know that you also have to enable the interrupt after connecting it.
the syntax is:
intEnable(IV_IRQ3);

(or whatever your interrupt is called)
/Niclas Nilsson
Ericsson Microwave Systems
Gothenburg
Sweden

Rami Gideoni wrote:
> 
> Hi,
> 
> Did you use the intConnect () system call  to bind the driver's interrupt
> handler to VxWorks interrupts mechansim ?
> 
> look for something in the following format:
> 
> intConnect (IV_IRQ3, SerialChannellIntrHander, 0);
> 
> "kewin" <kevinatnj@yahoo.com.cn> wrote in message
> news:221caa76.0208111730.552d2d81@posting.google.com...
> > hi all
> >
> >    My PPC8260 system have got a CD1865 as my sio device.I used
> > intconnect to
> > connect IRQ3 to my sio driver.The driver can work,but when it was
> > working vxworks system will print "uninitilized interrup" on
> > screen.Will anybody tell me
> > why?
> >   Thanks in advance
> >
> >                                             kevin

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Verify VxWorks integrity
Date: Tue, 13 Aug 2002 09:15:24 -0700
From: "Dan Gold" <gold@ensemble.com>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <ajbbbb$5sc$1@newsreader.mailgate.org>
References: <3D58F7B0.6714D123@avionics.saab.se>
Sender: gold@ensemble.com

"Mikael Lundqvist" <mikael.lundqvist@avionics.saab.se> wrote in message
news:3D58F7B0.6714D123@avionics.saab.se...
> I have just about finished adapting VxWorks to our tailored hardware.
> Now I would like to verify the correctness of my adaptation in some way.
> This question arises after each adaptation to new hardware. Does anybody
> now of a general approach of verifying the RTOS integrity. Is a test
> suite a good approach?

I know WRS used to have their BSP VTS (Validation Test Suite).  Check your
local BSP developer's kit manual for the details.  It's still in my T101
book, dunno 'bout T2.

  hth,
   Dan Gold   dgold1@san.rr.com

---------------------------

Newsgroups: comp.os.vxworks
Subject: Strange files appearing on the hard drive
Date: 13 Aug 2002 09:48:47 -0700
From: agraham@openglobe.net (Aaron Graham)
Organization: http://groups.google.com/
Message-ID: <95ebbe31.0208130848.27aead6f@posting.google.com>

Using DosFs2, I have been noticing quite often that I will get strange
files appearing on my hard drive.  Here's what they look like when I
do a "ll" from the vxWorks shell:

- -rwxrwxrwx  1 0       0             2618 Aug 13 09:03 info.txt
?---------  0 0       0                0 Jan  1  1970 AA

The file is usually called "AA", "A", or "Br", and cannot be read,
written, or removed, and running chkdsk does not find the problem.  It
causes lots of problems while using file utilties in our application,
simply because it shows up, but can't be accessed.  The only way to
fix it is to re-format the partition and re-install the software.

I would assume that something has gone wrong with the directory
structure.  Probably yanked the plug on the machine while it was doing
some sort of critical file access.  RTOS...reliable
filesystem...?...nah, guess not.

Let me know if you've seen it too.
Aaron

---------------------------

Newsgroups: comp.os.vxworks
Subject: Changing a password / loginUserDelete() doesn't free memory
Date: Tue, 13 Aug 2002 20:56:06 +0100
From: "cecil" <cecil@hunmanby.demon.co.uk>
Message-ID: <1029268579.10443.0.nnrp-01.d4e4b8d1@news.demon.co.uk>

Does anybody know how to change a password without deleting the user and
adding another?
I'm not keen on using loginUserDelete() the loginUserAdd() because it doen't
seem to free up the memory it's used.
Anybody got any thoughts?
Nigel

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: telnet problem
Date: 13 Aug 2002 13:15:11 -0700
From: akiggins@celitesystems.com (andrew)
Organization: http://groups.google.com/
Message-ID: <2eced96.0208131215.1a01bd71@posting.google.com>
References: <ajaj18$npf@netnews.hinet.net>

Looks like your telnet daemon is not connected to anything, either
that
or the STD_IN is not being transfered from the shell correctly.
Jump to a shell from Tornado and see
a) whether the shell has been correctly transfered
and
b) whether your telnetd is still running.
Also you might want to get your FAE to give you the *unsupported*
multiple telnet server code, it's really good.
andrew

"eric" <lihao@accesssolutions.com.tw> wrote in message news:<ajaj18$npf@netnews.hinet.net>...
> sir,
>    I am want to have telnet server function.  But I include Telnet server in
> my project and use pc telnet.exe to remote login my targer server.  It is
> only show "->" and any command don't work.  May I loss any step or command?
> Please give me some advice.
> 
> Best Regards,
> 
> lihao
> 2002.08.13

---------------------------

Newsgroups: comp.os.vxworks
Subject: Need to watch DTR status on a PPC
Date: 13 Aug 2002 13:24:37 -0700
From: akiggins@celitesystems.com (andrew)
Organization: http://groups.google.com/
Message-ID: <2eced96.0208131224.42163659@posting.google.com>

Ladles and Jellyspoons,
does anyone have a clue how I can grab DTR on the serial port of a
PPC?

I need to figure out if someone is disconnecting from the serial port
and reset the shell (which is password protected) and cause them to be
logged out if they haven't explicitly.

Any pointers to docs or code are great.
thanks in advance
andrew

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: netClusterGet()
Date: Thu, 08 Aug 2002 10:50:01 -0400
From: Varndell Engineering <gvarndell@hotmail.com>
Organization: Posted Via Newsfeeds.com = SPEED+RETENTION+COMPLETION = http://www.newsfeeds.com
Message-ID: <3D528519.8CD18597@hotmail.com>
References: <954a53bbde46af6cf8be62ee593a5435.38592@mygate.mailgate.org>

Dieter Bahlmann wrote:
> 
> Hi,
> 
> Is there a way to force netClusterGet() to allocate clusters on a 8-byte
> boundary?

Yep. In general, to align net cluster buffers to a N byte boundary,
make sure all your cluster sizes are ((x * N) - 4) bytes in size and
align the base of your cluster memory on a N byte boundary, less 4.
This will require allocating a tad more memory than you actually need
to do the alignment without clobbering something else.
All our network drivers do this and, with some devices, the
performance improvement is huge.

Regards,
George Varndell
- --
Varndell Engineering, LLC
Embedded Systems Expertise
http://www.varndellengineering.com

- -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
   http://www.newsfeed.com       The #1 Newsgroup Service in the World!
- -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Need to watch DTR status on a PPC
Date: Tue, 13 Aug 2002 20:42:38 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D59A77D.D839CC84@bellsouth.net>
References: <2eced96.0208131224.42163659@posting.google.com>

andrew wrote:

> Ladles and Jellyspoons,
> does anyone have a clue how I can grab DTR on the serial port of a
> PPC?
>
> I need to figure out if someone is disconnecting from the serial port
> and reset the shell (which is password protected) and cause them to be
> logged out if they haven't explicitly.
>
> Any pointers to docs or code are great.
> thanks in advance
> andrew

Consult the hardware docs for your board.  It should tell you what the
port address is.  Read it when you want to.  I don't use PPC's, so
I can't guess at the address.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: porting vxworks to i386ex custom board
Date: 13 Aug 2002 21:56:40 -0700
From: jyothimshetty@yahoo.com (Jyothi M)
Organization: http://groups.google.com/
Message-ID: <e5135634.0208132056.339120f9@posting.google.com>
References: <e5135634.0208120407.567f1221@posting.google.com> <3D58108F.7AFBAAB1@notifier-is.net>

hi everyone,

thanks

i have written the bsp,and built the following files,

vxWorks.res_rom_low.bin
vxWorks.res_rom.hex
vxWorks.st
vxWorks_rom.hex

and i want to load the bsp into my custom board flash, through serial
communication only. which to load, and how to load it into flash.

pls help me

regards.
jyothi

david lindauer <dlindauer@notifier-is.net> wrote in message news:<3D58108F.7AFBAAB1@notifier-is.net>...
> you have to write a BSP, which is the low-level interface between Vxworks
> and the hardware.  I would start with the standard 386 Bsp and rewrite/add
> the parts that are specific to your board but non-standard.
> 
> David
> 
> Jyothi M wrote:
> 
> > i am working on custom build i386ex board. i want to port vxworks on it.
> > my board has 2mb flash, 256kb ram, and 2serial ports.
> >
> > how can i proced further.
> >
> > regards.
> > Jyothi.M

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: 13 Aug 2002 23:26:10 -0700
From: hotJacky@163.net (Bryan)
Organization: http://groups.google.com/
Message-ID: <8f77d4a.0208132226.578b8509@posting.google.com>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <newscache$yi2s0h$xme$1@lnews.actcom.co.il>

Leonid Rosenboim,

Thank you very much!

I would design a type of queue which increase dyanmicly when queue is
full,it also support urgent priority message.When I accomplish it ,I
find it is almost the same as queue in VxWorks.So I have the idea to
replace the queue in Vxworks.But msgQSend can be called by ISR,my
QSend can not.I believe it is the most difficult.
It semms that I should do two things If I want to replace queue in
VxWorks:
1.Design the microcall alike VxWorks's
2.When cause a race,the qsend call must be move to another work
queue,just like logmsg.

Wait for your reply.
Thank you again!
Yours Bryan.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Command-line compiler problems with Tornado 2.1/NT for MIPS
Date: 13 Aug 2002 23:40:24 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208132240.56cdae8b@posting.google.com>
References: <3D59CBFE.1357.UVXWORKS@vert.synchro.net>

Hello,

You need to read the VxWorks Programmer's Guide and the Tornado
documentation. You are not using the tools in the correct way at all
for VxWorks development.

Unlike Windoze or unix, VxWorks does not use executables (which is
what c++mips was trying to generate for you since you gave it no
options). Instead, simple .o files are downloaded onto the target
system that is already running the VxWorks kernel. The loader that
performs that step will resolve the unresolved symbols with those
already in the kernel image.

So, the simplest way to compile your source would be:

  % ccmips -c test.c

(Note c++mips would be for C++ source, and is usually not necessary
since ccmips will automatically determine when a source file has a
valid C++ extension - for Windoze these are .c++, .cc and I believe
.cpp and .cxx - on Unix there is an additional one: .C - uppercase C).

The output of this is test.o which you then download to the target
system (look up the reference manual entry for ld and the section in
the docs about the WindShell). Once downloaded, you can just call the
entry point of your code and it should run. If when you download the
test.o file you get errors about unresolved symbols, then you will
need to rebuild the VxWorks kernel having adjusted the configAll.h or
config.h file(s) to add the required feature(s) to the kernel. Again,
read the documentation for information about this process.

Another important note: never use main() as your entry point function
name (or any other function for that matter). It has special
significance for the compiler, which will generate special code to
facilitate initialisation and termination of a process - something
that VxWorks does not have.

Finally, I would strongly recommend that you get some training if you
are going to be producing an embedded and/or real-time device with
VxWorks. There are a number of key differences from the programming
environment that you seem to be used to; finding those by trial and
error will be time consuming and very frustrating.

HTH,

John...

"Digital Man" <digital.man@remove-cqk-this.vert.synchro.net> wrote in message news:<3D59CBFE.1357.UVXWORKS@vert.synchro.net>...
> If I just try to build a simple "hello world" program with c++mips.exe (as an
> example), I get the following error:
> 
>         $ c++mips test.c
>         /Tornado/host/x86-win32/mips-wrs-vxworks/bin/ld: cannot find -lm
>         collect2: ld returned 1 exit status
> 
> The only libm.a file in my Tornado (2.1) installation is in the
> Tornado/host/x86-win32/i386-pc-mingsw32/lib directory (and it's just an empty
> archive anyway). I've tried creating an empty libm.a with armips in the lib
> search path, but then I get an access violation in the linker:
> 
>         $ c++mips test.c
>         (C:\Tornado\host\x86-win32\mips-wrs-vxworks\bin\ld.exe 1005) Exception:
> STATUS_ACCESS_VIOLATION
>         (C:\Tornado\host\x86-win32\mips-wrs-vxworks\bin\ld.exe 1005) Dumping
> stack trace to ld.exe.core
>         /Tornado/host/x86-win32/mips-wrs-vxworks/bin/nm: a.out: File truncated
>         collect2:
> C:/Tornado/host/x86-win32/bin/../lib/gcc-lib/mips-wrs-vxworks/gcc-
> 2.96/../../../../mips-wrs-vxworks/bin/nm ret
>         urned 1 exit status
> 
> I can link with --nostdlib, but then of course I get hundreds of unresolved
> symbols, so I'd like to avoid specifying every library name by hand if I don't
> have to. Do you have any idea why the C++ compiler is requiring libm.a and why
> it would not be present in the Tornado MIPS library directories?
> 
> Now, just as a test, I used the C compiler (ccmips) and got different results:
> 
> $ ccmips test.c
> /Tornado/host/x86-win32/mips-wrs-vxworks/bin/ld: cannot find -lgcc
> collect2: ld returned 1 exit status
> 
> Now, libgcc.a for MIPS I do have, so I just added that library search directory
> to the command-line:
> 
> $ ccmips test.c
> -L/tornado/host/x86-win32/lib/gcc-lib/mips-wrs-vxworks/gcc-2.96/MIPS32sfgnu
> /Tornado/host/x86-win32/mips-wrs-vxworks/bin/ld: warning: cannot find entry
> symbol _start; defaulting to 000000000040000
> 0
> c:\DOCUME~1\swindell\LOCALS~1\Temp\ccyWaaaa.o: In function `main':
> c:\DOCUME~1\swindell\LOCALS~1\Temp\ccyWaaaa.o(.text+0x14): undefined reference
> to `printf'
> collect2: ld returned 1 exit status
> 
> It now finds libgcc.a, but still has some unresolved symbols. Anyway, I *do*
> need to use the C++ compiler so that was just a test to see if would have any
> more success with the ccmips.exe.
> 
> Thanks for any help you can offer,
> 
>                                                  digital man
> --- Synchronet 3.10j-Win32 NewsLink 1.29
>  *  Vertrauen - Fullerton, California - telnet://vert.synchro.net

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Changing a password / loginUserDelete() doesn't free memory
Date: 13 Aug 2002 23:58:35 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208132258.1870f4de@posting.google.com>
References: <1029268579.10443.0.nnrp-01.d4e4b8d1@news.demon.co.uk>

Hello,

The password string will not be freed by the library. It is actually
built on top of symLib, and deleting a user just performs a
symRemove() on the user name (the password is stored as a pointer to
the string passed in loginUserAdd(), so freeing it might not be
possible since it might not be dynamically allocated memory).

So, to change the password you simply need to change the original
string passed to loginUserAdd(). Assuming that you can find this
string, changing the password should be simple.

HTH,

John...   

PS You could also try asking Wind River support or your local FAE for
the source file; then you could make whatever changes you like to the
password and username management.

"cecil" <cecil@hunmanby.demon.co.uk> wrote in message 
news:<1029268579.10443.0.nnrp-01.d4e4b8d1@news.demon.co.uk>...
> Does anybody know how to change a password without deleting the user and
> adding another?
> I'm not keen on using loginUserDelete() the loginUserAdd() because it doen't
> seem to free up the memory it's used.
> Anybody got any thoughts?
> Nigel

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: Wed, 14 Aug 2002 10:27:59 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$jmrt0h$99h$1@lnews.actcom.co.il>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <newscache$yi2s0h$xme$1@lnews.actcom.co.il> <8f77d4a.0208132226.578b8509@posting.google.com>

Assuming you do not have VxWorks source code and its confidential internal
kernel architecture documentation, you should not attempt to use the
microkernel calls.

Instead what I recommend you do, is when your qsend function is called from
an ISR, call excJobAdd() to have tExcTask to the actual qsend call for the
ISR, and then it's OK to use Mutex semaphore for protection etc. inside your
library.
intLib.h contains a macro that determines if if is run in ISR context or
not.

Good luck.

"Bryan" <hotJacky@163.net> wrote in message
news:8f77d4a.0208132226.578b8509@posting.google.com...
> Leonid Rosenboim,
>
> Thank you very much!
>
> I would design a type of queue which increase dyanmicly when queue is
> full,it also support urgent priority message.When I accomplish it ,I
> find it is almost the same as queue in VxWorks.So I have the idea to
> replace the queue in Vxworks.But msgQSend can be called by ISR,my
> QSend can not.I believe it is the most difficult.
> It semms that I should do two things If I want to replace queue in
> VxWorks:
> 1.Design the microcall alike VxWorks's
> 2.When cause a race,the qsend call must be move to another work
> queue,just like logmsg.
>
> Wait for your reply.
> Thank you again!
> Yours Bryan.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: ipAttach ipDetach memory leak problem
Date: Wed, 14 Aug 2002 08:59:34 +0000 (UTC)
From: Johan Borkhuis <JBorkhuis@proxim.com>
Organization: Agere Systems
Message-ID: <Xns926A6F4FD288Cborkhuisagerecom@192.19.193.66>
References: <5607ff2c.0208140043.d278f90@posting.google.com>

gabi@tdsoft.com (Gabi) wrote:
> When I operate the following sequence: 
> ipDetach (1,"fec"); 
> ipAttach(1,"fec");
> And not from the shell, I notice in memShow of a memory leak (6-12
> bytes) in each sequence. Do I miss something?

If you call this from the shell the string "fec" is declared somewhere in 
memory. But it is not freed, because the shell does not know if it is still 
in use.
If youy want to avoid this you should create a string in memory (using 
malloc) and pass this string to these functions and free this agter you are 
finished.

Kind regards,
        Johan

- -- 
        o o o o o o o . . .   _____________________________
       o      _____           ||    Johan Borkhuis        |
     .][__n_n_|DD[  ====_____  |    JBorkhuis@Proxim.com  |
    >(________|__|_[_________]_|__________________________|
    _/oo OOOOO oo`  ooo   ooo  'o!o!o                o!o!o`
=== VxWorks FAQ: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html ===

---------------------------

Newsgroups: comp.os.vxworks
Subject: help: problem during building
Date: 14 Aug 2002 02:15:17 -0700
From: joge709@hotmail.com (joge)
Organization: http://groups.google.com/
Message-ID: <1d168114.0208140115.352958a7@posting.google.com>

mbler-with-cpp -IC:\Tornado\target\proj\Project7
- -IC:\Tornado\target\config\mcp750 -IC:\To
rnado\target\h 	 -IC:\Tornado\target\config\comps\src
- -IC:\Tornado\target\src\drv	 -DCPU=P
Hi all,

Now I meet some problem during building a bootable vxworks,the error
message is blow:

PC604 -DPRJ_BUILD -DMCP750 -DTARGET_DIR="\"mcp750\"" -c
C:\Tornado\target\config\mcp750\sy
sALib.s -o sysALib.o
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cca01252.s: Assembler messages:
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cca01252.s:5006: Warning: operand
out of range (-32768
not between 0 and 65535)
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cca01252.s:5095: Warning: operand
out of range (57343 n
ot between -32768 and 32767)
ccppc -g -mstrict-align -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT
 -fvolatile -fno-bu
iltin -fno-for-scope -IC:\Tornado\target\proj\Project7
- -IC:\Tornado\target\config\mcp750 -
IC:\Tornado\target\h 	 -IC:\Tornado\target\config\comps\src
- -IC:\Tornado\target\src\drv	 -
DCPU=PPC604 -DPRJ_BUILD -DMCP750 -DTARGET_DIR="\"mcp750\"" -c
C:\Tornado\target\config\mcp
750\sysLib.c

Did anybody meet the same question as me. Please help me to settle the
problem .

Thanks advance.

Joge Chi.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: 14 Aug 2002 02:16:21 -0700
From: cpotenza@onetel.net.uk (Claudio Potenza)
Organization: http://groups.google.com/
Message-ID: <2025ac82.0208140116.13880440@posting.google.com>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <newscache$yi2s0h$xme$1@lnews.actcom.co.il>

> I want to replace message queue management supplied by VxWorks
> with another type.msgQSend can be called by ISR,however,my send
> function calling the semTake function,So it can not be called by
> ISR.how can my send function can be called by ISR?Locking
> intterrupt?Now that VxWorks can,I think we also can do it.Would
> anyone can help me?Thanks!

If the ISR is the ONLY writer in the queue and there is a SINGLE
reader task that reads from the queue, then you should be able to
write the queue code in such a way that it doesn't require any locking
(using a 'read_pointer'/'write_pointer' in a circular buffer with a
single element wasted).

As Leonid pointed out, the vxWoks "rngLib" library provides exactly
such an implementation.

However if you have multiple writers or readers or you queue for some
reason cannot be implemented in such a way that you cannot use this
techinque.

In this case the only solution that I know of is to use
intLock/intUnlock to lock the critical section of your queue
implementation (that is, the section of code where you modify the
pointers/counter/state variables of your queue).

The obvious disadvantage of this is that this will increase the
interrupt latency for the system

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: Wed, 14 Aug 2002 12:08:43 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$gawt0h$nfh$1@lnews.actcom.co.il>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <newscache$yi2s0h$xme$1@lnews.actcom.co.il> <2025ac82.0208140116.13880440@posting.google.com>

IntLock is not the only solution, as I have suggested in a previous message,
one can only DEFER the sending of message in to a task, e.g. using
excJobAdd() to use the existing tExcTask for the job, and then all normal
task level mechanism are valid. The only disadvantage of deferring operation
is the lack of feedback regarding queue full or other error conditions to
the ISR itself.
Now since the queue discussed is variable length, message loss should not be
an issue, and there is not much the ISR can do if there is an error except
to report it, which can be done from tExcTask equally well.

Note that excJobAdd as well as netJobAdd are based on rngLib.

"Claudio Potenza" <cpotenza@onetel.net.uk> wrote in message
news:2025ac82.0208140116.13880440@posting.google.com...
> > I want to replace message queue management supplied by VxWorks
> > with another type.msgQSend can be called by ISR,however,my send
> > function calling the semTake function,So it can not be called by
> > ISR.how can my send function can be called by ISR?Locking
> > intterrupt?Now that VxWorks can,I think we also can do it.Would
> > anyone can help me?Thanks!
>
> If the ISR is the ONLY writer in the queue and there is a SINGLE
> reader task that reads from the queue, then you should be able to
> write the queue code in such a way that it doesn't require any locking
> (using a 'read_pointer'/'write_pointer' in a circular buffer with a
> single element wasted).
>
> As Leonid pointed out, the vxWoks "rngLib" library provides exactly
> such an implementation.
>
> However if you have multiple writers or readers or you queue for some
> reason cannot be implemented in such a way that you cannot use this
> techinque.
>
> In this case the only solution that I know of is to use
> intLock/intUnlock to lock the critical section of your queue
> implementation (that is, the section of code where you modify the
> pointers/counter/state variables of your queue).
>
> The obvious disadvantage of this is that this will increase the
> interrupt latency for the system

---------------------------

Newsgroups: comp.os.vxworks
Subject: IP_MAX_UNITs on custom built simulator
Date: 14 Aug 2002 03:54:09 -0700
From: ravurirr@hotmail.com (Rao R R)
Organization: http://groups.google.com/
Message-ID: <290f4d3c.0208140254.5c545a64@posting.google.com>

Hi
 I tried to implement a template NPT style driver on Custorm Simulator
BSP.I could add the driver through END_DEV object table and could load
the device through muxDevLoad. When I used ipAttach(0,"tmp"), os asked
me to increase the IP_MAX_UNITS. I checked the configNet.h in
<install_dir>/target\config/simpc/configNet.h. But there is no
IP_MAX_UNITS defined.
   I tried defining one like
#ifndef IP_MAX_UNITS
#define IP_MAX_UNITS 5
#endif

It still gives the same error saying increase IP_MAX_UNITS.
Any ideas how can I do this.

thanks in advance
Rao

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Thu Aug 15 04:03:15 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Thu Aug 15 04:03:17 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Thu Aug 15 04:03:12 PDT 2002

        Subject: Re: can't list directory!
        Subject: Re: Strange files appearing on the hard drive
        Subject: Re: Changing a password / loginUserDelete() doesn't free memory
        Subject: Re: Strange files appearing on the hard drive
        Subject: How to access complete snmp ObjectID from get, next, set, text
        Subject: Re: Command-line compiler problems with Tornado 2.1/NT for MIPS
        Subject: Anyone using Tornado 2.1.1 gcc with optimization....
        Subject: Make problem w/Torando II, parameter is incorrect
        Subject: Re: file level redundancy
        Subject: Re: wdbSystemSuspend  : linker error
        Subject: 8260 BSP autosizing memory?
        Subject: Re: file level redundancy
        Subject: what's wrong with my cache flush function?
        Subject: Ip Checksum
        Subject: FTP
        Subject: collision question
        Subject: Re: 8260 BSP autosizing memory?
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: Continue from the same point after power fail (PPC VxWorks 2)?
        Subject: Re: 8260 BSP autosizing memory?
        Subject: Re: Anyone using Tornado 2.1.1 gcc with optimization....
        Subject: Re: problem connecting a flahs Block Driver to DosFsLib
        Subject: Re: Continue from the same point after power fail (PPC VxWorks 2)?
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: Strange files appearing on the hard drive
        Subject: Re: Ip Checksum
        Subject: Re: Continue from the same point after power fail (PPC VxWorks 2)?

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Re: can't list directory!
Date: Wed, 14 Aug 2002 18:22:08 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$ukdu0h$y4i$1@lnews.actcom.co.il>
References: <ailhui$232v$1@mail.cn99.com> <1028567239.888760@azores.network-i.net>

The enhanced FTP server that Dimitros has mentioned, is distributed with
dosFs 2.0, and is placed into the "unsupported" area when dosFs 2.0 is
installed.

This enhanced FTP server will work nicely with Windoes Commands and many
other GUI FTP clients, including Internet Explorer and Netscape.

The reason for it to be in the "unsupported" area rathern then simply
replace the current FTP server is mainly political (i.e. the enhancement
work was done by an engineer that was not part of the Netowrking Group, so
the Network group manager refused to accept it. It was actually done by the
head of file systems group at the time, yours truly.)

- - Leonid

"Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com> wrote in
message news:1028567239.888760@azores.network-i.net...
> The standard FTPD of VxWorks responds with a non-standard output to the
DIR
> command, which the graphical FTP clients cannot parse. There is an
> alternative FTPD in the unsupported area, which does what you want plus
> other nice things... but I haven't used yet so can't comment on it.
>
> This subject has been discussed in detail on this group. Search for past
> posts in groups.google.com.
>
> Dimitris
>
> > "He HaiYang" <hyhe@PhotonicBridges.com> wrote in message
> news:ailhui$232v$1@mail.cn99.com...
> > When I connect my WindowsCommander 5.0 to vxWorks' FTPD, I can't list
> directory.
>
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Strange files appearing on the hard drive
Date: Wed, 14 Aug 2002 17:40:14 GMT
From: "John Kevin Fabiani" <nospam@nospam.net>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <2Cw69.5098$fm.2387@newssvr19.news.prodigy.com>
References: <95ebbe31.0208130848.27aead6f@posting.google.com>

This is fixed in Tornado 2.2 FCS.

This is also fixed in the latest dosFs2.2 patch,
see SPR79795 for x86.

John

"Aaron Graham" <agraham@openglobe.net> wrote in message
news:95ebbe31.0208130848.27aead6f@posting.google.com...
> Using DosFs2, I have been noticing quite often that I will get strange
> files appearing on my hard drive.  Here's what they look like when I
> do a "ll" from the vxWorks shell:
>
> -rwxrwxrwx  1 0       0             2618 Aug 13 09:03 info.txt
> ?---------  0 0       0                0 Jan  1  1970 AA
>
> The file is usually called "AA", "A", or "Br", and cannot be read,
> written, or removed, and running chkdsk does not find the problem.  It
> causes lots of problems while using file utilties in our application,
> simply because it shows up, but can't be accessed.  The only way to
> fix it is to re-format the partition and re-install the software.
>
> I would assume that something has gone wrong with the directory
> structure.  Probably yanked the plug on the machine while it was doing
> some sort of critical file access.  RTOS...reliable
> filesystem...?...nah, guess not.
>
> Let me know if you've seen it too.
> Aaron

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Changing a password / loginUserDelete() doesn't free memory
Date: Wed, 14 Aug 2002 19:43:03 +0100
From: "cecil" <cecil@hunmanby.demon.co.uk>
Message-ID: <1029350596.19299.0.nnrp-01.d4e4b8d1@news.demon.co.uk>
References: <1029268579.10443.0.nnrp-01.d4e4b8d1@news.demon.co.uk> <488e459a.0208132258.1870f4de@posting.google.com>

Thanks, that seems to work
"John" <john_94501@yahoo.com> wrote in message
news:488e459a.0208132258.1870f4de@posting.google.com...
> Hello,
>
> The password string will not be freed by the library. It is actually
> built on top of symLib, and deleting a user just performs a
> symRemove() on the user name (the password is stored as a pointer to
> the string passed in loginUserAdd(), so freeing it might not be
> possible since it might not be dynamically allocated memory).
>
> So, to change the password you simply need to change the original
> string passed to loginUserAdd(). Assuming that you can find this
> string, changing the password should be simple.
>
> HTH,
>
> John...
>
> PS You could also try asking Wind River support or your local FAE for
> the source file; then you could make whatever changes you like to the
> password and username management.
>
> "cecil" <cecil@hunmanby.demon.co.uk> wrote in message
> news:<1029268579.10443.0.nnrp-01.d4e4b8d1@news.demon.co.uk>...
> > Does anybody know how to change a password without deleting the user and
> > adding another?
> > I'm not keen on using loginUserDelete() the loginUserAdd() because it
doen't
> > seem to free up the memory it's used.
> > Anybody got any thoughts?
> > Nigel

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Strange files appearing on the hard drive
Date: 14 Aug 2002 14:35:51 -0400
From: Bill Pringlemeir <spam_account@sympatico.ca>
Organization: Bell Sympatico
Message-ID: <m2lm79e1a0.fsf@sympatico.ca>
References: <95ebbe31.0208130848.27aead6f@posting.google.com> <2Cw69.5098$fm.2387@newssvr19.news.prodigy.com>
Sender: bpringle@DeadDuck

Does anyone know where to find Tornado 2.0.1 patches on WindSurf?  It
seems that there are many patches available for Tornado 2.0.2, but
there are none for the ARM processor.

Regards,
Bill Pringlemeir.

- -- 
Don't you realise that perverted people are stupid?  How can you be
so braindamaged?

---------------------------

Newsgroups: comp.os.vxworks
Subject: How to access complete snmp ObjectID from get, next, set, text
Date: 14 Aug 2002 12:29:06 -0700
From: fgleeson@gi.com (FrankG)
Organization: http://groups.google.com/
Message-ID: <acdb38ce.0208141129.a70b704@posting.google.com>

I am implementing an agent that uses a c++ place to associate a single
MIB node with 1 or more data bases objects. I do not understand how
OIDs of singly and doubly indexed tables get passed in to as the
parameters passed to the 4 methods.

Assume the following MIB node 

STATIC
MIBARC_T	blahEntry_arcs[] = {
			ARC(1, blahIndex1_node),
			ARC(2, blahIndex2_node),
			ARC(3, blahRowData1_leaf),
			ARC(4, blahRowData1_leaf),
			ARC(5, blahRowData2_leaf),
			END_OF_ARC_LIST };
STATIC
MIBNODE_T	blahEntry_node = NODE("blahEntry",
			blahEntry_arcs);

i.e. 
If the node is   x.x...x.1
Then index1 is   x.x...x.1.1.0.0 
Then index2 is   x.x...x.1.2.0.0
Then rowData1 is x.x...x.1.3.0.0
Then rowData2 is x.x...x.1.4.0.0
Then rowData3 is x.x...x.1.5.0.0
 
In this case there would be 3 databases 

get(OIDC_T mastMatch, int unsused, OIDC_T* pUnused, ...

I would rather deal with the complete OID as sent in the manager
request (I know how the manager works) then try to understand how it
has been mangled to make the 3 parameters above.

In the Envoy docs it says that the SNMP_PKT_T* pckt pointer is
available so that the method can see the original packet. But when I
look at the structure for SNMP_PKT_T it is not at all obvious how to
get this information.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Command-line compiler problems with Tornado 2.1/NT for MIPS
Date: Wed, 14 Aug 2002 22:34:47 GMT
From: "Digital Man" <digital.man@remove-fj4-this.vert.synchro.net>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <3D5AE8AD.1376.UVXWORKS@vert.synchro.net>
References: <3D5A0E24.1360.UVXWORKS@vert.synchro.net>

  To: john_94501@yahoo.com (John)
  Re: Re: Command-line compiler problems with Tornado 2.1/NT for MIPS
  By: john_94501@yahoo.com (John) to comp.os.vxworks on Tue Aug 13 2002 11:40 pm

 > You need to read the VxWorks Programmer's Guide and the Tornado
 > documentation. You are not using the tools in the correct way at all
 > for VxWorks development.
 > 
 > Unlike Windoze or unix, VxWorks does not use executables (which is
 > what c++mips was trying to generate for you since you gave it no
 > options). Instead, simple .o files are downloaded onto the target
 > system that is already running the VxWorks kernel. The loader that
 > performs that step will resolve the unresolved symbols with those
 > already in the kernel image.

<doh!> Actually, I already knew this and have been using Torando and VxWorks
for quite some time. It's just in converting an existing Linux project to
VxWorks, I simply forgot that the linking stage was unnecessary and is handled
when downloaded to the target. Thanks for the reminder!

                                                 digital man
- --- Synchronet 3.10j-Win32 NewsLink 1.29
 *  Vertrauen - Fullerton, California - telnet://vert.synchro.net

---------------------------

Newsgroups: comp.os.vxworks
Subject: Anyone using Tornado 2.1.1 gcc with optimization....
Date: 14 Aug 2002 15:35:51 -0700
From: dsa0000@hotmail.com (dsa)
Organization: http://groups.google.com/
Message-ID: <ee967989.0208141435.2f71b55d@posting.google.com>

Hi All,

Anyone using Tornado 2.1.1 tool chain ?
We are facing some issues with optimization..

Thanks
DSA

---------------------------

Newsgroups: comp.os.vxworks
Subject: Make problem w/Torando II, parameter is incorrect
Date: 14 Aug 2002 15:50:34 -0700
From: emil@lapel.com (Emil Rojas)
Organization: http://groups.google.com/
Message-ID: <754b62e0.0208141450.bee3a43@posting.google.com>

I just installed Tornado II on a PC, and when I try to complie the
first tutorial I get the following output.

- ---------------------------------------
ccsimpc -U__WINNT -UWIN32 -U__WINNT__ -UWINNT -U__MINGW32__ -U_WIN32
- -U__WIN32 -U__WIN32__
 -U__WIN32 -mpentium -ansi -nostdinc -g -nostdlib -fno-builtin
- -fno-defer-pop -Wall -DRW_M
ULTI_THREAD -D_REENTRANT -I. -IC:\Tornado\target\h -DCPU=SIMNT -c
C:\Tornado\target\src\de
mo\start\cobble.c
C:\Tornado\target\src\demo\start\cobble.c: In function `monitor':
C:\Tornado\target\src\demo\start\cobble.c:322: warning: unused
variable `isNot'
vxrm C:\Tornado\target\proj\Project1\prjObjs.lst
Generating C:\Tornado\target\proj\Project1\prjObjs.lst... 
fatal error in make: The parameter is incorrect.

make: *** [C:\Tornado\target\proj\Project1\prjObjs.lst] Error 0x57
- -------------------------------------
Any clues greatly appreicated.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: file level redundancy
Date: 14 Aug 2002 16:06:57 -0700
From: emil@lapel.com (Emil Rojas)
Organization: http://groups.google.com/
Message-ID: <754b62e0.0208141506.464443da@posting.google.com>
References: <1029252744.708216@azores.network-i.net>

"Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com> wrote in message news:<1029252744.708216@azores.network-i.net>...
> Hi,
> 
> does anyone know of a file level redundancy solution that works over IP?
> Or has anyone worked on such project and is willing to offer some tips?
> 
I believe that there are commercial solutions to this problem that are
readily available.  You might use google to search on some of your key
words.  I think that Storage Area Network (SAN) products would address
what I think you are asking about, but may be overkill.  If this
doesn't make sense, then you should try restating your problem.

emil

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: wdbSystemSuspend  : linker error
Date: 14 Aug 2002 16:23:51 -0700
From: rishi_bhargava@yahoo.com (Rishi Bhargava)
Organization: http://groups.google.com/
Message-ID: <2474871.0208141523.4f2375@posting.google.com>
References: <2474871.0208081254.16b73a2f@posting.google.com> <488e459a.0208082101.2cea1ca3@posting.google.com>

Tried the following things.. but still get the same error... any
suggestion as to what else should I try...

thanks,
Rishi

john_94501@yahoo.com (John) wrote in message news:<488e459a.0208082101.2cea1ca3@posting.google.com>...
> Hello,
> 
> You don't have the WDB system mode debugging support in your kernel.
> Check for INCLUDE_WDB_SYS and also that you have the WDB connection
> set to WDB_COMM_END or WDB_COMM_SERIAL (the older WDB_COMM_NETWORK
> excludes system mode support as it does not support polling mode).
> 
> HTH,
> 
> John...
> 
> rishi_bhargava@yahoo.com (Rishi Bhargava) wrote in message news:<2474871.0208081254.16b73a2f@posting.google.com>...
> > I tried to include the call to wdbSystemSuspend in my code as I want
> > to suspend the system at an early stage so that I can conenct the
> > target and start a debugger. When I include this I get a linker error
> > : undefined reference ...
> > 
> > I am linking the libPPC860gnuvx.a. Can anybody suggest what could be
> > goinf wrong .. any include definitions I need??
> > 
> > thanks
> > Rishi

---------------------------

Newsgroups: comp.os.vxworks
Subject: 8260 BSP autosizing memory?
Date: 14 Aug 2002 16:35:39 -0700
From: jchen@terayon.com (john)
Organization: http://groups.google.com/
Message-ID: <a7df1543.0208141535.7e46a9dc@posting.google.com>

hi everyone!
Does anyone know if the Windriver supplied MPC8260 BSP supports
autosizing memory?  Just curious.  We are currently using hard coded
memory sizes.  That means when the memory changes the code will need
to change as well....

Also, if it does support LOCAL_MEM_AUTOSIZE, is it just a one line add
in config.h to #define LOCAL_MEM_AUTOSIZE?  what are the implications?

thanks
john

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: file level redundancy
Date: Thu, 15 Aug 2002 02:00:45 +0100
From: Dimitrios Siganos <no_spam.dimitris@engineer.com>
Message-ID: <3D5AFD3D.6040301@engineer.com>
References: <1029252744.708216@azores.network-i.net> <754b62e0.0208141506.464443da@posting.google.com>

I guess I have not made clear that the hardware is fixed. I have two 
PPC7410 processors, each connected to a SCSI bus. They both act as file 
servers. The servers work as a redundant pair - when one goes down the 
other must take over without any service disruptions.

So what I need is the software to run on the hardware that I already 
have. What you are proposing is a hardware/software solution, which is 
not what I was looking for.

Thanks for you reply though.

Dimitris

Emil Rojas wrote:
> "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com> wrote in message news:<1029252744.708216@azores.network-i.net>...
> 
>>Hi,
>>
>>does anyone know of a file level redundancy solution that works over IP?
>>Or has anyone worked on such project and is willing to offer some tips?
>>
> 
> I believe that there are commercial solutions to this problem that are
> readily available.  You might use google to search on some of your key
> words.  I think that Storage Area Network (SAN) products would address
> what I think you are asking about, but may be overkill.  If this
> doesn't make sense, then you should try restating your problem.
> 
> emil

---------------------------

Newsgroups: comp.os.vxworks
Subject: what's wrong with my cache flush function?
Date: 14 Aug 2002 18:28:49 -0700
From: du.jianjun@zte.com.cn (du)
Organization: http://groups.google.com/
Message-ID: <21a3d7e1.0208141728.1e703881@posting.google.com>

I am usring Intel 82559er ethernet pci controller,because it use DMA
to transport data,so cache and memory appear disconherence,the 82559
can not work properly.So I write a cache flush function,but it can not
work properly.My cpu is MPC7410.When I disable cache of 7410,the 82559
can work well.So I think my cache flush function is not correct,follow
is my function,who can help me correct it?I need your help,thanks.
LOCAL void  DCACHE_FLUSH(int staddr,int length)  
          {
           __asm__("lwz 3,%0"::"m"(staddr) ); /*r3 = flush address*/
           __asm__("lwz 5,%0"::"m"(length) ); /*r5 = flush length*/
           __asm__("xor 4,4,4" );  
           __asm__("flush_7410: cmpw 5,4");
	   __asm__("ble	 flush_7410_done");

           __asm__("dcbf 3,4");
           __asm__("addi 4,4,0x20");
           __asm__("b	flush_7410");
           __asm__("flush_7410_done:");
          }

---------------------------

Newsgroups: comp.os.vxworks
Subject: Ip Checksum
Date: Wed, 14 Aug 2002 20:49:51 -0700
From: "Naveen" <naveen@inkra.com>
Organization: Newsfeeds.com http://www.newsfeed.com 100,000+ UNCENSORED Newsgroups. The #1 Usenet Service on the Planet!
Message-ID: <3d5b2217$1@post.newsfeed.com>

*** post for FREE via your newsreader at post.newsfeed.com ***

Hi,
 I am looking for IP Checksum written in vxworks assembly language.  Please
let me know somebody has already written it.

Thanks in advance,
Naveen

 -----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
- -----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----
                  

---------------------------

Newsgroups: comp.os.vxworks
Subject: FTP
Date: Thu, 15 Aug 2002 05:02:59 GMT
From: "weddick" <weddick@attbi.com>
Organization: AT&T Broadband
Message-ID: <7CG69.35670$me6.5347@sccrnsc01>

We just upgrade our BSP to the pentium pro.  The FTP server does not seem to
work the way it did before.  Previously, we could use the windows ftp client
and see the files on /ide0/.  Now the system wants to connect to host: and I
have to change the directory to /ide0/.  Our Exceed FTP client won't work at
all.

Anyone else have this problem?

Thanks,

---------------------------

Newsgroups: comp.os.vxworks
Subject: collision question
Date: 15 Aug 2002 00:26:29 -0700
From: essenlee@hanmail.net (LEE MYUNG SUK)
Organization: http://groups.google.com/
Message-ID: <a0405799.0208142326.38f288b0@posting.google.com>

environment: mpc860 board, VxWorks OS using

question : In a case many equipment is contected(Client is more than
30(many client)) collision is appeared.
lan is discontected and RS-232 is discontected. and CPU is living.(LCD
TASK is working)
maybe,  I don't know whether SCC1(ethernet) and SMC1(RS-232) is
collision.
or scc1 and smc1' buffer matter? 
or schedule management matter? 
please answer me..

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: 8260 BSP autosizing memory?
Date: Thu, 15 Aug 2002 07:40:54 GMT
From: "Garym" <com@vertical.garym>
Organization: AT&T Broadband
Message-ID: <aWI69.145605$uj.211105@rwcrnsc51.ops.asp.att.net>
References: <a7df1543.0208141535.7e46a9dc@posting.google.com>

I don't know about the MPC8260 BSP in particular, but a memory sizing
algorithm isn't that difficult to implement.

One of the implications to consider with LOCAL_MEM_AUTOSIZE is if your
application requires any reserved memory, i.e., memory that VxWorks isn't
responsible for. Once you check memory into VxWorks, it won't check out.

"john" <jchen@terayon.com> wrote in message
news:a7df1543.0208141535.7e46a9dc@posting.google.com...
> hi everyone!
> Does anyone know if the Windriver supplied MPC8260 BSP supports
> autosizing memory?  Just curious.  We are currently using hard coded
> memory sizes.  That means when the memory changes the code will need
> to change as well....
>
> Also, if it does support LOCAL_MEM_AUTOSIZE, is it just a one line add
> in config.h to #define LOCAL_MEM_AUTOSIZE?  what are the implications?
>
> thanks
> john

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: Thu, 15 Aug 2002 10:43:14 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$zzmv0h$x5l$1@lnews.actcom.co.il>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <newscache$yi2s0h$xme$1@lnews.actcom.co.il> <2025ac82.0208140116.13880440@posting.google.com> <newscache$gawt0h$nfh$1@lnews.actcom.co.il> <8f77d4a.0208142319.47dc32dd@posting.google.com>

Since I do not have access to Wind sources anymore, I have to rely on my
memory,
I still beleive that netJobAdd uses rngLib, as should excJobAdd, because
these only need to support a single reader, and a single writer at any given
time.

In any event, you can devise your won deferral mechanism with rngLib and a
server task to receive the requests and execute on them. So ytou do not need
to use msgQ.

Regarding the Wind kernel internal calls, some of them to intLock but for
only a few machine instructions, sort of software test-and-set operation,
and it also has an internal execution deferral mechanism called windWorkQ.
Do not try to reverse engineer or understand the microkernel API, it eint
worth the effort.

"Bryan" <hotJacky@163.net> wrote in message
news:8f77d4a.0208142319.47dc32dd@posting.google.com...
> Claudio Potenza
> Leonid Rosenboim
>
> The key is that how realize the same function of the msgQSend in
> VxWorks in my own_designed way.Leonid Rosenboim had give some
> suggestion.I think the microcall is just like the inlock/unlock which
> Claudio Potenza mentioned.So I believed that it must exits
> inlock/unlock in msgQSend.In fact, msgQSend is called by
> excJobAdd,which I find by disassembling.So,excJobAdd is the same as
> msgQSend essentially except that some additional mechanism.More
> step,excJobAdd use msgQSend to notice another task.It is up the task
> to receive message but not the ISR.
>
> Waiting for your reply!
>
>
> Sincerely,
> Bryan

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Continue from the same point after power fail (PPC VxWorks 2)?
Date: Thu, 15 Aug 2002 10:36:49 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$apmv0h$t5l$1@lnews.actcom.co.il>
References: <aiqno7$bei$1@newshost.mot.com>

Haim,

What you are trying to do is in fact far more complex than seems at first,
because saving the entire memory image and CPU registers can restore the CPU
state, but the hard part is the assorted peripherals, which would too need
to be restored, or re-initialized to a working state following this
recovery. For this, every driver must have a function to safely
re-initialize the chip to a working state without affecting any of the
software state, and none of the VxWorks drivers I have seen can do this -
not even the couter-timer or serial drivers in the BSP !

"Haim Hillel" <Haim.Hillel@Motorola.com> wrote in message
news:aiqno7$bei$1@newshost.mot.com...
> For environment of PPC 855/860/8260 & VxWorks 2.
> I think to put the image (VxWorks app. And Data) lay compressed in flash,
at
> startup the code will decompress into SDRAM (cheap memory) and the data
will
> direct to SRAM which backup by battery, when the power fail to keep also
the
> Cpu reg.
> For recover after power fail restore the code from the flash (with out
> reinitialize the data) and load the Cpu reg. from the SRAM, then continue
to
> run.
>
> Is someone having another idea? Is someone having any code, examples or
> algorithm?
> or even idea how to build and put into vxWorks_romCompress a split
sections
> for Code and Data?
>
> Best Regards
>  Haim Hillel
>
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: 8260 BSP autosizing memory?
Date: 15 Aug 2002 01:50:19 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208150050.347f7d64@posting.google.com>
References: <a7df1543.0208141535.7e46a9dc@posting.google.com>

Hello,

You need to write the piece of code in the BSP that works out the size
of the RAM and adjusts things accordingly. The following tech note
explains what you need to do to implement this feature from the BSP's
perspective. Obviously, detecting the size of RAM is something that
you'll need to work out for your hardware.

http://www.windriver.com/windsurf/appnotes/ide/tornado/t1/APN42/WTN42.html

You might try some searches on WindSurf for LOCAL_MEM_AUTOSIZE and see
if there are any examples of how to do this there. Normally, the
autosizing reads the size information from serial PROMs connected to a
I2C bus or likewise (most DRAM memory modules have these on them; most
soldered down RAM systems do not). You could also try probing,
checking jumpers on the board etc, etc.

HTH,

John... 

jchen@terayon.com (john) wrote in message news:<a7df1543.0208141535.7e46a9dc@posting.google.com>...
> hi everyone!
> Does anyone know if the Windriver supplied MPC8260 BSP supports
> autosizing memory?  Just curious.  We are currently using hard coded
> memory sizes.  That means when the memory changes the code will need
> to change as well....
> 
> Also, if it does support LOCAL_MEM_AUTOSIZE, is it just a one line add
> in config.h to #define LOCAL_MEM_AUTOSIZE?  what are the implications?
> 
> thanks
> john

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Anyone using Tornado 2.1.1 gcc with optimization....
Date: 15 Aug 2002 01:56:27 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208150056.21f16b15@posting.google.com>
References: <ee967989.0208141435.2f71b55d@posting.google.com>

Hello,

Your posting is very unlikely to get you any useful replies... You
need to tell us much more than you have.

For example:

1) Which CPU?

2) What level of optimisation?

3) Exactly which compiler? [at least cc<arch> --version output]

4) What errors you are seeing...

5) What makes you think that it is the compiler that is at fault

There are many experienced people reading this group, and contributing
answers regularly. On the whole we are also very tolerant of new users
and very basic questions, but one thing I think I can say with some
certainty is that none of us are psychic. We cannot guess what
tools/CPU/BSP/etc you are using, nor what you are doing with it, what
is failing and how it fails.

Please post your question again with more detail, and perhaps then
somebody here will be able to get you some help.

Rgds,

John...

dsa0000@hotmail.com (dsa) wrote in message news:<ee967989.0208141435.2f71b55d@posting.google.com>...
> Hi All,
> 
> Anyone using Tornado 2.1.1 tool chain ?
> We are facing some issues with optimization..
> 
> 
> Thanks
> DSA

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: problem connecting a flahs Block Driver to DosFsLib
Date: Thu, 15 Aug 2002 10:58:02 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$nonv0h$w6l$1@lnews.actcom.co.il>
References: <d0a6f188.0208150023.34dd9ad9@posting.google.com>

Didn't WindRiver provide you with a DosFs 2.0 manual ?

dosFs 2.0 will actually access the media not when you initialize the module,
but when you first access the device.
The error messages you see are an indication you have not formatted the
device for DosFs. This is something you need to do once for each board
(assuming your Flash driver is bug free), and dosFs 2.0 has a function
similar to FORMAT on PCs. Use it.

"aviv halperin" <avivhal@hotmail.com> wrote in message
news:d0a6f188.0208150023.34dd9ad9@posting.google.com...
> The problem is as follows:
> 1) I wrote a Block Driver for a 2MB Flash device.
> 2) I connected the Flash Block Driver to the dos FS with the following
> code:
>
>
> BOOL DevCreate()
> {
> int dosFsCacheSizeDefault = 128 * 1024 ;
> void * pCbio;
>        char bootDir [BOOT_FILE_LEN];
>
> #define FLASH_MAX_NUM_OF_FILES 300 /* number of simultaneously open
> files */
>
>         pBlkDev =flashDevCreate(8,8,0x1000000/8,0x100);
> if( dosFsLibInit( 0 ) == ERROR )
> {
> printErr ("dosFsLibInit failed.\n");
> return (ERROR);
> }
> /* Sub-module: VFAT Directory Handler */
> dosVDirLibInit();
> /* Sub-module: FAT12/FAT16/FAT32 FAT Handler */
> dosFsFatInit();
> devSplit ("BLKDEV:", bootDir);
> if ( (pCbio = dcacheDevCreate( (void *) pBlkDev, NULL,
> dosFsCacheSizeDefault, bootDir)) == NULL )
> {
> printErr ("dcacheDevCreate failed.\n");
> return (ERROR);
> }
>
> if (dosFsDevCreate (bootDir, pCbio, FLASH_MAX_NUM_OF_FILES,NONE) !=
> OK)
> {
> printErr ("dosFsDevCreate failed.\n");
> return (ERROR);
>         }
>    return (OK);
> }
>
>
> This worked fine(I think) cause when I checked the device list
> ("devs")
> I saw the new device "BLKDEV:".
>
> 3) now I tryed using the io's and wrote:
>
>    open("BLKDEV:",0x200,0)  and got the messages:
>
> 0x76da88 (tDbgTask): dosFsLib.c : Malformed boot sector. Offset 0,
> value 255.
> 0x76da88 (tDbgTask): dosFsLib.c : Try to accept other boot block
> copy...
> 0x76da88 (tDbgTask): dosFsLib.c : Malformed boot sector. Offset 0,
> value 255.
> 0x76da88 (tDbgTask): dosFsLib.c : Malformed boot sector. Offset 0,
> value 255.
> 0x76da88 (tDbgTask): dosFsLib.c : Malformed boot sector. Offset 0,
> value 255.
> 0x76da88 (tDbgTask): dosFsLib.c : Malformed boot sector. Offset 0,
> value 255.
> 0x76da88 (tDbgTask): dosFsLib.c : Malformed boot sector. Offset 0,
> value 255.
> 0x76da88 (tDbgTask): dosFsLib.c : Malformed boot sector. Offset 0,
> value 255.
> 0x76da88 (tDbgTask): dosFsLib.c : Malformed boot sector. Offset 0,
> value 255.
>
>
>
>
> please help me cause I'm lost here!
>
> Thanks very much.
>
> Aviv.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Continue from the same point after power fail (PPC VxWorks 2)?
Date: Thu, 15 Aug 2002 09:09:38 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3D5B7083.3020908@spamm.me.l8s.co.uk>
References: <aiqno7$bei$1@newshost.mot.com> <newscache$apmv0h$t5l$1@lnews.actcom.co.il>

Leonid Rosenboim wrote:
> Haim,
> 
> What you are trying to do is in fact far more complex than seems at first,
> because saving the entire memory image and CPU registers can restore the CPU
> state, but the hard part is the assorted peripherals, which would too need
> to be restored, or re-initialized to a working state following this
> recovery. For this, every driver must have a function to safely
> re-initialize the chip to a working state without affecting any of the
> software state, and none of the VxWorks drivers I have seen can do this -
> not even the couter-timer or serial drivers in the BSP !

This is made even harder by the fact that the 'power fail' interrupt
might interrupt device driver code that is part way through an
(otherwise atomic) sequence (eg reading an ethernet frame from the
on-board fifo).

I got sleep/resume going on the system I used, but I wrote drivers
for all the hardware that suported a sleep lock (cf interrupt lock).

Worse still a compact flash card could be part way through a data
reorganisation.  Pulling the power then makes a right mess of the
data!

	Davic

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: Thu, 15 Aug 2002 09:12:25 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3D5B712E.9000508@spamm.me.l8s.co.uk>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <newscache$yi2s0h$xme$1@lnews.actcom.co.il> <2025ac82.0208140116.13880440@posting.google.com> <newscache$gawt0h$nfh$1@lnews.actcom.co.il> <8f77d4a.0208142319.47dc32dd@posting.google.com> <newscache$zzmv0h$x5l$1@lnews.actcom.co.il>

> Do not try to reverse engineer or understand the microkernel API, it eint
> worth the effort.

Any you might find some bugs - which will never get fixed until
you've managed to generate a test case.

	David

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Strange files appearing on the hard drive
Date: Thu, 15 Aug 2002 09:13:32 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3D5B7171.7060106@spamm.me.l8s.co.uk>
References: <95ebbe31.0208130848.27aead6f@posting.google.com> <2Cw69.5098$fm.2387@newssvr19.news.prodigy.com> <m2lm79e1a0.fsf@sympatico.ca>

Bill Pringlemeir wrote:
> Does anyone know where to find Tornado 2.0.1 patches on WindSurf?  It
> seems that there are many patches available for Tornado 2.0.2, but
> there are none for the ARM processor.

So things haven't improved for ARM....

	David

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Ip Checksum
Date: Thu, 15 Aug 2002 09:17:37 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3D5B7265.7080706@spamm.me.l8s.co.uk>
References: <3d5b2217$1@post.newsfeed.com>

Naveen wrote:
> 
> Hi,
>  I am looking for IP Checksum written in vxworks assembly language.  Please
> let me know somebody has already written it.

WRS - most ports use an assembler version......

Clearly you don't know what you are talking about, since vxworks
is an OS not a CPU.

	Davic

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Continue from the same point after power fail (PPC VxWorks 2)?
Date: Thu, 15 Aug 2002 11:35:53 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$qfpv0h$0al$1@lnews.actcom.co.il>
References: <aiqno7$bei$1@newshost.mot.com> <newscache$apmv0h$t5l$1@lnews.actcom.co.il> <3D5B7083.3020908@spamm.me.l8s.co.uk>

David, I agree with you completely, except that I think that well designed
compact Flash controller should be able to handle power loss anytime, and be
able to recover from that.

Because you can't write on Flash location perviously written, only on
previously erased block, the internal structure of any Flash media is akin
to journal, and every sector is written in a new physical location, then
some metadata is updated to indicate that new version of that logical sector
appeared. Old version will be subsequently destroyed and block erased to
make room for new writes.

I am curious as to what make of CF cards had problems with power remoival,
so I will know which card not to use in my digial camera.

- - Leonid

"David Laight" <david@spamm.me.l8s.co.uk> wrote in message
news:3D5B7083.3020908@spamm.me.l8s.co.uk...
> Leonid Rosenboim wrote:
> > Haim,
> >
> > What you are trying to do is in fact far more complex than seems at
first,
> > because saving the entire memory image and CPU registers can restore the
CPU
> > state, but the hard part is the assorted peripherals, which would too
need
> > to be restored, or re-initialized to a working state following this
> > recovery. For this, every driver must have a function to safely
> > re-initialize the chip to a working state without affecting any of the
> > software state, and none of the VxWorks drivers I have seen can do
this -
> > not even the couter-timer or serial drivers in the BSP !
>
> This is made even harder by the fact that the 'power fail' interrupt
> might interrupt device driver code that is part way through an
> (otherwise atomic) sequence (eg reading an ethernet frame from the
> on-board fifo).
>
> I got sleep/resume going on the system I used, but I wrote drivers
> for all the hardware that suported a sleep lock (cf interrupt lock).
>
> Worse still a compact flash card could be part way through a data
> reorganisation.  Pulling the power then makes a right mess of the
> data!
>
> Davic
>

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Thu Aug 15 15:15:59 2002
From: "Naveen Chandra" <naveen@inkra.com>
Date: Thu Aug 15 15:16:02 PDT 2002
Subject: IP Checksums

HI,
 I am looking of for efficent IP Checksum written in vxworks assembly
power pc.  Let me know if anybody has one. Appreciate your response.

Naveen C,
Inkra Networks Corp,
ph : (510) 249 4843

From vxwexplo-errs@csg.lbl.gov  Thu Aug 15 15:19:34 2002
From: "Naveen Chandra" <naveen@inkra.com>
Date: Thu Aug 15 15:19:36 PDT 2002
Subject: vxworks   IP Checksums

>  -----Original Message-----
> From: 	Naveen Chandra  
> Sent:	Thursday, August 15, 2002 3:16 PM
> To:	'vxwexplo@lbl.gov'
> Subject:	IP Checksums
> 
> HI,
>  I am looking of for efficent IP Checksum written in vxworks assembly
> power pc.  Let me know if anybody has one. Appreciate your response.
> 
> Naveen C,
> Inkra Networks Corp,
> ph : (510) 249 4843
> 

From vxwexplo-errs@csg.lbl.gov  Sat Aug 17 04:03:11 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Sat Aug 17 04:03:14 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Sat Aug 17 04:03:08 PDT 2002

        Subject: sysMemTop() doesn't quite work...
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: Interrupt Stack in PPC
        Subject: Re: unsupported instruction
        Subject: Re: Strange files appearing on the hard drive
        Subject: Re: sysMemTop() doesn't quite work...
        Subject: Who have intel 82559End driver source code? How about it efficiency?
        Subject: compiler error
        Subject: Re: how to overload malloc and free function 
        Subject: Re: compiler error
        Subject: Re: Wind Web Server File Uploads
        Subject: Re: compiler error
        Subject: Wind Web Server - httpBlockPut
        Subject: tffs question
        Subject: Re: IP_MAX_UNITs on custom built simulator

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: sysMemTop() doesn't quite work...
Date: 16 Aug 2002 16:37:22 -0700
From: jchen@terayon.com (john)
Organization: http://groups.google.com/
Message-ID: <a7df1543.0208161537.5420843f@posting.google.com>

Hello developers!

I wanted to reserve some memory for personal use in vxWorks on a
PPC8260.  The current sysMemTop routine is as follows:

char *sysMemTop( void )
{
    static char * memTop = NULL;

    if ( memTop == NULL )
    {
      memTop = sysPhysMemTop() - USER_RESERVED_MEM ;
    }
    return memTop ;
}

However, with this routine, when sysPhysMemTop returns 0x4000000
(64MB) and I tried to define USER_RESERVED_MEM to 0x20000 (2MB) it
doesn't seem to work.  My total memory is still 64MB and sysMemTop
still returns 0x4000000.  I thought if you define USER_RESERVED_MEM
then it substracts it, like the code says.  but it doesn't.  I took
out the if loop and everything looks ok.

Why is the if loop there?  When I removed the if statement then
everything seems to be ok.

Does anyone know why it doesn't *seem* to work the say it is?  my
USER_RESERVED_MEM is defined in config.h and its included in the
beginning of sysLib.c

john

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: 16 Aug 2002 10:58:31 -0700
From: emil@lapel.com (Emil Rojas)
Organization: http://groups.google.com/
Message-ID: <754b62e0.0208160958.1c14c5fa@posting.google.com>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <newscache$yi2s0h$xme$1@lnews.actcom.co.il> <2025ac82.0208140116.13880440@posting.google.com>

cpotenza@onetel.net.uk (Claudio Potenza) wrote in message news:<2025ac82.0208140116.13880440@posting.google.com>...
> > I want to replace message queue management supplied by VxWorks
> > with another type.msgQSend can be called by ISR,however,my send
> > function calling the semTake function,So it can not be called by
> > ISR.how can my send function can be called by ISR?Locking
> > intterrupt?Now that VxWorks can,I think we also can do it.Would
> > anyone can help me?Thanks!
> 
> If the ISR is the ONLY writer in the queue and there is a SINGLE
> reader task that reads from the queue, then you should be able to
> write the queue code in such a way that it doesn't require any locking
> (using a 'read_pointer'/'write_pointer' in a circular buffer with a
> single element wasted).
>
[snip] 

I once wrote code like this for OS-9000.  Its on my web site,
http://lapel.com, in the OS-9000 code zip file and its called
isrQueue.[ch].  It would need to be adapted to wake a VxWorks thread. 
This particular code is written in C and assumes that the processor
does an indivisible INC to memory, therefore it would not work on most
RISC processors, but would work on x86, 68xxx, etc.  So beware of your
implementation, the correct implemtation depends on the CPU.

emil

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Interrupt Stack in PPC
Date: 16 Aug 2002 22:07:27 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208162107.f3bd127@posting.google.com>
References: <e74abcbf.0208160521.6aa324bb@posting.google.com>

Hello,

For PowerPC there is always a separate interrupt stack, so no task
stacks are going to be used by ISRs. In VxWorks AE this is true for
all architectures.

HTH,

John...

ahenric@ccii.co.za (Arne) wrote in message news:<e74abcbf.0208160521.6aa324bb@posting.google.com>...
> Hi,
> 
> does the PPC support the use of the same interrupt stack for all
> ISR's? Or do the ISR's make use of the stack of the interrupted task?
> Where does one set the size of the interrupt stack? Is that the
> variable ISR_STACK_SIZE in configAll.h?
> 
> Thanks
> Arne

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: unsupported instruction
Date: Fri, 16 Aug 2002 10:18:14 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$bigx0h$7tn$1@lnews.actcom.co.il>
References: <bbaee578.0208151727.3affb549@posting.google.com>

Fred,

The situation that  certain MIPS derivatives are are factually subsets of
the full architecture instruction set is not new. If you look at the
libraries in $WIND_BASE/target/lib, there are a few libraries, each for a
different derivative of MIPS, and each of these libraries was compiled with
the GCC instructed to generate or not to generate certain instructions in
accordance to the specifics of a given derivative.

In other words, the accepted practice is for the chip vendor to strike a
deal with WindRiver, for the later to develop support for a specific family
of processors, adding new instructions specific for the family to further
optimize performance, and disabling other unavailable instructions. Such
mini-architecture port (usually a Class "B" project) also involves reviewing
and modifying assembly language files of the kernel and BSP, if the
derivative-specific instructions are effected.

Having said that, one also must mention a quick fix, which is feasible by
the customer (if at high level of competence) - at the intialization of the
BSP (e.g. sysALib.s) assembly file, one could set special assembly exception
handlers that will EMULATE the missing instructions in software
"transparently". This quick fix has the potential of significantly affecting
performance, in code areas where the emulated insructions are used often.
See the arcticle below for detailed description of the missing instructions,
and assembly source code for emulating them.

Microprocessor Report on Lexra:
http://www.lexra.com/Lexra-13.16_reprint.pdf

All you need to do now is to hook these exception handlers into your system,
and measure if resulting performance is satisfactory for your needs.

- - Leonid

"Fred Zhou" <zhouzhaohan@yahoo.com> wrote in message
news:bbaee578.0208151727.3affb549@posting.google.com...
> We are using Tornado 2.0 for mips.
> Our development is based on CPU called Lexra 4189 which does not
> support instrutions like "lwl lwr".
> But in tornado 's library ,such instructions occur from time to
> time,and predictably they will cause exception while executing.And
> also with GNU compile tool chain,the generated objective files also
> include such instructions.
> Anyone has similar experience,and how to fix it,or any workaround?
> Thanks!

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Strange files appearing on the hard drive
Date: Fri, 16 Aug 2002 08:55:38 GMT
From: "John Kevin Fabiani" <nospam@nospam.net>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <e6379.3364$Oa1.78466096@newssvr15.news.prodigy.com>
References: <95ebbe31.0208130848.27aead6f@posting.google.com> <2Cw69.5098$fm.2387@newssvr19.news.prodigy.com> <m2lm79e1a0.fsf@sympatico.ca> <3D5B7171.7060106@spamm.me.l8s.co.uk>

Contact your WindRiver FAE, getting this for ARM should be possible.
- -j

"David Laight" <david@spamm.me.l8s.co.uk> wrote in message
news:3D5B7171.7060106@spamm.me.l8s.co.uk...
> Bill Pringlemeir wrote:
> > Does anyone know where to find Tornado 2.0.1 patches on WindSurf?  It
> > seems that there are many patches available for Tornado 2.0.2, but
> > there are none for the ARM processor.
>
> So things haven't improved for ARM....
>
> David
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: sysMemTop() doesn't quite work...
Date: Sat, 17 Aug 2002 07:51:02 +0100
From: Wade Oram <news@wtoram.co.uk>
Organization: None
Message-ID: <zGCma9BWJfX9EASS@wtoram.co.uk>
References: <a7df1543.0208161537.5420843f@posting.google.com>
Reply-To: Wade Oram <wade@wtoram.co.uk>

In message <a7df1543.0208161537.5420843f@posting.google.com>, john 
<jchen@terayon.com> writes
>Hello developers!
>
>I wanted to reserve some memory for personal use in vxWorks on a
>PPC8260.  The current sysMemTop routine is as follows:
>
>char *sysMemTop( void )
>{
>    static char * memTop = NULL;
>
>    if ( memTop == NULL )
>    {
>      memTop = sysPhysMemTop() - USER_RESERVED_MEM ;
>    }
>    return memTop ;
>}
>
>However, with this routine, when sysPhysMemTop returns 0x4000000
>(64MB) and I tried to define USER_RESERVED_MEM to 0x20000 (2MB) it
>doesn't seem to work.  My total memory is still 64MB and sysMemTop
>still returns 0x4000000.  I thought if you define USER_RESERVED_MEM
>then it substracts it, like the code says.  but it doesn't.  I took
>out the if loop and everything looks ok.
>
>Why is the if loop there?  When I removed the if statement then
>everything seems to be ok.

Its a performance optimisation: memTop is a static variable so its value 
is calculated the first time around and then on subsequent calls to 
sysMemTop, the pre-calculated value of memTop is returned instead of 
repeating the calculation. This is done because sysPhysMemTop() is often 
a non trivial function which will take a relatively long time to 
execute.

>
>Does anyone know why it doesn't *seem* to work the say it is?  my
>USER_RESERVED_MEM is defined in config.h and its included in the
>beginning of sysLib.c

You don't say but my guess is that you are using the Tornado II project 
facility to build the image. If this is the case, it is likely that the 
project facility provides is own definition of USER_RESERVED_MEM which 
overrides the one in config.h. I think you will find this parameter in 
the project manager under hardware->memory although I could be wrong 
(I'm not at work so I can't confirm this!)

- -- 
Wade Oram

---------------------------

Newsgroups: comp.os.vxworks
Subject: Who have intel 82559End driver source code? How about it efficiency?
Date: 17 Aug 2002 00:33:49 -0700
From: du.jianjun@zte.com.cn (du)
Organization: http://groups.google.com/
Message-ID: <21a3d7e1.0208162333.f5d4099@posting.google.com>

I am using intel 82559er Ethernet controller,but my driver is changed 
from fei82557End.c,it does't work well,and the performance is bad.As
you know the fei82557End.c make 82559 work in simplified mode,How to
write the driver to make it work in  flexible mode?and how about its
performance?

---------------------------

Newsgroups: comp.os.vxworks
Subject: compiler error
Date: 16 Aug 2002 09:42:01 GMT
From: serein@163.com
Organization: NewsOne.Net - Free Usenet News via the Web - http://newsone.net/
Message-ID: <ajihd9$svv$1@news.netmar.com>

I use mpc8240 as the taget cpu,and vxworks5.4,
In my function f1 in f1.c,I init 24 threads via taskSpawn(),
and create a mutex semaphor to synchronize the 24 threads.
in f1.c:
#include "vxWorks.h"
#include "semLib.h"
#include "taskLib.h"
#include "vxLib.h"
..
SEM_ID mysemid;
void f1(void)
{
   mysemid=semMcreate(SEM_Q_PRIORITY| SEM_INVERSION_SAFE
    | SEM_DELETE_SAFE);
   int i;
   for(i=1;i<25;i++){
    taskSpawn(..f2..)
   }
}
Then in another file f2.c,for 24 threads share one i2c bus,so if one
thread want to read or write using i2c bus,it should take the sem first,
so in f2.c:
#include "semLib.h"
#include "mousse.h"

extern SEM_ID zxjSemId;
void f2(short int port)
{
   semTake(mysemid,WAITFOREVER);
   ... /* i2c read or write function */
   semGive(mysemid);
}
I am puzzled that when I compile the code,it output following errors:
cc1.exe: warnings being treated as errors
In file included from c:/Tornado2/target/h/arch/ppc/archPpc.h:130,
                 from c:/Tornado2/target/h/types/vxArch.h:84,
                 from c:/Tornado2/target/h/vxWorks.h:170,
                 from c:/Tornado2/target/h/semLib.h:41,
                 in f2.c:13
c:/Tornado2/target/h/arch/ppc/toolPpc.h:555: warning: structure defined
inside p
arms
c:/Tornado2/target/h/arch/ppc/toolPpc.h:555: storage class specified for
paramet
er `__gnuc_va_list'
c:/Tornado2/target/h/arch/ppc/toolPpc.h:568: warning: structure defined
inside p
arms
c:/Tornado2/target/h/arch/ppc/toolPpc.h:568: storage class specified for
paramet
er `__va_regsave_t'
.. There are a large number of this kind of errors,
I don't know what's wrong,and when there is only one thread using i2c,it's
ok.
hoping help!!!

 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts
made through NewsOne.Net violate posting guidelines, email abuse@newsone.net

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: how to overload malloc and free function 
Date: Fri, 09 Aug 2002 20:17:20 GMT
From: "Hadi" <sdfs@hotmail.com>
Organization: Magma Communications Ltd.
Message-ID: <krV49.6968$V21.128675@news>
References: <E9T49.6935$V21.128580@news>

I was trying do this my removing the symbol from the symbol table. Then
later replacing it with
my own malloc address. I am having the following problem

- -> tmpAddr=100
- -> sType='p'
- ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
value = 0 = 0x0
- ->
- ->
- ->
- -> symRemove(sysSymTbl,"malloc",sType)
value = -1 = 0xffffffff
- ->  symFindByName(sysSymTbl,"malloc",&tmpAddr,&sType)
value = 0 = 0x0

As you can see the symRemove fails. Can some one tell me why
           Hadi
"Hadi" <sdfs@hotmail.com> wrote in message
news:E9T49.6935$V21.128580@news...
> Can some one give me some hint how to overload those two function.
> I want my own malloc functions to be called. and from my own malloc
function
> I will call vxWork malloc.
>             Hadi
> ps : email me at hdewan@spacebridge.com
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: compiler error
Date: 16 Aug 2002 09:49:41 GMT
From: carriazhong@163.com
Organization: NewsOne.Net - Free Usenet News via the Web - http://newsone.net/
Message-ID: <ajihrl$tcl$1@news.netmar.com>
References: <ajihd9$svv$1@news.netmar.com>

there are also these errors:
c:/Tornado2/target/h/types/vxTypesOld.h:129: syntax error before `ushort_t'
c:/Tornado2/target/h/types/vxTypesOld.h:131: syntax error before `*'
c:/Tornado2/target/h/types/vxTypesOld.h:133: syntax error before `uint_t'
c:/Tornado2/target/h/types/vxTypesOld.h:135: syntax error before `*'
c:/Tornado2/target/h/types/vxTypesOld.h:137: syntax error before `ulong_t'
c:/Tornado2/target/h/types/vxTypesOld.h:139: syntax error before `*'
c:/Tornado2/target/h/types/vxTypesOld.h:143: syntax error before `*'
c:/Tornado2/target/h/types/vxTypesOld.h:144: syntax error before `*'
c:/Tornado2/target/h/types/vxTypesOld.h:147: syntax error before `*'
c:/Tornado2/target/h/types/vxTypesOld.h:148: syntax error before `*'
c:/Tornado2/target/h/types/vxTypesOld.h:151: syntax error before `*'
c:/Tornado2/target/h/types/vxTypesOld.h:152: syntax error before `*'
c:/Tornado2/target/h/types/vxTypesOld.h:161: storage class specified for
paramet
er `pointer_mix_t'
c:/Tornado2/target/h/types/vxTypesOld.h:193: storage class specified for
paramet
er `fd_mask'

In article <ajihd9$svv$1@news.netmar.com>, <serein@163.com> writes:
>I use mpc8240 as the taget cpu,and vxworks5.4,
>In my function f1 in f1.c,I init 24 threads via taskSpawn(),
>and create a mutex semaphor to synchronize the 24 threads.
>in f1.c:
>#include "vxWorks.h"
>#include "semLib.h"
>#include "taskLib.h"
>#include "vxLib.h"
>...
>SEM_ID mysemid;
>void f1(void)
>{
>   mysemid=semMcreate(SEM_Q_PRIORITY| SEM_INVERSION_SAFE
>    | SEM_DELETE_SAFE);
>   int i;
>   for(i=1;i<25;i++){
>    taskSpawn(..f2..)
>   }
>}
>Then in another file f2.c,for 24 threads share one i2c bus,so if one
>thread want to read or write using i2c bus,it should take the sem first,
>so in f2.c:
>#include "semLib.h"
>#include "mousse.h"
>
>extern SEM_ID zxjSemId;
>void f2(short int port)
>{
>   semTake(mysemid,WAITFOREVER);
>   ... /* i2c read or write function */
>   semGive(mysemid);
>}
>I am puzzled that when I compile the code,it output following errors:
>cc1.exe: warnings being treated as errors
>In file included from c:/Tornado2/target/h/arch/ppc/archPpc.h:130,
>                 from c:/Tornado2/target/h/types/vxArch.h:84,
>                 from c:/Tornado2/target/h/vxWorks.h:170,
>                 from c:/Tornado2/target/h/semLib.h:41,
>                 in f2.c:13
>c:/Tornado2/target/h/arch/ppc/toolPpc.h:555: warning: structure defined
>inside p
>arms
>c:/Tornado2/target/h/arch/ppc/toolPpc.h:555: storage class specified for
>paramet
>er `__gnuc_va_list'
>c:/Tornado2/target/h/arch/ppc/toolPpc.h:568: warning: structure defined
>inside p
>arms
>c:/Tornado2/target/h/arch/ppc/toolPpc.h:568: storage class specified for
>paramet
>er `__va_regsave_t'
>... There are a large number of this kind of errors,
>I don't know what's wrong,and when there is only one thread using i2c,it's
>ok.
>hoping help!!!
>
>
>
>
>
>
>
>
>
>
>
>
>
> -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web 
- -----
>  http://newsone.net/ -- Free reading and anonymous posting to 60,000+
groups
>   NewsOne.Net prohibits users from posting spam.  If this or other posts
>made through NewsOne.Net violate posting guidelines, email abuse@newsone.net

 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts
made through NewsOne.Net violate posting guidelines, email abuse@newsone.net

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Wind Web Server File Uploads
Date: 16 Aug 2002 03:22:28 -0700
From: lchamberlain@pgaero.co.uk (Laura Chamberlain)
Organization: http://groups.google.com/
Message-ID: <efdaef76.0208160222.541c0827@posting.google.com>
References: <efdaef76.0208150651.5988c5b7@posting.google.com> <3D5BDB5F.61B29529@notifier-is.net>

David, 

Thanks for your response, I couldn't see anything to help me in
httpUploadConfInit or httpconf.c but I have just found that the Wind
Web Server 2.0 patch1 includes the source for httpPostReqParse which
was doing an automatic upload of the file, I have removed this upload
and my custom upload RPM is now working fine.

Thanks for your help

Laura

david lindauer <dlindauer@notifier-is.net> wrote in message news:<3D5BDB5F.61B29529@notifier-is.net>...
> I don't know internals well enough to know the details of how to upload,
> but it seems like you ought to be able to do *something* by changing the
> access RPM.  I don't know what the difference in our version of wind web
> server but mine has an httpUploadConfInit followed by RPM configuration
> for it in httpconf.c.  (I would assume that this actually defines the
> upload process rather than the end of the upload process, but maybe I am
> wrong).
> 
> But since then they may have moved this functionality to the
> configlettes.
> ( see the directory \tornado\target\config\comps\src\net\http for
> example)
> 
> David
> 
> Laura Chamberlain wrote:
> 
> > I am trying to upgrade from the Beta version of wws 2 to the released
> > version but I can't get file uploads to work as I want.
> >
> > I have a custom RPM which uploads a binary file to a temporary area,
> > checks it's valid and then programs it to flash.
> >
> > What now happens is the file is uploaded to the location specified by
> > HTTP_POST_FILE_UPLOAD_PATH retaining the name specified in the upload
> > form. Once the whole file has been uploaded my RPM is then called.
> > This is no good because :-
> > 1. A file of any name can be uploaded - how does my RPM know what it
> > is called in order to process it and remove it if invalid
> > 2. I want to give the user feedback as the file is uploaded (it is
> > >1Mb and takes a while).
> >
> > How can I stop the file being automatically uploaded so my RPM can do
> > it (as it did before)?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: compiler error
Date: Sat, 17 Aug 2002 17:54:39 +0800
From: "carria" <carriazhong@163.com>
Organization: power
Message-ID: <ajl6b1$hol$1@debian.bentium.com>
References: <ajihd9$svv$1@news.netmar.com> <ajihrl$tcl$1@news.netmar.com> <3D5D238B.D9EF4083@lmco.com>
Reply-To: "carria" <carriazhong@163.com>

Thank you for your reply, after modifying the code,
it then output less errors:
fb_6010.c: In function `eq_write':
fb_6010.c:23: storage class specified for parameter `mySemId'
fb_6010.c:25: storage class specified for parameter `i2c_read'
fb_6010.c:26: storage class specified for parameter `i2c_write'
fb_6010.c:39: syntax error before `{'
make[4]: *** [fb_6010.o] Error 0x1
make[3]: *** [i2c] Error 0x2
make[2]: *** [drv] Error 0x2
make[1]: *** [all] Error 0x2
make: *** [bcm.mousse] Error 0x2
but I have declare the mySemId in f1.c:
...
SEM_ID mySemId;
...
f1(){
mySemId=semMCreate (  SEM_Q_PRIORITY
    | SEM_INVERSION_SAFE
    | SEM_DELETE_SAFE);
...}
and in other file I have defined the i2c_read and i2c_write.
hoping help

---------------------------

Newsgroups: comp.os.vxworks
Subject: Wind Web Server - httpBlockPut
Date: 16 Aug 2002 04:56:21 -0700
From: lchamberlain@pgaero.co.uk (Laura Chamberlain)
Organization: http://groups.google.com/
Message-ID: <efdaef76.0208160356.3b1636dc@posting.google.com>

I am using a custom RPM to compile data from several places and send
to the user as a single file, up to 40Mb in total, this is sent using
httpBlockPut in blocks of 1024 - similar to the httpRpmDownload
function in  Tornado\target\unsupported\http\rpm\httpRpmUpload.c.

The first problem is sometimes the httpBlockPut function fails
(returns ERROR), resulting in an incomplete download - using internet
explorer you don't receive an error just a small file.

The second problem I have found while testing the first - after an
hour or so of repeatedly downloading data the target stops responding
and there is no debug output to help me determine why.

Can anyone help?

---------------------------

Newsgroups: comp.os.vxworks
Subject: tffs question
Date: Fri, 16 Aug 2002 12:12:54 GMT
From: "Kris" <REMOVEcom.hotmail@kris_takacsREMOVE>
Organization: Magma Communications Ltd.
Message-ID: <a%579.8207$V21.158797@news>

 Hello,
 I was wondering if the following commands done through the shell should
cause loss of memory in VxWorks?

 ->fopen

- ->fprintf

- ->fclose

 We notice that these commands show memory loss through memShow.

Thanks for your help,

Kris

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: IP_MAX_UNITs on custom built simulator
Date: Fri, 16 Aug 2002 12:24:32 GMT
From: "drdiags" <drdiags@attbi.com>
Organization: AT&T Broadband
Message-ID: <4a679.50689$Zl2.11289@sccrnsc02>
References: <290f4d3c.0208140254.5c545a64@posting.google.com>

Rao,

    You can also change this value in the Tornado IDE, if you are using the
project facility to build you simulator kernel. Right clicking on the
"network components" and checking properties will allow you
to change the IP_MAX_UNITS value.

"Rao R R" <ravurirr@hotmail.com> wrote in message
news:290f4d3c.0208140254.5c545a64@posting.google.com...
> Hi
>  I tried to implement a template NPT style driver on Custorm Simulator
> BSP.I could add the driver through END_DEV object table and could load
> the device through muxDevLoad. When I used ipAttach(0,"tmp"), os asked
> me to increase the IP_MAX_UNITS. I checked the configNet.h in
> <install_dir>/target\config/simpc/configNet.h. But there is no
> IP_MAX_UNITS defined.
>    I tried defining one like
> #ifndef IP_MAX_UNITS
> #define IP_MAX_UNITS 5
> #endif
>
> It still gives the same error saying increase IP_MAX_UNITS.
> Any ideas how can I do this.
>
> thanks in advance
> Rao

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Sun Aug 18 04:03:12 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Sun Aug 18 04:03:14 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Sun Aug 18 04:03:08 PDT 2002

        Subject: Re: Wind Web Server - httpBlockPut
        Subject: Re: dosFs hangs
        Subject: Interrupt Stack in PPC
        Subject: Re: tffs question
        Subject: Re: compiler error
        Subject: Re: routeAdd failed??
        Subject: Re: ll() on /tgtsvr broken
        Subject: Re: compiler error
        Subject: ll() on /tgtsvr broken
        Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
        Subject: Re: telnet problem
        Subject: Re: Network stack
        Subject: Re: attaching symbol table in a bin file
        Subject: Re: Timing Analysis .. help ...
        Subject: Strange files appearing on the hard drive
        Subject: Re: new compiler win2k host/x86 target?
        Subject: porting vxworks to i386ex custom board
        Subject: Re: mbx860 BSP / 82558 driver problem
        Subject: Re: Swap between target Shell and MyShell

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Wind Web Server - httpBlockPut
Date: Fri, 16 Aug 2002 12:42:10 GMT
From: "drdiags" <drdiags@attbi.com>
Organization: AT&T Broadband
Message-ID: <Cq679.55414$me6.7125@sccrnsc01>
References: <efdaef76.0208160356.3b1636dc@posting.google.com>

Hello Laura,

    Not sure I can help, but is it possible that you are running out of
network
resources, i.e. #file descriptors are maxed out. Are the transfers done
using
UDP or TCP (I don't have the product installed)? I would run the various
network debugging tools from the target shell:

    inetstatShow
    mbufShow
    netStackSysPoolShow
    netStackDataPoolShow
    endPoolShow "interface name" <<-- Look on vxWorks FAQ for utilities.c
                                                            for this
routine.
    iosFdShow
    i
    others that I cannot think of

   HTH.

"Laura Chamberlain" <lchamberlain@pgaero.co.uk> wrote in message
news:efdaef76.0208160356.3b1636dc@posting.google.com...
> I am using a custom RPM to compile data from several places and send
> to the user as a single file, up to 40Mb in total, this is sent using
> httpBlockPut in blocks of 1024 - similar to the httpRpmDownload
> function in  Tornado\target\unsupported\http\rpm\httpRpmUpload.c.
>
> The first problem is sometimes the httpBlockPut function fails
> (returns ERROR), resulting in an incomplete download - using internet
> explorer you don't receive an error just a small file.
>
> The second problem I have found while testing the first - after an
> hour or so of repeatedly downloading data the target stops responding
> and there is no debug output to help me determine why.
>
> Can anyone help?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: dosFs hangs
Date: Sun, 11 Aug 2002 21:52:51 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$yb3p0h$da9$1@lnews.actcom.co.il>
References: <1028232493.723625@azores.network-i.net> <1028234527.234545@azores.network-i.net>

First, I need to point out that the problem you are experiencing is with the
NFS server module. If you delete the same tree structure on the target, e.g.
using the recursive delete function from usrFsLib, I am sure it will work
well.

If I remember well the architecture of the NFS server, I beleive that the
work around could be to insert a few milliseconds of delay into the loop of
delete operations on your client, or to increase the size of the file handle
cache in the NFS server.

Overall it does sound like an NFS server bug to me.

"Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com> wrote in
message news:1028234527.234545@azores.network-i.net...
> I also forgot to say that this output is printed in Linux before dosFs
> halts.
>
> rm: cannot remove `dosread964/100': Stale NFS file handle
> rm: cannot remove directory `dosread964': Directory not empty
> rm: cannot remove `dosread977/100': Stale NFS file handle
> rm: cannot remove directory `dosread977': Directory not empty
>
> Also, if I look at the network traffic with a network sniffer, it shows
that
> the Linux just keeps retrying an NFS ATTRIB command forever and the
vxworks
> server is not replying.
>
> This must be the last addition!...
>
> Dimitris
>
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Interrupt Stack in PPC
Date: 16 Aug 2002 06:21:13 -0700
From: ahenric@ccii.co.za (Arne)
Organization: http://groups.google.com/
Message-ID: <e74abcbf.0208160521.6aa324bb@posting.google.com>

Hi,

does the PPC support the use of the same interrupt stack for all
ISR's? Or do the ISR's make use of the stack of the interrupted task?
Where does one set the size of the interrupt stack? Is that the
variable ISR_STACK_SIZE in configAll.h?

Thanks
Arne

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: tffs question
Date: Fri, 16 Aug 2002 15:18:58 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$jfux0h$r7o$1@lnews.actcom.co.il>
References: <a%579.8207$V21.158797@news>

Since both fopen() and fprintf() would use a string argument, simply using a
literal string in the Shell, would allocate memory for each of these
strings, which will never be released, but there is an alternative, allocate
the string before measuring memory use, and then call the functions, e.g.:

    filename = "/device/file.txt"
    fopt = "w+"
    fmtstring = "number %d\n"
    fptr = 0
    memShow
    # take note of memory used
    fptr = fopen(filename, fopt)
    fprintf( fptr, fmt, 333)
    fclose (fptr)
    memShow
    # compare these results to the previous one

If the above sequence still shows lost memory, then you may begin to suspect
the stdio library of fowl play.

"Kris" <REMOVEcom.hotmail@kris_takacsREMOVE> wrote in message
news:a%579.8207$V21.158797@news...
> Hello,
>  I was wondering if the following commands done through the shell should
> cause loss of memory in VxWorks?
>
>  ->fopen
>
> ->fprintf
>
> ->fclose
>
>  We notice that these commands show memory loss through memShow.
>
>
>
> Thanks for your help,
>
> Kris
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: compiler error
Date: Sat, 17 Aug 2002 09:25:40 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D5E4ED4.B450507C@bellsouth.net>
References: <ajihd9$svv$1@news.netmar.com> <ajihrl$tcl$1@news.netmar.com> <3D5D238B.D9EF4083@lmco.com> <ajl6b1$hol$1@debian.bentium.com>

carria wrote:

> Thank you for your reply, after modifying the code,
> it then output less errors:
> fb_6010.c: In function `eq_write':
> fb_6010.c:23: storage class specified for parameter `mySemId'
> fb_6010.c:25: storage class specified for parameter `i2c_read'
> fb_6010.c:26: storage class specified for parameter `i2c_write'
> fb_6010.c:39: syntax error before `{'
> make[4]: *** [fb_6010.o] Error 0x1
> make[3]: *** [i2c] Error 0x2
> make[2]: *** [drv] Error 0x2
> make[1]: *** [all] Error 0x2
> make: *** [bcm.mousse] Error 0x2
> but I have declare the mySemId in f1.c:
> ...
> SEM_ID mySemId;
> ...
> f1(){
> mySemId=semMCreate (  SEM_Q_PRIORITY
>     | SEM_INVERSION_SAFE
>     | SEM_DELETE_SAFE);
> ...}
> and in other file I have defined the i2c_read and i2c_write.
> hoping help

I can't tell from what you posted, but the msg indicates that the
compiler is seeing something like:

fname( int mySemId, ...

I suspect that you have a mismatch in { } somwhere above the
line where the error was detected.  If you are familiar with the
vi editor, it has a function that lets you check which barckets
match with which.  The fact that the compiler says storage class
declared _not_ undeclared for _parameter_ MySemId, and goes
on to complain about a syntax error before a { suggests a mismatch
in brackets, #if-type stuff, or something similar.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: routeAdd failed??
Date: 12 Aug 2002 18:39:19 -0700
From: rover2@163.com (rover)
Organization: http://groups.google.com/
Message-ID: <7f29c2ad.0208121739.1f8bc52f@posting.google.com>
References: <7f29c2ad.0208100038.2974b21c@posting.google.com> <newscache$77fq0h$lrb$1@lnews.actcom.co.il>

sorry,I forget to tell you they(pc and target) connect directly(no router).

thanks.

"Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM> wrote in message news:<newscache$77fq0h$lrb$1@lnews.actcom.co.il>...
> The reason for the first routeAdd to fail is that you already have a route
> to 192.168.144.0/24 when you attach the ethernet interface, and VxWorks
> network stack does not allow multiple (aka alternative) routes to the same
> destination network.
> 
> Do you REALLY want all your communications to including ones on the local
> segment 192.168.144.xxx to go via the default gateway ?
> 
> The second form of routeAdd will cause all traffic outside the
> 192.168.144.xxx segment to go via the router and the local traffic to go
> directly over the Ethernet segment.
> 
> regarding FTP, you need to provide more details, i.e. what is the role of
> VxWorks (client or server) what is the peer OS, what file system is used (if
> any) etc. FTP is just a protocol and there is so many things one can do with
> it ...!
> 
> "rover" <rover2@163.com> wrote in message
> news:7f29c2ad.0208100038.2974b21c@posting.google.com...
> > Hi,all
> >
> > I have two problem:
> >
> > 1.I have a target with IP is 192.168.144.2,getway is 192.168.144.1.
> >   I have blow:
> >
> >   routeAdd("192.168.144.0","192.168.144.1");
> >
> >   the function return ERROR,replace it with
> >
> >   routeAdd("0",,"192.168.144.1");
> >
> >   it return OK,why?
> >
> > 2.I transfer files using ftp,at begin it's speed is about 100k/s,but
> > at end it down to about 20k/s gradually,why?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: ll() on /tgtsvr broken
Date: Sat, 17 Aug 2002 14:07:42 GMT
From: Pete Flugstad <pete_flugstad@nospam.icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <3D5E58AE.4050309@nospam.icon-labs.com>
References: <dje79.58892$me6.7555@sccrnsc01> <newscache$y2dz0h$8n1$1@lnews.actcom.co.il>

Leonid Rosenboim wrote:
> Well, since you got source code for usrLib.c (or usrFsLib.c) that is the
> implementation of both ls() and ll(), you could just debug this yourself.

Sorry, I didn't realize I had the source to these functions.  DOH!

> Anyway, "ls" before actually trying to access a device, checks for a special
> hook, which was created for netDrv, which lists file in a special way by th
> enetDrv itself. If the hook is discovered to work, "ls" will not try to
> opendir() etc.

Both ls and ll call dirList, which calls the "hook" _func_netLsByName.
That doesn't explain why ls works and ll does not?  Could netLsByName
be looking at the call stack to see how it's supposed to print out?

Also, obviously what I really want is a way to get this information
programmatically.  Do you know of any documenation on this, or a way
to go about it?

Thanks,
Pete Flugstad
Icon Labs

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: compiler error
Date: Fri, 16 Aug 2002 12:08:43 -0400
From: Joe Durusau <joseph.a.durusau@lmco.com>
Organization: Lockheed Martin Corporation
Message-ID: <3D5D238B.D9EF4083@lmco.com>
References: <ajihd9$svv$1@news.netmar.com> <ajihrl$tcl$1@news.netmar.com>

carriazhong@163.com wrote:
> 
> there are also these errors:
> c:/Tornado2/target/h/types/vxTypesOld.h:129: syntax error before `ushort_t'
> c:/Tornado2/target/h/types/vxTypesOld.h:131: syntax error before `*'
> c:/Tornado2/target/h/types/vxTypesOld.h:133: syntax error before > 
> In article <ajihd9$svv$1@news.netmar.com>, <serein@163.com> writes:
> >I use mpc8240 as the taget cpu,and vxworks5.4,
> >In my function f1 in f1.c,I init 24 threads via taskSpawn(),
> >and create a mutex semaphor to synchronize the 24 threads.
> >in f1.c:
> >#include "vxWorks.h"
> >#include "semLib.h"
> >#include "taskLib.h"
> >#include "vxLib.h"
> >...
> >SEM_ID mysemid;
> >void f1(void)
> >{
> >   mysemid=semMcreate(SEM_Q_PRIORITY| SEM_INVERSION_SAFE
> >    | SEM_DELETE_SAFE);
> >   int i;
> >   for(i=1;i<25;i++){
> >    taskSpawn(..f2..)
> >   }
> >}
> >Then in another file f2.c,for 24 threads share one i2c bus,so if one
> >thread want to read or write using i2c bus,it should take the sem first,
> >so in f2.c:
> >#include "semLib.h"
> >#include "mousse.h"
> >
> >extern SEM_ID zxjSemId;
> >void f2(short int port)
> >{
> >   semTake(mysemid,WAITFOREVER);
> >   ... /* i2c read or write function */
> >   semGive(mysemid);
> >}
{{big snip}}

The only times I have encountered this kind of error was
when I got things out of seq, i.e.

/* beginning of file */
int x;
#include <vxWorks.h>
#include <everything else>
...

instead of ...

/* beginning of file */
#include <vxWorks.h>
#include <everything else>
int x;
...

I can't tell from the posts whether this is your 
problem, but it's something to check...

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: ll() on /tgtsvr broken
Date: Fri, 16 Aug 2002 21:40:25 GMT
From: Pete Flugstad <pete_flugstad@nospam.icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <dje79.58892$me6.7555@sccrnsc01>

Looks like running ls on a /tgtsvr based system works OK, but
ll() (long listing) does not?  It goes into an endless loop
printing out the "." directory entry.

This is bizarre, as they both use opendir and then readdir - ll
just tries to do a stat or some such on each filename it finds
to fill out the extra info.  What's ls() doing that makes it
work properly on "/tgtsvr" based directories?

Anyone know what's going on?

Thanks,
Pete Flugstad
Icon Labs

PS: as a test, the code below works fine on something like "/fd0",
     but as with ll, loops endlessly on "/tgtsvr" (modulo the count
     check which I added to avoid locking up) even through it's not
     doing any kind of stat.  What does ls do that let's it work
     properly on "/tgtsvr" based dirs?

int dor( char *dirname )
{
   struct dirent *dirPtr;
   int count = 0;

   DIR *aDir = opendir( dirname );
   if ( !aDir )
   {
     printf( "do_readdir - unable to open '%s' directory, error: '%s'\n",
             dirname, strerror(errno) );
     return -1;
   }

   while ( count < 50 )
   {
     dirPtr = readdir( aDir );
     if ( !dirPtr )
       break;

     printf( "dir entry: '%s'\n",  dirPtr->d_name );
     count++;
   }

   closedir( aDir );

   printf( "after dir loop, count: %d\n", count );
   return 0;
}

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
Date: Sat, 17 Aug 2002 19:33:14 -0400
From: "Dan S." <dsteinman@starpower.net>
Message-ID: <ajmmmg$t1q$1@bob.news.rcn.net>
References: <21a3d7e1.0208162333.f5d4099@posting.google.com>

If my memory serves me correctly, Intel has a driver on their web site, and
source is included...

"du" <du.jianjun@zte.com.cn> wrote in message
news:21a3d7e1.0208162333.f5d4099@posting.google.com...
> I am using intel 82559er Ethernet controller,but my driver is changed
> from fei82557End.c,it does't work well,and the performance is bad.As
> you know the fei82557End.c make 82559 work in simplified mode,How to
> write the driver to make it work in  flexible mode?and how about its
> performance?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: telnet problem
Date: 13 Aug 2002 13:15:11 -0700
From: akiggins@celitesystems.com (andrew)
Organization: http://groups.google.com/
Message-ID: <2eced96.0208131215.1a01bd71@posting.google.com>
References: <ajaj18$npf@netnews.hinet.net>

Looks like your telnet daemon is not connected to anything, either
that
or the STD_IN is not being transfered from the shell correctly.
Jump to a shell from Tornado and see
a) whether the shell has been correctly transfered
and
b) whether your telnetd is still running.
Also you might want to get your FAE to give you the *unsupported*
multiple telnet server code, it's really good.
andrew

"eric" <lihao@accesssolutions.com.tw> wrote in message news:<ajaj18$npf@netnews.hinet.net>...
> sir,
>    I am want to have telnet server function.  But I include Telnet server in
> my project and use pc telnet.exe to remote login my targer server.  It is
> only show "->" and any command don't work.  May I loss any step or command?
> Please give me some advice.
> 
> Best Regards,
> 
> lihao
> 2002.08.13

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Network stack
Date: 17 Aug 2002 17:31:50 -0700
From: byxiao@public.cz.js.cn (Sheo Boyu)
Organization: http://groups.google.com/
Message-ID: <37ed9c54.0208171631.16562b85@posting.google.com>
References: <7d37276da8267eb350c5835b1a44c377.38592@mygate.mailgate.org> <MPG.17b445369e573f7298969a@news1.news.adelphia.net> <e229ec7e.0208051600.26d13ae9@posting.google.com> <37ed9c54.0208061522.c73f922@posting.google.com> <newscache$r63s0h$7ne$1@lnews.actcom.co.il>

"Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM> wrote in message news:<newscache$r63s0h$7ne$1@lnews.actcom.co.il>...
> I would have to disagree with Sheo.
> 
> There is nothing in the Wind microkernel architecture that would make a
> network stack slower then on Unix kernel. There are only a few isolated
> differences between the Wind and Unix implementations, and here they are:
> 
> 1. On Unix, input processing is performed directly from within the ISR, on
> VxWorks, most work is deferred to tNetTask, so that system engineers can
> prioritize their network processing wrt other RT activities by means of task
> priority settings.
> 2. Mutual exclusion on Unix is done by raising CPU interrupt mask (i.e.
> interrupt locking), while on VxWorks, since most work is deferred to a task
> level, there is a single Mutex semaphore for protection of the entire
> network stack. The driver still may use interrupt locking though.
> 
> These two differences do indeed incur some overhead, but this overhead is
> negligible when transmitting data in large packets, because this only adds
> per-packet overhead of a few microseconds or less.

I agree with you on this point, yes, problem related to those small
packet. In
our test, we see network throughput  goes up when the packet size 
increase. But in most application, we need small packet performance. 

> 
> So the reason for a VxWorks network to underperform a Unix counterpart is
> most probably an implementation issue - the VxWorks network stack is based
> on a rather old BSD code, while the Linux community has enhanced the code
> considerably over the recent years with the explosion of Internet use of
> Linux servers.
> 

It's interesting to hear this. In fact the paper I mentioned hold this
view,it's related
to network stack implementation.Sorry I use a wrong word 'theoritcal'.

> Also, the driver is many times the culprit of performance, as I have been
> able many times before ti incrase VxWorks network performance many fold by
> enhancing and optimizing the driver. As a side note, using the END API would
> definitely yield performance inferior to a BSD driver, (yet END has some
> benefits over BSD).
> Sadly, network performace has rarely been a priority for WindRiver
> development engineers, and performance testing of the network stack and the
> assorted drivers has been rather limitted.
> 
> - Leonid

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: attaching symbol table in a bin file
Date: 12 Aug 2002 17:04:05 -0700
From: arohb@cc.usu.edu (Aroh Barjatya)
Organization: http://groups.google.com/
Message-ID: <ecdec0b9.0208121604.4bd0bff8@posting.google.com>
References: <ecdec0b9.0208101215.2c264161@posting.google.com> <488e459a.0208111017.6929afb8@posting.google.com> <ecdec0b9.0208111819.586ff641@posting.google.com> <488e459a.0208120719.10e6a00f@posting.google.com>

John,

I know what you mean by 

> The make rules for its generation are not in the images that are
> not of the .st type.

I changed the make rules so that even "make vxWorks" does all that is
needed for making standalone images... meaning that I now have
"makeSymTbl symTbl.c" command in the rules for "make vxWorks".

This way I have all that needs to be "defined" (including
INCLUDE_STANDALONE_SYM_TBL) within config.h only...

but if you say so, I will go and try doing the way you suggested, even
though I doubt it will work.

Thanks
Aroh

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Timing Analysis .. help ...
Date: 12 Aug 2002 22:04:26 -0700
From: mridulgupta1@yahoo.com (Mridul Gupta)
Organization: http://groups.google.com/
Message-ID: <fef31d0c.0208122104.4ac40b7a@posting.google.com>
References: <fef31d0c.0208082158.5c30214e@posting.google.com> <3D544CA6.2000006@lvl7.com>

Hi Neil,

thanx for your valuable reply ... i am trying few things with clockLib
... I have few queries ...

If i read clock time using clock_gettime just before and after the
code, will i be able to get approximate execution time ??

If I have a taskDelay(1) in my code, will this time it be included in
the execution time ??

How do I time a function having infinite loop using timex ??

what is the effect of sysClkRateSet() on timing calculation?? 

Thanx and Regards
Mridul

Neil Horman <nhorman@lvl7.com> wrote in message news:<3D544CA6.2000006@lvl7.com>...
> Mridul Gupta wrote:
> 
> > Hi All,
> > 
> > I am a newbie to VxWorks. I have written some C++ code for our
> > project. Now I want the timing analysis of that code. We are using
> > MPC860 processor. Processor documentation gives the details about
> > assembly instruction execution timings. Where can I find C/C++
> > instruction execution timings.
> > 
> > Thanx and Best Regards
> > Mridul
> > 
> 
> I'm afraid that there is no such thing.  C and C++ are for the most part 
> non-deterministic in the number of assembly instructions any given line of C 
> code will transform into.  The only way you can do reasonable timing analysis of 
> your C/C++ code is to get a tool to measure it.  Depending on the application 
> and platform, some people will have their software trigger pin state changes 
> which can be monitored with an o-scope, while others buy software analysis 
> packages.  At a base starting point VxWorks has a native api call called timeX 
> which is simmilar to the standard unix time utility.  It estimates the execution 
> time of any one function.
> Hope that helps
> Neil

---------------------------

Newsgroups: comp.os.vxworks
Subject: Strange files appearing on the hard drive
Date: 13 Aug 2002 09:48:47 -0700
From: agraham@openglobe.net (Aaron Graham)
Organization: http://groups.google.com/
Message-ID: <95ebbe31.0208130848.27aead6f@posting.google.com>

Using DosFs2, I have been noticing quite often that I will get strange
files appearing on my hard drive.  Here's what they look like when I
do a "ll" from the vxWorks shell:

- -rwxrwxrwx  1 0       0             2618 Aug 13 09:03 info.txt
?---------  0 0       0                0 Jan  1  1970 AA

The file is usually called "AA", "A", or "Br", and cannot be read,
written, or removed, and running chkdsk does not find the problem.  It
causes lots of problems while using file utilties in our application,
simply because it shows up, but can't be accessed.  The only way to
fix it is to re-format the partition and re-install the software.

I would assume that something has gone wrong with the directory
structure.  Probably yanked the plug on the machine while it was doing
some sort of critical file access.  RTOS...reliable
filesystem...?...nah, guess not.

Let me know if you've seen it too.
Aaron

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: new compiler win2k host/x86 target?
Date: 17 Aug 2002 20:57:55 -0700
From: bill@qswtools.com (Bill)
Organization: http://groups.google.com/
Message-ID: <f7372f92.0208171957.598e26e9@posting.google.com>
References: <slrnalnu9o.qki.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu>

Denis Perelyubskiy <denis_newsREMOVE-TO-REPLY@hotmail.com> wrote in message news:<slrnalnu9o.qki.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu>...

Our FAE says that a new X86 compiler coming in the Tornado 2.2 release.
I believe that the version is 2.96+.  I don't know when it's due out,
but it should be Real Soon Now.

> hello,
> 
> we are using the following compiler version:
> 
>    cygnus-2.7.2-960126 egcs-971225 tornado 2.0 
>    (includes WRS patch 27834)
> 
> ... which is giving us lots of problems...
> 
> there was a rumor that sometime in august WRS was going to
> release a new win2k-host/x86-target compiler, based on
> 2.96.x or something.
> 
> has anyone heard anything like that? is it out? if not, when
> is it supposed to be out?
> 
> denis

---------------------------

Newsgroups: comp.os.vxworks
Subject: porting vxworks to i386ex custom board
Date: 12 Aug 2002 05:07:41 -0700
From: jyothimshetty@yahoo.com (Jyothi M)
Organization: http://groups.google.com/
Message-ID: <e5135634.0208120407.567f1221@posting.google.com>

i am working on custom build i386ex board. i want to port vxworks on it.
my board has 2mb flash, 256kb ram, and 2serial ports.
 
how can i proced further.

regards.
Jyothi.M

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: mbx860 BSP / 82558 driver problem
Date: 12 Aug 2002 05:28:59 -0700
From: david.meadows@roke.co.uk (David Meadows)
Organization: http://groups.google.com/
Message-ID: <6d3e990b.0208120428.7ae64e38@posting.google.com>
References: <6d3e990b.0207220735.31de5ea0@posting.google.com> <0ts%8.111538$Wt3.98785@rwcrnsc53> <6d3e990b.0207250143.6addd1f@posting.google.com> <RpV09.149280$_51.97129@rwcrnsc52.ops.asp.att.net> <6d3e990b.0207310737.d3db9e9@posting.google.com> <rE429.16528$Ru5.8073@rwcrnsc52.ops.asp.att.net> <6d3e990b.0208070050.730c9f29@posting.google.com> <3D5106DE.639E416D@hotmail.com>

Thanks George,

This explains why the 557 card doesn't respond to the first IO access
after configuration.
I forgot that the address translation doesn't occur in the reverse
direction.
The problem is now resoloved.

Cheers,

David

Varndell Engineering <gvarndell@hotmail.com> wrote in message news:<3D5106DE.639E416D@hotmail.com>...
> David Meadows wrote:
> [snip]
> > After configuration I use the config addr and data reg (offset 0x500
> > and 0x504)
> > to examine the Ethernet card config space.
> > I see the following:
> > 
> > (0x00) 12298086 // Matches the EtherExpress Pro-100 compliant card I
> > have
> > (0x04) 02900007 // Card has not target or master aborted and is set
> > as a bus agent.
> > (0x10) c1000008 // Memory space base address
> 
> This is wrong. It should read back as 0x01000008.
> 
> > (0x14) 81020001 // IO space base address
> 
> This is also wrong. It should read 0x01020001.
> 
> > (0x18) c1100000 // Flash memory space base address
> 
> [more snip]
> 
> This doesn't matter.
> 
> When your BSP auto configures the PCI device, it is writing the
> full 32-bit CPU address into the BAR registers of the device and
> it shouldn't. From the CPU, 0x8102xxxx will map into a PCI I/O
> access using address 0x0102xxx but your device thinks it's only
> to respond to PCI I/O address 0x8102xxxx. See the problem?
> 
> Regards,
> George Varndell
> --
> Varndell Engineering, LLC
> Embedded Systems Expertise
> http://www.varndellengineering.com
> 
> 
> -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
>    http://www.newsfeed.com       The #1 Newsgroup Service in the World!
> -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Swap between target Shell and MyShell
Date: Mon, 12 Aug 2002 15:13:10 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$thfq0h$srb$1@lnews.actcom.co.il>
References: <5607ff2c.0208120052.411478e@posting.google.com>

Gabi,

Many people are developing their own CLI (command line interpreter) that is
supposed to respond to the serial console and/or Telnet by default, and many
also would like a means to allow technicians to "escape" into VxWorks target
shell for more sophisticated diagnostics. There is more then one way to
implement this, and I have seen different implementations, equally
effective.

One simple way to do this, is to start your CLI (aka myShell) on the serial
console by default, and when a special CLI command (or secret key storke) is
hit, call the Shell as a function (see reference manual on shellLib). The
Shell "exit" function will cause the Shell interpreter loop to terminate and
return to your CLI.

If this is the way you chose, you will need to handle what happens when
someone hits Ctrl-C, to avoid etering target Shell "too easily".

HTH/

"Gabi" <gabi@tdsoft.com> wrote in message
news:5607ff2c.0208120052.411478e@posting.google.com...
> Hi,
> What is the right way to swap between myShell and the VxWorks target
> shell (both ways).
>-> myShell - my private terminal shell, in other word
>-> my private implementation on local craft terminal shell.
> Gabi Segev Serusi
> gabi@tdSoft.com

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Mon Aug 19 04:03:23 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Mon Aug 19 04:03:26 PDT 2002
Subject: comp.os.vxworks newsdigest

Comp.Os.Vxworks Daily Digest    Mon Aug 19 04:03:18 PDT 2002

        Subject: Re: attaching symbol table in a bin file
        Subject: IfMaskSet problem
        Subject: Re: Ethernet Driver for the MPC8260 FEC ves CPM37 Errata
        Subject: ipAttach ipDetach memory leak problem
        Subject: Re: Ethernet Driver for the MPC8260 FEC ves CPM37 Errata
        Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
        Subject: Re: Unsupported FTP Server
        Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
        Subject: Tornado and directory hiearchy problem when building and size of an array (newbie questions)
        Subject: how to using TCP on  non blocking socket calls
        Subject: Alternative tornado user directory and project creation problem.
        Subject: Need to watch DTR status on a PPC
        Subject: Configureing PCI bus interface on IBM PPC405GP
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: Command-line compiler problems with Tornado 2.1/NT for MIPS
        Subject: Re: ipAttach ipDetach memory leak problem
        Subject: telnet
        Subject: Re: Changing a password / loginUserDelete() doesn't free memory
        Subject: Re: how to using TCP on  non blocking socket calls
        Subject: Re: Change IP on the fly - The correct way
        Subject: SingleStep Problem with Address Translation on the PPC 855T
        Subject: telnet problem
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: FTP transfer slowing down
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: Network stack
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: An old friend: Relocation value does not fit in 24 bits
        Subject: How realized message queue managment in VxWorks?
        Subject: Verify VxWorks integrity
        Subject: Re: ipAttach ipDetach memory leak problem
        Subject: Re: routeAdd failed??
        Subject: Re: taskLock()/taskUnlock() semantics
        Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
        Subject: help: problem during building
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
        Subject: for help about Tor install on Sun Solaris,thanks
        Subject: Re: can num change into character
        Subject: Re: Why msgQSend can be called by ISR?
        Subject: ata-dma on vxworks
        Subject: PPC-6750 Addressing Problem.
        Subject: Re: ata-dma on vxworks
        Subject: Re: kernelTimeSlice and double calculations
        Subject: Re: How to find out how long something has taken to execute
        Subject: Re: uninitilized interrupt
        Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
        Subject: Re: kernelTimeSlice and double calculations
        Subject: Re: Alternative tornado user directory and project creation problem.
        Subject: Re: Tornado and directory hiearchy problem when building and size of an 
        Subject: Re: Configureing PCI bus interface on IBM PPC405GP
        Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
        Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
        Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
        Subject: Re: Boot time

-------------------------------------------------------

Newsgroups: comp.os.vxworks
Subject: Re: attaching symbol table in a bin file
Date: 12 Aug 2002 08:19:37 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208120719.10e6a00f@posting.google.com>
References: <ecdec0b9.0208101215.2c264161@posting.google.com> <488e459a.0208111017.6929afb8@posting.google.com> <ecdec0b9.0208111819.586ff641@posting.google.com>

Hello,

Try adding the WDB components that you need to your config.h and
building the vxWorks.st image. You need to build the latter to get the
standalone symbol table generated in 5.4 (it is simpler in VxWorks
AE). The make rules for its generation are not in the images that are
not of the .st type.

You should see a message before the target shell banner that tells you
how many symbols were added to the symbol table if it is working
correctly. In your case, I suspect that this says that zero symbols
were added since you didn't build the.st image so no table was
generated during the build process.

> I still think that the elftobin utility removes all the symbols... 

It does remove the ELF symbols, but as I said, the VxWorks symbol
table is not initialised from this - it is initialised either from a
.sym file over the network or from a special symbol table built into
the image itself as data. Even when booted from a network VxWorks does
not have access to the ELF symbol table - it is not a loadable section
so the boot loader doesn't load it.
 
> Is it possible for me to burn an vxWorks.st_rom image in the
> flash....even if I dont remove the eeproms... I would then be doing

No, the _rom images are meant to be used without a bootrom. Just use
vxWorks.st and add back the WDB components that you need.

HTH,

John...

---------------------------

Newsgroups: comp.os.vxworks
Subject: IfMaskSet problem
Date: 12 Aug 2002 14:49:19 -0700
From: duesp@yahoo.com (Chak)
Organization: http://groups.google.com/
Message-ID: <cacb10a4.0208121349.412e552e@posting.google.com>

Hi,

I have PC 486 with 3COM 509. I am having trouble in setting mask.

Here is what i have done.

1) Loaded the device into the MUX with
   pCookie = muxDevLoad(...)
  
   status : success
2) Started the MUX with 
   muxDevStart(pCookie);
   status : success

3) I could see the device with pEnd = endFindByName(unitno being 0)
   device name = "elt"
   unit no     = 0

   status : success
4) muxIoCtl(pEnd, interface table)

   status : success  

5) attach the ip..
   ipAttach(unitno=0, device name="elt")
   status = success

from VxWorks shell, I can see the device with
- --> ifShow
    device elt unitno 0
    MAC address :....
    flags BROADCAST UP RUNNING

Now the actual problem starts
when i say ifMaskSet("elt0",0xffffff00), it returns me an error.
error no = 0x730008.

and subsequent calls fail as is expected for setting the ip address etc.

On the BOOT ROM.
inet on ethernet : 90.0.0.123:ffffff00

Any help is greatly appriciated.

Thanks and Regards
Chak

PS: I would appriciate if any one responds with CC to duesp@yahoo.com

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Ethernet Driver for the MPC8260 FEC ves CPM37 Errata
Date: 18 Aug 2002 06:42:50 -0700
From: gabi@tdsoft.com (Gabi)
Organization: http://groups.google.com/
Message-ID: <5607ff2c.0208180542.a651732@posting.google.com>
References: <5607ff2c.0208150702.31dff97e@posting.google.com> <ajgmhg$kmi$1@newsreader.mailgate.org>

"Dan Gold" <gold@ensemble.com> wrote in message news:<ajgmhg$kmi$1@newsreader.mailgate.org>...
> "Gabi" <gabi@tdsoft.com> wrote in message
> news:5607ff2c.0208150702.31dff97e@posting.google.com...
> > Hi,
> > I'm using the MPC8260 under VxWorks, and I wonder how you guys faces
> > the need to handle the Motorola Errata CPM37 which are relevant
> > directly to the MPC8260 FEC.
> 
> If you're using the real vxWorks 8260 BSP, it looks like they stop and then
> re-start the entire FCC in case of any transmit errors.  If you've done your
> own 8260 FCC driver, then you must handle it.  You only need to
> re-initialize the Tx side.  I.e. clear GFMR[ENT], clean up the TxBD list,
> re-init the Tx parameters, and issue INIT_TX.  If you get the errata list
> from the Mot web site, the errata describes what needs to be done.
> 
>   hth,
>    Dan Gold  dgold1@san.rr.com
What about busy condition?
Gabi

---------------------------

Newsgroups: comp.os.vxworks
Subject: ipAttach ipDetach memory leak problem
Date: 18 Aug 2002 06:49:38 -0700
From: gabi@tdsoft.com (Gabi)
Organization: http://groups.google.com/
Message-ID: <5607ff2c.0208180549.7ad53054@posting.google.com>

Hi
When I operate the following sequence from my code, NOT from shell: 
ipDetach (1,"fec"); 
ipAttach(1,"fec");
I notice in memShow of a memory leak (6-12 bytes) in each sequence. Do
I miss something?
tanks
Gabi

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Ethernet Driver for the MPC8260 FEC ves CPM37 Errata
Date: Sun, 18 Aug 2002 10:34:39 -0400
From: George Varndell <george@varndellengineering.com>
Organization: Posted Via Newsfeeds.com = SPEED+RETENTION+COMPLETION = http://www.newsfeeds.com
Message-ID: <3D5FB07F.D18B7020@varndellengineering.com>
References: <5607ff2c.0208150702.31dff97e@posting.google.com> <ajgmhg$kmi$1@newsreader.mailgate.org> <5607ff2c.0208180542.a651732@posting.google.com>

Gabi wrote:
> 
> "Dan Gold" <gold@ensemble.com> wrote in message news:<ajgmhg$kmi$1@newsreader.mailgate.org>...
> > "Gabi" <gabi@tdsoft.com> wrote in message
> > news:5607ff2c.0208150702.31dff97e@posting.google.com...
> > > Hi,
> > > I'm using the MPC8260 under VxWorks, and I wonder how you guys faces
> > > the need to handle the Motorola Errata CPM37 which are relevant
> > > directly to the MPC8260 FEC.
> >
> > If you're using the real vxWorks 8260 BSP, it looks like they stop and then
> > re-start the entire FCC in case of any transmit errors.  If you've done your
> > own 8260 FCC driver, then you must handle it.  You only need to
> > re-initialize the Tx side.  I.e. clear GFMR[ENT], clean up the TxBD list,
> > re-init the Tx parameters, and issue INIT_TX.  If you get the errata list
> > from the Mot web site, the errata describes what needs to be done.
> >
> >   hth,
> >    Dan Gold  dgold1@san.rr.com
> What about busy condition?
> Gabi

By 'busy condition', do you mean expiration of the collision retry
limit in half duplex? If so, Mot currently recommends a recovery
procedure as follows....

    1. Determine which BD is to be transmitted next and if necessary
       modify BDs.
    2. Modify TBPTR field in Parameter RAM to point to the next BD
       (if necessary).
    3. Restart Tx.

You could try setting the collision retry limit to a very high
value; thus reducing the probability of this error occurring.
You also have some control over how persistent the FCC will be
in response to collisions. However, the fact that you cannot
set the collision retry limit to infinity means that you cannot
reduce the probability of an excessive retry condition to zero;
which means you still need to handle it in your driver.

Regards,
George Varndell
- --
Varndell Engineering, LLC
Embedded Systems Expertise
http://www.varndellengineering.com

- -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
   http://www.newsfeed.com       The #1 Newsgroup Service in the World!
- -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
Date: 18 Aug 2002 08:48:14 -0700
From: gonozal@gmx.at (Toni Kurzberger)
Organization: http://groups.google.com/
Message-ID: <8400a733.0208180748.4816b548@posting.google.com>
References: <21a3d7e1.0208162333.f5d4099@posting.google.com> <ajmmmg$t1q$1@bob.news.rcn.net>

"Dan S." <dsteinman@starpower.net> wrote in message news:<ajmmmg$t1q$1@bob.news.rcn.net>...
> If my memory serves me correctly, Intel has a driver on their web site, and
> source is included...

There is a driver by INTEL, however this driver is only for x86 (and
IMHO only available as binary). It yields about the same performance
as the fei driver but seems to have some timing/blocking issues.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Unsupported FTP Server
Date: 18 Aug 2002 09:06:06 -0700
From: gonozal@gmx.at (Toni Kurzberger)
Organization: http://groups.google.com/
Message-ID: <8400a733.0208180806.650af9b9@posting.google.com>
References: <6tE79.75738$me6.10044@sccrnsc01>

"weddick" <weddick@attbi.com> wrote in message news:<6tE79.75738$me6.10044@sccrnsc01>...
> I notice in a past message a reference to an FTP server in the unsupported
> directory.  I found the file put would like help on how to go about building
> this into my BSP to replace the default server.

Basically, just adding the .c file to your project and compiling
should do it:
* add the file to your porject build
* do NOT select "FTP Server" in the project facility
* manually call the FTP Server codes init routine from usrAppInit

Since the dependencies are already sattisfied before linking against
the library, the linker will not pull the ftp server from the library
in.

- - toni

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
Date: Sun, 18 Aug 2002 17:43:30 +0100
From: Wade Oram <news@wtoram.co.uk>
Organization: None
Message-ID: <2lbXCnCy68X9EAA5@wtoram.co.uk>
References: <21a3d7e1.0208162333.f5d4099@posting.google.com>
 <ajmmmg$t1q$1@bob.news.rcn.net>
 <8400a733.0208180748.4816b548@posting.google.com>
Reply-To: Wade Oram <wade@wtoram.co.uk>

In message <8400a733.0208180748.4816b548@posting.google.com>, Toni 
Kurzberger <gonozal@gmx.at> writes
>"Dan S." <dsteinman@starpower.net> wrote in message 
>news:<ajmmmg$t1q$1@bob.news.rcn.net>...
>> If my memory serves me correctly, Intel has a driver on their web site, and
>> source is included...
>
>There is a driver by INTEL, however this driver is only for x86 (and
>IMHO only available as binary). It yields about the same performance
>as the fei driver but seems to have some timing/blocking issues.

Indeed. After advice from this list some 18-24 months back, I reverted 
to the standard FEI driver (with a little modification to the init 
routine to get it to accept the 82559 as a FEI. It has proved much more 
reliable than the Intel sources 82559 driver of that vintage (Of course 
its just possible that Intel may have updated their driver but somehow I 
doubt it).
- -- 
Wade Oram

---------------------------

Newsgroups: comp.os.vxworks
Subject: Tornado and directory hiearchy problem when building and size of an array (newbie questions)
Date: Sun, 18 Aug 2002 19:17:52 +0200
From: "jf hasson" <jfhasson@club-internet.fr>
Organization: Club-Internet / T-Online France
Message-ID: <3d5fd7dc$0$11799$7a628cd7@news.club-internet.fr>

Hi,

I am running tornado 2.0 on windows 2000 and I build a VxWorks including my
application. I have a project for which the .c and .h are in various
directories and subdirectories. I had trouble generating the correct
dependencies but finally got through it ... However, it seems some of the .o
files generated are located in the defaul directory while some others are in
the directory of the .c which is a problem when I want to link because only
the .o in the default directory seem to be found. Does anyone have a clue as
to what I could do besides manually moving the generated .o in the default
directory ?
Moreover, I have a .c containing a VERY BIG array of unsigned short declared
as global. I can not change this file. I get a warning about excess elements
in this array. Does that mean the output of the build will be wrong or that
it is just very big ? Is there a parameter to influence the maximum size of
an array ?
Thank you for the information.

J.F. Hasson

---------------------------

Newsgroups: comp.os.vxworks
Subject: how to using TCP on  non blocking socket calls
Date: 12 Aug 2002 18:29:57 -0700
From: shyang@netease.com (yang)
Organization: http://groups.google.com/
Message-ID: <8446174.0208121729.3ba5682a@posting.google.com>

I  want to poll several sockets in the same time with a poll() call
and don't want to be blocked on one socket.But I don't know how to
realize it?
Thanks

---------------------------

Newsgroups: comp.os.vxworks
Subject: Alternative tornado user directory and project creation problem.
Date: 18 Aug 2002 18:03:10 -0700
From: chkim@irts.co.kr (Changhwan Kim)
Organization: http://groups.google.com/
Message-ID: <d9fffbd9.0208181703.7e381dec@posting.google.com>

Hi.

I'm using Tornado2 on Solaris, and try to separate install directory
and user directory for complete(?) vxWorks set. (I don't want anyone
modify master vxWorks tree.)

I installed tornado on /user/tornado with user tornado. I made another
account test and home directory is /user/test.
I made symbolic links like follows,
/user/test/tornado/host                 -> /user/tornado/host
/user/test/tornado/docs                 -> /user/tornado/docs
/user/test/tornado/share                -> /user/tornado/share
/user/test/tornado/target/h             -> /user/tornado/target/h
/user/test/tornado/target/lib           -> /user/tornado/target/lib
/user/test/tornado/target/src           -> /user/tornado/target/src
/user/test/tornado/target/unsupported   ->
/user/tornado/target/unsupported
/user/test/tornado/target/config/all    ->
/user/tornado/target/config/all
Now, I working with test user, shell variables WIND_BASE is
"/user/test/tornado".
I copyed a sample ads860 BSP into
/user/test/tornado/target/config/ads860 and succeed to build it in
command line with make command. But I failed to create  project from
launch->project. as bootable image specifying BSP as 'ads860' with
error message

> ccppc: Warning: `-x c' after last input file has no effect
> ccppc: No input files

The detailed symptom is, project build process calls ccppc to generate
dependency just with "-E -P -xc" options without anyother options and
even source file. With command line make, it should be

> ccppc -B/user/test/tornado/host/sun4-solaris2/lib/gcc-lib/ -E -P -xc -M -E -
> I/h   -I. -I/user/test/tornado/target/config/all -
> I/user/test/tornado/target/h -I/user/test/tornado/target/src/config -
> I/user/test/tornado/target/src/drv -DCPU=PPC860   romInit.s \
> | sed -e "s:/user/test/tornado/target/config/all:\\$\(CONFIG_ALL\):g" \
>        -e "s:/user/test/tornado/target:\\$\(TGT_DIR\):g" \
>        -e "s:/user/test/tornado:\\$\(WIND_BASE\):g" >> depend.ads860

I don't know why this happens. Project build process using different
procedure with command line make and their rules?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Need to watch DTR status on a PPC
Date: 13 Aug 2002 13:24:37 -0700
From: akiggins@celitesystems.com (andrew)
Organization: http://groups.google.com/
Message-ID: <2eced96.0208131224.42163659@posting.google.com>

Ladles and Jellyspoons,
does anyone have a clue how I can grab DTR on the serial port of a
PPC?

I need to figure out if someone is disconnecting from the serial port
and reset the shell (which is password protected) and cause them to be
logged out if they haven't explicitly.

Any pointers to docs or code are great.
thanks in advance
andrew

---------------------------

Newsgroups: comp.os.vxworks
Subject: Configureing PCI bus interface on IBM PPC405GP
Date: Mon, 19 Aug 2002 01:15:53 GMT
From: inoue <zenn67@yahoo.co.jp>
Organization: @Home Network
Message-ID: <3D604756.F7E4B15B@yahoo.co.jp>

Hi,

I'm configureing PCI bus interface on IBM PPC405GP walnut BSP to add
two DP83815 (National Semiconductor) LAN devices.

I configured PCI bus related definitions in config.h, made vxWorks
image, and ran it. I failed to load DP83815 LAN driver.

Then, I did pciDeviceShow and pciHeaderShow, following are the result.

Please help me how config.h should be configured.

I want to assign 1st DP83815 device to memory space 0x80200000, and
2nd to 0x80300000. Now I see only ffffffff when I dump that space.

Regards,
Inoue

- -> pciDeviceShow
Scanning function 0 of each PCI device on bus 0
Using configuration mechanism 0
bus       device    function  vendorID  deviceID  class
00000000  00000000  00000000  00001014  00000156  00060000
00000000  00000001  00000000  0000100b  00000020  00020000
00000000  00000002  00000000  0000100b  00000020  00020000
value = 0 = 0x0
- -> pciHeaderShow(0,0,0)
vendor ID =                   0x1014
device ID =                   0x0156
command register =            0x0006
status register =             0x2210
revision ID =                 0x01
class code =                  0x06
sub class code =              0x00
programming interface =       0x00
cache line =                  0x00
latency time =                0x07
header type =                 0x00
BIST =                        0x00
base address 0 =              0x00000000
base address 1 =              0x00000008
base address 2 =              0x00000000
base address 3 =              0x00000000
base address 4 =              0x00000000
base address 5 =              0x00000000
cardBus CIS pointer =         0x00000000
sub system vendor ID =        0x0000
sub system ID =               0x0000
expansion ROM base address =  0x00000000
interrupt line =              0x00
interrupt pin =               0x01
min Grant =                   0x00
max Latency =                 0x00
value = 0 = 0x0
- -> pciHeaderShow(0,0x00000001,0)
vendor ID =                   0x100b
device ID =                   0x0020
command register =            0x0006
status register =             0x0290
revision ID =                 0x00
class code =                  0x02
sub class code =              0x00
programming interface =       0x00
cache line =                  0x00
latency time =                0x00
header type =                 0x00
BIST =                        0x00
base address 0 =              0x80000001
base address 1 =              0x00000000
base address 2 =              0x00000000
base address 3 =              0x00000000
base address 4 =              0x00000000
base address 5 =              0x00000000
cardBus CIS pointer =         0x00000000
sub system vendor ID =        0xffff
sub system ID =               0xffff
expansion ROM base address =  0x00000000
interrupt line =              0x00
interrupt pin =               0x01
min Grant =                   0xff
max Latency =                 0xff
value = 0 = 0x0
- -> pciHeaderShow(0,0x00000002,0)
vendor ID =                   0x100b
device ID =                   0x0020
command register =            0x0000
status register =             0x0290
revision ID =                 0x00
class code =                  0x02
sub class code =              0x00
programming interface =       0x00
cache line =                  0x00
latency time =                0x00
header type =                 0x00
BIST =                        0x00
base address 0 =              0x00000001
base address 1 =              0x00000000
base address 2 =              0x00000000
base address 3 =              0x00000000
base address 4 =              0x00000000
base address 5 =              0x00000000
cardBus CIS pointer =         0x00000000
sub system vendor ID =        0xffff
sub system ID =               0xffff
expansion ROM base address =  0x00000000
interrupt line =              0x00
interrupt pin =               0x01
min Grant =                   0xff
max Latency =                 0xff
value = 0 = 0x0
- -> m 0x80200000,4
80200000:  ffffffff-
80200004:  ffffffff-
80200008:  ffffffff-
8020000c:  ffffffff-
80200010:  ffffffff-
80200014:  ffffffff-
80200018:  ffffffff-
8020001c:  ffffffff-.

value = 1 = 0x1

=== configuration in config.h ======================================

#    define PCI_SLV_MEM_LOCAL      LOCAL_MEM_LOCAL_ADRS
#    define PCI_SLV_MEM_BUS        0x00000000
#    define PCI_SLV_MEM_SIZE       0x20000000           /* 512MB */

#    define PTM1_LOCAL_ADRS        (0x00000000)
#    define PTM1_SIZE_ATTRIB       (0xF8000001) /* DMA Enable 128MB */

/*
 * Define a 512MB master window that allows the CPU to access PCI Memory
 * (with prefetch).  This window will be setup with the PMM0 registers
in the
 * bridge.
 */

#    define PCI_MSTR_MEM_LOCAL     PCI_MEMORY_START
#    define PCI_MSTR_MEM_BUS       (PCI_SLV_MEM_BUS + PCI_SLV_MEM_SIZE)
#    define PCI_MSTR_MEM_SIZE      0x20000000           /* 512MB */

#    define PMM0_LOCAL_ADRS        (0x80000000)
#    define PMM0_PCI_LOW_ADRS      (0x80000000)
#    define PMM0_PCI_HIGH_ADRS     (0x00000000)
#    define PMM0_PCI_MASK_ATTRIB   (0x98000001)

/*
 * Define a 512KB master window that allows the CPU to access PCI Memory
 * (non-prefetch). This window will be setup with the PMM1 registers in
 * the bridge.
 */

#    define PCI_MSTR_MEMIO_LOCAL   (0x00000000)
#    define PCI_MSTR_MEMIO_BUS     (0x00000000)
#    define PCI_MSTR_MEMIO_SIZE    0x20000000           /* 512MB */

#    define PMM1_LOCAL_ADRS        PCI_MSTR_MEMIO_LOCAL
#    define PMM1_PCI_LOW_ADRS      PCI_MSTR_MEMIO_BUS
#    define PMM1_PCI_HIGH_ADRS     0x00000000
#    define PMM1_PCI_MASK_ATTRIB   (0x00000000)

/*
 * Master window that allows CPU to access PCI I/O space.
 */

#    define PCI_MSTR_IO_LOCAL      PLB_PCI_IO_REGION_1_START
#    define PCI_MSTR_IO_BUS        0x00000000
#    define PCI_MSTR_IO_SIZE       PLB_PCI_IO_REGION_1_SIZE

/*
 * The third PCI master memory window can be used to address VGA type
devices
 * at PCI address 0x00000000.
 */

#    define PMM2_LOCAL_ADRS       (0x00000000)
#    define PMM2_PCI_LOW_ADRS     (0x00000000)
#    define PMM2_PCI_HIGH_ADRS    (0x00000000)
#    define PMM2_PCI_MASK_ATTRIB  (0x00000000)

/*
 * The second PCI slave window in the in the bridge are not being used.
 */

#    define PTM2_LOCAL_ADRS       PTM_UNUSED
#    define PTM2_SIZE_ATTRIB      PTM_UNUSED

/* PCI Latency Timer value */
#    define PCI_LAT_TIMER          0     /* ZZZZZZZZZZZZZ */
#    define INCLUDE_SHOW_ROUTINES        /* ZZZZZZZZZZZZZ */

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: 13 Aug 2002 23:26:10 -0700
From: hotJacky@163.net (Bryan)
Organization: http://groups.google.com/
Message-ID: <8f77d4a.0208132226.578b8509@posting.google.com>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <newscache$yi2s0h$xme$1@lnews.actcom.co.il>

Leonid Rosenboim,

Thank you very much!

I would design a type of queue which increase dyanmicly when queue is
full,it also support urgent priority message.When I accomplish it ,I
find it is almost the same as queue in VxWorks.So I have the idea to
replace the queue in Vxworks.But msgQSend can be called by ISR,my
QSend can not.I believe it is the most difficult.
It semms that I should do two things If I want to replace queue in
VxWorks:
1.Design the microcall alike VxWorks's
2.When cause a race,the qsend call must be move to another work
queue,just like logmsg.

Wait for your reply.
Thank you again!
Yours Bryan.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Command-line compiler problems with Tornado 2.1/NT for MIPS
Date: 13 Aug 2002 23:40:24 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208132240.56cdae8b@posting.google.com>
References: <3D59CBFE.1357.UVXWORKS@vert.synchro.net>

Hello,

You need to read the VxWorks Programmer's Guide and the Tornado
documentation. You are not using the tools in the correct way at all
for VxWorks development.

Unlike Windoze or unix, VxWorks does not use executables (which is
what c++mips was trying to generate for you since you gave it no
options). Instead, simple .o files are downloaded onto the target
system that is already running the VxWorks kernel. The loader that
performs that step will resolve the unresolved symbols with those
already in the kernel image.

So, the simplest way to compile your source would be:

  % ccmips -c test.c

(Note c++mips would be for C++ source, and is usually not necessary
since ccmips will automatically determine when a source file has a
valid C++ extension - for Windoze these are .c++, .cc and I believe
.cpp and .cxx - on Unix there is an additional one: .C - uppercase C).

The output of this is test.o which you then download to the target
system (look up the reference manual entry for ld and the section in
the docs about the WindShell). Once downloaded, you can just call the
entry point of your code and it should run. If when you download the
test.o file you get errors about unresolved symbols, then you will
need to rebuild the VxWorks kernel having adjusted the configAll.h or
config.h file(s) to add the required feature(s) to the kernel. Again,
read the documentation for information about this process.

Another important note: never use main() as your entry point function
name (or any other function for that matter). It has special
significance for the compiler, which will generate special code to
facilitate initialisation and termination of a process - something
that VxWorks does not have.

Finally, I would strongly recommend that you get some training if you
are going to be producing an embedded and/or real-time device with
VxWorks. There are a number of key differences from the programming
environment that you seem to be used to; finding those by trial and
error will be time consuming and very frustrating.

HTH,

John...

"Digital Man" <digital.man@remove-cqk-this.vert.synchro.net> wrote in message news:<3D59CBFE.1357.UVXWORKS@vert.synchro.net>...
> If I just try to build a simple "hello world" program with c++mips.exe (as an
> example), I get the following error:
> 
>         $ c++mips test.c
>         /Tornado/host/x86-win32/mips-wrs-vxworks/bin/ld: cannot find -lm
>         collect2: ld returned 1 exit status
> 
> The only libm.a file in my Tornado (2.1) installation is in the
> Tornado/host/x86-win32/i386-pc-mingsw32/lib directory (and it's just an empty
> archive anyway). I've tried creating an empty libm.a with armips in the lib
> search path, but then I get an access violation in the linker:
> 
>         $ c++mips test.c
>         (C:\Tornado\host\x86-win32\mips-wrs-vxworks\bin\ld.exe 1005) Exception:
> STATUS_ACCESS_VIOLATION
>         (C:\Tornado\host\x86-win32\mips-wrs-vxworks\bin\ld.exe 1005) Dumping
> stack trace to ld.exe.core
>         /Tornado/host/x86-win32/mips-wrs-vxworks/bin/nm: a.out: File truncated
>         collect2:
> C:/Tornado/host/x86-win32/bin/../lib/gcc-lib/mips-wrs-vxworks/gcc-
> 2.96/../../../../mips-wrs-vxworks/bin/nm ret
>         urned 1 exit status
> 
> I can link with --nostdlib, but then of course I get hundreds of unresolved
> symbols, so I'd like to avoid specifying every library name by hand if I don't
> have to. Do you have any idea why the C++ compiler is requiring libm.a and why
> it would not be present in the Tornado MIPS library directories?
> 
> Now, just as a test, I used the C compiler (ccmips) and got different results:
> 
> $ ccmips test.c
> /Tornado/host/x86-win32/mips-wrs-vxworks/bin/ld: cannot find -lgcc
> collect2: ld returned 1 exit status
> 
> Now, libgcc.a for MIPS I do have, so I just added that library search directory
> to the command-line:
> 
> $ ccmips test.c
> -L/tornado/host/x86-win32/lib/gcc-lib/mips-wrs-vxworks/gcc-2.96/MIPS32sfgnu
> /Tornado/host/x86-win32/mips-wrs-vxworks/bin/ld: warning: cannot find entry
> symbol _start; defaulting to 000000000040000
> 0
> c:\DOCUME~1\swindell\LOCALS~1\Temp\ccyWaaaa.o: In function `main':
> c:\DOCUME~1\swindell\LOCALS~1\Temp\ccyWaaaa.o(.text+0x14): undefined reference
> to `printf'
> collect2: ld returned 1 exit status
> 
> It now finds libgcc.a, but still has some unresolved symbols. Anyway, I *do*
> need to use the C++ compiler so that was just a test to see if would have any
> more success with the ccmips.exe.
> 
> Thanks for any help you can offer,
> 
>                                                  digital man
> --- Synchronet 3.10j-Win32 NewsLink 1.29
>  *  Vertrauen - Fullerton, California - telnet://vert.synchro.net

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: ipAttach ipDetach memory leak problem
Date: 15 Aug 2002 00:22:10 -0700
From: gabi@tdsoft.com (Gabi)
Organization: http://groups.google.com/
Message-ID: <5607ff2c.0208142322.3f867628@posting.google.com>
References: <5607ff2c.0208140043.d278f90@posting.google.com> <Xns926A6F4FD288Cborkhuisagerecom@192.19.193.66>

Johan Borkhuis <JBorkhuis@proxim.com> wrote in message news:<Xns926A6F4FD288Cborkhuisagerecom@192.19.193.66>...
> gabi@tdsoft.com (Gabi) wrote:
> > When I operate the following sequence: 
> > ipDetach (1,"fec"); 
> > ipAttach(1,"fec");
> > And not from the shell, I notice in memShow of a memory leak (6-12
> > bytes) in each sequence. Do I miss something?
> 
> If you call this from the shell the string "fec" is declared somewhere in 
> memory. But it is not freed, because the shell does not know if it is still 
> in use.
> If youy want to avoid this you should create a string in memory (using 
> malloc) and pass this string to these functions and free this agter you are 
> finished.
> 
> Kind regards,
>         Johan

And not from the shell, from my code!
Gabi

---------------------------

Newsgroups: comp.os.vxworks
Subject: telnet
Date: Tue, 13 Aug 2002 13:57:05 +0800
From: "eric" <lihao@accesssolutions.com.tw>
Organization: DCI HiNet
Message-ID: <aja727$ehs@netnews.hinet.net>

sir,
   I am want to have telnet server function.  But I include Telnet server in
my project and use pc telnet.exe to remote login my targer server.  It is
only show "->" and any command don't work.  May I loss any step or command?
Please give me some advice.

Best Regards,

lihao
2002.08.13

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Changing a password / loginUserDelete() doesn't free memory
Date: 13 Aug 2002 23:58:35 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208132258.1870f4de@posting.google.com>
References: <1029268579.10443.0.nnrp-01.d4e4b8d1@news.demon.co.uk>

Hello,

The password string will not be freed by the library. It is actually
built on top of symLib, and deleting a user just performs a
symRemove() on the user name (the password is stored as a pointer to
the string passed in loginUserAdd(), so freeing it might not be
possible since it might not be dynamically allocated memory).

So, to change the password you simply need to change the original
string passed to loginUserAdd(). Assuming that you can find this
string, changing the password should be simple.

HTH,

John...   

PS You could also try asking Wind River support or your local FAE for
the source file; then you could make whatever changes you like to the
password and username management.

"cecil" <cecil@hunmanby.demon.co.uk> wrote in message 
news:<1029268579.10443.0.nnrp-01.d4e4b8d1@news.demon.co.uk>...
> Does anybody know how to change a password without deleting the user and
> adding another?
> I'm not keen on using loginUserDelete() the loginUserAdd() because it doen't
> seem to free up the memory it's used.
> Anybody got any thoughts?
> Nigel

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: how to using TCP on  non blocking socket calls
Date: 12 Aug 2002 23:29:37 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0208122229.160b6c16@posting.google.com>
References: <8446174.0208121729.3ba5682a@posting.google.com>

Hello,

VxWorks does not have a poll() function, but you can use select() with
a zero second timout (*not* a NULL timeout since that implies never
timeout) to simply check for data on a number of sockets without
blocking.

Alternatively, just set all the sockets to non-blocking (FIONBIO
option) then the reads & writes will never block (not as easy to work
with though).

Finally, you could have a task for each socket. This works pretty well
in VxWorks as the tasks are very lightweight.

HTH,

John...

shyang@netease.com (yang) wrote in message news:<8446174.0208121729.3ba5682a@posting.google.com>...
> I  want to poll several sockets in the same time with a poll() call
> and don't want to be blocked on one socket.But I don't know how to
> realize it?
> Thanks

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Change IP on the fly - The correct way
Date: Wed, 14 Aug 2002 10:10:05 +0200
From: "Ofer Goren" <ofer_goren@iamba.com>
Organization: Verio
Message-ID: <newscache$fynt0h$t5h$1@lnews.actcom.co.il>
References: <5607ff2c.0208070402.1a390bf4@posting.google.com>

Hi
I don't understamnd why do I need to call ipAttach() again. the device was
alreay operational. I just updated it's IP. Am I missing something?

"Gabi" <gabi@tdsoft.com> wrote in message
news:5607ff2c.0208070402.1a390bf4@posting.google.com...
> Hi All,
> To all VxWorks users who looking for the right way to modify the IP
> address of there target on the fly. The correct way to do so is by
> using the following simple code I wrote,see below, any other
> suggestion I saw here only doing half of the job.
>
>
> #include <inetLib.h>
> #include <arpLib.h>
> #include <ipProto.h>
> #include <routeLib.h>
> #include <ifLib.h>
> #include <hostLib.h>
> extern STATUS ipDetach (int , char *);
>
> #define M_ASSERT_RET(Cond,String) if (!(Cond)){ \
>        printf("\r\nERROR IN FILE %s Line : %d -
> %s\r\n",__FILE__,__LINE__,(String)); return(ERROR);}
> #define M_ASSERT(Cond,String) if ((Cond)==FALSE) \
>        printf("\r\nERROR IN FILE %s Line : %d -
> %s\r\n",__FILE__,__LINE__,(String))
> static BOOL   V_Debug = FALSE;
> #define M_PRINT_DIBUG(String) if (V_Debug)
> printf("\r\n%s\r\n",(String));
> /***************************************************************
>  * Function Name: SYS_F_RenameDebugFlag
>  * Description: Rename debug flag control.
>  * Input: Flag [TRUE/FALSE]
>  * Output: None
>  * Return Value: None
>  ***************************************************************/
> void SYS_F_RenameDebugFlag (BOOL Flag)
> {
> V_Debug = Flag;
> }
> /***************************************************************
>  * Function Name: SYS_F_RenameIpAdrs
>  * Description: Rename the IP address on the fly.
>  * Input: pNetDevName(for ex' "fec"),DevNum(for ex'
> 1),newIpAddress,new subnet mask,GatwayIp
>  * Output: None
>  * Return Value: [OK/ERROR]
>  ***************************************************************/
> STATUS SYS_F_RenameIpAdrs (char *pNetDevName, int DevNum,char
> *pNewDevAddr,UINT32  SubNetMask,char *GatwayIp)
> {
>     char OldNetDevAddrs [INET_ADDR_LEN ];
>     char NetWorkAddrs [INET_ADDR_LEN ];
>     char ifname [20],targetName[20];
> STATUS hostOK;
> /* check parameters for validity */
> M_ASSERT_RET(pNetDevName[0]!=EOS&&pNewDevAddr[0]!=EOS,"Valid init
> parameters");
>
>
>     /* build interface name */
>     sprintf (ifname, "%s%d", pNetDevName, DevNum);
>
> /* get the old ipAddress & check if the interface attach */
> if (ifAddrGet(ifname,OldNetDevAddrs)==OK)
> {
>    M_PRINT_DIBUG("Interface exsist!\r\n");
>
>    if (V_Debug)
>    {
>          printf("Table before modify the IP!\r\n");
>       arpShow();
>   routeShow();
>   hostShow();
>    }
>    /* get the network address */
>    inet_netof_string(OldNetDevAddrs,NetWorkAddrs);
>    /* flush arp table */
>    arpFlush();
>    M_PRINT_DIBUG("Preform arpFlush!");
>    /* delete any relevant arp to NetDev */
>    arpDelete(OldNetDevAddrs);
>    M_PRINT_DIBUG("Preform arpDelete!");
>    /* delete the Host from the Host table */
>    if ((hostOK=hostGetByAddr(inet_addr(OldNetDevAddrs),targetName))==OK)
>       M_ASSERT(hostDelete(targetName,OldNetDevAddrs)==OK,"Fail to
> clear the host table");
>    M_PRINT_DIBUG("Preform hostDelete!");
>      /* detach the interface */
>    M_ASSERT_RET(ipDetach(DevNum,pNetDevName)==OK,"Fail to detach");
>    M_PRINT_DIBUG("Preform ipDetach!");
>    /* delete any route to the interface */
>    M_ASSERT(routeDelete(NetWorkAddrs,OldNetDevAddrs)!=ERROR,"Fail to
> operate routeDelete to NetWorkAddrs");
>    M_PRINT_DIBUG("Preform routeDelete");
>    /* delete any route to the interface */
>    M_ASSERT(ifRouteDelete(pNetDevName,DevNum)!=ERROR,"Fail to operate
> ifRouteDelete,an interface is not specified");
>    M_PRINT_DIBUG("Preform ifRouteDelete!");
>    /* check if gateway define */
>    if (strcmp(GatwayIp ,"0.0.0.0") && strcmp(GatwayIp ,""))
>    {
>        routeDelete("0.0.0.0", GatwayIp);
>    }
>    else
>    {
>    printf("Gatway not define!\r\n");
>    }
> }
> else
>    M_PRINT_DIBUG("Interface Not exsist!\r\n");
>
> /* attach the interface */
> M_ASSERT_RET(ipAttach(DevNum,pNetDevName)==OK,"Fail to attach to the
> interface");
>     M_PRINT_DIBUG("Preform ipAttach!");
> /* set the new IP address */
> M_ASSERT(ifMaskSet(ifname, SubNetMask)==OK,"Fail to set the
> subnetmask to the interface");
>
>     /* set inet address */
>     M_ASSERT(ifAddrSet(ifname, pNewDevAddr)==OK,"Fail to set inet
> address");
>
>     /* add host name to host table */
> if (hostOK==OK)
>      M_ASSERT(hostAdd (targetName, pNewDevAddr)==OK,"Fail to add the
> target name to host table");
>
>     if ((strcmp(GatwayIp ,"0.0.0.0")!=0) && (strcmp(GatwayIp ,"")!=0
> ))
>        M_ASSERT(routeNetAdd("0.0.0.0", GatwayIp)==OK,"Fail to route
> the GatewayIp 0.0.0.0");
> /* table after modify the IP */
> if (V_Debug)
> {
>       printf("Table after modify the IP!\r\n");
>    arpShow();
>    routeShow();
>    hostShow();
> }
> return(OK);
> }
>
> Any reject will be welcome.
> Enjoy
> Gabi Segev Serusi
> gabi@tdSoft.com

---------------------------

Newsgroups: comp.sys.powerpc.tech,comp.os.vxworks,comp.arch.embedded,comp.realtime,comp.os.linux.embedded
Subject: SingleStep Problem with Address Translation on the PPC 855T
Date: 13 Aug 2002 01:45:02 -0700
From: ralph@depping.com (ralph)
Organization: http://groups.google.com/
Message-ID: <3dcfdb29.0208130045.a5557a@posting.google.com>

Hi All,
we're finding that SingleStep with vision (7.7.2) using a VisionProbe
2 (all from Windriver) is having a problem with address translation on
the PPC 855T with address translation enabled.  All of our user
applications share the same logical address space.  When we context
switch we update the L1 table descriptors to point to the L2 tables
for the process that is about to execute.  We therefore use a non 1 to
1 (logical==physical) address mapping in order to allow each process
to be linked and executed at the same logical address.
The problem is that SingleStep doesn't seem to like address
translation that is not 1 to 1 and dies a horrible death (SingleStep
hangs) if we try to step through assembly that is accessed using such
addresses.
For example we load the address of the processes supervisor stack (at
logical address 0xC0F8_0000) to the stack pointer (r1, EABI standard)
and try to pull values off the stack into registers during a context
switch in order to restore the context of the process.  However as
soon as we try and access something from the stack in this case
SingleStep dies.

1.) Is this a known limitation of SingleStep i.e. it can't handle
address translation that is not 1 to 1, or is there something we are
possibly doing incorrectly?

2.) Are there any known solutions to this problem? (changing our user
processes to use a 1 to 1 mapping is NOT an option!)

3.) Windriver recommended trying some Linux facility CF MMU LINUX. 
Does anyone have any experience of this and how it works?

Any input is appreciated!

Ralph

---------------------------

Newsgroups: comp.os.vxworks
Subject: telnet problem
Date: Tue, 13 Aug 2002 17:21:04 +0800
From: "eric" <lihao@accesssolutions.com.tw>
Organization: DCI HiNet
Message-ID: <ajaj18$npf@netnews.hinet.net>

sir,
   I am want to have telnet server function.  But I include Telnet server in
my project and use pc telnet.exe to remote login my targer server.  It is
only show "->" and any command don't work.  May I loss any step or command?
Please give me some advice.

Best Regards,

lihao
2002.08.13

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: Tue, 13 Aug 2002 06:24:35 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D58DE63.CFB73EBF@bellsouth.net>
References: <8f77d4a.0208121740.796881b1@posting.google.com>

Bryan wrote:

> HI:
> I want to replace message queue management supplied by VxWorks
> with another type.msgQSend can be called by ISR,however,my send
> function calling the semTake function,So it can not be called by
> ISR.how can my send function can be called by ISR?Locking
> intterrupt?Now that VxWorks can,I think we also can do it.Would
> anyone can help me?Thanks!
>
> sincerely
> Bryan

No, it doesn't lock anything.  If the Msgque would block, it returns an
error,
and the que attempt fails.

The general rule remains that an ISR may never ever do anything
that would block.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: FTP transfer slowing down
Date: Tue, 13 Aug 2002 12:23:58 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$ub2s0h$nme$1@lnews.actcom.co.il>
References: <7f29c2ad.0208100038.2974b21c@posting.google.com> <newscache$77fq0h$lrb$1@lnews.actcom.co.il> <7f29c2ad.0208121735.501e6b97@posting.google.com>

Good.
Now how about measuring the file system performance with a similar sized
file locally ?

Sometimes when a Flash is used for file system, it could exhibit variable
write speed (due to initial availability of erased block, and later having
to wait for blocks to be erased before writing).

You could also mount a RAM disk, and try the same FTP process with the RAM
disk, this way you can diagnose the issue to either the network part (FTP,
net stack, ne2000 driver) or to the file system half (FAT16, hard disk etc.)

"rover" <rover2@163.com> wrote in message
news:7f29c2ad.0208121735.501e6b97@posting.google.com...
> Leonid Rosenboim:
>
>    thanks for your reply about routeadd,and I am see.
>
>    regarding FTP,VxWorks is as server,file system is FAT16,and eth is
ne2000;
> client is pc(win2000),windows commander ftp.
>
>    thanks in advance.
>
> "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM> wrote in message
news:<newscache$77fq0h$lrb$1@lnews.actcom.co.il>...
> > The reason for the first routeAdd to fail is that you already have a
route
> > to 192.168.144.0/24 when you attach the ethernet interface, and VxWorks
> > network stack does not allow multiple (aka alternative) routes to the
same
> > destination network.
> >
> > Do you REALLY want all your communications to including ones on the
local
> > segment 192.168.144.xxx to go via the default gateway ?
> >
> > The second form of routeAdd will cause all traffic outside the
> > 192.168.144.xxx segment to go via the router and the local traffic to go
> > directly over the Ethernet segment.
> >
> > regarding FTP, you need to provide more details, i.e. what is the role
of
> > VxWorks (client or server) what is the peer OS, what file system is used
(if
> > any) etc. FTP is just a protocol and there is so many things one can do
with
> > it ...!
> >
> > "rover" <rover2@163.com> wrote in message
> > news:7f29c2ad.0208100038.2974b21c@posting.google.com...
> > > Hi,all
> > >
> > > I have two problem:
> > >
> > > 1.I have a target with IP is 192.168.144.2,getway is 192.168.144.1.
> > >   I have blow:
> > >
> > >   routeAdd("192.168.144.0","192.168.144.1");
> > >
> > >   the function return ERROR,replace it with
> > >
> > >   routeAdd("0",,"192.168.144.1");
> > >
> > >   it return OK,why?
> > >
> > > 2.I transfer files using ftp,at begin it's speed is about 100k/s,but
> > > at end it down to about 20k/s gradually,why?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: Tue, 13 Aug 2002 12:28:14 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$yi2s0h$xme$1@lnews.actcom.co.il>
References: <8f77d4a.0208121740.796881b1@posting.google.com>

Bryan,

VXworks msgQSend does not use semaphores at all, it uses the undocumented
lower-level microkernel calls. Also, msgQSend() is only a stub function,
which calls a different implementation depending on the caller context (task
or ISR).

The proper solution for you would greatly depend on what you are trying to
acoumplish, and on the reason WHY you decided to replace msgQSend in the
first place.

Also note that rngLib functions can be called from ISR, and they dont use
semaphores or any other microkernel calls either, so if your requirements
can be met with rngLib, it's a better choise. Many internal VxWorks modules
use rngLib, for example excJobAdd(), netJobAdd(), logMsg(), ...

HTH

"Bryan" <hotJacky@163.net> wrote in message
news:8f77d4a.0208121740.796881b1@posting.google.com...
> HI:
> I want to replace message queue management supplied by VxWorks
> with another type.msgQSend can be called by ISR,however,my send
> function calling the semTake function,So it can not be called by
> ISR.how can my send function can be called by ISR?Locking
> intterrupt?Now that VxWorks can,I think we also can do it.Would
> anyone can help me?Thanks!
>
> sincerely
> Bryan

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Network stack
Date: Tue, 13 Aug 2002 12:42:31 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$r63s0h$7ne$1@lnews.actcom.co.il>
References: <7d37276da8267eb350c5835b1a44c377.38592@mygate.mailgate.org> <MPG.17b445369e573f7298969a@news1.news.adelphia.net> <e229ec7e.0208051600.26d13ae9@posting.google.com> <37ed9c54.0208061522.c73f922@posting.google.com>

I would have to disagree with Sheo.

There is nothing in the Wind microkernel architecture that would make a
network stack slower then on Unix kernel. There are only a few isolated
differences between the Wind and Unix implementations, and here they are:

1. On Unix, input processing is performed directly from within the ISR, on
VxWorks, most work is deferred to tNetTask, so that system engineers can
prioritize their network processing wrt other RT activities by means of task
priority settings.
2. Mutual exclusion on Unix is done by raising CPU interrupt mask (i.e.
interrupt locking), while on VxWorks, since most work is deferred to a task
level, there is a single Mutex semaphore for protection of the entire
network stack. The driver still may use interrupt locking though.

These two differences do indeed incur some overhead, but this overhead is
negligible when transmitting data in large packets, because this only adds
per-packet overhead of a few microseconds or less.

So the reason for a VxWorks network to underperform a Unix counterpart is
most probably an implementation issue - the VxWorks network stack is based
on a rather old BSD code, while the Linux community has enhanced the code
considerably over the recent years with the explosion of Internet use of
Linux servers.

Also, the driver is many times the culprit of performance, as I have been
able many times before ti incrase VxWorks network performance many fold by
enhancing and optimizing the driver. As a side note, using the END API would
definitely yield performance inferior to a BSD driver, (yet END has some
benefits over BSD).
Sadly, network performace has rarely been a priority for WindRiver
development engineers, and performance testing of the network stack and the
assorted drivers has been rather limitted.

- - Leonid

"Sheo Boyu" <byxiao@public.cz.js.cn> wrote in message
news:37ed9c54.0208061522.c73f922@posting.google.com...
> vxWorks feature a 6k or so microkernel,which theoretically has a poorer
> network performance than those macrokernel OS,such as Unix or Linux.
> This is due to the traditional network stack implimentation is based on
> macrokernel,not microkernel,WRS just port the BSD network stack to
> vxworks,not rewritten them as required for better performance on
microkernel.
> You can find some document on this issue from CMU following this link:
>
http://www-2.cs.cmu.edu/afs/cs/project/mach/public/www/doc/publications.html
> The article is Networking Performances for Microkernels.
> May this help!
>
> chrismooremobile@yahoo.com (Chris Moore) wrote in message
news:<e229ec7e.0208051600.26d13ae9@posting.google.com>...
> > Yeah, well my advice would be to swap to a different RTOS.
> >
> > We use VxWorks and its routing performance is pretty poor. There are a
> > few ways to improve things, you can write a mini routing layer, you
> > can use polled ethernet drivers rather than task switched into the
> > tNetTask stuff, or swap to another RTOS, or get an offloaded stack
> > processor.
> >
> > The embedded linux (ucLinux) has better performance, you get access to
> > all code etc etc and royalty free (from mem?)
> >
> > Gd Luck,
> >

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: Tue, 13 Aug 2002 13:06:22 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$ia4s0h$8qe$1@lnews.actcom.co.il>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <3D58DE63.CFB73EBF@bellsouth.net>

Joe,

msgQSend from ISR context does not block, which is correct, but it does need
to LOCK the resource, or rather detect if the resource (i.e. msgQ) is locked
at task level, in which case it can not proceed with the operation.
Proceeding might cause a race consition, so the call is DEFERRED to the
windWorkQ instead.

I beleive the original poster was rightfully concerned with LOCKING (not
BLOCKING).

"joe durusau" <durusau@bellsouth.net> wrote in message
news:3D58DE63.CFB73EBF@bellsouth.net...
>
>
> Bryan wrote:
>
> > HI:
> > I want to replace message queue management supplied by VxWorks
> > with another type.msgQSend can be called by ISR,however,my send
> > function calling the semTake function,So it can not be called by
> > ISR.how can my send function can be called by ISR?Locking
> > intterrupt?Now that VxWorks can,I think we also can do it.Would
> > anyone can help me?Thanks!
> >
> > sincerely
> > Bryan
>
> No, it doesn't lock anything.  If the Msgque would block, it returns an
> error,
> and the que attempt fails.
>
> The general rule remains that an ISR may never ever do anything
> that would block.
>
> Speaking only for myself,
>
> Joe Durusau
>
>
>

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: An old friend: Relocation value does not fit in 24 bits
Date: Wed, 14 Aug 2002 10:20:34 +0200
From: "Ofer Goren" <ofer_goren@iamba.com>
Organization: Verio
Message-ID: <newscache$tfot0h$x5h$1@lnews.actcom.co.il>
References: <e163d281.0208060155.2d1c68f7@posting.google.com>

"Robie" <zhouw@utstar.com> wrote in message
news:e163d281.0208060155.2d1c68f7@posting.google.com...
> Dear all,
>
> I encountered the question "Relocation value does not fit in 24 bits"
> some days ago. I'm using VxWorks 5.4 and Tornado 2.0. The system has
> 64M RAM, use MPC8240 CPU. The compiler is gcc.
> I searched your posts about this question. It seems that if
> LOCAL_MEM_SIZE defined to 32M, the question will happen. In our
> system, LOCAL_MEM_SIZE is defined to 64M, and all work well before. I
> added about 10k lines of codes to our system recently, but the error
> occurs when I download the object file to target server.
> I tried to use -mlongcall option to compile the source code, but it's
> useless. faint.
> Thanks & best regards.
>
> Robie
> UTStarcom Inc. China
> zhouw@utstar.com

Hi.

How did you compile (re-compile) the kernel???

---------------------------

Newsgroups: comp.os.vxworks
Subject: How realized message queue managment in VxWorks?
Date: 13 Aug 2002 04:56:06 -0700
From: hotJacky@163.net (Bryan)
Organization: http://groups.google.com/
Message-ID: <8f77d4a.0208130356.87a23bd@posting.google.com>

HI:
It seemed that every memssage only use additional eight bytes to
describe attributes about itself.I conclude it with my test code.The
additional bytes may be used to record message length and other
attributes.More,msgQSend can be called by ISR.It must use locking
intterupt or locking interrupt.May be It is most difficult.Anyone can
make more step to describe this discussion?Thank you!

Sincerely,
Bryan

---------------------------

Newsgroups: comp.os.vxworks
Subject: Verify VxWorks integrity
Date: Tue, 13 Aug 2002 14:12:32 +0200
From: Mikael Lundqvist <mikael.lundqvist@avionics.saab.se>
Organization: Saab Avionics
Message-ID: <3D58F7B0.6714D123@avionics.saab.se>

I have just about finished adapting VxWorks to our tailored hardware.
Now I would like to verify the correctness of my adaptation in some way.
This question arises after each adaptation to new hardware. Does anybody
now of a general approach of verifying the RTOS integrity. Is a test
suite a good approach?

Regards,
Mikael Lundqvist
Software Design Engineer

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: ipAttach ipDetach memory leak problem
Date: 18 Aug 2002 20:00:42 -0700
From: lisheng_811@yahoo.com.cn (Saledom)
Organization: http://groups.google.com/
Message-ID: <4a7f0d21.0208181900.64784a5c@posting.google.com>
References: <5607ff2c.0208180549.7ad53054@posting.google.com>

gabi@tdsoft.com (Gabi) wrote in message news:<5607ff2c.0208180549.7ad53054@posting.google.com>...
> Hi
> When I operate the following sequence from my code, NOT from shell: 
> ipDetach (1,"fec"); 
> ipAttach(1,"fec");
> I notice in memShow of a memory leak (6-12 bytes) in each sequence. Do
> I miss something?
> tanks
> Gabi

try the following code, please.

    free(ifunit("fec")->if_name);
    ipDetach(1, "fec");
    ipAttach(1,"fec");

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: routeAdd failed??
Date: Mon, 12 Aug 2002 15:06:48 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$77fq0h$lrb$1@lnews.actcom.co.il>
References: <7f29c2ad.0208100038.2974b21c@posting.google.com>

The reason for the first routeAdd to fail is that you already have a route
to 192.168.144.0/24 when you attach the ethernet interface, and VxWorks
network stack does not allow multiple (aka alternative) routes to the same
destination network.

Do you REALLY want all your communications to including ones on the local
segment 192.168.144.xxx to go via the default gateway ?

The second form of routeAdd will cause all traffic outside the
192.168.144.xxx segment to go via the router and the local traffic to go
directly over the Ethernet segment.

regarding FTP, you need to provide more details, i.e. what is the role of
VxWorks (client or server) what is the peer OS, what file system is used (if
any) etc. FTP is just a protocol and there is so many things one can do with
it ...!

"rover" <rover2@163.com> wrote in message
news:7f29c2ad.0208100038.2974b21c@posting.google.com...
> Hi,all
>
> I have two problem:
>
> 1.I have a target with IP is 192.168.144.2,getway is 192.168.144.1.
>   I have blow:
>
>   routeAdd("192.168.144.0","192.168.144.1");
>
>   the function return ERROR,replace it with
>
>   routeAdd("0",,"192.168.144.1");
>
>   it return OK,why?
>
> 2.I transfer files using ftp,at begin it's speed is about 100k/s,but
> at end it down to about 20k/s gradually,why?

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: taskLock()/taskUnlock() semantics
Date: 12 Aug 2002 06:37:57 -0700
From: emil@lapel.com (Emil Rojas)
Organization: http://groups.google.com/
Message-ID: <754b62e0.0208120537.743cce42@posting.google.com>
References: <754b62e0.0208081306.200b3715@posting.google.com> <488e459a.0208082059.46ed20c9@posting.google.com>

This is good news, and I was hoping what it had to be.  
Of course I did not understand the manual to say this, but I do hope
it is true.  Do you care to elucidate how you came by this
understanding?

john_94501@yahoo.com (John) wrote in message news:<488e459a.0208082059.46ed20c9@posting.google.com>...
[clip]
> 
> Yes, the scheduler will be locked at l2 irrespective of the state of
> abc. Your understanding of manual is correct.
> 
> HTH,
> 
> John...

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
Date: 18 Aug 2002 20:42:03 -0700
From: du.jianjun@zte.com.cn (du)
Organization: http://groups.google.com/
Message-ID: <21a3d7e1.0208181942.7f384393@posting.google.com>
References: <21a3d7e1.0208162333.f5d4099@posting.google.com> <8400a733.0208171028.6343944e@posting.google.com>

gonozal@gmx.at (Toni Kurzberger) wrote in message news:<8400a733.0208171028.6343944e@posting.google.com>...
> > How to
> > write the driver to make it work in  flexible mode?
> you will need INTELs driver manual therefore, however this is difficult
> to obtain from them (it requires signing an NDA and stuff like this).
> unless you have the original documentation i'd not recommend starting
> on this.
> 
> > and how about its
> > performance?
> this depends on your architecture. flexible has no direct performance
> advantage compared with simplified memory structure. however it would allow
> you to implement mblk scatter gather in hw.
> 
Why you say flexible mode has no direct performance advantage compared
with simplified mode? Are you try it?My target cpu is mpc7410,motorola
has gived a
82559End.obj(have no source code),it's performance is good,but when
use the fei82557End.c instead,it work bad,are you try it?

---------------------------

Newsgroups: comp.os.vxworks
Subject: help: problem during building
Date: 14 Aug 2002 02:15:17 -0700
From: joge709@hotmail.com (joge)
Organization: http://groups.google.com/
Message-ID: <1d168114.0208140115.352958a7@posting.google.com>

mbler-with-cpp -IC:\Tornado\target\proj\Project7
- -IC:\Tornado\target\config\mcp750 -IC:\To
rnado\target\h 	 -IC:\Tornado\target\config\comps\src
- -IC:\Tornado\target\src\drv	 -DCPU=P
Hi all,

Now I meet some problem during building a bootable vxworks,the error
message is blow:

PC604 -DPRJ_BUILD -DMCP750 -DTARGET_DIR="\"mcp750\"" -c
C:\Tornado\target\config\mcp750\sy
sALib.s -o sysALib.o
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cca01252.s: Assembler messages:
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cca01252.s:5006: Warning: operand
out of range (-32768
not between 0 and 65535)
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cca01252.s:5095: Warning: operand
out of range (57343 n
ot between -32768 and 32767)
ccppc -g -mstrict-align -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT
 -fvolatile -fno-bu
iltin -fno-for-scope -IC:\Tornado\target\proj\Project7
- -IC:\Tornado\target\config\mcp750 -
IC:\Tornado\target\h 	 -IC:\Tornado\target\config\comps\src
- -IC:\Tornado\target\src\drv	 -
DCPU=PPC604 -DPRJ_BUILD -DMCP750 -DTARGET_DIR="\"mcp750\"" -c
C:\Tornado\target\config\mcp
750\sysLib.c

Did anybody meet the same question as me. Please help me to settle the
problem .

Thanks advance.

Joge Chi.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: 14 Aug 2002 02:16:21 -0700
From: cpotenza@onetel.net.uk (Claudio Potenza)
Organization: http://groups.google.com/
Message-ID: <2025ac82.0208140116.13880440@posting.google.com>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <newscache$yi2s0h$xme$1@lnews.actcom.co.il>

> I want to replace message queue management supplied by VxWorks
> with another type.msgQSend can be called by ISR,however,my send
> function calling the semTake function,So it can not be called by
> ISR.how can my send function can be called by ISR?Locking
> intterrupt?Now that VxWorks can,I think we also can do it.Would
> anyone can help me?Thanks!

If the ISR is the ONLY writer in the queue and there is a SINGLE
reader task that reads from the queue, then you should be able to
write the queue code in such a way that it doesn't require any locking
(using a 'read_pointer'/'write_pointer' in a circular buffer with a
single element wasted).

As Leonid pointed out, the vxWoks "rngLib" library provides exactly
such an implementation.

However if you have multiple writers or readers or you queue for some
reason cannot be implemented in such a way that you cannot use this
techinque.

In this case the only solution that I know of is to use
intLock/intUnlock to lock the critical section of your queue
implementation (that is, the section of code where you modify the
pointers/counter/state variables of your queue).

The obvious disadvantage of this is that this will increase the
interrupt latency for the system

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
Date: 18 Aug 2002 21:54:31 -0700
From: hsingyuan@yahoo.com (Hsing Yuan)
Organization: http://groups.google.com/
Message-ID: <70d78653.0208182054.3fe5fe81@posting.google.com>
References: <21a3d7e1.0208162333.f5d4099@posting.google.com> <ajmmmg$t1q$1@bob.news.rcn.net> <8400a733.0208180748.4816b548@posting.google.com> <2lbXCnCy68X9EAA5@wtoram.co.uk>

Just ask WRS to get the source code of the FEI driver.  The driver is
not well writen; it does a copy operation for every packet received
for proper alignment.

Hsing

Wade Oram <news@wtoram.co.uk> wrote in message news:<2lbXCnCy68X9EAA5@wtoram.co.uk>...
> In message <8400a733.0208180748.4816b548@posting.google.com>, Toni 
> Kurzberger <gonozal@gmx.at> writes
> >"Dan S." <dsteinman@starpower.net> wrote in message 
> >news:<ajmmmg$t1q$1@bob.news.rcn.net>...
> >> If my memory serves me correctly, Intel has a driver on their web site, and
> >> source is included...
> >
> >There is a driver by INTEL, however this driver is only for x86 (and
> >IMHO only available as binary). It yields about the same performance
> >as the fei driver but seems to have some timing/blocking issues.
> 
> Indeed. After advice from this list some 18-24 months back, I reverted 
> to the standard FEI driver (with a little modification to the init 
> routine to get it to accept the 82559 as a FEI. It has proved much more 
> reliable than the Intel sources 82559 driver of that vintage (Of course 
> its just possible that Intel may have updated their driver but somehow I 
> doubt it).

---------------------------

Newsgroups: comp.os.vxworks
Subject: for help about Tor install on Sun Solaris,thanks
Date: 18 Aug 2002 22:00:08 -0700
From: ddleiyu@hotmail.com (Wilson Wu)
Organization: http://groups.google.com/
Message-ID: <47f39a83.0208182100.574c24ff@posting.google.com>

hi
I have installed Tor2.02 on sun solaris 2.6,and Set Tornado
Environment Variables in /home1/wilson/.cshrc as follows:

setenv WIND_BASE /home/wilson/wind
setenv WIND_HOST_TYPE sun4-solaris2
setenv WIND_REGISTRY wilson
setenv PATH ${WIND_BASE}/host/sun4-solaris2/bin:${PATH}
setenv LD_LIBRARY_PATH
${WIND_BASE}/host/sun4-solaris2/lib:${LD_LIBRARY_PATH}

and then I launched the Tornado with "launch &" in the shell,the
tornado GUI appears properly,but when I click the button of VxSim from
the Launcher Window and then click the Confirm to continue,a Question
Window appears like this:

              ----------------------------------------------------
              |                       Question                    |
              | A Tcl evaluation resulted in an error:            |
              | couldn't execute "xterm":no such file or directory|
              |                                                   |
              -----------------------------------------------------
and the details show:

.(Bcouldn't execute "xterm":no such file or directory
   while executing
"exec xterm -sb -sl 1024 -tm {quit } -T {Vxsim 0} -e ./vxWorks -p 0 &"
   ("eval" body line 1)
   invoked from within
"eval $cmdLine"
   (procedure "runTerminal" line 49)
   invoked from within
"runTerminal "Vxsim $procNum" 1 ./vxWorks -p 0"
   ("eval" body line 1)
   invoked from within
"eval [concat {runTerminal "Vxsim $procNum" 1} $cmd]"
   (procedure "launchVxSimConfirm" line 77)
   invoked from within

I do not know what happend on earth,can anybody tell me why?
Any reply will be appreciated.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: can num change into character
Date: Mon, 12 Aug 2002 11:56:35 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1029149794.152683@azores.network-i.net>
References: <aj7jfh$5d3$1@mail.cn99.com>

Obviously not optimised for speed but shows the principle...

void f1(void){
    int i;
    char name[] = "link$$";
    for(i=1;i<20;i++){
        name[strlen(name)-1] = i % 10 + '0';
        name[strlen(name)-2] = (i/10) % 10 + '0';
        ...
    }
}

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Why msgQSend can be called by ISR?
Date: Wed, 14 Aug 2002 12:08:43 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$gawt0h$nfh$1@lnews.actcom.co.il>
References: <8f77d4a.0208121740.796881b1@posting.google.com> <newscache$yi2s0h$xme$1@lnews.actcom.co.il> <2025ac82.0208140116.13880440@posting.google.com>

IntLock is not the only solution, as I have suggested in a previous message,
one can only DEFER the sending of message in to a task, e.g. using
excJobAdd() to use the existing tExcTask for the job, and then all normal
task level mechanism are valid. The only disadvantage of deferring operation
is the lack of feedback regarding queue full or other error conditions to
the ISR itself.
Now since the queue discussed is variable length, message loss should not be
an issue, and there is not much the ISR can do if there is an error except
to report it, which can be done from tExcTask equally well.

Note that excJobAdd as well as netJobAdd are based on rngLib.

"Claudio Potenza" <cpotenza@onetel.net.uk> wrote in message
news:2025ac82.0208140116.13880440@posting.google.com...
> > I want to replace message queue management supplied by VxWorks
> > with another type.msgQSend can be called by ISR,however,my send
> > function calling the semTake function,So it can not be called by
> > ISR.how can my send function can be called by ISR?Locking
> > intterrupt?Now that VxWorks can,I think we also can do it.Would
> > anyone can help me?Thanks!
>
> If the ISR is the ONLY writer in the queue and there is a SINGLE
> reader task that reads from the queue, then you should be able to
> write the queue code in such a way that it doesn't require any locking
> (using a 'read_pointer'/'write_pointer' in a circular buffer with a
> single element wasted).
>
> As Leonid pointed out, the vxWoks "rngLib" library provides exactly
> such an implementation.
>
> However if you have multiple writers or readers or you queue for some
> reason cannot be implemented in such a way that you cannot use this
> techinque.
>
> In this case the only solution that I know of is to use
> intLock/intUnlock to lock the critical section of your queue
> implementation (that is, the section of code where you modify the
> pointers/counter/state variables of your queue).
>
> The obvious disadvantage of this is that this will increase the
> interrupt latency for the system

---------------------------

Newsgroups: comp.os.vxworks
Subject: ata-dma on vxworks
Date: 18 Aug 2002 22:30:58 -0700
From: zhoushan@371.net (zhoushan)
Organization: http://groups.google.com/
Message-ID: <b716512.0208182130.a2825e4@posting.google.com>

Hello, 
   we are developing a embeded system on x86 which need high
performence on hard disk . I want to use dma in dosfs2 . would anyone
send some useful source code to me?
                Thanks . 
                                    zhoushan

---------------------------

Newsgroups: comp.os.vxworks
Subject: PPC-6750 Addressing Problem.
Date: 19 Aug 2002 01:00:22 -0700
From: cristian291@virgilio.it (Cristian Brambilla)
Organization: http://groups.google.com/
Message-ID: <a04ae1f7.0208190000.1370b24f@posting.google.com>

Hi guys!

Has anyone been experienced with PPC-6750 board? Following the
description of my addressing problem.....

I have an I/O board which I want to locate in the A32 addressing space
at 0x41000000 address. In the "sysLib.c" file of the BSP, I added the
following lines in the "sysPhysMemDesc[]" array:

{
(void *)0x41000000,
(void *)0x41000000,
0x00100000,    /* 1 MByte address space */
VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE |
VM_STATE_MASK_CACHEABLE | VM_STATE_VALID |
VM_STATE_WRITABLE | VM_STATE_CACHEABLE_NOT
}

Then I load the VxWorks image onto the PPC-6750 board, and I try to
access the 0x41000000 memory location using the following command:

"m 0x41000000"

I find the following error:

"machine check: Master Abort Received Memory Select Error"

Can anyone of you help me?
Thanks in advance.
Bye, Cris.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: ata-dma on vxworks
Date: Mon, 19 Aug 2002 10:41:29 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$4l131h$bpb$1@lnews.actcom.co.il>
References: <b716512.0208182130.a2825e4@posting.google.com>

For best performance, you would need to use the PCI Bus Master function,
which is supported by many modern chip sets, but to best of my knowledge,
the IDE bus master registers are not standardized, so you will have to write
one for your specific IDE controller or chipset.

I have done this for Intel 810/815 chipset, which results in great
preformance.

"zhoushan" <zhoushan@371.net> wrote in message
news:b716512.0208182130.a2825e4@posting.google.com...
> Hello,
>    we are developing a embeded system on x86 which need high
> performence on hard disk . I want to use dma in dosfs2 . would anyone
> send some useful source code to me?
>                 Thanks .
>                                     zhoushan

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: kernelTimeSlice and double calculations
Date: 19 Aug 2002 01:49:36 -0700
From: R.Ruhland@gmx.de (Rudolf Ruhland)
Organization: http://groups.google.com/
Message-ID: <7a73a529.0208190049.6f348f90@posting.google.com>
References: <7a73a529.0208090631.75760f95@posting.google.com> <313680C9A886D511A06000204840E1CF67A193-100000@whq-msgusr-02.pit.comms.marconi.com>

In my real world application i have included the VX_FP_TASK option.
Bus as always i forgot to include this in my testapplication. :-)

But it seems that other tasks, which use double calculation and have
not set this flag, may disturb tasks which use taskSpawn with
VX_FP_TASK.

Keith Arner <karner@pit.comms.marconi.com> wrote in message news:<313680C9A886D511A06000204840E1CF67A193-100000@whq-msgusr-02.pit.comms.marconi.com>...
> On 9 Aug 2002, Rudolf Ruhland wrote:
> 
> > The following code shows some interesting errors when calculating with
> > double, as soon as timeslicing is active.
>  [ ... snip ... ]
> > void FPPTest(void)
> > {
> >   int i;
> >   for (i=1;i<10 ;i++ )
> >   {
> >     taskSpawn(NULL, 100, 0, 3000,
> >       (FUNCPTR)(&doubleFPPTest),
> >       0,0,0,0,0,0,0,0,0,0);
> >   }
> 
> You need to specify VX_FP_TASK in the "options" argument (arg 3) to
> taskSpawn().  If you do not, then the scheduler is not garunteed to copy
> the floating point registers on a context switch, which will appear at the
> application level to be spontaneously corrupted floating point operations.
> 
> Keith

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: How to find out how long something has taken to execute
Date: Mon, 12 Aug 2002 20:01:52 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <aj8pkc$shn$1@news.inter.net.il>
References: <3d51877e$1_2@nopics.sjc> <488e459a.0208072102.6fddd400@posting.google.com> <363d071b.0208112105.32f969ba@posting.google.com>

Better use some hardware timer, such as PowerPC TimeBase -- much more
reliable, much more accurate.

Got the mechanism if you want it .

"Vasu Dalal" <vdalal@hotmail.com> wrote in message
news:363d071b.0208112105.32f969ba@posting.google.com...
> Hello;
>
> > Of course, WindView might be useful for you too as it allows you to
> > define user events
>
> U can define user defined events thus:
>
> wvEvent (10,0,0);
> my_function_underTest();
> wvEvent (20,0,0);
>
>  The two events (#10 and #20) will show up in the WindView trace.
> This will give a very-high accuracy and high-clock resolution
> time-stamp. U wil have to turn on aux. clock for WindView.
>
> HTH,
> vasu

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: uninitilized interrupt
Date: Mon, 12 Aug 2002 20:04:17 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <aj8pot$smo$1@news.inter.net.il>
References: <221caa76.0208111730.552d2d81@posting.google.com>

Hi,

Did you use the intConnect () system call  to bind the driver's interrupt
handler to VxWorks interrupts mechansim ?

look for something in the following format:

intConnect (IV_IRQ3, SerialChannellIntrHander, 0);

"kewin" <kevinatnj@yahoo.com.cn> wrote in message
news:221caa76.0208111730.552d2d81@posting.google.com...
> hi all
>
>    My PPC8260 system have got a CD1865 as my sio device.I used
> intconnect to
> connect IRQ3 to my sio driver.The driver can work,but when it was
> working vxworks system will print "uninitilized interrup" on
> screen.Will anybody tell me
> why?
>   Thanks in advance
>
>                                             kevin

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
Date: Mon, 12 Aug 2002 19:40:37 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$mvrq0h$37c$1@lnews.actcom.co.il>
References: <7da11b7d.0208081400.6ef10df4@posting.google.com>

Raja,

I have faced a similar problem when writing Flash memory drivers a few years
back, where the delay needs not be accurate, but must be larger than a
specified time, e.g. > 6 microsec for byte/word write command.

The was we did this was to write a loop that accesses the Flash memory
(assumed to be non-cached) multiple times, while the loop count was set to a
value perviously determined by a measured loop. During initialization, the
Calibration function would run the loop for a full system clock period, i.e.
it would start counting when the tickGet() value changes 1st time, and stops
counting with vxTicks changes the second time. Knowing the time length of
this period we would scale the loop count per microsecond.

If we needed accurate pulses, then during the coutining all interrupts would
be locked out (which is OK for a few microseconds), but if it would be
acceptable for the pulses to be "longer then X usec", we would leave
interrupts and scheduling turned on.

"Raja" <amraja8@hotmail.com> wrote in message
news:7da11b7d.0208081400.6ef10df4@posting.google.com...
> Hi
> I need to implement a microsecond clock or any timer that can provide
> me delay in the order of micro seconds. I tried using system clock
> which gives me a clock rate of 60 ticks per second only. I tried to
> get the clock rate of the auxiliary clock and it seems to be the same
> 60 ticks  per second.
>
> I would  highly appreciate if you could let me know of any ideas
> regarding this.
>
> Note: I am using VME board (VMETRO - Power Midas 1200s )that has an an
> i960 processor and am running in Tornado 2.0 IDE( for i960 )
>
> Thank you,
> Raja.

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: kernelTimeSlice and double calculations
Date: Mon, 19 Aug 2002 11:49:21 +0200
From: "Leonid Rosenboim" <MY_FIRST_NAME@CONSULTANT.COM>
Organization: Verio
Message-ID: <newscache$8q431h$7vb$1@lnews.actcom.co.il>
References: <7a73a529.0208090631.75760f95@posting.google.com> <313680C9A886D511A06000204840E1CF67A193-100000@whq-msgusr-02.pit.comms.marconi.com> <7a73a529.0208190049.6f348f90@posting.google.com>

The VX_FP_TASK option is known to cause hardship -
in many cases it is quite difficult for the programmer to correctly identify
which tasks are going to use FP registers, and which won't. Especially in
large scale projects, where many programmers are involved, and modules are
reused, a seemingly harmless code modification can cause a certain task to
use FP, unanticipated.
Hence I have allways recommended to set VX_FP_TASK option for ALL TASKS for
any project that involves more then a few programmers, and can not define
with ABSOLUTE CONFIDENCE that certain tasks will not be using Floating Point
calculation.

"Rudolf Ruhland" <R.Ruhland@gmx.de> wrote in message
news:7a73a529.0208190049.6f348f90@posting.google.com...
> In my real world application i have included the VX_FP_TASK option.
> Bus as always i forgot to include this in my testapplication. :-)
>
> But it seems that other tasks, which use double calculation and have
> not set this flag, may disturb tasks which use taskSpawn with
> VX_FP_TASK.
>
>
> Keith Arner <karner@pit.comms.marconi.com> wrote in message
news:<313680C9A886D511A06000204840E1CF67A193-100000@whq-msgusr-02.pit.comms.
marconi.com>...
> > On 9 Aug 2002, Rudolf Ruhland wrote:
> >
> > > The following code shows some interesting errors when calculating with
> > > double, as soon as timeslicing is active.
> >  [ ... snip ... ]
> > > void FPPTest(void)
> > > {
> > >   int i;
> > >   for (i=1;i<10 ;i++ )
> > >   {
> > >     taskSpawn(NULL, 100, 0, 3000,
> > >       (FUNCPTR)(&doubleFPPTest),
> > >       0,0,0,0,0,0,0,0,0,0);
> > >   }
> >
> > You need to specify VX_FP_TASK in the "options" argument (arg 3) to
> > taskSpawn().  If you do not, then the scheduler is not garunteed to copy
> > the floating point registers on a context switch, which will appear at
the
> > application level to be spontaneously corrupted floating point
operations.
> >
> > Keith

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Alternative tornado user directory and project creation problem.
Date: 19 Aug 2002 03:00:59 -0700
From: chkim@irts.co.kr (Changhwan Kim)
Organization: http://groups.google.com/
Message-ID: <d9fffbd9.0208190200.4bb4e263@posting.google.com>
References: <d9fffbd9.0208181703.7e381dec@posting.google.com>

chkim@irts.co.kr (Changhwan Kim) wrote in message news:<d9fffbd9.0208181703.7e381dec@posting.google.com>...
> Hi.
> 
> I'm using Tornado2 on Solaris, and try to separate install directory
> and user directory for complete(?) vxWorks set. (I don't want anyone
> modify master vxWorks tree.)
> 
> I installed tornado on /user/tornado with user tornado. I made another
> account test and home directory is /user/test.
> I made symbolic links like follows,
> /user/test/tornado/host                 -> /user/tornado/host
> /user/test/tornado/docs                 -> /user/tornado/docs
> /user/test/tornado/share                -> /user/tornado/share
> /user/test/tornado/target/h             -> /user/tornado/target/h
> /user/test/tornado/target/lib           -> /user/tornado/target/lib
> /user/test/tornado/target/src           -> /user/tornado/target/src
> /user/test/tornado/target/unsupported   ->
> /user/tornado/target/unsupported
> /user/test/tornado/target/config/all    ->
> /user/tornado/target/config/all
> Now, I working with test user, shell variables WIND_BASE is
> "/user/test/tornado".
> I copyed a sample ads860 BSP into
> /user/test/tornado/target/config/ads860 and succeed to build it in
> command line with make command. But I failed to create  project from
> launch->project. as bootable image specifying BSP as 'ads860' with
> error message
> 
> > ccppc: Warning: `-x c' after last input file has no effect
> > ccppc: No input files
> 
> The detailed symptom is, project build process calls ccppc to generate
> dependency just with "-E -P -xc" options without anyother options and
> even source file. With command line make, it should be
> 
> > ccppc -B/user/test/tornado/host/sun4-solaris2/lib/gcc-lib/ -E -P -xc -M -E -
> > I/h   -I. -I/user/test/tornado/target/config/all -
> > I/user/test/tornado/target/h -I/user/test/tornado/target/src/config -
> > I/user/test/tornado/target/src/drv -DCPU=PPC860   romInit.s \
> > | sed -e "s:/user/test/tornado/target/config/all:\\$\(CONFIG_ALL\):g" \
> >        -e "s:/user/test/tornado/target:\\$\(TGT_DIR\):g" \
> >        -e "s:/user/test/tornado:\\$\(WIND_BASE\):g" >> depend.ads860
> 
> I don't know why this happens. Project build process using different
> procedure with command line make and their rules?

Sorry for foolish self-question and self-answer. -_-
I added symbolic links 
> /user/test/tornado/target/config/comps -> /user/tornado/target/config/comps
and everything works fine...

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Tornado and directory hiearchy problem when building and size of an 
 array (newbie questions)
Date: Mon, 19 Aug 2002 06:26:26 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: WEBUSENET.com
Message-ID: <3D60C7D2.B5BF0B1E@bellsouth.net>
References: <3d5fd7dc$0$11799$7a628cd7@news.club-internet.fr>

jf hasson wrote:

> Hi,
>
> I am running tornado 2.0 on windows 2000 and I build a VxWorks including my
> application. I have a project for which the .c and .h are in various
> directories and subdirectories. I had trouble generating the correct
> dependencies but finally got through it ... However, it seems some of the .o
> files generated are located in the defaul directory while some others are in
> the directory of the .c which is a problem when I want to link because only
> the .o in the default directory seem to be found. Does anyone have a clue as
> to what I could do besides manually moving the generated .o in the default
> directory ?
> Moreover, I have a .c containing a VERY BIG array of unsigned short declared
> as global. I can not change this file. I get a warning about excess elements
> in this array. Does that mean the output of the build will be wrong or that
> it is just very big ? Is there a parameter to influence the maximum size of
> an array ?
> Thank you for the information.
>
> J.F. Hasson

There can be quite a mess mamking T 2 work through the graphical
interface.  You might try the traditional makefile procedures.

Array sizes can cause trouble in two situations:

1). The array in inside a function, in whihc case it will be on the stack,
(usually) which is a limited resource.

2). On some platforms, there is a limit on relocation distances.

Suggest that you specify platform and post the compiler warning;
Maybe someone can give you better info.

Speaking only for myself,

Joe Durusau

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Configureing PCI bus interface on IBM PPC405GP
Date: Mon, 19 Aug 2002 06:32:39 -0400
From: Varndell Engineering <gvarndell@hotmail.com>
Organization: Posted Via Newsfeeds.com = SPEED+RETENTION+COMPLETION = http://www.newsfeeds.com
Message-ID: <3D60C947.EFB7EF3D@hotmail.com>
References: <3D604756.F7E4B15B@yahoo.co.jp>

inoue wrote:
> 
> Hi,
> 
> I'm configureing PCI bus interface on IBM PPC405GP walnut BSP to add
> two DP83815 (National Semiconductor) LAN devices.
> 
> I configured PCI bus related definitions in config.h, made vxWorks
> image, and ran it. I failed to load DP83815 LAN driver.
> 
> Then, I did pciDeviceShow and pciHeaderShow, following are the result.
> 
> Please help me how config.h should be configured.
> 
> I want to assign 1st DP83815 device to memory space 0x80200000, and
> 2nd to 0x80300000. Now I see only ffffffff when I dump that space.

[snip]

If you want to assign PCI address spaces, then you should disable
PCI auto-configuration in your BSP and call pciDevConfig(...) as
appropriate for each device.
In the PCI dumps you posted, neither device had been configured,
or both had been badly misconfigured.

Regards,
George Varndell
- --
Varndell Engineering, LLC
Embedded Systems Expertise
http://www.varndellengineering.com

- -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
   http://www.newsfeed.com       The #1 Newsgroup Service in the World!
- -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
Date: Mon, 19 Aug 2002 06:43:03 -0400
From: Varndell Engineering <gvarndell@hotmail.com>
Organization: Posted Via Newsfeeds.com = SPEED+RETENTION+COMPLETION = http://www.newsfeeds.com
Message-ID: <3D60CBB7.EBD31065@hotmail.com>
References: <21a3d7e1.0208162333.f5d4099@posting.google.com> <ajmmmg$t1q$1@bob.news.rcn.net> <8400a733.0208180748.4816b548@posting.google.com> <2lbXCnCy68X9EAA5@wtoram.co.uk> <70d78653.0208182054.3fe5fe81@posting.google.com>

Hsing Yuan wrote:
> 
> Just ask WRS to get the source code of the FEI driver.  The driver is
> not well writen; it does a copy operation for every packet received
> for proper alignment.

This would depend on the host CPU and BSP configuration. On alignment
challenged CPU's, you are correct. I've seen some BSPs configure
this driver with an alignment offset even though the host CPU did
not require it. If the driver is configured with offset = 0, no
such copying is done.

Regards,
George Varndell
- --
Varndell Engineering, LLC
Embedded Systems Expertise
http://www.varndellengineering.com

- -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
   http://www.newsfeed.com       The #1 Newsgroup Service in the World!
- -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Micro Second delay/clock  implementation with an i960 proceesor
Date: 12 Aug 2002 15:00:11 -0400
From: Bill Pringlemeir <spam_account@sympatico.ca>
Organization: Bell Sympatico
Message-ID: <m2fzxj6gxw.fsf@sympatico.ca>
References: <7da11b7d.0208081400.6ef10df4@posting.google.com> <newscache$mvrq0h$37c$1@lnews.actcom.co.il>
Sender: bpringle@DeadDuck

"Raja" <amraja8@hotmail.com> wrote in message
news:7da11b7d.0208081400.6ef10df4@posting.google.com...
> Hi
> I need to implement a microsecond clock or any timer that can provide
> me delay in the order of micro seconds. I tried using system clock
> which gives me a clock rate of 60 ticks per second only. I tried to
> get the clock rate of the auxiliary clock and it seems to be the same
> 60 ticks  per second.

 Leonid> The was we did this was to write a loop that accesses the
 Leonid> Flash memory (assumed to be non-cached) multiple times, while
 Leonid> the loop count was set to a value perviously determined by a
 Leonid> measured loop. During initialization, the Calibration

[snip]

This is a modified version of code posted on comp.os.vxworks
previously.  I have modified it to add assembler code to the delay
loop.  This increases the precision.  People could add assembler code
for the other processors.

I think the original author is "espin".... Ah it is in the FAQ under,
 "http://www.xs4all.nl/~borkhuis/vxworks/vxw_pt6.html#6.1-A".

The author is Geoffrey Espin.  Now you have two versions...

hth,
Bill Pringlemeir.

/* delayLib.c - hard delay routines */

/* 
 * DESCRIPTION
 * This module provides "hard" delay routines for micro and millisecond
 * periods.
 * 
 * EXAMPLE .CS
 * -> delayCalibrate(); /@ call used for calibration @/
 * -> timexN delayMsec, 10
 * timex: 75 reps, time per rep = 10209 +/- 222 (2%) microsecs
 * value = 59 = 0x3b = ';'
 * -> .CE
 * 
 * The routines sysClkRateGet() and tickGet() are used to calibrate
 * the timing loop.  Therefore, the first call is much longer than
 * requested if delayCalibrate is not called.  If the system clock
 * rate is changed, a new calibration must be explicitly made.
 *
 * 
 * The calibration should be done with interrupts off.  This will
 * guarantee that the delays are at least the specified time period.
 * Calls to delayUsec and delayMsec maybe of a longer period due to
 * interrupt delays.
 *
 */
#include "vxWorks.h"
#include "tickLib.h"
#include "sysLib.h"
#include "delayLib.h"

#ifdef DEBUG
# include <stdio.h> 
# define INFO_PRINT printf
  int unsigned delayLoop = 0;
#else
# define INFO_PRINT(s...) /* nothing. */
  static unsigned int delayLoop = 0;
#endif

/*****************************************************************************
*
* delayCalibrate - calibrate hard delay loops.
*
* RETURNS: N/A
*/
void delayCalibrate(void)
{
    unsigned int maxLoop;
    int start = 0;
    int stop = 0;
    unsigned int mpt = (1000 * 1000) / sysClkRateGet (); /* usecs per tick */
    
    /* Course calculation of delay, up to twelve iterations */
    for (delayLoop = 1; delayLoop < 0x1000 && stop == start; delayLoop<<=1)
    {
        /* wait for clock turn over */
        stop = start = tickGet ();
        while(start == stop)
            start = tickGet ();

        delayUsec (mpt);

        stop = tickGet ();
    }
        
    start = stop = 0;
    delayLoop = max(delayLoop, 4);
    maxLoop = delayLoop/2;        /* loop above overshoots */

    INFO_PRINT("maxLoop = %d\n", maxLoop);

    /* Find `delayLoop' to match tick interval. Start at 1/4 course */
    for (delayLoop /= 4; delayLoop < maxLoop && stop == start; delayLoop++)
    {
        /* wait for clock turn over */
        stop = start = tickGet ();
        while(start == stop)
        {
            start = tickGet ();
        }

        delayUsec (mpt);

        stop = tickGet ();
    }

    INFO_PRINT("delayLoop = %d\n", delayLoop);
}

#if CPU_FAMILY == ARM
/*****************************************************************************
*
* delayUsec - hard delay for <u> microseconds
*
* Notes: this routine is in assembler not to make the "delay fast", but
* to improve the resolution of the timer loop.  It is doubles the precision
* of a `C' compiler loop.
*
* RETURNS: N/A
*/
void delayUsec(unsigned int u)      /* # of microsecs */
{
    __asm__ volatile (
        "     cmp     %1,#0 \n"     /* Set delayLoop > 0 */
        "     moveq   %1,#1 \n"
        "20:  mov     r1,%1 \n"
        "10:  subs    r1,r1,#1 \n"  /* Inner loop counts delayLoop */
        "     bne     10b \n"
        "     subs    %0,%0,#1 \n"  /* Outer loop counts `u'. */
        "     bne     20b \n"
        : /* No outputs */
        : "r" (u), "r" (delayLoop)  /* %0 is u, %1 is delayLoop */
        : "1");                     /* trashes r1. */
}

#else
/* Equivalent `C' of above function version for reference. */
void delayUsec(unsigned int u)
{
    unsigned int i;

    for (; u; u--)
    {
        for (i = delayLoop; i; i--);
    }
}
#endif

/*****************************************************************************
*
* delayMsec - hard delay for <m> milliseconds
*
* RETURNS: N/A
*/
void delayMsec(unsigned int m)      /* # of millisecs */
{
    delayUsec (m * 1000);
}

/* delayLib.h - self-calibrating hard delay routines header file */

/*
modification history
- --------------------
27Mar96,espin   written.
*/

#ifndef __INCdelayLibh
#define __INCdelayLibh

#ifdef __cplusplus
extern "C"
{
#endif

extern void delayCalibrate(void);
extern void delayUsec (unsigned int u);
extern void delayMsec (unsigned int m);

#ifdef __cplusplus
}
#endif
    
#endif  /* __INCdelayLibh */

- -- 
I want  EARS!  I want  two ROUND  BLACK EARS to  make me feel  warm 'n
secure!!

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Who have intel 82559End driver source code? How about it efficiency?
Date: Mon, 19 Aug 2002 06:48:39 -0400
From: Varndell Engineering <gvarndell@hotmail.com>
Organization: Posted Via Newsfeeds.com = SPEED+RETENTION+COMPLETION = http://www.newsfeeds.com
Message-ID: <3D60CD07.FE93F378@hotmail.com>
References: <21a3d7e1.0208162333.f5d4099@posting.google.com> <ajmmmg$t1q$1@bob.news.rcn.net> <8400a733.0208180748.4816b548@posting.google.com>

Toni Kurzberger wrote:
> 
> "Dan S." <dsteinman@starpower.net> wrote in message news:<ajmmmg$t1q$1@bob.news.rcn.net>...
> > If my memory serves me correctly, Intel has a driver on their web site, and
> > source is included...
> 
> There is a driver by INTEL, however this driver is only for x86 (and
> IMHO only available as binary). It yields about the same performance
> as the fei driver but seems to have some timing/blocking issues.

It seems Intel has removed their own vx driver(s) from the web.
In my searching, all attempts to find a (any) vx driver on Intel's
site were redirected to Wind River's web site.
AFAIK, when it was there, the source was not included.

Regards,
George Varndell
- --
Varndell Engineering, LLC
Embedded Systems Expertise
http://www.varndellengineering.com

- -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
   http://www.newsfeed.com       The #1 Newsgroup Service in the World!
- -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----

---------------------------

Newsgroups: comp.os.vxworks
Subject: Re: Boot time
Date: Mon, 12 Aug 2002 19:29:20 GMT
From: Raymond Kristiansen <raymond@spacetec.no>
Organization: Kongsberg Spacetec AS
Message-ID: <3D580C8F.77362B1D@spacetec.no>
References: <3D52D7E7.4370262D@spam.no> <765c5e3c.0208090049.3f17ad7a@posting.google.com> <3D5385E4.B8AF8725@spacetec.no> <3D53E13F.9F4BD5C2@nospam.com>

max@nospam.com wrote:
> 
> >
> 0x8 works for my board. The idea is to begin with 0 and to increase the
> value. The higest one which works is the good one.
> 

Thanks for your tip. I just thought I'd let you know that I used the
command

dec21x40PhyFind(endFindByName("dc",0))

in the windSh shell after I got a tip from Windriver support, which
finds the first PHY for the interface. This gave the result 0x8, which I
used in my file. It didn't improve my boot time, though, so I am still
interested in more hints on the subject.

Regards,
Ray

---------------------------

End of New-News digest
**********************

From vxwexplo-errs@csg.lbl.gov  Tue Aug 20 15:31:44 2002
From: Yuan Zheng-ZYUAN1 <ZYUAN1@motorola.com>
Date: Tue Aug 20 15:31:46 PDT 2002
Subject: How to trace memory access in VxWorks/Tonado?

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C24899.24AC1A10
Content-Type: text/plain;
	charset="iso-8859-1"

All-
 
In our application code, we have a problem like this: Our CRC check seems
not working right and after careful checking, we found some one byte of
prestored CRC table has been corrupted.
 
I am wondering who has the experience to detect which pointer corrupted the
CRC table?
 
Thanks a lot!

------_=_NextPart_001_01C24899.24AC1A10
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<META content="MSHTML 6.00.2713.1100" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><SPAN 
class=587300321-20082002>All-</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=587300321-20082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=587300321-20082002>In our application 
code, we have a problem like this: Our CRC check seems not working right and 
after careful checking, we found some one byte of prestored CRC table has been 
corrupted.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=587300321-20082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=587300321-20082002>I am wondering who 
has the experience to detect which pointer corrupted the CRC 
table?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=587300321-20082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=587300321-20082002>Thanks a 
lot!</SPAN></FONT></DIV></FONT></DIV></FONT></DIV></BODY></HTML>

------_=_NextPart_001_01C24899.24AC1A10--

From vxwexplo-errs@csg.lbl.gov  Wed Aug 21 01:50:06 2002
From: Pramod Srinivasan <pramodsri@yahoo.com>
Date: Wed Aug 21 01:50:08 PDT 2002
Subject: context switch hooks

Hi,

I am having a weird problem in vxWorks, I have a
context switch hook which checks to see if the task
that is being switched out is being suspended, if so I
record this for debugging. But here is the problem.

looking through the vxWorks source code, calling exit
in a task in vxWorks, actually suspends the current
task, and expects the exception task to clean up the
task. So when a task exits, from what I understand the
task switch hook should have been called when the next
task possibly exception task is switched in. To my
surprise I see that the task switch hook is never
called when the task exits, except in one situation
where its being called. I dont understand this
behavior.

Does anyone else have a clue to this?

Thanks,
--Pramod

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

From vxwexplo-errs@csg.lbl.gov  Wed Aug 21 06:01:16 2002
From: "Tyler, Paul A (DBY)" <paul.a.tyler@rolls-royce.com>
Date: Wed Aug 21 06:01:18 PDT 2002
Subject: checkStack fails, ti works

Hi,

While trying to track down an intermittent fault, I came across this fault.
The checkStack function hangs when it gets to a certain task in the list. It
will print out all the preceding tasks, and prints the first column (task
name), but then it hangs.

ti will work for the task in question, and that shows the stack usage to be
fine.

The task causes checkStack to hang even if I place the taskSpawn towards the
beginning of the start script. I also tried calling checkStack( taskIdSelf()
) from within the program, but it hung when called the first time.

The function source code follows:

int Rig18_plc_client( CUniSyncEvent *startevent, CUniSyncEvent *finishevent
)
{
	C18Rig_plc_client *cp;
	int s;

	printf("Rig18 PLC Client instantiation\n");
	checkStack( taskIdSelf() );		// *** This function call
hangs ***
	cp = new C18Rig_plc_client;

	printf("Rig18 PLC Client call main\n");
	checkStack( taskIdSelf() );
	s =  cp->main( startevent, finishevent );

	delete cp;
	return s;
}

I am using VxWorks version 5.3.1, and Tornado 1 on a Windows NT host.
The target is a VMIVME-7589, a VME embedded PC.

Has anyone seen this behaviour before? Any ideas as to what the cause is?

Thanks for your help

Paul Tyler
Measurement Systems Specialist
Rig Test Systems Team, Facility Engineering Dept.
Rolls-Royce plc.

e-mail Paul.A.Tyler@Rolls-Royce.com
Tel. +44 (1332) 247808
Fax. +44 (1332) 247928

The data contained in, or attached to, this e-mail, may contain confidential
information. If you have received it in error you should notify the sender
immediately by reply e-mail, delete the message from your system and contact
+44(0)1332 248119 (the Rolls-Royce IT Security Director) if you need
assistance. Please do not copy it for any purpose, or disclose its contents
to any other person.

An e-mail response to this address may be subject to interception or
monitoring for operational reasons or for lawful business practices.

(c) 2002 Rolls-Royce plc

From vxwexplo-errs@csg.lbl.gov  Wed Aug 21 10:32:03 2002
From: "Matchett, John" <jmatchet@harris.com>
Date: Wed Aug 21 10:32:06 PDT 2002
Subject: Vxworks Drivers for 8260 MCC and HDLC SCCs

I am in need of MCC and SCC-HDLC Drivers for the Mot 8260. The reference board
my company bought only had a BSP that included UART and Ethernet.  Does anyone
have any recommendations .

Thanks

John

From vxwexplo-errs@csg.lbl.gov  Thu Aug 22 09:26:10 2002
From: "Mark D Chavira" <mdchavira@raytheon.com>
Date: Thu Aug 22 09:26:12 PDT 2002
Subject: C++ Unresolved Symbols

Hi,

I have used C on VxWorks for a long time.  I recently tried C++, and though
the program compiles fine, I get unresolved symbols when I load.  The
symbols are from the string and stream standard libraries.  Does anybody
know how to fix this problem.  I am guessing that I just need to load a
library, but I have not been able to figure it out on my own.  Also, if I
use other parts of C++ in the future, what other libraries might I need?

Thanks,

Mark Chavira

From vxwexplo-errs@csg.lbl.gov  Fri Aug 23 04:37:55 2002
From: Ramakrishna.R@smartm.com
Date: Fri Aug 23 04:37:58 PDT 2002
Subject: File System Problem

Hi

We are using Tornado 2.1 for MIPS for developing the VxWorks 5.4 BSP for MIPS
processor.
We have included the Dos File System using ICLUDE_DOSFS and have created
RamDisk.
But we are unable to run the commands such as dir, cd, mkdir etc. from target
shell. These are
not available in the target symbol table also.

We have inluded the usrLib.h in our BSP and we could run the rest of the
commands mentioned
in that header file.

Please advise if there is any configuration that need to be set-up or included
in the BSP for executing
these commands from the shell prompt.

Thanks in advance.

Regards
Ramakrishna
Force Computers- India Design Center,
Bangalore

From vxwexplo-errs@csg.lbl.gov  Sat Aug 24 12:20:28 2002
From: "Joe Welfeld" <jwelfeld@paragon-networks.com>
Date: Sat Aug 24 12:20:31 PDT 2002
Subject: File system shutdown

Hello,

We are running Tornado2.02  for PPC,  with TFFS and DOSFS2, I cant seem to
find the
call to make for an orderly "disk" shutdown ?  perhaps like a TFFSSync
command to
insure everything is written before I shut down ?  perhaps someone knows how
I should do this ?

Thanks,

Joe Welfeld

From vxwexplo-errs@csg.lbl.gov  Sun Aug 25 07:24:43 2002
From: Ahlawi Hasan <albashamailbox@yahoo.com>
Date: Sun Aug 25 07:24:46 PDT 2002
Subject: Porting Tornado 2.0

Is it possible to port Tornado 2.0 working on a
NT-station to a station with Win XP professional?

Should the flouting license be changed if the Win XP
want to be used instead of the Win NT.

Please advise

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

From vxwexplo-errs@csg.lbl.gov  Sun Aug 25 09:10:29 2002
From: straymail@itozi.com (Stray Mail for itozi.com)
Date: Sun Aug 25 09:10:31 PDT 2002
Subject: Re: Porting Tornado 2.0

Please note, this is an _automated reply_

The e-mail you sent was incorrectly addressed and could not be delivered.  Please recheck the e-mail address.

However, your e-mail will be reviewed and forwarded to the appropriate person where possible.

IT @ OZI can be contacted on:
Sydney         (02) 9955 5388
International +61 2 9955 5388


From vxwexplo-errs@csg.lbl.gov  Sun Aug 25 23:32:09 2002
From: =?iso-8859-1?q?ram=20mohan?= <ramamohankn@yahoo.com>
Date: Sun Aug 25 23:32:11 PDT 2002
Subject: Re: C++ Unresolved Symbols

Hi, 
 u need to include basic c++ support and strems in io
systems for c++ when u build boot image.
 this should solve the current prob
Regards
Mohan

 --- the vxWorks Users Group Exploder
<vxwexplo@lbl.gov> wrote: > Submitted-by
vxwexplo-errs@csg.lbl.gov  Thu Aug 22
> 09:26:10 2002
> Submitted-by: "Mark D Chavira"
> <mdchavira@raytheon.com>
> 
> Hi,
> 
> I have used C on VxWorks for a long time.  I
> recently tried C++, and though
> the program compiles fine, I get unresolved symbols
> when I load.  The
> symbols are from the string and stream standard
> libraries.  Does anybody
> know how to fix this problem.  I am guessing that I
> just need to load a
> library, but I have not been able to figure it out
> on my own.  Also, if I
> use other parts of C++ in the future, what other
> libraries might I need?
> 
> Thanks,
> 
> Mark Chavira
> 
> 
> 
> 
> **********
> 
>     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! Finance - Get real-time stock quotes
http://finance.yahoo.com

From vxwexplo-errs@csg.lbl.gov  Mon Aug 26 06:29:34 2002
From: Ahlawi Hasan <albashamailbox@yahoo.com>
Date: Mon Aug 26 06:29:37 PDT 2002
Subject: Re: Tornado 2.0

--- the vxWorks Users Group Exploder
<vxwexplo@lbl.gov> wrote:
> Submitted-by vxwexplo-errs@csg.lbl.gov  Sun Aug 25
> 07:24:43 2002
> Submitted-by: Ahlawi Hasan
> <albashamailbox@yahoo.com>
> 
> Is it possible to port Tornado 2.0 working on a
> NT-station to a station with Win XP professional?
> 
> Should the flouting license be changed if the Win XP
> want to be used instead of the Win NT.
> 
> Please advise
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.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! Finance - Get real-time stock quotes
http://finance.yahoo.com

From vxwexplo-errs@csg.lbl.gov  Mon Aug 26 14:35:30 2002
From: Yuan Zheng-ZYUAN1 <ZYUAN1@motorola.com>
Date: Mon Aug 26 14:35:34 PDT 2002
Subject: VxWorks bh() command question?

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C24D3C.FE983680
Content-Type: text/plain;
	charset="iso-8859-1"

Hello-
 
I am trying to trace the write operation for a block of memory address, and bh() comes to my attention, however when i use it. I got the following error
-> bh 0x019A23D8, 1
WTX Error 0x100d9 (AGENT_INVALID_HW_BP)
value = -1 = 0xffffffff
while i dont have error with 
-> bh 0x019A23D8, 0
value = 0 = 0x0
Does this mean archetecture on my system (Motorola MPC8260) doesn't support bh on memory write and can only support memory read? Also does the bh() can only break for one memory location instead of multiple location?
 
Thanks a lot!

------_=_NextPart_001_01C24D3C.FE983680
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<META content="MSHTML 6.00.2713.1100" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=126210520-26082002>Hello-</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=126210520-26082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=126210520-26082002>I am trying to trace 
the write operation for a block of memory address, and bh() comes to my 
attention, however when i use it. I got the following error</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=126210520-26082002>-&gt; bh 0x019A23D8, 
1<BR>WTX Error 0x100d9 (AGENT_INVALID_HW_BP)<BR>value = -1 = 
0xffffffff</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=126210520-26082002>while i dont have 
error with </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=126210520-26082002>-&gt; bh 0x019A23D8, 
0<BR>value = 0 = 0x0</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=126210520-26082002>Does this mean 
archetecture on my system (Motorola MPC8260) doesn't support bh on memory write 
and can only support memory read? Also does the bh() can only break for one 
memory location instead of multiple location?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=126210520-26082002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=126210520-26082002>Thanks a 
lot!</SPAN></FONT></DIV></BODY></HTML>

------_=_NextPart_001_01C24D3C.FE983680--

From vxwexplo-errs@csg.lbl.gov  Mon Aug 26 14:35:43 2002
From: "Chirag H. Shroff" <shroff@noao.edu>
Date: Mon Aug 26 14:35:46 PDT 2002
Subject: Error in boot line

Hello All,

We are using MVME2700 PPC. I use the "bootChange" command to change the boot 
parameters.

I add the following......

boot device          : dc
processor number     : 0 
host name            : console 
file name            : /opt/vxworks/tornado1PPC/target/config/mv2700/vxWorks 
inet on ethernet (e) : 192.168.19.3:ffffff00 
inet on backplane (b): 
host inet (h)        : 192.168.19.1 
gateway inet (g)     : 
user (u)             : gong 
ftp password (pw) (blank = use rsh): 
flags (f)            : 0x8 
target name (tn)     : data 
startup script (s)   : /ram2/startup.cmd
other (o)            :

Everything works fine as long as power is "ON". When i turn off the power 
supply and then after some time turn the power supply "on", I get the following
error messages.....

data> Error in boot line:
dc(0,0)Condole:/opt/vxwOrks/tornado1PPC/target/config/mV700/vxWorks e=q0.168.19.3:fffFfn00 h=192.168.y.1 u=gong f=0xh tn=data s=/ram/startup.cmd
                                                                      ^
                                                                        
Adding 2594 symbols for standalone.
Initializing RAM board..            
 

 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]  
      ]]]]]]]]]]]  ]]]]     ]]]]]]]]]]       ]]              ]]]]         (R)
 ]     ]]]]]]]]]  ]]]]]]     ]]]]]]]]       ]]               ]]]]            
 ]]     ]]]]]]]  ]]]]]]]]     ]]]]]] ]     ]]                ]]]]            
 ]]]     ]]]]] ]    ]]]  ]     ]]]] ]]]   ]]]]]]]]]  ]]]] ]] ]]]]  ]]   ]]]]]
 ]]]]     ]]]  ]]    ]  ]]]     ]] ]]]]] ]]]]]]   ]] ]]]]]]] ]]]] ]]   ]]]]  
 ]]]]]     ]  ]]]]     ]]]]]      ]]]]]]]] ]]]]   ]] ]]]]    ]]]]]]]    ]]]] 
 ]]]]]]      ]]]]]     ]]]]]]    ]  ]]]]]  ]]]]   ]] ]]]]    ]]]]]]]]    ]]]]
 ]]]]]]]    ]]]]]  ]    ]]]]]]  ]    ]]]   ]]]]   ]] ]]]]    ]]]] ]]]]    ]]]]
 ]]]]]]]]  ]]]]]  ]]]    ]]]]]]]      ]     ]]]]]]]  ]]]]    ]]]]  ]]]] ]]]]]
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]                                               
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]       Development System
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]                           
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]       VxWorks version 5.3.1
 ]]]]]]]]]]]]]]]]]]]]]]]]]]       KERNEL: WIND version 2.5
 ]]]]]]]]]]]]]]]]]]]]]]]]]       Copyright Wind River Systems, Inc., 1984-1997 
                                                                               
                               CPU: Motorola MVME2700 - MPC 750.  Processor #0.
                              Memory Size: 0x2000000.  BSP version 1.1/5.
                                                                          
->  

Before that it was fine. Now if i change the boot parameters again and 
reboot it (dont turn the power supply "off") everything works fine.

Pleaseeee help me. I'll really appreciate it. 

Thanks a lot.

Chirag

From vxwexplo-errs@csg.lbl.gov  Mon Aug 26 16:44:53 2002
From: straymail@itozi.com (Stray Mail for itozi.com)
Date: Mon Aug 26 16:44:55 PDT 2002
Subject: Re: VxWorks bh() command question?

Please note, this is an _automated reply_

The e-mail you sent was incorrectly addressed and could not be delivered.  Please recheck the e-mail address.

However, your e-mail will be reviewed and forwarded to the appropriate person where possible.

IT @ OZI can be contacted on:
Sydney         (02) 9955 5388
International +61 2 9955 5388


From vxwexplo-errs@csg.lbl.gov  Mon Aug 26 20:20:39 2002
From: "Chirag H. Shroff" <shroff@noao.edu>
Date: Mon Aug 26 20:20:41 PDT 2002
Subject: VxWorks Error in boot line

Hello All,

We are using MVME2700 PPC. I use the "bootChange" command to change the boot 
parameters.

I add the following......

boot device          : dc
processor number     : 0 
host name            : console 
file name            : /opt/vxworks/tornado1PPC/target/config/mv2700/vxWorks 
inet on ethernet (e) : 192.168.19.3:ffffff00 
inet on backplane (b): 
host inet (h)        : 192.168.19.1 
gateway inet (g)     : 
user (u)             : gong 
ftp password (pw) (blank = use rsh): 
flags (f)            : 0x8 
target name (tn)     : data 
startup script (s)   : /ram2/startup.cmd
other (o)            :

Everything works fine as long as power is "ON". When i turn off the power 
supply and then after some time turn the power supply "on", I get the following
error messages.....

data> Error in boot line:
dc(0,0)Condole:/opt/vxwOrks/tornado1PPC/target/config/mV700/vxWorks e=q0.168.19.3:fffFfn00 h=192.168.y.1 u=gong f=0xh tn=data s=/ram/startup.cmd
                                                                      ^
                                                                        
Adding 2594 symbols for standalone.
Initializing RAM board..            
 

 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]  
      ]]]]]]]]]]]  ]]]]     ]]]]]]]]]]       ]]              ]]]]         (R)
 ]     ]]]]]]]]]  ]]]]]]     ]]]]]]]]       ]]               ]]]]            
 ]]     ]]]]]]]  ]]]]]]]]     ]]]]]] ]     ]]                ]]]]            
 ]]]     ]]]]] ]    ]]]  ]     ]]]] ]]]   ]]]]]]]]]  ]]]] ]] ]]]]  ]]   ]]]]]
 ]]]]     ]]]  ]]    ]  ]]]     ]] ]]]]] ]]]]]]   ]] ]]]]]]] ]]]] ]]   ]]]]  
 ]]]]]     ]  ]]]]     ]]]]]      ]]]]]]]] ]]]]   ]] ]]]]    ]]]]]]]    ]]]] 
 ]]]]]]      ]]]]]     ]]]]]]    ]  ]]]]]  ]]]]   ]] ]]]]    ]]]]]]]]    ]]]]
 ]]]]]]]    ]]]]]  ]    ]]]]]]  ]    ]]]   ]]]]   ]] ]]]]    ]]]] ]]]]    ]]]]
 ]]]]]]]]  ]]]]]  ]]]    ]]]]]]]      ]     ]]]]]]]  ]]]]    ]]]]  ]]]] ]]]]]
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]                                               
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]       Development System
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]                           
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]       VxWorks version 5.3.1
 ]]]]]]]]]]]]]]]]]]]]]]]]]]       KERNEL: WIND version 2.5
 ]]]]]]]]]]]]]]]]]]]]]]]]]       Copyright Wind River Systems, Inc., 1984-1997 
                                                                               
                               CPU: Motorola MVME2700 - MPC 750.  Processor #0.
                              Memory Size: 0x2000000.  BSP version 1.1/5.
                                                                          
->  

Before that it was fine. Now if i change the boot parameters again and 
reboot it (dont turn the power supply "off") everything works fine.

Please help me. I'll really appreciate it. 

Thanks a lot.

Chirag

From vxwexplo-errs@csg.lbl.gov  Mon Aug 26 22:14:25 2002
From: straymail@itozi.com (Stray Mail for itozi.com)
Date: Mon Aug 26 22:14:27 PDT 2002
Subject: Re: VxWorks Error in boot line

Please note, this is an _automated reply_

The e-mail you sent was incorrectly addressed and could not be delivered.  Please recheck the e-mail address.

However, your e-mail will be reviewed and forwarded to the appropriate person where possible.

IT @ OZI can be contacted on:
Sydney         (02) 9955 5388
International +61 2 9955 5388


From vxwexplo-errs@csg.lbl.gov  Mon Aug 26 22:14:58 2002
From: "Ray Pavri" <raypavri@sustainergy.com.au>
Date: Mon Aug 26 22:15:00 PDT 2002
Subject: VXWORKS

This is a multi-part message in MIME format.

------=_NextPart_000_00D2_01C24DDC.DA2B2640
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Employment opportunity for someone with VxWorks experience developing =
device drivers. Those interested and with a VxWorks background should =
email raypavri@sustainergy.com.au in the first instance.

regards

Ray Pavri

------=_NextPart_000_00D2_01C24DDC.DA2B2640
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.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Employment opportunity for someone with VxWorks =
experience=20
developing device drivers. Those interested and with a VxWorks =
background should=20
email <A=20
href=3D"mailto:raypavri@sustainergy.com.au">raypavri@sustainergy.com.au</=
A>&nbsp;in=20
the first instance.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>regards</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Ray Pavri</FONT></DIV></BODY></HTML>

------=_NextPart_000_00D2_01C24DDC.DA2B2640--

From vxwexplo-errs@csg.lbl.gov  Tue Aug 27 00:21:54 2002
From: straymail@itozi.com (Stray Mail for itozi.com)
Date: Tue Aug 27 00:21:56 PDT 2002
Subject: Re: VXWORKS

Please note, this is an _automated reply_

The e-mail you sent was incorrectly addressed and could not be delivered.  Please recheck the e-mail address.

However, your e-mail will be reviewed and forwarded to the appropriate person where possible.

IT @ OZI can be contacted on:
Sydney         (02) 9955 5388
International +61 2 9955 5388


From vxwexplo-errs@csg.lbl.gov  Tue Aug 27 07:45:24 2002
From: "Jackie Bhadange" <jbhadange@sentito.com>
Date: Tue Aug 27 07:45:27 PDT 2002
Subject: how to execute vxworks shell routines from other programs

This is a multi-part message in MIME format.

------=_NextPart_000_001C_01C24DAE.4F6BD370
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

 
Hi All,
 
I have a question regarding shell routines. Can I execute vxworks shell
routines(ex.inetstatShow) from my program? I would like to control the
output of these routines. I have a custom command line interface where I
would like to display this information. 
I cannot use the vxworks shell because 1. I would like to use my own
interface and 2. vxworks shell is not reentrant(and I would like to have
this capability for more than one session).
 
Any help is appreciated.
Thanks,
Jackie Bhadange
 
 

------=_NextPart_000_001C_01C24DAE.4F6BD370
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">

<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C24DAE.4F257BA0">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"PersonName"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>Hi All,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>I have a question regarding shell routines. =
Can I
execute <span class=3DSpellE>vxworks</span> shell <span =
class=3DGramE>routines(</span><span
class=3DSpellE>ex.inetstatShow</span>) from my program? I would like to =
control
the output of these routines. I have a custom command line interface =
where I
would like to display this information. <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>I cannot use the <span =
class=3DSpellE>vxworks</span>
shell because 1. I would like to use my own interface and 2. <span
class=3DSpellE><span class=3DGramE>vxworks</span></span> shell is not =
reentrant(and
I would like to have this capability for more than one =
session).<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>Any help is =
appreciated.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>Thanks,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><st1:PersonName><font size=3D2 face=3D"Courier =
New"><span
 style=3D'font-size:10.0pt;font-family:"Courier New"'>Jackie =
Bhadange</span></font></st1:PersonName><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_001C_01C24DAE.4F6BD370--

From vxwexplo-errs@csg.lbl.gov  Tue Aug 27 10:12:49 2002
From: straymail@itozi.com (Stray Mail for itozi.com)
Date: Tue Aug 27 10:12:52 PDT 2002
Subject: Re: how to execute vxworks shell routines from other programs

Please note, this is an _automated reply_

The e-mail you sent was incorrectly addressed and could not be delivered.  Please recheck the e-mail address.

However, your e-mail will be reviewed and forwarded to the appropriate person where possible.

IT @ OZI can be contacted on:
Sydney         (02) 9955 5388
International +61 2 9955 5388


From vxwexplo-errs@csg.lbl.gov  Wed Aug 28 02:15:42 2002
From: Ilia Bosis <Ilia_Bosis@packetlight.com>
Date: Wed Aug 28 02:15:43 PDT 2002
Subject: RE: VxWorks Error in boot line

Chirag !

The answer is simple:
In order for boot parameters (set by either bootloader menu utility or the
bootChange command) 
to survive the power off, two conditions must be met:
-- There must be a non-volatile storage device (NvRAM), 
   such as the FLASH memory, EEPROM or the battery-backed CMOS RAM on the
board; and
-- The BSP must provide a means for storing & extracting the boot parameters

   from this non-volatile storage device.

As it looks from Your posting, 
the boot parameters in Your card are stored in the conventional (volatile)
RAM.
After power off the bootloader will find a genuine garbage there.
The VxWorks bootloader is clever enough to recognize this situation and back
off to some default boot line, that's hard coded into the bootloader code
itself. As it looks from the error message, there are an extra spaces (or
even some unprintable garbage) at the end of the boot line. The bootloader
apparently doesn't know how to cope with this.

Points to look for:
-- The DEFAULT_BOOT_LINE in the <BSP_dir>/config.h defines the default boot
line, 
   the one the bootloader backs off to in case the boot configuration
storage is garbled.
   If You use Tornado configuration utility, look for the DEFAULT_BOOT_LINE
in the boot configuration.
-- The NV_RAM_SIZE in the same file tells the bootloader how much NvRAM it
has (if any).
-- usrBootLineInit() in the <BSP_dir>/bootConfig.c.
   This function is responsible for extracting the boot configuration at the
cold start (after power up).

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

   "Chirag H. Shroff" <shroff@noao.edu> wrote:
> 
> Hello All,
> 
> We are using MVME2700 PPC. I use the "bootChange" command to 
> change the boot 
> parameters.
> 
       [Skipped]
> 
> Everything works fine as long as power is "ON". When i turn 
> off the power 
> supply and then after some time turn the power supply "on", I 
> get the following
> error messages.....
> 
> data> Error in boot line:
> dc(0,0)Condole:/opt/vxwOrks/tornado1PPC/target/config/mV700/vx
> Works e=q0.168.19.3:fffFfn00 h=192.168.y.1 u=gong f=0xh 
> tn=data s=/ram/startup.cmd
>                                                               
>         ^

       [Skipped]

> 
> Before that it was fine. Now if i change the boot parameters 
> again and 
> reboot it (dont turn the power supply "off") everything works fine.
> 
> 
> Please help me. I'll really appreciate it. 
> 
> 
> Thanks a lot.
> 
> Chirag

From vxwexplo-errs@csg.lbl.gov  Wed Aug 28 07:23:38 2002
From: Richard Garrick <rgarrick@fwion.com>
Date: Wed Aug 28 07:23:39 PDT 2002
Subject: Re: VxWorks bh() command question?

Yuan,

You will find the EC603E PPC core in the MPC8260 only supports an
instruction address breakpoint register called the Instruction Address
Breakpoint Register (IABR or Special Purpose Register 1010). This means
there is no hardware breakpoint support for data accesses.  The way I get
around this is to put the desired data locations in the watch window in the
debugger and use strategically located instruction breakpoints.

Why do you suppose Motorola did not include a data address breakpoint
register in this otherwise expertly architected chip?

Rick Garrick
Senior Technical Staff Member
Firstwave Intelligent Optical Networking

------------- Original Message ----------------------

From vxwexplo-errs@csg.lbl.gov  Mon Aug 26 14:35:30 2002
From: Yuan Zheng-ZYUAN1 <ZYUAN1@motorola.com>
Date: Mon Aug 26 14:35:34 PDT 2002
Subject: VxWorks bh() command question?

Hello-
 
I am trying to trace the write operation for a block of memory address, and
bh() comes to my attention, however when i use it. I got the following error
-> bh 0x019A23D8, 1
WTX Error 0x100d9 (AGENT_INVALID_HW_BP)
value = -1 = 0xffffffff
while i dont have error with 
-> bh 0x019A23D8, 0
value = 0 = 0x0
Does this mean archetecture on my system (Motorola MPC8260) doesn't support
bh on memory write and can only support memory read? Also does the bh() can
only break for one memory location instead of multiple location?
 
Thanks a lot!

From vxwexplo-errs@csg.lbl.gov  Wed Aug 28 13:54:03 2002
From: "Dan Greene" <dgreene@snowshore.com>
Date: Wed Aug 28 13:54:05 PDT 2002
Subject: BIND (Berkeley Internet Name Domain) for VxWorks

Has anyone ported BIND to VxWorks?

Dan Greene
SnowShore Networks
Email: dgreene@snowshore.com

From vxwexplo-errs@csg.lbl.gov  Wed Aug 28 18:07:45 2002
From: "Jackie Bhadange" <jbhadange@sentito.com>
Date: Wed Aug 28 18:07:46 PDT 2002
Subject: do not want vxworks shell to attach to console by default

This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C24ED8.676CEF10
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi,
 
Is there a way to disable the shell from attaching to the console port? 
We want the shell but we want it accessible only through telnet (and not
through the console port).
Any ideas?
 
Thanks,
Jackie
 
 
 
 

------=_NextPart_000_0001_01C24ED8.676CEF10
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">

<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C24ED8.64C1F350">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Is there a way to disable the shell from attaching to =
the
console port? <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>We want the shell but we want it accessible only =
through telnet
(and not through the console port).<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Any =
ideas?</span></font></span><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Jackie<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0001_01C24ED8.676CEF10--

From vxwexplo-errs@csg.lbl.gov  Fri Aug 30 07:50:14 2002
From: Atkinson Andrew <AATKINSON1@qinetiq.com>
Date: Fri Aug 30 07:50:15 PDT 2002
Subject: VxWorks Target Scripts -  

Hi

I have a module which simply sits in a while loop getting input from the user (using scanf) and performs one of a number of options depending on the users choice - pretty straightforward.

Now, when I download this module from either the host tools or from the command line of the target shell and run the 'main' routine, everything is OK. We enter the while loop, the user is prompted for input and the system waits until input is entered - as you would expect using scanf. However, if I use the target shell download the module and call the 'main' routine using a startup script (specified as a boot parameter) the while loop is entered, but the user is repeatedly prompted for input - the program does not block on the call to scanf.

Can anyone explain what is happening here - hopefully it is something very simple, but I cannot think what at the moment.

Regards

Andy Atkinson
Software Engineer
Bldg 31a
QinetiQ, Bincleaves Technology Park
Weymouth
Dorset
DT4 8UR

Tel : 01305 764660
Fax : 01305 764661
e-mail : AATKINSON1@QinetiQ.com

vxworks

The Information contained in this E-Mail and any subsequent correspondence
is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying, distribution,
or any action taken or omitted to be taken in reliance on such information
is prohibited and may be unlawful.