From vxwexplo-errs@csg.lbl.gov  Mon Apr  1 04:03:08 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Mon Apr  1 04:03:10 PST 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Mon Apr  1 04:03:05 PST 2002
        Subject: Shared Memory Queue Receive
        Subject: Does "Building Envoy"mean to make a VxWorks core file in a bootable project?
        Subject: questions about building envoy?
        Subject: Mount/unmout drive
        Subject: bind error(0xc0002)
        Subject: How to build envoy in the Tornado GUI?
        Subject: What's the REPEATED START in I2C?
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Shared Memory Queue Receive
Date: Sun, 31 Mar 2002 15:02:51 GMT
From: "Paul Van Bellinghen" <pvanbell@att.net>
Organization: AT&T Worldnet
Message-ID: <vyFp8.15398$Eb5.1406309@bgtnsc05-news.ops.worldnet.att.net>
I just set up 2 Force PCore boards (PPC based) in a VME chassis as a shared
memory network. I tried using shared memory queues to send and receive
messages between the boards. However, I get a data access exception in bcopy
of msgQSmReceive. Any ideads why?I am sending/receiving a 4 byte pointer.
---------------------------
Newsgroups: comp.protocols.snmp,comp.os.vxworks
Subject: Does "Building Envoy"mean to make a VxWorks core file in a bootable project?
Date: 31 Mar 2002 17:42:57 -0800
From: xiangxinyan@yahoo.com.cn (Alice)
Organization: http://groups.google.com/
Message-ID: <fcc9f2b4.0203311742.5c80f62a@posting.google.com>
11.2 Building Envoy
These instructions assume that you are building VxWorks from your BSP
directory.
(1) Copy the include files.
(2) Copy vxworks/h/snmpdLib.h into the main include directory
($(WIND_BASE)/target/include)
(3) Replace the directory $(WIND_BASE)/target/include/snmp with the
directory snark/vxworks/h/snmp.
(4) Edit the sample configuration file described above and build. This
creates the
module snmp in the snark/vxworks/agent directory.
(5) Go to the directory in which you build your BSP.
(6) In the file config.h, find the line that reads: #include
"configAll.h" and insert
the following three lines before this line:
#define INCLUDE_MIB2_ALL
#define INCLUDE_SNMPD
#define INCLUDE_SHOW_ROUTINES
INCLUDE_SHOW_ROUTINES is only necessary if you are building a
subagent.
(7) Edit the Makefile in their BSP directory and include the path to
their snmp
module on the line MACH_EXTRA =. For example
MACH_EXTRA = /home/users/username/prologue/snark/vxworks/agent/snmp
(8) Rebuild VxWorks in the BSP directory. The SNMP agent should be
built into it
automatically.
Can I build envoy in the Tornado GNU without doing the steps above?
Thanks in advance!!!!!!!
---------------------------
Newsgroups: comp.protocols.snmp,comp.os.vxworks
Subject: questions about building envoy?
Date: 31 Mar 2002 18:30:46 -0800
From: xiangxinyan@yahoo.com.cn (Alice)
Organization: http://groups.google.com/
Message-ID: <fcc9f2b4.0203311830.3d19d526@posting.google.com>
question1:Are the following  2 parts the 2 ways to build the Envoy
SNMP server?
question2:In part2,do I need to make a bootrom with the VxWorks as
core file,and then boot            target?
question3:I see a snmputil.h, what is it for?Does it have any relation
with snmputil?
question4:Can I query the target agent with Mib Browser?>
Part 1
Ill assume that $SNMP is the installation directoy of the epilogue
stuff. Some of what is listed below is identical to section 5.2 of the
getting started guide.
Copy the snark/vxworks/cfgs/wind.cfg to the $SNMP dir.
Edit it to make the two key changes:
The first loadconfig statement in the file
loadconfig 'vxppc' ;my system
The SRCDIR setting:
equate SRCDIR 'yourdirectory to the SNMP dir' ;would be $SNMP
Now, make sure you have copied $SNMP/snark/vxworks/h/snmpdLib.h to
$WIND_BASE/target/h. Also, replace all contents of
$WIND_BASE/target/h/snmp with $SNMP/snark/vxworks/h/snmp.
Run makmak in the $SNMP directory specifying this cfg file.
In the SNMP directory, type in "make all".
If you get compile errors, try defining the following environment
variables. I set them for my NT box with Tornado under C:\Tornado:
WIND_BASE               C:\Tornado
WIND_BASE_TYPE          x86-win32
WIND_HOST_TYPE          x86-win32
Set these variables on an NT using the properties menu by right-mouse
clicking over your 'my computer'. On this dialog use the environment
tab.
Open up a new DOS shell and try the make all again.
Part 2
Make sure you go to your BSP directory and edit config.h as per
section 5.2 to add the defines BEFORE the configAll include.
Fire up tornado
Start a new vxWorks bootable image project based on this BSP.
Open up the build properties and click on the MACROS tab and find the
EXTRA_MODULES. In the value field, add the full path and name of the
snmp library. For some reason, it has no extension.
Rebuild all.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Mount/unmout drive
Date: Mon, 1 Apr 2002 14:43:30 +0900
From: "Seunghoon Lee\(̽\)" <shlee@itronics.co.kr>
Message-ID: <tqSp8.316$I7.2641@news.hananet.net>
Smart media(and compact flash) is mounted using dosFSLib.
When unmount, memory leak is occured.
(about 500kbytes)
How can I fix this problem?
My code is below...
STATUS smartConn()
{
 void *cbio;
 BLK_DEV *pBlkDev;
 if( (pBlkDev = smartDevCreate (512,  BLOCKS_PER_TRACK, TOTAL_BLOCKS,
BLOCK_OFFSET)) == (BLK_DEV*)NULL ) {
  printf("Error during smartDevCreate\n");
  return (ERROR);
 }
 printf("smartDevCreate() at block 0 OK\n");
 if ( (cbio = dcacheDevCreate(pBlkDev, NULL,DOSFS_EAR_DCACHE_SIZE, "s:")) ==
NULL ) {
        printf("Error during dcacheDevCreate: %x\n", errno);
        return (ERROR);
 }
 printf("dcacheDevCreate() recognized disk formatted in VxWorks. OK\n");
 /* create partition manager with FDISK style decoder, up to 3 parts */
 if( (smartCbio = dpartDevCreate( cbio, 3, usrFdiskPartRead )) == NULL ) {
  printf("Error during dpartDevCreate: 0x%x\n", errno);
  return (ERROR);
 }
 printf("dpartDevCreate() recognized disk formatted in VxWorks. OK\n");
 /* create the 1st file system, 8 simult. open files, with No CHKDSK */
 if (dosFsDevCreate("s:",dpartPartGet(smartCbio,0),
DOSFS_EAR_NUM_FILE_DESCRIPTOR, 0 /*DOS_CHK_REPAIR | DOS_CHK_SILENT */) ==
ERROR) {
        printf("Error during dosFsDevCreate: %x\n", errno);
        return (ERROR);
 }
 printf("dosFsDevCreate() recognized disk formatted in VxWorks. OK\n");
}
STATUS smartDisconn()
{
 DEV_HDR *pDevHdr;
 /*dosFsVolUnmount*/
 if( smartCbio == NULL )
  return (OK);
 if( dosFsVolUnmount(smartCbio) == (ERROR) ) {
  printf("Error during dosFsVolUnmount: 0x%x\n", errno);
  /*return (ERROR);*/
 }
 smartCbio = NULL;
 if( (pDevHdr = iosDevFind("s:", NULL)) == NULL ) {
  printf("Error during iosDevFind: 0x%x\n", errno);
  return (ERROR);
 }
 iosDevDelete(pDevHdr);
 return (OK);
}
---------------------------
Newsgroups: comp.os.vxworks
Subject: bind error(0xc0002)
Date: 31 Mar 2002 23:25:02 -0800
From: essenlee@hanmail.net (LEE MYUNG SUK)
Organization: http://groups.google.com/
Message-ID: <a0405799.0203312325.ef8896e@posting.google.com>
<Using>
server : solaris 7.0
vxWorks 5.4  tornado2.0
board : MPC860
 (unix)/etc/tornado/wind/target/config/ntp860/> make vxworks.st
 I maked vxworks.st, and downloaded(vxWorks.st with application). so,
It isn't bind error.
 but, I builded vxWorks at tornado 2.0 tool, and downloaded
(vxWorks.st with application). and It is bind error.
  (at winShell) -> i
                  errono = 0xc0002
I think that the problem is component(at workspace).
Do you know this problem? please answer me a piece of advice. then
thank you very much.
---------------------------
Newsgroups: comp.os.vxworks
Subject: How to build envoy in the Tornado GUI?
Date: 31 Mar 2002 23:25:19 -0800
From: xiangxinyan@yahoo.com.cn (Alice)
Organization: http://groups.google.com/
Message-ID: <fcc9f2b4.0203312325.27b3b01b@posting.google.com>
Can I build envoy in the Tornado GUI without doing the following steps ?
Thanks in advance!!!!!!!
11.2 Building Envoy
These instructions assume that you are building VxWorks from your BSP
directory.
(1) Copy the include files.
(2) Copy vxworks/h/snmpdLib.h into the main include directory
($(WIND_BASE)/target/include)
(3) Replace the directory $(WIND_BASE)/target/include/snmp with the
directory snark/vxworks/h/snmp.
(4) Edit the sample configuration file described above and build. This
creates the
module snmp in the snark/vxworks/agent directory.
(5) Go to the directory in which you build your BSP.
(6) In the file config.h, find the line that reads: #include
"configAll.h" and insert
the following three lines before this line:
#define INCLUDE_MIB2_ALL
#define INCLUDE_SNMPD
#define INCLUDE_SHOW_ROUTINES
INCLUDE_SHOW_ROUTINES is only necessary if you are building a
subagent.
(7) Edit the Makefile in their BSP directory and include the path to
their snmp
module on the line MACH_EXTRA =. For example
MACH_EXTRA = /home/users/username/prologue/snark/vxworks/agent/snmp
(8) Rebuild VxWorks in the BSP directory. The SNMP agent should be
built into it
automatically.
---------------------------
Newsgroups: comp.os.vxworks
Subject: What's the REPEATED START in I2C?
Date: 1 Apr 2002 03:36:43 -0800
From: 10month@hanmail.net (Changwon Lee)
Organization: http://groups.google.com/
Message-ID: <e76ae87c.0204010336.291d6850@posting.google.com>
Hi everyone.
I am finding the way to generate repeated start condition in i2c...
plz see bit stream below...
in binary...
11101000 0 00001101 0 0 11101001 0 01101100 1 0
in hexa...
0xE8 [ACK] 0x0D [ACK] [Sr] 0xE9 [ACK] 0x6C [NACK] [STOP].
as you can see... this device(0xE8) has sub address...
after sending write request and sub address, I NEED TO MAKE REPEATED
START condition....
thanks for any comments.... bye
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Mon Apr  1 05:48:01 2002
From: Richard Garrick <rgarrick@fwion.com>
Date: Mon Apr  1 05:48:03 PST 2002
Subject: BSP Developer Job Opening
FirstWave Intelligent Optical Networking, Inc. is looking for a BSP
developer to join the Core Embedded Software team
in Holmdel, NJ. FirstWave ION is developing leading edge Terahertz Metro
Core All Optical Switching systems.
The successful candidate will be well versed in distributed control system
hardware and software. We are looking for
a team player and an excellent communicator. Candidates for this position
will be able to interact with other engineers
to translate ideas and concepts into software designs, and then document the
same for reviews and inspections. Our team
is chartered with the development of software drivers and controller
software to support the Digital and Fiber Optic
engineering teams. Therefore, familiarity with A/D and D/A converters and
PowerPC processor based distributed controllers
is desired for this position. We are also looking for some experience with
TCP/IP client/server systems and familiarity
with PCI bus is a plus.
Requirements:
	BSEE desired, MSEE preferred
	C and asssembly language programming experience
	Real-time system design experience with vxWorks
	Debugging skill using scopes and ICE (emulator/JTAG/BDM)
	Understanding of memory, flash, communications and I/O subsystems
	Motorola PowerPC 8260 experience is desired
	PCI Bus software experience is a plus
Applicants must have the right to work in the USA.
No responses from agencies please.
Rick Garrick
FirstWave ION, Inc
From vxwexplo-errs@csg.lbl.gov  Mon Apr  1 21:39:28 2002
From: sgoswami@hss.hns.com
Date: Mon Apr  1 21:39:31 PST 2002
Subject: Query Regarding Performance Measurement on PPC6603e
vxworks
 hi all,
     I need a way to measure time on a Power PC system running VxWorks version
5.3.1  with a granularity/resolution of atleast 1microsecond. Is there any on
board timer which can be used. Currently the tick rate can be set (using
sysClkrateSet) only to a maximum of 5000 ticks/sec which gives me a resolution
of 0.2milliseconds.
regards,
saurabh
"DISCLAIMER: This message is proprietary to Hughes Software Systems Limited
(HSS) and is intended solely for the use of the individual  to whom it is
addressed. It may contain  privileged or confidential information  and should
not be circulated or used for any purpose other than for what it is intended. If
you have received this message in error, please notify the originator
immediately. If you are not the intended recipient, you are notified that you
are strictly prohibited from using, copying, altering, or disclosing the
contents of this message. HSS accepts no responsibility for loss or damage
arising from the use of the information transmitted by this email including
damage from virus."
From vxwexplo-errs@csg.lbl.gov  Tue Apr  2 04:03:15 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Tue Apr  2 04:03:17 PST 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Tue Apr  2 04:03:11 PST 2002
        Subject: [question]on the MPC107...
        Subject: singelStep debugger and semTake
        Subject: Task Question: Hows a task find its name and id ...
        Subject: Re: What's the REPEATED START in I2C?
        Subject: ~~~ Systemprogrammierer/-designer sucht neues Projekt ~~~
        Subject: Re: Task Question: Hows a task find its name and id ...
        Subject: Re: Task Question: Hows a task find its name and id ...
        Subject: Re: Task Question: Hows a task find its name and id ...
        Subject: Re: Task Question: Hows a task find its name and id ...
        Subject: Endian Problem with DMA addresses? IBM PPC 405GP
        Subject: Re: FCC Tx underrun on 8260 for single buffer implementation??
        Subject: Re: Strange /CS timing with GPCM on 8260 (SETA=1)
        Subject: Re: GoAhead Webserver Porting to VxWorks Porblems!
        Subject: DO I need run makmak to building envoy in TMS?
        Subject: Re: how to create tasks with desired status
        Subject: Tornado Developement system
        Subject: Re: rlogin client puts stdout to shell session
        Subject: Interrupt Nesting Level ?
        Subject: Install Tornado 2.0 on Win 2000 error, Help!!!
        Subject: Re: Pipes and Message Queues....blocking?
        Subject: Re: DosFs2 performance
        Subject: Re: Task Question: Hows a task find its name and id ...
        Subject: To know Heap Size
        Subject: Re: Interrupt Nesting Level ?
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: [question]on the MPC107...
Date: 1 Apr 2002 04:28:58 -0800
From: emycall@dreamx.net (Ahn Jung Hoon)
Organization: http://groups.google.com/
Message-ID: <2b0ae335.0204010428.753c2651@posting.google.com>
Hi, all.
I try to implement I2c function to read from EEPROM or to write to
EEPROM on the MPC750..
and I found source code(mpc107I2c.h) in
C:\Tornado2\target\h\drv\multi.
As below, there are three function declarations..
But I could not find the source code to implement function.
I want to know that Where these is..
please, help me..
- ------------------------------------------------------------------------
/* function declarations */
IMPORT VOID	mpc107I2cInit ();
IMPORT INT32 	mpc107i2cRead  (UINT32 deviceAddress, UINT32 numBytes,
                                char *pBuf);
IMPORT INT32 	mpc107i2cWrite (UINT32 deviceAddress, UINT32 numBytes,
                                char *pBuf);
- -------------------------------------------------------------------------
---------------------------
Newsgroups: comp.os.vxworks
Subject: singelStep debugger and semTake
Date: Mon, 1 Apr 2002 15:43:01 +0200
From: "Ofer Goren" <ofer_goren@iamba.com>
Organization: Verio
Message-ID: <newscache$xk5wtg$ew1$1@lnews.actcom.co.il>
- --
- ------------------------
Win2k Sp2
Tornado 2.02 for PPC
Diab 4.4b
Envoy 9.2
- ------------------------
Hi.
I'm using Diab compiler, and singelstep as my debugger. Everytime I reach a
semTake function with WAIT_FOREVER, the debugger is halt, I'm loosing
connection with the target, and I have to reset. So I cannot debug any
function calling semTake with WAIT_FOREVER.
Any ideas why is that? I know the debugger does not stop all the other
tasks, or I would not be able to use the target shell. However, other task
should give the semaphore....
Thanks,
Ofer,
Israel.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Task Question: Hows a task find its name and id ...
Date: Mon, 01 Apr 2002 14:27:51 GMT
From: "Jim" <REMOVEjgdon@ureach.comREMOVE>
Organization: Magma Communications Ltd.
Message-ID: <H7_p8.9581$f5.684560@news>
How can a task in vxWorks find its name and id ... ?
Does this need to be done in the task ahead of time ...
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: What's the REPEATED START in I2C?
Date: Mon, 1 Apr 2002 11:41:06 -0600
From: "G. Smith" <gsmith@onboard-software.com>
Message-ID: <3ca89a61$0$3689$39cecf19@nnrp1.twtelecom.net>
References: <e76ae87c.0204010336.291d6850@posting.google.com>
Go read the excellent response to the same question on
comp.sys.powerpc.tech.
"Changwon Lee" <10month@hanmail.net> wrote in message
news:e76ae87c.0204010336.291d6850@posting.google.com...
> Hi everyone.
> I am finding the way to generate repeated start condition in i2c...
> plz see bit stream below...
>
> in binary...
> 11101000 0 00001101 0 0 11101001 0 01101100 1 0
>
> in hexa...
> 0xE8 [ACK] 0x0D [ACK] [Sr] 0xE9 [ACK] 0x6C [NACK] [STOP].
>
> as you can see... this device(0xE8) has sub address...
> after sending write request and sub address, I NEED TO MAKE REPEATED
> START condition....
>
> thanks for any comments.... bye
---------------------------
Newsgroups: comp.os.vxworks
Subject: ~~~ Systemprogrammierer/-designer sucht neues Projekt ~~~
Date: Mon, 1 Apr 2002 19:44:27 +0200
From: "M.Thoemel" <matthias.thoemel@t-online.de>
Organization: T-Online
Message-ID: <a8a69v$via$07$1@news.t-online.com>
Guten Tag,
ich bin freier Systemprogrammerer und C-Designer mit einem sehr breiten
Spektrum.
Ab dem Juli/2002 stehe ich wieder zur Verfgung.
Meine Schwerpunkte sind:
- - C (aber auch andere Sprachen!)
- - Realtimesysteme
- - systemnahe Programmierung
- - UML (RoseRT)
- - spezielle Hardware-Schnittstellen
- - Netzwerke
- - Treiber
- - Streamsdriver
- - Grafische Datenauswertung/Darstellung
- - Software-Messungen
- - Gruppenleitung
- - Projektierung
- - Projektleitung
  etc...
Sie knnen sich im Detail informieren unter:
http://matthias.thoemel.bei.t-online.de
Ich wrde mich ber einen Kontakt mit Ihnen freuen.
Ihr Matthias Thmel
(matthias.thoemel@t-online.de)
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Task Question: Hows a task find its name and id ...
Date: Mon, 01 Apr 2002 19:13:32 GMT
From: "Verizon" <vze399g7@verizon.net>
Message-ID: <wj2q8.3602$AE1.2275@nwrddc03.gnilink.net>
References: <H7_p8.9581$f5.684560@news>
Task ID :
  taskid = taskIdSelf();
Name :
 taskName( taskid );
"Jim" <REMOVEjgdon@ureach.comREMOVE> wrote in message
news:H7_p8.9581$f5.684560@news...
> How can a task in vxWorks find its name and id ... ?
>
> Does this need to be done in the task ahead of time ...
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Task Question: Hows a task find its name and id ...
Date: 1 Apr 2002 11:40:24 -0800
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204011140.290fbc43@posting.google.com>
References: <H7_p8.9581$f5.684560@news>
Hello,
A simple look in the reference manual entries for taskLib and taskInfo
would reveal the following two functions:
taskIdSelf() - get the task ID of a running task
taskName() - get the name associated with a task ID
HTH,
John...
"Jim" <REMOVEjgdon@ureach.comREMOVE> wrote in message news:<H7_p8.9581$f5.684560@news>...
> How can a task in vxWorks find its name and id ... ?
>
> Does this need to be done in the task ahead of time ...
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Task Question: Hows a task find its name and id ...
Date: Mon, 01 Apr 2002 20:04:47 GMT
From: "Jim" <REMOVEjgdon@ureach.comREMOVE>
Organization: Magma Communications Ltd.
Message-ID: <z33q8.9627$f5.692206@news>
References: <H7_p8.9581$f5.684560@news> <wj2q8.3602$AE1.2275@nwrddc03.gnilink.net>
Thanks ...
I missed them in the manual ... oops ...
"Verizon" <vze399g7@verizon.net> wrote in message
news:wj2q8.3602$AE1.2275@nwrddc03.gnilink.net...
> Task ID :
>
>   taskid = taskIdSelf();
>
> Name :
>
>  taskName( taskid );
>
> "Jim" <REMOVEjgdon@ureach.comREMOVE> wrote in message
> news:H7_p8.9581$f5.684560@news...
> > How can a task in vxWorks find its name and id ... ?
> >
> > Does this need to be done in the task ahead of time ...
> >
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Task Question: Hows a task find its name and id ...
Date: Mon, 01 Apr 2002 20:05:20 GMT
From: "Jim" <REMOVEjgdon@ureach.comREMOVE>
Organization: Magma Communications Ltd.
Message-ID: <443q8.9628$f5.692090@news>
References: <H7_p8.9581$f5.684560@news> <488e459a.0204011140.290fbc43@posting.google.com>
thnx
"John" <john_94501@yahoo.com> wrote in message
news:488e459a.0204011140.290fbc43@posting.google.com...
> Hello,
>
> A simple look in the reference manual entries for taskLib and taskInfo
> would reveal the following two functions:
>
> taskIdSelf() - get the task ID of a running task
> taskName() - get the name associated with a task ID
>
> HTH,
>
> John...
>
> "Jim" <REMOVEjgdon@ureach.comREMOVE> wrote in message
news:<H7_p8.9581$f5.684560@news>...
> > How can a task in vxWorks find its name and id ... ?
> >
> > Does this need to be done in the task ahead of time ...
---------------------------
Newsgroups: comp.os.vxworks
Subject: Endian Problem with DMA addresses? IBM PPC 405GP
Date: 1 Apr 2002 15:04:19 -0800
From: arun4vxworks@indiatimes.com (Arun Prasad)
Organization: http://groups.google.com/
Message-ID: <e38d912c.0204011504.b2e9420@posting.google.com>
Hi,
 I'm in the process of porting a Linux NIC driver (PCI based) into
VxWorks.
 I have a doubt with DMA address accessing.
 I use sysPciInLong() and sysPciOutLong() functions to access PCI I/O
region. This takes care of the Endian Issue by using " It uses the
load word byte-reversed instruction" and "It uses the store word
byte-reversed instruction" as I've seen the code in sysLib.s > I don't
find any problem with this.
 However,
  I'm having some problem in accessing DMA addresses as per our Card's
report.
 Before I pass the DMA address (gained by cacheDmaMalloc() ), I do the
LOCAL2PCI_MEM() conversion so that the card will be able to access
this address. (Special thanks to Michael Lawnick in explaining this
patiently). But we are not doing any endian adjustments (conversion).
 My question is do we need to byte swap the DMA addresses before
giving it to the PCI based NIC card? and do the vice versa after
reading it from the card?
 The question raised because, our card is PCI based and our CPU is PPC
(big endian).
 Anything else I'm missing?
 Any reply would be of great help.
 And a supplementary question.
 For the linux's virt_to_bus() call in our software we are calling
LOCAL2PCI_MEM(). What about bus_to_virt() implemention? What should we
do with that?
 Any Linux cum VxWorks Gurus' suggestions?
Note :
 We are not making use of virtual memory in VxWorks.
Regards
Arun
---------------------------
Newsgroups: comp.sys.powerpc.misc,comp.os.vxworks
Subject: Re: FCC Tx underrun on 8260 for single buffer implementation??
Date: 1 Apr 2002 15:41:13 -0800
From: ryeung@earthlink.net (Raymond Yeung)
Organization: http://groups.google.com/
Message-ID: <d83bb8e3.0204011541.51527249@posting.google.com>
References: <d83bb8e3.0203291031.6747fea8@posting.google.com> <a833s1$k65$1@newsreader.mailgate.org>
A lot of good questions, Dan.
"Dan Gold" <gold@ensemble.com> wrote in message news:<a833s1$k65$1@newsreader.mailgate.org>...
> "Raymond Yeung" <ryeung@earthlink.net> wrote in message
> news:d83bb8e3.0203291031.6747fea8@posting.google.com...
> > I'm using 0K26N (ancient revision) of 8260.  All
> > frames are transmitted from big buffers (enough
> > to hold maximum frame size).
>
> Some more info would be nice.  I'd infer you're running 100Base-T on an FCC,
Not quite.  On target side, it's actually auto-negotiating with a peer running
100BaseT full duplex.  Off the bat, I know this would cause problem w.r.t.
duplex.  But I'm not expecting an underrun though.
> correct ?  Which FCC  ?  Are you running (since it's an A.1 part) on an old
> VADS (or EST) board ?  Your own design ? What is the CPU and CPM speed ?
> VxWorks, or your own stuff ?
It's our own board modified from EST board design.  CPU is at 200MHz and CPM
at 133MHz.  We're using VxWorks (SBC8260 BSP).
>
> > As I pump up (bi-directional) data rate, this
> > underrun thing shows up.  I'm really not expecting
> > it.  My understanding is that Tx underrun would only
> > happen if I use multiple buffers per frame (and set
> > the "R" bit too early).  Scanning through Motorola's
> > errata list, I couldn't find any logged issue directly
> > related to this.
> >
> > Has anyone experienced this?  What did you find?
>
> The Tx-underrun is usually because the FCCs Tx FIFO requested more data and
> the CPM couldn't get data out of your buffers fast enough to fill the FIFO.
> Are your buffers on the 60x or local bus ?  What else is going on in the
The buffers are on 60x bus (running at 33MHz).
> 8260 (i.e. other peripherals) when this is happening ?  Do you have someone
Not much else, other than AAL5 on FCC1.  Fast Ethernet is run on FCC2.
> hogging the bus (or the CPM) for a long period of time, so it couldn't
> service the FCC request or couldn't access the bus ?  Have you looked at
> your Tx/Rx clocks (from the PHY) to make sure they look ok ?  Since you're
> running full duplex, are you sure the LPB and FDE bits are set in the 8260,
> and your PHY is in FDX mode ?
Good questions. I don't have an answer to them yet, except the last one; it's
probably not in FDX mode, due to misconfiguration (as I described above).
Are you sure you're setting the "R" bit at
> the appropriate time even for 1 buffer ? (i.e. after the length, L-bit, are
> set).
This one could be tricky.  It appears that the "R" bit may be set before
the L-bit.  I need to study the code in a bit more details.  That's a good
point, Dan.
Does this happen on a single board with the A1 or other boards (with
> the A1) too ?  Does it make a difference if you use small or large frames ?
> At what rate do you see this "under-run thing" start to happen ?
>
>   Dan Gold  gold@ensemble.com
---------------------------
Newsgroups: comp.sys.powerpc.tech,comp.sys.powerpc.misc,comp.os.vxworks
Subject: Re: Strange /CS timing with GPCM on 8260 (SETA=1)
Date: 1 Apr 2002 15:45:47 -0800
From: ryeung@earthlink.net (Raymond Yeung)
Organization: http://groups.google.com/
Message-ID: <d83bb8e3.0204011545.2d5b9ac4@posting.google.com>
References: <d83bb8e3.0203260007.16de4f42@posting.google.com>
It appears that the /PGTA assertion time is too long;
8260 not only terminates the current access, but also
terminates th next access (once /PGTA assertion is sampled
on 8260 rising clock edge, bus access is terminated in 2
clock cycles).  I believe that's why the next /CS only
last for 1 clock cycle.
The resolution we tested out is to ensure /PGTA be just
1 clock cycle.  Also, lining up /PGTA to center around
rising edge of 8260 clock may help.
ryeung@earthlink.net (Raymond Yeung) wrote in message news:<d83bb8e3.0203260007.16de4f42@posting.google.com>...
> I've an external device interfacing with 8260 via a CPLD.
> The device is under GPCM control with SETA=1 (i.e. external
> access termination).  A READY signal is hooked up to /PGTA
> to trigger the access termination.
>
> I'm seeing some strange timing on the /CS.  After the first
> successful access, the device asserts its READY, which gets
> translated by CPLD to /PGTA.  The /CS is deasserted shortly
> after and stays that way for a few clock cycles.  In the
> mean time, /PGTA becomes deasserted.  So far so good.
>
> Then /CS becomes asserted again, and lasts only for about
> 1 clock cycle and deasserted itself.  Why?  There's data to
> write to the device (so I do expect /CS to be asserted).  But
> /PGTA is not asserted, so what terminates the access?  Any
> other register setting or ext. signals I need to check to get
> more insight?
>
> Furthermore, 8260 manual says that /GTA needs to be one clock
> cycle long (see sec. 10.5.2).  Is it harmful (other than slowing
> things down) to have a longer /PGTA (say, a few clock cycles)?
>
> Thanks,
> Raymond
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: GoAhead Webserver Porting to VxWorks Porblems!
Date: 1 Apr 2002 18:50:06 -0800
From: Xiaohua.zhang@163.com (xiaohua)
Organization: http://groups.google.com/
Message-ID: <49321d54.0204011850.26c84db@posting.google.com>
References: <49321d54.0203301824.3b3e3a6b@posting.google.com> <488e459a.0203310318.3fd8cc9d@posting.google.com>
*****************************************************
1. Download GoAhead Web Server from Http://www.goahead.com
2. Use Visual C++ to compile webcomp.c and result the webcomp.exe
3. Make a filelist file,and run webcomp prefix file>webrom.c
   And at the end of the webrom.c, it shows:
   ---------------------------------------------------------------
   websRomPageIndexType websRomPageIndex[] = {
    { T("/about.htm"), page_0, 4353 },
    { T("/addgroup.asp"), page_1, 933 },
    { T("/addlimit.asp"), page_2, 897 },
    { T("/adduser.asp"), page_3, 1077 },
    { T("/asp.asp"), page_4, 621 },
    { T("/contents.asp"), page_5, 2146 },
    { T("/delgroup.asp"), page_6, 609 },
    { T("/dellimit.asp"), page_7, 627 },
    { T("/deluser.asp"), page_8, 619 },
    { T("/docs.htm"), page_9, 1800 },
    { T("/dspuser.asp"), page_10, 623 },
    { T("/FAQ.htm"), page_11, 9408 },
    { T("/forms.asp"), page_12, 678 },
    { T("/home.asp"), page_13, 753 },
    { T("/loadcfg.asp"), page_14, 597 },
    { T("/overview.htm"), page_15, 3037 },
    { T("/savecfg.asp"), page_16, 587 },
    { T("/small.htm"), page_17, 887 },
    { T("/tests.htm"), page_18, 506 },
    { T("/title.htm"), page_19, 321 },
    { T("/treeapp.asp"), page_20, 1089 },
    { T("/um.htm"), page_21, 4091 },
    { 0, 0, 0 },
    };
    -----------------------------------------------------------------
4. Modify the /VxWorks/main.c in the webvxmain() function.
   I want to delay more time,so I add some delay.
   ------------------------------------------------------------------
   while (!finished) {
		for(i=0;i<50000;i++)
		if (socketReady(-1) || socketSelect(-1, 2000)) {
			socketProcess(-1);
		}
		websCgiCleanup();
		emfSchedProcess();
	}
   -------------------------------------------------------------------
5. Build a bootable project with  the BSP.
   Add the Load/Unload Module in the components.
6. Build a downloadable project.
   Add the \webserver\*.c, but exclude the webSSL.c and webcomp.c.
   Of course it include the webrom.c
   Add the "-DWEBS -DUEFM -DVXWORKS -DWEB_PAGE_ROM" in the compiler flag
   Then I build the project. OK
7. In the Shell, I type "sp(webvxmain)"
   It return OK.
8. Using IE:
   "http://192.168.0.131"
9. It show in the Hyperterminal:
   ----------------------------------------------
   Data abort
   Exception address: 0x0005e6c0
   Current Processor Status Register: 0x20000013
   Task: 0x346e7c "s1u0"
   ----------------------------------------------
10. Using the Debugger, I find the error address is "_cksum"
11. I enlarge the TCP/IP pramaters ,but it still not work.
Need I modify the "directory" in the main.c?
Somebody tell me the "redirction: function has some bug,anybody knows?
*****************************************************
john_94501@yahoo.com (John) wrote in message news:<488e459a.0203310318.3fd8cc9d@posting.google.com>...
> Hello,
>
> [steps deleted]
>
> > 5.Visit the target board using the IE http://192.168.0.131
> >
> > 6.Error:
> >
> > Data abort
> > Exception address: 0x0005e6c0
> > Current Processor Status Register: 0x20000013
> > Task: 0x2c7de0 "webd"
> >
> > *********************
> > *What can I do next?*
> > *********************
>
> Try starting the debugger and find out what caused the exception...
> since you have source code you should be able to work this out
> relatively easily using the debugger.
>
> HTH,
>
> John...
>
> Hint: If you want more specific answers you need to post much more
> detailed information.
---------------------------
Newsgroups: comp.os.vxworks,comp.protocols.snmp
Subject: DO I need run makmak to building envoy in TMS?
Date: 1 Apr 2002 19:06:55 -0800
From: xiangxinyan@yahoo.com.cn (Alice)
Organization: http://groups.google.com/
Message-ID: <fcc9f2b4.0204011906.64459731@posting.google.com>
The following is from "Tornado for Managed Switches 2.0.1
Programmer&#8217;s Guide"
Since TMS users are not required to (and should not) run makmak, the
install.h file is pre-built and provided in the distribution. This
file should be edited for uninstalling any options or installing new
options.
I am using TMS,don't I need to run makmak to make makefiles for
building envoy?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: how to create tasks with desired status
Date: 1 Apr 2002 21:00:25 -0800
From: senthilb@comneti.com (senthil)
Organization: http://groups.google.com/
Message-ID: <26ca8a8f.0204012100.1810306d@posting.google.com>
References: <26ca8a8f.0203290212.2761c2ea@posting.google.com> <Pine.GSO.4.42.0203290934031.352-100000@zimbra>
Thanks Keith.
    I intially planned with taskinit and some API functions. But then
i decided to implement it using semaphores . Ur suggestions too
includes the semaphore logic as i decided.
   Can you explain me how to use the intlock and unlock tricks. I
believe it will be useful for me sometimes .
Thanks for ur feedback.
Cheers
senthil
---------------------------
Newsgroups: comp.os.vxworks
Subject: Tornado Developement system
Date: Tue, 2 Apr 2002 11:13:11 +0530
From: "Girish pathak" <pathak_girish@yahoo.com>
Message-ID: <a8bghn$ph5qe$1@ID-120142.news.dfncis.de>
Hi ,
I have compiled program a in Tornado development system,which includes
semaphore.h and uses semPxLib,
while compiling it compiles fine but when downloading it gives error like
Errors while downloading
C:/Tornado/target/proj/Project1/SIMNTgnu/Project1.out:
_sem_wait
_sem_destroy
_sem_init
_sem_post
Does any body know how to link semPxLib file while downloading to simulator
Girish
pathak_girish@yahoo.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: rlogin client puts stdout to shell session
Date: Tue, 02 Apr 2002 07:05:31 GMT
From: pjt@iki.fi
Organization: Embassy of Elbonia, 42 Krvi-Tasch Avenue, Szohod
Message-ID: <m34riuft3f.fsf@dslnm.trs.ntc.nokia.com>
References: <m3d6xogb5y.fsf@dslnm.trs.ntc.nokia.com> <3CA2FDDC.8010007@spamm.me.l8s.co.uk> <m3adssg8pt.fsf@dslnm.trs.ntc.nokia.com> <m37knwg5al.fsf@dslnm.trs.ntc.nokia.com> <ua6nv9bdh6d36e@corp.supernews.com>
Sender: ptaipale@dslnm.trs.ntc.nokia.com
"Hwa Jin Bae" <hjb@pso.com> writes:
> The rlogin child task simply reads from the socket and write to stdout.
But why is stdout the global one, and not that of the calling task
(when stdin is that of the calling task, and not the global one?)
- --
Pekka Taipale -- pjt@iki.fi -- http://www.iki.fi/pjt/
---------------------------
Newsgroups: comp.os.vxworks
Subject: Interrupt Nesting Level ?
Date: 2 Apr 2002 00:19:18 -0800
From: fxcrazy@yahoo.com (Tom)
Organization: http://groups.google.com/
Message-ID: <633e72d2.0204020019.66a72c64@posting.google.com>
Is there any constraints like maximum number of Interrupts being nested ??
- - Tom
---------------------------
Newsgroups: comp.os.vxworks
Subject: Install Tornado 2.0 on Win 2000 error, Help!!!
Date: Tue, 2 Apr 2002 16:57:11 -0800
From: "Qian Ling" <lingqian@lucent.com>
Organization: Lucent Technologies, Columbus, Ohio
Message-ID: <a8brst$7gf@nntpa.cb.lucent.com>
Dear all:
  When I install the Tornado 2.0 on my win 2000 machine
after I input the serial number and press "next>" button
a dialog jump out with
"Can't initiate SETUP: ZIP_ERROR. please correct this problem
then run setup again."
  However my colleagues have installed it on same machine
successfully. I try to find out the reason, and tried:
  (1) close and uninstall Mcafee Antivirus ==> Same Error!
  (2) Install the tornado patch ==> Same Error!
  (3) trace the TCL script, but the error is in a external
function call (setupInit, not a TCL script) ==> No way to solve!
  (4) Uninstall Vs.NET beta and install ==> Same Error!
  Can anyone tell me what wrong with my machine and/or tornado?
I do not want to reinstall win2000
  manu thanks
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Pipes and Message Queues....blocking?
Date: Tue, 2 Apr 2002 11:48:07 +0200
From: "Michael Lawnick" <Lawnick@softec.de>
Organization: Buergernetz Dillingen
Message-ID: <a8buoo$oec$1@snoopy.bndlg.de>
References: <6755aee5.0203291212.6c96bd2b@posting.google.com>
Reply-To: "Michael Lawnick" <Lawnick@softec.de>
Sender: mlawnick@p5088eae9.dip.t-dialin.net
Hi Whacked,
you could code
if ((ioctl (fd, FIONMSGS, &nMessages)!=ERROR) && (nMessages == 0))
  write (fd, message,50);
but keep track of the time-leak between test and message drop. A mutex could
make it more secure.
Else check setting timeout for the fd. I'm not really sure, but I seem to
remember, that it is possible to set the fd to non-blocking like a socket,
just give it a try (an tell your experience).
on = TRUE;
status = ioctl (sFd, FIONBIO, &on);
HTH
Michael
"Whacked" <kenb88@hotmail.com> schrieb im Newsbeitrag
news:6755aee5.0203291212.6c96bd2b@posting.google.com...
> Hi,
>
> Here is the situation. Ive set up a pipe for IPC that can accept only
> one message. Something like the following:
>
> pipDevCreate ("/pipe/demo",1,50)
>
> Then I write a message to the pipe (pseudo code)
>
> fd = open("/pipe/demo", 0_RDRW,0)
> write (fd, msg,50)
> close (fd)
>
> Now, what happens if I immediately write to the pipe again before any
> process reads?
>
> fd = open("/pipe/demo", 0_RDRW,0)
> write (fd, message,50)
> close (fd)
>
> It appears to me that I will be blocked in the write call since there
> is already a message in the pipe. This is not what I want to happen. I
> would like for the 2nd message to simply be dropped.
>
> The pipe facility is based on message queues. If I was setting up a
> queue, I could pass the it a NO_WAIT timeout parameter. So, I could:
>
> Q_ID = msgQCreate (1,50,MSG_Q_FIFO)
> msgQSend (Q_ID, msg, 50, NO_WAIT, MSG_PRI_NORMAL)
>
> and then send the second message
>
> msgQSend (Q_ID, msg, 50, NO_WAIT, MSG_PRI_NORMAL)
>
> This message would get dropped on the floor if the first one had not
> been read from the queue.
>
> I need to iplement this behavior with pipes. Since the pipes are based
> on message queues in VxWorks, can I do it??
>
> thanks,
>
> Whacked
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: DosFs2 performance
Date: Tue, 2 Apr 2002 12:04:37 +0200
From: "Michael Lawnick" <Lawnick@softec.de>
Organization: Buergernetz Dillingen
Message-ID: <a8bvnn$p4u$1@snoopy.bndlg.de>
References: <3ca612ce.1867405@netnews.attbi.com>
Reply-To: "Michael Lawnick" <Lawnick@softec.de>
Sender: mlawnick@p5088eae9.dip.t-dialin.net
Hi David,
have not worke with AE yet, but with dosFs2.
First access to the device will do a rough check and fills buffers. So the
first question is:
Do you notice the delay on every open() or on the first open() (since
reboot) associated to this device ?
Michael
"David H. Olson" <dcolson@ieee.org> schrieb im Newsbeitrag
news:3ca612ce.1867405@netnews.attbi.com...
> I'm posting this from home, so don't have all the details, but here
> goes anyway.  We're running under the latest non-AE vxWorks on a
> PPC750 and using the DosFs2 file system over a flash drive.  We've
> noticed that opening a file takes a surprisingly long time (~100 ms).
> The transfer speed, once the file is open, seems in line w/ what we
> would predict given the specs of the various parts & busses involved.
> So should we be surprised at how long it takes to open a file?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Task Question: Hows a task find its name and id ...
Date: Tue, 02 Apr 2002 10:14:47 GMT
From: pjt@iki.fi
Organization: Embassy of Elbonia, 42 Krvi-Tasch Avenue, Szohod
Message-ID: <m3zo0me5ri.fsf@dslnm.trs.ntc.nokia.com>
References: <H7_p8.9581$f5.684560@news> <488e459a.0204011140.290fbc43@posting.google.com>
Sender: ptaipale@dslnm.trs.ntc.nokia.com
john_94501@yahoo.com (John) writes:
> A simple look in the reference manual entries for taskLib and taskInfo
> would reveal the following two functions:
Right, Jim's question was too easy, but how about this one: how do I
find out the IP address at the other end of a connection which has
been created with telnetCallAdd()? It seems that the task created by
telnetCallAdd cannot use getpeername() to the fd found in its own TCB.
I.e, how to read into a variable the information displayed by
inetstatShow?
I can think of ways to do it (set stdout to a file, call inetstatShow,
look for the correct line in the file) but is there a cleaner way?
- --
Pekka Taipale -- pjt@iki.fi -- http://www.iki.fi/pjt/
---------------------------
Newsgroups: comp.os.vxworks
Subject: To know Heap Size
Date: 2 Apr 2002 03:15:40 -0800
From: mvsenthilkumar@yahoo.com (M V Senthil Kumar)
Organization: http://groups.google.com/
Message-ID: <c5908dd.0204020315.424faadb@posting.google.com>
Is there any function which gives the Heap size available?I want to
use this function/code before allocating memory sothat if the
available heap size is less than the size of memory tobe allocated
then malloc neednot be called.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Interrupt Nesting Level ?
Date: Tue, 02 Apr 2002 06:32:04 -0500
From: joe durusau <durusau@bellsouth.net>
Organization: BELLSOUTH.net
Message-ID: <3CA996B4.831EAD36@bellsouth.net>
References: <633e72d2.0204020019.66a72c64@posting.google.com>
Tom wrote:
> Is there any constraints like maximum number of Interrupts being nested ??
>
> - Tom
It would be limited by available stack size and the size of the work queue.
Having said that, I can't imagine having more than 1 or two nested
if the ISRs are written decently and the system doesn't have some
device sending entirely too many interrupts.
Speaking only for myself,
Joe Durusau
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Wed Apr  3 04:03:16 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Wed Apr  3 04:03:18 PST 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Wed Apr  3 04:03:11 PST 2002
        Subject: Re: Tornado Developement system
        Subject: Re: To know Heap Size
        Subject: Re: GoAhead Webserver Porting to VxWorks Porblems!
        Subject: Re: Pipes and Message Queues....blocking?
        Subject: Is there a vxworks kernel consisteny checker ?
        Subject: Lex & Yacc tools with VxWorks
        Subject: Re: How to Communicate between Two vxsim Targets in Windows 2000
        Subject: Re: Lex & Yacc tools with VxWorks
        Subject: Re: How to Communicate between Two vxsim Targets in Windows 2000
        Subject: Re: Establishing ppp Connection between vxWorks and windows2000
        Subject: Distruction of static objects in function scope
        Subject: Startup scripts
        Subject: arpAdd Question
        Subject: Unsupported code?
        Subject: What is the relationship between .c file generatd by "mibcomp -stub"and by idbGen?
        Subject: Re: Startup scripts
        Subject: Re: DosFs2 performance
        Subject: Re: Lex & Yacc tools with VxWorks
        Subject: Re: DosFs2 performance
        Subject: console in TMS can't display in the right way
        Subject: Re: Establishing ppp Connection between vxWorks and windows2000
        Subject: eieio and sync in sysInLong() and sysOutLong()
        Subject: Re: Startup scripts
        Subject: Re: Startup scripts
        Subject: Re: Lex & Yacc tools with VxWorks
        Subject: Re: Lex & Yacc tools with VxWorks
        Subject: Re: Distruction of static objects in function scope
        Subject: Re: Install Tornado 2.0 on Win 2000 error, Help!!!
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado Developement system
Date: Tue, 2 Apr 2002 14:08:47 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3ca99f48@brateggebdc5.br-automation.co.at>
References: <a8bghn$ph5qe$1@ID-120142.news.dfncis.de>
Hi,
you need to build a custom simulator image and include POSIX semaphore
support.
Alternatively, you can also switch to using VxWorks native semaphores (see
semLib.h).
To build your custom simulator, you can use the provided project simpc_vx.
Alternatively, you can create a new bootable VxWorks project based on that
project.
Then add the above mentioned POSIX semaphores to the VxWorks configuration.
The result of the build is a file VxWorks.exe that you then select as your
custom simulator when launching the simulator.
hth
Werner
"Girish pathak" <pathak_girish@yahoo.com> wrote in message
news:a8bghn$ph5qe$1@ID-120142.news.dfncis.de...
> Hi ,
> I have compiled program a in Tornado development system,which includes
> semaphore.h and uses semPxLib,
> while compiling it compiles fine but when downloading it gives error like
>
> Errors while downloading
> C:/Tornado/target/proj/Project1/SIMNTgnu/Project1.out:
> _sem_wait
> _sem_destroy
> _sem_init
> _sem_post
>
> Does any body know how to link semPxLib file while downloading to
simulator
>
> Girish
> pathak_girish@yahoo.com
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: To know Heap Size
Date: Tue, 2 Apr 2002 14:11:31 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3ca99feb$1@brateggebdc5.br-automation.co.at>
References: <c5908dd.0204020315.424faadb@posting.google.com>
Hi,
you problably want use memFindMax()
It gives you the largest available memory block (in the system memory
partition)
hth
Werner
"M V Senthil Kumar" <mvsenthilkumar@yahoo.com> wrote in message
news:c5908dd.0204020315.424faadb@posting.google.com...
> Is there any function which gives the Heap size available?I want to
> use this function/code before allocating memory sothat if the
> available heap size is less than the size of memory tobe allocated
> then malloc neednot be called.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: GoAhead Webserver Porting to VxWorks Porblems!
Date: Tue, 2 Apr 2002 14:18:41 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3ca9a199$1@brateggebdc5.br-automation.co.at>
References: <49321d54.0203301824.3b3e3a6b@posting.google.com> <488e459a.0203310318.3fd8cc9d@posting.google.com> <49321d54.0204011850.26c84db@posting.google.com>
Hi,
Did you check that you have enough stack?
The error seems to result from access to non-existent memory (or otherwise
not allowed) - maybe one of the ARM gurus here can tell you what exactly
wents wrong.
Did you check if it works without the modification?
Did you check if it works with a 'proper' URL (one _including_ the filename
to serve out)?
hth
Werner
"xiaohua" <Xiaohua.zhang@163.com> wrote in message
news:49321d54.0204011850.26c84db@posting.google.com...
> *****************************************************
> 1. Download GoAhead Web Server from Http://www.goahead.com
> 2. Use Visual C++ to compile webcomp.c and result the webcomp.exe
> 3. Make a filelist file,and run webcomp prefix file>webrom.c
>    And at the end of the webrom.c, it shows:
>    ---------------------------------------------------------------
>    websRomPageIndexType websRomPageIndex[] = {
>     { T("/about.htm"), page_0, 4353 },
>     { T("/addgroup.asp"), page_1, 933 },
>     { T("/addlimit.asp"), page_2, 897 },
>     { T("/adduser.asp"), page_3, 1077 },
>     { T("/asp.asp"), page_4, 621 },
>     { T("/contents.asp"), page_5, 2146 },
>     { T("/delgroup.asp"), page_6, 609 },
>     { T("/dellimit.asp"), page_7, 627 },
>     { T("/deluser.asp"), page_8, 619 },
>     { T("/docs.htm"), page_9, 1800 },
>     { T("/dspuser.asp"), page_10, 623 },
>     { T("/FAQ.htm"), page_11, 9408 },
>     { T("/forms.asp"), page_12, 678 },
>     { T("/home.asp"), page_13, 753 },
>     { T("/loadcfg.asp"), page_14, 597 },
>     { T("/overview.htm"), page_15, 3037 },
>     { T("/savecfg.asp"), page_16, 587 },
>     { T("/small.htm"), page_17, 887 },
>     { T("/tests.htm"), page_18, 506 },
>     { T("/title.htm"), page_19, 321 },
>     { T("/treeapp.asp"), page_20, 1089 },
>     { T("/um.htm"), page_21, 4091 },
>     { 0, 0, 0 },
>     };
>     -----------------------------------------------------------------
> 4. Modify the /VxWorks/main.c in the webvxmain() function.
>    I want to delay more time,so I add some delay.
>    ------------------------------------------------------------------
>    while (!finished) {
> for(i=0;i<50000;i++)
> if (socketReady(-1) || socketSelect(-1, 2000)) {
> socketProcess(-1);
> }
> websCgiCleanup();
> emfSchedProcess();
> }
>    -------------------------------------------------------------------
> 5. Build a bootable project with  the BSP.
>    Add the Load/Unload Module in the components.
> 6. Build a downloadable project.
>    Add the \webserver\*.c, but exclude the webSSL.c and webcomp.c.
>    Of course it include the webrom.c
>    Add the "-DWEBS -DUEFM -DVXWORKS -DWEB_PAGE_ROM" in the compiler flag
>    Then I build the project. OK
> 7. In the Shell, I type "sp(webvxmain)"
>    It return OK.
> 8. Using IE:
>    "http://192.168.0.131"
> 9. It show in the Hyperterminal:
>    ----------------------------------------------
>    Data abort
>
>    Exception address: 0x0005e6c0
>
>    Current Processor Status Register: 0x20000013
>
>    Task: 0x346e7c "s1u0"
>    ----------------------------------------------
> 10. Using the Debugger, I find the error address is "_cksum"
> 11. I enlarge the TCP/IP pramaters ,but it still not work.
>
> Need I modify the "directory" in the main.c?
> Somebody tell me the "redirction: function has some bug,anybody knows?
>
>
>
>
>
>
> *****************************************************
> john_94501@yahoo.com (John) wrote in message
news:<488e459a.0203310318.3fd8cc9d@posting.google.com>...
> > Hello,
> >
> > [steps deleted]
> >
> > > 5.Visit the target board using the IE http://192.168.0.131
> > >
> > > 6.Error:
> > >
> > > Data abort
> > > Exception address: 0x0005e6c0
> > > Current Processor Status Register: 0x20000013
> > > Task: 0x2c7de0 "webd"
> > >
> > > *********************
> > > *What can I do next?*
> > > *********************
> >
> > Try starting the debugger and find out what caused the exception...
> > since you have source code you should be able to work this out
> > relatively easily using the debugger.
> >
> > HTH,
> >
> > John...
> >
> > Hint: If you want more specific answers you need to post much more
> > detailed information.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Pipes and Message Queues....blocking?
Date: 2 Apr 2002 05:09:31 -0800
From: kenb88@hotmail.com (Whacked)
Organization: http://groups.google.com/
Message-ID: <6755aee5.0204020509.3507c244@posting.google.com>
References: <6755aee5.0203291212.6c96bd2b@posting.google.com> <a84qnh$adj$1@slb3.atl.mindspring.net>
"Alex Pogostin" <alex.pogostin@silicondrivers.com> wrote in message news:<a84qnh$adj$1@slb3.atl.mindspring.net>...
> If the pipe is being written to from an ISR, the pipe driver will force the
> NO_WAIT onto the lower level msgQSend.
>
> Alex Pogostin
> Silicon Drivers
>
> "Whacked" <kenb88@hotmail.com> wrote in message
> news:6755aee5.0203291212.6c96bd2b@posting.google.com...
> > Hi,
> >
> > Here is the situation. Ive set up a pipe for IPC that can accept only
> > one message. Something like the following:
> >
> > pipDevCreate ("/pipe/demo",1,50)
> >
> > Then I write a message to the pipe (pseudo code)
> >
> > fd = open("/pipe/demo", 0_RDRW,0)
> > write (fd, msg,50)
> > close (fd)
> >
> > Now, what happens if I immediately write to the pipe again before any
> > process reads?
> >
> > fd = open("/pipe/demo", 0_RDRW,0)
> > write (fd, message,50)
> > close (fd)
> >
> > It appears to me that I will be blocked in the write call since there
> > is already a message in the pipe. This is not what I want to happen. I
> > would like for the 2nd message to simply be dropped.
> >
> > The pipe facility is based on message queues. If I was setting up a
> > queue, I could pass the it a NO_WAIT timeout parameter. So, I could:
> >
> > Q_ID = msgQCreate (1,50,MSG_Q_FIFO)
> > msgQSend (Q_ID, msg, 50, NO_WAIT, MSG_PRI_NORMAL)
> >
> > and then send the second message
> >
> > msgQSend (Q_ID, msg, 50, NO_WAIT, MSG_PRI_NORMAL)
> >
> > This message would get dropped on the floor if the first one had not
> > been read from the queue.
> >
> > I need to iplement this behavior with pipes. Since the pipes are based
> > on message queues in VxWorks, can I do it??
> >
> > thanks,
> >
> > Whacked
Alex,
What if it does not?? Anyway to force it?
thanks,
---------------------------
Newsgroups: comp.os.vxworks
Subject: Is there a vxworks kernel consisteny checker ?
Date: 2 Apr 2002 05:49:25 -0800
From: r.stelzer@stoye.de (Rainer Stelzer)
Organization: http://groups.google.com/
Message-ID: <78a5d372.0204020549.106e50f2@posting.google.com>
Hi vxworkers !
We do have a strange bug in our system that
destroys a semaphore control structur by writing
garbage into one two byte long location within
this structur.
When seeking the bug we asked us if there is
a method to check if further queue's, semaphore,
fd's s and other os resources are been hit
by the bug.
In other words:
- - Is there a vxworks kernel consisteny checker ?
or
- - has vxworks a chance to check the consisteny of
  kernel system while running (rather than crashing
  the system when operating with damaged control
  structures )
thanx in advance
rainer
---------------------------
Newsgroups: comp.os.vxworks
Subject: Lex & Yacc tools with VxWorks
Date: 2 Apr 2002 09:14:42 -0800
From: venu_padakanti@yahoo.com (Venu Madhav Padakanti)
Organization: http://groups.google.com/
Message-ID: <55aab3a9.0204020914.6d475cbd@posting.google.com>
I have been told that Wind River Systems does not support the lex/yacc
or the flex/bison GNU tools.
    Has any one ported them to VxWorks AE environment successfully?
    I went to the gnu.org site but and could find the tar file for
bison but not for flex.
   Any help is appreciated
Thanks
..venu
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to Communicate between Two vxsim Targets in Windows 2000
Date: Tue, 2 Apr 2002 18:50:44 +0100
From: "Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com>
Organization: Newport Networks Ltd.
Message-ID: <1017769845.756174@azores.network-i.net>
References: <538e14e.0203272137.50aedafc@posting.google.com>
The fact that the ULIP driver is shown as disabled is not the problem. i
have multiple simulators running in my system (win2000) and the driver is
always shown as disabled.
A mistake that I often make is to forget to add a "catch-all" route back to
the ULIP driver. It sounds like you are having the same problem. The
following command does that:
routeAdd("0", "90.0.0.254");
assuming that the ulip addr is 90.0.0.254
Dimitris
"Mohit" <mohit@mahindrabt.com> wrote in message
news:538e14e.0203272137.50aedafc@posting.google.com...
> I have followed the procedure mentione in the tutorial to create
> multiple targets and ping them. I also Configured ULIP driver and
> enabled IpForwarding. But still when i try to ping Target i.e.
> 90.0.0.1 or 90.0.0.2 either from Tronado shell or from ms-Dos prompt
> there is no reply.Target servers for both the targets are running
> fine. I have observed one problem in ULIP driver, the connection for
> ULIP driver is shown disabled when i try to enable it i get the Error
> message "Connection Failed". Is it related to the problem i mentioned
> above. If yes then could anybody plese tell how to enable the ULIP
> connection.If no then please tell me what additional steps should be
> taken to solve the problem.
>
> Thanks,
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Lex & Yacc tools with VxWorks
Date: Tue, 2 Apr 2002 13:11:40 -0500
From: "doug dotson" <ddotson@digidata.com>
Organization: Verio
Message-ID: <gtmq8.5635$T_.116811@iad-read.news.verio.net>
References: <55aab3a9.0204020914.6d475cbd@posting.google.com>
Do you mean port the tools or modifying them so that the generated
code runs under vxWorks? I've used code generated by flex and
bison under vxWorks. It's not reentrant though so you can only have
a single parser/scanner running on a box. Not sure about AE in
that regard.
doug
"Venu Madhav Padakanti" <venu_padakanti@yahoo.com> wrote in message
news:55aab3a9.0204020914.6d475cbd@posting.google.com...
> I have been told that Wind River Systems does not support the lex/yacc
> or the flex/bison GNU tools.
>
>     Has any one ported them to VxWorks AE environment successfully?
>
>     I went to the gnu.org site but and could find the tar file for
> bison but not for flex.
>
>    Any help is appreciated
>
> Thanks
> ..venu
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to Communicate between Two vxsim Targets in Windows 2000
Date: Tue, 2 Apr 2002 13:14:35 -0500
From: "doug dotson" <ddotson@digidata.com>
Organization: Verio
Message-ID: <2wmq8.5636$T_.116458@iad-read.news.verio.net>
References: <538e14e.0203272137.50aedafc@posting.google.com> <1017769845.756174@azores.network-i.net>
I put this kludge into usrAppInit():
    int procNum;
    char myIP [16];
    procNum = sysProcNumGet ();
    sprintf (myIP, "90.0.0.%d", procNum+1);
    routeAdd ("0.0.0.0", myIP);
doug
"Dimitrios Siganos" <nospam_dimitrios.siganos@newport-networks.com> wrote in
message news:1017769845.756174@azores.network-i.net...
> The fact that the ULIP driver is shown as disabled is not the problem. i
> have multiple simulators running in my system (win2000) and the driver is
> always shown as disabled.
>
> A mistake that I often make is to forget to add a "catch-all" route back
to
> the ULIP driver. It sounds like you are having the same problem. The
> following command does that:
>
> routeAdd("0", "90.0.0.254");
>
> assuming that the ulip addr is 90.0.0.254
>
> Dimitris
>
> "Mohit" <mohit@mahindrabt.com> wrote in message
> news:538e14e.0203272137.50aedafc@posting.google.com...
> > I have followed the procedure mentione in the tutorial to create
> > multiple targets and ping them. I also Configured ULIP driver and
> > enabled IpForwarding. But still when i try to ping Target i.e.
> > 90.0.0.1 or 90.0.0.2 either from Tronado shell or from ms-Dos prompt
> > there is no reply.Target servers for both the targets are running
> > fine. I have observed one problem in ULIP driver, the connection for
> > ULIP driver is shown disabled when i try to enable it i get the Error
> > message "Connection Failed". Is it related to the problem i mentioned
> > above. If yes then could anybody plese tell how to enable the ULIP
> > connection.If no then please tell me what additional steps should be
> > taken to solve the problem.
> >
> > Thanks,
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Establishing ppp Connection between vxWorks and windows2000
Date: Tue, 02 Apr 2002 15:36:30 -0500
From: david lindauer <dlindauer@notifier-is.net>
Message-ID: <3CAA164E.220F9B7F@notifier-is.net>
References: <cb7218f2.0203280344.5fefa2f3@posting.google.com> <a7v6sc$q8a$1@snoopy.bndlg.de>
Michael Lawnick wrote:
> "vinod" <vinodkrishnankutty@hotmail.com> schrieb im Newsbeitrag
> news:cb7218f2.0203280344.5fefa2f3@posting.google.com...
> > hi
> >   Could someone please tell me the configurations required on the
> > windows 2000 side in order to establish a ppp connection between
> > vxworks and windows 2000
> >
> > Thanx in advance,
> > vinod
> In the Control Panel: 'Network and Dial-up Connections'->'Make New
> Connection'
> In the Connection Wizard select the suitable mechansim and go through
> installation process. I found it straight forward.
>
> Michael
that works... but I couldn't get direct connection to work so I had to
resort to using modems and a PBX simulator for testing...
David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Distruction of static objects in function scope
Date: Tue, 02 Apr 2002 22:52:54 GMT
From: "Matt Schuckmann" <matt.schuckman@verizon.net>
Message-ID: <aDqq8.22783$9d3.19723@nwrddc01.gnilink.net>
This may be some what of a C++ question but I believe that the standard
leaves this type of stuff up to the particular implimentation of the
language, so here goes.
The question is, in VxWorks when do static objects that are declared/defined
within a functions scope get destroyed? I would think that they would get
destroyed when the module gets unloaded but from my testing that does not
appear to be the case.
Can anyone give me some clues on this?
I can provide my test code for an example if would help.
Thanks
Matt Schuckmann
matthew_schuckmann@amat.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Startup scripts
Date: 2 Apr 2002 15:36:20 -0800
From: arcv0@lycos.com (Roger)
Organization: http://groups.google.com/
Message-ID: <45dd6f79.0204021536.c706a48@posting.google.com>
I am using Tornado 2.0. I am having problems using startup script. The
startup scripts runs fine if I boot my target machine over the
ethernet. But when it boots over the flash file system(Disk-on-chip) I
get the messages "unable to open the startup script". It looks like
the startup scripts are called before the Disk-on-chip is configured.
I called the "usrTffsConfig(0,0,"/DOC") in the usrAppInit.c.  Please
let me know if anybody has encountered this problem before.
Thanks in advance for the help
Here are the boot parameters.
boot device          : tffs=0,0
unit number          : 0
processor number     : 0
file name            : /tffs/vxworks
flags (f)            : 0x0
startup script (s)   : /tffs0/startup.txt
Attaching to TFFS... done.
Loading /tffs/vxworks...1089412
Starting at 0x100000...
Failed to attach to device tffs=0,0Attaching interface lo0...0x3fffdf8
(tRootTask): Can't attach unknown device tffs=0,0 (unit 0).
done
Adding 3401 symbols for standalone.
Unable to open startup script /tffs0/startup.txt
- ->
---------------------------
Newsgroups: comp.os.vxworks
Subject: arpAdd Question
Date: Tue, 02 Apr 2002 23:52:42 GMT
From: "spaceman" <swarchitect@mail.com>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <evrq8.2095$KO3.962614520@newssvr14.news.prodigy.com>
If the arp entry is already in the arp table, it looks like a call to arpAdd
will fail. Has anyone seen a similar behavior?
Thanks,
Jim F.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Unsupported code?
Date: 02 Apr 2002 20:21:00 -0500
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <ug02dpog3.fsf@yahoo.com>
Sender: bpringlemeir@DeadDuck
My target/src/unsupported has the following directories,
   bedk, bootp2.1, config, cslip-2.7, demo, dhcp-1.3beta, emul frc, h,
   mkits, ppp-2.1.2, rpc4.0, rt11,src
Are the directories like ppp-2.1.2 and dhcp-1.3beta the same as the
source that was compiled for ppp and dhcp support in vxWorks?  Or are
these utilities for Linux, Solaris, and BSD users that were put on my
NT machine by the install program?  I don't see any relavent build
files, so I am guessing that they are *nix source.  How is one suppose
to know what in "target/src/unsupported" is for the target?
Regards,
Bill Pringlemeir.
- --
Zumfing abounds!
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: What is the relationship between .c file generatd by "mibcomp -stub"and by idbGen?
Date: 2 Apr 2002 17:36:03 -0800
From: xiangxinyan@yahoo.com.cn (Alice)
Organization: http://groups.google.com/
Message-ID: <fcc9f2b4.0204021736.295f59f4@posting.google.com>
What is the relationship between .c file generatd by "mibcomp -stub"
and the C file generated by idbGen in TMS?How do they communicate
with each other?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Startup scripts
Date: Wed, 3 Apr 2002 08:42:31 +0200
From: "Michael Lawnick" <Lawnick@softec.de>
Organization: Buergernetz Dillingen
Message-ID: <a8e88p$3lr$1@snoopy.bndlg.de>
References: <45dd6f79.0204021536.c706a48@posting.google.com>
Reply-To: "Michael Lawnick" <Lawnick@softec.de>
Sender: mlawnick@pd9e658e9.dip.t-dialin.net
Hi Roger,
you hit the point yourself:
> I called the "usrTffsConfig(0,0,"/DOC") in the usrAppInit.c
Of whatever reason, the startup-script is executed _before_ usrAppInit !
I solved the problem by modifying the *.cdf in its tffs section:
Component INCLUDE_TFFS {
<snip>
INIT_RTN tffsDrv (); usrTffsConfig (0,0,"/tffs0");
</snip>
}
HTH
Michael
"Roger" <arcv0@lycos.com> schrieb im Newsbeitrag
news:45dd6f79.0204021536.c706a48@posting.google.com...
> I am using Tornado 2.0. I am having problems using startup script. The
> startup scripts runs fine if I boot my target machine over the
> ethernet. But when it boots over the flash file system(Disk-on-chip) I
> get the messages "unable to open the startup script". It looks like
> the startup scripts are called before the Disk-on-chip is configured.
> I called the "usrTffsConfig(0,0,"/DOC") in the usrAppInit.c.  Please
> let me know if anybody has encountered this problem before.
>
> Thanks in advance for the help
>
>
> Here are the boot parameters.
>
> boot device          : tffs=0,0
> unit number          : 0
> processor number     : 0
> file name            : /tffs/vxworks
> flags (f)            : 0x0
> startup script (s)   : /tffs0/startup.txt
>
> Attaching to TFFS... done.
> Loading /tffs/vxworks...1089412
> Starting at 0x100000...
>
> Failed to attach to device tffs=0,0Attaching interface lo0...0x3fffdf8
> (tRootTask): Can't attach unknown device tffs=0,0 (unit 0).
> done
>
> Adding 3401 symbols for standalone.
> Unable to open startup script /tffs0/startup.txt
> ->
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: DosFs2 performance
Date: Wed, 03 Apr 2002 07:01:02 GMT
From: dcolson@ieee.org (David H. Olson)
Organization: Oresis Communications, Inc.
Message-ID: <3caaa780.48021461@netnews.attbi.com>
References: <3ca612ce.1867405@netnews.attbi.com> <a8bvnn$p4u$1@snoopy.bndlg.de>
Reply-To: dolson@oresis.com
The lengthy open() occurs everytime.  We're paranoid about messing up
the entire file system if there's a power fail while a file's open
(it's happened before!) so we tend to open a file, do a little bit w/
it and then close it.  It wasn't a big deal before, but it's now
become an issue so I'm starting to do a little research.
Oh, and to be clear, we're running vxWorks 5.4, not AE.
On Tue, 2 Apr 2002 12:04:37 +0200, "Michael Lawnick"
<Lawnick@softec.de> wrote:
>Hi David,
>
>have not worke with AE yet, but with dosFs2.
>First access to the device will do a rough check and fills buffers. So the
>first question is:
>Do you notice the delay on every open() or on the first open() (since
>reboot) associated to this device ?
>
>Michael
>"David H. Olson" <dcolson@ieee.org> schrieb im Newsbeitrag
>news:3ca612ce.1867405@netnews.attbi.com...
>> I'm posting this from home, so don't have all the details, but here
>> goes anyway.  We're running under the latest non-AE vxWorks on a
>> PPC750 and using the DosFs2 file system over a flash drive.  We've
>> noticed that opening a file takes a surprisingly long time (~100 ms).
>> The transfer speed, once the file is open, seems in line w/ what we
>> would predict given the specs of the various parts & busses involved.
>> So should we be surprised at how long it takes to open a file?
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Lex & Yacc tools with VxWorks
Date: 3 Apr 2002 07:20:07 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91E55EF8E97A5borkhuisagerecom@135.7.153.102>
References: <55aab3a9.0204020914.6d475cbd@posting.google.com>
venu_padakanti@yahoo.com (Venu Madhav Padakanti) wrote:
> I have been told that Wind River Systems does not support the lex/yacc
> or the flex/bison GNU tools.
>
>     Has any one ported them to VxWorks AE environment successfully?
>
>     I went to the gnu.org site but and could find the tar file for
> bison but not for flex.
>
>    Any help is appreciated
Take a look at the cygwin distribution (http://www.cygwin.com). This is a
Unix emulator running under Windows (Tornado is using this to run the GNU
tools).
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: DosFs2 performance
Date: 3 Apr 2002 07:24:36 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91E55FBB26E55borkhuisagerecom@135.7.153.102>
References: <3ca612ce.1867405@netnews.attbi.com> <a8bvnn$p4u$1@snoopy.bndlg.de> <3caaa780.48021461@netnews.attbi.com>
dcolson@ieee.org (David H. Olson) wrote:
> The lengthy open() occurs everytime.  We're paranoid about messing up
> the entire file system if there's a power fail while a file's open
> (it's happened before!) so we tend to open a file, do a little bit w/
> it and then close it.  It wasn't a big deal before, but it's now
> become an issue so I'm starting to do a little research.
What about flushing after every file access instead of opening/closing the
file?
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,comp.protocols.snmp
Subject: console in TMS can't display in the right way
Date: 2 Apr 2002 23:36:22 -0800
From: xiangxinyan@yahoo.com.cn (Alice)
Organization: http://groups.google.com/
Message-ID: <fcc9f2b4.0204022336.63d71b6a@posting.google.com>
My console in TMS can't display in the right way,it always displays
something that no one knows.
What is the trouble?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Establishing ppp Connection between vxWorks and windows2000
Date: Wed, 3 Apr 2002 11:52:50 +0200
From: "Michael Lawnick" <Lawnick@softec.de>
Organization: Buergernetz Dillingen
Message-ID: <a8ejdi$9di$1@snoopy.bndlg.de>
References: <cb7218f2.0203280344.5fefa2f3@posting.google.com> <a7v6sc$q8a$1@snoopy.bndlg.de> <3CAA164E.220F9B7F@notifier-is.net>
Reply-To: "Michael Lawnick" <Lawnick@softec.de>
Sender: mlawnick@pd9e658e9.dip.t-dialin.net
Hi David,
I found a strange behaviour with direct connection concerning CTS. Check
your cabling, that it only builds a 3-wire connection, otherwise the login
process might be stopped by W2K because of modem hang up.
Michael
"david lindauer" <dlindauer@notifier-is.net> schrieb im Newsbeitrag
news:3CAA164E.220F9B7F@notifier-is.net...
>
>
> Michael Lawnick wrote:
>
> > "vinod" <vinodkrishnankutty@hotmail.com> schrieb im Newsbeitrag
> > news:cb7218f2.0203280344.5fefa2f3@posting.google.com...
> > > hi
> > >   Could someone please tell me the configurations required on the
> > > windows 2000 side in order to establish a ppp connection between
> > > vxworks and windows 2000
> > >
> > > Thanx in advance,
> > > vinod
> > In the Control Panel: 'Network and Dial-up Connections'->'Make New
> > Connection'
> > In the Connection Wizard select the suitable mechansim and go through
> > installation process. I found it straight forward.
> >
> > Michael
>
> that works... but I couldn't get direct connection to work so I had to
> resort to using modems and a PBX simulator for testing...
>
> David
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: eieio and sync in sysInLong() and sysOutLong()
Date: Wed, 03 Apr 2002 11:18:29 GMT
From: brede.thurmann@kongsberg-simrad.com (BT)
Message-ID: <3caae4d0.98474498@news.eunet.no>
I have a computer based on a PPC755 with an MPC107
connected to a PCI bus. I use the functions sysInLong()
and sysoutLong() to access devices on the PCI bus.
The functions from vxWorks disasemble like this:
sysInLong:
    lwbrx   r4,r0,r3
    eieio
    sync
    or      r3,r4,r4
    bclr    20,0
sysOutLong:
    stwbrx  r4,r0,r3
    eieio
    sync
    bclr    20,0
Is it realy necessary to use both 'eieio' and 'sync'?
I does not get any problems if I try to remove the 'eieio'
but I think it is a bit difficult to fully understand
when to use these functions.
BT
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Startup scripts
Date: 3 Apr 2002 13:23:05 +0100
From: Reinhold Wirth <wirth@softec.de>
Organization: WEB.DE
Message-ID: <3caae619@netnews.web.de>
References:  <45dd6f79.0204021536.c706a48@posting.google.com>
Hi Roger,
arcv0@lycos.com (Roger) wrote:
<snip>
>boot device          : tffs=0,0
>unit number          : 0
<snip>
>Loading /tffs/vxworks...1089412
>Starting at 0x100000...
>
>Failed to attach to device tffs=0,0Attaching interface lo0...0x3fffdf8
>(tRootTask): Can't attach unknown device tffs=0,0 (unit 0).
>done
<snip>
tffs=0,0 is used as a net device.
Try to change "config/comps/src/net/usrNetBoot.c to:
void usrNetDevNameGet (void)
  ......
    if ( (strncmp (sysBootParams.bootDev, "scsi", 4) == 0) ||
        (strncmp (sysBootParams.bootDev, "ide", 3) == 0) ||
        (strncmp (sysBootParams.bootDev, "ata", 3) == 0) ||
<new>   (strncmp (sysBootParams.bootDev, "tffs", 4) == 0) ||
        (strncmp (sysBootParams.bootDev, "fd", 2) == 0))
....
- --
__________________________________________________________
News suchen, lesen, schreiben mit http://newsgroups.web.de
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Startup scripts
Date: 3 Apr 2002 13:23:18 +0100
From: Reinhold Wirth <wirth@softec.de>
Organization: WEB.DE
Message-ID: <3caae626$2@netnews.web.de>
References:  <45dd6f79.0204021536.c706a48@posting.google.com>
Hi Roger,
arcv0@lycos.com (Roger) wrote:
<snip>
>boot device          : tffs=0,0
>unit number          : 0
<snip>
>Loading /tffs/vxworks...1089412
>Starting at 0x100000...
>
>Failed to attach to device tffs=0,0Attaching interface lo0...0x3fffdf8
>(tRootTask): Can't attach unknown device tffs=0,0 (unit 0).
>done
<snip>
tffs=0,0 is used as a net device.
Try to change "config/comps/src/net/usrNetBoot.c to:
void usrNetDevNameGet (void)
  ......
    if ( (strncmp (sysBootParams.bootDev, "scsi", 4) == 0) ||
        (strncmp (sysBootParams.bootDev, "ide", 3) == 0) ||
        (strncmp (sysBootParams.bootDev, "ata", 3) == 0) ||
<new>   (strncmp (sysBootParams.bootDev, "tffs", 4) == 0) ||
        (strncmp (sysBootParams.bootDev, "fd", 2) == 0))
....
- --
__________________________________________________________
News suchen, lesen, schreiben mit http://newsgroups.web.de
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Lex & Yacc tools with VxWorks
Date: Wed, 03 Apr 2002 11:54:14 GMT
From: pjt@iki.fi
Organization: Embassy of Elbonia, 42 Krvi-Tasch Avenue, Szohod
Message-ID: <m3wuvpdkr3.fsf@dslnm.trs.ntc.nokia.com>
References: <55aab3a9.0204020914.6d475cbd@posting.google.com>
Sender: ptaipale@dslnm.trs.ntc.nokia.com
venu_padakanti@yahoo.com (Venu Madhav Padakanti) writes:
>     Has any one ported them to VxWorks AE environment successfully?
They don't need any porting. Code generated by yacc and bison, or
bison and flex, cross-compiles and runs just fine for VxWorks.
I've been trying both Berkeley yacc and bison 1.27 and flex 2.5.4.
(Or did you mean running yacc and lex natively in VxWorks? Before we go to
that, do you have a native C compiler that runs in VxWorks?)
- --
Pekka Taipale -- pjt@iki.fi -- http://www.iki.fi/pjt/
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Lex & Yacc tools with VxWorks
Date: Wed, 03 Apr 2002 11:57:04 GMT
From: pjt@iki.fi
Organization: Embassy of Elbonia, 42 Krvi-Tasch Avenue, Szohod
Message-ID: <m3u1qtdkmd.fsf@dslnm.trs.ntc.nokia.com>
References: <55aab3a9.0204020914.6d475cbd@posting.google.com> <gtmq8.5635$T_.116811@iad-read.news.verio.net>
Sender: ptaipale@dslnm.trs.ntc.nokia.com
"doug dotson" <ddotson@digidata.com> writes:
> I've used code generated by flex and
> bison under vxWorks. It's not reentrant though so you can only have
> a single parser/scanner running on a box.
Actually, bison can generate re-entrant parsers. The input interface
is just slightly different. Look for the documentation of %pure_parser
declaration. (I haven't tried it myself, but I do trust the
documentation).
- --
Pekka Taipale -- pjt@iki.fi -- http://www.iki.fi/pjt/
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Distruction of static objects in function scope
Date: Wed, 3 Apr 2002 10:04:18 +0100
From: "Dave Korn" <no.spam@my.mailbox.invalid>
Organization: Lumber Cartel (tinlc) Members #2234-2237 (owing to browser refresh)
Message-ID: <iaCq8.542$7L2.853370@newsr2.u-net.net>
References: <aDqq8.22783$9d3.19723@nwrddc01.gnilink.net>
"Matt Schuckmann" <matt.schuckman@verizon.net> wrote in message
news:aDqq8.22783$9d3.19723@nwrddc01.gnilink.net...
> This may be some what of a C++ question but I believe that the standard
> leaves this type of stuff up to the particular implimentation of the
> language, so here goes.
>
> The question is, in VxWorks when do static objects that are
declared/defined
> within a functions scope get destroyed? I would think that they would get
> destroyed when the module gets unloaded but from my testing that does not
> appear to be the case.
  I would have thought so too.  Were they constructed when the module was
loaded?  Then they ought to be destructed when it gets unloaded.  However
this will only happen if you've properly MUNCHed the object code during
compilation.  You should also look at the documentation for cplusLib, in
particular the routines cplusXtorSet, cplusCtors and cplusDtors.
        DaveK
- --
moderator of
alt.talk.rec.soc.biz.news.comp.humanities.meow.misc.moderated.meow
Burn your ID card!  http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!
Proud Member of the Exclusive "I have been plonked by Davee because he
thinks I'm interesting" List Member #<insert number here>
Master of Many Meowing Minions
Holder of the exhalted PF Chang's Crab Wonton Award for kook spankage above
and beyond the call of hilarity.
>
> Can anyone give me some clues on this?
>
> I can provide my test code for an example if would help.
>
> Thanks
> Matt Schuckmann
> matthew_schuckmann@amat.com
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Install Tornado 2.0 on Win 2000 error, Help!!!
Date: Wed, 3 Apr 2002 10:00:31 +0100
From: "Dave Korn" <no.spam@my.mailbox.invalid>
Organization: Lumber Cartel (tinlc) Members #2234-2237 (owing to browser refresh)
Message-ID: <haCq8.541$7L2.853370@newsr2.u-net.net>
References: <a8brst$7gf@nntpa.cb.lucent.com>
"Qian Ling" <lingqian@lucent.com> wrote in message
news:a8brst$7gf@nntpa.cb.lucent.com...
> Dear all:
>
>   When I install the Tornado 2.0 on my win 2000 machine
> after I input the serial number and press "next>" button
> a dialog jump out with
> "Can't initiate SETUP: ZIP_ERROR. please correct this problem
> then run setup again."
>
>   However my colleagues have installed it on same machine
> successfully. I try to find out the reason, and tried:
>
>   (1) close and uninstall Mcafee Antivirus ==> Same Error!
>   (2) Install the tornado patch ==> Same Error!
>   (3) trace the TCL script, but the error is in a external
> function call (setupInit, not a TCL script) ==> No way to solve!
>   (4) Uninstall Vs.NET beta and install ==> Same Error!
>
>   Can anyone tell me what wrong with my machine and/or tornado?
> I do not want to reinstall win2000
  One possibility is that you have a stray copy of the cygwin dll somewhere
in your $PATH setting and it is clashing with the version used by the
tornado tools.  Search your system for files called "cygwin1.dll" and if you
find any either move them from their directories or remove those directories
from the PATH, then try the installation again.
        DaveK
- --
moderator of
alt.talk.rec.soc.biz.news.comp.humanities.meow.misc.moderated.meow
Burn your ID card!  http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!
Proud Member of the Exclusive "I have been plonked by Davee because he
thinks I'm interesting" List Member #<insert number here>
Master of Many Meowing Minions
Holder of the exhalted PF Chang's Crab Wonton Award for kook spankage above
and beyond the call of hilarity.
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Thu Apr  4 04:03:21 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Thu Apr  4 04:03:23 PST 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Thu Apr  4 04:03:15 PST 2002
        Subject: Re: arpAdd Question
        Subject: Is windML necessary?
        Subject: Re: Lex & Yacc tools with VxWorks
        Subject: The drivers for windML is for what purpose?
        Subject: Padding/alignment of structure
        Subject: Re: The drivers for windML is for what purpose?
        Subject: Re: Padding/alignment of structure
        Subject: GDB - How to debug large object file
        Subject: Re: Padding/alignment of structure
        Subject: Re: eieio and sync in sysInLong() and sysOutLong()
        Subject: Re: Padding/alignment of structure
        Subject: Re: Distruction of static objects in function scope
        Subject: Re: Startup scripts
        Subject: m()  modify memory
        Subject: Re: Padding/alignment of structure
        Subject: Re: Padding/alignment of structure
        Subject: BSP UART config.
        Subject: What are the common customization to default Exception Handler
        Subject: Re: BSP UART config.
        Subject: TCL/Gopher code?  pPendQ is for what?
        Subject: Re: TCL/Gopher code?  pPendQ is for what?
        Subject: Re: TCL/Gopher code?  pPendQ is for what?
        Subject: Re: Does "Building Envoy"mean to make a VxWorks core file in a bootable
        Subject: Re: questions about building envoy?
        Subject: Re: DO I need run makmak to building envoy in TMS?
        Subject: Re: What is the relationship between .c file generatd by "mibcomp
        Subject: Re: Padding/alignment of structure
        Subject: Re: DosFs2 performance
        Subject: Re: Padding/alignment of structure
        Subject: Problem
        Subject: Re: stack checker
        Subject: Error : block too big
        Subject: Class C subnet mask on class B network
        Subject: Re: Lex & Yacc tools with VxWorks
        Subject: Re: Problem
        Subject: how to change radius client ip? (windNet Radius Client)
        Subject: Clearmake and Tornado II generated makefiles
        Subject: Re: m()  modify memory
        Subject: Re: Problem
        Subject: Re: Tornado Developement system
        Subject: Re: Class C subnet mask on class B network
        Subject: Re: DosFs2 performance
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: arpAdd Question
Date: 3 Apr 2002 04:50:13 -0800
From: kannan@comneti.com (kannan)
Organization: http://groups.google.com/
Message-ID: <2ede7703.0204030450.43c1126b@posting.google.com>
References: <evrq8.2095$KO3.962614520@newssvr14.news.prodigy.com>
The strange thing i found out is arpShow works in the  shell.But
arpAdd doesn't works in the shell.I tried checking the
target\lib\objPPC860gnuvx there the arpLib.o is missing .
But arpShow and arpAdd works in the simulator i tried checking the
target\lib\objSIMNTgnuvx which contains arpLib.o.
solution :
In target\lib\libPPC860gnuvx.a i have extracted the ".o" files
using the "ar" tool and manually load the arpLib.o into my
target board through the ld command.Now i was able to do arpAdd
in my target board.
Thanks and Regards,
Kannan
---------------------------
Newsgroups: comp.os.vxworks
Subject: Is windML necessary?
Date: 3 Apr 2002 05:47:14 -0800
From: liandongzhang@hotmail.com (liandongzhang)
Organization: http://groups.google.com/
Message-ID: <83f4aa95.0204030547.76dc4597@posting.google.com>
I want to do some graphic manipulation, i have a pc/104 and lcd , and
i want to disply certain kind of graphic file.Then whether the
optional package windML is necessary or not?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Lex & Yacc tools with VxWorks
Date: Wed, 3 Apr 2002 09:38:04 -0500
From: "doug dotson" <ddotson@digidata.com>
Organization: Verio
Message-ID: <4rEq8.5710$T_.119725@iad-read.news.verio.net>
References: <55aab3a9.0204020914.6d475cbd@posting.google.com> <m3wuvpdkr3.fsf@dslnm.trs.ntc.nokia.com>
You did have to port libflex didn't you. Or do the more recent
versions of flex not require a library?
doug
<pjt@iki.fi> wrote in message news:m3wuvpdkr3.fsf@dslnm.trs.ntc.nokia.com...
> venu_padakanti@yahoo.com (Venu Madhav Padakanti) writes:
> >     Has any one ported them to VxWorks AE environment successfully?
>
> They don't need any porting. Code generated by yacc and bison, or
> bison and flex, cross-compiles and runs just fine for VxWorks.
> I've been trying both Berkeley yacc and bison 1.27 and flex 2.5.4.
>
> (Or did you mean running yacc and lex natively in VxWorks? Before we go to
> that, do you have a native C compiler that runs in VxWorks?)
>
> --
> Pekka Taipale -- pjt@iki.fi -- http://www.iki.fi/pjt/
---------------------------
Newsgroups: comp.os.vxworks
Subject: The drivers for windML is for what purpose?
Date: 3 Apr 2002 07:16:16 -0800
From: liandongzhang@hotmail.com (liandongzhang)
Organization: http://groups.google.com/
Message-ID: <83f4aa95.0204030716.324ac219@posting.google.com>
May my question is sounded funny:(
I think windML is on the upper level than VxWorks,and sorts of drivers
is of parts of VxWorks,so driver should independed of WindML.
I don't know clearly, above is just my idea in the first thought.
Another question:
what is the relation between UGL and windML and Zinc?
I  think Zinc is the upper level application of WindML,but where is
UGL?
If i want to display some graphic file other than GIF, should i must
programme the functions that used to manipulate the specific graphic
file?
And what i must buy?WIndML UGL Zinc??
Thanks for any reply and it will be appreciated
---------------------------
Newsgroups: comp.os.vxworks,comp.sys.arm
Subject: Padding/alignment of structure
Date: Wed, 3 Apr 2002 10:48:43 -0500
From: "Harjinder Chayra" <harjinder.chayra@terayon.com>
Organization: Storm Internet Services
Message-ID: <a8f8ad$pik$1@news.storm.ca>
Sender: terayon@gw-terayon.storm.ca
I have a structure which represents interrrupt controller HW registers; it
is being padded and is giving me grief  because when I access the registers
I get another registers values!
How can I get rid of the padding?
I have tried to use __attribute__ ((aligned(1)) on the structure elements
but no joy.
I am using the GNU toolkit for ARM9
Thanks in advance
Harjinder
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: The drivers for windML is for what purpose?
Date: 03 Apr 2002 11:34:12 -0500
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uwuvoaghn.fsf@yahoo.com>
References: <83f4aa95.0204030716.324ac219@posting.google.com>
Sender: bpringlemeir@DeadDuck
>>>>> "ldz" == liandongzhang  <liandongzhang@hotmail.com> writes:
 ldz> May my question is sounded funny:( I think windML is
[snip]
 ldz> Zinc is the upper level application of WindML,but where is UGL?
Look at this picture.  Study it carefully.
  "http://www.windriver.com/products/assets/images/zarch.gif"
WindML == UGL 2.0 The old name of WindML was UGL.  However, it seems
pretty close to "UGLy" so they changed the name.  There is only Zinc
and WindML.  The directory names in WindML 2.0 are still "UGL".  [Note
to WRS, please keep it this way!]
 ldz> If i want to display some graphic file other than GIF, should i
 ldz> must programme the functions that used to manipulate the
 ldz> specific graphic file?  And what i must buy? WIndML UGL Zinc??
WindML understands JPG files as far as I understand.  You must convert
the images to JPG or re-write the uglxxxToDDBFromFile() function and
replace references to uglJpgToDDBFromFile().
hth,
Bill Pringlemeir.
- --
ARPA rail gun counter terrorism condor Skipjack Comirex LABLINK
propaganda sniper sweep AIMSX Area 51 Armani Fortezza secure
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks,comp.sys.arm
Subject: Re: Padding/alignment of structure
Date: Wed, 3 Apr 2002 11:50:56 -0500
From: "doug dotson" <ddotson@digidata.com>
Organization: Verio
Message-ID: <JnGq8.5731$T_.120287@iad-read.news.verio.net>
References: <a8f8ad$pik$1@news.storm.ca>
Does your compiler support the -fpack-struct option? Otherwise you
may have to do it the old-fashioned way.
doug
"Harjinder Chayra" <harjinder.chayra@terayon.com> wrote in message
news:a8f8ad$pik$1@news.storm.ca...
> I have a structure which represents interrrupt controller HW registers; it
> is being padded and is giving me grief  because when I access the
registers
> I get another registers values!
>
> How can I get rid of the padding?
>
> I have tried to use __attribute__ ((aligned(1)) on the structure elements
> but no joy.
>
> I am using the GNU toolkit for ARM9
>
> Thanks in advance
> Harjinder
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: GDB - How to debug large object file
Date: Wed, 3 Apr 2002 12:00:34 -0500
From: "dp" <datphm@hotmail.com>
Organization: Nortel
Message-ID: <a8fce8$cm8$1@bcarh8ab.ca.nortel.com>
I have a very large object file to debug (>500MB). Obviously, it is too big
for my board (Motorola mcpn750 card, 128 MB RAM). I used Tonado 2.1/vxWorks
5.4.2.
What options should I use to debug it?
    - strip it using stripppc -S and load it to the target but the how can I
syncronize it with its symbols?
    - Can't load all of it
  Do you know the best way of debug a very large file using GDB?
  Any help or suggestions should be very appreciated.
Dat
---------------------------
Newsgroups: comp.os.vxworks,comp.sys.arm
Subject: Re: Padding/alignment of structure
Date: Wed, 03 Apr 2002 12:03:05 -0800
From: Joe Durusau <joseph.a.durusau@lmco.com>
Organization: Lockheed Martin Corporation
Message-ID: <3CAB5FF9.B71A2360@lmco.com>
References: <a8f8ad$pik$1@news.storm.ca>
Try __attribute__  ((packed))  but note that it must appear
on each and every line that you don't want padded.  Also, make sure
that you have the right sizes for the regs.  On many platforms,
you can NEVER have a misaligned data reference.  I don't know
about yours, but it's worth a second trip through the manual
for your board.
Speaking only for myself,
Joe Durusau
Harjinder Chayra wrote:
>
> I have a structure which represents interrrupt controller HW registers; it
> is being padded and is giving me grief  because when I access the registers
> I get another registers values!
>
> How can I get rid of the padding?
>
> I have tried to use __attribute__ ((aligned(1)) on the structure elements
> but no joy.
>
> I am using the GNU toolkit for ARM9
>
> Thanks in advance
> Harjinder
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: eieio and sync in sysInLong() and sysOutLong()
Date: 3 Apr 2002 09:51:41 -0800
From: vloscomp@yahoo.com (Vinh)
Organization: http://groups.google.com/
Message-ID: <c129947c.0204030951.3fdcced9@posting.google.com>
References: <3caae4d0.98474498@news.eunet.no>
Hi,
  if you used 'sync' then 'eieio' is not needed.
  eieio   enforced synchronization for data in pipes.
  sync    enforced synchronization for data and instruction.
          This mean that sync takes longer.
  1. You have to determined if you need data or instruction
synchronization, or both.
  2. You have to determined if the MPC107 needs synchronization for
PCI bus. Furthermore, if the MPC107 supports eieio and sync
instruction, then the buffering on the MPC107 will be synchronized
with the CPU.
Vinh Lam
brede.thurmann@kongsberg-simrad.com (BT) wrote in message news:<3caae4d0.98474498@news.eunet.no>...
> I have a computer based on a PPC755 with an MPC107
> connected to a PCI bus. I use the functions sysInLong()
> and sysoutLong() to access devices on the PCI bus.
> The functions from vxWorks disasemble like this:
>
> sysInLong:
>     lwbrx   r4,r0,r3
>     eieio
>     sync
>     or      r3,r4,r4
>     bclr    20,0
>
> sysOutLong:
>     stwbrx  r4,r0,r3
>     eieio
>     sync
>     bclr    20,0
>
> Is it realy necessary to use both 'eieio' and 'sync'?
> I does not get any problems if I try to remove the 'eieio'
> but I think it is a bit difficult to fully understand
> when to use these functions.
>
> BT
---------------------------
Newsgroups: comp.os.vxworks,comp.sys.arm
Subject: Re: Padding/alignment of structure
Date: 3 Apr 2002 11:05:01 -0800
From: yarramsetty@hotmail.com (Satya Yarramsetty)
Organization: http://groups.google.com/
Message-ID: <f62b24ca.0204031105.3b8333b5@posting.google.com>
References: <a8f8ad$pik$1@news.storm.ca>
"Harjinder Chayra" <harjinder.chayra@terayon.com> wrote in message news:<a8f8ad$pik$1@news.storm.ca>...
> I have a structure which represents interrrupt controller HW registers; it
> is being padded and is giving me grief  because when I access the registers
> I get another registers values!
>
> How can I get rid of the padding?
>
> I have tried to use __attribute__ ((aligned(1)) on the structure elements
> but no joy.
>
> I am using the GNU toolkit for ARM9
>
> Thanks in advance
> Harjinder
Try this....
typedef struct
{
   UINT8  x;
   UINT8  y;
   UINT8  z;
   ...
} __attribute__((packed)) XYZ_T;
Hope this wud solve your problem
SY
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Distruction of static objects in function scope
Date: Wed, 03 Apr 2002 19:31:27 GMT
From: "Matt Schuckmann" <matt.schuckman@verizon.net>
Message-ID: <jMIq8.1342$Wv2.82@nwrddc02.gnilink.net>
References: <aDqq8.22783$9d3.19723@nwrddc01.gnilink.net> <iaCq8.542$7L2.853370@newsr2.u-net.net>
As a matter of fact they were not created when the module was loaded.
They were not constructed until the function was called.
Here is my test code:
class cStaticTest
{
public:
    cStaticTest( char* str )
        :  m_str( str )
    {
        cout << "Constructor for cStaticTest( " << m_str << ");" << endl;
    }
    ~cStaticTest()
    {
        cout << "Destructor for cStaticTest( " << m_str << ");" << endl;
    }
    char* m_str;
};
static cStaticTest test0( "test0: Global static" );
static Ptr<cStaticTest> test1( new cStaticTest("test1: Global static smart
pointer") );
extern "C" void staticTestFunct()
{
    static cStaticTest test2( "test2: Function static" );
    static Ptr<cStaticTest> test3( new cStaticTest("test3: Function static
smart pointer") );
}
When the module loads the following text is printed:
Constructor for cStaticTest( test0: Global static);
Constructor for cStaticTest( test1: Global static smart pointer);
When I run staticTestFunct() the following text is printed:
Constructor for cStaticTest( test2: Function static);
Constructor for cStaticTest( test3: Function static smart pointer);
When the module is unloaded the following text is printed:
Destructor for cStaticTest( test1: Global static smart pointer);
Destructor for cStaticTest( test0: Global static);
Apparently trest2, and test3 are never destroyed.
"Dave Korn" <no.spam@my.mailbox.invalid> wrote in message
news:iaCq8.542$7L2.853370@newsr2.u-net.net...
> "Matt Schuckmann" <matt.schuckman@verizon.net> wrote in message
> news:aDqq8.22783$9d3.19723@nwrddc01.gnilink.net...
> > This may be some what of a C++ question but I believe that the standard
> > leaves this type of stuff up to the particular implimentation of the
> > language, so here goes.
> >
> > The question is, in VxWorks when do static objects that are
> declared/defined
> > within a functions scope get destroyed? I would think that they would
get
> > destroyed when the module gets unloaded but from my testing that does
not
> > appear to be the case.
>
>   I would have thought so too.  Were they constructed when the module was
> loaded?  Then they ought to be destructed when it gets unloaded.  However
> this will only happen if you've properly MUNCHed the object code during
> compilation.  You should also look at the documentation for cplusLib, in
> particular the routines cplusXtorSet, cplusCtors and cplusDtors.
>
>
>         DaveK
> --
> moderator of
> alt.talk.rec.soc.biz.news.comp.humanities.meow.misc.moderated.meow
> Burn your ID card!  http://www.optional-identity.org.uk/
> Help support the campaign, copy this into your .sig!
> Proud Member of the Exclusive "I have been plonked by Davee because he
> thinks I'm interesting" List Member #<insert number here>
> Master of Many Meowing Minions
> Holder of the exhalted PF Chang's Crab Wonton Award for kook spankage
above
> and beyond the call of hilarity.
> >
> > Can anyone give me some clues on this?
> >
> > I can provide my test code for an example if would help.
> >
> > Thanks
> > Matt Schuckmann
> > matthew_schuckmann@amat.com
> >
> >
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Startup scripts
Date: 3 Apr 2002 12:06:00 -0800
From: arcv0@lycos.com (Roger)
Organization: http://groups.google.com/
Message-ID: <45dd6f79.0204031206.2ba2a057@posting.google.com>
References: <45dd6f79.0204021536.c706a48@posting.google.com>
Thank you everyone. My startup script runs fine now :)
arcv0@lycos.com (Roger) wrote in message news:<45dd6f79.0204021536.c706a48@posting.google.com>...
> I am using Tornado 2.0. I am having problems using startup script. The
> startup scripts runs fine if I boot my target machine over the
> ethernet. But when it boots over the flash file system(Disk-on-chip) I
> get the messages "unable to open the startup script". It looks like
> the startup scripts are called before the Disk-on-chip is configured.
> I called the "usrTffsConfig(0,0,"/DOC") in the usrAppInit.c.  Please
> let me know if anybody has encountered this problem before.
>
> Thanks in advance for the help
>
>
> Here are the boot parameters.
>
> boot device          : tffs=0,0
> unit number          : 0
> processor number     : 0
> file name            : /tffs/vxworks
> flags (f)            : 0x0
> startup script (s)   : /tffs0/startup.txt
>
> Attaching to TFFS... done.
> Loading /tffs/vxworks...1089412
> Starting at 0x100000...
>
> Failed to attach to device tffs=0,0Attaching interface lo0...0x3fffdf8
> (tRootTask): Can't attach unknown device tffs=0,0 (unit 0).
> done
>
> Adding 3401 symbols for standalone.
> Unable to open startup script /tffs0/startup.txt
> ->
---------------------------
Newsgroups: comp.os.vxworks
Subject: m()  modify memory
Date: Wed, 03 Apr 2002 14:15:55 -0600
From: Eric Geelen <Eric.Geelen@tellabs.com>
Organization: tellabs
Message-ID: <3CAB62FB.E24D9B31@tellabs.com>
This is a multi-part message in MIME format.
- --------------743E30773075EDAE88561805
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
When using d() I can spec a range of memory that I would like to
display, right?
Is there something I can use like the modify command, m(), that allows
me to write to more than one byte or word at a time? something like an
m_blk() or so? Or should I just write something.
Thanks for taking the time.
Eric.
- --------------743E30773075EDAE88561805
Content-Type: text/x-vcard; charset=us-ascii;
 name="Eric.Geelen.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Eric Geelen
Content-Disposition: attachment;
 filename="Eric.Geelen.vcf"
begin:vcard
n:Geelen;Eric L.
tel;work:630-512-7880
x-mozilla-html:FALSE
url:http://intwww.hq.tellabs.com/~egeelen/
org:Tellabs Inc.;ONG Infrastructure Group
adr:;;;;;;
version:2.1
email;internet:eric.geelen@tellabs.com
title:Firmware Developer
note;quoted-printable:tel. 630-512-7880 <x17880>=0D=0Afax. 630-512-7098=0D=0A
x-mozilla-cpt:;9504
fn:Eric L. Geelen
end:vcard
- --------------743E30773075EDAE88561805--
---------------------------
Newsgroups: comp.os.vxworks,comp.sys.arm
Subject: Re: Padding/alignment of structure
Date: Wed, 3 Apr 2002 15:32:31 -0500
From: "Harjinder Chayra" <harjinder.chayra@terayon.com>
Organization: Storm Internet Services
Message-ID: <a8fouj$t0j$1@news.storm.ca>
References: <a8f8ad$pik$1@news.storm.ca>
Sender: terayon@gw-terayon.storm.ca
I tried the -fpack-struct option but it had some side effects - still
looking into it.
Thanks for your help.
Harjinder
"Harjinder Chayra" <harjinder.chayra@terayon.com> wrote in message
news:a8f8ad$pik$1@news.storm.ca...
> I have a structure which represents interrrupt controller HW registers; it
> is being padded and is giving me grief  because when I access the
registers
> I get another registers values!
>
> How can I get rid of the padding?
>
> I have tried to use __attribute__ ((aligned(1)) on the structure elements
> but no joy.
>
> I am using the GNU toolkit for ARM9
>
> Thanks in advance
> Harjinder
>
>
>
---------------------------
Newsgroups: comp.os.vxworks,comp.sys.arm
Subject: Re: Padding/alignment of structure
Date: Wed, 3 Apr 2002 15:38:08 -0500
From: "doug dotson" <ddotson@digidata.com>
Organization: Verio
Message-ID: <JIJq8.5764$T_.121051@iad-read.news.verio.net>
References: <a8f8ad$pik$1@news.storm.ca> <a8fouj$t0j$1@news.storm.ca>
I assume that will pack all your structs which is probably going
to be a performance hit or result in unaligned data accesses
depending upon your platform. But if you isolate the stuff
that is doing this low-level access into a separate module
and compile it only with the -fpack-struct option then that
might do it.
doug
"Harjinder Chayra" <harjinder.chayra@terayon.com> wrote in message
news:a8fouj$t0j$1@news.storm.ca...
> I tried the -fpack-struct option but it had some side effects - still
> looking into it.
>
> Thanks for your help.
>
> Harjinder
>
> "Harjinder Chayra" <harjinder.chayra@terayon.com> wrote in message
> news:a8f8ad$pik$1@news.storm.ca...
> > I have a structure which represents interrrupt controller HW registers;
it
> > is being padded and is giving me grief  because when I access the
> registers
> > I get another registers values!
> >
> > How can I get rid of the padding?
> >
> > I have tried to use __attribute__ ((aligned(1)) on the structure
elements
> > but no joy.
> >
> > I am using the GNU toolkit for ARM9
> >
> > Thanks in advance
> > Harjinder
> >
> >
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: BSP UART config.
Date: Wed, 3 Apr 2002 15:51:43 -0500
From: "Harjinder Chayra" <harjinder.chayra@terayon.com>
Organization: Storm Internet Services
Message-ID: <a8fq2j$t9c$1@news.storm.ca>
Sender: terayon@gw-terayon.storm.ca
How do you inform VxWorks of the function to call to write out the first
character when the
output serial device and output ring are enpty?
Thanks
Harjinder
---------------------------
Newsgroups: comp.os.vxworks
Subject: What are the common customization to default Exception Handler
Date: 3 Apr 2002 16:43:08 -0800
From: ryeung@earthlink.net (Raymond Yeung)
Organization: http://groups.google.com/
Message-ID: <d83bb8e3.0204031643.790fc0b5@posting.google.com>
All,
VxWorks supplies a default handler that has the same
behavior for all exceptions.  I'm using PPC603e (MPC8260
to be precise), which has a short list of 10-15 exceptions.
Note: I'm not talking about external interrupts here.
What're some of the common exceptions people normally handle
with their own handlers?  How do they generate the conditions
to test their handlers?  And I suppose if one uses BAT,
there'd be no need to handle TLB misses?
Thanks,
Raymond
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: BSP UART config.
Date: Wed, 03 Apr 2002 18:06:15 -0800
From: "Michael R. Kesti" <mkesti@gv.net>
Organization: MK Associates
Message-ID: <3CABB517.6803989A@gv.net>
References: <a8fq2j$t9c$1@news.storm.ca>
Reply-To: mkesti@gv.net
Harjinder Chayra wrote:
>How do you inform VxWorks of the function to call to write out the first
>character when the
>output serial device and output ring are enpty?
You inform vxWorks indirectly, by properly installing a properly written
and compiled device driver.
Such a driver adds a name to a list of devices that application code
may then access using vxWorks' open(), close(), read(), write(), and
ioctl() functions.  open(devName) returns fd, a file descriptor that
is used as an arguement for the others.  In the case of a UART driver,
write(fd, ...) is used to request data transmission.  When an application
calls write(fd, ...), the OS calls the write function in the device
driver associated with the file descriptor, and that function decides
whether its transmit buffer is empty and a character should be written
immediately to the UART.
- --
========================================================================
          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: TCL/Gopher code?  pPendQ is for what?
Date: 03 Apr 2002 21:33:07 -0500
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <u8z848a70.fsf@yahoo.com>
Sender: bpringlemeir@DeadDuck
It is bugging the marshmallow puss out of me that I can not type `w'
and `tw' from a shell over a tyCo.  I have found the guilty TCL code.
They are found in,
 $(WIND_BASE)/host/resource/tcl/taskWaitCore.tcl
 $(WIND_BASE)/host/resource/tcl/app-config/WindSh/01taskWaitShow.tcl
I get as far as the TCL procedure `taskWaitGet' whence I encounter,
    set gopherPrg "$tid +$offset(WIND_TCB,pPendQ) *\
		 -$offset(SEMAPHORE,qHead) ! <*!>\
		 +$offset(SEMAPHORE,semType) @b"
This is performing some sort of addressing to grab members of the
WIND_TCB.  It grabs pPendQ.  Does it dereference this?  The full TCL
string translates to,
   "0x12345678 + 0x05c * - 0x008! <*!> + 0x004 @b"
    ^^^^^^^^^^
    Task ID/WIND_TCB parameter.
I guess that gopher is infix/postfix mix and it is grabing a byte (@b)
at some address.  I don't know what happens from the
(WIND_TCB*)p->pPendQ to get to a SEMAPHORE type.  The stuff in
taskLibP.h doesn't help much either.  I would like to re-implement
this statement in `C'.
tia,
Bill Pringlemeir.
- --
South Africa mania BROMURE Ft. Meade Crypto AG Exon Shell JSOFC3IP
nuclear ARPA Mossad Rand Corporation INSCOM Ceridian CIDA bomb
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: TCL/Gopher code?  pPendQ is for what?
Date: 03 Apr 2002 22:18:42 -0500
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <u3cyc8831.fsf@yahoo.com>
References: <u8z848a70.fsf@yahoo.com>
Sender: bpringlemeir@DeadDuck
>>>>> "Bill" == Bill Pringlemeir <bpringlemeir@yahoo.com> writes:
 Bill> It is bugging the marshmallow puss out of me that I can not
 Bill> type `w' and `tw' from a shell over a tyCo.  I have found the
 Bill> guilty TCL code.  They are found in,
 Bill>  $(WIND_BASE)/host/resource/tcl/taskWaitCore.tcl
 Bill> $(WIND_BASE)/host/resource/tcl/app-config/WindSh/01taskWaitShow.tcl
 Bill> I get as far as the TCL procedure `taskWaitGet' whence I
 Bill> encounter,
 Bill>     set gopherPrg "$tid +$offset(WIND_TCB,pPendQ) *\
 Bill> -$offset(SEMAPHORE,qHead) ! <*!>\ +$offset(SEMAPHORE,semType)
 Bill> @b"
 Bill> This is performing some sort of addressing to grab members of
 Bill> the WIND_TCB.  It grabs pPendQ.  Does it dereference this?  The
 Bill> full TCL string translates to,
 Bill>    "0x12345678 + 0x05c * - 0x008! <*!> + 0x004 @b" ^^^^^^^^^^
 Bill> Task ID/WIND_TCB parameter.
The answer is found in the following table,
 Item         | Action
- --------------+---------------------------------------------------------
 integer      | Sets the pointer to the value integer.
              |
 [+-] integer | Increments or decrements the pointer by integer.
              |
 !            | Writes the pointer to the tape.
              |
 *            | Replaces the pointer with the value pointed to by the pointer.
              |
 @[bwl]       | Writes the value pointed to by the pointer on the tape, and
              | advances the pointer. An optional flag may be specified
              | to indicate the bit-size that should be written. b
              | designates an 8-bit value, w a 16-bit value, and l a 32
              | bit value. The pointer is advanced by the size of the
              | element written. If no flag is given, l (32-bits) is
              | assumed.
              |
 $            | Writes the string pointed to by the pointer on the tape.
              |
 {script}     | Executes the Gopher script inside the braces repeatedly while
              | the pointer is not NULL. The string inside the braces
              | works with a local copy of the pointer, maintaining the
              | original, external pointer value.
              |
 <script>     | Executes the Gopher script inside the angle brackets once
              | using a local copy of the pointer.
              |
 (n script)   | Executes the Gopher script inside the parentheses n times,
              | using a local copy of the pointer.
So the expression is "(*(TCB+0x5c) - 8) + 4".  This should retreive
the semaphore type.  Or in C something like this,
void waitList(void)
{
    static int taskIds[64];
    int numTasks, current, i;
    WIND_TCB *tcb;
    numTasks = taskIdListGet(taskIds, NELEMENTS(taskIds));
    printf("  NAME       TID    STATUS OBJ_TYPE\n");
    printf("---------- -------- ------ --------\n");
    for(i = 0; i < numTasks; i++)
    {
        tcb = taskTcb(taskIds[i]);
        current = taskIds[i];
        if(tcb->status & TASK_STATUS_PEND)
            printf ("%10s %8x %d   %d\n", tcb->name, current, tcb->status,
                    (SEM_ID)((char*)(tcb->pPendQ) - 0x8)->semType);
    }
}
For prosperity...
Regards,
Bill Pringlemeir.
- --
Michael Jackson is Polish, huh?  So, if you've seen one Honeywell
dps8, you've seen them all?
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: TCL/Gopher code?  pPendQ is for what?
Date: 03 Apr 2002 22:41:30 -0500
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uy9g46sgl.fsf@yahoo.com>
References: <u8z848a70.fsf@yahoo.com> <u3cyc8831.fsf@yahoo.com>
Sender: bpringlemeir@DeadDuck
>>>>> "Bill" == Bill Pringlemeir <bpringlemeir@yahoo.com> writes:
 Bill> So the expression is "(*(TCB+0x5c) - 8) + 4".  This should
 Bill> retreive the semaphore type.  Or in C something like this,
[snip]
 Bill> For prosperity...
This is for general edification.
[start]
#include <vxWorks.h>
#include <taskLib.h>
#include <stdio.h>
#include <stddef.h>
#include <semLib.h>
#define TASK_STATUS_RUNNING (0<<0)
#define TASK_STATUS_SUSPEND (1<<0)
#define TASK_STATUS_PEND    (1<<1)
#define TASK_STATUS_DELAY   (1<<2)
void waitList(void)
{
    static int taskIds[64];
    int numTasks, current, i;
    WIND_TCB *tcb;
    static char const * const semNames[] =
        { "BINARY", "MUTEX", "COUNTING", "OLD" };
    numTasks = taskIdListGet(taskIds, NELEMENTS(taskIds));
    printf("  NAME       TID      STATUS    OBJ_TYPE   OBJ_ID \n");
    printf("---------- -------- ---------- ---------- --------\n");
    for(i = 0; i < numTasks; i++)
    {
        tcb = taskTcb(taskIds[i]);
        current = taskIds[i];
        if(tcb->status & TASK_STATUS_PEND)
        {
            SEM_ID sem = (SEM_ID) (char*) tcb->pPendQ-offsetof(SEMAPHORE,qHead);
            if(sem->semType <= SEM_TYPE_OLD)
                 printf ("%-10.10s %8x PEND       %-10.10s %8p\n",
                         tcb->name, current, semNames[sem->semType], sem);
        }
    }
}
[end]
I don't have a need to add msgQ functionality at this time.  Maybe in
the future.  You can go throught the process I have by reading the
other messages to duplicate the full `tw' and `w' functionality.
Regards,
Bill Pringlemeir.
- --
I could be inspired by someone.
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.protocols.snmp,comp.os.vxworks
Subject: Re: Does "Building Envoy"mean to make a VxWorks core file in a bootable
 project?
Date: Thu, 04 Apr 2002 05:45:39 GMT
From: Pete Flugstad <pete_flugstad@nospam.icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <3CABE8BE.3020607@nospam.icon-labs.com>
References: <fcc9f2b4.0203311742.5c80f62a@posting.google.com>
> 11.2 Building Envoy
> These instructions assume that you are building VxWorks from your BSP directory.
> (1) Copy the include files.
> (2) Copy vxworks/h/snmpdLib.h into the main include directory
> ($(WIND_BASE)/target/include)
> (3) Replace the directory $(WIND_BASE)/target/include/snmp with the
> directory snark/vxworks/h/snmp.
> (4) Edit the sample configuration file described above and build. This
> creates the
> module snmp in the snark/vxworks/agent directory.
> (5) Go to the directory in which you build your BSP.
> (6) In the file config.h, find the line that reads: #include
> "configAll.h" and insert
> the following three lines before this line:
> #define INCLUDE_MIB2_ALL
> #define INCLUDE_SNMPD
> #define INCLUDE_SHOW_ROUTINES
> INCLUDE_SHOW_ROUTINES is only necessary if you are building a
> subagent.
> (7) Edit the Makefile in their BSP directory and include the path to
> their snmp module on the line MACH_EXTRA =. For example
> MACH_EXTRA = /home/users/username/prologue/snark/vxworks/agent/snmp
> (8) Rebuild VxWorks in the BSP directory. The SNMP agent should be
> built into it automatically.
These are instructions for building the snmp module (the SNMP agent
included with Tornado for Managed Switches) into your bootable vxWorks
image.
> Can I build envoy in the Tornado GNU without doing the steps above?
> Thanks in advance!!!!!!!
No.  Envoy's makmak stage sets up makefiles which can then be used
to build it.  Tornado doesn't deal with makefiles, it deals with
"Projects" from which it generates makefiles.  Note that the Tornado
proejcts and Envoy's makmak have no relationship to each other.
Pete Flugstad
Icon Labs
---------------------------
Newsgroups: comp.protocols.snmp,comp.os.vxworks
Subject: Re: questions about building envoy?
Date: Thu, 04 Apr 2002 06:08:10 GMT
From: Pete Flugstad <pete_flugstad@nospam.icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <3CABEE05.3070205@nospam.icon-labs.com>
References: <fcc9f2b4.0203311830.3d19d526@posting.google.com>
Alice wrote:
> question1:Are the following  2 parts the 2 ways to build the Envoy
> SNMP server?
        ^^^^^^
You probably mean "SNMP agent".  Terminology is important in SNMP
to understand what's going on (heck, terminology is *always*
important).
> question2:In part2,do I need to make a bootrom with the VxWorks as
> core file,and then boot target?
>
> question3:I see a snmputil.h, what is it for?Does it have any relation
> with snmputil?
No clue.  I do not have this file in my Envoy/vxWorks code anywhere.
> question4:Can I query the target agent with Mib Browser?>
>
> Part 1
>
> Ill assume that $SNMP is the installation directoy of the epilogue
> stuff. Some of what is listed below is identical to section 5.2 of the
> getting started guide.
>
> Copy the snark/vxworks/cfgs/wind.cfg to the $SNMP dir.
> Edit it to make the two key changes:
> The first loadconfig statement in the file
> loadconfig 'vxppc' ;my system
> The SRCDIR setting:
> equate SRCDIR 'yourdirectory to the SNMP dir' ;would be $SNMP
> Now, make sure you have copied $SNMP/snark/vxworks/h/snmpdLib.h to
> $WIND_BASE/target/h. Also, replace all contents of
> $WIND_BASE/target/h/snmp with $SNMP/snark/vxworks/h/snmp.
> Run makmak in the $SNMP directory specifying this cfg file.
> In the SNMP directory, type in "make all".
> If you get compile errors, try defining the following environment
> variables. I set them for my NT box with Tornado under C:\Tornado:
> WIND_BASE               C:\Tornado
> WIND_BASE_TYPE          x86-win32
> WIND_HOST_TYPE          x86-win32
You will definately need these defined BEFORE you run "make all".
The makefile templates in Tornado use them extensively.
You will probably want to have the Tornado bin directory in your path
as well.  The file C:\Tornado\host\x86-win32\bin\torVars.bat sets the
environment various as well as your PATH.  You can incorporate this
into your environment as you describe here:
> Set these variables on an NT using the properties menu by right-mouse
> clicking over your 'my computer'. On this dialog use the environment
> tab.
> Open up a new DOS shell and try the make all again.
This will simply build the snmp agent for your target environment.
This is a relocatable object file, similar to the downloadable application
you can build inside Tornado (it my be the same, I'm not sure).  It won't
do anything with vxWorks beyond that.
> Part 2
>
> Make sure you go to your BSP directory and edit config.h as per
> section 5.2 to add the defines BEFORE the configAll include.
> Fire up tornado
> Start a new vxWorks bootable image project based on this BSP.
> Open up the build properties and click on the MACROS tab and find the
> EXTRA_MODULES. In the value field, add the full path and name of the
> snmp library. For some reason, it has no extension.
> Rebuild all.
This will create a bootable vxWorks image, which has the snmp module
you built above included in it.
You would typically build a bootrom.sys for whatever system you have,
(a pre-built one probably came with your BSP), put it on a floppy, boot
it, and then use it to load and start this vxWorks image.  This is the
method I've used most often on x86 systems.  Or, bootrom.sys may already
be loaded into your BIOS/flash of the board you are using (this
is more typically for PPC boards), so that it boots automatically
when the system starts.  How you use the bootrom.sys and how you load
your vxWorks image depends on your particular hardware and environment.
Once you've booted the vxWorks image, you probably need to start the
snmp agent (I don't think it'll be started automatically).  This is
probably done by executing the function snmpdInit, either manually
from the vxWorks shell, or from the usrAppInit function in your vxWorks
project.  See the file snmpdlib.c in your Envoy directory for information
on the parameters to this function.  Once the snmp agent is running, you
should be able to query it from any SNMP manager.
Given the number of problems you are dealing with, I would highly recommend
that you work on simply figuring out how to get vxWorks up and running
before you start working on getting any SNMP agent running.
Pete Flugstad
Icon Labs
---------------------------
Newsgroups: comp.os.vxworks,comp.protocols.snmp
Subject: Re: DO I need run makmak to building envoy in TMS?
Date: Thu, 04 Apr 2002 06:16:48 GMT
From: Pete Flugstad <pete_flugstad@nospam.icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <3CABF00C.9070608@nospam.icon-labs.com>
References: <fcc9f2b4.0204011906.64459731@posting.google.com>
Alice wrote:
> The following is from "Tornado for Managed Switches 2.0.1
> Programmer&#8217;s Guide"
>
> Since TMS users are not required to (and should not) run makmak, the
> install.h file is pre-built and provided in the distribution. This
> file should be edited for uninstalling any options or installing new
> options.
>
> I am using TMS,don't I need to run makmak to make makefiles for
> building envoy?
No.  Unless you need to change some of the options for the Envoy
you should NOT need to run makmak or rebuild the Envoy libraries.
I believe TMS has mechanism to dynamically load sub-agent like
modules to extend the existing SNMP agent.  I've not worked with
TMS extensively at this level, so I don't know how it's configured.
Pete Flugstad
Icon Labs
http://www.icon-labs.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: What is the relationship between .c file generatd by "mibcomp
 -stub"and by idbGen?
Date: Thu, 04 Apr 2002 06:30:30 GMT
From: Pete Flugstad <pete_flugstad@nospam.icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <3CABF33B.7080505@nospam.icon-labs.com>
References: <fcc9f2b4.0204021736.295f59f4@posting.google.com>
Alice wrote:
> What is the relationship between .c file generatd by "mibcomp -stub"
> and the C file generated by idbGen in TMS?How do they communicate
> with each other?
The .c file generated by mibcomp -stub is example code that implements
get/next/test/set procedures for MIB variables.  It can be hooked up
to an Envoy-based SNMP agent, and the agent will call your functions
to fulfill requests for those MIB variables.
I don't know a lot about the files generated by idbGen, but I believe
they are essentially another layer away from SNMP.  They get registered
with the idb module, which in turn registers the MIB variables with
Envoy.  When a SNMP request comes in, Envoy calls the idb, which calls
the your functions.  Or something like that - I could be way off on
this, but I don't think so.
Pete Flugstad
Icon Labs
http://www.icon-labs.com
---------------------------
Newsgroups: comp.os.vxworks,comp.sys.arm
Subject: Re: Padding/alignment of structure
Date: Thu, 4 Apr 2002 08:44:36 +0200
From: "Michael Lawnick" <Lawnick@softec.de>
Organization: Buergernetz Dillingen
Message-ID: <a8gsop$k9j$1@snoopy.bndlg.de>
References: <a8f8ad$pik$1@news.storm.ca> <a8fouj$t0j$1@news.storm.ca> <JIJq8.5764$T_.121051@iad-read.news.verio.net>
Reply-To: "Michael Lawnick" <Lawnick@softec.de>
Sender: mlawnick@pd95241a0.dip.t-dialin.net
Hi Harjinder,
as padding and packing is compiler dependent you shouldn't try to 'adjust' a
struct to your register structure. Next architecture or compiler version it
may not work anymore.
Use offset defines and dereference by *(regBase+regOff), this should work
now and forever.
Just my 2 Cents
Michael
"doug dotson" <ddotson@digidata.com> schrieb im Newsbeitrag
news:JIJq8.5764$T_.121051@iad-read.news.verio.net...
> I assume that will pack all your structs which is probably going
> to be a performance hit or result in unaligned data accesses
> depending upon your platform. But if you isolate the stuff
> that is doing this low-level access into a separate module
> and compile it only with the -fpack-struct option then that
> might do it.
>
> doug
>
> "Harjinder Chayra" <harjinder.chayra@terayon.com> wrote in message
> news:a8fouj$t0j$1@news.storm.ca...
> > I tried the -fpack-struct option but it had some side effects - still
> > looking into it.
> >
> > Thanks for your help.
> >
> > Harjinder
> >
> > "Harjinder Chayra" <harjinder.chayra@terayon.com> wrote in message
> > news:a8f8ad$pik$1@news.storm.ca...
> > > I have a structure which represents interrrupt controller HW
registers;
> it
> > > is being padded and is giving me grief  because when I access the
> > registers
> > > I get another registers values!
> > >
> > > How can I get rid of the padding?
> > >
> > > I have tried to use __attribute__ ((aligned(1)) on the structure
> elements
> > > but no joy.
> > >
> > > I am using the GNU toolkit for ARM9
> > >
> > > Thanks in advance
> > > Harjinder
> > >
> > >
> > >
> >
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: DosFs2 performance
Date: Thu, 04 Apr 2002 07:06:41 GMT
From: dcolson@ieee.org (David H. Olson)
Organization: Oresis Communications, Inc.
Message-ID: <3cabf9e2.42050605@netnews.attbi.com>
References: <3ca612ce.1867405@netnews.attbi.com> <a8bvnn$p4u$1@snoopy.bndlg.de> <3caaa780.48021461@netnews.attbi.com> <Xns91E55FBB26E55borkhuisagerecom@135.7.153.102>
Reply-To: dolson@oresis.com
The paranoia extends from at least one instance where the entire file
system was corrupted and we lost every file following a power loss
when there was a file open.  We've made additional hardware and
software changes and it's possible that we've eliminated that
particular failure mode.  Nonetheless, we remain cautious and our
'official' policy is to close files as soon as possible.  And while
that policy may change and make the issue w/ the long opens moot, I'm
still curious as to what could be going on.
On 3 Apr 2002 07:24:36 GMT, Johan Borkhuis <borkhuis@agere.com> wrote:
>dcolson@ieee.org (David H. Olson) wrote:
>
>> The lengthy open() occurs everytime.  We're paranoid about messing up
>> the entire file system if there's a power fail while a file's open
>> (it's happened before!) so we tend to open a file, do a little bit w/
>> it and then close it.  It wasn't a big deal before, but it's now
>> become an issue so I'm starting to do a little research.
>
>What about flushing after every file access instead of opening/closing the
>file?
>
>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,comp.sys.arm
Subject: Re: Padding/alignment of structure
Date: Thu, 04 Apr 2002 08:16:47 GMT
From: "Tauno Voipio" <tauno.voipio@iki.fi.SPAMBAIT_REMOVE.invalid>
Organization: Sonera corp Internet services
Message-ID: <PZTq8.81$5X1.12895@read2.inet.fi>
References: <a8f8ad$pik$1@news.storm.ca> <f62b24ca.0204031105.3b8333b5@posting.google.com>
"Satya Yarramsetty" <yarramsetty@hotmail.com> wrote in message
news:f62b24ca.0204031105.3b8333b5@posting.google.com...
> "Harjinder Chayra" <harjinder.chayra@terayon.com> wrote in message
news:<a8f8ad$pik$1@news.storm.ca>...
> > I have a structure which represents interrrupt controller HW registers;
it
> > is being padded and is giving me grief  because when I access the
registers
> > I get another registers values!
> >
> > How can I get rid of the padding?
> >
> > I have tried to use __attribute__ ((aligned(1)) on the structure
elements
> > but no joy.
> >
> > I am using the GNU toolkit for ARM9
How are the registers in your interrupt controller defined?
I doubt there is so dumb a hardware designer that the registers are
straddling data element boundaries.
For comparison, here's my definition file for the Atmel AT91M40800
(ARM7TDMI):
/*   at91aic.h - AT91M40800 advanced interrupt controller definitions    */
/*   version 0.3, 27.2.2001, Semantics Oy, Tauno Voipio   */
/*   Interrupt numbering   */
#define AIC_FIQ     0         /* fast interrupt */
#define AIC_SWIRQ   1         /* AIC software interrupt */
#define AIC_US0IRQ  2         /* USART 0 */
#define AIC_US1IRQ  3         /* USART 1 */
#define AIC_TC0IRQ  4         /* timer 0 */
#define AIC_TC1IRQ  5         /* timer 1 */
#define AIC_TC2IRQ  6         /* timer 2 */
#define AIC_WDIRQ   7         /* watchdog */
#define AIC_PIOIRQ  8         /* parallel I/O */
#define AIC_IRQ0   16         /* external interrupt 0 */
#define AIC_IRQ1   17         /* external interrupt 1 */
#define AIC_IRQ2   18         /* external interrupt 2 */
#define AIC_NUM    32         /* number of AIC interrupt slots */
/*   Controller access   */
#ifndef __AS_INVOKED__        /* hide C from assembler */
#ifndef __WORD_DEFINED__
#define __WORD_DEFINED__
typedef unsigned char BYTE;
typedef unsigned short HWORD;
typedef unsigned long FWORD;
#endif
struct at91aic
 {
 FWORD smr[AIC_NUM];     /* source mode registers */
 FWORD svr[AIC_NUM];     /* source vector register */
 const FWORD ivr;        /* IRQ vector register */
 const FWORD fvr;        /* FIQ vector register */
 const FWORD isr;        /* interrupt status register */
 const FWORD ipr;        /* interrupt pending register */
 const FWORD imr;        /* interrupt mask register */
 const FWORD cisr;       /* core interrupt service register */
 FWORD fill[2];          /* filler */
 FWORD iecr;             /* interrupt enable command register */
 FWORD idcr;             /* interrupt disable command register */
 FWORD iccr;             /* interrupt clear command register */
 FWORD iscr;             /* interrupt set command register */
 FWORD eoicr;            /* end of interrupt command register */
 FWORD spu;              /* spurious vector register */
 };
extern volatile struct at91aic at91aic;
#else
 .globl at91aic
/*   Define register offsets for assembler   */
#define AIC_SMR   0x000     /* source mode registers */
#define AIC_SVR   0x080     /* source vector registers */
#define AIC_IVR   0x100     /* IRQ vector ergister */
#define AIC_FVR   0x104     /* FIQ vector register */
#define AIC_ISR   0x108     /* interrupt status register */
#define AIC_IPR   0x10c     /* interrupt pending register */
#define AIC_IMR   0x110     /* inetrrupt mask register */
#define AIC_CISR  0x114     /* core interrupt service register */
#define AIC_IECR  0x120     /* interrupt enable command register */
#define AIC_IDCR  0x124     /* interrupt disable command register */
#define AIC_ICCR  0x128     /* interrupt clear command register */
#define AIC_ISCR  0x12c     /* interrupt set command register */
#define AIC_EOICR 0x130     /* end of interrupt command register */
#define AIC_SPU   0x134     /* spurious vector register */
#endif
/*   Register contents   */
#define AIC_PRI(x) (x & 0x7) /* smr: priority */
#define AIC_LL (0 << 5)      /* smr: low level active */
#define AIC_NE (1 << 5)      /* smr: negative edge active */
#define AIC_HL (2 << 5)      /* smr: high level active */
#define AIC_PE (3 << 5)      /* smr: positive edge active */
#define AIC_NFIQ (1 << 1)    /* cisr: core NFIQ active */
#define AIC_NIRQ (1 << 0)    /* cisr: core NIRQ active */
/*   Jump opcode for direct AIC vectoring   */
#define AIC_JMP 0xe51fff20   /* jump opcode: ldr pc,[pc,#-0xf20] */
- -----
Tauno Voipio
tauno voipio @ iki fi
---------------------------
Newsgroups: comp.os.vxworks
Subject: Problem
Date: 4 Apr 2002 00:42:29 -0800
From: manoj.kumar@honeywell.com (manoj)
Organization: http://groups.google.com/
Message-ID: <7b2e9657.0204040042.5904c683@posting.google.com>
Hi All,
   I am using Tarnado 2.0.2 on Windows-NT, Pentium Based Machine.
(1)	How i can compile the .c code for MC68000 architecture within the
Tarnado IDE. I tried to compile it by changing the -DCPU=MC68000
option.But it asking for some header file (arch\mc68k\archMc68k.h: No
such file or directory). From where i can download this files, if it
is already there then how i can configure this.
    (Default CPU option set for tarnado is  -DCPU=SIMNT)
(2)	I tried to download a binary file (Compiled by using Diab
Compiler, for PPC680 architecture), But target showing UNKNOW_MODULE
error. How it is possible to download & debug this one.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: stack checker
Date: 4 Apr 2002 01:13:31 -0800
From: vijay.peshkar@wipro.com (Vijay Peshkar)
Organization: http://groups.google.com/
Message-ID: <bb8c75e1.0204040113.33688d5d@posting.google.com>
References: <9b6f8883.0203291140.6e1da017@posting.google.com> <3CA687DB.F79FECBF@yahoo.com>
Pierre Frigon <pierre_frigon@yahoo.com> wrote in message news:<3CA687DB.F79FECBF@yahoo.com>...
> You can set up a taskSwitch hook to look at the TCB of the task being
> switched out and see if it exceeds its stack space.
>
> Mark Chang wrote:
> >
> > Does anyone have code to do realtime checking
> > of the stack to prevent overflows?
> > w/o too much of a performace hit.
> >
> > We are using Vxworks 5.3, home brew CLI (Tcl 7.3)
> > with multi-session Telnet (4) + serial port.
> > Our main application is SNMP queries so
> > depending on the number of MIB objects, the
> > stack size varies.
> > We just keep increasing iA t and hope for the best.
> > But Tcl7.3 is really hard to benchmark in terms
> > of stack use.
> >
> > Thanks,
> > Mark
Mark,
Have attached a piece of code from my health monitoring task. The
spReg is stack pointer on my Sh4 and 'margin' is watermark beyond
which a message is logged.
You can put it as part of taskSwitchHook, attaching it only when you
need
to  debug.
Found it better to put this as part of a very low priority task which
will
do keep an eye on health of the whole system.
- -----------------------------------------------------------------
 if ((((WIND_TCB *)l_nTaskID)->regs.spReg <
	((ULONG)((WIND_TCB *)l_nTaskID)->pStackLimit + margin) ||
	(!(((WIND_TCB *)l_nTaskID)->options & VX_NO_STACK_FILL) &&
	((int)*(int *)(((WIND_TCB *)l_nTaskID)->pStackLimit + margin)
		!= 0xeeeeeeee))))
{
      logMsg("Stack in '%s' task 0x%08x: margin=%d bytes\n",
		TaskTbl[taskCnt].name, (int)l_nTaskID,margin,0,0,0);
       taskCnt++;
       .....
- -----------------------------------------------------------------
Hope this helps.
Regards,
Vijay
---------------------------
Newsgroups: comp.os.vxworks
Subject: Error : block too big
Date: Thu, 4 Apr 2002 12:20:51 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a8h5ra$rsbta$1@ID-79865.news.dfncis.de>
=======================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : c++simpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=======================================================
Running the (very simple) program below causes the 'block too big' error.block too big
1. What is wrong here ?
2. Does 'VxWorks documentation' hold a response on my question ?
Thanks in advance.
|| ###### C++-code : BEGIN ######
#include "vxWorks.h"
#include "ioLib.h"
#include "stdio.h"
#include "stdlib.h"
#include "semLib.h"
#include "taskLib.h"
#define STACK_SIZE 20000
void func1 (void);
void progStop (void);
int tid_func1;
SEM_ID semId_M1;
// |||||||||||||||||||||||
STATUS progStart (void)
{
  semId_M1 = semMCreate (  SEM_Q_PRIORITY
    | SEM_INVERSION_SAFE
    | SEM_DELETE_SAFE
    );
  tid_func1 = taskSpawn (
   "tfunc1",
   200,
   0,
   STACK_SIZE,
   (FUNCPTR) func1,
   0, 0, 0, 0, 0, 0, 0, 0, 0, 0
   );
  return (OK);
} // progStart
// |||||||||||||||||||||||
void func1 (void)
{
}
// |||||||||||||||||||||||
void progStop (void)
{
  semDelete (semId_M1);
}
|| ###### C++-code : END ########
|| ====== Running -> Tornado Shell Window : BEGIN ======
- -> progStart
WTX Error 0x100cc (AGENT_RT_ERROR)
value = -1 = 0xffffffff
- -> progStart
WTX Error 0x100cc (AGENT_RT_ERROR)
value = -1 = 0xffffffff
- ->
|| ====== Running -> Tornado Shell Window : END ========
|| ------ Running -> The Target Simulator Window : BEGIN ------
0x4b30c08 (tWdbTask): memPartAlloc: block too big - 29344 in partition 0x446298.
|| ------ Running -> The Target Simulator Window : END --------
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: Class C subnet mask on class B network
Date: 4 Apr 2002 01:30:52 -0800
From: cecil@hunmanby.demon.co.uk (Cecil)
Organization: http://groups.google.com/
Message-ID: <fdc9ba13.0204040130.f8a3619@posting.google.com>
Does anybody know if there is a way to force vxworks to accept a
subnet mask? I am aware that vxworks calculates it's subnet mask based
on the machines IP address, but is there anyway to override this???
Thanks
Nigel
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Lex & Yacc tools with VxWorks
Date: Thu, 04 Apr 2002 09:45:36 GMT
From: pjt@iki.fi
Organization: Embassy of Elbonia, 42 Krvi-Tasch Avenue, Szohod
Message-ID: <m3n0wjbw1a.fsf@dslnm.trs.ntc.nokia.com>
References: <55aab3a9.0204020914.6d475cbd@posting.google.com> <m3wuvpdkr3.fsf@dslnm.trs.ntc.nokia.com> <4rEq8.5710$T_.119725@iad-read.news.verio.net>
Sender: ptaipale@dslnm.trs.ntc.nokia.com
"doug dotson" <ddotson@digidata.com> writes:
> You did have to port libflex didn't you. Or do the more recent
> versions of flex not require a library?
The version I'm using (2.5.4 binary which someone kindly had built for
win32) generates code that builds and runs directly on our VxWorks
system, no extra libraries required.
- --
Pekka Taipale -- pjt@iki.fi -- http://www.iki.fi/pjt/
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Problem
Date: Thu, 04 Apr 2002 06:28:56 -0500
From: joe durusau <durusau@bellsouth.net>
Organization: Bellsouth.Net
Message-ID: <3CAC38F8.26BE23D9@bellsouth.net>
References: <7b2e9657.0204040042.5904c683@posting.google.com>
manoj wrote:
> Hi All,
>
>    I am using Tarnado 2.0.2 on Windows-NT, Pentium Based Machine.
>
> (1)     How i can compile the .c code for MC68000 architecture within the
> Tarnado IDE. I tried to compile it by changing the -DCPU=MC68000
> option.But it asking for some header file (arch\mc68k\archMc68k.h: No
> such file or directory). From where i can download this files, if it
> is already there then how i can configure this.
>
>     (Default CPU option set for tarnado is  -DCPU=SIMNT)
>
> (2)     I tried to download a binary file (Compiled by using Diab
> Compiler, for PPC680 architecture), But target showing UNKNOW_MODULE
> error. How it is possible to download & debug this one.
Are you using a version of Tornado you downloaded from the web,
or one you _bought_?  You have to _BUY_ All the stuff that has to
do with a real (non-simlator) target.  No downloading.  Prepare to spend
lotsabucks.  Call your ocal office, and they will give you details on
what you need to buy.
Speaking only for myself,
Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: how to change radius client ip? (windNet Radius Client)
Date: 4 Apr 2002 03:40:23 -0800
From: sardine_sz@163.net (sardine)
Organization: http://groups.google.com/
Message-ID: <b1cb4c43.0204040340.29a0d530@posting.google.com>
hi all,
    now i use windNet Radius1.0 client ?
    as you know,radius client get appoint ip address by read radius config
file when radius initialize.
    but ,in fact,  we maybe change radius client ipaddress at anytime.
but after i change the ip address. radius client cannot communication with
radius server.
    windNet radius client have no function dynamic set radius client ip address?
thx!!!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Clearmake and Tornado II generated makefiles
Date: Thu, 04 Apr 2002 01:03:38 +0100
From: molochai <molochai@vapour-trail.demon.co.uk>
Message-ID: <795g8a.v72.ln@vapour-trail.demon.co.uk>
Reply-To: molochai@vapour-trail.demon.co.uk
Having fixed up the TornadoII makesfiles so that they don't use gmake
extensions and thus work under ClearMakem, I'm now left with another small
problem and that's the dependancies generated by Tornado II when it
generates the makefiles: Clearmake doesn't need them (it uses other
dependancy tracking schemes), but will use them if present (and it infact
screws up build auditing if they are).
Due to the well-known ability of T2 to screw up pathnames in dependancies,
and the slightly different handling of VPATH in clearmake, I'm finding that
clearmake fails unless I manually delete the deoendancies from the
makefile.
Has anybody already got a workaround for this? As I see it i've got two
options:
i) Fix uo the T2 TCL so that it doesn't produce dependancies in makefiles
ii) Post process the makefiles to remove them
Any thoughs?
M
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: m()  modify memory
Date: Thu, 4 Apr 2002 13:36:24 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cac3ab0$1@brateggebdc5.br-automation.co.at>
References: <3CAB62FB.E24D9B31@tellabs.com>
Hi,
what do you want to do?
Set a range of bytes to the same value can be done easily using memset()
You may also find memcpy, str(n)cpy, sprintf, etc. interesting at some time.
I don't know of anything that would work with 16 or 32 bit values in this
way.
hth
Werner
"Eric Geelen" <Eric.Geelen@tellabs.com> wrote in message
news:3CAB62FB.E24D9B31@tellabs.com...
>
> When using d() I can spec a range of memory that I would like to
> display, right?
>
> Is there something I can use like the modify command, m(), that allows
> me to write to more than one byte or word at a time? something like an
> m_blk() or so? Or should I just write something.
>
> Thanks for taking the time.
>
> Eric.
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Problem
Date: Thu, 4 Apr 2002 13:41:14 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cac3bd3@brateggebdc5.br-automation.co.at>
References: <7b2e9657.0204040042.5904c683@posting.google.com>
Hi,
you need to purchase Tornado (and VxWorks) for the proper target
architecture.
It's not just the compiler that you need, you also need the proper VxWorks
binaries and some headers for that platform.
Then you need to create a downloadable (or bootable) project for the correct
architecture.
(You currently use simnt target, you will want to use some m68k target - I
don't know the exact name).
You can also add an additional build target, to build the code for both, the
simulator and the real target.
hth
Werner
"manoj" <manoj.kumar@honeywell.com> wrote in message
news:7b2e9657.0204040042.5904c683@posting.google.com...
> Hi All,
>
>    I am using Tarnado 2.0.2 on Windows-NT, Pentium Based Machine.
>
> (1) How i can compile the .c code for MC68000 architecture within the
> Tarnado IDE. I tried to compile it by changing the -DCPU=MC68000
> option.But it asking for some header file (arch\mc68k\archMc68k.h: No
> such file or directory). From where i can download this files, if it
> is already there then how i can configure this.
>
>     (Default CPU option set for tarnado is  -DCPU=SIMNT)
>
> (2) I tried to download a binary file (Compiled by using Diab
> Compiler, for PPC680 architecture), But target showing UNKNOW_MODULE
> error. How it is possible to download & debug this one.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado Developement system
Date: Thu, 04 Apr 2002 13:49:10 +0200
From: Markus Pietrek <mpietrek@fsforth.de>
Organization: FS Forth Systeme GmbH
Message-ID: <a8hejp$oed$05$1@news.t-online.com>
References: <a8bghn$ph5qe$1@ID-120142.news.dfncis.de>
Girish pathak wrote:
> Errors while downloading
> C:/Tornado/target/proj/Project1/SIMNTgnu/Project1.out:
> _sem_wait
> _sem_destroy
> _sem_init
> _sem_post
Seems to me that the kernel doesn't include your kind of semaphores.
Bye,
Markus Pietrek
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Class C subnet mask on class B network
Date: Thu, 4 Apr 2002 13:46:22 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cac3d0a$1@brateggebdc5.br-automation.co.at>
References: <fdc9ba13.0204040130.f8a3619@posting.google.com>
Hi,
how do you set the IP Address?
With ifAddrSet?
<quote source="VxWorks Reference Manual">
The subnet mask used in determining the network portion of the address will
be that set by ifMaskSet( ), or the default class mask if ifMaskSet( ) has
not been called. It is standard practice to call ifMaskSet( ) prior to
calling ifAddrSet( ).
</quote>
If you set the IP address with the bootrom, use the netmask in hex notation
as part of the IP address specified for the target.
Example:
10.20.30.40:ffffff00
Will use netmask 255.255.255.0
hth
Werner
"Cecil" <cecil@hunmanby.demon.co.uk> wrote in message
news:fdc9ba13.0204040130.f8a3619@posting.google.com...
> Does anybody know if there is a way to force vxworks to accept a
> subnet mask? I am aware that vxworks calculates it's subnet mask based
> on the machines IP address, but is there anyway to override this???
> Thanks
> Nigel
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: DosFs2 performance
Date: Thu, 4 Apr 2002 13:54:13 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cac3ee0@brateggebdc5.br-automation.co.at>
References: <3ca612ce.1867405@netnews.attbi.com> <a8bvnn$p4u$1@snoopy.bndlg.de> <3caaa780.48021461@netnews.attbi.com> <Xns91E55FBB26E55borkhuisagerecom@135.7.153.102> <3cabf9e2.42050605@netnews.attbi.com>
Hi,
there is nothing that protects the FAT file system in case of a power
failure (apart from luck).
This is by design - the FAT file system is _not_ fail safe.
In the worst case you loose everything that is on the disk.
You may use the chkdsk utility that comes with the dosFs2.
It will find and partially correct file system errors - but it can't do any
magic.
You may also consider using more than one directory.
It seems, that most the time when the disk is corrupted, its only in the
directory where a file was written.
(but not always)
The best option would be to have some kind of controlled shutdown, if your
device has UPS or at least some battery.
regards
Werner
"David H. Olson" <dcolson@ieee.org> wrote in message
news:3cabf9e2.42050605@netnews.attbi.com...
> The paranoia extends from at least one instance where the entire file
> system was corrupted and we lost every file following a power loss
> when there was a file open.  We've made additional hardware and
> software changes and it's possible that we've eliminated that
> particular failure mode.  Nonetheless, we remain cautious and our
> 'official' policy is to close files as soon as possible.  And while
> that policy may change and make the issue w/ the long opens moot, I'm
> still curious as to what could be going on.
>
> On 3 Apr 2002 07:24:36 GMT, Johan Borkhuis <borkhuis@agere.com> wrote:
>
> >dcolson@ieee.org (David H. Olson) wrote:
> >
> >> The lengthy open() occurs everytime.  We're paranoid about messing up
> >> the entire file system if there's a power fail while a file's open
> >> (it's happened before!) so we tend to open a file, do a little bit w/
> >> it and then close it.  It wasn't a big deal before, but it's now
> >> become an issue so I'm starting to do a little research.
> >
> >What about flushing after every file access instead of opening/closing
the
> >file?
> >
> >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 ===
> >
>
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Thu Apr  4 04:56:31 2002
From: "=?gb2312?B?u8Yg078=?=" <yong_1978@hotmail.com>
Date: Thu Apr  4 04:56:33 PST 2002
Subject: How to install two AMD 79973 netcard in vxwork?
I want to install two AMD 79973 netcard in vxwork!How can I do this??
I am a newer in vxworks. Please help me!
_________________________________________________________________
ѽнʹ MSN Messenger
http://messenger.microsoft.com/cn
From vxwexplo-errs@csg.lbl.gov  Fri Apr  5 04:03:21 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Fri Apr  5 04:03:23 PST 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Fri Apr  5 04:03:13 PST 2002
        Subject: Re: How to preform periodical task except sysAuxClkRateSet()
        Subject: Re: Destroying a semaphore initialized with semBInit
        Subject: Re: Using undefined exceptions.
        Subject: Re: sysClkRateSet() limit
        Subject: Re: DosFs2 performance
        Subject: Re: Mount/unmout drive
        Subject: Re: singelStep debugger and semTake
        Subject: Re: eieio and sync in sysInLong() and sysOutLong()
        Subject: Re: Padding/alignment of structure
        Subject: Re: BSP UART config.
        Subject: Can I boot using ftp on a non-standard ftp port?
        Subject: Re: m()  modify memory
        Subject: Re: eieio and sync in sysInLong() and sysOutLong()
        Subject: Problem with file system
        Subject: Re: BSP UART config.
        Subject: Re: eieio and sync in sysInLong() and sysOutLong()
        Subject: Re: Padding/alignment of structure
        Subject: Re: Task Question: Hows a task find its name and id ...
        Subject: tornado2: how to rebuild the usb library?
        Subject: strange ioctl problem
        Subject: Re: TCL/Gopher code?  pPendQ is for what?
        Subject: shell from command line interface
        Subject: Re: Padding/alignment of structure
        Subject: Re: Distruction of static objects in function scope
        Subject: Re: Clearmake and Tornado II generated makefiles
        Subject: Tornado 1 Install under Windows 2000
        Subject: Re: strange ioctl problem
        Subject: Re: GDB - How to debug large object file
        Subject: Re: Distruction of static objects in function scope
        Subject: Re: Problem with file system
        Subject: Re: tornado2: how to rebuild the usb library?
        Subject: Re: DosFs2 performance
        Subject: Re: DosFs2 performance
        Subject: Get the calendar time from the target
        Subject: Re: Get the calendar time from the target
        Subject: Just Test my new Account
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to preform periodical task except sysAuxClkRateSet()
Date: Thu, 4 Apr 2002 12:41:55 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CAC4A91.9080508@spamm.me.l8s.co.uk>
References: <5c074538.0203122254.56279c06@posting.google.com> <5c074538.0203131643.765b42c2@posting.google.com> <3c90a3ec@brateggebdc5.br-automation.co.at> <3C90AE69.10201@spamm.me.l8s.co.uk> <a73v7o$hgd$1@at-vie-newsmaster01.nextra.at> <3C95E9E3.6070207@spamm.me.l8s.co.uk> <wwn0x4miv6.fsf@atlas.cfht.hawaii.edu> <4cf902bf.0203221920.2e65f87@posting.google.com> <wwit7mn1gr.fsf@atlas.cfht.hawaii.edu> <4cf902bf.0203240914.472936a9@posting.google.com> <wwn0wwm6s0.fsf@atlas.cfht.hawaii.edu> <4cf902bf.0203260813
Jim Thomas wrote:
>  David> Actually I expect it was written assuming a tick of around
>  David> 60-100Hz.  Writing it to support arbitrary fast ticks is quite
>  David> hard.  OTOH if unsigned arithmetic had been done then select()
>  David> would only ever return early.
>
> But that's the "bug" that bit me.  There are two problems in the code.
> Requesting anything on a 4000Hz system.  Requesting 10ms on a 60Hz system.
> To me, returning early at 60Hz is just as bad :-(
I cannot remember what the sus says about timouts for things
like select.  My guess is that select should block until at
least the next 'tick' if the timeout is non-zero - I suspect vxWorks
can convert non-zero timeouts to zero ones!
The problem with a 4kHz system is that some timeouts that should
be less than 1 second get converted to just under 2^32 ticks - about
12 days.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Destroying a semaphore initialized with semBInit
Date: Thu, 4 Apr 2002 13:01:15 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CAC4F19.9080504@spamm.me.l8s.co.uk>
References: <3ca34c76$0$23841$4c41069e@reader0.ash.ops.us.uu.net> <ua6nlqf0kaffff@corp.supernews.com> <488e459a.0203281657.7302474a@posting.google.com> <ua7iqvchr34k3e@corp.supernews.com> <488e459a.0203290214.5238bea6@posting.google.com> <ua99gu2f6jfld2@corp.supernews.com>
Hwa Jin Bae wrote:
> semTerminate() was something that was added later on.  But it was an attempt
> to add counter-part to semInit().   The relationship is that of
> counter-part.  As in open/close.   semInit() really does not need specific
> counter part, because you can simply zero out the memory in question.  But
> it is nice to have.
There is a race condition that has to be considered when deleting a
semaphore.  Basically you need to make it an illegal semaphore
before you do anything about any tasks that are blocked on it.
semFlush() won't suffice because you could wake up a higher priority
task which could loop and wait again.
Maybe taskLock(); semFlush(); bzero(); taskUnlock(); is ok...
Of course you may want to be holding the semaphore yourself at the
time you kill it - certainly you don't want anyone else to think they
have it.  All gets rather complicated :-)
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Using undefined exceptions.
Date: Thu, 4 Apr 2002 13:10:47 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CAC5154.7000108@spamm.me.l8s.co.uk>
References: <uy9gcwcq8.fsf@mistwireless.com>
Bill Pringlemeir wrote:
> [Possibly the problem isn't ARM specific.]
>
> I have T2.1.1, which is the ARM release of T2.1, and it does not
> support the ARMARCH3 but only StrongARM and ARMARCH4 variants.  I
> explored several options at emulating the address mode three
> instructions (and multiplies) that were added in ARCH4.
>
> Anyways, I ended up translating these op-codes to an illegal variant.
> However, vxWorks debugger also used an illegal opcode for break
> points.  I have found a define that uses 0xE7FDDEFE for the break
> points.  I confirmed this by setting breakpoints and writing code to
> retrieve the instruction (the vxWorks tool do something to prevent
> this).
Not realy, the breakpoints are only active while tasks that don't have
VX_UNBREAKABLE set.  If you 'sp d,breakpoint_addr,1,4' you will
see the value.
 > I then patched my own code into the illegal instruction vector
> and call the old vector, named excEnterUndef, after I have determined
> that this is a break point and not an ARMARCH4 instruction to be
> emulated.
>
> All is fine and well.  I can set break points, step through the
> functions, etc.  However, I recently discovered that when I set a
> breakpoint and hit it (calling my illegal instruction vector) the
> shell starts to behave strangely.  Specifically, from the host tools
> the `i' command works fine but the `@i' command gives,
>
>    -> @i
>    WTX Error 0x100cc (AGENT_RT_ERROR)
>    value = -1 = 0xffffffff
>
> I also have the shell running on a tty.  Typing `i' here give,
>
>    -> i
>    Object not found.
>    value = 18 = 0x12
>
> I can run `lkup "printf"'on the host and the target.  However, `@lkup
> "printf"' gives the same WTX error.  I would suspect that something
> with WDB might have went wrong.  I have limited visibility so it is
> difficult to figure out what is happening.
>
> Does excEnterUndef make any assumptions about the stack?  I see that
> it changes to SVC32 mode quickly.  My handler uses the UNDEF stack and
> hands off to the excEnterUndef.  Upon closer inspections, I think that
> I might have to save whatever `undefined stack' and replace this
> before calling the vxWorks excEnterUndef.  Does anyone else have any
> advice on this?  Maybe I should be using the exception library.  The
> overhead seems to much at first.  However, my system seems ok even
> with the `C' implementation of the instruction emulation.
I would just make absolutely sure that you have restored everything
to its original state before before jumping to the vxWorks undef
routine.  I suspect that calling it won't work.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: sysClkRateSet() limit
Date: Thu, 4 Apr 2002 13:16:48 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CAC52BE.1040900@spamm.me.l8s.co.uk>
References: <a4ff328807cdd473cc508e6cadb604b0.76014@mygate.mailgate.org>
Dexter Nixon wrote:
> HI ,
>
> What is the limit for sysClkRateSet( ) call. Also it can be called at
> any time or it should be called initially only once. When i say
> sysClkRateGet it is returning 60. So for every 16ms, we will recieve a
> clock interupt. Suppose i want to have 100 interrupts within a second. I
> can do it by giving 100 as arguement right. If so.. what is the limit of
> having values like this. What is exactly happening insdie when we set
> with a value in sysCLkRateSet() call.
Usual rant.....
max is about 2kHz - or select can behave badly!
Also you need to tell the rtc sw about the new clock rate.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: DosFs2 performance
Date: Thu, 4 Apr 2002 13:32:42 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CAC5677.3040900@spamm.me.l8s.co.uk>
References: <3ca612ce.1867405@netnews.attbi.com> <a8bvnn$p4u$1@snoopy.bndlg.de> <3caaa780.48021461@netnews.attbi.com> <Xns91E55FBB26E55borkhuisagerecom@135.7.153.102> <3cabf9e2.42050605@netnews.attbi.com>
David H. Olson wrote:
> The paranoia extends from at least one instance where the entire file
> system was corrupted and we lost every file following a power loss
> when there was a file open.  We've made additional hardware and
> software changes and it's possible that we've eliminated that
> particular failure mode.  Nonetheless, we remain cautious and our
> 'official' policy is to close files as soon as possible.  And while
> that policy may change and make the issue w/ the long opens moot, I'm
> still curious as to what could be going on.
Does a second open take a long time (ie getting 2 files open at the
same time)?
FWIW I've seen completely trashed FAT file systems on compact
flash.  I took a raw image over to my Unix system and tried to
write an fsck program to fix them, however there were sectors
repeated and in completely the wrong place! I suspect that we
had managed to break the CF card FTL code - possibly by power
cycling while it was active.
OTOH if only the directory is stuffed, you can find all the
files by following the FAT chains - then try to locate the
directory entries.  Only double allocated blocks (merged
FAT chains) cause any difficulty.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Mount/unmout drive
Date: Thu, 4 Apr 2002 13:36:17 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CAC5751.1060504@spamm.me.l8s.co.uk>
References: <tqSp8.316$I7.2641@news.hananet.net>
Seunghoon Lee(̽) wrote:
> Smart media(and compact flash) is mounted using dosFSLib.
> When unmount, memory leak is occured.
> (about 500kbytes)
>
> How can I fix this problem?
Beat up WRS support.....
The entire directory structure is read into memory, there
isn't any accessible code to release it.....
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: singelStep debugger and semTake
Date: Thu, 4 Apr 2002 13:40:31 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CAC584C.3040508@spamm.me.l8s.co.uk>
References: <newscache$xk5wtg$ew1$1@lnews.actcom.co.il>
Ofer Goren wrote:
> --
> ------------------------
> Win2k Sp2
> Tornado 2.02 for PPC
> Diab 4.4b
> Envoy 9.2
> ------------------------
> Hi.
>
> I'm using Diab compiler, and singelstep as my debugger. Everytime I reach a
> semTake function with WAIT_FOREVER, the debugger is halt, I'm loosing
> connection with the target, and I have to reset. So I cannot debug any
> function calling semTake with WAIT_FOREVER.
>
> Any ideas why is that? I know the debugger does not stop all the other
> tasks, or I would not be able to use the target shell. However, other task
> should give the semaphore....
The 'problem' is that semTake has to disable all other tasks in
order to ensure the semaphore is taken correctly.  This effectively
means it is impossible to single step through it.
The easy thing is to try 'cret' or set a breakpoint at the return
address of semTake.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: eieio and sync in sysInLong() and sysOutLong()
Date: Thu, 4 Apr 2002 13:51:32 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CAC5AE1.5040708@spamm.me.l8s.co.uk>
References: <3caae4d0.98474498@news.eunet.no>
BT wrote:
> I have a computer based on a PPC755 with an MPC107
> connected to a PCI bus. I use the functions sysInLong()
> and sysoutLong() to access devices on the PCI bus.
> The functions from vxWorks disasemble like this:
>
> sysInLong:
>     lwbrx   r4,r0,r3
>     eieio
>     sync
>     or      r3,r4,r4
>     bclr    20,0
>
> sysOutLong:
>     stwbrx  r4,r0,r3
>     eieio
>     sync
>     bclr    20,0
>
> Is it realy necessary to use both 'eieio' and 'sync'?
> I does not get any problems if I try to remove the 'eieio'
> but I think it is a bit difficult to fully understand
> when to use these functions.
I have to admit to not having written PPC, but I believe I know
some of what eieio and sync are for :-)
What I wonder is whether the about are 'correct' at all.
Consider the following that might happen in an ethernet
driver tx routine.
	copy_frame_to_shared_memory();
	update_tx_ring();
	sysOutLong( tx_ctl, kick_tx );
Now you need all the memoy writes associated with the first
two actions to happen before the 'kick' of the ethernet chip.
To guarantee this any eieio and/or sync instructions must
be done BEFORE the write generated by sysOutLong.
What have I missed?
	David
---------------------------
Newsgroups: comp.os.vxworks,comp.sys.arm
Subject: Re: Padding/alignment of structure
Date: Thu, 4 Apr 2002 13:56:31 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CAC5C0E.7080308@spamm.me.l8s.co.uk>
References: <a8f8ad$pik$1@news.storm.ca> <f62b24ca.0204031105.3b8333b5@posting.google.com> <PZTq8.81$5X1.12895@read2.inet.fi>
Tauno Voipio wrote:
>
> #ifndef __WORD_DEFINED__
> #define __WORD_DEFINED__
> typedef unsigned char BYTE;
> typedef unsigned short HWORD;
> typedef unsigned long FWORD;
> #endif
FWIW you probably want: 'typedef volatile unsigned char BYTE;'
Although why leave the confusion about how big the types are.
I always define vuint8 et al (add _ and t as required)
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: BSP UART config.
Date: Thu, 4 Apr 2002 13:58:32 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CAC5C87.9000308@spamm.me.l8s.co.uk>
References: <a8fq2j$t9c$1@news.storm.ca>
Harjinder Chayra wrote:
> How do you inform VxWorks of the function to call to write out the first
> character when the output serial device and output ring are enpty?
What is 'usually' done is to enable the tx interrupt.
This is somewhat inefficient - especially if you are using
the tx fifo of the uart and can count in the tx bytes.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Can I boot using ftp on a non-standard ftp port?
Date: Thu, 04 Apr 2002 09:13:36 -0500
From: Paul Coene <pjcoene@kodak.com>
Organization: Eastman Kodak Company
Message-ID: <3CAC5F90.57930B73@kodak.com>
Can I configure VxWorks boot parameters to boot using ftp (as normal)
but using a different ftp port number on the server hosting the
executable image?
Using VxWorks 5.2.
- --
                                Drool
Too much near the truth they say, keep it 'til another day
Let them have their little game, illusion helps to keep them sane
    Butler/Iommi/Osbourne/Ward - 1972
WWW: http://home.rochester.rr.com/drool
WORK: pjcoene@kodak.com
HOME: pcoene1@rochester.rr.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: m()  modify memory
Date: Thu, 04 Apr 2002 08:21:25 -0600
From: Eric Geelen <Eric.Geelen@tellabs.com>
Organization: tellabs
Message-ID: <3CAC6165.CAD48DDC@tellabs.com>
References: <3CAB62FB.E24D9B31@tellabs.com> <3cac3ab0$1@brateggebdc5.br-automation.co.at>
This is a multi-part message in MIME format.
- --------------D8BDFF5CAEDA7B45B854893E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I think memcpy will work, I'll give it a try this afternoon. I wanted to write
a range of contiguous memory with varried data using a pointer to a buffer.
thanks for your help.
Eric.
Werner Schiendl wrote:
> Hi,
>
> what do you want to do?
> Set a range of bytes to the same value can be done easily using memset()
> You may also find memcpy, str(n)cpy, sprintf, etc. interesting at some time.
>
> I don't know of anything that would work with 16 or 32 bit values in this
> way.
>
> hth
> Werner
>
> "Eric Geelen" <Eric.Geelen@tellabs.com> wrote in message
> news:3CAB62FB.E24D9B31@tellabs.com...
> >
> > When using d() I can spec a range of memory that I would like to
> > display, right?
> >
> > Is there something I can use like the modify command, m(), that allows
> > me to write to more than one byte or word at a time? something like an
> > m_blk() or so? Or should I just write something.
> >
> > Thanks for taking the time.
> >
> > Eric.
> >
- --------------D8BDFF5CAEDA7B45B854893E
Content-Type: text/x-vcard; charset=us-ascii;
 name="Eric.Geelen.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Eric Geelen
Content-Disposition: attachment;
 filename="Eric.Geelen.vcf"
begin:vcard
n:Geelen;Eric L.
tel;work:630-512-7880
x-mozilla-html:FALSE
url:http://intwww.hq.tellabs.com/~egeelen/
org:Tellabs Inc.;ONG Infrastructure Group
adr:;;;;;;
version:2.1
email;internet:eric.geelen@tellabs.com
title:Firmware Developer
note;quoted-printable:tel. 630-512-7880 <x17880>=0D=0Afax. 630-512-7098=0D=0A
x-mozilla-cpt:;9504
fn:Eric L. Geelen
end:vcard
- --------------D8BDFF5CAEDA7B45B854893E--
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: eieio and sync in sysInLong() and sysOutLong()
Date: Thu, 4 Apr 2002 17:09:00 +0200
From: "Michael Lawnick" <Lawnick@softec.de>
Organization: Buergernetz Dillingen
Message-ID: <a8hqab$68m$1@snoopy.bndlg.de>
References: <3caae4d0.98474498@news.eunet.no> <3CAC5AE1.5040708@spamm.me.l8s.co.uk>
Reply-To: "Michael Lawnick" <Lawnick@softec.de>
Sender: mlawnick@pd95241a0.dip.t-dialin.net
"David Laight" <david@spamm.me.l8s.co.uk> schrieb im Newsbeitrag
news:3CAC5AE1.5040708@spamm.me.l8s.co.uk...
> BT wrote:
>
> > I have a computer based on a PPC755 with an MPC107
> > connected to a PCI bus. I use the functions sysInLong()
> > and sysoutLong() to access devices on the PCI bus.
> > The functions from vxWorks disasemble like this:
> >
> > sysInLong:
> >     lwbrx   r4,r0,r3
> >     eieio
> >     sync
> >     or      r3,r4,r4
> >     bclr    20,0
> >
> > sysOutLong:
> >     stwbrx  r4,r0,r3
> >     eieio
> >     sync
> >     bclr    20,0
> >
> > Is it realy necessary to use both 'eieio' and 'sync'?
> > I does not get any problems if I try to remove the 'eieio'
> > but I think it is a bit difficult to fully understand
> > when to use these functions.
>
> I have to admit to not having written PPC, but I believe I know
> some of what eieio and sync are for :-)
>
> What I wonder is whether the about are 'correct' at all.
> Consider the following that might happen in an ethernet
> driver tx routine.
> copy_frame_to_shared_memory();
> update_tx_ring();
> sysOutLong( tx_ctl, kick_tx );
> Now you need all the memoy writes associated with the first
> two actions to happen before the 'kick' of the ethernet chip.
> To guarantee this any eieio and/or sync instructions must
> be done BEFORE the write generated by sysOutLong.
>
> What have I missed?
>
> David
>
eieio in update_tx_ring();
;-)
The eieio in sysOutLong only ensures that the function will 'return after
real execution', not 'synchronisation with things done before'. Just a
matter of intention.
Michael
---------------------------
Newsgroups: comp.os.vxworks
Subject: Problem with file system
Date: Thu, 4 Apr 2002 10:49:13 -0500
From: "Bhaskar Rao" <brao@utstar.com>
Message-ID: <3cac7562$0$18250$4c41069e@reader1.ash.ops.us.uu.net>
Hi,
 I am writing a debug utility application in which applications can log
error messages. This log messages are being written to a file. This error
log file I am creating on host, by changing the directory to "host :". Now
when I do ls on host shell, the file created does not show up. If I do close
of the error log file in the debug utility, then the file will show up on
the host. As this is a error log utility I can not do close and open of the
error log file when ever a message is being logged. Any ideas how can I work
around with this problem.  I am using Tornado 2.0 and the host is Solaris
thanks in advance
regards
Bhaskar Rao
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: BSP UART config.
Date: Thu, 4 Apr 2002 11:23:52 -0500
From: "Harjinder Chayra" <harjinder.chayra@terayon.com>
Organization: Storm Internet Services
Message-ID: <a8humh$jg3$1@news.storm.ca>
References: <a8fq2j$t9c$1@news.storm.ca> <3CAC5C87.9000308@spamm.me.l8s.co.uk>
Sender: terayon@gw-terayon.storm.ca
Thanks David, that is exactly what I have determined.
Harjinder
"David Laight" <david@spamm.me.l8s.co.uk> wrote in message
news:3CAC5C87.9000308@spamm.me.l8s.co.uk...
> Harjinder Chayra wrote:
>
> > How do you inform VxWorks of the function to call to write out the first
> > character when the output serial device and output ring are enpty?
>
>
> What is 'usually' done is to enable the tx interrupt.
> This is somewhat inefficient - especially if you are using
> the tx fifo of the uart and can count in the tx bytes.
>
> David
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: eieio and sync in sysInLong() and sysOutLong()
Date: Thu, 4 Apr 2002 16:25:23 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CAC7E06.3060700@spamm.me.l8s.co.uk>
References: <3caae4d0.98474498@news.eunet.no> <3CAC5AE1.5040708@spamm.me.l8s.co.uk> <a8hqab$68m$1@snoopy.bndlg.de>
> eieio in update_tx_ring();
> ;-)
>
> The eieio in sysOutLong only ensures that the function will 'return after
> real execution', not 'synchronisation with things done before'. Just a
> matter of intention.
So actually it serves no purpose at all!
Except (maybe) to force a sequence of sysOutLong() calls to execute
in the requested order.....
IIRC someone had to add a readback as well - to flush the write
through PCI bridges etc.
	David
---------------------------
Newsgroups: comp.os.vxworks,comp.sys.arm
Subject: Re: Padding/alignment of structure
Date: Thu, 04 Apr 2002 16:28:27 GMT
From: "Tauno Voipio" <tauno.voipio@iki.fi.SPAMBAIT_REMOVE.invalid>
Organization: Sonera corp Internet services
Message-ID: <La%q8.462$5X1.38239@read2.inet.fi>
References: <a8f8ad$pik$1@news.storm.ca> <f62b24ca.0204031105.3b8333b5@posting.google.com> <PZTq8.81$5X1.12895@read2.inet.fi> <3CAC5C0E.7080308@spamm.me.l8s.co.uk>
"David Laight" <david@spamm.me.l8s.co.uk> wrote in message
news:3CAC5C0E.7080308@spamm.me.l8s.co.uk...
> Tauno Voipio wrote:
>
> >
> > #ifndef __WORD_DEFINED__
> > #define __WORD_DEFINED__
> > typedef unsigned char BYTE;
> > typedef unsigned short HWORD;
> > typedef unsigned long FWORD;
> > #endif
>
> FWIW you probably want: 'typedef volatile unsigned char BYTE;'
> Although why leave the confusion about how big the types are.
> I always define vuint8 et al (add _ and t as required)
>
No.
I add the volatile specifiers only where needed, not with the unsigned
types. There are plenty of places for an unsigned entity without the extra
code overhead needed for volatile protection.
Tauno Voipio
tauno voipio @ iki fi
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Task Question: Hows a task find its name and id ...
Date: 4 Apr 2002 09:35:19 -0800
From: pkockritz@mac.com (Pete Kockritz)
Organization: http://groups.google.com/
Message-ID: <9423c55b.0204040935.4ad3bc98@posting.google.com>
References: <H7_p8.9581$f5.684560@news> <488e459a.0204011140.290fbc43@posting.google.com> <m3zo0me5ri.fsf@dslnm.trs.ntc.nokia.com>
pjt@iki.fi wrote in message news:<m3zo0me5ri.fsf@dslnm.trs.ntc.nokia.com>...
> I.e, how to read into a variable the information displayed by
> inetstatShow?
>
> I can think of ways to do it (set stdout to a file, call inetstatShow,
> look for the correct line in the file) but is there a cleaner way?
Here's some example code:
- ------------------------------- cut here --------------------------------------
#include <vxWorks.h>
#include <stdio.h>
#include <stdlib.h>
#include <inetLib.h>
#include <in.h>
#include <sockLib.h>
#include <socket.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <netinet/in_pcb.h>
#include <netinet/ip_var.h>
#include <netinet/tcp_var.h>
#include <netinet/udp_var.h>
#include <net/unixLib.h>
const static char *tcpState[] = {
   "CLOSED",     "LISTEN",     "SYN_SENT", "SYN_RECD", "ESTABLISHED",
   "CLOSE_WAIT", "FIN_WAIT_1", "CLOSING",  "LAST_ACK", "FIN_WAIT_2",
   "TIME_WAIT", "UNKNOWN"
};
extern  struct inpcbhead tcpcb;
extern  struct inpcbhead udb;
static char *fmtIpAddr( u_long addr, short port, char *s)
{
   sprintf (s, "%ld.%ld.%ld.%ld.%d",
            (addr >> 24) & 0xff,
            (addr >> 16) & 0xff,
            (addr >>  8) & 0xff,
            (addr >>  0) & 0xff,
            port);
   return s;
}
void superInetstatShow (void)
{
   struct inpcb   *p;
   char            addrStr[32];
   short           state;
   struct tcpcb   *ptcp;
   puts( "Active Internet connections (including servers)");
   printf( "%-8.8s %-5.5s %-6.6s %-6.6s  %-18.18s %-18.18s %3s %s\n",
             "PCB","Proto","Recv-Q","Send-Q","Local Address",
              "Foreign Address","fd","(state)");
   printf( "%-8.8s %-5.5s %-6.6s %-6.6s  %-18.18s %-18.18s %3s %s\n",
             "--------","-----","------","------","------------------",
             "------------------","---","-------");
   p = tcpcb.lh_first;
   while (p)
   {
      state = NELEMENTS(tcpState)-1;
      ptcp = (struct tcpcb*)(p->inp_ppcb);
      if (ptcp)
      {
         state = min(ptcp->t_state, NELEMENTS(tcpState)-1);
      }
      printf ("%-8x  TCP  %6ld %6ld  %-18s",
              (unsigned int)p,
               p->inp_socket->so_rcv.sb_cc,
               p->inp_socket->so_snd.sb_cc,
               fmtIpAddr(p->inp_laddr.s_addr, p->inp_lport, addrStr));
      printf (" %-18s %3d %-11s\n",
              fmtIpAddr(p->inp_faddr.s_addr, p->inp_fport, addrStr),
              p->inp_socket->so_fd,
              tcpState[state]);
      p = p->inp_list.le_next;
   }
   p = udb.lh_first;
   while (p)
   {
      printf ("%-8x  UDP  %6ld %6ld  %-18s",
              (unsigned int)p,
               p->inp_socket->so_rcv.sb_cc,
               p->inp_socket->so_snd.sb_cc,
               fmtIpAddr(p->inp_laddr.s_addr, p->inp_lport, addrStr));
      printf (" %-18s %3d\n",
              fmtIpAddr(p->inp_faddr.s_addr, p->inp_fport, addrStr),
              p->inp_socket->so_fd);
      p = p->inp_list.le_next;
   }
}
- ------------------------------------------- end cut ---------------------------
Here's what the output looks like (like inetstatShow, but with the fd added):
- -> superInetstatShow
Active Internet connections (including servers)
PCB      Proto Recv-Q Send-Q  Local Address      Foreign Address     fd (state)
- -------- ----- ------ ------  ------------------ ------------------ --- -------
76d4a2c   TCP       0      0  0.0.0.0.514        0.0.0.0.0           17 LISTEN
76d48a0   TCP       0      0  0.0.0.0.111        0.0.0.0.0           11 LISTEN
76d4714   TCP       0      0  0.0.0.0.9323       0.0.0.0.0            8 LISTEN
76d4504   TCP       0      0  0.0.0.0.9321       0.0.0.0.0            5 LISTEN
76d49a8   UDP       0      0  0.0.0.0.9368       0.0.0.0.0           16
76d4924   UDP       0      0  0.0.0.0.9306       0.0.0.0.0           15
76d481c   UDP       0      0  0.0.0.0.111        0.0.0.0.0           10
76d4798   UDP       0      0  0.0.0.0.9369       0.0.0.0.0            9
76d4690   UDP       0      0  127.0.0.1.1024     127.0.0.1.17185      7
76d460c   UDP       0      0  0.0.0.0.17185      0.0.0.0.0            6
value = 24 = 0x18
Hope this helps.
Pete
- --
pkockritz at mac dot com
---------------------------
Newsgroups: comp.os.vxworks
Subject: tornado2: how to rebuild the usb library?
Date: 04 Apr 2002 17:29:17 GMT
From: Charly <cdup.inco@laposte.net>
Message-ID: <200244-182917-518560@foorum.com>
Hello,
In "D:\Tornado2\target\src\drv\usb", I see a makefile in this directory.
I'd like to build the library.
Thanks
 charly
- --
Use our news server 'news.foorum.com' from anywhere.
More details at: http://nnrpinfo.go.foorum.com/
---------------------------
Newsgroups: comp.os.vxworks
Subject: strange ioctl problem
Date: 4 Apr 2002 10:24:41 -0800
From: mark_ck_chang@yahoo.com (Mark Chang)
Organization: http://groups.google.com/
Message-ID: <9b6f8883.0204041024.3c6d8966@posting.google.com>
Vxworks 5.3
I have the following test code (part of my CLI-doskey-timeout routines)
  stdInFd = ioTaskStdGet(0,0);
  FD_ZERO(&readFds);
  FD_SET(stdInFd, &readFds);
  if (hd_exit!=-1)
  	FD_SET(hd_exit, &readFds);
  numReady = select(FD_SETSIZE, &readFds, NULL, NULL, &tclSelectTimeout);
  ioctl (stdInFd, FIONREAD, &nBytesUnread);
  printf ("nBytesUnread=%d\n",nBytesUnread);
  do {
    numReady = read (stdInFd,onechar,1);
    ch = *onechar;
    printf (">%x<",ch);
  } while (numReady != 0);
When the stdInFd is the serial port and
I do a 'up' arrow on the keypad, I get this...
nBytesUnread=1
>1b<>5b<>141<
When the stdInFd is the telnet port and
I do a 'up' arrow on the keypad, I get this...
nBytesUnread=3
>1b<>5b<>141<
What the heck is wrong with the serial port?
It should be 3 bytes in the queue not 1!!
Oh, this is the mode I'm putting the tty in
ioctl(STD_IN, FIOSETOPTIONS, OPT_ABORT | OPT_7_BIT | OPT_TANDEM | OPT_CRMOD);
TIA
Mark
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: TCL/Gopher code?  pPendQ is for what?
Date: 04 Apr 2002 13:51:46 -0500
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <ulmc35mbh.fsf@yahoo.com>
References: <u8z848a70.fsf@yahoo.com> <u3cyc8831.fsf@yahoo.com> <uy9g46sgl.fsf@yahoo.com>
Sender: bpringlemeir@DeadDuck
 Bill> For prosperity...
 Bill> This is for general edification.
The other version had a casting bug.  This one includes message queues,
but not shared objects.  I will stop now...  I promise.
[start]
#include <vxWorks.h>
#include <taskLib.h>
#include <stdio.h>
#include <stddef.h>
#include <vxLib.h>
#include <semLib.h>
#include <qJobLib.h>
#include <msgQLib.h>
#include <private/msgQLibP.h>
/* Fixme: Are these defines somewhere? */
#define TASK_STATUS_RUNNING (0<<0)
#define TASK_STATUS_SUSPEND (1<<0)
#define TASK_STATUS_PEND    (1<<1)
#define TASK_STATUS_DELAY   (1<<2)
static void printHeader(void)
{
    printf("  NAME       TID      STATUS    OBJ_TYPE   OBJ_ID \n");
    printf("---------- -------- ---------- ---------- --------\n");
}
static void printTask(int current)
{
    CLASS_ID classId;
    WIND_TCB *tcb;
    SEM_ID sem;
    MSG_Q_ID msgQ;
    BOOL msgQFlag = FALSE, semFlag = FALSE;
    static char const * const semNames[] =
        { "BINARY", "MUTEX", "COUNTING", "OLD" };
    tcb = taskTcb(current);
    if(tcb->status & TASK_STATUS_PEND)
    {
        sem = (SEM_ID) ((void*) tcb->pPendQ - offsetof(SEMAPHORE, qHead));
        if(OK == vxMemProbe((void*)sem, VX_READ, sizeof(classId),
                            (void*)&classId))
        {
            if(classId == semClassId)
                semFlag = TRUE;
        }
        /* First check message queue. */
        msgQ = (MSG_Q_ID)((char*) tcb->pPendQ - offsetof(Q_JOB_HEAD, pendQ)
                          - offsetof(MSG_Q, msgQ));
        if(OK == vxMemProbe((void*) msgQ, VX_READ, sizeof(classId),
                            (void*) &classId))
        {
            if(classId == msgQClassId)
                msgQFlag = TRUE;
            else
            {
                /* Second check free queue. */
                msgQ = (MSG_Q_ID)((char*) tcb->pPendQ -
                                  offsetof(Q_JOB_HEAD, pendQ) -
                                  offsetof(MSG_Q, freeQ));
                if(OK == vxMemProbe((void*) msgQ, VX_READ, sizeof(classId),
                                    (void*) &classId))
                {
                    if(classId == msgQClassId)
                        msgQFlag = TRUE;
                }
            }
        }
        if(semFlag && sem->semType <= SEM_TYPE_OLD)
            printf ("%-10.10s %8x PEND       %-10.10s %8p\n",
                    tcb->name, current, semNames[sem->semType], sem);
        if(msgQFlag)
            printf ("%-10.10s %8x PEND       %-10.10s %8p\n",
                    tcb->name, current, "MSG_Q", msgQ);
    }
}
void waitTask(int tid)
{
    UINT32 storage;
    if(OK == vxMemProbe((void*) tid, VX_READ, sizeof(storage),
                                    (void*) &storage))
    {
        if(ERROR == taskIdVerify(tid))
            tid = taskNameToId((char*)tid);
    }
    if(tid != ERROR)
    {
        printHeader();
        printTask(tid);
    }
    else
    {
        printf("Task not found.");
    }
}
void waitList(void)
{
    int taskIds[64];          /* Limited to 64 tasks. */
    int numTasks, i;
    numTasks = taskIdListGet(taskIds, NELEMENTS(taskIds));
    printHeader();
    for(i = 0; i < numTasks; i++)
    {
        printTask(taskIds[i]);
    }
}
[end]
- --
Loaning money to your friend will bring dividends.  Your tetrodotoxin
will need to be excommunicated today.  Your piglet will be turning
yellow in the next 1 or 7 minutes.  Loving your dinoflagellate now
will turn out to be mysterious after a few minutes.  You'll sometimes
be happy.  Your lucky numbers are 20, 30, and 40.
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: shell from command line interface
Date: Thu, 04 Apr 2002 21:52:43 GMT
From: "Verizon" <vze399g7@verizon.net>
Message-ID: <LW3r8.2124$8r5.1589@nwrddc01.gnilink.net>
Hi,
I am executing a vxworks shell from a command line interface that is
attached
to my console.  Seem to be losing @3200 bytes each time I enter/exit the
shell
while doing other Command Line stuff.  Does not appear to be related to any
of
the code that I am using, seems directly attributed to the shell.
Anybody see this or have a solution?
---------------------------
Newsgroups: comp.os.vxworks,comp.sys.arm
Subject: Re: Padding/alignment of structure
Date: Thu, 04 Apr 2002 13:56:18 -0800
From: Kevin D. Quitt <KQuitt@IEEInc.com>
Organization: If was organized, would I be reading Net News?
Message-ID: <943C8575F9D0CE72.D2701C6916D1FF6E.5F67D87FC2059E24@lp.airnews.net>
References: <a8f8ad$pik$1@news.storm.ca>
Reply-To: KQuitt@IEEInc.com
I'm using a GNU-derivative compiler, and this works:
__packed struct {...};
- --
#include <standard.disclaimer>
 _
Kevin D Quitt  USA 91351-4454           96.37% of all statistics are made up
Per the FCA, this email address may not be added to any commercial mail list
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Distruction of static objects in function scope
Date: Thu, 04 Apr 2002 21:47:10 +0100
From: molochai <molochai@vapour-trail.demon.co.uk>
Message-ID: <e4ei8a.4ae.ln@vapour-trail.demon.co.uk>
References: <aDqq8.22783$9d3.19723@nwrddc01.gnilink.net> <iaCq8.542$7L2.853370@newsr2.u-net.net> <jMIq8.1342$Wv2.82@nwrddc02.gnilink.net>
Reply-To: molochai@vapour-trail.demon.co.uk
Matt Schuckmann wrote:
> As a matter of fact they were not created when the module was loaded.
> They were not constructed until the function was called.
<snip>
>         cout << "Constructor for cStaticTest( " << m_str << ");" << endl;
Be very careful relying on the timing of anything output with to cout - it's
buffered quite considerably and you'll get output when the buffer gets
full. printf() or logMsg() are a much better bet, if not quite pure.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Clearmake and Tornado II generated makefiles
Date: Thu, 04 Apr 2002 21:56:34 +0100
From: molochai <molochai@vapour-trail.demon.co.uk>
Message-ID: <3mei8a.oce.ln@vapour-trail.demon.co.uk>
References: <795g8a.v72.ln@vapour-trail.demon.co.uk>
Reply-To: molochai@vapour-trail.demon.co.uk
molochai wrote:
> Having fixed up the TornadoII makesfiles so that they don't use gmake
> extensions and thus work under ClearMakem, I'm now left with another small
> problem and that's the dependancies generated by Tornado II when it
> generates the makefiles: Clearmake doesn't need them (it uses other
> dependancy tracking schemes), but will use them if present (and it infact
> screws up build auditing if they are).
> Due to the well-known ability of T2 to screw up pathnames in dependancies,
> and the slightly different handling of VPATH in clearmake, I'm finding
> that clearmake fails unless I manually delete the deoendancies from the
> makefile.
>
> Has anybody already got a workaround for this? As I see it i've got two
> options:
> i) Fix uo the T2 TCL so that it doesn't produce dependancies in makefiles
> ii) Post process the makefiles to remove them
>
At the danger of answering my own question, here's how I did it - for the
benefit of the next person who asks.
I went for option i) in the end and removed the code that outputs the
dependancy list from:
$WINDBASE/host/resource/tcl/app-config/project/prj_vxapp.tcl
Conveniently enough, a bit lower down in the same is the line which actually
invokes GNUmake. This was changed to invoke clearmake instead.
To make editing TornadoII's TCL a little more palettable, my entire T2
installation is under clearcase and I labelled the original version thus
allowing me to switch back to GNU make merely by adding
element * /main/GNUMAKE
to the top of my config-spec.
M
---------------------------
Newsgroups: comp.os.vxworks
Subject: Tornado 1 Install under Windows 2000
Date: 4 Apr 2002 15:02:45 -0800
From: mike.powell@transcore.com (Mike)
Organization: http://groups.google.com/
Message-ID: <9fc2e09f.0204041502.4e39a44c@posting.google.com>
Anyone (help!),
I thought I'd revisit Tornado 1 on my Windows 2000 development
machine. The place where the installation was left was this.
When I try starting Tornado (tornado.exe) I get a windows error:
"tornado.exe - Entry Point Not Found. The procedure entry point
Tcl_DStringTrunc could not be located in the dynamic link library
TCL.DLL [OK]".
I don't have a clue what this means, except that I cannot start
Tornado 1 to be of any assistance while we still depend on it for
product code. I have already exhausted Wind River support as an option
(Tornado 1 is unsupported for Windows 2000).
Any insight will be greatly appreciated! (e.g. how in the heck do I
get past this?!)
Thanks!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: strange ioctl problem
Date: Thu, 4 Apr 2002 23:24:07 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CACE114.3080502@spamm.me.l8s.co.uk>
References: <9b6f8883.0204041024.3c6d8966@posting.google.com>
Mark Chang wrote:
> When the stdInFd is the serial port and
> I do a 'up' arrow on the keypad, I get this...
>
> nBytesUnread=1
>
>>1b<>5b<>141<
>>
>
> When the stdInFd is the telnet port and
> I do a 'up' arrow on the keypad, I get this...
>
> nBytesUnread=3
>
>>1b<>5b<>141<
>>
>
> What the heck is wrong with the serial port?
Absolutely nothing!
You need to add a delay in your code and wait for all if the
escape sequence to arrive.  For telnet this has happened in the
telnet client (although maybe you didn't even start with an
async keyboard!).
Remember also to allow for additional characters in the rx buffer,
also some applications like to treat ESC as a character distict
from and escape sequence - just to make things slightly more
complicated :-)
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: GDB - How to debug large object file
Date: Fri, 05 Apr 2002 00:50:36 GMT
From: "Peter Marqui" <peter.marqui@rauland.com>
Organization: Verio
Message-ID: <wx6r8.15551$A%3.121989@ord-read.news.verio.net>
References: <a8fce8$cm8$1@bcarh8ab.ca.nortel.com>
Compile different sources files with different levels of debug info
use -g2 only on files the use wish to single step thru
use -g0 or -g1 on the remaining files
"dp" <datphm@hotmail.com> wrote in message
news:a8fce8$cm8$1@bcarh8ab.ca.nortel.com...
> I have a very large object file to debug (>500MB). Obviously, it is too
big
> for my board (Motorola mcpn750 card, 128 MB RAM). I used Tonado
2.1/vxWorks
> 5.4.2.
>
> What options should I use to debug it?
>     - strip it using stripppc -S and load it to the target but the how can
I
> syncronize it with its symbols?
>     - Can't load all of it
>
>   Do you know the best way of debug a very large file using GDB?
>
>   Any help or suggestions should be very appreciated.
>
> Dat
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Distruction of static objects in function scope
Date: Fri, 05 Apr 2002 01:10:10 GMT
From: "Matt Schuckmann" <matt.schuckman@verizon.net>
Message-ID: <SP6r8.3204$VA5.705@nwrddc04.gnilink.net>
References: <aDqq8.22783$9d3.19723@nwrddc01.gnilink.net> <iaCq8.542$7L2.853370@newsr2.u-net.net> <jMIq8.1342$Wv2.82@nwrddc02.gnilink.net> <e4ei8a.4ae.ln@vapour-trail.demon.co.uk>
Ok I changed the code to use printf and got no change in behavior.
Does vxworks really do any more buffering of cout than any other
implimentation of streams, it has been my experience that endl will flush
the buffers imeadiately just as if you used printf.
Matt S.
"molochai" <molochai@vapour-trail.demon.co.uk> wrote in message
news:e4ei8a.4ae.ln@vapour-trail.demon.co.uk...
> Matt Schuckmann wrote:
>
> > As a matter of fact they were not created when the module was loaded.
> > They were not constructed until the function was called.
>
> <snip>
>
> >         cout << "Constructor for cStaticTest( " << m_str << ");" <<
endl;
>
> Be very careful relying on the timing of anything output with to cout -
it's
> buffered quite considerably and you'll get output when the buffer gets
> full. printf() or logMsg() are a much better bet, if not quite pure.
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Problem with file system
Date: 4 Apr 2002 21:08:24 -0800
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204042108.477877c7@posting.google.com>
References: <3cac7562$0$18250$4c41069e@reader1.ash.ops.us.uu.net>
Hello,
Since you've chosen a real operating system for your host, you can
simply switch from netDrv (the pseudo-file system that is behind
'host:' and was intended for development use only), to NFS which will
work much better for the sorts of things you are trying to do.
Look in the manuals for details, but basically INCLUDE_NFS and perhaps
INCLUDE_NFS_MOUNT_ALL are the things you need to add. Be sure to
define the user and group ID you want to use when accessing the
mounted FS.
HTH,
John...
"Bhaskar Rao" <brao@utstar.com> wrote in message news:<3cac7562$0$18250$4c41069e@reader1.ash.ops.us.uu.net>...
> Hi,
>  I am writing a debug utility application in which applications can log
> error messages. This log messages are being written to a file. This error
> log file I am creating on host, by changing the directory to "host :". Now
> when I do ls on host shell, the file created does not show up. If I do close
> of the error log file in the debug utility, then the file will show up on
> the host. As this is a error log utility I can not do close and open of the
> error log file when ever a message is being logged. Any ideas how can I work
> around with this problem.  I am using Tornado 2.0 and the host is Solaris
> thanks in advance
> regards
> Bhaskar Rao
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: tornado2: how to rebuild the usb library?
Date: 4 Apr 2002 21:19:22 -0800
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204042119.1be811a4@posting.google.com>
References: <200244-182917-518560@foorum.com>
Hello,
If you want to rebuild the USB drivers, or anything else under
target/src, simply do the following:
1) Make sure you've executed torVars.bat (in the host/x86-win32/bin
directory) - that will set up the command line environment
2) Go to the directory to rebuild
3) Type: make CPU=<your CPU>
Replace <your CPU> with the name of the CPU you are building for, e.g.
SIMNT or PPC860. If you are unsure of what this is, check in your
BSP's Makefile.
HTH,
John...
Charly <cdup.inco@laposte.net> wrote in message news:<200244-182917-518560@foorum.com>...
> Hello,
>
> In "D:\Tornado2\target\src\drv\usb", I see a makefile in this directory.
>
> I'd like to build the library.
> Thanks
>  charly
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: DosFs2 performance
Date: Fri, 05 Apr 2002 06:06:20 GMT
From: dcolson@ieee.org (David H. Olson)
Organization: Oresis Communications, Inc.
Message-ID: <3cad3d96.29316544@netnews.attbi.com>
References: <3ca612ce.1867405@netnews.attbi.com> <a8bvnn$p4u$1@snoopy.bndlg.de> <3caaa780.48021461@netnews.attbi.com> <Xns91E55FBB26E55borkhuisagerecom@135.7.153.102> <3cabf9e2.42050605@netnews.attbi.com> <3cac3ee0@brateggebdc5.br-automation.co.at>
Reply-To: dolson@oresis.com
Knowning the inherent problems w/ FAT file systems, we'd made a
serious attempt to find a journaling file system that was ready to go
under vxWorks and were pretty excited by a product made by a company
called CrossStor.  But then they were bought by someone else who
pulled the file system off the market.  I recall a post from Leonid in
which he reported that there was consideration of WindRiver doing a
journaling file system, but it never got off the ground.
In the meantime, we have worked very hard on cleaning up our shutdown
processing and are thinking that things may not be as bad as they once
were.
On Thu, 4 Apr 2002 13:54:13 +0200, "Werner Schiendl" <ws-news@gmx.at>
wrote:
>Hi,
>
>there is nothing that protects the FAT file system in case of a power
>failure (apart from luck).
>This is by design - the FAT file system is _not_ fail safe.
>
>In the worst case you loose everything that is on the disk.
>
>You may use the chkdsk utility that comes with the dosFs2.
>It will find and partially correct file system errors - but it can't do any
>magic.
>
>You may also consider using more than one directory.
>It seems, that most the time when the disk is corrupted, its only in the
>directory where a file was written.
>(but not always)
>
>The best option would be to have some kind of controlled shutdown, if your
>device has UPS or at least some battery.
>
>regards
>Werner
>
>
>"David H. Olson" <dcolson@ieee.org> wrote in message
>news:3cabf9e2.42050605@netnews.attbi.com...
>> The paranoia extends from at least one instance where the entire file
>> system was corrupted and we lost every file following a power loss
>> when there was a file open.  We've made additional hardware and
>> software changes and it's possible that we've eliminated that
>> particular failure mode.  Nonetheless, we remain cautious and our
>> 'official' policy is to close files as soon as possible.  And while
>> that policy may change and make the issue w/ the long opens moot, I'm
>> still curious as to what could be going on.
>>
>> On 3 Apr 2002 07:24:36 GMT, Johan Borkhuis <borkhuis@agere.com> wrote:
>>
>> >dcolson@ieee.org (David H. Olson) wrote:
>> >
>> >> The lengthy open() occurs everytime.  We're paranoid about messing up
>> >> the entire file system if there's a power fail while a file's open
>> >> (it's happened before!) so we tend to open a file, do a little bit w/
>> >> it and then close it.  It wasn't a big deal before, but it's now
>> >> become an issue so I'm starting to do a little research.
>> >
>> >What about flushing after every file access instead of opening/closing
>the
>> >file?
>> >
>> >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: DosFs2 performance
Date: Fri, 05 Apr 2002 06:13:39 GMT
From: dcolson@ieee.org (David H. Olson)
Organization: Oresis Communications, Inc.
Message-ID: <3cad3f08.29685645@netnews.attbi.com>
References: <3ca612ce.1867405@netnews.attbi.com> <a8bvnn$p4u$1@snoopy.bndlg.de> <3caaa780.48021461@netnews.attbi.com> <Xns91E55FBB26E55borkhuisagerecom@135.7.153.102> <3cabf9e2.42050605@netnews.attbi.com> <3CAC5677.3040900@spamm.me.l8s.co.uk>
Reply-To: dolson@oresis.com
Good question.  I will explore that one along w/ other suggestions
that folks have made.
We have the source for dosFs2 and actually build it as part of our
normal build process as we had to make a small mod.  So at some point,
I'll crack open the source and see what's up.
On Thu, 4 Apr 2002 13:32:42 +0000 (UTC), David Laight
<david@spamm.me.l8s.co.uk> wrote:
>David H. Olson wrote:
>
>> The paranoia extends from at least one instance where the entire file
>> system was corrupted and we lost every file following a power loss
>> when there was a file open.  We've made additional hardware and
>> software changes and it's possible that we've eliminated that
>> particular failure mode.  Nonetheless, we remain cautious and our
>> 'official' policy is to close files as soon as possible.  And while
>> that policy may change and make the issue w/ the long opens moot, I'm
>> still curious as to what could be going on.
>
>Does a second open take a long time (ie getting 2 files open at the
>same time)?
>
>FWIW I've seen completely trashed FAT file systems on compact
>flash.  I took a raw image over to my Unix system and tried to
>write an fsck program to fix them, however there were sectors
>repeated and in completely the wrong place! I suspect that we
>had managed to break the CF card FTL code - possibly by power
>cycling while it was active.
>
>OTOH if only the directory is stuffed, you can find all the
>files by following the FAT chains - then try to locate the
>directory entries.  Only double allocated blocks (merged
>FAT chains) cause any difficulty.
>
>	David
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Get the calendar time from the target
Date: 5 Apr 2002 01:54:31 -0800
From: odinkch@hotmail.com (choon huat)
Organization: http://groups.google.com/
Message-ID: <48692ced.0204050154.4b97523b@posting.google.com>
Hi,
I am a IA student from Nanyang Technological University. Presently, I
am involved in a embedded system using the Vxworks operationg system.
I would like to know how to get the correct calendar time from target
system(bios). I have manage to get the reference calendar time (1970)
from the target system. Would appreciate if someone could help me in
this.
Thank you.
From
Choon Huat
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Get the calendar time from the target
Date: Fri, 5 Apr 2002 12:14:16 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cad78ee$1@brateggebdc5.br-automation.co.at>
References: <48692ced.0204050154.4b97523b@posting.google.com>
Hi,
from your post I assume you are using PC hardware for the project, and
pc486, pcPentium or other such 'generic' BSP.
These BSPs do not include code to read the RTC built into the PC and set the
system time appropriately.
When we asked WRS why, they stated that there are many different
implementations of RTC for PCs.
As far as I can tell, this is nonsense.
You can find appropriate code in any good PC hardware book (best are books
that date back to DOS times).
You need to address the hardware RTC directly, not the BIOS interrupts
(which are normally unavailable in VxWorks).
E. g. the book 'PC intern' contains good information on the topic.
Probably, there are also resources on the net available for this.
hth
Werner
"choon huat" <odinkch@hotmail.com> wrote in message
news:48692ced.0204050154.4b97523b@posting.google.com...
> Hi,
>
> I am a IA student from Nanyang Technological University. Presently, I
> am involved in a embedded system using the Vxworks operationg system.
>
> I would like to know how to get the correct calendar time from target
> system(bios). I have manage to get the reference calendar time (1970)
> from the target system. Would appreciate if someone could help me in
> this.
>
> Thank you.
>
> From
> Choon Huat
---------------------------
Newsgroups: comp.os.vxworks
Subject: Just Test my new Account
Date: 5 Apr 2002 02:54:31 -0800
From: zhouyuning@hotmail.com (BlueShallop)
Organization: http://groups.google.com/
Message-ID: <bdadda3b.0204050254.79b02011@posting.google.com>
I am a newer, I hope I can get all master's help here!!
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Fri Apr  5 15:20:29 2002
From: "Valarie Williams" <val@cprstaffing.com>
Date: Fri Apr  5 15:20:32 PST 2002
Subject: Embedded Software Engineers & Systems Engineers
This is a multi-part message in MIME format.
------=_NextPart_000_00CF_01C1DCCA.76EE0760
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
Perhaps you can help me. I am currently assisting a Major Communications =
Company in the Philadelphia area that is in need of Embedded Software =
Engineers, and Systems Engineers. This is a great company with excellent =
benefits! If you know someone that would qualify, please forward this =
email to them. I appreciate any help you can give.
To be considered for this opportunity please forward a Word copy of your =
resume, your salary history ( last 2 positions), your contact =
information (include a cell phone if you have one). Please let me know =
if you are interested.
Sincerely,
Valarie Williams
CPR, Inc.
Val@cprstaffing.com
_________________________________________________________________________=
__
EMBEDDED SOFTWARE ENGINEERS
Active DOD Secret Security Clearance Required for this position. If your =
clearance was administratively inactivated within the last 22 months, =
you may still qualify.
JOB DESCRIPTION:
- Software requirements analysis, design, development, integration and =
test of digital signal processing software.
- Produce product which meets customer's requirements.
- Coordination with systems engineering and customer regarding DAP =
issues.
- Identify and plan to mitigate risks to successful completion of =
project.
- Meet challenging schedule within cost allocation.
REQUIREMENTS:
- BSEE, CE.
- 4-12 years experience in software systems requirements analysis, =
design, development, integration and test with concentration in digital =
signal process.
- Experience with embedded real-time C and RTOS (VxWorks preferred).
- Excellent written and verbal communication skills.
- Familiarity with modern software engineering process/methodology.
- Use workstation based software engineering tools.
- Self-starter, highly motivate and demonstrated success in working on =
teams.
- Active DOD Secret Security Clearance.
SALARY:
70-100K relocation assistance available
____________________________________________________________
SENIOR SYSTEMS ENGINEERS
REQUIREMENTS:
- Proficient in requirements analysis and development.
- Proficient in specification development,
- Knowledgeable in system modeling such as UML or Demaro
- Knowledgeable in hardware and in software processes and their =
interaction.
- Proficient in the development of test plans, procedures and reports.
- Proficient in system design.
- Proficient in the development of security related documentation.
- Knowledgeable in cryptographic principles.
- Knowledgeable in RED/BLACK separation principles and in TEMPEST design =
principles.
- Demonstrated self-starter.
- BSEE,CE. US Citizenship Required.
- Most positions require a background investigation.
____________________________________________________________
Contact:
Valarie Williams
CPR, Inc.
Val@cprstaffing.com
------=_NextPart_000_00CF_01C1DCCA.76EE0760
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><FONT face=3DArial=20
size=3D2></FONT><FONT face=3DArial size=3D2></FONT>
<DIV><BR><FONT face=3DArial size=3D2>Perhaps you can help me. I am =
currently=20
assisting a Major Communications Company in the Philadelphia area that =
is in=20
need of Embedded Software Engineers, and Systems Engineers. This is a =
great=20
company with excellent benefits! If you know someone that would qualify, =
please=20
forward this email to them. I appreciate any help you can =
give.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>To be considered for this =
opportunity please=20
forward a Word copy of your resume, your salary history ( last 2 =
positions),=20
your contact information (include a cell phone if you have one). Please =
let me=20
know if you are interested.<BR><BR>Sincerely,<BR><BR>Valarie =
Williams<BR>CPR,=20
Inc.<BR></FONT><A href=3D"mailto:Val@cprstaffing.com"><FONT face=3DArial =
size=3D2>Val@cprstaffing.com</FONT></A><BR><FONT face=3DArial=20
size=3D2>________________________________________________________________=
___________<BR>EMBEDDED=20
SOFTWARE ENGINEERS<BR><BR>Active DOD Secret Security Clearance Required =
for this=20
position. If your clearance was administratively inactivated within the =
last 22=20
months, you may still qualify.<BR><BR>JOB DESCRIPTION:<BR>- Software=20
requirements analysis, design, development, integration and test of =
digital=20
signal processing software.<BR>- Produce product which meets customer's=20
requirements.<BR>- Coordination with systems engineering and customer =
regarding=20
DAP issues.<BR>- Identify and plan to mitigate risks to successful =
completion of=20
project.<BR>- Meet challenging schedule within cost=20
allocation.<BR><BR>REQUIREMENTS:<BR>- BSEE, CE.<BR>- 4-12 years =
experience in=20
software systems requirements analysis, design, development, integration =
and=20
test with concentration in digital signal process.<BR>- Experience with =
embedded=20
real-time C and RTOS (VxWorks preferred).<BR>- Excellent written and =
verbal=20
communication skills.<BR>- Familiarity with modern software engineering=20
process/methodology.<BR>- Use workstation based software engineering =
tools.<BR>-=20
Self-starter, highly motivate and demonstrated success in working on =
teams.<BR>-=20
Active DOD Secret Security Clearance.<BR><BR>SALARY:<BR>70-100K =
relocation=20
assistance=20
available<BR>____________________________________________________________=
<BR><BR>SENIOR=20
SYSTEMS ENGINEERS<BR><BR>REQUIREMENTS:<BR>- Proficient in requirements =
analysis=20
and development.<BR>- Proficient in specification development,<BR>-=20
Knowledgeable in system modeling such as UML or Demaro<BR>- =
Knowledgeable in=20
hardware and in software processes and their interaction.<BR>- =
Proficient in the=20
development of test plans, procedures and reports.<BR>- Proficient in =
system=20
design.<BR>- Proficient in the development of security related=20
documentation.<BR>- Knowledgeable in cryptographic principles.<BR>-=20
Knowledgeable in RED/BLACK separation principles and in TEMPEST design=20
principles.<BR>- Demonstrated self-starter.<BR>- BSEE,CE. US Citizenship =
Required.<BR>- Most positions require a background =
investigation.</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>____________________________________________________________</FO=
NT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Contact:<BR>Valarie Williams<BR>CPR,=20
Inc.<BR></FONT><A href=3D"mailto:Val@cprstaffing.com"><FONT face=3DArial =
size=3D2>Val@cprstaffing.com</FONT></A></DIV></BODY></HTML>
------=_NextPart_000_00CF_01C1DCCA.76EE0760--
From vxwexplo-errs@csg.lbl.gov  Fri Apr  5 15:27:57 2002
From: "Valarie Williams" <val@cprstaffing.com>
Date: Fri Apr  5 15:27:59 PST 2002
Subject: Embedded Software Engineers & Systems Engineers
This is a multi-part message in MIME format.
------=_NextPart_000_00CF_01C1DCCA.76EE0760
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
Perhaps you can help me. I am currently assisting a Major Communications =
Company in the Philadelphia area that is in need of Embedded Software =
Engineers, and Systems Engineers. This is a great company with excellent =
benefits! If you know someone that would qualify, please forward this =
email to them. I appreciate any help you can give.
To be considered for this opportunity please forward a Word copy of your =
resume, your salary history ( last 2 positions), your contact =
information (include a cell phone if you have one). Please let me know =
if you are interested.
Sincerely,
Valarie Williams
CPR, Inc.
Val@cprstaffing.com
_________________________________________________________________________=
__
EMBEDDED SOFTWARE ENGINEERS
Active DOD Secret Security Clearance Required for this position. If your =
clearance was administratively inactivated within the last 22 months, =
you may still qualify.
JOB DESCRIPTION:
- Software requirements analysis, design, development, integration and =
test of digital signal processing software.
- Produce product which meets customer's requirements.
- Coordination with systems engineering and customer regarding DAP =
issues.
- Identify and plan to mitigate risks to successful completion of =
project.
- Meet challenging schedule within cost allocation.
REQUIREMENTS:
- BSEE, CE.
- 4-12 years experience in software systems requirements analysis, =
design, development, integration and test with concentration in digital =
signal process.
- Experience with embedded real-time C and RTOS (VxWorks preferred).
- Excellent written and verbal communication skills.
- Familiarity with modern software engineering process/methodology.
- Use workstation based software engineering tools.
- Self-starter, highly motivate and demonstrated success in working on =
teams.
- Active DOD Secret Security Clearance.
SALARY:
70-100K relocation assistance available
____________________________________________________________
SENIOR SYSTEMS ENGINEERS
REQUIREMENTS:
- Proficient in requirements analysis and development.
- Proficient in specification development,
- Knowledgeable in system modeling such as UML or Demaro
- Knowledgeable in hardware and in software processes and their =
interaction.
- Proficient in the development of test plans, procedures and reports.
- Proficient in system design.
- Proficient in the development of security related documentation.
- Knowledgeable in cryptographic principles.
- Knowledgeable in RED/BLACK separation principles and in TEMPEST design =
principles.
- Demonstrated self-starter.
- BSEE,CE. US Citizenship Required.
- Most positions require a background investigation.
____________________________________________________________
Contact:
Valarie Williams
CPR, Inc.
Val@cprstaffing.com
------=_NextPart_000_00CF_01C1DCCA.76EE0760
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><FONT face=3DArial=20
size=3D2></FONT><FONT face=3DArial size=3D2></FONT>
<DIV><BR><FONT face=3DArial size=3D2>Perhaps you can help me. I am =
currently=20
assisting a Major Communications Company in the Philadelphia area that =
is in=20
need of Embedded Software Engineers, and Systems Engineers. This is a =
great=20
company with excellent benefits! If you know someone that would qualify, =
please=20
forward this email to them. I appreciate any help you can =
give.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>To be considered for this =
opportunity please=20
forward a Word copy of your resume, your salary history ( last 2 =
positions),=20
your contact information (include a cell phone if you have one). Please =
let me=20
know if you are interested.<BR><BR>Sincerely,<BR><BR>Valarie =
Williams<BR>CPR,=20
Inc.<BR></FONT><A href=3D"mailto:Val@cprstaffing.com"><FONT face=3DArial =
size=3D2>Val@cprstaffing.com</FONT></A><BR><FONT face=3DArial=20
size=3D2>________________________________________________________________=
___________<BR>EMBEDDED=20
SOFTWARE ENGINEERS<BR><BR>Active DOD Secret Security Clearance Required =
for this=20
position. If your clearance was administratively inactivated within the =
last 22=20
months, you may still qualify.<BR><BR>JOB DESCRIPTION:<BR>- Software=20
requirements analysis, design, development, integration and test of =
digital=20
signal processing software.<BR>- Produce product which meets customer's=20
requirements.<BR>- Coordination with systems engineering and customer =
regarding=20
DAP issues.<BR>- Identify and plan to mitigate risks to successful =
completion of=20
project.<BR>- Meet challenging schedule within cost=20
allocation.<BR><BR>REQUIREMENTS:<BR>- BSEE, CE.<BR>- 4-12 years =
experience in=20
software systems requirements analysis, design, development, integration =
and=20
test with concentration in digital signal process.<BR>- Experience with =
embedded=20
real-time C and RTOS (VxWorks preferred).<BR>- Excellent written and =
verbal=20
communication skills.<BR>- Familiarity with modern software engineering=20
process/methodology.<BR>- Use workstation based software engineering =
tools.<BR>-=20
Self-starter, highly motivate and demonstrated success in working on =
teams.<BR>-=20
Active DOD Secret Security Clearance.<BR><BR>SALARY:<BR>70-100K =
relocation=20
assistance=20
available<BR>____________________________________________________________=
<BR><BR>SENIOR=20
SYSTEMS ENGINEERS<BR><BR>REQUIREMENTS:<BR>- Proficient in requirements =
analysis=20
and development.<BR>- Proficient in specification development,<BR>-=20
Knowledgeable in system modeling such as UML or Demaro<BR>- =
Knowledgeable in=20
hardware and in software processes and their interaction.<BR>- =
Proficient in the=20
development of test plans, procedures and reports.<BR>- Proficient in =
system=20
design.<BR>- Proficient in the development of security related=20
documentation.<BR>- Knowledgeable in cryptographic principles.<BR>-=20
Knowledgeable in RED/BLACK separation principles and in TEMPEST design=20
principles.<BR>- Demonstrated self-starter.<BR>- BSEE,CE. US Citizenship =
Required.<BR>- Most positions require a background =
investigation.</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>____________________________________________________________</FO=
NT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Contact:<BR>Valarie Williams<BR>CPR,=20
Inc.<BR></FONT><A href=3D"mailto:Val@cprstaffing.com"><FONT face=3DArial =
size=3D2>Val@cprstaffing.com</FONT></A></DIV></BODY></HTML>
------=_NextPart_000_00CF_01C1DCCA.76EE0760--
From vxwexplo-errs@csg.lbl.gov  Sun Apr  7 04:03:14 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Sun Apr  7 04:03:17 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Sun Apr  7 04:03:11 PDT 2002
        Subject: unmounting a block driver
        Subject: Re: eieio and sync in sysInLong() and sysOutLong()
        Subject: sysSymTbl = 0x0
        Subject: Re: tornado2: how to rebuild the usb library?
        Subject: Re: sysSymTbl = 0x0
        Subject: Re: Get the calendar time from the target
        Subject: Network buffer pool too small?
        Subject: How to modify Emissary MIB Complier, stub file
        Subject: vxWorks Shell Through Telnet
        Subject: Re: Anybody ported openssh to vxworks ? Any issues ?
        Subject: Shell Question
        Subject: vme ints on MVME5100
        Subject: problem with select?
        Subject: Re: Shell Question
        Subject: Re: Get the calendar time from the target
        Subject: Re: Network buffer pool too small?
        Subject: pagefault
        Subject: Seeking signals gurus re vxworks 5.3/5.4 signals
        Subject: is there a way to acces to a machin wich IP is 0.0.0.0
        Subject: closing files after control-c
        Subject: Re: closing files after control-c
        Subject: Re: How to modify Emissary MIB Complier, stub file
        Subject: how to set two IP at one ethernet card for vxworks
        Subject: Why I can't connect to 172.16.25.18 /255.255.0.0
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: unmounting a block driver
Date: Fri, 05 Apr 2002 12:51:44 GMT
From: "Tri VU KHAC \(Sony\)" <tri.vukhac@sonycom.com>
Organization: KPNQwest customer news service
Message-ID: <A5hr8.24$054.19034@nreader3.kpnqwest.net>
Hi folks,
I am writing a block device driver. My program calls dosFsDevCreate() to
create a dosFs for the block device.
I want when I remove the device, I will be able to remove the device from
the file system.
Do you know which command allows do that thing?
Thank you in advance.
Tri.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: eieio and sync in sysInLong() and sysOutLong()
Date: Fri, 05 Apr 2002 13:44:41 GMT
From: brede.thurmann@kongsberg-simrad.com (BT)
Message-ID: <3cada852.111794762@news.eunet.no>
References: <3caae4d0.98474498@news.eunet.no> <3CAC5AE1.5040708@spamm.me.l8s.co.uk>
On Thu, 4 Apr 2002 13:51:32 +0000 (UTC), David Laight
<david@spamm.me.l8s.co.uk> wrote:
>BT wrote:
>
>> I have a computer based on a PPC755 with an MPC107
>> connected to a PCI bus. I use the functions sysInLong()
>> and sysoutLong() to access devices on the PCI bus.
>> The functions from vxWorks disasemble like this:
>>
>> sysInLong:
>>     lwbrx   r4,r0,r3
>>     eieio
>>     sync
>>     or      r3,r4,r4
>>     bclr    20,0
>>
>> sysOutLong:
>>     stwbrx  r4,r0,r3
>>     eieio
>>     sync
>>     bclr    20,0
>>
>> Is it realy necessary to use both 'eieio' and 'sync'?
>> I does not get any problems if I try to remove the 'eieio'
>> but I think it is a bit difficult to fully understand
>> when to use these functions.
>
>I have to admit to not having written PPC, but I believe I know
>some of what eieio and sync are for :-)
>
>What I wonder is whether the about are 'correct' at all.
>Consider the following that might happen in an ethernet
>driver tx routine.
>	copy_frame_to_shared_memory();
>	update_tx_ring();
>	sysOutLong( tx_ctl, kick_tx );
>Now you need all the memoy writes associated with the first
>two actions to happen before the 'kick' of the ethernet chip.
>To guarantee this any eieio and/or sync instructions must
>be done BEFORE the write generated by sysOutLong.
>
>What have I missed?
>
>	David
>
I have not yet thaught about that. It seems to me that you have
described a case where it is not enough just to use sysOutLong()
to 'kick' the ethenet.
But I belive I do not have this problem as I have set up my system
like this:
	- Net buffers are located in an area where cahce is disabled
	- Address trasnlation is enabled.
	- The I bit (in WIMG) set.
This shall as I understand it enforce strongly ordered load and store.
BT
---------------------------
Newsgroups: comp.os.vxworks
Subject: sysSymTbl = 0x0
Date: Fri, 05 Apr 2002 15:26:33 +0100
From: Garvan McFeeley - Sun Ireland - VSP - Staff Engineer
 <Garvan.McFeeley@Sun.COM>
Organization: Sun Microsystems
Message-ID: <3CADB419.AF265BB4@Sun.COM>
Reply-To: Garvan.McFeeley@Sun.COM
Helo,
I am trying to do some stack tracing in vxWorks.
When I call
status = symLibInit();
if (status == OK) {
	printf("init OK, %p\n", sysSymTbl);
} else {
	printf("init FAILED, %p\n", sysSymTbl);
}
I get
init OK, 0x0  <--- ?????
I ld my file with
ld(1,0,fname)
from tt I see what I would like to see....
My function goes like this....
modeled on the one in the FAQ....
static void
stackTracePrint(INSTR *caller, int func, int nargs, int *args)
{
	static const int maxLen = 512;
	char buf[510];
	int ix;
	int len = 0;
	int remaining;
	int copied;
	char *ptr = NULL;
	int  value;
	SYM_TYPE type;
	char  name[MAX_SYS_SYM_LEN+1];
	int  status;
	status = symFindByValue(sysSymTbl, func, name, &value, &type);
	if(status<0 || value != func) {
		sprintf(name, "0x%X", func);
	}
	remaining = maxLen;
	copied = snprintf(buf, maxLen, "%s: %#10x: %#10x (", name,
				(int)caller, func);
I get back
status -1 0x29ACE0:   0x19b478:   0x29ace0 ()
status -1 0x298288:   0x29ad28:   0x298288 (0x2e9c24, 0xfa)
status -1 0x169BE4:   0x298320:   0x169be4 ()
status -1 0x191CE0:   0x169eec:   0x191ce0 ()
status -1 0x191108:   0x191e20:   0x191108 ()
I must be doing something dumb ....
HELP!
thanks
- --
Garvan McFeeley
p.s.
Yes I did have a good search through the news group
I could not find what I was looking for....
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: tornado2: how to rebuild the usb library?
Date: Fri, 5 Apr 2002 16:46:18 +0200
From: "Charly" <cdup.inco@laposte.net>
Organization: Guest of ProXad - France
Message-ID: <3cadb86c$0$15596$626a54ce@news.free.fr>
References: <200244-182917-518560@foorum.com> <488e459a.0204042119.1be811a4@posting.google.com>
Reply-To: "Charly" <cdup.inco@laposte.net>
Thanks a lot John
 Charly
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: sysSymTbl = 0x0
Date: Fri, 5 Apr 2002 17:41:44 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cadc5ad$1@brateggebdc5.br-automation.co.at>
References: <3CADB419.AF265BB4@Sun.COM>
Hi,
do you have a reason, why you initialize the system symbol table?
If your image is built with target resident symbol table, this is not
required.
(Or worse, it will screw up or drop the symbols of the core and already
loaded modules)
Second, do you load the module from the target or from the host shell??
In case you download the module from the host shell, you must have symbol
table synchronization included in the image and activated for the target
server you use to access the target.
Otherwise, the host (target _server_) keeps an independent symbol table from
that on the target. Modules loaded on the target are not in the host symbol
table and vice versa. Symbol table synchronization fixes this.
hth
Werner
"Garvan McFeeley - Sun Ireland - VSP - Staff Engineer"
<Garvan.McFeeley@Sun.COM> wrote in message news:3CADB419.AF265BB4@Sun.COM...
> Helo,
> I am trying to do some stack tracing in vxWorks.
>
> When I call
>
> status = symLibInit();
> if (status == OK) {
> printf("init OK, %p\n", sysSymTbl);
> } else {
> printf("init FAILED, %p\n", sysSymTbl);
> }
> I get
> init OK, 0x0  <--- ?????
>
> I ld my file with
> ld(1,0,fname)
>
> from tt I see what I would like to see....
>
> My function goes like this....
> modeled on the one in the FAQ....
>
> static void
> stackTracePrint(INSTR *caller, int func, int nargs, int *args)
> {
> static const int maxLen = 512;
> char buf[510];
> int ix;
> int len = 0;
> int remaining;
> int copied;
> char *ptr = NULL;
> int  value;
> SYM_TYPE type;
> char  name[MAX_SYS_SYM_LEN+1];
> int  status;
>
>
> status = symFindByValue(sysSymTbl, func, name, &value, &type);
> if(status<0 || value != func) {
> sprintf(name, "0x%X", func);
> }
> remaining = maxLen;
> copied = snprintf(buf, maxLen, "%s: %#10x: %#10x (", name,
> (int)caller, func);
>
> I get back
> status -1 0x29ACE0:   0x19b478:   0x29ace0 ()
> status -1 0x298288:   0x29ad28:   0x298288 (0x2e9c24, 0xfa)
> status -1 0x169BE4:   0x298320:   0x169be4 ()
> status -1 0x191CE0:   0x169eec:   0x191ce0 ()
> status -1 0x191108:   0x191e20:   0x191108 ()
>
> I must be doing something dumb ....
>
>
> HELP!
>
> thanks
>
>
> --
> Garvan McFeeley
>
> p.s.
> Yes I did have a good search through the news group
> I could not find what I was looking for....
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Get the calendar time from the target
Date: 5 Apr 2002 09:31:32 -0800
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204050931.56fa1841@posting.google.com>
References: <48692ced.0204050154.4b97523b@posting.google.com> <3cad78ee$1@brateggebdc5.br-automation.co.at>
Hello,
> from your post I assume you are using PC hardware for the project, and
> pc486, pcPentium or other such 'generic' BSP.
> These BSPs do not include code to read the RTC built into the PC and set the
> system time appropriately.
>
> When we asked WRS why, they stated that there are many different
> implementations of RTC for PCs.
> As far as I can tell, this is nonsense.
Don't know who you were talking to, but the code for doing this is
available free of charge from WindSurf:
http://www.windriver.com/windsurf/samplecode/rtc/52/rtcLib.c
The associated README file can be found at:
http://www.windriver.com/windsurf/samplecode/rtc/52/README_rtcLib
HTH,
John...
> You can find appropriate code in any good PC hardware book (best are books
> that date back to DOS times).
> You need to address the hardware RTC directly, not the BIOS interrupts
> (which are normally unavailable in VxWorks).
>
> E. g. the book 'PC intern' contains good information on the topic.
> Probably, there are also resources on the net available for this.
>
> hth
> Werner
>
>
> "choon huat" <odinkch@hotmail.com> wrote in message
> news:48692ced.0204050154.4b97523b@posting.google.com...
> > Hi,
> >
> > I am a IA student from Nanyang Technological University. Presently, I
> > am involved in a embedded system using the Vxworks operationg system.
> >
> > I would like to know how to get the correct calendar time from target
> > system(bios). I have manage to get the reference calendar time (1970)
> > from the target system. Would appreciate if someone could help me in
> > this.
> >
> > Thank you.
> >
> > From
> > Choon Huat
---------------------------
Newsgroups: comp.os.vxworks
Subject: Network buffer pool too small?
Date: Fri, 5 Apr 2002 12:35:18 -0500
From: "chosi" <mcianciosi@raytheon.com>
Organization: Raytheon Company
Message-ID: <rflr8.665$c6.495@bos-service2.ext.raytheon.com>
My processor sometimes looses it's ability to talk on the
network.  It happens after I load it down with a lot of
activity.  I noticed that my "tNetTask" had errno=73000a, which
is "S_netBufLib_NO_POOL_MEMORY".  I did an "mbufShow", and
I have plenty of free mbufs.  So what memory is it talking
about, and how do I increase it?
---------------------------
Newsgroups: comp.os.vxworks
Subject: How to modify Emissary MIB Complier, stub file
Date: 5 Apr 2002 10:31:08 -0800
From: jzhang@drs.ca (Jason)
Organization: http://groups.google.com/
Message-ID: <e555a185.0204051031.17273a78@posting.google.com>
Hello, all:
I am using emissary MIB compiler to build snmp agent. After run
$ mibcomp -stub -o stub.c rfc1213.mib rfc1695.mib
I got a stub file which contains the stub functions, following is a
piece of codes, it asks me to replace the type STRUCT_system with
something appropriate to my system. My system is Windows NT, can
anybody tell me how to do it?
/* An internal routine to retrieve the values of the variables, used
 * by the method routines system_get and system_next.
 * You need to replace the type STRUCT_system with something
 * appropriate to your system. */
static int
  system_get_value(OIDC_T      lastmatch,
                   SNMP_PKT_T *pktp,
                   VB_T       *vbp,
                   STRUCT_system *data)     /* !!! */
{ switch(lastmatch) {
  case LEAF_sysDescr:
   ......
Thanks in advance!
---------------------------
Newsgroups: comp.os.vxworks
Subject: vxWorks Shell Through Telnet
Date: Fri, 05 Apr 2002 15:34:28 -0500
From: Marty Stich <marty_stich@hotmail.com>
Message-ID: <3CAE0A54.436C2E56@hotmail.com>
Hello,
For diagnostics and debugging, I'm trying to execute an arbitrary
function using the shell and redirect it's output to a telnet client.
If I use the telnetd included in vxWorks, when I connect, I am at a
vxWorks shell prompt.  I can then execute and command I need.  This is
not a satisfactory solution as I need to go through my own telnet daemon
for authentication purposes.  Does anyone have an idea how the "default"
telnet deamon is interacting with the shell to execute commands and
redirect the output to the telnet client?
Thanks for any suggestions,
- - Marty
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Anybody ported openssh to vxworks ? Any issues ?
Date: Fri, 05 Apr 2002 15:46:45 -0500
From: Marty Stich <marty_stich@hotmail.com>
Message-ID: <3CAE0D35.D292EDFA@hotmail.com>
References: <ee967989.0203191438.2620dcf6@posting.google.com>
You can buy a port of openssh to vxWorks from TeamF1.  Their support is
first rate.
- - Marty
dsa wrote:
> Hi,
>
> Anybody ported openssh to vxworks ?
> What are the issues ?
>
> Thanks in advance.
> Regards
> Dsa
---------------------------
Newsgroups: comp.os.vxworks
Subject: Shell Question
Date: Fri, 05 Apr 2002 23:34:15 GMT
From: "spaceman" <swarchitect@mail.com>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <Vvqr8.2540$Rl7.1190059054@newssvr13.news.prodigy.com>
When performing an inquiry:
i()
in the shell, you get a table of tasks that are running.
Under the column ERRNO, the errors encountered in the task, I imagine, are
displayed. Where are these errors defined?
Thanks
---------------------------
Newsgroups: comp.os.vxworks
Subject: vme ints on MVME5100
Date: Fri, 05 Apr 2002 23:47:15 GMT
From: "Kelly Hornsby" <klh1964@cox.net>
Organization: Cox Communications
Message-ID: <7Iqr8.10819$GG1.420120@news2.east.cox.net>
Hello
I'm looking for an initialization sequence to setup interrupts to support
VME Bus interrupts on a Motorola VME 5100.  I've tried several different
ways to setup the interrupt, but no luck.  I know the vector/status that the
device generating the interrupt will supply, but I can't seem to connect to
right interrupt.
Any help?  I'd like a code snippet if I could get it.
I'm using PowerPC and T2
---------------------------
Newsgroups: comp.os.vxworks
Subject: problem with select?
Date: 6 Apr 2002 01:38:25 GMT
From: Denis Perelyubskiy <denis_newsREMOVE-TO-REPLY@hotmail.com>
Message-ID: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu>
Hello,
we suspect that we are seeing a problem with select() in
5.3.1, whereby select() returns saying there is data in
socket(), then we do a read. Read blocks. This does not
happen every time, but we saw it once or twice.
Hence, I am wondering if anyone else has seen the same
issue.
thanks,
denis
- --
if you want to reply by mail, please tweak my
address in a reasonable way. sorry for the
inconvenience.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Shell Question
Date: Fri, 05 Apr 2002 20:45:20 -0500
From: joe durusau <durusau@bellsouth.net>
Organization: BELLSOUTH.net
Message-ID: <3CAE5330.166E6F59@bellsouth.net>
References: <Vvqr8.2540$Rl7.1190059054@newssvr13.news.prodigy.com>
The lower 16 bits are defined in errno.h.  There is also a table
of the upper 16, but I forget it's location.  Look at the programmer's
guide and you should be able to find it.  nb: this number is without any
meaning whatever unless the task in question has encountered (and reported)
an error.
Speaking only for myself,
Joe Durusau
spaceman wrote:
> When performing an inquiry:
>
> i()
>
> in the shell, you get a table of tasks that are running.
>
> Under the column ERRNO, the errors encountered in the task, I imagine, are
> displayed. Where are these errors defined?
>
> Thanks
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Get the calendar time from the target
Date: 5 Apr 2002 18:12:20 -0800
From: odinkch@hotmail.com (choon huat)
Organization: http://groups.google.com/
Message-ID: <48692ced.0204051812.6ffb1d2@posting.google.com>
References: <48692ced.0204050154.4b97523b@posting.google.com> <3cad78ee$1@brateggebdc5.br-automation.co.at> <488e459a.0204050931.56fa1841@posting.google.com>
John
Thank you for replying. I have actually download the source code from
the Windsurf as you suggested. During complie, the tornado gives a
error saying that the command "sysNvRead" and "sysNvWrite" cannot be
find in the "sysLib.h"
I would like to know how to get these commands or are there
alternatives. The target system I am using is a pcPentium.
Thank you for the help.
From
Choon Huat
john_94501@yahoo.com (John) wrote in message news:<488e459a.0204050931.56fa1841@posting.google.com>...
> Hello,
>
> > from your post I assume you are using PC hardware for the project, and
> > pc486, pcPentium or other such 'generic' BSP.
> > These BSPs do not include code to read the RTC built into the PC and set the
> > system time appropriately.
> >
> > When we asked WRS why, they stated that there are many different
> > implementations of RTC for PCs.
> > As far as I can tell, this is nonsense.
>
> Don't know who you were talking to, but the code for doing this is
> available free of charge from WindSurf:
>
> http://www.windriver.com/windsurf/samplecode/rtc/52/rtcLib.c
>
> The associated README file can be found at:
>
> http://www.windriver.com/windsurf/samplecode/rtc/52/README_rtcLib
>
> HTH,
>
> John...
>
> > You can find appropriate code in any good PC hardware book (best are books
> > that date back to DOS times).
> > You need to address the hardware RTC directly, not the BIOS interrupts
> > (which are normally unavailable in VxWorks).
> >
> > E. g. the book 'PC intern' contains good information on the topic.
> > Probably, there are also resources on the net available for this.
> >
> > hth
> > Werner
> >
> >
> > "choon huat" <odinkch@hotmail.com> wrote in message
> > news:48692ced.0204050154.4b97523b@posting.google.com...
> > > Hi,
> > >
> > > I am a IA student from Nanyang Technological University. Presently, I
> > > am involved in a embedded system using the Vxworks operationg system.
> > >
> > > I would like to know how to get the correct calendar time from target
> > > system(bios). I have manage to get the reference calendar time (1970)
> > > from the target system. Would appreciate if someone could help me in
> > > this.
> > >
> > > Thank you.
> > >
> > > From
> > > Choon Huat
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Network buffer pool too small?
Date: Sat, 06 Apr 2002 03:29:52 GMT
From: "drdiags" <drdiags@attbi.com>
Organization: AT&T Broadband
Message-ID: <QYtr8.176421$ZR2.94700@rwcrnsc52.ops.asp.att.net>
References: <rflr8.665$c6.495@bos-service2.ext.raytheon.com>
Hello Chosi,
    What about the 128 byte clusters? I am not sure about the BSD/END driver
which have their
own private pool, but  on the following vxWorks FAQ link, there is a writeup
to help you see if
making changes to your network buffer pool will help along with some
utilities.  Try this link:
http://www.xs4all.nl/~borkhuis/vxworks/vxw_pt4.html#4.1
    HTH.
"chosi" <mcianciosi@raytheon.com> wrote in message
news:rflr8.665$c6.495@bos-service2.ext.raytheon.com...
> My processor sometimes looses it's ability to talk on the
> network.  It happens after I load it down with a lot of
> activity.  I noticed that my "tNetTask" had errno=73000a, which
> is "S_netBufLib_NO_POOL_MEMORY".  I did an "mbufShow", and
> I have plenty of free mbufs.  So what memory is it talking
> about, and how do I increase it?
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: pagefault
Date: 5 Apr 2002 19:54:12 -0800
From: sardine_sz@163.net (sardine)
Organization: http://groups.google.com/
Message-ID: <b1cb4c43.0204051954.3e16b928@posting.google.com>
anyone tell me what happen ?
  in advances appricate !!!
______________________________________________________________________
- ->
Page Fault
Program Counter: 0x0014098e
Status Register: 0x00010286
Error Code: 0x00000000
Task: 0xff2d5a8 "tNetTask"
- ->
- ->
- -> tt "tNetTask"
1370b2 vxTaskEntry    +a  : netTask (0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
15fca2 netTask        +6e : muxDevStopAll (ff03b2c, b0, 0, 0, 0)
value = 0 = 0x0
---------------------------
Newsgroups: comp.os.vxworks
Subject: Seeking signals gurus re vxworks 5.3/5.4 signals
Date: 6 Apr 2002 09:52:15 -0800
From: pankajcpp@yahoo.com (Pankaj)
Organization: http://groups.google.com/
Message-ID: <7b5cbdbf.0204060952.65a13ef3@posting.google.com>
5.4 programmer's guide/ sec 2.4.7 indicates that "The signal handler
executes in the receiving task's context and makes use of that task's
stack."
Is this true for 5.3 as well?  Is there any difference between signals
in 5.3 and 5.4?
In light of the above, can a signal handler associated with a certain
task be pre-empted by
    a) another signal handler (for a different signal) associated with
the same task.
    b) another higher priority task.
    c) a signal handler associated with a higher priority task.
    d) anything.
Many thanks for taking the time to reply!
---------------------------
Newsgroups: comp.os.vxworks
Subject: is there a way to acces to a machin wich IP is 0.0.0.0
Date: Sat, 6 Apr 2002 20:14:53 +0200
From: "Mirak" <mirak63@wanadoo.fr>
Organization: Wanadoo, l'internet avec France Telecom
Message-ID: <a8ndgk$8aa$1@wanadoo.fr>
Is it possible with a TCP/IP protocole modified under windows ?
Or under ms-dos ?
---------------------------
Newsgroups: comp.os.vxworks
Subject: closing files after control-c
Date: Sat, 06 Apr 2002 16:04:18 -0500
From: William Pughe <wlp@ll.mit.edu>
Message-ID: <3CAF62D2.DE0B50C2@ll.mit.edu>
Hello.  I've got a library that taskSpawns a function that calls
socket().  If I control-c the original task the socket doesn't get
closed and subsequent calls to bind don't work.  If I run the close
command from the windsh command line then I can bind again.  I would
like to have close called automatically when the original task is
killed.  I tried setting up a signal handler to send a taskDelete to the
spawned task so it's signal handler would call close.  All for naught.
For some reason signal(SIGINT, handlerFunc) never get used.
Does anyone have a solution to this?  I'm running vworks 2.0 on an
mv5100 board.
Thanks for your help.
Will
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: closing files after control-c
Date: Sat, 06 Apr 2002 21:48:08 -0500
From: joe durusau <durusau@bellsouth.net>
Organization: Bellsouth.Net
Message-ID: <3CAFB368.222C8C59@bellsouth.net>
References: <3CAF62D2.DE0B50C2@ll.mit.edu>
    The easy way to solve this problem is to use SO_REUSEADDR
in setsockopt().  That won't close the original socket, but it will
let you use another one.  You could always store the fd for your
socket somewhere (in a global variable) and have the function try
to close it as it starts up.
Speaking only for myself,
Joe Durusau
William Pughe wrote:
> Hello.  I've got a library that taskSpawns a function that calls
> socket().  If I control-c the original task the socket doesn't get
> closed and subsequent calls to bind don't work.  If I run the close
> command from the windsh command line then I can bind again.  I would
> like to have close called automatically when the original task is
> killed.  I tried setting up a signal handler to send a taskDelete to the
> spawned task so it's signal handler would call close.  All for naught.
> For some reason signal(SIGINT, handlerFunc) never get used.
>
> Does anyone have a solution to this?  I'm running vworks 2.0 on an
> mv5100 board.
>
> Thanks for your help.
>
> Will
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to modify Emissary MIB Complier, stub file
Date: Sun, 7 Apr 2002 09:59:00 +0200
From: "Ofer Goren" <ofer_goren@iamba.com>
Organization: Verio
Message-ID: <newscache$ngw6ug$5vn$1@lnews.actcom.co.il>
References: <e555a185.0204051031.17273a78@posting.google.com>
Hi.
The struct_system has nothing to do with your system. It just telling you to
repalce it with the struct representing your own data, according to the MIB
specifications.
"Jason" <jzhang@drs.ca> wrote in message
news:e555a185.0204051031.17273a78@posting.google.com...
> Hello, all:
>
> I am using emissary MIB compiler to build snmp agent. After run
> $ mibcomp -stub -o stub.c rfc1213.mib rfc1695.mib
> I got a stub file which contains the stub functions, following is a
> piece of codes, it asks me to replace the type STRUCT_system with
> something appropriate to my system. My system is Windows NT, can
> anybody tell me how to do it?
>
>
> /* An internal routine to retrieve the values of the variables, used
>  * by the method routines system_get and system_next.
>  * You need to replace the type STRUCT_system with something
>  * appropriate to your system. */
> static int
>   system_get_value(OIDC_T      lastmatch,
>                    SNMP_PKT_T *pktp,
>                    VB_T       *vbp,
>                    STRUCT_system *data)     /* !!! */
> { switch(lastmatch) {
>   case LEAF_sysDescr:
>    ......
>
>
>
> Thanks in advance!
---------------------------
Newsgroups: comp.os.vxworks
Subject: how to set two IP at one ethernet card for vxworks
Date: 7 Apr 2002 00:26:16 -0800
From: yatc@21cn.com (lyman)
Organization: http://groups.google.com/
Message-ID: <c0819f26.0204070026.1d7c08@posting.google.com>
How to set the second IP address at the same ethernet card for
vxworks, that is ,two IP address at one ethernet
card. and what should I do ? example code is better. Thanks anyway.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Why I can't connect to 172.16.25.18 /255.255.0.0
Date: 7 Apr 2002 00:54:23 -0800
From: shyang@netease.com (yang)
Organization: http://groups.google.com/
Message-ID: <8446174.0204070054.5ab18bc3@posting.google.com>
Now I use tornado 2.0.2 . And I find a problem when I use c model IP
address I can connect to  any host in C model address's machine. If I
use B/A model IP address with standard mask address I  can't ping any
host , in this circumation
the network doesn't work. why ?
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Mon Apr  8 04:03:20 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Mon Apr  8 04:03:23 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Mon Apr  8 04:03:16 PDT 2002
        Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
        Subject: Getting information about resource utilization
        Subject: How to do Inline assembly
        Subject: Re: Booting vxWorks image
        Subject: DMA 8237
        Subject: Re: unmounting a block driver
        Subject: I/O bus input/output with GNU and VxWorks 5.4.2
        Subject: Re: Getting information about resource utilization
        Subject: Re: Shell Question
        Subject: Re: Get the calendar time from the target
        Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
        Subject: Senior Embedded Systems Developer
        Subject: Tornado 3 - is it GDB ?
        Subject: Re: problem with select?
        Subject: Re: problem with select?
        Subject: Re: Destroying a semaphore initialized with semBInit
        Subject: Re: how to set two IP at one ethernet card for vxworks
        Subject: Re: I/O bus input/output with GNU and VxWorks 5.4.2
        Subject: Re: problem with select?
        Subject: How Can I set a timer of 10 msec with the clock rate 60HZ?
        Subject: arp_request error with host route
        Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
        Subject: Re: Tornado 3 - is it GDB ?
        Subject: Downloading & string
        Subject: Re: Get the calendar time from the target
        Subject: Re: Downloading & string
        Subject: Re: pagefault
        Subject: Re: DMA 8237
        Subject: Re: How to do Inline assembly
        Subject: Re: How Can I set a timer of 10 msec with the clock rate 60HZ?
        Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
        Subject: Re: Booting vxWorks image
        Subject: Re: how to config a ata hard disk ?
        Subject: Re: a question about ioctl()
        Subject: Re: vxWorks Shell Through Telnet
        Subject: Re: how to set two IP at one ethernet card for vxworks
        Subject: Re: Shell Question
        Subject: Re: Downloading & string
        Subject: Re: how to set two IP at one ethernet card for vxworks
        Subject: Re: closing files after control-c
        Subject: Re: Downloading & string
        Subject: PPC8241 architecture?
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
Date: Sun, 07 Apr 2002 08:20:10 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: Bellsouth.Net
Message-ID: <3CB0397A.4967AFE7@bellsouth.net>
References: <8446174.0204070054.5ab18bc3@posting.google.com>
yang wrote:
> Now I use tornado 2.0.2 . And I find a problem when I use c model IP
> address I can connect to  any host in C model address's machine. If I
> use B/A model IP address with standard mask address I  can't ping any
> host , in this circumation
> the network doesn't work. why ?
Are you directly connecting to the host in question, or is there an
existing network in the way?  If for example, the network you
are connecting into uses class C addressing, you can't just 'become'
a class B machine in the middle of a class C network.
Speaking only for myself,
Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: Getting information about resource utilization
Date: Sun, 7 Apr 2002 17:17:55 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a8pkc8$u18jc$1@ID-79865.news.dfncis.de>
=======================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : c++simpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=======================================================
How can we measure run time and other resources ?
For instance,
// Pseudo C-code
void foo()
{
  start_time = ?;
  // Stuff
  end_time = ?;
}
P.S. I didn't find the struct rusage in c++simpc.
(See  http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?getrusage+3 )
There is such a structure in gcc/g++/gpp/ (not csimpc/c++simpc).
It enables to measure performance of a running program.
- --
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: How to do Inline assembly
Date: Sun, 7 Apr 2002 11:56:46 -0500
From: "Steve Scully" <sjscully@airmail.net>
Organization: Airnews.net! at Internet America
Message-ID: <78577D29BFF755D9.BA9F3FBFA93A2FD4.28DBCF7A93122FFB@lp.airnews.net>
Hi,
I am porting some code from a diab compiler to vxworks (power PC 8260).
Inline assembly has proven to be an issue.  A small example is shown below.
The __asm method seems close but not quite.  Any insight to this would be
greatly appreciated.
#define _ASMLANGUAGE
#include "asm.h"
void foo(void)
    C_code....
   __asm("xori r3,r3,0x0040");  /* clear IP bit. EST emulator sets it */
   __asm("mfmsr r3");
   __asm("ori r3,r3,0x8000 ");
   __asm("mtmsr r3 ");          /* Enable EE Bit in MSR */
  return 0; /*no code after this assembly*/
}
As an output i get assembler errors:
C:\TEMP\cca00349.s: Assembler messages:
C:\TEMP\cca00349.s:3087: Error: unresolved expression that must be resolved
thank you for your time
Steve Scully
sjcully@airmail.net
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Booting vxWorks image
Date: Sun, 7 Apr 2002 12:02:36 -0500
From: "Steve Scully" <sjscully@airmail.net>
Organization: Airnews.net! at Internet America
Message-ID: <BE5C789075B15C8D.4D9F5897005BB5CF.26EBF14F5DA48936@lp.airnews.net>
References: <3C9F4868.782BF378@west.raytheon.com>
Is the JTAG ICE doing anything other than loading code / jumping to start
point?  If its initalizing registers or the BSS space that could be an
issue.
Steve
Shawn Baldwin <sabaldwin@west.raytheon.com> wrote in message
news:3C9F4868.782BF378@west.raytheon.com...
> I can not get my vxWorks image to boot itself on our Ppmc750.  However
> my vxWorks image will boot itself when the JTAG ICE emulator controls
> the execution of code!  So when I remove the JTAG to have the board boot
> itself it produces the following message through the COM1 port:
>
>     "mux Dev Load failed for device entry 0!
>      Could not find fei0
>      Attaching interface lo0... done
>
>      instruction address breakpoint exception
>      Exception current instruction address: 0x00000700
>      Machine Status Register: 0x00001000
>      Task: 0x1fffdf8 "tRootTask"
>
> If anyone could assist, I'd greatly appreciate it!  Thanks!
>
> Shawn Baldwin
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: DMA 8237
Date: Sun, 7 Apr 2002 20:11:09 -0700
From: "Gidi Navrotsky" <gidin21@hotmail.com>
Organization: Internet Gold, ISRAEL
Message-ID: <a8puj5$mam$1@news.inter.net.il>
Does anyone know how to use the 8237 DMA in the PC?
I tries to use the dmaSetup routine that comes with the tornado package,
still there is a need to allocate a buffer for using this function.
How do I allocate this buffer?  It should be under 1 MB? am I right?
Dow anyone have a sample code concerning this issue?
Thank you
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: unmounting a block driver
Date: 7 Apr 2002 12:30:55 -0700
From: cjnaj1@attbi.com (Charles Johnson)
Organization: http://groups.google.com/
Message-ID: <8448169c.0204071130.47f41d64@posting.google.com>
References: <A5hr8.24$054.19034@nreader3.kpnqwest.net>
"Tri VU KHAC \(Sony\)" <tri.vukhac@sonycom.com> wrote in message news:<A5hr8.24$054.19034@nreader3.kpnqwest.net>...
> Hi folks,
>
> I am writing a block device driver. My program calls dosFsDevCreate() to
> create a dosFs for the block device.
> I want when I remove the device, I will be able to remove the device from
> the file system.
> Do you know which command allows do that thing?
>
> Thank you in advance.
> Tri.
This is one of the major flaws with VxWorks.  No way to
"de-initialize" both block and file system drivers.  Now in an
embedded system, maybe this is considered an uncommon need.  It is
annoying that you cannot recover resources from drivers that are no
longer needed.
You can have the device name removed from the device table so that
code doesn't can't find the device anymore.  But this doesn't recover
any resources consumed.
- --Charles Johnson
cjnaj1@attbi.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: I/O bus input/output with GNU and VxWorks 5.4.2
Date: Sun, 07 Apr 2002 20:53:04 GMT
From: Jon Newbill <JonUN@bitworkssystemsDELETETHIS.com>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <3CB0B20C.52E2BA5D@bitworkssystemsDELETETHIS.com>
I need to access I/O ports on my x86 based target.  I cannot find
anything in the documentation like  inp() or outp() for GNU C++.  I have
used asm("instr") with some success but it's not clear how to specify a
C variable to the assembly instruction.  asm("IN addr") where addr is
the I/O port address.  I can't find the asm() directive documented
anywhere.  Thanks in advance
Jon Newbill
jonUN@bitworkssystemsREMOVTHIS.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Getting information about resource utilization
Date: 7 Apr 2002 13:27:55 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204071227.17736f9b@posting.google.com>
References: <a8pkc8$u18jc$1@ID-79865.news.dfncis.de>
Hello,
> How can we measure run time and other resources ?
For simple functions like the example you gave, take a look at the
timex() and timexN() functions (check your docs for info).
To get the current time there are a number of options, some of which
may not be supported by the simulator:
tickGet()
clock_gettime()
sysTimestamp()
sysTimestampLock()
These all have different resolutions, and different units of
measurement (e.g. tickGet() returns ticks, clock_gettime() returns
seconds+nanoseconds; in both cases the resolution is ticks though - by
default 1 tick = 1/60 second).
HTH,
John...
> For instance,
>
> // Pseudo C-code
> void foo()
> {
>
>   start_time = ?;
>
>   // Stuff
>
>   end_time = ?;
>
> }
>
>
> P.S. I didn't find the struct rusage in c++simpc.
> (See  http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?getrusage+3 )
> There is such a structure in gcc/g++/gpp/ (not csimpc/c++simpc).
> It enables to measure performance of a running program.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Shell Question
Date: 7 Apr 2002 21:22:53 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91E9EDDF156D6borkhuisagerecom@135.7.153.101>
References: <Vvqr8.2540$Rl7.1190059054@newssvr13.news.prodigy.com>
"spaceman" <swarchitect@mail.com> wrote:
> When performing an inquiry:
>
> i()
>
> in the shell, you get a table of tasks that are running.
>
> Under the column ERRNO, the errors encountered in the task, I imagine,
> are displayed. Where are these errors defined?
Don't bother with these error codes. They were set by some function. And
as you don't know the function you don't know the meaning.
Also: ERRNO only means something if the function returned ERROR. Some
function set ERRNO, but don't return ERROR, so there is no error code to
check in such a case.
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: Get the calendar time from the target
Date: Mon, 08 Apr 2002 09:17:14 +0930
From: Tim Shaw <Tim.Shaw@dsto.defence.gov.au>
Organization: Defence Science and Technology Organisation
Message-ID: <3CB0DA82.15CC02AC@dsto.defence.gov.au>
References: <48692ced.0204050154.4b97523b@posting.google.com> <3cad78ee$1@brateggebdc5.br-automation.co.at> <488e459a.0204050931.56fa1841@posting.google.com> <48692ced.0204051812.6ffb1d2@posting.google.com>
The functions you refer to are for reading and writing to non-volatile RAM - does it exist on your target?
choon huat wrote:
> John
>
> Thank you for replying. I have actually download the source code from
> the Windsurf as you suggested. During complie, the tornado gives a
> error saying that the command "sysNvRead" and "sysNvWrite" cannot be
> find in the "sysLib.h"
>
> I would like to know how to get these commands or are there
> alternatives. The target system I am using is a pcPentium.
>
> Thank you for the help.
>
> From
> Choon Huat
>
> john_94501@yahoo.com (John) wrote in message news:<488e459a.0204050931.56fa1841@posting.google.com>...
> > Hello,
> >
> > > from your post I assume you are using PC hardware for the project, and
> > > pc486, pcPentium or other such 'generic' BSP.
> > > These BSPs do not include code to read the RTC built into the PC and set the
> > > system time appropriately.
> > >
> > > When we asked WRS why, they stated that there are many different
> > > implementations of RTC for PCs.
> > > As far as I can tell, this is nonsense.
> >
> > Don't know who you were talking to, but the code for doing this is
> > available free of charge from WindSurf:
> >
> > http://www.windriver.com/windsurf/samplecode/rtc/52/rtcLib.c
> >
> > The associated README file can be found at:
> >
> > http://www.windriver.com/windsurf/samplecode/rtc/52/README_rtcLib
> >
> > HTH,
> >
> > John...
> >
> > > You can find appropriate code in any good PC hardware book (best are books
> > > that date back to DOS times).
> > > You need to address the hardware RTC directly, not the BIOS interrupts
> > > (which are normally unavailable in VxWorks).
> > >
> > > E. g. the book 'PC intern' contains good information on the topic.
> > > Probably, there are also resources on the net available for this.
> > >
> > > hth
> > > Werner
> > >
> > >
> > > "choon huat" <odinkch@hotmail.com> wrote in message
> > > news:48692ced.0204050154.4b97523b@posting.google.com...
> > > > Hi,
> > > >
> > > > I am a IA student from Nanyang Technological University. Presently, I
> > > > am involved in a embedded system using the Vxworks operationg system.
> > > >
> > > > I would like to know how to get the correct calendar time from target
> > > > system(bios). I have manage to get the reference calendar time (1970)
> > > > from the target system. Would appreciate if someone could help me in
> > > > this.
> > > >
> > > > Thank you.
> > > >
> > > > From
> > > > Choon Huat
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
Date: 7 Apr 2002 17:49:11 -0700
From: shyang@netease.com (yang)
Organization: http://groups.google.com/
Message-ID: <8446174.0204071649.3d3e097@posting.google.com>
References: <8446174.0204070054.5ab18bc3@posting.google.com> <3CB0397A.4967AFE7@bellsouth.net>
joe durusau <durusau@bellsouth.net> wrote in message news:<3CB0397A.4967AFE7@bellsouth.net>...
> yang wrote:
>
> > Now I use tornado 2.0.2 . And I find a problem when I use c model IP
> > address I can connect to  any host in C model address's machine. If I
> > use B/A model IP address with standard mask address I  can't ping any
> > host , in this circumation
> > the network doesn't work. why ?
>
> Are you directly connecting to the host in question, or is there an
> existing network in the way?  If for example, the network you
> are connecting into uses class C addressing, you can't just 'become'
> a class B machine in the middle of a class C network.
>
> Speaking only for myself,
>
> Joe Durusau
I have directly   connected to the host ,also connected to the host by
hub. The question always is same.  I used class C addressing to
connect a class C addressing host. Class A /B just like this.
---------------------------
Newsgroups: comp.os.qnx,comp.os.unix,comp.os.vxworks,comp.sys.arm,comp.sys.m68k
Subject: Senior Embedded Systems Developer
Date: Mon, 08 Apr 2002 02:40:26 GMT
From: "Mark Lane" <marklane5@attbi.com>
Organization: AT&T Broadband
Message-ID: <uq7s8.246487$q2.27942@sccrnsc01>
Senior Embedded Systems developer looking for contract work ...
- - pSOS, VxWorks, VRTX, Nucleus, QNX, OSE, INTEGRITY
- - C/C++, Assembly, Microcode
- - Object-Oriented, UML, Rational Rose, SASD
- - PowerPC, PowerQuicc, 683XX, 68K, ColdFire, 68HCXX
- - Pentium, 80X86, ARM7/9, TI OMAP, 805X
- - ClearCase, PVCS, CVS, RCS, SEI/ISO process
- - NT, Unix, GNU, Perl, ShellScripting
- - TCP/IP, ATM, SAR, CAC, QOS, GSM/GPRS, SNMP
- - USB, PCI, VME, ISA, DSL, JTAG, I2C, SPI, DS1, DS3
- - BSP Development, Debug GREEN hardware
- - Complex software design at any level
- - Commercial or Military
Mark Lane
Time Domain Systems, Inc.
214-232-4091
marklane5@attbi.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Tornado 3 - is it GDB ?
Date: 7 Apr 2002 21:02:33 -0700
From: ansona@attbi.com (David Ward)
Organization: http://groups.google.com/
Message-ID: <a6b968b7.0204072002.2b2877df@posting.google.com>
I'm curious about the T3 debugger and the WRS web site is not clear -
Is it sitting over GDB like T2 ?
Does it talk WTX and use the same target server as T2 ?
Thanks in advance,
Dave Ward
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: Sun, 7 Apr 2002 21:15:15 -0700
From: "Jerry Marcinko" <jerrym@dssnetworks.com>
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Message-ID: <3cb119f0$1@news.mhogaming.com>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu>
Support for select() in VxWorks is driver specific (i.e. requires driver to
implement select sleep and wakeup primitives), so a bug in the underlying
driver could easily cause this. So the problem may no be VxWorks or the
selLib, but in the driver.
"Denis Perelyubskiy" <denis_newsREMOVE-TO-REPLY@hotmail.com> wrote in
message
news:slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu...
> Hello,
>
> we suspect that we are seeing a problem with select() in
> 5.3.1, whereby select() returns saying there is data in
> socket(), then we do a read. Read blocks. This does not
> happen every time, but we saw it once or twice.
>
> Hence, I am wondering if anyone else has seen the same
> issue.
>
> thanks,
>
> denis
>
> --
> if you want to reply by mail, please tweak my
> address in a reasonable way. sorry for the
> inconvenience.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: Sun, 7 Apr 2002 22:02:26 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub293tlq5vcr2c@corp.supernews.com>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk>
Assuming you are selecting for read events, select will return when data is
available to read.   At that point, you do not know how much data is
available to be read.  You should do FIONREAD to make sure that you have
sufficient data for your read request that follows.  Otherwise, read can
block.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Destroying a semaphore initialized with semBInit
Date: Sun, 7 Apr 2002 22:13:17 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub29oe55f8me21@corp.supernews.com>
References: <3ca34c76$0$23841$4c41069e@reader0.ash.ops.us.uu.net> <ua6nlqf0kaffff@corp.supernews.com> <488e459a.0203281657.7302474a@posting.google.com> <ua7iqvchr34k3e@corp.supernews.com> <488e459a.0203290214.5238bea6@posting.google.com> <ua99gu2f6jfld2@corp.supernews.com> <3CAC4F19.9080504@spamm.me.l8s.co.uk>
Indeed, it all gets complicated.  However, all such considerations are
carefully taken care of inside the WIND kernel.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: how to set two IP at one ethernet card for vxworks
Date: 7 Apr 2002 23:05:13 -0700
From: vijay.peshkar@wipro.com (Vijay Peshkar)
Organization: http://groups.google.com/
Message-ID: <bb8c75e1.0204072205.26b955d9@posting.google.com>
References: <c0819f26.0204070026.1d7c08@posting.google.com>
Lyman,
Try using eiattach() API.
Remember seeing sample code on vxworks
newsgroup sometime back, pls. do search.
Hope this helps.
Regards,
Vijay
yatc@21cn.com (lyman) wrote in message news:<c0819f26.0204070026.1d7c08@posting.google.com>...
> How to set the second IP address at the same ethernet card for
> vxworks, that is ,two IP address at one ethernet
> card. and what should I do ? example code is better. Thanks anyway.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: I/O bus input/output with GNU and VxWorks 5.4.2
Date: Mon, 8 Apr 2002 08:42:27 +0200
From: "Michael Lawnick" <Lawnick@softec.de>
Organization: Buergernetz Dillingen
Message-ID: <a8re4k$8oo$1@snoopy.bndlg.de>
References: <3CB0B20C.52E2BA5D@bitworkssystemsDELETETHIS.com>
Reply-To: "Michael Lawnick" <Lawnick@softec.de>
Sender: mlawnick@pd95248ba.dip.t-dialin.net
Hi Jon,
look into sysALib.s. There you should find the functions
sysInByte
sysInWord
sysInLong
sysInWordString
sysInLongString
sysOutByte
sysOutWord
sysOutLong
sysOutWordString
sysOutLongString
HTH
Michael
"Jon Newbill" <JonUN@bitworkssystemsDELETETHIS.com> schrieb im Newsbeitrag
news:3CB0B20C.52E2BA5D@bitworkssystemsDELETETHIS.com...
> I need to access I/O ports on my x86 based target.  I cannot find
> anything in the documentation like  inp() or outp() for GNU C++.  I have
> used asm("instr") with some success but it's not clear how to specify a
> C variable to the assembly instruction.  asm("IN addr") where addr is
> the I/O port address.  I can't find the asm() directive documented
> anywhere.  Thanks in advance
>
> Jon Newbill
> jonUN@bitworkssystemsREMOVTHIS.com
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: 8 Apr 2002 00:01:36 -0700
From: vijay.peshkar@wipro.com (Vijay Peshkar)
Organization: http://groups.google.com/
Message-ID: <bb8c75e1.0204072301.21be12af@posting.google.com>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk>
Hello Denis,
read() blocks if you have not used FIONBIO
in ioctl() call on the descriptor.
Regards,
Vijay
David Laight <david@spamm.me.l8s.co.uk> wrote in message news:<3CAEEB9D.2050609@spamm.me.l8s.co.uk>...
> Denis Perelyubskiy wrote:
>
> > Hello,
> >
> > we suspect that we are seeing a problem with select() in
> > 5.3.1, whereby select() returns saying there is data in
> > socket(), then we do a read. Read blocks. This does not
> > happen every time, but we saw it once or twice.
> >
> > Hence, I am wondering if anyone else has seen the same
> > issue.
>
> I recall adding FIONREAD ioctl requests to a program because
> select wasn't behaving itself.
> Didn't ever track down what was really happening though :-)
>
> 	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: How Can I set a timer of 10 msec with the clock rate 60HZ?
Date: 8 Apr 2002 00:07:54 -0700
From: zhoul@blrcsv.china.bell-labs.com (zlybupt)
Organization: http://groups.google.com/
Message-ID: <989cdae4.0204072307.6b42a3b2@posting.google.com>
Because I cannot do the sysClockRateSet() work,I can only use the
default clock rate,is there any way for me to set a timer of 10 msec
by using wd* functions,or other functions?
Thank you for your answers in advance?
---------------------------
Newsgroups: comp.os.vxworks
Subject: arp_request error with host route
Date: Mon, 8 Apr 2002 10:01:49 +0200
From: "Stefan Zaumbrecher" <Stefan.Zaumbrecher@kid-systeme.de>
Organization: Customer of n@work Internet Informationssysteme GmbH
Message-ID: <a8ris2$c2v$1@godzilla.work.de>
Hello,
I have a problem using an local interface on the MPC860 as gateway for a
host route.
I 'm using VxWorks 5.4.
I have configured two 10BaseT-Interfaces on the MPC860.
The network I build looks like this:
 x.x.1.1  x.x.1.2  x.x.2.2  x.x.1.3  x.x.2.3  x.x.1.4
- --              ---               ---               ---
1|--------------|2|---------------|3|---------------|4|--- ...
- --              ---               ---               ---
As gateway I used the local inteface x.x.1.2 and x.x.2.2
The folliwing error occurs:
- ->routeAdd ("31.3.1.1","31.3.1.2")
0xf7a350 (tShell): arp_rtrequest: bad gateway valuevalue = 0 = 0x0
The route is written to the routingtable. When I do a ping, I get an error:
- ->ping "31.3.1.1"
0xf74520 (tPingTx1): arpresolve: can't allocate llinfo0xf74520 (tPingTx1)
Why do I get this errors ?
How can I set a host route with a local inteface as gateway ?
When I add a hostroute with a gatway which is not a local interface, there
is also no problem with routeAdd
- ->routeAdd ("31.3.1.1","31.3.1.3")
value = 0 = 0x0
When add a netroute with a local interface as gateway, there is no problem.
- ->routeAdd ("31.3.1.0","31.3.1.2")
value = 0 = 0x0
 Anybody else using such a configuration ?
Kind regards
Stefan Zaumbrecher
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
Date: 8 Apr 2002 07:57:04 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91EA653EFF37Dborkhuisagerecom@135.7.153.102>
References: <8446174.0204070054.5ab18bc3@posting.google.com> <3CB0397A.4967AFE7@bellsouth.net> <8446174.0204071649.3d3e097@posting.google.com>
shyang@netease.com (yang) wrote:
> I have directly   connected to the host ,also connected to the host by
> hub. The question always is same.  I used class C addressing to
> connect a class C addressing host. Class A /B just like this.
OK, then now the question for more information: what are the IP addresses
of your target, your host, the subnetmasks on both, etc. So all your
networking details.
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: Tornado 3 - is it GDB ?
Date: 8 Apr 2002 01:30:25 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204080030.772f4a55@posting.google.com>
References: <a6b968b7.0204072002.2b2877df@posting.google.com>
Hello,
> I'm curious about the T3 debugger and the WRS web site is not clear -
> Is it sitting over GDB like T2 ?
No, it is a multi-domain aware debugger based on the Look technology.
> Does it talk WTX and use the same target server as T2 ?
Yes, and no. It talks a new version of the protocol, wtx2, that works
with a T3 target server. The same basic principles apply; the change
in the protocol is to add support for domains.
HTH,
John...
---------------------------
Newsgroups: comp.os.vxworks
Subject: Downloading & string
Date: Mon, 8 Apr 2002 11:37:35 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a8rkq3$uo966$1@ID-79865.news.dfncis.de>
=======================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : c++simpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=======================================================
Project type : Downloadable application modules for VxWorks
=======================================================
Here is some program.
There is no problem while compiling.
However there is a problem while downloading (linking).
What is a reason for that (any library) ?
SubQuestion.
  Why does the _string_ class cause the errors,
  but the _vector<T>_ class doesn't ?
|| ###### C++-code : BEGIN ######
// File s1.c
#include "vector"
#include "string"
void foo1 (void)
{
vector<int> vect1;
string  str1;
}
|| ###### C++-code : END ########
|| ###### Downloading : BEGIN ######
Unresolved symbols encountered while downloading.
Errors while downloading
D:/projects/demo2/dirProjSems/SIMNTgnu/ProjectSems.out:
_clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep
__t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0$nilRep
___dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03RepPv
|| ###### Downloading : END ########
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Get the calendar time from the target
Date: 8 Apr 2002 01:43:39 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204080043.171ba974@posting.google.com>
References: <48692ced.0204050154.4b97523b@posting.google.com> <3cad78ee$1@brateggebdc5.br-automation.co.at> <488e459a.0204050931.56fa1841@posting.google.com> <48692ced.0204051812.6ffb1d2@posting.google.com>
Hello,
I apologise, that was the PowerPC link... try this one for the x86
code example:
http://web1.windriver.com/cgi-bin/windsurf/techtips/public/viewSum.cgi?70
If the link doesn't work, search for 'RTC' on WindSurf and select the
Tech Tips group of responses. The one you want has the following
(long) title:
"'Updating VxWorks time' - how to get the VxWorks time to reflect the
time of the RTC (real time clock) when running the VxWorks OS on a PC
other x86 type platform."
This piece of code uses the sysInByte() and sysOutByte() functions
that your BSP will have in sysALib.s.
HTH,
John...
odinkch@hotmail.com (choon huat) wrote in message news:<48692ced.0204051812.6ffb1d2@posting.google.com>...
> John
>
> Thank you for replying. I have actually download the source code from
> the Windsurf as you suggested. During complie, the tornado gives a
> error saying that the command "sysNvRead" and "sysNvWrite" cannot be
> find in the "sysLib.h"
>
> I would like to know how to get these commands or are there
> alternatives. The target system I am using is a pcPentium.
>
> Thank you for the help.
>
> From
> Choon Huat
>
> john_94501@yahoo.com (John) wrote in message news:<488e459a.0204050931.56fa1841@posting.google.com>...
> > Hello,
> >
> > > from your post I assume you are using PC hardware for the project, and
> > > pc486, pcPentium or other such 'generic' BSP.
> > > These BSPs do not include code to read the RTC built into the PC and set the
> > > system time appropriately.
> > >
> > > When we asked WRS why, they stated that there are many different
> > > implementations of RTC for PCs.
> > > As far as I can tell, this is nonsense.
> >
> > Don't know who you were talking to, but the code for doing this is
> > available free of charge from WindSurf:
> >
> > http://www.windriver.com/windsurf/samplecode/rtc/52/rtcLib.c
> >
> > The associated README file can be found at:
> >
> > http://www.windriver.com/windsurf/samplecode/rtc/52/README_rtcLib
> >
> > HTH,
> >
> > John...
> >
> > > You can find appropriate code in any good PC hardware book (best are books
> > > that date back to DOS times).
> > > You need to address the hardware RTC directly, not the BIOS interrupts
> > > (which are normally unavailable in VxWorks).
> > >
> > > E. g. the book 'PC intern' contains good information on the topic.
> > > Probably, there are also resources on the net available for this.
> > >
> > > hth
> > > Werner
> > >
> > >
> > > "choon huat" <odinkch@hotmail.com> wrote in message
> > > news:48692ced.0204050154.4b97523b@posting.google.com...
> > > > Hi,
> > > >
> > > > I am a IA student from Nanyang Technological University. Presently, I
> > > > am involved in a embedded system using the Vxworks operationg system.
> > > >
> > > > I would like to know how to get the correct calendar time from target
> > > > system(bios). I have manage to get the reference calendar time (1970)
> > > > from the target system. Would appreciate if someone could help me in
> > > > this.
> > > >
> > > > Thank you.
> > > >
> > > > From
> > > > Choon Huat
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Downloading & string
Date: Mon, 8 Apr 2002 11:49:10 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a8rlh3$uehbh$1@ID-79865.news.dfncis.de>
References: <a8rkq3$uo966$1@ID-79865.news.dfncis.de>
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message news:a8rkq3$uo966$1@ID-79865.news.dfncis.de...
> =======================================================
> Tornado  : Version 2.0.2
> VxWorks  : Version 5.4.2
> BSP      : Version 1.1/1
> Compiler : c++simpc
>            gcc version egcs-2.90.29 tornado 2.0 980515
>            (egcs-1.0.3 release)
> Host     : Windows2000
> Target   : VxSim for Windows (VxWorks target simulator)
> =======================================================
> Project type : Downloadable application modules for VxWorks
> =======================================================
>
>
> Here is some program.
> There is no problem while compiling.
>
> However there is a problem while downloading (linking).
>
> What is a reason for that (any library) ?
>
> SubQuestion.
>   Why does the _string_ class cause the errors,
>   but the _vector<T>_ class doesn't ?
>
>
> || ###### C++-code : BEGIN ######
> // File s1.c
>
> #include "vector"
> #include "string"
>
> void foo1 (void)
> {
> vector<int> vect1;
> string  str1;
> }
> || ###### C++-code : END ########
>
>
>
> || ###### Downloading : BEGIN ######
>
> Unresolved symbols encountered while downloading.
>
> Errors while downloading
> D:/projects/demo2/dirProjSems/SIMNTgnu/ProjectSems.out:
> _clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep
> __t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0$nilRep
> ___dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03RepPv
>
>
> || ###### Downloading : END ########
>
>
Here is Makefile :
|| ###### Makefile : BEGIN ######
# Makefile generated by the project manager
#
## core information
PRJ_FILE       = ProjectSems.wpj
PRJ_DIR        = D:/projects/demo2/dirProjSems
PRJ_TYPE       = vxApp
PRJ_OBJS       = s1.o
BUILD_SPEC     = SIMNTgnu
TGT_DIR        = $(WIND_BASE)/target
## build-configuration info
ifeq ($(BUILD_SPEC),SIMNTgnu)
CPU              = SIMNT
TOOL             = gnu
DEFAULT_RULE     = ProjectSems.out
endif
include $(TGT_DIR)/h/make/defs.project
## build-configuration info
ifeq ($(BUILD_SPEC),SIMNTgnu)
AR               = arsimpc
AS               = c++simpc
CC               = c++simpc
CFLAGS
= -U__WINNT -UWIN32 -U__WINNT__ -UWINNT -U__MINGW32__ -U_WIN32 -U__WIN32 -U__WIN32__ -U__WIN32 -mpentium -ansi -nostdinc -g -nostdli
b -fno-builtin -fno-defer-pop -Wall -DRW_MULTI_THREAD -D_REENTRANT -I. -ID:/sys2/Tornado/target/h -DCPU=SIMNT
CFLAGS_AS        = -mpentium -ansi -nostdinc -g -nostdlib -fno-builtin -fno-defer-pop -P -x
assembler-with-cpp -I. -ID:/sys2/Tornado/target/h -DCPU=SIMNT
CPP              = ccsimpc -E -P -xc
LD               = ldsimpc
LDFLAGS          = --subsystem=windows
LD_PARTIAL_FLAGS = -r
NM               = nmsimpc -g
OPTION_DEFINE_MACRO = -D
OPTION_INCLUDE_DIR = -I
POST_BUILD_RULE  =
PRJ_LIBS         =
SIZE             = sizesimpc
endif
# override make definitions only below this line
# override make definitions only above this line
include $(TGT_DIR)/h/make/rules.project
## build-configuration info
ifeq ($(BUILD_SPEC),SIMNTgnu)
s1.o:
$(CC) -U__WINNT -UWIN32 -U__WINNT__ -UWINNT -U__MINGW32__ -U_WIN32 -U__WIN32 -U__WIN32__ -U__WIN32 -mpentium -ansi -nostdinc -g -nos
tdlib -fno-builtin -fno-defer-pop -Wall -DRW_MULTI_THREAD -D_REENTRANT -I. -I$(WIND_BASE)/target/h -DCPU=SIMNT -c
D:/projects/demo/sems/s1.c
endif
## dependencies
s1.o: D:/projects/demo/sems/s1.c
## user defined rules
|| ###### Makefile : END ########
>
> ====================
>   Alex Vinokur
>     http://up.to/alexvn
>     http://go.to/alexv_math
>     mailto:alexvn@bigfoot.com
>     mailto:alexvn@go.to
>   ====================
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: pagefault
Date: Mon, 8 Apr 2002 10:53:19 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb15a79@brateggebdc5.br-automation.co.at>
References: <b1cb4c43.0204051954.3e16b928@posting.google.com>
Hi,
from the error message you posted, one can see that tNetTask did access some
non-existent memory.
(It may also be write protected, but by default VxWorks 5.4 does not support
this).
The program counter seems valid, so you may be able to debug the stuff.
For more help, you should tell us what you were trying to accomplish...
regards
Werner
"sardine" <sardine_sz@163.net> wrote in message
news:b1cb4c43.0204051954.3e16b928@posting.google.com...
> anyone tell me what happen ?
>   in advances appricate !!!
> ______________________________________________________________________
> ->
> Page Fault
> Program Counter: 0x0014098e
> Status Register: 0x00010286
> Error Code: 0x00000000
> Task: 0xff2d5a8 "tNetTask"
>
> ->
> ->
> -> tt "tNetTask"
> 1370b2 vxTaskEntry    +a  : netTask (0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
> 15fca2 netTask        +6e : muxDevStopAll (ff03b2c, b0, 0, 0, 0)
> value = 0 = 0x0
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: DMA 8237
Date: Mon, 8 Apr 2002 10:59:13 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb15bdb@brateggebdc5.br-automation.co.at>
References: <a8puj5$mam$1@news.inter.net.il>
Hi,
the buffer must be in the first 16 MB address space (24 bit addresses).
The floppy driver that comes with VxWorks uses the fixed range from 0x5000
to 0x8000 as buffer.
You may define your own buffer in that way, maybe just below 0xA0000 (start
of BIOS data area of PCs).
Alternatively, you can reserve some memory in sysLib.c at boot time.
You cannot use USER_RESERVED_MEM, because that would be one the top of the
memory pool and break if your system has more than 16MB.
AFAIK, there is no driver or support for the 8237 DMA controller in the BSP.
You'll need a hardware description and do it yourself.
hth
Werner
"Gidi Navrotsky" <gidin21@hotmail.com> wrote in message
news:a8puj5$mam$1@news.inter.net.il...
> Does anyone know how to use the 8237 DMA in the PC?
>
> I tries to use the dmaSetup routine that comes with the tornado package,
> still there is a need to allocate a buffer for using this function.
> How do I allocate this buffer?  It should be under 1 MB? am I right?
>
> Dow anyone have a sample code concerning this issue?
>
> Thank you
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to do Inline assembly
Date: Mon, 8 Apr 2002 11:03:58 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb15cf8$1@brateggebdc5.br-automation.co.at>
References: <78577D29BFF755D9.BA9F3FBFA93A2FD4.28DBCF7A93122FFB@lp.airnews.net>
Hi,
you need to end your asm statements with new-lines (\n) or semi-colons (;).
This does apply to the x86 port of gcc, but I assume it also applies to
Power PC.
For ideosyncrasies particular to your platform, you should check the
corresponding section in the GNU Toolkit User's Guide.
hth
Werner
"Steve Scully" <sjscully@airmail.net> wrote in message
news:78577D29BFF755D9.BA9F3FBFA93A2FD4.28DBCF7A93122FFB@lp.airnews.net...
> Hi,
>
> I am porting some code from a diab compiler to vxworks (power PC 8260).
> Inline assembly has proven to be an issue.  A small example is shown
below.
> The __asm method seems close but not quite.  Any insight to this would be
> greatly appreciated.
>
>
> #define _ASMLANGUAGE
> #include "asm.h"
>
> void foo(void)
>
>     C_code....
>    __asm("xori r3,r3,0x0040");  /* clear IP bit. EST emulator sets it */
>    __asm("mfmsr r3");
>    __asm("ori r3,r3,0x8000 ");
>    __asm("mtmsr r3 ");          /* Enable EE Bit in MSR */
>   return 0; /*no code after this assembly*/
> }
>
> As an output i get assembler errors:
> C:\TEMP\cca00349.s: Assembler messages:
> C:\TEMP\cca00349.s:3087: Error: unresolved expression that must be
resolved
>
>
>
> thank you for your time
> Steve Scully
>
> sjcully@airmail.net
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How Can I set a timer of 10 msec with the clock rate 60HZ?
Date: Mon, 8 Apr 2002 11:01:37 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb15c6a$1@brateggebdc5.br-automation.co.at>
References: <989cdae4.0204072307.6b42a3b2@posting.google.com>
Hi,
"zlybupt" <zhoul@blrcsv.china.bell-labs.com> wrote in message
news:989cdae4.0204072307.6b42a3b2@posting.google.com...
> Because I cannot do the sysClockRateSet() work,I can only use the
> default clock rate,is there any way for me to set a timer of 10 msec
> by using wd* functions,or other functions?
No.
these functions work all with the system clock.
You may use the auxilary clock (if you have one).
hth
Werner
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
Date: Mon, 8 Apr 2002 11:10:47 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb15e91$1@brateggebdc5.br-automation.co.at>
References: <a8ndgk$8aa$1@wanadoo.fr>
Hi,
what do you try to accomplish?
Or is the question purely out of curiosity?
regards
Werner
"Mirak" <mirak63@wanadoo.fr> wrote in message
news:a8ndgk$8aa$1@wanadoo.fr...
> Is it possible with a TCP/IP protocole modified under windows ?
> Or under ms-dos ?
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Booting vxWorks image
Date: Mon, 8 Apr 2002 11:08:25 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb15e02$1@brateggebdc5.br-automation.co.at>
References: <3C9F4868.782BF378@west.raytheon.com> <BE5C789075B15C8D.4D9F5897005BB5CF.26EBF14F5DA48936@lp.airnews.net>
Hi,
The VxWorks image uses the bootline to determine the proper network driver
to initialize.
If you do not use the Bootrom, but some other means to load the image, it
will not find the boot string.
I guess, this is the difference in your case.
You can disable the automatic device name selection in the VxWorks
configuration and initialize the network manually.
hth
Werner
"Steve Scully" <sjscully@airmail.net> wrote in message
news:BE5C789075B15C8D.4D9F5897005BB5CF.26EBF14F5DA48936@lp.airnews.net...
> Is the JTAG ICE doing anything other than loading code / jumping to start
> point?  If its initalizing registers or the BSS space that could be an
> issue.
> Steve
>
>
> Shawn Baldwin <sabaldwin@west.raytheon.com> wrote in message
> news:3C9F4868.782BF378@west.raytheon.com...
> > I can not get my vxWorks image to boot itself on our Ppmc750.  However
> > my vxWorks image will boot itself when the JTAG ICE emulator controls
> > the execution of code!  So when I remove the JTAG to have the board boot
> > itself it produces the following message through the COM1 port:
> >
> >     "mux Dev Load failed for device entry 0!
> >      Could not find fei0
> >      Attaching interface lo0... done
> >
> >      instruction address breakpoint exception
> >      Exception current instruction address: 0x00000700
> >      Machine Status Register: 0x00001000
> >      Task: 0x1fffdf8 "tRootTask"
> >
> > If anyone could assist, I'd greatly appreciate it!  Thanks!
> >
> > Shawn Baldwin
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: how to config a ata hard disk ?
Date: Mon, 8 Apr 2002 11:23:28 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb1618a$1@brateggebdc5.br-automation.co.at>
References: <6f67022c.0204060333.7ec41758@posting.google.com>
Hi,
what version of VxWorks do you use?
Have you installed dosFs2 or are you using the dosFs that ships with Tornado
II?
What parameters do you pass to usrAtaConfig?
What error do you get?
- - Werner
"zxyi" <zxyi@fm365.com> wrote in message
news:6f67022c.0204060333.7ec41758@posting.google.com...
> when I use usrAtaConfig()
> I got an error?
> I want to know,when config a ata hard disk ,what should i do?
> I have included ata support in the project .
> If the driver hae install another os can I also use vxworks on it?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: a question about ioctl()
Date: Mon, 8 Apr 2002 11:35:12 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb1644a$1@brateggebdc5.br-automation.co.at>
References: <6f67022c.0204060327.21785e28@posting.google.com>
Hi,
you find a list of all supported ioctl functions in the VxWorks Reference
Manual.
See the library entry (first part of the book) of the driver that is
responsible.
E. g. for the simulated host: device you would lookup 'netDrv'.
hth
Werner
"zxyi" <zxyi@fm365.com> wrote in message
news:6f67022c.0204060327.21785e28@posting.google.com...
> hi,i am new about vxworks and driver development
> and i have some questions about ioctl()
> in the help it says
>
> ioctl( ) - perform an I/O control function
> SYNOPSIS
> int ioctl
>     (
>     int fd,       /* file descriptor */
>     int function, /* function code */   <-----------what's the meaning ?
>     int arg       /* arbitrary argument */
>     )
>
> i want to know what's the "function code" means?
> how many function codes i can use ?
> FIORENAME  STD_IN ...and others?
>
> please tell me
> thanks
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: vxWorks Shell Through Telnet
Date: Mon, 08 Apr 2002 09:57:01 GMT
From: pjt@iki.fi
Organization: Embassy of Elbonia, 42 Krvi-Tasch Avenue, Szohod
Message-ID: <m3r8lqmqi2.fsf@dslnm.trs.ntc.nokia.com>
References: <3CAE0A54.436C2E56@hotmail.com>
Sender: ptaipale@dslnm.trs.ntc.nokia.com
If you are asking how the VxWorks shell executes commands, that is in
proprietary code for which you won't get the source, but you can have
a look at BGSH, which is supposed to do the same things. (I haven't
really used it, so I can't tell you much more about it.)
http://www.xmission.com/~bgeer/bgsh.html
- --
Pekka Taipale -- pjt@iki.fi -- http://www.iki.fi/pjt/
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: how to set two IP at one ethernet card for vxworks
Date: 8 Apr 2002 02:54:13 -0700
From: yatc@21cn.com (lyman)
Organization: http://groups.google.com/
Message-ID: <c0819f26.0204080154.6dcf7abd@posting.google.com>
References: <c0819f26.0204070026.1d7c08@posting.google.com> <bb8c75e1.0204072205.26b955d9@posting.google.com>
vijay.peshkar@wipro.com (Vijay Peshkar) wrote in message news:<bb8c75e1.0204072205.26b955d9@posting.google.com>...
Vijay,
But eiattch()API is not general function,
it seems to be related to boot device "ei",
why not ipattch(). by the way , whether I should
modify the ethernet card driver to set two ip
addresses at one ethernet card?
> Lyman,
>
> Try using eiattach() API.
> Remember seeing sample code on vxworks
> newsgroup sometime back, pls. do search.
> Hope this helps.
>
> Regards,
> Vijay
>
>
> yatc@21cn.com (lyman) wrote in message news:<c0819f26.0204070026.1d7c08@posting.google.com>...
> > How to set the second IP address at the same ethernet card for
> > vxworks, that is ,two IP address at one ethernet
> > card. and what should I do ? example code is better. Thanks anyway.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Shell Question
Date: 8 Apr 2002 03:06:23 -0700
From: vijay.peshkar@wipro.com (Vijay Peshkar)
Organization: http://groups.google.com/
Message-ID: <bb8c75e1.0204080206.70d8f5f9@posting.google.com>
References: <Vvqr8.2540$Rl7.1190059054@newssvr13.news.prodigy.com> <Xns91E9EDDF156D6borkhuisagerecom@135.7.153.101>
Hi Ted,
Am also of the opinion that the proper working of the function
when spawned as a seperate task is clear indication of stack
overflow.
   -> pingAppLayer
       |---------------Shell Task---------------|
       |                             |----------|
       |          |-------------|    | Stack    |
       |          |pingAppLayer |    |----------|
       |          |-------------|               |
       |----------------------------------------|
When you 'sp' pingAppLayer, it becomes a separate task and
uses a new stack whose size is determined by the parameters
to "sp".
   -> sp pingAppLayer
       |---------------Shell Task---------------|
       |                             |----------|
       |                             | Stack    |
       |                             |----------|
       |                                        |
       |----------------------------------------|
          |--pingAppLayer Task---|
          |              |-------|
          |              | Stack |
          |              |-------|
          |----------------------|
Regards,
Vijay
Johan Borkhuis <borkhuis@agere.com> wrote in message news:<Xns91E9EDDF156D6borkhuisagerecom@135.7.153.101>...
> "spaceman" <swarchitect@mail.com> wrote:
>
> > When performing an inquiry:
> >
> > i()
> >
> > in the shell, you get a table of tasks that are running.
> >
> > Under the column ERRNO, the errors encountered in the task, I imagine,
> > are displayed. Where are these errors defined?
>
> Don't bother with these error codes. They were set by some function. And
> as you don't know the function you don't know the meaning.
>
> Also: ERRNO only means something if the function returned ERROR. Some
> function set ERRNO, but don't return ERROR, so there is no error code to
> check in such a case.
>
> Groeten,
>         Johan
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Downloading & string
Date: Mon, 8 Apr 2002 12:08:03 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb16bfd$1@brateggebdc5.br-automation.co.at>
References: <a8rkq3$uo966$1@ID-79865.news.dfncis.de>
Hi,
For C++ projects, you do normally download the .out file, not the .o file.
The difference is, that the .out file is munched - which is necessary to
load it into VxWorks properly.
Further, I saw that you use .c file suffix for your C++ code.
This might confuse the build (Makefile rules).
Use a C++ file ending like .cpp for the file, and try again.
hth
Werner
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a8rkq3$uo966$1@ID-79865.news.dfncis.de...
> =======================================================
> Tornado  : Version 2.0.2
> VxWorks  : Version 5.4.2
> BSP      : Version 1.1/1
> Compiler : c++simpc
>            gcc version egcs-2.90.29 tornado 2.0 980515
>            (egcs-1.0.3 release)
> Host     : Windows2000
> Target   : VxSim for Windows (VxWorks target simulator)
> =======================================================
> Project type : Downloadable application modules for VxWorks
> =======================================================
>
>
> Here is some program.
> There is no problem while compiling.
>
> However there is a problem while downloading (linking).
>
> What is a reason for that (any library) ?
>
> SubQuestion.
>   Why does the _string_ class cause the errors,
>   but the _vector<T>_ class doesn't ?
>
>
> || ###### C++-code : BEGIN ######
> // File s1.c
>
> #include "vector"
> #include "string"
>
> void foo1 (void)
> {
> vector<int> vect1;
> string  str1;
> }
> || ###### C++-code : END ########
>
>
>
> || ###### Downloading : BEGIN ######
>
> Unresolved symbols encountered while downloading.
>
> Errors while downloading
> D:/projects/demo2/dirProjSems/SIMNTgnu/ProjectSems.out:
>
_clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem
plate2b1i03Rep
>
__t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1
i0$nilRep
>
___dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_temp
late2b1i03RepPv
>
>
> || ###### Downloading : END ########
>
>
>
> ====================
>   Alex Vinokur
>     http://up.to/alexvn
>     http://go.to/alexv_math
>     mailto:alexvn@bigfoot.com
>     mailto:alexvn@go.to
>   ====================
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: how to set two IP at one ethernet card for vxworks
Date: Mon, 8 Apr 2002 12:15:27 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb16db9@brateggebdc5.br-automation.co.at>
References: <c0819f26.0204070026.1d7c08@posting.google.com>
Hi,
use ifAddrAdd to add a second IP address.
hth
Werner
"lyman" <yatc@21cn.com> wrote in message
news:c0819f26.0204070026.1d7c08@posting.google.com...
> How to set the second IP address at the same ethernet card for
> vxworks, that is ,two IP address at one ethernet
> card. and what should I do ? example code is better. Thanks anyway.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: closing files after control-c
Date: Mon, 8 Apr 2002 12:12:03 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb16cec$1@brateggebdc5.br-automation.co.at>
References: <3CAF62D2.DE0B50C2@ll.mit.edu>
Hi,
you should have start and stop API's for your library.
The stop API would care to close the socket and cleanup other things.
Using Ctrl-C is really only useful for breaking into stuck commands.
It's not for everyday use.
hth
Werner
"William Pughe" <wlp@ll.mit.edu> wrote in message
news:3CAF62D2.DE0B50C2@ll.mit.edu...
> Hello.  I've got a library that taskSpawns a function that calls
> socket().  If I control-c the original task the socket doesn't get
> closed and subsequent calls to bind don't work.  If I run the close
> command from the windsh command line then I can bind again.  I would
> like to have close called automatically when the original task is
> killed.  I tried setting up a signal handler to send a taskDelete to the
> spawned task so it's signal handler would call close.  All for naught.
> For some reason signal(SIGINT, handlerFunc) never get used.
>
> Does anyone have a solution to this?  I'm running vworks 2.0 on an
> mv5100 board.
>
> Thanks for your help.
>
> Will
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Downloading & string
Date: Mon, 8 Apr 2002 13:26:38 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a8rr6i$v4hh5$1@ID-79865.news.dfncis.de>
References: <a8rkq3$uo966$1@ID-79865.news.dfncis.de> <3cb16bfd$1@brateggebdc5.br-automation.co.at>
"Werner Schiendl" <ws-news@gmx.at> wrote in message news:3cb16bfd$1@brateggebdc5.br-automation.co.at...
> Hi,
>
> For C++ projects, you do normally download the .out file, not the .o file.
>
> The difference is, that the .out file is munched - which is necessary to
> load it into VxWorks properly.
>
>
> Further, I saw that you use .c file suffix for your C++ code.
> This might confuse the build (Makefile rules).
>
=======================================
> Use a C++ file ending like .cpp for the file, and try again.
>
It didn't help.
Here is a new Makefile
|| ###### Makefile : BEGIN ######
# Makefile generated by the project manager
#
## core information
PRJ_FILE       = ProjectSems.wpj
PRJ_DIR        = D:/projects/demo2/dirProjSems
PRJ_TYPE       = vxApp
PRJ_OBJS       = s1.o
BUILD_SPEC     = SIMNTgnu
TGT_DIR        = $(WIND_BASE)/target
## build-configuration info
ifeq ($(BUILD_SPEC),SIMNTgnu)
CPU              = SIMNT
TOOL             = gnu
DEFAULT_RULE     = ProjectSems.out
endif
include $(TGT_DIR)/h/make/defs.project
## build-configuration info
ifeq ($(BUILD_SPEC),SIMNTgnu)
AR               = arsimpc
AS               = c++simpc
CC               = c++simpc
CFLAGS
= -U__WINNT -UWIN32 -U__WINNT__ -UWINNT -U__MINGW32__ -U_WIN32 -U__WIN32 -U__WIN32__ -U__WIN32 -mpentium -ansi -nostdinc -g -nostdli
b -fno-builtin -fno-defer-pop -Wall -DRW_MULTI_THREAD -D_REENTRANT -I. -ID:/sys2/Tornado/target/h -DCPU=SIMNT
CFLAGS_AS        = -mpentium -ansi -nostdinc -g -nostdlib -fno-builtin -fno-defer-pop -P -x
assembler-with-cpp -I. -ID:/sys2/Tornado/target/h -DCPU=SIMNT
CPP              = ccsimpc -E -P -xc
LD               = ldsimpc
LDFLAGS          = --subsystem=windows
LD_PARTIAL_FLAGS = -r
NM               = nmsimpc -g
OPTION_DEFINE_MACRO = -D
OPTION_INCLUDE_DIR = -I
POST_BUILD_RULE  =
PRJ_LIBS         =
SIZE             = sizesimpc
endif
# override make definitions only below this line
# override make definitions only above this line
include $(TGT_DIR)/h/make/rules.project
## build-configuration info
ifeq ($(BUILD_SPEC),SIMNTgnu)
s1.o:
$(CC) -U__WINNT -UWIN32 -U__WINNT__ -UWINNT -U__MINGW32__ -U_WIN32 -U__WIN32 -U__WIN32__ -U__WIN32 -mpentium -ansi -nostdinc -g -nos
tdlib -fno-builtin -fno-defer-pop -Wall -DRW_MULTI_THREAD -D_REENTRANT -I. -I$(WIND_BASE)/target/h -DCPU=SIMNT -c
D:/projects/demo/sems/s1.cpp
endif
## dependencies
s1.o: D:/projects/demo/sems/s1.cpp
## user defined rules
|| ###### Makefile : END ########
=======================================
> hth
> Werner
>
>
Thanks
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: PPC8241 architecture?
Date: 8 Apr 2002 10:55:00 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91EA8369A1793borkhuisagerecom@135.7.153.101>
Hello,
For an experiment we are going to do some work with a PPC 824x processor,
with a 603e processor core. We already have a license for the PPC 860, can
we use this architecture for the 824x family?
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 ===
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Mon Apr  8 08:17:15 2002
From: Shantanu K Roy <shantanu@rebaca.com>
Date: Mon Apr  8 08:17:17 PDT 2002
Subject: Re: Vx Exploder Digest
>
>
>Newsgroups: comp.os.vxworks
>Subject: I/O bus input/output with GNU and VxWorks 5.4.2
>Date: Sun, 07 Apr 2002 20:53:04 GMT
>From: Jon Newbill <JonUN@bitworkssystemsDELETETHIS.com>
>Organization: EarthLink Inc. -- http://www.EarthLink.net
>Message-ID: <3CB0B20C.52E2BA5D@bitworkssystemsDELETETHIS.com>
>
>I need to access I/O ports on my x86 based target.  I cannot find
>anything in the documentation like  inp() or outp() for GNU C++.  I have
>used asm("instr") with some success but it's not clear how to specify a
>C variable to the assembly instruction.  asm("IN addr") where addr is
>the I/O port address.  I can't find the asm() directive documented
>anywhere.  Thanks in advance
>
>Jon Newbill
>jonUN@bitworkssystemsREMOVTHIS.com
>
You should try out sysInByte,sysInWord,sysInLong for input and
sysOutByte,sysOutWord,sysOutLong for output.
You can have a look at the function declarations in
tornado\target\h\syslib.h
Regards,
Shantanu
shantanu@rebaca.com
From vxwexplo-errs@csg.lbl.gov  Mon Apr  8 18:34:14 2002
From: "Jeff Angielski" <jeff@theptrgroup.com>
Date: Mon Apr  8 18:34:16 PDT 2002
Subject: dhcpcConfigSet() in usrNetwork.c question
Has anybody else noticed that no matter what values you specify for
dhcpBoot, dhcpcConfigSet() in usrNetInit() will always try to auto configure
the network interface if ead is empty?
<from usrNetwork.c: usrNetInit()>
	if(dhcpcConfigSet (&params, &netmask, &dhcpBoot, attachFlag) == ERROR)
	{
		return(ERROR);
	}
Is this the expected behavior?  From the comments it looks like dhcpBoot is
supposed to signal whether the function should attempt to renew a lease but
that does not seem to be what is happening.  Any ideas out there?  The
consequence of all of this is that vxworks ignores the 0x40 bit flag to
determine autoconfiguration and just does it based on the ead.
For the record, I am booting my vxWorks.st image from flash using a memory
driver to access the flash memory space.  This means that my boot device is
a non-network boot device and that I need to specify my netif in the "other"
field.  Consequently, I had to play some games with the "bootDev" and
"other" fields since the dhcpcConfigSet() only autoconfigures using the
"bootDev".  All I did was copy the "other" to the "bootDev" for the call and
then return it back afterwards.  I do not think causes the problem but I
mention it just in case...
TIA
------------------------------------------------------
Jeff Angielski                            703.405.6896
Principal Engineer                jeff@ThePTRGroup.com
www.ThePTRGroup.com      Embedded, Real-Time Solutions
------------------------------------------------------
From vxwexplo-errs@csg.lbl.gov  Mon Apr  8 23:52:30 2002
From: Shlomo Katz <shlomok@rit.co.il>
Date: Mon Apr  8 23:52:33 PDT 2002
Subject: dynamic allocation in vxworks
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_000_01C1DF9B.5E675600
Content-Type: text/plain;
	charset="windows-1255"
hi
while using dynamic allocation, after long run there is a problem of
memory allocation which can be fixed by running a defrag operation.
does vxworks has such a module, or other solution?
thanks
shlomi
------_=_NextPart_000_01C1DF9B.5E675600
Content-Type: application/octet-stream;
	name="Shlomo Katz.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Shlomo Katz.vcf"
BEGIN:VCARD
VERSION:2.1
N:Katz;Shlomo
FN:Shlomo Katz
ORG:;R&D
TEL;WORK;VOICE:5742
TEL;HOME;VOICE:03-9244715
TEL;CELL;VOICE:053-423576
ADR;WORK:;;=E7=E3=F8=E4  19;=F4=FA=E7 =FA=F7=E5=E4
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:=3DE7=3DE3=3DF8=3DE4  =
19=3D0D=3D0A=3DF4=3DFA=3DE7 =3DFA=3DF7=3DE5=3DE4
EMAIL;PREF;INTERNET:shlomok@rit.co.il
REV:20011219T144218Z
END:VCARD
------_=_NextPart_000_01C1DF9B.5E675600--
From vxwexplo-errs@csg.lbl.gov  Tue Apr  9 04:03:32 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Tue Apr  9 04:03:35 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Tue Apr  9 04:03:24 PDT 2002
        Subject: Re: Downloading & string
        Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
        Subject: How can I watch the stackpointer?
        Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
        Subject: Re: Network buffer pool too small?
        Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
        Subject: taskPrioritySet from within interrupt
        Subject: Re: How to modify Emissary MIB Complier, stub file
        Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
        Subject: Serial Port : losing every other character
        Subject: Re: Downloading & string
        Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
        Subject: Corrupted Interface Flags?
        Subject: Re: Downloading & string
        Subject: Problem in RTM_NEWADDR message on Interface Addition
        Subject: Forcing a flush over NFS
        Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
        Subject: Re: Senior Embedded Systems Developer
        Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
        Subject: Re: closing files after control-c
        Subject: Re: Pipes and Message Queues....blocking?
        Subject: VxWorks/SourceSafe bizar problem
        Subject: Re: Forcing a flush over NFS
        Subject: Re: Corrupted Interface Flags?
        Subject: Re: VxWorks/SourceSafe bizar problem
        Subject: Re: How can I watch the stackpointer?
        Subject: Re: closing files after control-c
        Subject: Re: intLock() and "system routines" vs. "kernel services"
        Subject: Re: How to do Inline assembly
        Subject: Re: Corrupted Interface Flags?
        Subject: Re: Corrupted Interface Flags?
        Subject: taskSpawn priority
        Subject: Re: PPC8241 architecture?
        Subject: Re: problem with select?
        Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
        Subject: Re: problem with select?
        Subject: Re: problem with select?
        Subject: IpRouting
        Subject: Compiling GNU code for VxWorks AE
        Subject: Re: problem with select?
        Subject: Re: unmounting a block driver
        Subject: Re: taskSpawn priority
        Subject: Re: problem with select?
        Subject: Re: taskSpawn priority
        Subject: Re: taskSpawn priority
        Subject: How to set TIMEZONE? Support for timezones in localtime?
        Subject: Re: How to set TIMEZONE? Support for timezones in localtime?
        Subject: tracking socket() in running time.
        Subject: Re: problem with select?
        Subject: Re: taskPrioritySet from within interrupt
        Subject: tutorial recommendations for newbie?
        Subject: Re: tutorial recommendations for newbie?
        Subject: Re: problem with select?
        Subject: Samples?
        Subject: Re: arpAdd Question
        Subject: Re: How can I watch the stackpointer?
        Subject: Re: problem with select?
        Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
        Subject: Re: problem with select?
        Subject: Re: How can I watch the stackpointer?
        Subject: Re: Samples?
        Subject: Re: problem with select?
        Subject: Re: problem with select?
        Subject: mib2 Iftable and END/NPT
        Subject: Re: taskPrioritySet from within interrupt
        Subject: DHCP - default gateway field
        Subject: How to send keystrokes to the keyboard ring buffer
        Subject: tNetTask exception problem on continuous TCP socket write function
        Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Downloading & string
Date: Mon, 8 Apr 2002 13:30:07 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb17f38$1@brateggebdc5.br-automation.co.at>
References: <a8rkq3$uo966$1@ID-79865.news.dfncis.de> <3cb16bfd$1@brateggebdc5.br-automation.co.at> <a8rr6i$v4hh5$1@ID-79865.news.dfncis.de>
Hi,
in that case, I recommend you build a custom simulator image with full C++
support built in.
It is likely, that the classes you use are not part of the simulator you are
currently using (I guess the one shipped pre-built with Tornado).
You do so by creating a bootable VxWorks project based on the simpc_vx
project.
Modify the VxWorks configuration (adding all required C++ support).
Build this project - the result is a file VxWorks.exe, which you specify as
custom simulator image when starting the simulator.
hth
Werner
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a8rr6i$v4hh5$1@ID-79865.news.dfncis.de...
>
> "Werner Schiendl" <ws-news@gmx.at> wrote in message
news:3cb16bfd$1@brateggebdc5.br-automation.co.at...
> > Hi,
> >
> > For C++ projects, you do normally download the .out file, not the .o
file.
> >
> > The difference is, that the .out file is munched - which is necessary to
> > load it into VxWorks properly.
> >
> >
> > Further, I saw that you use .c file suffix for your C++ code.
> > This might confuse the build (Makefile rules).
> >
>
> =======================================
> > Use a C++ file ending like .cpp for the file, and try again.
> >
>
> It didn't help.
>
> Here is a new Makefile
>
> || ###### Makefile : BEGIN ######
>
> # Makefile generated by the project manager
> #
>
>
> ## core information
>
> PRJ_FILE       = ProjectSems.wpj
> PRJ_DIR        = D:/projects/demo2/dirProjSems
> PRJ_TYPE       = vxApp
> PRJ_OBJS       = s1.o
> BUILD_SPEC     = SIMNTgnu
> TGT_DIR        = $(WIND_BASE)/target
>
>
>
>
> ## build-configuration info
>
> ifeq ($(BUILD_SPEC),SIMNTgnu)
> CPU              = SIMNT
> TOOL             = gnu
> DEFAULT_RULE     = ProjectSems.out
> endif
>
> include $(TGT_DIR)/h/make/defs.project
>
> ## build-configuration info
>
> ifeq ($(BUILD_SPEC),SIMNTgnu)
> AR               = arsimpc
> AS               = c++simpc
> CC               = c++simpc
> CFLAGS
>
>
>
>
>
>
>
>
>
>
>
= -U__WINNT -UWIN32 -U__WINNT__ -UWINNT -U__MINGW32__ -U_WIN32 -U__WIN32 -U_
_WIN32__ -U__WIN32 -mpentium -ansi -nostdinc -g -nostdli
>
b -fno-builtin -fno-defer-pop -Wall -DRW_MULTI_THREAD -D_REENTRANT -I. -ID:/
sys2/Tornado/target/h -DCPU=SIMNT
> CFLAGS_AS
  = -mpentium -ansi -nostdinc -g -nostdlib -fno-builtin -fno-defer-pop -P -x
> assembler-with-cpp -I. -ID:/sys2/Tornado/target/h -DCPU=SIMNT
> CPP              = ccsimpc -E -P -xc
> LD               = ldsimpc
> LDFLAGS          = --subsystem=windows
> LD_PARTIAL_FLAGS = -r
> NM               = nmsimpc -g
> OPTION_DEFINE_MACRO = -D
> OPTION_INCLUDE_DIR = -I
> POST_BUILD_RULE  =
> PRJ_LIBS         =
> SIZE             = sizesimpc
> endif
>
> # override make definitions only below this line
>
>
> # override make definitions only above this line
> include $(TGT_DIR)/h/make/rules.project
>
>
>
> ## build-configuration info
>
> ifeq ($(BUILD_SPEC),SIMNTgnu)
> s1.o:
>
>
$(CC) -U__WINNT -UWIN32 -U__WINNT__ -UWINNT -U__MINGW32__ -U_WIN32 -U__WIN32
 -U__WIN32__ -U__WIN32 -mpentium -ansi -nostdinc -g -nos
>
tdlib -fno-builtin -fno-defer-pop -Wall -DRW_MULTI_THREAD -D_REENTRANT -I. -
I$(WIND_BASE)/target/h -DCPU=SIMNT -c
> D:/projects/demo/sems/s1.cpp
> endif
>
>
> ## dependencies
>
> s1.o: D:/projects/demo/sems/s1.cpp
>
>
> ## user defined rules
>
> || ###### Makefile : END ########
>
>
>
> =======================================
> > hth
> > Werner
> >
> >
>
>
> Thanks
>
> ====================
>   Alex Vinokur
>     http://up.to/alexvn
>     http://go.to/alexv_math
>     mailto:alexvn@bigfoot.com
>     mailto:alexvn@go.to
>   ====================
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
Date: Mon, 8 Apr 2002 13:44:03 +0200
From: "Mirak" <mirak63@wanadoo.fr>
Organization: Wanadoo, l'internet avec France Telecom
Message-ID: <a8rvbn$4j6$1@wanadoo.fr>
References: <a8ndgk$8aa$1@wanadoo.fr> <3cb15e91$1@brateggebdc5.br-automation.co.at>
"Werner Schiendl" <ws-news@gmx.at> wrote in message
news:3cb15e91$1@brateggebdc5.br-automation.co.at...
> Hi,
>
> what do you try to accomplish?
> Or is the question purely out of curiosity?
>
> regards
> Werner
No I really need that.
This is to acces to the configuration of my adsl modem.
Before the modem got an IP of 192.168.20.80 wich make him pingable and
configurable, but my ISP upgraded the modem, so now the IP is 0.0.0.0 and I
can't ping him or acces to the configuration by telnet or http.
When I sniff the modem at the boot, it sends an arp request saying that the
ip of the device is 0.0.0.0 .
Before it sended the same paquet, but the ip was 192.168.20.80 .
There is no switch or reset buton on the modem to change the ip. The isp put
0.0.0.0 for default IP I guess.
I am not good at that, but I think that the modem has the same ports open
than before,but only the ip change so I want to be able to send paquet to
this 0.0.0.0 adress and beeing able to receive to.
My Idea was that after all an ip is just a number, so the defaut parameter
or convention of TCP/IP could be modified to permit to have an ip of 0.0.0.X
for my localhost and make 0.0.0.0 adress routable.
And all that only in the purpose to communicate with the modem and put an
accesible IP with the standart protocol.
---------------------------
Newsgroups: comp.os.vxworks
Subject: How can I watch the stackpointer?
Date: Mon, 08 Apr 2002 14:17:29 +0200
From: Martin Schaefer <m.schaefer@stoye.de>
Message-ID: <3CB18A59.88A64011@stoye.de>
Hello,
I'm searching for a way to watch the stackpointer. "checkStack()" just
gives a swapshot which does not help me. Additional I need some
information about how vxWorks handles the stack. How can I  interpret
the pattern on the stack?
Any hint is welcome,
                    Martin
- --
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
Date: Mon, 8 Apr 2002 14:25:42 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb18c3e$1@brateggebdc5.br-automation.co.at>
References: <a8ndgk$8aa$1@wanadoo.fr> <3cb15e91$1@brateggebdc5.br-automation.co.at> <a8rvbn$4j6$1@wanadoo.fr>
Hi,
It might be possible to access the device using RAW ethernet packets.
But in my opinion, you should get your ISP fix the problem.
If I read your mail correctly, your ISP broke it (the modem) with the
upgrade.
So you should be able to expect them to fix things.
If you 'are not good' at IP networking, you'll have hard time communicate
with the device.
best regards
Werner
"Mirak" <mirak63@wanadoo.fr> wrote in message
news:a8rvbn$4j6$1@wanadoo.fr...
>
> "Werner Schiendl" <ws-news@gmx.at> wrote in message
> news:3cb15e91$1@brateggebdc5.br-automation.co.at...
> > Hi,
> >
> > what do you try to accomplish?
> > Or is the question purely out of curiosity?
> >
> > regards
> > Werner
>
> No I really need that.
> This is to acces to the configuration of my adsl modem.
> Before the modem got an IP of 192.168.20.80 wich make him pingable and
> configurable, but my ISP upgraded the modem, so now the IP is 0.0.0.0 and
I
> can't ping him or acces to the configuration by telnet or http.
> When I sniff the modem at the boot, it sends an arp request saying that
the
> ip of the device is 0.0.0.0 .
> Before it sended the same paquet, but the ip was 192.168.20.80 .
> There is no switch or reset buton on the modem to change the ip. The isp
put
> 0.0.0.0 for default IP I guess.
>
> I am not good at that, but I think that the modem has the same ports open
> than before,but only the ip change so I want to be able to send paquet to
> this 0.0.0.0 adress and beeing able to receive to.
>
> My Idea was that after all an ip is just a number, so the defaut parameter
> or convention of TCP/IP could be modified to permit to have an ip of
0.0.0.X
> for my localhost and make 0.0.0.0 adress routable.
> And all that only in the purpose to communicate with the modem and put an
> accesible IP with the standart protocol.
>
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Network buffer pool too small?
Date: Mon, 8 Apr 2002 08:58:10 -0400
From: "chosi" <mcianciosi@raytheon.com>
Organization: Raytheon Company
Message-ID: <Ctgs8.669$c6.552@bos-service2.ext.raytheon.com>
References: <rflr8.665$c6.495@bos-service2.ext.raytheon.com> <QYtr8.176421$ZR2.94700@rwcrnsc52.ops.asp.att.net>
Thanks for the info.  It seems that in addition to mbufs, there are also
system
buffers.  These are apparently the ones I was running out of.
When I type "netHelp" in my Tornado shell, it listed "mbufShow", but it
didn't
list "netStackSysPoolShow".  This is the utility that shows system buffers.
"drdiags" <drdiags@attbi.com> wrote in message
news:QYtr8.176421$ZR2.94700@rwcrnsc52.ops.asp.att.net...
> Hello Chosi,
>
>     What about the 128 byte clusters? I am not sure about the BSD/END
driver
> which have their
> own private pool, but  on the following vxWorks FAQ link, there is a
writeup
> to help you see if
> making changes to your network buffer pool will help along with some
> utilities.  Try this link:
>
> http://www.xs4all.nl/~borkhuis/vxworks/vxw_pt4.html#4.1
>
>     HTH.
>
> "chosi" <mcianciosi@raytheon.com> wrote in message
> news:rflr8.665$c6.495@bos-service2.ext.raytheon.com...
> > My processor sometimes looses it's ability to talk on the
> > network.  It happens after I load it down with a lot of
> > activity.  I noticed that my "tNetTask" had errno=73000a, which
> > is "S_netBufLib_NO_POOL_MEMORY".  I did an "mbufShow", and
> > I have plenty of free mbufs.  So what memory is it talking
> > about, and how do I increase it?
> >
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
Date: Mon, 8 Apr 2002 15:07:24 +0200
From: "Mirak" <mirak63@wanadoo.fr>
Organization: Wanadoo, l'internet avec France Telecom
Message-ID: <a8s480$8fk$1@wanadoo.fr>
References: <a8ndgk$8aa$1@wanadoo.fr> <3cb15e91$1@brateggebdc5.br-automation.co.at> <a8rvbn$4j6$1@wanadoo.fr> <3cb18c3e$1@brateggebdc5.br-automation.co.at>
"Werner Schiendl" <ws-news@gmx.at> wrote in message
news:3cb18c3e$1@brateggebdc5.br-automation.co.at...
> Hi,
>
> It might be possible to access the device using RAW ethernet packets.
> But in my opinion, you should get your ISP fix the problem.
>
> If I read your mail correctly, your ISP broke it (the modem) with the
> upgrade.
> So you should be able to expect them to fix things.
>
> If you 'are not good' at IP networking, you'll have hard time communicate
> with the device.
>
> best regards
> Werner
Bonjour,
Thank you to answer.
My ISP remotely upgrade the modems, and there is no support for the modem.
This is my modem and I have buy it, so why can't I have the right to do what
I want with it ?
Do you have more informations about the raw packets ?
I am not good, but I am young and I think it's a good way to understand more
about the IP networking.
I already no some stuf, but I am in vacation and have the time to think on
that.
My knowledge in programmation is restricted to Pascal, but I will lean the C
language next year, it might be usefull to start before.
I know how to use sniffers scanners etc .
The problem with the raw paquet is that I will not be very flexible.
All your ideas are welcome
Au revoir.
---------------------------
Newsgroups: comp.os.vxworks
Subject: taskPrioritySet from within interrupt
Date: Mon, 8 Apr 2002 14:02:41 +0100
From: Danny Chapman <dc8@lucent.com>
Organization: Lucent Technologies, Columbus, Ohio
Message-ID: <Pine.GSO.4.43.0204081354360.24770-100000@mlgw069.uk.lucent.com>
I need to know what will happen if I write an ISR that calls
taskPrioritySet on the task that it has just interrupted. For example,
let's say there are two tasks in the system:
A at priority 50
B at priority 100
Initially B is running. Then it gets pre-empted by A. Then A gets
pre-empted by my ISR, which calls taskPrioritySet(A,200). When the ISR
returns, will task B take over immediately?
I am expecting the answer to be yes... but I need to be sure!
Thanks in advance - Danny
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to modify Emissary MIB Complier, stub file
Date: 8 Apr 2002 06:05:18 -0700
From: hans-peter@kabout.com (Hans-Peter Kabout)
Organization: http://groups.google.com/
Message-ID: <c3b317b8.0204080505.5597183d@posting.google.com>
References: <e555a185.0204051031.17273a78@posting.google.com>
Hi Jason,
my recommendation is not to change the behaviour of Windows regarding
the standard MIB. This means:
- -  Write a SNMP sub agent and let Windows do the work on the standard
MIB.
- -  Exclude everything from your MIB tree that is already done by
Microsoft.
- -  Place your MIB leafs exclusively in the enterprises sub tree.
Regards, H.-P. Kabout
   KABOUT IT Consulting
 mailto:Hans-Peter@Kabout.com
  Phone: +49 (0)9085 - 1017
 Mobile: +49 (0)160 - 7556913
   http://www.kabout.com
jzhang@drs.ca (Jason) wrote in message news:<e555a185.0204051031.17273a78@posting.google.com>...
> Hello, all:
>
> I am using emissary MIB compiler to build snmp agent. After run
> $ mibcomp -stub -o stub.c rfc1213.mib rfc1695.mib
> I got a stub file which contains the stub functions, following is a
> piece of codes, it asks me to replace the type STRUCT_system with
> something appropriate to my system. My system is Windows NT, can
> anybody tell me how to do it?
>
>
> /* An internal routine to retrieve the values of the variables, used
>  * by the method routines system_get and system_next.
>  * You need to replace the type STRUCT_system with something
>  * appropriate to your system. */
> static int
>   system_get_value(OIDC_T      lastmatch,
>                    SNMP_PKT_T *pktp,
>                    VB_T       *vbp,
>                    STRUCT_system *data)     /* !!! */
> { switch(lastmatch) {
>   case LEAF_sysDescr:
>    ......
>
>
>
> Thanks in advance!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
Date: 8 Apr 2002 13:17:27 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91EA9B8FC1653borkhuisagerecom@135.7.153.102>
References: <a8ndgk$8aa$1@wanadoo.fr> <3cb15e91$1@brateggebdc5.br-automation.co.at> <a8rvbn$4j6$1@wanadoo.fr> <3cb18c3e$1@brateggebdc5.br-automation.co.at> <a8s480$8fk$1@wanadoo.fr>
"Mirak" <mirak63@wanadoo.fr> wrote:
> My ISP remotely upgrade the modems, and there is no support for the
> modem. This is my modem and I have buy it, so why can't I have the
> right to do what I want with it ?
If it is your modem they don't have the right to upgrade, so you could
make them reverse the upgrade, or provide you with a new modem. If you
are going to try to fix it yourself you might give them an excuse to not
do that.
> Do you have more informations about the raw packets ?
> I am not good, but I am young and I think it's a good way to
> understand more about the IP networking.
> I already no some stuf, but I am in vacation and have the time to
> think on that.
> My knowledge in programmation is restricted to Pascal, but I will lean
> the C language next year, it might be usefull to start before.
> I know how to use sniffers scanners etc .
> The problem with the raw paquet is that I will not be very flexible.
> All your ideas are welcome
The first thing to look for is a serial port. It might be hidden inside
of the box, but that would make it easier. There could be a way to set
your IP address from there.
BTW: what is the brand and type of modem?
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: Serial Port : losing every other character
Date: Mon, 8 Apr 2002 09:29:15 -0400
From: "Harjinder Chayra" <harjinder.chayra@terayon.com>
Organization: Storm Internet Services
Message-ID: <a8s607$nvc$1@news.storm.ca>
Sender: terayon@gw-terayon.storm.ca
I have just managed to get a BSP up but I have found that I lose every other
character!
The shell does come up and I can interact with it but I have to depress
every character twice :-(
Any ideas on what may be happening in the UART? (running in interrupt mode).
I do not get an interrupt when the first char is depressed only on the
second char, and I only "see" the second char.
The UART is the Texas Instruments TL16C550A.
I am running VxWorks for ARM9
Thanks
Harjinder
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Downloading & string
Date: Mon, 8 Apr 2002 16:32:46 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a8s63j$ukjmo$1@ID-79865.news.dfncis.de>
References: <a8rkq3$uo966$1@ID-79865.news.dfncis.de> <3cb16bfd$1@brateggebdc5.br-automation.co.at> <a8rr6i$v4hh5$1@ID-79865.news.dfncis.de> <3cb17f38$1@brateggebdc5.br-automation.co.at>
"Werner Schiendl" <ws-news@gmx.at> wrote in message news:3cb17f38$1@brateggebdc5.br-automation.co.at...
> Hi,
>
> in that case, I recommend you build a custom simulator image with full C++
> support built in.
> It is likely, that the classes you use are not part of the simulator you are
> currently using (I guess the one shipped pre-built with Tornado).
>
> You do so by creating a bootable VxWorks project based on the simpc_vx
> project.
> Modify the VxWorks configuration (adding all required C++ support).
> Build this project - the result is a file VxWorks.exe, which you specify as
> custom simulator image when starting the simulator.
You are right. It works OK in a bootable VxWorks project.
Thanks.
>
> hth
> Werner
>
>
[snip]
> >
> > ====================
> >   Alex Vinokur
> >     http://up.to/alexvn
> >     http://go.to/alexv_math
> >     mailto:alexvn@bigfoot.com
> >     mailto:alexvn@go.to
> >   ====================
> >
> >
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
Date: 8 Apr 2002 06:36:17 -0700
From: shyang@netease.com (yang)
Organization: http://groups.google.com/
Message-ID: <8446174.0204080536.108f1993@posting.google.com>
References: <8446174.0204070054.5ab18bc3@posting.google.com> <3CB0397A.4967AFE7@bellsouth.net> <8446174.0204071649.3d3e097@posting.google.com> <Xns91EA653EFF37Dborkhuisagerecom@135.7.153.102>
Johan Borkhuis <borkhuis@agere.com> wrote in message news:<Xns91EA653EFF37Dborkhuisagerecom@135.7.153.102>...
> shyang@netease.com (yang) wrote:
>
> > I have directly   connected to the host ,also connected to the host by
> > hub. The question always is same.  I used class C addressing to
> > connect a class C addressing host. Class A /B just like this.
>
> OK, then now the question for more information: what are the IP addresses
> of your target, your host, the subnetmasks on both, etc. So all your
> networking details.
>
> Groeten,
>         Johan
in next stat I can't connect each other.
my target's IP address 172.25.72.1 ,netmask 255.255.0.0
my host's IP address 172.25.72.123, netmask 255.255.0.0
in next stat I can connect each other
my target's IP address 192.0.0.1 ,netmask 255.255.255.0
my host's IP address 192.0.0.123, netmask 255.255.255.0
---------------------------
Newsgroups: comp.os.vxworks
Subject: Corrupted Interface Flags?
Date: 8 Apr 2002 06:51:03 -0700
From: aidank@s3group.com (Aidan Kenny)
Organization: http://groups.google.com/
Message-ID: <99723b54.0204080551.6fb7e3ab@posting.google.com>
Hi everyone,
Has anyone encountered their Interface Flags being "corrupted". I am
just trying to set the interface flag UP, 0x1. My EndObj init function
gets called and the correct value is initialised in the endObj.
However after I attach the IP stack the Flags are set to 0x2147, i.e.
IFF_UP, IFF_RUNNING, IFF_NOTRAILERS, IFF_BROADCAST, IFF_SIMPLEX.
Any ideas of whats going on?
Thanks,
Aidan.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Downloading & string
Date: Mon, 8 Apr 2002 15:48:08 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb19f91$1@brateggebdc5.br-automation.co.at>
References: <a8rkq3$uo966$1@ID-79865.news.dfncis.de> <3cb16bfd$1@brateggebdc5.br-automation.co.at> <a8rr6i$v4hh5$1@ID-79865.news.dfncis.de> <3cb17f38$1@brateggebdc5.br-automation.co.at> <a8s63j$ukjmo$1@ID-79865.news.dfncis.de>
Hi,
you may also continue your application in a downloadable project now.
It's only the configuration of VxWorks that was not sufficient for your
project.
This is more convenient (i. e. faster turn-around) than rebuilding VxWorks
every time from scratch.
regards
Werner
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a8s63j$ukjmo$1@ID-79865.news.dfncis.de...
>
> "Werner Schiendl" <ws-news@gmx.at> wrote in message
news:3cb17f38$1@brateggebdc5.br-automation.co.at...
> > Hi,
> >
> > in that case, I recommend you build a custom simulator image with full
C++
> > support built in.
> > It is likely, that the classes you use are not part of the simulator you
are
> > currently using (I guess the one shipped pre-built with Tornado).
> >
> > You do so by creating a bootable VxWorks project based on the simpc_vx
> > project.
> > Modify the VxWorks configuration (adding all required C++ support).
> > Build this project - the result is a file VxWorks.exe, which you specify
as
> > custom simulator image when starting the simulator.
>
> You are right. It works OK in a bootable VxWorks project.
>
> Thanks.
>
>
> >
> > hth
> > Werner
> >
> >
>
> [snip]
>
> > >
> > > ====================
> > >   Alex Vinokur
> > >     http://up.to/alexvn
> > >     http://go.to/alexv_math
> > >     mailto:alexvn@bigfoot.com
> > >     mailto:alexvn@go.to
> > >   ====================
> > >
> > >
> > >
> >
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Problem in RTM_NEWADDR message on Interface Addition
Date: 8 Apr 2002 06:58:52 -0700
From: overtones@excite.com (Strawberry)
Organization: http://groups.google.com/
Message-ID: <41440750.0204080558.4da45ae6@posting.google.com>
hi groups,
   Am using Vxworks 5.4/T 2.02/Win2k/SimNT target. Wanna capture
Interface Add Event for which i have a routing sock listening. When i
add an Interface i get the RTM_NEWADDR message but no sockaddr struct
following it. How do i know which interface address is being added.
(The interface index alone does not help cos there could be more than
one IP configured for the same interface). Also the ifam_flags show
RTA_NETMASK, RTA_IFP & RTA_IFA set :((
TiA,
SB
---------------------------
Newsgroups: comp.os.vxworks
Subject: Forcing a flush over NFS
Date: Mon, 08 Apr 2002 10:13:05 -0400
From: Mike <nospam@broadcom.com>
Organization: Broadcom Corporation -- Irvine, California
Message-ID: <3CB1A571.58DF883D@broadcom.com>
Is there a way to force a flush to a file mounted via NFS?  I don't want
to decrease the cache size for efficiency purposes.  The close()
function seems to cause a flush, but I need the flush before closing it.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
Date: Mon, 8 Apr 2002 16:37:14 +0200
From: "Mirak" <mirak63@wanadoo.fr>
Organization: Wanadoo, l'internet avec France Telecom
Message-ID: <a8s9gd$8su$1@wanadoo.fr>
References: <a8ndgk$8aa$1@wanadoo.fr> <3cb15e91$1@brateggebdc5.br-automation.co.at> <a8rvbn$4j6$1@wanadoo.fr> <3cb18c3e$1@brateggebdc5.br-automation.co.at> <a8s480$8fk$1@wanadoo.fr> <Xns91EA9B8FC1653borkhuisagerecom@135.7.153.102>
"Johan Borkhuis" <borkhuis@agere.com> wrote in message
news:Xns91EA9B8FC1653borkhuisagerecom@135.7.153.102...
> "Mirak" <mirak63@wanadoo.fr> wrote:
> > My ISP remotely upgrade the modems, and there is no support for the
> > modem. This is my modem and I have buy it, so why can't I have the
> > right to do what I want with it ?
>
> If it is your modem they don't have the right to upgrade, so you could
> make them reverse the upgrade, or provide you with a new modem. If you
> are going to try to fix it yourself you might give them an excuse to not
> do that.
Yeah you have right, but I don't know how I can force them to reverse the
process.
> > Do you have more informations about the raw packets ?
> > I am not good, but I am young and I think it's a good way to
> > understand more about the IP networking.
> > I already no some stuf, but I am in vacation and have the time to
> > think on that.
> > My knowledge in programmation is restricted to Pascal, but I will lean
> > the C language next year, it might be usefull to start before.
> > I know how to use sniffers scanners etc .
> > The problem with the raw paquet is that I will not be very flexible.
> > All your ideas are welcome
>
> The first thing to look for is a serial port. It might be hidden inside
> of the box, but that would make it easier. There could be a way to set
> your IP address from there.
>
> BTW: what is the brand and type of modem?
It's an ECI modem B-focus.
There is NO official documentation on this modem.
I have emailed you a photo of the interior of the modem.
>
> 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.qnx,comp.os.unix,comp.os.vxworks,comp.sys.arm,comp.sys.m68k
Subject: Re: Senior Embedded Systems Developer
Date: Mon, 08 Apr 2002 08:29:50 -0700
From: "Michael R. Kesti" <mkesti@gv.net>
Organization: MK Associates
Message-ID: <3CB1B76E.A6DFB516@gv.net>
References: <uq7s8.246487$q2.27942@sccrnsc01>
Reply-To: mkesti@gv.net
Mark Lane wrote:
>Senior Embedded Systems developer looking for contract work ...
>
>- pSOS, VxWorks, VRTX, Nucleus, QNX, OSE, INTEGRITY
>- C/C++, Assembly, Microcode
>- Object-Oriented, UML, Rational Rose, SASD
>- PowerPC, PowerQuicc, 683XX, 68K, ColdFire, 68HCXX
>- Pentium, 80X86, ARM7/9, TI OMAP, 805X
>- ClearCase, PVCS, CVS, RCS, SEI/ISO process
>- NT, Unix, GNU, Perl, ShellScripting
>- TCP/IP, ATM, SAR, CAC, QOS, GSM/GPRS, SNMP
>- USB, PCI, VME, ISA, DSL, JTAG, I2C, SPI, DS1, DS3
>- BSP Development, Debug GREEN hardware
>- Complex software design at any level
>- Commercial or Military
Imagine what this newsgroup would become if everybody who qualified used
it as their personal work wanted forum.  Please refrain from doing so!
- --
========================================================================
          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: Why I can't connect to 172.16.25.18 /255.255.0.0
Date: Mon, 08 Apr 2002 12:07:34 -0700
From: Joe Durusau <joseph.a.durusau@lmco.com>
Organization: Lockheed Martin Corporation
Message-ID: <3CB1EA76.66641640@lmco.com>
References: <8446174.0204070054.5ab18bc3@posting.google.com> <3CB0397A.4967AFE7@bellsouth.net> <8446174.0204071649.3d3e097@posting.google.com> <Xns91EA653EFF37Dborkhuisagerecom@135.7.153.102> <8446174.0204080536.108f1993@posting.google.com>
yang wrote:
>
> Johan Borkhuis <borkhuis@agere.com> wrote in message news:<Xns91EA653EFF37Dborkhuisagerecom@135.7.153.102>...
> > shyang@netease.com (yang) wrote:
> >
> > > I have directly   connected to the host ,also connected to the host by
> > > hub. The question always is same.  I used class C addressing to
> > > connect a class C addressing host. Class A /B just like this.
> >
> > OK, then now the question for more information: what are the IP addresses
> > of your target, your host, the subnetmasks on both, etc. So all your
> > networking details.
> >
> > Groeten,
> >         Johan
> in next stat I can't connect each other.
> my target's IP address 172.25.72.1 ,netmask 255.255.0.0
> my host's IP address 172.25.72.123, netmask 255.255.0.0
>
> in next stat I can connect each other
>
> my target's IP address 192.0.0.1 ,netmask 255.255.255.0
> my host's IP address 192.0.0.123, netmask 255.255.255.0
	I can't tell you why is doesn't work, since it seems to me
that it should do so if no gateways are involved, but the
172... address is a non-routable address. the 192... address is not,
at least according to rfc 1597.  If your interconnection is a
switch or some kind of an intelligent device, the connection won't
be made because that address is not supposed to pass a gateway.
Speaking only for myself,
Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: closing files after control-c
Date: Mon, 08 Apr 2002 12:26:43 -0400
From: William Pughe <wlp@ll.mit.edu>
Message-ID: <3CB1C4C3.E37ED2B9@ll.mit.edu>
References: <3CAF62D2.DE0B50C2@ll.mit.edu> <3CAFB368.222C8C59@bellsouth.net>
My code looks like:
  while( bind( listenSock, (struct sockaddr *)&hostAddr,
               sizeof(hostAddr) ) < 0 )
  {
      fprintf( stderr, "bind not successful\n");
      sleep( 1 );
      fprintf( stderr, "Setting socket to REUSEADDR\n");
      if( setsockopt( listenSock, SOL_SOCKET,
                      SO_REUSEADDR, (char *)&on, sizeof(int)) < 0 )
      {
          fprintf(stderr,"couldn't set socket to SO_REUSADDR\n");
      }
      else
      {
          fprintff(stderr,"socket set to SO_REUSADDR\n");
      }
  }
If I run my code twice, the second instance enters this loop and never gets
out.  I just keep getting
bind not successful
Setting socket to REUSADDR
socket set to SO_RESUSADDR
This goes on until I manually close the socket number returned from the first
call to socket.  As soon as I close the first socket number, the second
instance of the code binds and everything works fine.
I tried using taskDeleteHookAdd to define a function that will call close
whenever the task is deleted, but this defines a delete hook for all tasks.
Basically it didn't seem very elegant, so I figured there must be a better
way to do it.
Will
joe durusau wrote:
>     The easy way to solve this problem is to use SO_REUSEADDR
> in setsockopt().  That won't close the original socket, but it will
> let you use another one.  You could always store the fd for your
> socket somewhere (in a global variable) and have the function try
> to close it as it starts up.
>
> Speaking only for myself,
>
> Joe Durusau
>
> William Pughe wrote:
>
> > Hello.  I've got a library that taskSpawns a function that calls
> > socket().  If I control-c the original task the socket doesn't get
> > closed and subsequent calls to bind don't work.  If I run the close
> > command from the windsh command line then I can bind again.  I would
> > like to have close called automatically when the original task is
> > killed.  I tried setting up a signal handler to send a taskDelete to the
> > spawned task so it's signal handler would call close.  All for naught.
> > For some reason signal(SIGINT, handlerFunc) never get used.
> >
> > Does anyone have a solution to this?  I'm running vworks 2.0 on an
> > mv5100 board.
> >
> > Thanks for your help.
> >
> > Will
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Pipes and Message Queues....blocking?
Date: 8 Apr 2002 09:43:05 -0700
From: kenb88@hotmail.com (Whacked)
Organization: http://groups.google.com/
Message-ID: <6755aee5.0204080843.251faa68@posting.google.com>
References: <6755aee5.0203291212.6c96bd2b@posting.google.com> <a8buoo$oec$1@snoopy.bndlg.de>
"Michael Lawnick" <Lawnick@softec.de> wrote in message news:<a8buoo$oec$1@snoopy.bndlg.de>...
> Hi Whacked,
>
> you could code
> if ((ioctl (fd, FIONMSGS, &nMessages)!=ERROR) && (nMessages == 0))
>   write (fd, message,50);
> but keep track of the time-leak between test and message drop. A mutex could
> make it more secure.
>
> Else check setting timeout for the fd. I'm not really sure, but I seem to
> remember, that it is possible to set the fd to non-blocking like a socket,
> just give it a try (an tell your experience).
> on = TRUE;
> status = ioctl (sFd, FIONBIO, &on);
>
> HTH
> Michael
>
> "Whacked" <kenb88@hotmail.com> schrieb im Newsbeitrag
> news:6755aee5.0203291212.6c96bd2b@posting.google.com...
> > Hi,
> >
> > Here is the situation. Ive set up a pipe for IPC that can accept only
> > one message. Something like the following:
> >
> > pipDevCreate ("/pipe/demo",1,50)
> >
> > Then I write a message to the pipe (pseudo code)
> >
> > fd = open("/pipe/demo", 0_RDRW,0)
> > write (fd, msg,50)
> > close (fd)
> >
> > Now, what happens if I immediately write to the pipe again before any
> > process reads?
> >
> > fd = open("/pipe/demo", 0_RDRW,0)
> > write (fd, message,50)
> > close (fd)
> >
> > It appears to me that I will be blocked in the write call since there
> > is already a message in the pipe. This is not what I want to happen. I
> > would like for the 2nd message to simply be dropped.
> >
> > The pipe facility is based on message queues. If I was setting up a
> > queue, I could pass the it a NO_WAIT timeout parameter. So, I could:
> >
> > Q_ID = msgQCreate (1,50,MSG_Q_FIFO)
> > msgQSend (Q_ID, msg, 50, NO_WAIT, MSG_PRI_NORMAL)
> >
> > and then send the second message
> >
> > msgQSend (Q_ID, msg, 50, NO_WAIT, MSG_PRI_NORMAL)
> >
> > This message would get dropped on the floor if the first one had not
> > been read from the queue.
> >
> > I need to iplement this behavior with pipes. Since the pipes are based
> > on message queues in VxWorks, can I do it??
> >
> > thanks,
> >
> > Whacked
Michael,
Yeah, the
if ((ioctl (fd, FIONMSGS, &nMessages)!=ERROR) && (nMessages == 0))
     write (fd, message,50);
was the work around I came up with. I'm fully aware of the race
condition, but my application is currently working.
I figured that
status = ioctl (sFd, FIONBIO, &on);
would not work since I'm not using a socket...this is just a pipe.
Aufeidersehen,
Whacked
---------------------------
Newsgroups: comp.os.vxworks
Subject: VxWorks/SourceSafe bizar problem
Date: Mon, 8 Apr 2002 20:01:30 +0200
From: "Rami Gideoni" <rgideoni@rugged.com>
Organization: Internet Gold, ISRAEL
Message-ID: <a8sic6$hd8$1@news.inter.net.il>
Hi,
I'm checking in file in .wpj (VxWorks project file) extension and when I'm
checking it out -- I find out that the size of the file was altered.
MS-DOS fc (file compare) utility find no difference between the two files --
the same is true also for the text editor I'm using
when I check in ZIP version of the file -- the problem disappear.
Any idea will be welcomed.
RamiG
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Forcing a flush over NFS
Date: Mon, 8 Apr 2002 10:05:33 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub3jg4ajorm8bf@corp.supernews.com>
References: <3CB1A571.58DF883D@broadcom.com>
Use ioctl on fd with FIOSYNC.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Corrupted Interface Flags?
Date: Mon, 8 Apr 2002 10:07:25 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub3jjscom6mm04@corp.supernews.com>
References: <99723b54.0204080551.6fb7e3ab@posting.google.com>
The network stack code is setting those flags when interface is properly
attached and running.
It is possible to overwrite the flag afterwards via ifFlagSet.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: VxWorks/SourceSafe bizar problem
Date: Mon, 08 Apr 2002 19:12:58 +0200
From: Patrick Deiber <patrick.deiber@wanadoo.fr>
Organization: PatDB
Message-ID: <3CB1CF9A.860F87C1@wanadoo.fr>
References: <a8sic6$hd8$1@news.inter.net.il>
Reply-To: patrick.deiber@wanadoo.fr
Rami,
Take care Visual Source safe will convert unix text format to DOS format.
That would say it will replace LF (0x0A) with CR and LF (0x0D 0x0A).
Patrick
Rami Gideoni wrote:
> Hi,
>
> I'm checking in file in .wpj (VxWorks project file) extension and when I'm
> checking it out -- I find out that the size of the file was altered.
>
> MS-DOS fc (file compare) utility find no difference between the two files --
> the same is true also for the text editor I'm using
>
> when I check in ZIP version of the file -- the problem disappear.
>
> Any idea will be welcomed.
>
> RamiG
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How can I watch the stackpointer?
Date: Mon, 8 Apr 2002 10:12:02 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub3jspico5ap8a@corp.supernews.com>
References: <3CB18A59.88A64011@stoye.de>
During stack initialization the value 0xee is written to all bytes in the
stack.  Starting from top of stack you can scan for 0xee patterns.  When you
see values different from 0xee, then that is your highest usage of the
stack.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: closing files after control-c
Date: Mon, 8 Apr 2002 19:15:12 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb1d018$1@brateggebdc5.br-automation.co.at>
References: <3CAF62D2.DE0B50C2@ll.mit.edu> <3CAFB368.222C8C59@bellsouth.net> <3CB1C4C3.E37ED2B9@ll.mit.edu>
Hi,
"William Pughe" <wlp@ll.mit.edu> wrote in message
news:3CB1C4C3.E37ED2B9@ll.mit.edu...
... snip ...
>
> I tried using taskDeleteHookAdd to define a function that will call close
> whenever the task is deleted, but this defines a delete hook for all
tasks.
> Basically it didn't seem very elegant, so I figured there must be a better
> way to do it.
>
... snip ...
Yes there is, you write a function that starts your stuff, and an other one
that stops it.
regards
Werner
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: intLock() and "system routines" vs. "kernel services"
Date: Mon, 8 Apr 2002 10:27:16 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub3kou3t5anu36@corp.supernews.com>
References: <Pine.GSO.4.42.0202261011330.10460-100000@zimbra> <newscache$zvh5sg$171$1@lnews.actcom.co.il> <Pine.GSO.4.42.0203011513570.10460-100000@zimbra> <488e459a.0203020855.7bc7815c@posting.google.com> <Pine.GSO.4.42.0203041049000.10460-100000@zimbra>
If that is indeed what the code does it is an error.
In general, semBGive() or any other function should not have the side-effect
of unlocking interrupts without callers knowing about it, i.e. without it
being clearly documented.
In case of semBGive() specifically, it should not unlock interrupts before
returning.  It should restore the interrupt masks back to the state it was
before returning.
When porting the WIND kernel to a new CPU architecture, frequently you end
up writing a lot of code to make sure that you are not doing the very
problem described here.  A lot of work goes into saving previous state of
status register and restoring it.
I don't know if x86 version of semBGive indeed does what you say it does
since I do not have x86 vxWorks.   Are you sure?
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to do Inline assembly
Date: 8 Apr 2002 10:28:48 -0700
From: pkockritz@mac.com (Pete Kockritz)
Organization: http://groups.google.com/
Message-ID: <9423c55b.0204080928.554d1812@posting.google.com>
References: <78577D29BFF755D9.BA9F3FBFA93A2FD4.28DBCF7A93122FFB@lp.airnews.net>
"Steve Scully" <sjscully@airmail.net> wrote in message news:<78577D29BFF755D9.BA9F3FBFA93A2FD4.28DBCF7A93122FFB@lp.airnews.net>...
>     C_code....
>    __asm("xori r3,r3,0x0040");  /* clear IP bit. EST emulator sets it */
>    __asm("mfmsr r3");
>    __asm("ori r3,r3,0x8000 ");
>    __asm("mtmsr r3 ");          /* Enable EE Bit in MSR */
>   return 0; /*no code after this assembly*/
You need a space before the opcode:
  __asm__(" mtspr  154,3" );
  __asm__(" mfspr  3,154" );
Also, make sure you have the defines for the registers. The assembler
doesn't know that r3 is a register. Try replacing r3 with just 3.
These defines are in
toolPpc.h, which should be included when you include asm.h, but maybe
for some
reason you're not getting them.
Any reason not to use vxMsrGet and vxMsrSet instead?
Pete
- --
pkockritz at mac dot com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Corrupted Interface Flags?
Date: Mon, 08 Apr 2002 18:39:09 +0100
From: Aidan Kenny <aidank@s3group.com>
Organization: Esat Net Customer
Message-ID: <3CB1D5BD.90A72874@s3group.com>
References: <99723b54.0204080551.6fb7e3ab@posting.google.com> <ub3jjscom6mm04@corp.supernews.com>
This is a multi-part message in MIME format.
- --------------6743E557A394E58BF47A14B8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Thanks for the quick reply,
But your answer has raised some more questions,
1) How does the stack code decide what to set the flags to? At the moment it
is setting all my interfaces to Point to Point, which is not what I want.
2) How can you override the IFF_POINTTOPOINT flag. You cannot use ifFlagSet
unfortunately.
Thanks again,
Aidan.
Hwa Jin Bae wrote:
> The network stack code is setting those flags when interface is properly
> attached and running.
>
> It is possible to overwrite the flag afterwards via ifFlagSet.
>
> --
> Hwa Jin Bae
> mailto:hjb@pso.com
> http://www.pso.com
- --------------6743E557A394E58BF47A14B8
Content-Type: text/x-vcard; charset=us-ascii;
 name="aidank.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Aidan Kenny
Content-Disposition: attachment;
 filename="aidank.vcf"
begin:vcard
n:Kenny;Aidan
tel;work:00-353-1-2911340
x-mozilla-html:FALSE
url:www.s3group.com
org:Silicon and Software Systems (S3);Communications Infrastructure
version:2.1
email;internet:aidank@s3group.com
title:Software Engineer
adr;quoted-printable:;;Whelen House,=0D=0ASouth County Business Park,=0D=0ALeopardstown =0D=0A=0D=0A;Dublin 18;;;Ireland
fn:Aidan Kenny
end:vcard
- --------------6743E557A394E58BF47A14B8--
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Corrupted Interface Flags?
Date: Mon, 8 Apr 2002 10:49:52 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub3m38ffgpthb7@corp.supernews.com>
References: <99723b54.0204080551.6fb7e3ab@posting.google.com> <ub3jjscom6mm04@corp.supernews.com> <3CB1D5BD.90A72874@s3group.com>
You are right.  Some flags cannot change via API.  You need to change them
forcibly.  ifp->if_flags can change directly.
Also, IFF_POINTOPOINT is set in drivers normally, not by the stack code.
For SLIP, PPP, ULIP, etc. it is set in the drivers themselves, for example.
Typically the setting of things like IFF_POINTOPOINT is done in the attach
routine of the driver.
IFF_UP, RUNNING, NOTRAILERS, etc. are done for you normally.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: taskSpawn priority
Date: Mon, 08 Apr 2002 12:10:29 -0700
From: Eric Harlow <Eric.Harlow@mail.dfrc.nasa.gov>
Organization: NASA Dryden Flight Research Center
Message-ID: <3CB1EB25.152CAE67@mail.dfrc.nasa.gov>
Can someone please point me to where I can find the range for setting
the priority of a task using taskSpawn?   The man page states: this
routine creates and activates a new task with a specified  priority and
options and returns a system-assigned ID.  I haven't been able to locate
information on the priority options for taskSpawn - it must be somewhere
in the Basis OS section of the reference manual.  Any help is
appreciated.
Thanks,
Eric Harlow
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: PPC8241 architecture?
Date: Mon, 08 Apr 2002 13:56:15 -0500
From: Andrew Johnson <anj@aps.anl.gov>
Organization: APS, Argonne National Laboratory
Message-ID: <3CB1E7CF.DD5ED8CE@aps.anl.gov>
References: <Xns91EA8369A1793borkhuisagerecom@135.7.153.101>
Johan Borkhuis wrote:
>
> For an experiment we are going to do some work with a PPC 824x processor,
> with a 603e processor core. We already have a license for the PPC 860, can
> we use this architecture for the 824x family?
AFAICT you should be able to - just check that your target/lib directory
has the libPPC603gnuvx.a file.  Our installation has all of the following
PPC libraries and supports the mv2100 BSP (PPC8240 core):
lib/libPPC403gnuvx.a
lib/libPPC603gnuvx.a
lib/libPPC604gnuvx.a
lib/libPPC860gnuvx.a
lib/libPPCEC603gnuvx.a
- - Andrew
- --
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away.
- - Antoine de Saint-Exupery
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: Mon, 08 Apr 2002 19:09:16 GMT
From: Pete Flugstad <pete_flugstad@nospam.icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <3CB1EB17.5030903@nospam.icon-labs.com>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com>
Hwa Jin Bae wrote:
> Assuming you are selecting for read events, select will return when data is
> available to read.   At that point, you do not know how much data is
> available to be read.  You should do FIONREAD to make sure that you have
> sufficient data for your read request that follows.  Otherwise, read can
> block.
FYI, this is not how normal BSD style sockets work (and
from my experience, vxWorks does not follow this model).
If select returns true for a socket descriptor, you can do read
on that socket, and the data AVAILABLE will be returned to you,
from 1 byte, up to the max you requested.   The read should not
block no matter how much you request, but you will only get what
is available.
You do NOT need to do a FIONREAD.  All that's going to do is add
an extra system call/ioctl overhead to your program.
 From my experience (mostly SNMP agents), vxWorks implements this
model exactly as I've desribed.
As someone else pointed out, if the NIC driver doesn't properly
implment various primatives, then select can indicate data available,
but read will block.  This is a bug in the NIC driver.  I haven't
seen this personally.
Pete Flugstad
Icon Labs
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: is there a way to acces to a machin wich IP is 0.0.0.0
Date: Mon, 08 Apr 2002 19:28:56 GMT
From: Pete Flugstad <pete_flugstad@nospam.icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <3CB1EFB4.3060607@nospam.icon-labs.com>
References: <a8ndgk$8aa$1@wanadoo.fr> <3cb15e91$1@brateggebdc5.br-automation.co.at> <a8rvbn$4j6$1@wanadoo.fr>
Mirak wrote:
> No I really need that.
> This is to acces to the configuration of my adsl modem.
> Before the modem got an IP of 192.168.20.80 wich make him pingable and
> configurable, but my ISP upgraded the modem, so now the IP is 0.0.0.0 and I
> can't ping him or acces to the configuration by telnet or http.
> When I sniff the modem at the boot, it sends an arp request saying that the
> ip of the device is 0.0.0.0 .
> Before it sended the same paquet, but the ip was 192.168.20.80 .
> There is no switch or reset buton on the modem to change the ip. The isp put
> 0.0.0.0 for default IP I guess.
Are you sure this is not a Reverse-ARP (RARP) request?
I.e., the modem is sending out a request, asking what IP
address it SHOULD have.
(R)ARP requests/responses have 4 parts:
   Sender IP Adddress       Target IP Address
   Sender MAC Adddress      Target MAC Address
Where "MAC" == Ethernet address.  Often referred to as the
Hardware Address (HA).
When you go to contact a machine you have not talked to in a while,
your IP stack will send out a broadcast request filling in:
   Sender IP Adddress       Target IP Address
   Sender MAC Adddress      00:00:00:00:00:00
The machine with "Target IP Address" will respond directly to
the Senders MAC Address with the completed information (Target
MAC Address filled in).  Note that most IP stacks will cache
the Senders IP <=> MAC mapping from the initial broadcast.
In Reverse ARP, the machine (typically a diskless workstation)
does not know it's own IP, so it broadcasts a request for that:
   0.0.0.0                  0.0.0.0
   Sender MAC Adddress      Target MAC Address
In this case, the sender puts it's own MAC address in both the
Sender and Target slots.   Somewhere on the network, a RARP
server will send a response, filling in the Target's IP address.
Note that this mechanism has largely been replaced by DHCP, but
this is simpler, and depending on configuration may be in use.
ARP packets have an ethernet protocol type of 0806.
RARP packets have an ethernet protocol type of 0835.
Because the formats are the same, some protocol analyzers may
dump them into the ARP category.  Note that "Operation" code of
the ARP packets are:
1 = ARP Request
2 = ARP Response
3 = RARP Request
4 = RARP Response
This is in addition to the different Ethernet protocol types.
Hope this helps.
Pete Flugstad
Icon Labs
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: Mon, 8 Apr 2002 13:04:27 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub3tvl4o2q327d@corp.supernews.com>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com>
I am sorry to disagree but read *can* block.  It does not always block.
This is how both BSD and VxWorks sockets work.  Let's look at it more
closely.
First, it is true that doing a read on a socket can return data of length
smaller than requested length.   However, that case, as frequent as it may
be, is not the only case.
For example, it is possible for select to wake up on socket for read side
when there is nothing to read.   Not often, but it can happen.   When this
happens read will block, unless it is marked FIONBIO.
The device specific select and potential bugs related to device specific
driver is not related to selecting on sockets.   The select on sockets is
implemented entired within socket layer and protocol layer code.  It is not
coupled with any other devices.
Calling FIONREAD is not always extra overhead either.  It can save repeated
calls to read and can simplify code.
Please let me know if any of the above is incorrect.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: 08 Apr 2002 13:22:08 -0700
From: Joe Chung <nospam@nospam.invalid>
Message-ID: <rpsg026vt3j.fsf@nospam.invalid>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com> <ub3tvl4o2q327d@corp.supernews.com>
The man page on select for every system I've read it states
something to the effect of:
...
       Three independent sets of descriptors are watched.   Those
       listed  in  readfds  will  be watched to see if characters
       become available for reading (more precisely, to see if  a
       read  will not block - in particular, a file descriptor is
       also ready on end-of-file),  those  in  writefds  will  be
       watched  to  see  if  a write will not block, and those in
       exceptfds will be watched for exceptions.   On  exit,  the
       sets  are  modified in place to indicate which descriptors
       actually changed status.
...
I've also written code that depended on that behavior with no
problems, i.e. in the sequence:
  err = select(...);
  if (err == -1) {
   /* do error or EINTR handling */
  } else if (err == 0) {
   /* handle timeout situation */
  } else {
    read(...);
  }
The read has never blocked.
- -jc
- --
(apply 'concat (reverse (list "com"
                              (char-to-string 46) "yahoo"
                              (char-to-string 64) "joechung")))
---------------------------
Newsgroups: comp.os.vxworks
Subject: IpRouting
Date: Mon, 08 Apr 2002 20:44:25 GMT
From: "Verizon" <vze399g7@verizon.net>
Message-ID: <Jins8.20295$7F1.3041@nwrddc02.gnilink.net>
Hi,
 Does anybody know if you can get source code for ip routing in VxWorks
5.4x?
We have code from 5.3 that we have modified and we MAY need to upgrade.
Wondering
how much of a pain it is going to be to modify the code to fit into 5.4.
Any help would be appreciated...
---------------------------
Newsgroups: comp.os.vxworks
Subject: Compiling GNU code for VxWorks AE
Date: 8 Apr 2002 13:49:29 -0700
From: venu_padakanti@yahoo.com (Venu Madhav Padakanti)
Organization: http://groups.google.com/
Message-ID: <55aab3a9.0204081249.19f8ad52@posting.google.com>
I am trying to build the GNU tools flex (which in turn needs bison)
for the VxWorks. I am using Tornado 3.1 and VxWorks AE 1.1
environment.
    In the UNIX and also in Cygwin on PC's world I run a script
configure to set up/generate the Makefiles and then do a make to build
the appropriate libraries and executables.
    Can someone share their knowledge about porting these onto
VxWorks. I am trying to look for any documentation or any help in that
direction.
    Appreciate any kind of help on that.
Thanks
..venu
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: Mon, 8 Apr 2002 13:57:53 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub413qst8426c3@corp.supernews.com>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com> <ub3tvl4o2q327d@corp.supernews.com> <rpsg026vt3j.fsf@nospam.invalid>
I can believe that your code never blocked.  It argues strongly for read
never blocking after select returns with read selection.  That seems to be
the case right?
However, that is not entirely accurate.  The code as you posted *can* block.
For example, select will return with read selection when there is zero byte
to read, if certain uncommon events happen from the network.
Let me give you one example, if your network interface is marked down and
back up again, very quickly (just if_down and if_up, back to back), you will
see that your TCP socket select will come back with read selection.  There
won't be anything to read though.
That is not the only case.  But it illustrates the point I am trying to
make.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: unmounting a block driver
Date: Mon, 8 Apr 2002 22:24:15 +0200
From: "VU Khac Tri \(home\)" <tvk6843@hotmail.com>
Organization: FUNDP, Namur, Belgium
Message-ID: <a8t956$8lon@hermes.fundp.ac.be>
References: <A5hr8.24$054.19034@nreader3.kpnqwest.net> <8448169c.0204071130.47f41d64@posting.google.com>
"Charles Johnson" <cjnaj1@attbi.com> wrote in message
news:8448169c.0204071130.47f41d64@posting.google.com...
> "Tri VU KHAC \(Sony\)" <tri.vukhac@sonycom.com> wrote in message
news:<A5hr8.24$054.19034@nreader3.kpnqwest.net>...
> > Hi folks,
> >
> > I am writing a block device driver. My program calls dosFsDevCreate() to
> > create a dosFs for the block device.
> > I want when I remove the device, I will be able to remove the device
from
> > the file system.
> > Do you know which command allows do that thing?
> >
> > Thank you in advance.
> > Tri.
>
> This is one of the major flaws with VxWorks.  No way to
> "de-initialize" both block and file system drivers.  Now in an
> embedded system, maybe this is considered an uncommon need.  It is
> annoying that you cannot recover resources from drivers that are no
> longer needed.
>
> You can have the device name removed from the device table so that
> code doesn't can't find the device anymore.  But this doesn't recover
> any resources consumed.
>
> --Charles Johnson
> cjnaj1@attbi.com
Hi,
Thank you for your response.
Regards,
Tri.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: taskSpawn priority
Date: Mon, 8 Apr 2002 17:07:08 -0400
From: "doug dotson" <ddotson@digidata.com>
Organization: Verio
Message-ID: <DBns8.6527$T_.138102@iad-read.news.verio.net>
References: <3CB1EB25.152CAE67@mail.dfrc.nasa.gov>
0-255. 0 is highest.
"Eric Harlow" <Eric.Harlow@mail.dfrc.nasa.gov> wrote in message
news:3CB1EB25.152CAE67@mail.dfrc.nasa.gov...
>
> Can someone please point me to where I can find the range for setting
> the priority of a task using taskSpawn?   The man page states: this
> routine creates and activates a new task with a specified  priority and
> options and returns a system-assigned ID.  I haven't been able to locate
> information on the priority options for taskSpawn - it must be somewhere
> in the Basis OS section of the reference manual.  Any help is
> appreciated.
>
> Thanks,
>
> Eric Harlow
>
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: 08 Apr 2002 14:36:58 -0700
From: Joe Chung <nospam@nospam.invalid>
Message-ID: <rpssn65euth.fsf@nospam.invalid>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com> <ub3tvl4o2q327d@corp.supernews.com> <rpsg026vt3j.fsf@nospam.invalid> <ub413qst8426c3@corp.supernews.com>
"Hwa Jin Bae" <hjb@pso.com> writes:
> I can believe that your code never blocked.  It argues strongly for read
> never blocking after select returns with read selection.  That seems to be
> the case right?
Right.
> However, that is not entirely accurate.  The code as you posted
> *can* block.
>
> For example, select will return with read selection when there
> is zero byte to read, if certain uncommon events happen from
> the network.
Read can and does return 0 bytes (as an indication of EOF).
> Let me give you one example, if your network interface is
> marked down and back up again, very quickly (just if_down and
> if_up, back to back), you will see that your TCP socket select
> will come back with read selection.  There won't be anything to
> read though.
>
> That is not the only case.  But it illustrates the point I am
> trying to make.
In which case, the implementation of select() is in error or
(more likely) the implementation of the driver in support of
select() is in error.
The whole point of select+read is to avoid having to use
nonblocking I/O.  With nonblocking I/O, using select as a
predicate for read becomes almost redundant, except in certain
cases.
Now, I won't argue whether select is indeed implemented correctly
on VxWorks or not. :) Furthermore, if it's your contention that
select+read can block due to incorrect driver implementations,
then I completely agree with you.
If one does decide to use select+nonblocking I/O, note that this
combination seem to have different behaviors (specifically wrt
edge cases) on different systems, in case you ever have to port
your code...
- -jc
- --
(apply 'concat (reverse (list "com"
                              (char-to-string 46) "yahoo"
                              (char-to-string 64) "joechung")))
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: taskSpawn priority
Date: 08 Apr 2002 14:40:16 -0700
From: Joe Chung <nospam@nospam.invalid>
Message-ID: <rpsofgteunz.fsf@nospam.invalid>
References: <3CB1EB25.152CAE67@mail.dfrc.nasa.gov>
It's in two places that I know of:
1. The doc for taskLib
2. The doc for taskPrioritySet
- -jc
- --
(apply 'concat (reverse (list "com"
                              (char-to-string 46) "yahoo"
                              (char-to-string 64) "joechung")))
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: taskSpawn priority
Date: 8 Apr 2002 14:58:49 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204081358.dd91bc2@posting.google.com>
References: <3CB1EB25.152CAE67@mail.dfrc.nasa.gov>
Hello,
> Can someone please point me to where I can find the range for setting
> the priority of a task using taskSpawn?   The man page states: this
> routine creates and activates a new task with a specified  priority and
> options and returns a system-assigned ID.  I haven't been able to locate
> information on the priority options for taskSpawn - it must be somewhere
> in the Basis OS section of the reference manual.  Any help is
> appreciated.
This really is a very basic question to ask, and one that you could
easily have found the answer to with the programmer's guide (you even
knew which section to look in).
In my 5.4 VxWorks Programmer's Guide, section 2.3.3 contains a
description of the VxWorks task scheduling mechanism. Included in
there is the following statement:
"The wind kernel has 256 priority levels, numbered 0 through 255.
Priority 0 is the highest and priority 255 is the lowest."
HTH,
John...
---------------------------
Newsgroups: comp.os.vxworks
Subject: How to set TIMEZONE? Support for timezones in localtime?
Date: Mon, 08 Apr 2002 22:04:32 GMT
From: Jon Newbill <JonUN@bitworkssystemsDELETETHIS.com>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <3CB21456.E91B3577@bitworkssystemsDELETETHIS.com>
In VxWorks 5.4.2 how does one set the timezone for use by the
localtime_r() function?  Does localtime_r in fact support timezones?  I
have found the timezone struct in target\h\sys\times.h but there doesn't
seem to be any reference to it or declaration of a global tz variable.
The documentation for the time mentions the TIMEZONE environment
variable.  Does VxWorks have environment variables?  Can they be set
from the Windshell?  Thanks in advance.
struct timezone
    {
    int tz_minuteswest; /* minutes west of Greenwich */
    int tz_dsttime; /* type of dst correction */
    };
Jon Newbill
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to set TIMEZONE? Support for timezones in localtime?
Date: 08 Apr 2002 15:18:19 -0700
From: Joe Chung <nospam@nospam.invalid>
Message-ID: <rpspu19x2ac.fsf@nospam.invalid>
References: <3CB21456.E91B3577@bitworkssystemsDELETETHIS.com>
In the doc for ansiTime, you'll see the format for the timezone
environment variable.  Here's my example:
/* Note that my daylight savings time start and end are not correct */
putenv("TIMEZONE=PDT::480:040102:100102");
In the doc for envLib you'll see general info about environments.
- -jc
- --
(apply 'concat (reverse (list "com"
                              (char-to-string 46) "yahoo"
                              (char-to-string 64) "joechung")))
---------------------------
Newsgroups: comp.os.vxworks
Subject: tracking socket() in running time.
Date: 8 Apr 2002 15:30:38 -0700
From: xukaih@yahoo.ca (xukaih)
Organization: http://groups.google.com/
Message-ID: <317b63da.0204081430.52540885@posting.google.com>
Hi *
I have an interesting requirement:
There is a lot of application call socket() right now,
what I intended to do is adding some printf() info before
each socket() is called.
But there is too much applications call socket(),
impossible for me to change each of them. Is there any
way I can add those those print information based on conditions
1> without changing application
2> don't have vxWorks socket() source code.
Maybe it is impossible to do so, anyhow I will ask.
Regards,
kai
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: Mon, 8 Apr 2002 16:08:09 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub48o4ka4kg97a@corp.supernews.com>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com> <ub3tvl4o2q327d@corp.supernews.com> <rpsg026vt3j.fsf@nospam.invalid> <ub413qst8426c3@corp.supernews.com> <rpssn65euth.fsf@nospam.invalid>
Let me address your points.
Read will not return 0 bytes because it is not EOF.  It will block until
bytes become available.  If you doubt this, please read BSD Unix code.  Just
read soreceive() in uipc_socket.   The example I explained last time is a
case where the lower level network stack code tries to inform upper layer
code that certain events of interest has happened and thus select returns to
give the users a chance to do something to find out.  Not necessary read().
But something else.  Read BSD code to see how the protocols (TCP, UDP, etc.)
are implemented to allow control inputs like this (e.g. tcp_ctlinput).   The
intent is to allow select (or the act of polling) to return to give users a
chance.
In those cases, read() will block because the code at socket layer will see
that there is nothing to read in the socket level queue.  It will do sbwait.
Then wait until something becomes available (even 1 byte).
The select implement is not incorrect.  It is in accordance with the overall
design.
The whole point of select+read is not only to avoid having to use
nonblocking I/O.   The other main purpose is to have API to poll over
multiple channels of I/O and other events.   It is not designed so that you
can do a read for all occasions where select returns on read selection.  It
is designed so that you will do necessary things to find out what to do
after return.   One of the necessary things may be read.  Other necessary
things can be looking at various things to see what happened.
It is not my contention that select+read can block due to incorrect driver
implementation.  That is not my contention at all.  In fact, I thought I
mentioned that it is incorrect to link the select on sockets with select on
devices.  The select on sockets is implemented within networking code.
Using the same mechansim as the way select is implemented for devices.   But
issues related to select on socket has nothing to do with individual device
driver select support.  Furthermore, there is no select primitives for
network device drivers.  They are for generic I/O drivers.  The confusion is
understandable, but there is a fine point here that needs to be considered.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: taskPrioritySet from within interrupt
Date: Mon, 8 Apr 2002 16:11:55 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub48v6ouqaiof6@corp.supernews.com>
References: <Pine.GSO.4.43.0204081354360.24770-100000@mlgw069.uk.lucent.com>
I am not sure about "immediately", but when ISR returns in your case, the
task B will be scheduled before task A.  And that is probably the desired
effect right?
I can't say "immediately", because it depends on various cases.  Kernel work
queue may get involved in case of nested interrupts and in those cases the
end result for you would be the same, but with a little more delay.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: tutorial recommendations for newbie?
Date: Fri, 5 Apr 2002 13:36:38 -0500
From: "Laszlo G. Szijarto" <lszijarto@mrdoc.cc>
Organization: NASA Glenn Research Center
Message-ID: <a8kqru$sjt$1@sulawesi-fi.lerc.nasa.gov>
Hello, Everyone,
Thanks you in advance for you help.
I'm very new to VxWorks (5.3 Solaris development host, PPC604 target).
Could anyone recommend a good tutorial, especially on multitasking,
semaphores,
interprocess communications, etc. -- for someone who hasn't done a great
deal of
multithreaded programming and doesn't know what a semaphore is.  I'm reading
the
WindRiver "Programmer's Guide" -- but the information goes over my head.  No
examples in that guide.  No basic description of fundamental concepts.
Plus, my company can't afford to send me to WindRiver school right now.
Thank you very much,
Laszlo
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: tutorial recommendations for newbie?
Date: Mon, 08 Apr 2002 23:51:09 GMT
From: nunya@damn.business.com (Bruce)
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <3cb22c53.3451212@news.kc.sbcglobal.net>
References: <a8kqru$sjt$1@sulawesi-fi.lerc.nasa.gov>
In comp.os.vxworks
"Laszlo G. Szijarto" <lszijarto@mrdoc.cc> wrote:
>I'm very new to VxWorks (5.3 Solaris development host, PPC604 target).
>
>Could anyone recommend a good tutorial, especially on multitasking,
>semaphores,
>interprocess communications, etc. -- for someone who hasn't done a great
>deal of
>multithreaded programming and doesn't know what a semaphore is.  I'm reading
>the
>WindRiver "Programmer's Guide" -- but the information goes over my head.  No
>examples in that guide.  No basic description of fundamental concepts.
Try this for a start:
http://www.rt.db.erau.edu/experiments/vx/toc/TableOfContents.html
>Plus, my company can't afford to send me to WindRiver school right now.
You can learn everything they teach in that school much cheaper.  I would
recommend the book MicroC/UCOS-II by LaBrosse.  Look at www.ucos-ii.com.
The fundamentals of any RTOS are the same.  You can get this book with the
full source to UCOS-II for around $70.
Bruce
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: 08 Apr 2002 17:28:16 -0700
From: Joe Chung <nospam@nospam.invalid>
Message-ID: <rps7knhww9r.fsf@nospam.invalid>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com> <ub3tvl4o2q327d@corp.supernews.com> <rpsg026vt3j.fsf@nospam.invalid> <ub413qst8426c3@corp.supernews.com> <rpssn65euth.fsf@nospam.invalid> <ub48o4ka4kg97a@corp.supernews.com>
"Hwa Jin Bae" <hjb@pso.com> writes:
> Let me address your points.
>
> Read will not return 0 bytes because it is not EOF.  It will
> block until bytes become available.  If you doubt this, please
> read BSD Unix code.  Just read soreceive() in uipc_socket.  The
> example I explained last time is a case where the lower level
> network stack code tries to inform upper layer code that
> certain events of interest has happened and thus select returns
> to give the users a chance to do something to find out.  Not
> necessary read().
Yes, I agree with all that, and I'm not saying that select + read
will ALWAYS not block.  I'm saying:
  After select, when you have tested conditions for
  timeout/error, then if you test (via FD_ISSET) to see if indeed
  the FD that you are interested in is available for reading or
  writing, and then you proceed to read or write, then it should
  NOT block.
Select should not signal an fd as readable when it is clearly
not.  That would be an incorrect implementation of select.
There other are ways that you can block on read after a select
though, for example, if you have multiple threads waiting on the
same FD and both are awakened by select and one of them steals
the input of the other.  But that's an easily solvable problem.
> But something else.  Read BSD code to see how the protocols
> (TCP, UDP, etc.)  are implemented to allow control inputs like
> this (e.g. tcp_ctlinput).  The intent is to allow select (or
> the act of polling) to return to give users a chance.
>
> In those cases, read() will block because the code at socket
> layer will see that there is nothing to read in the socket
> level queue.  It will do sbwait.  Then wait until something
> becomes available (even 1 byte).
Having the lower TCP layers inform the upper layers of some
"interesting" event is a good thing.  I don't think I'm talking
about this.
If you return from select, and something in readFDS, writeFDS,
exceptFDS (VxWorks doesn't implement this last one) indicates
"readiness" then operation on it should not block.  That
practically defines select().
> The select implement is not incorrect.  It is in accordance
> with the overall design.
Then you're saying that select (properly implemented) can
1. Return no error, and
2. Properly set one or more FD bits (testable via FD_ISSET), and
3. Cause you to block when you read/write on the FD associated
   with that bit that select indicated is ready for read/write?
[ Rest snipped for brevity sake ]
- -jc
- --
(apply 'concat (reverse (list "com"
                              (char-to-string 46) "yahoo"
                              (char-to-string 64) "joechung")))
---------------------------
Newsgroups: comp.os.vxworks
Subject: Samples?
Date: Tue, 09 Apr 2002 01:25:22 GMT
From: "H. E. Taylor" <het@despam.autobahn.mb.ca>
Organization: MTS Internet
Message-ID: <3CB25DBF.D20@despam.autobahn.mb.ca>
Salut,
	Does anybody happen to know if the samples which used to
	be at <ftp://ftp.atd.ucar.edu/pub/vxworks/vx/>, are
	still around somewhere else?
<salut>
- -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: arpAdd Question
Date: Tue, 09 Apr 2002 01:46:57 GMT
From: "spaceman" <swarchitect@mail.com>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <lKrs8.3390$_96.1581381652@newssvr21.news.prodigy.com>
References: <evrq8.2095$KO3.962614520@newssvr14.news.prodigy.com> <2ede7703.0204030450.43c1126b@posting.google.com>
What determines whether or not you can delete an arp entry? If I have an
active connection, it looks like I cannot delete the entry. If my connection
is not active, no packets are flowing, is the arp table automatically
updated? How often does this happen? Can I force an arpDelete by deleting
the route?
"kannan" <kannan@comneti.com> wrote in message
news:2ede7703.0204030450.43c1126b@posting.google.com...
> The strange thing i found out is arpShow works in the  shell.But
> arpAdd doesn't works in the shell.I tried checking the
> target\lib\objPPC860gnuvx there the arpLib.o is missing .
>
> But arpShow and arpAdd works in the simulator i tried checking the
> target\lib\objSIMNTgnuvx which contains arpLib.o.
>
>
>
> solution :
>
> In target\lib\libPPC860gnuvx.a i have extracted the ".o" files
> using the "ar" tool and manually load the arpLib.o into my
> target board through the ld command.Now i was able to do arpAdd
> in my target board.
>
>
> Thanks and Regards,
> Kannan
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How can I watch the stackpointer?
Date: 8 Apr 2002 21:28:57 -0700
From: vijay.peshkar@wipro.com (Vijay Peshkar)
Organization: http://groups.google.com/
Message-ID: <bb8c75e1.0204082028.1ebe6f30@posting.google.com>
References: <3CB18A59.88A64011@stoye.de> <ub3jspico5ap8a@corp.supernews.com>
Hello Martin,
Adding to Hwa Jin's comment, you can write a small routine to check
the content of stack near the limit to check the highest watermark
you have hit. The check can be part of your task switch hook, or a
seperate low(est) priority task. It monitors stack of the task and
if the usage has exceeded a user defined limit, does a user defined
job (intimate user by logging, add some more mem to stack etc.,?).
Have a look at some sample code on posted some time last week.
Regards,
Vijay
"Hwa Jin Bae" <hjb@pso.com> wrote in message news:<ub3jspico5ap8a@corp.supernews.com>...
> During stack initialization the value 0xee is written to all bytes in the
> stack.  Starting from top of stack you can scan for 0xee patterns.  When you
> see values different from 0xee, then that is your highest usage of the
> stack.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: Mon, 8 Apr 2002 21:41:02 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub4s8lb6b443ac@corp.supernews.com>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com> <ub3tvl4o2q327d@corp.supernews.com> <rpsg026vt3j.fsf@nospam.invalid> <ub413qst8426c3@corp.supernews.com> <rpssn65euth.fsf@nospam.invalid> <ub48o4ka4kg97a@corp.supernews.com> <rps7knhww9r.fsf@nospam.invalid>
"Joe Chung" <nospam@nospam.invalid> wrote in message
news:rps7knhww9r.fsf@nospam.invalid...
> Yes, I agree with all that, and I'm not saying that select + read
> will ALWAYS not block.
Good.  Then we agree on that.
> I'm saying:
>   After select, when you have tested conditions for
>   timeout/error, then if you test (via FD_ISSET) to see if indeed
>   the FD that you are interested in is available for reading or
>   writing, and then you proceed to read or write, then it should
>   NOT block.
Always?  Sigh... then we disagree.
>
> Select should not signal an fd as readable when it is clearly
> not.  That would be an incorrect implementation of select.
>
That would be an incorrect implementation according to what?  Who?
Please read BSD Unix original implementation of select support for sockets
in the kernel.  The same things are done in both BSD and VxWorks.  What you
call incorrect is in fact what BSD does.  Please go read the relevant
portions of the kernel code, and do some experiments.  You will see that
various events going from low half of protocol code to high half of protocol
code can indeed trigger situations where read selection gets satisfied when
there is 0 byte to read and it is not EOF condition.  When that happens, as
you can read form soreceive code in the kernel, it will block.
> If you return from select, and something in readFDS, writeFDS,
> exceptFDS (VxWorks doesn't implement this last one) indicates
> "readiness" then operation on it should not block.  That
> practically defines select().
>
That seems to be merely your definition.  That clearly is not what the BSD
kernel code or VxWorks kernel code does.  BSD code is available online,
please read and tell me why you think your assertion here is true.  It is
not.
> Then you're saying that select (properly implemented) can
> 1. Return no error, and
> 2. Properly set one or more FD bits (testable via FD_ISSET), and
> 3. Cause you to block when you read/write on the FD associated
>    with that bit that select indicated is ready for read/write?
Yes, as incredible as it might be, that is how the code is written.  Again,
I urge you to read the code.  It is available on gatekeeper
(ftp.gatekeeper.com).  Look for BSD directory.  Or just go to netbsd.org or
freebsd.org web pages.
I am *not* making this up.  :-)
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
Date: 8 Apr 2002 21:55:19 -0700
From: shyang@netease.com (yang)
Organization: http://groups.google.com/
Message-ID: <8446174.0204082055.de038a9@posting.google.com>
References: <8446174.0204070054.5ab18bc3@posting.google.com> <3CB0397A.4967AFE7@bellsouth.net> <8446174.0204071649.3d3e097@posting.google.com> <Xns91EA653EFF37Dborkhuisagerecom@135.7.153.102> <8446174.0204080536.108f1993@posting.google.com> <3CB1EA76.66641640@lmco.com>
Joe Durusau <joseph.a.durusau@lmco.com> wrote in message news:<3CB1EA76.66641640@lmco.com>...
> yang wrote:
> >
> > Johan Borkhuis <borkhuis@agere.com> wrote in message news:<Xns91EA653EFF37Dborkhuisagerecom@135.7.153.102>...
> > > shyang@netease.com (yang) wrote:
> > >
> > > > I have directly   connected to the host ,also connected to the host by
> > > > hub. The question always is same.  I used class C addressing to
> > > > connect a class C addressing host. Class A /B just like this.
> > >
> > > OK, then now the question for more information: what are the IP addresses
> > > of your target, your host, the subnetmasks on both, etc. So all your
> > > networking details.
> > >
> > > Groeten,
> > >         Johan
> > in next stat I can't connect each other.
> > my target's IP address 172.25.72.1 ,netmask 255.255.0.0
> > my host's IP address 172.25.72.123, netmask 255.255.0.0
> >
> > in next stat I can connect each other
> >
> > my target's IP address 192.0.0.1 ,netmask 255.255.255.0
> > my host's IP address 192.0.0.123, netmask 255.255.255.0
> 	I can't tell you why is doesn't work, since it seems to me
> that it should do so if no gateways are involved, but the
> 172... address is a non-routable address. the 192... address is not,
> at least according to rfc 1597.  If your interconnection is a
> switch or some kind of an intelligent device, the connection won't
> be made because that address is not supposed to pass a gateway.
>
> Speaking only for myself,
>
> Joe Durusau
When I use 172... address I find my network maybe is something wrong.
Because I use ifShow to check my network I find my network doesn't
include the 172... address's information. It is only include 127.0.0.1
address (loc) information.
Why?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: Mon, 8 Apr 2002 22:09:16 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub4ttn2ifjac0f@corp.supernews.com>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com> <ub3tvl4o2q327d@corp.supernews.com> <rpsg026vt3j.fsf@nospam.invalid> <ub413qst8426c3@corp.supernews.com> <rpssn65euth.fsf@nospam.invalid> <ub48o4ka4kg97a@corp.supernews.com> <rps7knhww9r.fsf@nospam.invalid>
BTW,
> (apply 'concat (reverse (list "com"
>                               (char-to-string 46) "yahoo"
>                               (char-to-string 64) "joechung")))
{char*b="uwo@cfb.pbz";int
a,i;for(i=0,a=~*b++;i<11;i++,a=~*b++)putchar(~a-1/(~(a|32)/13*2-11)*13);}
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How can I watch the stackpointer?
Date: Mon, 8 Apr 2002 22:35:40 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub4vf2fs79el3e@corp.supernews.com>
References: <3CB18A59.88A64011@stoye.de> <ub3jspico5ap8a@corp.supernews.com> <bb8c75e1.0204082028.1ebe6f30@posting.google.com>
The source code for checkStack is included in Tornado.  Look under
Tornado/target/src/usr/usrLib.c
Note the code in there that scans for 0xee.  Not sure if AE does it this
way.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Samples?
Date: 8 Apr 2002 22:51:14 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204082151.6fad076c@posting.google.com>
References: <3CB25DBF.D20@despam.autobahn.mb.ca>
Hello,
Try ftp://ftp.atd.ucar.edu/pub/archive/vxworks/vx - that worked for
me, but is very, very slow to respond initially. Once the initial
connection is made it seems OK though...
HTH,
John...
"H. E. Taylor" <het@despam.autobahn.mb.ca> wrote in message news:<3CB25DBF.D20@despam.autobahn.mb.ca>...
> Salut,
> 	Does anybody happen to know if the samples which used to
> 	be at <ftp://ftp.atd.ucar.edu/pub/vxworks/vx/>, are
> 	still around somewhere else?
> <salut>
> -het
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: 08 Apr 2002 23:42:26 -0700
From: Joe Chung <nospam@nospam.invalid>
Message-ID: <rpszo0d74q5.fsf@nospam.invalid>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com> <ub3tvl4o2q327d@corp.supernews.com> <rpsg026vt3j.fsf@nospam.invalid> <ub413qst8426c3@corp.supernews.com> <rpssn65euth.fsf@nospam.invalid> <ub48o4ka4kg97a@corp.supernews.com> <rps7knhww9r.fsf@nospam.invalid> <ub4s8lb6b443ac@corp.supernews.com>
"Hwa Jin Bae" <hjb@pso.com> writes:
> "Joe Chung" <nospam@nospam.invalid> wrote in message
> > I'm saying:
> >   After select, when you have tested conditions for
> >   timeout/error, then if you test (via FD_ISSET) to see if indeed
> >   the FD that you are interested in is available for reading or
> >   writing, and then you proceed to read or write, then it should
> >   NOT block.
>
> Always?  Sigh... then we disagree.
It's ok.  We're just disagreeing. :)
> >
> > Select should not signal an fd as readable when it is clearly
> > not.  That would be an incorrect implementation of select.
> >
>
> That would be an incorrect implementation according to what?  Who?
According to select's own man pages (in the systems that I've
read them), VxWorks, Linux, Solaris, Hpux:
1. They make no mention of select breaking out under the
condition that you spoke of, and
2. Some of them (Linux and Hpux) makes the stronger assertion
that when select() returns no errors and sets the corresponding
FD bit, then read/write operations on that FD will not block.
> Please read BSD Unix original implementation of select support
> for sockets in the kernel.  The same things are done in both
> BSD and VxWorks.  What you call incorrect is in fact what BSD
> does.  Please go read the relevant portions of the kernel code,
> and do some experiments.  You will see that various events
> going from low half of protocol code to high half of protocol
> code can indeed trigger situations where read selection gets
> satisfied when there is 0 byte to read and it is not EOF
> condition.  When that happens, as you can read form soreceive
> code in the kernel, it will block.
So what you're saying is that I can't trust the multiply
documented (they wrote the doc) external interface (they wrote
the code), but have to resort to code-reading below the contract
level.
Now, I'm not so naive as to believe that all docs and
implementations match, but both this doc and this API have been
around for a long time, and both are now in such wide use....
> > If you return from select, and something in readFDS,
> > writeFDS, exceptFDS (VxWorks doesn't implement this last one)
> > indicates "readiness" then operation on it should not block.
> > That practically defines select().
> >
>
> That seems to be merely your definition.  That clearly is not
> what the BSD kernel code or VxWorks kernel code does.  BSD code
> is available online, please read and tell me why you think your
> assertion here is true.  It is not.
It's not my definition.  It's in the man pages, the relevent bit
of which I quoted in my first reply to this thread here.  I wish
life were so convenient that I can just make it up. :)
I only have their man pages to back me up on this.  You have the
source code.  If the implementation doesn't agree with the
contract, then one or the other needs changing, and it's usually
the implementation, unless this is the first couple of drafts of
the contract.
I haven't seen this behavior in the program with selects that I
do, but maybe that's because I don't toggle the interface down
and up or change its MTU in mid-operation...
But I'll take your word for it, and test it to see if I can make
it happen.  If the experiment that I described below is not
correct, I'd appreciate another easy to reproduce example:
So in one of your previous post, you say that I can demonstrate
this behavior in VxWorks by doing the following
1. Open a tcp/ip socket for reading
2. wait on it with select
3. In another task, bring the interface down and then up again
4. At this point the select comes back to the waiting task with
an non-error condition and the FD is set
5. If I read the FD, I would block right?
I can easily test that.
> > Then you're saying that select (properly implemented) can
> > 1. Return no error, and
> > 2. Properly set one or more FD bits (testable via FD_ISSET), and
> > 3. Cause you to block when you read/write on the FD associated
> >    with that bit that select indicated is ready for read/write?
>
> Yes, as incredible as it might be, that is how the code is
> written.  Again, I urge you to read the code.  It is available
> on gatekeeper (ftp.gatekeeper.com).  Look for BSD directory.
> Or just go to netbsd.org or freebsd.org web pages.
Thanks for the pointers.  I've looked at the BSD (as well as
other) source before, when anomalous situations arose.  :)
> I am *not* making this up.  :-)
Nor am I accusing you of that.  It's just, I'm not making it up,
either.
So I do have another question:
As a good programmer, how can one detect and possibly respond to
this siutation, i.e. what error conditions can I check for that
will tell me this condition has happened?
- -jc
- --
(apply 'concat (reverse (list "com"
                              (char-to-string 46) "yahoo"
                              (char-to-string 64) "joechung")))
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: 08 Apr 2002 23:46:02 -0700
From: Joe Chung <nospam@nospam.invalid>
Message-ID: <rpsvgb174k5.fsf@nospam.invalid>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com> <ub3tvl4o2q327d@corp.supernews.com> <rpsg026vt3j.fsf@nospam.invalid> <ub413qst8426c3@corp.supernews.com> <rpssn65euth.fsf@nospam.invalid> <ub48o4ka4kg97a@corp.supernews.com> <rps7knhww9r.fsf@nospam.invalid> <ub4ttn2ifjac0f@corp.supernews.com>
"Hwa Jin Bae" <hjb@pso.com> writes:
> BTW,
>
> > (apply 'concat (reverse (list "com"
> >                               (char-to-string 46) "yahoo"
> >                               (char-to-string 64) "joechung")))
>
> {char*b="uwo@cfb.pbz";int
> a,i;for(i=0,a=~*b++;i<11;i++,a=~*b++)putchar(~a-1/(~(a|32)/13*2-11)*13);}
Damn it, that expression won't eval on my Emacs...
oh wait....  c-c c-r.. cute :)
- -jc
- --
(apply 'concat (reverse (list "com"
                              (char-to-string 46) "yahoo"
                              (char-to-string 64) "joechung")))
---------------------------
Newsgroups: comp.os.vxworks
Subject: mib2 Iftable and END/NPT
Date: Tue, 9 Apr 2002 10:15:27 +0200
From: "Ofer Goren" <ofer_goren@iamba.com>
Organization: Verio
Message-ID: <newscache$gtjaug$i24$1@lnews.actcom.co.il>
- --
- ------------------------
Win2k Sp2
Tornado 2.02 for PPC
Diab 4.4b
Envoy 9.2
- ------------------------
Hi.
When I use manageent to disable/enable a port from the MIB2 ifTable MIB,
does this effect the END/NPT driver? does the driver "know" the status of
the port has changed?
Thanks,
- --
Ofer Goren
Iamba Technologies
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: taskPrioritySet from within interrupt
Date: Tue, 9 Apr 2002 08:33:50 +0100
From: Danny Chapman <dc8@lucent.com>
Organization: Lucent Technologies, Columbus, Ohio
Message-ID: <Pine.GSO.4.43.0204090833120.24770-100000@mlgw069.uk.lucent.com>
References: <Pine.GSO.4.43.0204081354360.24770-100000@mlgw069.uk.lucent.com>
 <ub48v6ouqaiof6@corp.supernews.com>
On Mon, 8 Apr 2002, Hwa Jin Bae wrote:
> I am not sure about "immediately", but when ISR returns in your case, the
> task B will be scheduled before task A.  And that is probably the desired
> effect right?
Yes - thanks for your reassurance.
Cheers - Danny
---------------------------
Newsgroups: comp.os.vxworks
Subject: DHCP - default gateway field
Date: 9 Apr 2002 00:41:04 -0700
From: flander@iskratel.si (Bojan)
Organization: http://groups.google.com/
Message-ID: <960c4df7.0204082341.5e343c02@posting.google.com>
Hello!
I have a problem. I am using dhcp server and vxworks client. I don't
know where to read default gateway address in dhcp_param struct.
    struct dhcp_param  bootParams;
    result = dhcpcBootParamsGet (&bootParams);
    dg = ????
Does anyone know how to read default gateway from struct dhcp_param
(see below).
Thanks!
Bojan
Here are bootparams fields:
struct dhcp_param
    {
    char 	got_option [GOTOPTSIZ];
    char 	msgtype; 		/* DHCP reply or BOOTP reply? */
    char * 	sname; 			/* Host name of DHCP server */
    char * 	temp_sname;    /* Server host name if 'sname' holds
options. */
    char * 	file; 			/* Boot file name */
    char * 	temp_file; 	/* File name if 'file' holds options. */
    char * 	hostname; 		/* Host name of bootstrap server */
    char * 	merit_dump;
    char * 	dns_domain;
    char * 	root_path;
    char * 	extensions_path;
    char * 	nis_domain;
    char * 	nb_scope; 		/* NetBIOS scope */
    char * 	errmsg;
    char * 	nisp_domain; 		/* NIS+ domain name */
    unsigned char 	ip_forward; 	/* Boolean flag */
    unsigned char 	nonlocal_srcroute; 	/* Boolean flag */
    unsigned char 	all_subnet_local; 	/* Boolean flag */
    unsigned char 	mask_discover; 		/* Boolean flag */
    unsigned char 	mask_supplier; 		/* Boolean flag */
    unsigned char 	router_discover; 	/* Boolean flag */
    unsigned char 	trailer; 		/* Boolean flag */
    unsigned char 	ether_encap; 		/* Boolean flag */
    unsigned char 	keepalive_garba; 	/* Boolean flag */
    unsigned char 	nb_nodetype; 		/* NetBIOS node type */
#define BNODE 0x1
#define PNODE 0x2
#define MNODE 0x4
#define HNODE 0x8
    unsigned char 	default_ip_ttl; 	/* time to live (1 - 255) */
    unsigned char 	default_tcp_ttl;
    unsigned short 	bootsize; 		/* bootfile size in 16 bits */
    unsigned short 	max_dgram_size; 	/* max dgram reassembly */
    unsigned short 	intf_mtu; 		/* interface mtu */
    long 	time_offset; 		/* 32 bits integer (network byte order)
 						offset from UTC */
    unsigned long 	lease_origin; 		/* DHCP lease start time */
    unsigned long 	lease_duration; 	/* DHCP lease duration */
    unsigned long 	dhcp_t1;
    unsigned long 	dhcp_t2;
    unsigned long 	mtu_aging_timeout; 	/* 32 bit unsigned integer */
    unsigned long 	arp_cache_timeout;
    unsigned long 	keepalive_inter;
    struct u_shorts * 	mtu_plateau_table; 	/* array of 16 bit integers
*/
    struct in_addr 	server_id; 		/* DHCP server's IP address */
    struct in_addr 	ciaddr; 		/* Client's current address */
    struct in_addr 	yiaddr; 		/* Client's assigned address */
    struct in_addr 	siaddr; 		/* Address of (tftp) server */
    struct in_addr 	giaddr; 		/* Address of relay agent */
    struct in_addr * 	subnet_mask;
    struct in_addr * 	swap_server;
    struct in_addr * 	brdcast_addr;
    struct in_addr 	router_solicit;
    struct in_addrs * 	router;
    struct in_addrs * 	time_server;
    struct in_addrs * 	name_server;
    struct in_addrs * 	dns_server; 	/* DNS server */
    struct in_addrs * 	log_server;
    struct in_addrs * 	cookie_server;
    struct in_addrs * 	lpr_server;
    struct in_addrs * 	impress_server;
    struct in_addrs * 	rls_server; 	/* Resource Location Server */
    struct in_addrs * 	policy_filter;
    struct in_addrs * 	static_route;
    struct in_addrs * 	nis_server;
    struct in_addrs * 	ntp_server;
    struct in_addrs * 	nbn_server; 	/* NetBIOS name server */
    struct in_addrs * 	nbdd_server; 	/* NetBIOS dgram distrib server
*/
    struct in_addrs * 	xfont_server; 	/* X font erver */
    struct in_addrs * 	xdisplay_manager; 	/* X display manager */
    struct in_addrs * 	nisp_server; 	/* NIS+ server */
    struct in_addrs * 	mobileip_ha; 	/* Mobile IP Home Agent */
    struct in_addrs * 	smtp_server;
    struct in_addrs * 	pop3_server;
    struct in_addrs * 	nntp_server;
    struct in_addrs * 	dflt_www_server;
    struct in_addrs * 	dflt_finger_server;
    struct in_addrs * 	dflt_irc_server;
    struct in_addrs * 	streettalk_server;
    struct in_addrs * 	stda_server; 	/* StreetTalk Directory
Assistance */
    struct vendor_list * vendlist; 	/* Vendor-specific information */
    };
---------------------------
Newsgroups: comp.os.vxworks
Subject: How to send keystrokes to the keyboard ring buffer
Date: Tue, 9 Apr 2002 10:26:41 +0200
From: "Romano Signorelli" <removeunderlines-s_i_g_n_o_r_e_l_l_i@gefran.com>
Organization: Centro Servizi Interbusiness
Message-ID: <a8u8ju$l13$1@fe2.cs.interbusiness.it>
Hello.
I would send virtual keystrokes to the system.
The keystrokes codes are read from a stream.
The target: use the standard (PC) keyboard and the virtual keyboard,
simultaneously.
How can I send arbitrary keystrokes to the standard keyboard device driver?
Note: my BSP is for a x86 machine.
Thanks in advance, bye.
Romano Signorelli
---------------------------
Newsgroups: comp.os.vxworks
Subject: tNetTask exception problem on continuous TCP socket write function
Date: Mon, 8 Apr 2002 13:40:28 +0800
From: "Clark" <jyliang@ms10.hinet.net>
Organization: DCI HiNet
Message-ID: <a8rajl$jca@netnews.hinet.net>
Dear All,
I got tNetTask exception problem on continuous TCP socket write function.
If I put two or more TCP socket write function into tcpServerWorkTask()
(the demo code in vxWorks programmer's guide, I add a extra write)
,the tNetTask will got the excpetion, I extract the error message here
- ---------------------------------
Data abort
Exception address:0x00079a48
Current Processor Status Register:0x20000013
Task:0x3b9744 "tNetTask"
- ---------------------------------
0x00079478 -- 0x000795ec == _cksum
Now, I avoid this problem by checking the size of TCP send queue.
if the TCP send Qeuen = 0, the following write function gets no problem.
if TCP send Qeuen > 0, the exception above will be generated.
Any one knows the solution?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Why I can't connect to 172.16.25.18 /255.255.0.0
Date: Tue, 09 Apr 2002 06:25:20 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: BELLSOUTH.net
Message-ID: <3CB2C190.A644F31C@bellsouth.net>
References: <8446174.0204070054.5ab18bc3@posting.google.com> <3CB0397A.4967AFE7@bellsouth.net> <8446174.0204071649.3d3e097@posting.google.com> <Xns91EA653EFF37Dborkhuisagerecom@135.7.153.102> <8446174.0204080536.108f1993@posting.google.com> <3CB1EA76.66641640@lmco.com> <8446174.0204082055.de038a9@posting.google.com>
yang wrote:
> Joe Durusau <joseph.a.durusau@lmco.com> wrote in message news:<3CB1EA76.66641640@lmco.com>...
> > yang wrote:
> > >
> > > Johan Borkhuis <borkhuis@agere.com> wrote in message news:<Xns91EA653EFF37Dborkhuisagerecom@135.7.153.102>...
> > > > shyang@netease.com (yang) wrote:
> > > >
> > > > > I have directly   connected to the host ,also connected to the host by
> > > > > hub. The question always is same.  I used class C addressing to
> > > > > connect a class C addressing host. Class A /B just like this.
> > > >
> > > > OK, then now the question for more information: what are the IP addresses
> > > > of your target, your host, the subnetmasks on both, etc. So all your
> > > > networking details.
> > > >
> > > > Groeten,
> > > >         Johan
> > > in next stat I can't connect each other.
> > > my target's IP address 172.25.72.1 ,netmask 255.255.0.0
> > > my host's IP address 172.25.72.123, netmask 255.255.0.0
> > >
> > > in next stat I can connect each other
> > >
> > > my target's IP address 192.0.0.1 ,netmask 255.255.255.0
> > > my host's IP address 192.0.0.123, netmask 255.255.255.0
> >       I can't tell you why is doesn't work, since it seems to me
> > that it should do so if no gateways are involved, but the
> > 172... address is a non-routable address. the 192... address is not,
> > at least according to rfc 1597.  If your interconnection is a
> > switch or some kind of an intelligent device, the connection won't
> > be made because that address is not supposed to pass a gateway.
> >
> > Speaking only for myself,
> >
> > Joe Durusau
>
> When I use 172... address I find my network maybe is something wrong.
> Because I use ifShow to check my network I find my network doesn't
> include the 172... address's information. It is only include 127.0.0.1
> address (loc) information.
> Why?
Sounds like an arp failure.  Can you sniff the network?  That would be
the best thing to do, that way you could see what is happening when one
host or the other tries to ping the other or the one.  You might also try
setting up two (non-vxWorks) hosts in the net with 172... addresses and see
whether they can talk to each other.
Speaking only for myself,
Joe Durusau
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Tue Apr  9 04:15:05 2002
From: Ilia Bosis <Ilia_Bosis@packetlight.com>
Date: Tue Apr  9 04:15:08 PDT 2002
Subject: RE: dynamic allocation in vxworks
> Submitted-by vxwexplo-errs@csg.lbl.gov  Mon Apr  8 23:52:30 2002
> Submitted-by: Shlomo Katz <shlomok@rit.co.il>
>
On defrag, the short answer is NO.
Defragmenting the memory as it's done with the disks, is unpractical,
because it imply moving the memory blocks around that would render ALL the
pointers to the moved blocks invalid.
As it's impossible in most cases to recognize ALL the pointers to the
specific block, it's better not to move memory blocks at all.
So the only practical way is to avoid the memory fragmentation in the first
place.
Unfortunately, the standard VxWorks allocator has a BAD fragmentation
characteristics (i.e. it fragments a lot).
The options available to deal with this problem are:
-- Replace the standard VxWorks allocator with something better. Some time
ago there was a discussion here about the VxWorks allocator and it's
alternatives. The Doug Lea allocator is reported to provide good results,
it's ported to VxWorks and is available for free download.  Search the
comp.os.vxworks on DejaNews (or it's Google now ?) for "malloc",
"allocation" or "Doug Lea" for details.
-- Allocate some memory chunk once, at start-up and run another allocator
inside it. You can create separate memory chunks for each block size, thus
reducing the job to the allocation of the same-size blocks. In that case the
fragmentation just don't happens.
As an added bonus You get far more predictable behavior (in terms of
"malloc" and "free" time and the amount of memory required) than for generic
variable-size block allocator.
-- Create a number of memory partitions and run the VxWorks allocator inside
each of them.
In fact it's the same solution as above, just You run the VxWorks allocator
instead of Yours own. Compared to the solution above, this require less
work, but yields longer allocation time. Look the memPartLib for details on
memory partitioning.
Hope, this helps.
		Ilia
>
> hi
> while using dynamic allocation, after long run there is a problem of
> memory allocation which can be fixed by running a defrag operation.
> does vxworks has such a module, or other solution?
>
> thanks
> shlomi
--------------------------------------------
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 Apr  9 12:19:21 2002
From: "DAlessandro, Larry (GEAE)" <larry.dalessandro@ae.ge.com>
Date: Tue Apr  9 12:19:25 PDT 2002
Subject: vxgdb, RPC, VxWorks 5.2
Hello,
This didn't seem to make it the first time, from what I could see, so if its
already out there, my apologies.
This is a real puzzler for me, hopefully someone really up on vxgdb has a clue
they're willing to share with me.
In order to get my target processors - Mot 177's-68060's to conform to the new
plant lan IP schema, I had to reassign their IP addresses, and change the subnet
mask.  I have an HP workstation with 2 lan cards in it. One card is on the plant
lan, the other is on a lan with just the first target processor on it. The other
targets boot through the first processor using the backplane lan.
Now that I've made the changes, all of the processors still download their
kernels from the workstation, all of the interprocess communication stuff works,
smNetShow shows everything to be in the right status and in general all's right
with the world. My application code downloads, runs and communicates back to the
workstation just fine.
Except - vxgdb no longer works with the hostnames. If I type in the target
address in IP notation it works. i.e. if I start the debugger and type "target
VxWorks simnode" I get a RPC_timeout error complaining about the portmapper. If
I type in "target vxworks 3.86.2.225" it connects and works fine.
The only thing that's really different is that my subnet mask is much different
i.e. it was  0xfffffc00 and now its 0xfffffff0, still within the same 3.86.x.x
range.
I'm also running Crosswind under the Tornado launcher and that works fine with
my power PC cards. Unfortunately my legacy 5.2 systems aren't going to be
upgraded any time soon.
Before I spend way too much time trying to figure this out on my own, can anyone
please provide some insight?
Thanks
Larry
larry.dalessandro@ae.ge.com
Larry D'Alessandro
e GE Aircraft Engines
1000 Western Avenue
MZ14008
Lynn, MA 01910
ph 781-594-1852 / fax 781-594-4703
e-mail larry.dalessandro@ae.ge.com
From vxwexplo-errs@csg.lbl.gov  Wed Apr 10 04:03:26 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Wed Apr 10 04:03:29 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Wed Apr 10 04:03:20 PDT 2002
        Subject: Re: tracking socket() in running time.
        Subject: Re: How to send keystrokes to the keyboard ring buffer
        Subject: Re: Senior Embedded Systems Developer
        Subject: TCP Stream Socket send buffer in VxWorks v5.4
        Subject: Problem when using cout << long-long-var
        Subject: Re: Compiling GNU code for VxWorks AE
        Subject: sysClkRateSet
        Subject: format of vxWorks exe image for x86 architecure.
        Subject: Re: Problem when using cout << long-long-var
        Subject: Re: Senior Embedded Systems Developer
        Subject: Re: Problem when using cout << long-long-var
        Subject: INTEL 8250 UART
        Subject: Re: Corrupted Interface Flags?
        Subject: Why do the functions: rawIpLibInit( ) and rawLibInit( ) always return error?
        Subject: Re: Problem when using cout << long-long-var
        Subject: Re: dynamic allocation in vxworks
        Subject: Re: The drivers for windML is for what purpose?
        Subject: Re: Error : block too big
        Subject: Using Multiple IP Channels, ports, and addresses.
        Subject: Re: sysClkRateSet
        Subject: Re: INTEL 8250 UART
        Subject: SSL for vxWorks
        Subject: Re: How to set TIMEZONE? Support for timezones in localtime?
        Subject: Re: INTEL 8250 UART
        Subject: Re: TCP Stream Socket send buffer in VxWorks v5.4
        Subject: Re: How to set TIMEZONE? Support for timezones in localtime?
        Subject: RESUME: C/C++, Tornado/VxWorks, TCP/IP, Real-time embedded (Control) systems
        Subject: Re: Forcing a flush over NFS
        Subject: Re: DosFs2 performance
        Subject: Re: problem with select?
        Subject: Re: Corrupted Interface Flags?
        Subject: please help: block device driver stuck
        Subject: Re: How to set TIMEZONE? Support for timezones in localtime?
        Subject: Re: Problem when using cout << long-long-var
        Subject: Set IP_TOS won't work for for TCP handshake packet
        Subject: Re: problem with select?
        Subject: Re: Tornado 3 - is it GDB ?
        Subject: SimNT and WindML
        Subject: Initialization string for an END driver
        Subject: question: symbol file of bootrom and vxworks
        Subject: Re: Problem when using cout << long-long-var
        Subject: Re: Initialization string for an END driver
        Subject: No SockAddr struct following RTM_NEWADDR mesg!!!
        Subject: SNTP/NTP
        Subject: Re: problem with select?
        Subject: Re: Problem when using cout << long-long-var
        Subject: Atomic counter
        Subject: timex & clock
        Subject: Re: Atomic counter
        Subject: Re: SimNT and WindML
        Subject: Re: Atomic counter
        Subject: Re: format of vxWorks exe image for x86 architecure.
        Subject: Instrumentation and Logging in WindView
        Subject: Re: Problem when using cout << long-long-var
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: tracking socket() in running time.
Date: Tue, 9 Apr 2002 13:43:38 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb2d3e1@brateggebdc5.br-automation.co.at>
References: <317b63da.0204081430.52540885@posting.google.com>
Hi,
if you just need if for testing a downloadable application, you may be able
to tweak the symbol table before downloading the application.
Look the documentation for symLib for details.
You will also need symbol table synchronization.
hth
Werner
"xukaih" <xukaih@yahoo.ca> wrote in message
news:317b63da.0204081430.52540885@posting.google.com...
> Hi *
> I have an interesting requirement:
>
> There is a lot of application call socket() right now,
> what I intended to do is adding some printf() info before
> each socket() is called.
>
> But there is too much applications call socket(),
> impossible for me to change each of them. Is there any
> way I can add those those print information based on conditions
> 1> without changing application
> 2> don't have vxWorks socket() source code.
>
> Maybe it is impossible to do so, anyhow I will ask.
>
> Regards,
> kai
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to send keystrokes to the keyboard ring buffer
Date: Tue, 9 Apr 2002 13:47:45 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb2d4d8$1@brateggebdc5.br-automation.co.at>
References: <a8u8ju$l13$1@fe2.cs.interbusiness.it>
Hi,
you will probably want to write a new device driver (character device) that
combined the two input streams.
Use this one as the global STDIN and STDOUT.
hth
Werner
"Romano Signorelli" <removeunderlines-s_i_g_n_o_r_e_l_l_i@gefran.com> wrote
in message news:a8u8ju$l13$1@fe2.cs.interbusiness.it...
> Hello.
>
> I would send virtual keystrokes to the system.
> The keystrokes codes are read from a stream.
>
> The target: use the standard (PC) keyboard and the virtual keyboard,
> simultaneously.
>
> How can I send arbitrary keystrokes to the standard keyboard device
driver?
>
> Note: my BSP is for a x86 machine.
>
> Thanks in advance, bye.
> Romano Signorelli
>
>
---------------------------
Newsgroups: comp.os.qnx,comp.os.unix,comp.os.vxworks,comp.sys.arm,comp.sys.m68k
Subject: Re: Senior Embedded Systems Developer
Date: Tue, 09 Apr 2002 11:53:11 GMT
From: Kenneth Porter <ken.blacklist@sewingwitch.com>
Organization: http://www.sewingwitch.com/ken/
Message-ID: <Xns91EB31B2A91AEshivawellcom@64.164.98.29>
References: <uq7s8.246487$q2.27942@sccrnsc01> <3CB1B76E.A6DFB516@gv.net>
Reply-To: ken@sewingwitch.com
"Michael R. Kesti" <mkesti@gv.net> wrote in news:3CB1B76E.A6DFB516@gv.net:
> Imagine what this newsgroup would become if everybody who qualified used
> it as their personal work wanted forum.  Please refrain from doing so!
Better to post answers to other's questions, and post the job-wanted ads in
the groups dedicated to that purpose. You can then point back at your
answers as a demonstration of your competence.
- --
Kenneth Porter
http://www.sewingwitch.com/ken/
---------------------------
Newsgroups: comp.os.vxworks
Subject: TCP Stream Socket send buffer in VxWorks v5.4
Date: 9 Apr 2002 05:17:22 -0700
From: Jeffrey.Steinsnyder@L-3Com.com (Jeff Steinsnyder)
Organization: http://groups.google.com/
Message-ID: <ba563fa9.0204090417.2adf065a@posting.google.com>
Is there a way to check the size of the available space in the TCP
socket send buffer before writing to it? - so that the write function
guaranteed the space is available for a complete message buffer. The
objective of this check is to minimize the socket blocking time.
Thank you very much for the input or any suggestions on the subject,
Jeff Steinsnyder.
---------------------------
Newsgroups: comp.os.vxworks,gnu.gcc.help,gnu.g++.help
Subject: Problem when using cout << long-long-var
Date: Tue, 9 Apr 2002 15:25:02 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a8umgh$vbb7v$1@ID-79865.news.dfncis.de>
=========================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : ccsimpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=========================================================
Project Type : bootable VxWorks image (custom configured)
=========================================================
I have a problem when using
 cout << long-long-var
|| ###### C++-code : BEGIN ######
// file.cpp
// Fragment
#include "iostream"
long long var;
  cout << var << endl;
|| ###### C++-code : END ########
|| ###### Compilation : BEGIN ######
// Fragment
ingw32\lib\crt1.o \
 dataSegPad.o partialImage.o ctdt.o -o vxWorks
partialImage.o: In function `_tff':
\wpwr\host\src\gnu.simpc.cpp\gcc\cp\tinfo2.cc(.text+0x1e90): undefined reference to `ostream::operator<<(long long)'
make: *** [vxWorks] Error 0x1
|| ###### Compilation : END ########
|| ###### iostream.h : BEGIN ######
// Fragment
    ostream& operator<<(long n);
    ostream& operator<<(unsigned long n);
#if defined(__GNUC__)
    __extension__ ostream& operator<<(long long n);
    __extension__ ostream& operator<<(unsigned long long n);
#endif
|| ###### iostream.h : END ########
Questions.
  1. Why does 'operator<<(long long n)'  depend on 'if defined' ?
     For instance, 'operator<<(long n)' doesn't depend on that.
  2. May/can/should/must I add __GNUC__ to the compilation option?
  3. What does __extension__ mean ?
- --
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Compiling GNU code for VxWorks AE
Date: Tue, 9 Apr 2002 14:36:32 +0200
From: "Arcor News" <dont_spam_christof.wehner@nospam.arcor.de>
Organization: Arcor
Message-ID: <a8uo0u$26v$1@newsread1.arcor-online.net>
References: <55aab3a9.0204081249.19f8ad52@posting.google.com>
Hi,
you need to run the same configure script, with an additional option
specifying the target: --target=ppc-wrs-vxworks or the like. see configure's
docs for more information.
Christof
"Venu Madhav Padakanti" <venu_padakanti@yahoo.com> schrieb im Newsbeitrag
news:55aab3a9.0204081249.19f8ad52@posting.google.com...
> I am trying to build the GNU tools flex (which in turn needs bison)
> for the VxWorks. I am using Tornado 3.1 and VxWorks AE 1.1
> environment.
>
>     In the UNIX and also in Cygwin on PC's world I run a script
> configure to set up/generate the Makefiles and then do a make to build
> the appropriate libraries and executables.
>
>     Can someone share their knowledge about porting these onto
> VxWorks. I am trying to look for any documentation or any help in that
> direction.
>
>     Appreciate any kind of help on that.
>
> Thanks
> ..venu
---------------------------
Newsgroups: comp.os.vxworks
Subject: sysClkRateSet
Date: Tue, 9 Apr 2002 16:15:12 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a8upej$vk6lv$1@ID-79865.news.dfncis.de>
=========================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : ccsimpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=========================================================
Project Type : bootable VxWorks image (custom configured)
=========================================================
sysClkRateSet(1000000) returns ERROR.
From the sysClkRateSet() description  :
- -----------------------------------------
RETURNS
  OK, or ERROR if the tick rate is invalid or the timer cannot be set.
- -----------------------------------------
1. Can we know what is a reason for ERROR (for instance, via errno)?
2. Can we know what we may set using sysClkRateSet() ?
- --
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: format of vxWorks exe image for x86 architecure.
Date: Tue, 9 Apr 2002 14:28:08 +0100
From: "Paul Madle" <madlep@logica.com>
Organization: Logica UK Ltd
Message-ID: <1018358891.867216@ernani.logica.co.uk>
This is a multi-part message in MIME format.
- ------=_NextPart_000_001A_01C1DFD2.C5229A30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have been attempting to perform a CRC check of an executable vxWorks =
image as part of the images execution by comparing the CRC before and =
during execution.=20
The CRC comparison fails because the image is not entirely static during =
execution. I therefore need to know the format of a vxworks image on an =
x86 architecture.=20
Having looked at the programmers guide (5.4 page 450) and the map file ( =
using -M linker flag ), I have concluded that the image is split into =
these chunks:=20
00000000 00080568 2** 3d .text=20
00000000 00014540 2** 3d .data=20
00000000 0029b960 2** 3d .bss=20
0029b960 00002490 2** 3d COMMON=20
(taken from map file)=20
after further analysis, I've found that the executable code is found in =
the ".text" section which is found after the "COMMON" section.=20
In essence, I beleive that the executable file looks like this:=20
- ------------- @ offset 0x0 from file beginning=20
| COMMON |=20
- ------------- @ offset 0x2490 from file beginning=20
| .text |=20
- -------------=20
: :=20
: :=20
Most of this ".text" section appears to be the same both before and =
during execution. However The last part of the .text section changes =
during execution and my CRC therefore fails.=20
Its possible I'm not finding the size of the ".text" section correctly. =
If anyone knows how you go about finding the size of this section, =
please help!=20
Any information of the format of a vxworks executable image on an x86 =
architecture would be useful.=20
Thanks,
Paul.
- ------=_NextPart_000_001A_01C1DFD2.C5229A30
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 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<P class=3Dpost>I have been attempting to perform a CRC check of an =
executable=20
vxWorks image as part of the images execution by comparing the CRC =
before and=20
during execution. <BR>The CRC comparison fails because the image is not =
entirely=20
static during execution. I therefore need to know the format of a =
vxworks image=20
on an x86 architecture. <BR><BR>Having looked at the programmers guide =
(5.4 page=20
450) and the map file ( using -M linker flag ), I have concluded that =
the image=20
is split into these chunks: <BR><BR>00000000 00080568 2** 3d .text =
<BR>00000000=20
00014540 2** 3d .data <BR>00000000 0029b960 2** 3d .bss <BR>0029b960 =
00002490=20
2** 3d COMMON <BR><BR>(taken from map file) <BR><BR>after further =
analysis, I've=20
found that the executable code is found in the ".text" section which is =
found=20
after the "COMMON" section. <BR><BR>In essence, I beleive that the =
executable=20
file looks like this: <BR><BR>------------- @ offset 0x0 from file =
beginning=20
<BR>| COMMON | <BR>------------- @ offset 0x2490 from file beginning =
<BR>| .text=20
| <BR>------------- <BR>: : <BR>: : <BR><BR>Most of this ".text" section =
appears=20
to be the same both before and during execution. However The last part =
of the=20
.text section changes during execution and my CRC therefore fails. =
<BR><BR>Its=20
possible I'm not finding the size of the ".text" section correctly. If =
anyone=20
knows how you go about finding the size of this section, please help!=20
<BR><BR>Any information of the format of a vxworks executable image on =
an x86=20
architecture would be useful. <BR><BR>Thanks,</P>
<P class=3Dpost>&nbsp;</P>
<P class=3Dpost>Paul.</P></FONT></DIV></BODY></HTML>
- ------=_NextPart_000_001A_01C1DFD2.C5229A30--
---------------------------
Newsgroups: comp.os.vxworks,gnu.gcc.help,gnu.g++.help
Subject: Re: Problem when using cout << long-long-var
Date: 9 Apr 2002 13:34:52 GMT
From: =?iso-8859-1?Q?Andr=E9_P=F6nitz?= <poenitz@gmx.de>
Organization: Chemnitz University of Technology
Message-ID: <a8uqls$dsu$2@narses.hrz.tu-chemnitz.de>
References: <a8umgh$vbb7v$1@ID-79865.news.dfncis.de>
Followup-To: gnu.gcc.help
In gnu.g++.help Alex Vinokur <alexvn@bigfoot.com> wrote:
> Questions.
>   1. Why does 'operator<<(long long n)'  depend on 'if defined' ?
>      For instance, 'operator<<(long n)' doesn't depend on that.
'long' is standardized, 'long long' is a GNU extension.
>   2. May/can/should/must I add __GNUC__ to the compilation option?
I guess so.
>   3. What does __extension__ mean ?
From 'info gcc':
[...]
   Other C compilers won't accept these alternative keywords; if you
want to compile with another compiler, you can define the alternate
keywords as macros to replace them with the customary keywords.  It
looks like this:
     #ifndef __GNUC__
     #define __asm__ asm
     #endif
   `-pedantic' and other options cause warnings for many GNU C
extensions.  You can prevent such warnings within one expression by
writing `__extension__' before the expression.  `__extension__' has no
effect aside from this.
Andre'
- --
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)
---------------------------
Newsgroups: comp.os.qnx,comp.os.unix,comp.os.vxworks,comp.sys.arm,comp.sys.m68k
Subject: Re: Senior Embedded Systems Developer
Date: Tue, 09 Apr 2002 13:36:54 GMT
From: "John Anderson" <fly_135@hotmail.com>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <W7Cs8.2151$CA6.169373@newsread1.prod.itd.earthlink.net>
References: <uq7s8.246487$q2.27942@sccrnsc01> <3CB1B76E.A6DFB516@gv.net> <Xns91EB31B2A91AEshivawellcom@64.164.98.29>
"Kenneth Porter" <ken.blacklist@sewingwitch.com> wrote in message
news:Xns91EB31B2A91AEshivawellcom@64.164.98.29...
> "Michael R. Kesti" <mkesti@gv.net> wrote in news:3CB1B76E.A6DFB516@gv.net:
>
> > Imagine what this newsgroup would become if everybody who qualified used
> > it as their personal work wanted forum.  Please refrain from doing so!
>
> Better to post answers to other's questions, and post the job-wanted ads
in
> the groups dedicated to that purpose. You can then point back at your
> answers as a demonstration of your competence.
Or even post answers to peoples questions and put your contracting
availability in your sig.  Seems a bit odd that the guy has so much embedded
experience but doesn't know the answer to a single question here.
---------------------------
Newsgroups: comp.os.vxworks,gnu.gcc.help,gnu.g++.help
Subject: Re: Problem when using cout << long-long-var
Date: 09 Apr 2002 15:29:37 +0200
From: Maurizio Loreti <mlonews@pd.infn.it>
Organization: I.N.F.N. Padova - CDF/CMS cluster
Message-ID: <8ad6x9yp8e.fsf@mlinux.pd.infn.it>
References: <a8umgh$vbb7v$1@ID-79865.news.dfncis.de>
"Alex Vinokur" <alexvn@bigfoot.com> writes:
> =========================================================
> Tornado  : Version 2.0.2
> VxWorks  : Version 5.4.2
> BSP      : Version 1.1/1
> Compiler : ccsimpc
>            gcc version egcs-2.90.29 tornado 2.0 980515
>            (egcs-1.0.3 release)
Your compiler is dated May 1998; and has been obsolete since September
1998 (egcs 1.1).  The current release is 3.0.4, with 3.1 due to be
released in mid-April.
> Host     : Windows2000
> Target   : VxSim for Windows (VxWorks target simulator)
> =========================================================
> Project Type : bootable VxWorks image (custom configured)
> =========================================================
>
> I have a problem when using
>  cout << long-long-var
The type "long long" has been introduced in the language with the
ANSI/ISO Standard of end 1998.  I think it was unsupported in egcs
1.0.3.  If you want to use Standard C++ upgrade your compiler; if you
want to use an archaic version, use archaic C++.
>
> || ###### C++-code : BEGIN ######
> // file.cpp
> // Fragment
>
> #include "iostream"
#include <iostream>
> long long var;
>
>   cout << var << endl;
>
std::cout << var << std::endl;
- --
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy          loreti at pd dot infn dot it
---------------------------
Newsgroups: comp.os.vxworks
Subject: INTEL 8250 UART
Date: Tue, 09 Apr 2002 15:49:32 +0100
From: TORRAS =?iso-8859-1?Q?Fr=E9d=E9ric?= - GRE
	<ftorras@grenoble.sema.slb.com>
Organization: SchlumbergerSema
Message-ID: <3CB2FF7C.164C72CE@grenoble.sema.slb.com>
Reply-To: ftorras@grenoble.sema.slb.com
where can i find the driver source code of intel 8250 UART  for VxWorks?
thanks.
F.Torras
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Corrupted Interface Flags?
Date: Tue, 09 Apr 2002 15:08:19 +0100
From: Aidan Kenny <aidank@s3group.com>
Organization: Esat Net Customer
Message-ID: <3CB2F5D3.F748AACA@s3group.com>
References: <99723b54.0204080551.6fb7e3ab@posting.google.com> <ub3jjscom6mm04@corp.supernews.com> <3CB1D5BD.90A72874@s3group.com> <ub3m38ffgpthb7@corp.supernews.com>
This is a multi-part message in MIME format.
- --------------FB13A72E494222EBB19CC459
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
It gets stranger and stranger,
After initialization,
I do
pEnd=endFindByName("mydev",1);
printf("MyFlags = 0x%x\n",pEnd->flags);
The output is MyFlags=0x863 as I expected.
However the flags in ifShow for the same device are:
mydev (unit number 1)
Flags: (0xba7c) DOWN LOOPBACK POINT-TO-POINT MULTICAST ARP RUNNING DEBUG
I've run the printf after the ifShow and the flags are still as expected, i.e.
0x863.
Have I found a bug in ifShow??????
Thanks for any help,
A very confused engineer.
Hwa Jin Bae wrote:
> You are right.  Some flags cannot change via API.  You need to change them
> forcibly.  ifp->if_flags can change directly.
>
> Also, IFF_POINTOPOINT is set in drivers normally, not by the stack code.
> For SLIP, PPP, ULIP, etc. it is set in the drivers themselves, for example.
>
> Typically the setting of things like IFF_POINTOPOINT is done in the attach
> routine of the driver.
>
> IFF_UP, RUNNING, NOTRAILERS, etc. are done for you normally.
>
> --
> Hwa Jin Bae
> mailto:hjb@pso.com
> http://www.pso.com
- --------------FB13A72E494222EBB19CC459
Content-Type: text/x-vcard; charset=us-ascii;
 name="aidank.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Aidan Kenny
Content-Disposition: attachment;
 filename="aidank.vcf"
begin:vcard
n:Kenny;Aidan
tel;work:00-353-1-2911340
x-mozilla-html:FALSE
url:www.s3group.com
org:Silicon and Software Systems (S3);Communications Infrastructure
version:2.1
email;internet:aidank@s3group.com
title:Software Engineer
adr;quoted-printable:;;Whelen House,=0D=0ASouth County Business Park,=0D=0ALeopardstown =0D=0A=0D=0A;Dublin 18;;;Ireland
fn:Aidan Kenny
end:vcard
- --------------FB13A72E494222EBB19CC459--
---------------------------
Newsgroups: comp.os.vxworks
Subject: Why do the functions: rawIpLibInit( ) and rawLibInit( ) always return error?
Date: 9 Apr 2002 07:27:41 -0700
From: liaojiang@21cn.com (Jiang)
Organization: http://groups.google.com/
Message-ID: <238fde0d.0204090627.5029ef3a@posting.google.com>
Hi,
I'm building the standard vxWorks image to download to the target
after the BSP developing. I can download the image to the target via
tftp or ftp. Everything seems to be normal before this.
But when the image start up from the RAM on the target, the
rawIpLibInit() and rawLibInit() always return error. Then the target
will be down when usrNetIfConfig() is called during calling
ifAddrSet() to set the IP address to the Interface.
What's wrong with the image or the hardware?
Any help will be appreciated!
Sincerely,
Liao Jiang
---------------------------
Newsgroups: comp.os.vxworks,gnu.gcc.help,gnu.g++.help
Subject: Re: Problem when using cout << long-long-var
Date: 9 Apr 2002 14:46:30 GMT
From: =?iso-8859-1?Q?Andr=E9_P=F6nitz?= <poenitz@gmx.de>
Organization: Chemnitz University of Technology
Message-ID: <a8uus6$h05$1@narses.hrz.tu-chemnitz.de>
References: <a8umgh$vbb7v$1@ID-79865.news.dfncis.de> <8ad6x9yp8e.fsf@mlinux.pd.infn.it>
In gnu.g++.help Maurizio Loreti <mlonews@pd.infn.it> wrote:
>> I have a problem when using
>>  cout << long-long-var
>
> The type "long long" has been introduced in the language with the
> ANSI/ISO Standard of end 1998.
Could you point me to the relevant section in the Standard please?
Andre'
- --
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dynamic allocation in vxworks
Date: Tue, 09 Apr 2002 14:53:44 -0000
From: <bob@seaweed.com>
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <ub603oqe9j2ke6@news.supernews.com>
On 9 Apr 2002 00:12:01, Shlomo Katz <shlomok@rit.co.il> wrote:
    while using dynamic allocation, after long run there is a problem of
    memory allocation which can be fixed by running a defrag operation.
    does vxworks has such a module, or other solution?
<Commercial plug>
One "other solution" that's available is:
    Seaweed Systems has a written-from-scratch memLib replacement. It
    has all the functionality which Wind River's memLib has...and more!
    It has better fragmentation behavior, memory leak detection,
    sanity checks at malloc/realloc/free time, user-callable memory
    arena sanity checker, constant-time allocation, callbacks for
    various low-memory conditions, and more! A real ginzu knife of an app.
    Please call or email for information:
	bob@seaweed.com
	+1 425.895-1721
</Commercial plug>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: The drivers for windML is for what purpose?
Date: Tue, 09 Apr 2002 15:10:56 GMT
From: "Rob Targosz" <rtargosz@rogers.com>
Message-ID: <4wDs8.28869$Oo1.16415@news02.bloor.is.net.cable.rogers.com>
References: <83f4aa95.0204030716.324ac219@posting.google.com>
In order to get hardware accelerated graphics, sound, etc. you need a driver
for WindML that is specific to the hardware you are using. There are some
generic VESA and VGA mode drivers available, but if you want, say
accelerated lines to draw on your Intel 815 graphics chip, you need the
specific driver. My job is to write these ;-)
"liandongzhang" <liandongzhang@hotmail.com> wrote in message
news:83f4aa95.0204030716.324ac219@posting.google.com...
> May my question is sounded funny:(
>
> I think windML is on the upper level than VxWorks,and sorts of drivers
> is of parts of VxWorks,so driver should independed of WindML.
> I don't know clearly, above is just my idea in the first thought.
> Another question:
> what is the relation between UGL and windML and Zinc?
> I  think Zinc is the upper level application of WindML,but where is
> UGL?
>
> If i want to display some graphic file other than GIF, should i must
> programme the functions that used to manipulate the specific graphic
> file?
> And what i must buy?WIndML UGL Zinc??
>
> Thanks for any reply and it will be appreciated
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Error : block too big
Date: Tue, 09 Apr 2002 15:14:01 GMT
From: "Rob Targosz" <rtargosz@rogers.com>
Message-ID: <ZyDs8.28872$Oo1.17011@news02.bloor.is.net.cable.rogers.com>
References: <a8h5ra$rsbta$1@ID-79865.news.dfncis.de>
I think you are running out of contiguous memory. Try decreasing the stack
size until this goes away.
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a8h5ra$rsbta$1@ID-79865.news.dfncis.de...
> =======================================================
> Tornado  : Version 2.0.2
> VxWorks  : Version 5.4.2
> BSP      : Version 1.1/1
> Compiler : c++simpc
>            gcc version egcs-2.90.29 tornado 2.0 980515
>            (egcs-1.0.3 release)
> Host     : Windows2000
> Target   : VxSim for Windows (VxWorks target simulator)
> =======================================================
>
>
> Running the (very simple) program below causes the 'block too big'
error.block too big
>
> 1. What is wrong here ?
> 2. Does 'VxWorks documentation' hold a response on my question ?
>
> Thanks in advance.
>
>
> || ###### C++-code : BEGIN ######
>
> #include "vxWorks.h"
> #include "ioLib.h"
> #include "stdio.h"
> #include "stdlib.h"
> #include "semLib.h"
> #include "taskLib.h"
>
> #define STACK_SIZE 20000
>
> void func1 (void);
> void progStop (void);
>
> int tid_func1;
>
> SEM_ID semId_M1;
>
> // |||||||||||||||||||||||
> STATUS progStart (void)
> {
>   semId_M1 = semMCreate (  SEM_Q_PRIORITY
>     | SEM_INVERSION_SAFE
>     | SEM_DELETE_SAFE
>     );
>
>
>
>   tid_func1 = taskSpawn (
>    "tfunc1",
>    200,
>    0,
>    STACK_SIZE,
>    (FUNCPTR) func1,
>    0, 0, 0, 0, 0, 0, 0, 0, 0, 0
>    );
>
>   return (OK);
> } // progStart
>
>
>
> // |||||||||||||||||||||||
> void func1 (void)
> {
> }
>
>
>
> // |||||||||||||||||||||||
> void progStop (void)
> {
>   semDelete (semId_M1);
> }
>
>
> || ###### C++-code : END ########
>
>
>
>
> || ====== Running -> Tornado Shell Window : BEGIN ======
>
> -> progStart
> WTX Error 0x100cc (AGENT_RT_ERROR)
> value = -1 = 0xffffffff
> -> progStart
> WTX Error 0x100cc (AGENT_RT_ERROR)
> value = -1 = 0xffffffff
> ->
>
> || ====== Running -> Tornado Shell Window : END ========
>
>
>
>
> || ------ Running -> The Target Simulator Window : BEGIN ------
>
> 0x4b30c08 (tWdbTask): memPartAlloc: block too big - 29344 in partition
0x446298.
>
> || ------ Running -> The Target Simulator Window : END --------
>
>
>
> ====================
>   Alex Vinokur
>     http://up.to/alexvn
>     http://go.to/alexv_math
>     mailto:alexvn@bigfoot.com
>     mailto:alexvn@go.to
>   ====================
>
>
>
>
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Using Multiple IP Channels, ports, and addresses.
Date: 9 Apr 2002 08:19:48 -0700
From: dwh8@yahoo.com (David)
Organization: http://groups.google.com/
Message-ID: <8fe86b76.0204090719.36e6fecb@posting.google.com>
I have an set of applications running on various targets:
2 sets of "Server" applications running on vxworks targets.
A Client application running on a vxworks target.
(all vxworks targets are mv5100 w/ ramix PMC663J dual ethernet addon
cards)
A Client application running on Windoze.
Previously, our servers had one physical IP address which would accept
multiple connections from the windows clients.  The windows clients
are configured to only connect to one port (0x3333) of one destination
IP.
Now, I  am attempting to add "redundant" capabilities to the server
via the two PMC addon ports.
Heres the scenario:
The VxWorks client has dual physical connections to both ports of both
vxworks servers.
vxworks client                   server 1
__________                     __________
|       _|                     |_       |
| ch  1|_+------------+--------+_| ch 1 |
|        |            |        |        |
|       _|            |        |_       |
| ch  2|_+----+-------|--------+_| ch 2 |
|________|    |       |        |________|
              |       |
              |       |
 * win        |       |
 clients      |       |      server 2
 ________     |       |     __________
 |     _|     |       |     |_       |
 |    |_+-    |       |-----+_| ch 1 |
 |      |     |             |        |
 |______|     |             |_       |
              |-------------+_| ch 2 |
                            |________|
Those of you schooled in Socket programming probably see where this is
headed.
The Servers originally had one port (0x3333) bound to the INADDR_ANY
controlled by one task which used "select()" to multiplex request
coming from 1..n win clients connecting to the same IP.
Now, I would like to have a task assigned to each physical channel of
the servers, but I would also like to use the same port on all so that
the windows clients which have hard-coded port numbers don't have to
be recompiled and redistributed in the field.
I have tried binding the sockets to the ipaddresses of the physical
channels, but couldn't get any connections on the PMC channels.  When
I used INADDR_ANY, I was able to connect on all channels, but the
tasks I expected to handle the connection weren't necessarily doing
so. It also looked like the socket() call was always returning the
same socket descriptor: 4.  I have since reduced to one task handling
all connections, but would prefer to have a separate task assigned to
each channel.
I have run into similar problems with the vxworks client.  I have one
task per server that handles failovers between channels.  The task
creates a socket (TCP/ IP) and then connect()s it to the first channel
of it's server.  It then enters a send/recv loop to communicate with
the server.  If at any time during this process the connection fails,
the socket is closed and then a new socket is created and a connection
is attempted to the second channel.  If successful, the communication
loop begins again.
This works fine until I spawn the task to communicate with server two.
 If server two is available things appear to run okay, but if server 2
is disconnected things fall apart.
It appears that the connection on 1 is made, but then when the
connection to 2 is attempted and fails, the subsequent call to close
the socket of server 2 also kills the connection to 1.  Subsequent
sends to 1 then fail.  This sequence repeats until a connection to
server two is restored.
Obviously I am not an experienced socket/tcpip programmer so I'm not
really sure whats up.  I have examined the SO_REUSEADDR option of
setsockopt, but have also read that its use is not recommended.
Any help would be GREATLY appreciated.  If any of this is at all
unclear, please let me know.
Thank you
David Harty
PS. please do not reply to dwh8@yahoo.com  I use that address for
subscribing to like things like the google newsgroups and the only
mail I get there is from newsreader spambots.  If you must contact me
by email, please use vxworks@dharty.REMOVE4SPAM.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: sysClkRateSet
Date: Tue, 9 Apr 2002 17:20:42 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb306c0$1@brateggebdc5.br-automation.co.at>
References: <a8upej$vk6lv$1@ID-79865.news.dfncis.de>
Hi,
from 'config.h', located in $(WIND_BASE)/target/config/simpc:
/* Windows Timers only have a resolution of 1ms, limiting clock rate */
#define SYS_CLK_RATE_MIN  19            /* minimum system clock rate */
#define SYS_CLK_RATE_MAX  1000  /* maximum system clock rate */
#define AUX_CLK_RATE_MIN  2             /* minimum auxiliary clock rate */
#define AUX_CLK_RATE_MAX  1000          /* maximum auxiliary clock rate */
hth
Werner
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a8upej$vk6lv$1@ID-79865.news.dfncis.de...
> =========================================================
> Tornado  : Version 2.0.2
> VxWorks  : Version 5.4.2
> BSP      : Version 1.1/1
> Compiler : ccsimpc
>            gcc version egcs-2.90.29 tornado 2.0 980515
>            (egcs-1.0.3 release)
> Host     : Windows2000
> Target   : VxSim for Windows (VxWorks target simulator)
> =========================================================
> Project Type : bootable VxWorks image (custom configured)
> =========================================================
>
> sysClkRateSet(1000000) returns ERROR.
>
> From the sysClkRateSet() description  :
>
> -----------------------------------------
> RETURNS
>   OK, or ERROR if the tick rate is invalid or the timer cannot be set.
> -----------------------------------------
>
> 1. Can we know what is a reason for ERROR (for instance, via errno)?
> 2. Can we know what we may set using sysClkRateSet() ?
>
>
> --
> ====================
>   Alex Vinokur
>     http://up.to/alexvn
>     http://go.to/alexv_math
>     mailto:alexvn@bigfoot.com
>     mailto:alexvn@go.to
>   ====================
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: INTEL 8250 UART
Date: Tue, 9 Apr 2002 17:22:13 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb3071b$1@brateggebdc5.br-automation.co.at>
References: <3CB2FF7C.164C72CE@grenoble.sema.slb.com>
Hi,
$(WIND_BASE)/target/src/drv/sio/i8250Sio.c
hth
Werner
"TORRAS Frdric - GRE" <ftorras@grenoble.sema.slb.com> wrote in message
news:3CB2FF7C.164C72CE@grenoble.sema.slb.com...
> where can i find the driver source code of intel 8250 UART  for VxWorks?
>
> thanks.
>
> F.Torras
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: SSL for vxWorks
Date: 9 Apr 2002 09:36:48 -0700
From: pepsi_000@hotmail.com (vxJunkie)
Organization: http://groups.google.com/
Message-ID: <676eb679.0204090836.1dfde8e0@posting.google.com>
hi,
We are looking to port open SSL to vxWorks. It will really be helpful
to get the tips and suggestions from all you experts out there.
Thanks,
kumar
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to set TIMEZONE? Support for timezones in localtime?
Date: Tue, 09 Apr 2002 16:50:36 GMT
From: Jon Newbill <JonUN@bitworkssystemsDELETETHIS.com>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <3CB31C42.D25D7C34@bitworkssystemsDELETETHIS.com>
References: <3CB21456.E91B3577@bitworkssystemsDELETETHIS.com> <rpspu19x2ac.fsf@nospam.invalid>
Thanks, I found the putenv and envShow.  It seems to work for the most
part but daylight savings doesn't seem to work.  When I use the string you
suggest below  localtime reports tm_isdst as 0.  Even though daylight
savings should have started 2 days ago.  The documentation doesn't define
the daylight savings start and end formats.  I vaguely remember from other
unix doc that its MMWWHH where MM is month WW is week number and HH is
hour.  But I seem to remember that it always chose the WW Sunday after the
1st monday or something.  Windriver doesn't put in this detail in their
documentation and I'm wondering if they support DST.  Also on other unix
sytems I thought the 2nd <unused> field of TIMEZONE was for the daylight
savings time name.  If  I set TIMEZONE to PST:PDT:480:040102:100102 my
time shifts an hour earlier like I'm suddenly on standard time.  If
anything I would expect it to shift an hour later (spring forward).  I
haven't tried a date before last Sunday yet to see what it does when PST
should be in effect.
Jon
Joe Chung wrote:
> In the doc for ansiTime, you'll see the format for the timezone
> environment variable.  Here's my example:
> /* Note that my daylight savings time start and end are not correct */
> putenv("TIMEZONE=PDT::480:040102:100102");
>
> In the doc for envLib you'll see general info about environments.
>
> -jc
> --
> (apply 'concat (reverse (list "com"
>                               (char-to-string 46) "yahoo"
>                               (char-to-string 64) "joechung")))
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: INTEL 8250 UART
Date: 9 Apr 2002 10:08:53 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204090908.67f518e1@posting.google.com>
References: <3CB2FF7C.164C72CE@grenoble.sema.slb.com>
Hello,
> where can i find the driver source code of intel 8250 UART  for VxWorks?
In your Tornado tree under target/src/drv/sio where all the serial
drivers are located.
HTH,
John...
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: TCP Stream Socket send buffer in VxWorks v5.4
Date: 9 Apr 2002 10:20:07 -0700
From: jzhang@drs.ca (Jason)
Organization: http://groups.google.com/
Message-ID: <e555a185.0204090920.52cdcd02@posting.google.com>
References: <ba563fa9.0204090417.2adf065a@posting.google.com>
Jeffrey.Steinsnyder@L-3Com.com (Jeff Steinsnyder) wrote in message news:<ba563fa9.0204090417.2adf065a@posting.google.com>...
> Is there a way to check the size of the available space in the TCP
> socket send buffer before writing to it? - so that the write function
> guaranteed the space is available for a complete message buffer. The
> objective of this check is to minimize the socket blocking time.
> Thank you very much for the input or any suggestions on the subject,
>
> Jeff Steinsnyder.
Yes, you can check target\h\netLib.h,
by default, tcp_sendspace = 8192, tcp_recvspace = 8192.
cheers
Jason
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to set TIMEZONE? Support for timezones in localtime?
Date: 09 Apr 2002 10:23:37 -0700
From: Joe Chung <nospam@nospam.invalid>
Message-ID: <rpsy9fwyeee.fsf@nospam.invalid>
References: <3CB21456.E91B3577@bitworkssystemsDELETETHIS.com> <rpspu19x2ac.fsf@nospam.invalid> <3CB31C42.D25D7C34@bitworkssystemsDELETETHIS.com>
Jon Newbill <JonUN@bitworkssystemsDELETETHIS.com> writes:
> Thanks, I found the putenv and envShow.  It seems to work for the most
> part but daylight savings doesn't seem to work.  When I use the string you
> suggest below  localtime reports tm_isdst as 0.  Even though daylight
> savings should have started 2 days ago.  The documentation doesn't define
> the daylight savings start and end formats.  I vaguely remember from other
> unix doc that its MMWWHH where MM is month WW is week number and HH is
> hour.  But I seem to remember that it always chose the WW Sunday after the
> 1st monday or something.  Windriver doesn't put in this detail in their
> documentation and I'm wondering if they support DST.  Also on other unix
> sytems I thought the 2nd <unused> field of TIMEZONE was for the daylight
> savings time name.  If  I set TIMEZONE to PST:PDT:480:040102:100102 my
> time shifts an hour earlier like I'm suddenly on standard time.  If
> anything I would expect it to shift an hour later (spring forward).  I
> haven't tried a date before last Sunday yet to see what it does when PST
> should be in effect.
Hmmm, come to think of it, I don't recall being able to get
tm_isdst to ever be non zero either, or to get DST working at all
(lucky for me, the project that I worked on was in the during non
daylight savings time period).
- -jc
- --
(apply 'concat (reverse (list "com"
                              (char-to-string 46) "yahoo"
                              (char-to-string 64) "joechung")))
---------------------------
Newsgroups: comp.os.vxworks
Subject: RESUME: C/C++, Tornado/VxWorks, TCP/IP, Real-time embedded (Control) systems
Date: 9 Apr 2002 10:52:22 -0700
From: bijannazem@hotmail.com (bijan nazem)
Organization: http://groups.google.com/
Message-ID: <18ca8ef6.0204090952.3d9bf845@posting.google.com>
Bijan Nazem
No. 99, Greenwin village Rd.
Toronto, Ontario, M2R 2S4
Tel:(416) 733-2145
BijanNazem@hotmail.com
Objective:
    To obtain a position as an Embedded, real-time software engineer,
    in which I can utilize my present skills and further enhance my
    knowledge with diverse applications.
Education:
    9/93 to 2/96 M.Sc. Degree in Electrical Engineering
                 (Major: Control Eng.)(Isfahan University of
          Technology, Isfahan- Iran) GPA 17.78 out of 20
    9/88 to 2/93 B.Sc. Degree in Electrical Engineering
                (Major: Electronic Eng.)(Shiraz University, Shiraz-
                       Iran)                       GPA 16.89 out of 20
Experiences and technical skills:
Expert at:
     C and C++ programming language                         5 years
     Object oriented programming                            5 years
     VxWorks operating systems (Real-time operating system) 4 years
     Tornado development environment                        4 years
     TCP/IP network programming for Windows NT and VxWorks  4 years
     MVME 162 (Motorola) embedded controller (68k family)   4 years
     Win32 multithread programming                          3 years
     VME bus and multiprocessors environment                4 years
     Device driver for VxWorks (Low-level programming for hardware
      interfacing)                                           4 years
     Serial port communication programming for Windows NT and
      VxWorks                                                4 years
     Control system design and closed loop control systems  5 years
     Real-time control systems                              4 years
     MATLAB and Simulink                                    5 years
     MOORE DCS system (IEC 1131-3)                          3 years
good at:
     Microsoft .NET framework and C# language
     Microsoft Visual C++, MFC, ActiveX, XML and GUI design
     ODBC, SQL and database access using Visual C++
     DSP (TMS 6000 series) assembly language and archetecture
     Windows NT/2000 archetecture and configuration
     Device driver for windows NT using DriverWorks and Softice
     Digital signal processing and filtering
     IEC 1131-3 standard programming language
     Citect (A PC-based SCADA system)
     LabView (G programming)
     PLC GE-Fanuc
Employment and working history:
    4/96 to 2001 IRISA (Industrial Automation and MIS systems
Company),
    Job title: Software Engineer.
     MVME-162 embedded controller (A SBC board made by Motorola)
      configuration and system level programming for VxWorks running
      on that hardware.
     Object oriented device driver for IP ADC, IP DAC and IP-
      Quadrature Modules to provide interface between hardware (I/O)
      and application.
     Design and implementation of 3964 protocol (A character based
      protocol for communicating with Siemens mini-computers and PLCs
      in C++ language for VxWorks and Windows NT (Win32).
     Design and implementation of Modbus on ethernet protocol (an
      industrial network protocol for communication with SCADA
systems)
      in C++ language for VxWorks targets.
     Design and development of some communication tasks for VxWorks
      on one side and LabView (running on Windows NT workstation) on
      the other side using TCP/IP protocol in order to enable computer
      room engineer to set parameters on embedded controllers and see
      real-time data with 1-msec resolution through LabView
application.
     Design and implementation of complicated closed loop control
      systems and digital filters using MATLAB/Simulink and coding
      them in C++ (VxWorks, VME, MVME-162) to implement AGC and
      thickness control system for the hot strip finishing mill of
      Mobarakeh Steel Company (A plant in Isfahan-Iran with 3.5
      million tons per year productivity)
     Writing device driver for VMIVME-5576 (A reflective memory card
      made by VMIC for VME bus)to reading and writing data and
      generating and catching interrupts for VxWorks .
     Writing device driver for VMIPCI-5576 (A reflective memory card
      made by VMIC for PCI bus)to reading and writing data and
      generating and catching interrupts for Windows NT using
      DriverWorks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Forcing a flush over NFS
Date: Tue, 09 Apr 2002 08:21:37 -0400
From: Mike <nospam@broadcom.com>
Organization: Broadcom Corporation -- Irvine, California
Message-ID: <3CB2DCD1.5BDB0434@broadcom.com>
References: <3CB1A571.58DF883D@broadcom.com> <ub3jg4ajorm8bf@corp.supernews.com>
Thanks.  I just noticed that this is an FAQ...sorry for the noise.
Hwa Jin Bae wrote:
> Use ioctl on fd with FIOSYNC.
>
> --
> Hwa Jin Bae
> mailto:hjb@pso.com
> http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: DosFs2 performance
Date: Tue, 9 Apr 2002 20:36:56 +0200
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$k1hbug$015$1@lnews.actcom.co.il>
References: <3ca612ce.1867405@netnews.attbi.com>
Sorry guys for catching up late, just got back from a trip.
It is quite untrue that FAT inherently is an unsafe file system.
Power failure can trash individual files, but to trash the entire
file system calls for real talent, and there is one such tallented
idea that exists in old dosFs (aka what came before DosFs 2.0) -
it alowws to open the RAW device, bypassing al filesystem
safeguards, and that happened to a few customers who generated
file names by concatentating strings device name + file name,
and sometimes the second string would come up empty, so they wrote
over the file system boot nlock. I have generated a patched dosFs1
for some of these customers with the RAW access disabled.
Old dosFs also keeps lots of cached directory entries in RAM,
so a memory curroption could cause the file system to be corrupted,
but this I do not recall being a verified case.
In dosFs2, even when using FAT16 (as opposed to FAT32) structure,
we added backup superblock, up to 32 of them, in order to be able to
recoved even a case of physically damaged sector zero. Also DosFs2 went
through a tough power-fail (or device remival) simulation test, and I still
beleive it is quite resistent to trashing.
I would need much more detail and effort to analyze this specific case
though.
Leonid
- -----
Don't send me anymore SPAM, I got enough of it already, Leonid At BitBand
Dot Com
"David H. Olson" <dcolson@ieee.org> wrote in message
news:3ca612ce.1867405@netnews.attbi.com...
> I'm posting this from home, so don't have all the details, but here
> goes anyway.  We're running under the latest non-AE vxWorks on a
> PPC750 and using the DosFs2 file system over a flash drive.  We've
> noticed that opening a file takes a surprisingly long time (~100 ms).
> The transfer speed, once the file is open, seems in line w/ what we
> would predict given the specs of the various parts & busses involved.
> So should we be surprised at how long it takes to open a file?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: Tue, 9 Apr 2002 12:24:44 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub6g1mng1qv4dc@corp.supernews.com>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com> <ub3tvl4o2q327d@corp.supernews.com> <rpsg026vt3j.fsf@nospam.invalid> <ub413qst8426c3@corp.supernews.com> <rpssn65euth.fsf@nospam.invalid> <ub48o4ka4kg97a@corp.supernews.com> <rps7knhww9r.fsf@nospam.invalid> <ub4s8lb6b443ac@corp.supernews.com> <rpszo0d74q5.fsf@nospam.invalid>
Joe,
I think the manual entries on BSD, Solaris, HP/UX, and Linux on select(2)
are all rather terse.   None of them explicitly say anything about whether
subsequent read() should ever block or not.    You can assume and read
between the lines, but that would be just that.
To me, the original select implementation in BSD Unix is what defines the
original definition of select.   And that is what I described.  Warts and
all.
Enough is said on the subject, the verification (i.e. reading of available
Unix kernel code and understanding all of it) is left as an excercise to be
done the reader.
Thanks for playing.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Corrupted Interface Flags?
Date: Tue, 9 Apr 2002 12:47:05 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ub6hbgtnhtdu6b@corp.supernews.com>
References: <99723b54.0204080551.6fb7e3ab@posting.google.com> <ub3jjscom6mm04@corp.supernews.com> <3CB1D5BD.90A72874@s3group.com> <ub3m38ffgpthb7@corp.supernews.com> <3CB2F5D3.F748AACA@s3group.com>
It seems that the flags in END_OBJ and the if_flags in ifnet are not the
synchronized at all times.  Another reason why I do not like the END model
very much at all.
Anyway, 0xba7c does not make much sense for if_flags.
It seems that your drvCtrl struct is corrupted somewhere.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: please help: block device driver stuck
Date: Tue, 9 Apr 2002 21:38:28 +0200
From: "VU Khac Tri \(home\)" <tvk6843@hotmail.com>
Organization: FUNDP, Namur, Belgium
Message-ID: <a8vqre$8okq@hermes.fundp.ac.be>
This is a multi-part message in MIME format.
- ------=_NextPart_000_0027_01C1E00E.E314A6F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi folks,
I'm writing a driver for a block removable device (e.g. Compact Flash =
card reader). Its boot record as following:
OFFSET 0 1 2 3  4 5 6 7  8 9 A B  C D E F  *0123456789ABCDEF*
000000 fa33c08e d0bc007c 8bf45007 501ffbfc *.3.....|..P.P...*
000010 bf0006b9 0001f2a5 ea1d0600 00bebe07 *................*
000020 b304803c 80740e80 3c00751c 83c610fe *...<.t..<.u.....*
000030 cb75efcd 188b148b 4c028bee 83c610fe *.u......L.......*
000040 cb741a80 3c0074f4 be8b06ac 3c00740b *.t..<.t.....<.t.*
000050 56bb0700 b40ecd10 5eebf0eb febf0500 *V.......^.......*
000060 bb007cb8 010257cd 135f730c 33c0cd13 *..|...W.._s.3...*
000070 4f75edbe a306ebd3 bec206bf fe7d813d *Ou...........}.=3D*
000080 55aa75c7 8bf5ea00 7c000049 6e76616c *U.u.....|..Inval*
000090 69642070 61727469 74696f6e 20746162 *id partition tab*
0000a0 6c650045 72726f72 206c6f61 64696e67 *le.Error loading*
0000b0 206f7065 72617469 6e672073 79737465 * operating syste*
0000c0 6d004d69 7373696e 67206f70 65726174 *m.Missing operat*
0000d0 696e6720 73797374 656d0000 00000000 *ing system......*
0000e0 00000000 00000000 00000000 00000000 *................*
0000f0 TO 0001af SAME AS ABOVE
0001b0 00000000 00000000 00000000 00008001 *................*
0001c0 0100060d fef83e00 00000678 0d000000 *......>....x....*
0001d0 00000000 00000000 00000000 00000000 *................*
0001e0 00000000 00000000 00000000 00000000 *................*
0001f0 00000000 00000000 00000000 000055aa *..............U.*
I initialize the driver using dosFsDevCreate(). But when I call =
open(filename), its returns ERROR (message: "Malformed boot sector. =
Offset 0, value 250"). I discover that the function dosFsBootSecGet() =
executes a verification for the first byte of the boot sector. If the =
value of this byte is not 0xE9 or 0xEB, then it issues the message.
Does anyone have idea, how to avoid this happens ?
Thank you in advance.
Tri.
PS. The doc of dosFs2.0 is not updated, and I really get stucked.
- ------=_NextPart_000_0027_01C1E00E.E314A6F0
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.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT size=3D2>Hi folks,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I'm writing&nbsp;a driver for a block removable =
device (e.g.=20
Compact Flash card reader). Its boot record as following:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2>OFFSET 0 1 2 3&nbsp; 4 5 6 7&nbsp; 8 =
9 A B&nbsp;=20
C D E F&nbsp; *0123456789ABCDEF*<BR>000000 fa33c08e d0bc007c 8bf45007 =
501ffbfc=20
*.3.....|..P.P...*<BR>000010 bf0006b9 0001f2a5 ea1d0600 00bebe07=20
*................*<BR>000020 b304803c 80740e80 3c00751c 83c610fe=20
*...&lt;.t..&lt;.u.....*<BR>000030 cb75efcd 188b148b 4c028bee 83c610fe=20
*.u......L.......*<BR>000040 cb741a80 3c0074f4 be8b06ac 3c00740b=20
*.t..&lt;.t.....&lt;.t.*<BR>000050 56bb0700 b40ecd10 5eebf0eb febf0500=20
*V.......^.......*<BR>000060 bb007cb8 010257cd 135f730c 33c0cd13=20
*..|...W.._s.3...*<BR>000070 4f75edbe a306ebd3 bec206bf fe7d813d=20
*Ou...........}.=3D*<BR>000080 55aa75c7 8bf5ea00 7c000049 6e76616c=20
*U.u.....|..Inval*<BR>000090 69642070 61727469 74696f6e 20746162 *id =
partition=20
tab*<BR>0000a0 6c650045 72726f72 206c6f61 64696e67 *le.Error =
loading*<BR>0000b0=20
206f7065 72617469 6e672073 79737465 * operating syste*<BR>0000c0 =
6d004d69=20
7373696e 67206f70 65726174 *m.Missing operat*<BR>0000d0 696e6720 =
73797374=20
656d0000 00000000 *ing system......*<BR>0000e0 00000000 00000000 =
00000000=20
00000000 *................*<BR>0000f0 TO 0001af SAME AS ABOVE<BR>0001b0 =
00000000=20
00000000 00000000 00008001 *................*<BR>0001c0 0100060d =
fef83e00=20
00000678 0d000000 *......&gt;....x....*<BR>0001d0 00000000 00000000 =
00000000=20
00000000 *................*<BR>0001e0 00000000 00000000 00000000 =
00000000=20
*................*<BR>0001f0 00000000 00000000 00000000 000055aa=20
*..............U.*<BR></FONT></DIV>
<DIV><FONT size=3D2>I initialize the driver using dosFsDevCreate(). But =
when I=20
call open(filename), its returns ERROR (message: "Malformed boot sector. =
Offset=20
0, value 250"). I discover that the function dosFsBootSecGet() executes =
a=20
verification for the first byte of the boot sector. If the value of this =
byte is=20
not 0xE9 or 0xEB, then&nbsp;it issues the message.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Does anyone have idea, how to avoid this happens=20
?</FONT></DIV>
<DIV><FONT size=3D2>Thank you in advance.</FONT></DIV>
<DIV><FONT size=3D2>Tri.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>PS. The doc of dosFs2.0 is not updated, and I really =
get=20
stucked.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV></BODY></HTML>
- ------=_NextPart_000_0027_01C1E00E.E314A6F0--
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to set TIMEZONE? Support for timezones in localtime?
Date: Tue, 09 Apr 2002 20:15:22 GMT
From: Jon Newbill <JonUN@bitworkssystemsDELETETHIS.com>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <3CB34C42.234B0EDC@bitworkssystemsDELETETHIS.com>
References: <3CB21456.E91B3577@bitworkssystemsDELETETHIS.com> <rpspu19x2ac.fsf@nospam.invalid> <3CB31C42.D25D7C34@bitworkssystemsDELETETHIS.com> <rpsy9fwyeee.fsf@nospam.invalid>
Ok, with a little more testing I've determined how it works and tm_isdst does
get set correctly.  The start and end dates for daylight savings time are
actually dates.  That is 040102 means April 1st at 2am.  This means you have to
figure out what the 1st Sunday of April and last Sunday of  October is to set
TIMEZONE correctly each year.  Since the example in the documentation shows
040102 which is not when daylight savings should change I'm wondering if the 01
was really supposed to mean week # like I was remembering from QNX.
What I was remembering earlier was from QNX where you specify the week not the
exact date.  That way your timezone setting doesn't change from year to year.
The QNX format was
TZ=EST5EDT4,M4.1.0/3,M10.5.0/3 where
    EST is Eastern Standard Time
    5 is UTC - 5
    EDT is daylight saving time
    4 is  UTC - 4
    M4.1.0/3 is first Sunday of April at 3am
    M10.5.0/3 is last Sunday of October at 3am
So for VxWorks I'll have to write a little bit of code to compute the TIMEZONE
setting on each bootup....
Jon
Joe Chung wrote:
> Jon Newbill <JonUN@bitworkssystemsDELETETHIS.com> writes:
> > Thanks, I found the putenv and envShow.  It seems to work for the most
> > part but daylight savings doesn't seem to work.  When I use the string you
> > suggest below  localtime reports tm_isdst as 0.  Even though daylight
> > savings should have started 2 days ago.  The documentation doesn't define
> > the daylight savings start and end formats.  I vaguely remember from other
> > unix doc that its MMWWHH where MM is month WW is week number and HH is
> > hour.  But I seem to remember that it always chose the WW Sunday after the
> > 1st monday or something.  Windriver doesn't put in this detail in their
> > documentation and I'm wondering if they support DST.  Also on other unix
> > sytems I thought the 2nd <unused> field of TIMEZONE was for the daylight
> > savings time name.  If  I set TIMEZONE to PST:PDT:480:040102:100102 my
> > time shifts an hour earlier like I'm suddenly on standard time.  If
> > anything I would expect it to shift an hour later (spring forward).  I
> > haven't tried a date before last Sunday yet to see what it does when PST
> > should be in effect.
>
> Hmmm, come to think of it, I don't recall being able to get
> tm_isdst to ever be non zero either, or to get DST working at all
> (lucky for me, the project that I worked on was in the during non
> daylight savings time period).
>
> -jc
>
---------------------------
Newsgroups: comp.os.vxworks,gnu.gcc.help,gnu.g++.help
Subject: Re: Problem when using cout << long-long-var
Date: 09 Apr 2002 22:38:14 +0200
From: Maurizio Loreti <mlonews@pd.infn.it>
Organization: I.N.F.N. Padova - CDF/CMS cluster
Message-ID: <8ar8lor4jt.fsf@mlinux.pd.infn.it>
References: <a8umgh$vbb7v$1@ID-79865.news.dfncis.de> <8ad6x9yp8e.fsf@mlinux.pd.infn.it> <a8uus6$h05$1@narses.hrz.tu-chemnitz.de>
Andr Pnitz <poenitz@gmx.de> writes:
> In gnu.g++.help Maurizio Loreti <mlonews@pd.infn.it> wrote:
> >> I have a problem when using
> >>  cout << long-long-var
> >
> > The type "long long" has been introduced in the language with the
> > ANSI/ISO Standard of end 1998.
>
> Could you point me to the relevant section in the Standard please?
Sorry, you are right.  Confusion with long double :-(
- --
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy          loreti at pd dot infn dot it
---------------------------
Newsgroups: comp.os.vxworks
Subject: Set IP_TOS won't work for for TCP handshake packet
Date: 9 Apr 2002 14:38:34 -0700
From: xukaih@yahoo.ca (xukaih)
Organization: http://groups.google.com/
Message-ID: <317b63da.0204091338.3f3d296@posting.google.com>
Hi
  Is there any tips or known problems for setting
TCP IP_TOS field ?
right now, I had problem that 3 TCP handshake packets
(SYN/ACKofSYN/ACKofSYN) remain unset during extire TCP
session.
Current Coding is
at client side,
setsockopt is called after socket()
at server side,
setsockopt is called before accept() for mastersocket and
after accept() for slavesocket.
My Target: tornado_1.0.1 on Pentium
Any Input will be very appreciated.
Regards,
kai
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: 09 Apr 2002 12:29:16 -1000
From: Jim Thomas <thomas@atlas.cfht.hawaii.edu>
Organization: Canada France Hawai`i Telescope
Message-ID: <wwn0wcmrpf.fsf@atlas.cfht.hawaii.edu>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu> <3CAEEB9D.2050609@spamm.me.l8s.co.uk> <ub293tlq5vcr2c@corp.supernews.com> <3CB1EB17.5030903@nospam.icon-labs.com>
>>>>> "Pete" == Pete Flugstad <pete_flugstad@nospam.icon-labs.com> writes:
 Pete> Hwa Jin Bae wrote:
 >> Assuming you are selecting for read events, select will return when data is
 >> available to read.   At that point, you do not know how much data is
 >> available to be read.  You should do FIONREAD to make sure that you have
 >> sufficient data for your read request that follows.  Otherwise, read can
 >> block.
 Pete> FYI, this is not how normal BSD style sockets work (and
 Pete> from my experience, vxWorks does not follow this model).
 Pete> If select returns true for a socket descriptor, you can do read
 Pete> on that socket, and the data AVAILABLE will be returned to you,
 Pete> from 1 byte, up to the max you requested.   The read should not
 Pete> block no matter how much you request, but you will only get what
 Pete> is available.
 Pete> You do NOT need to do a FIONREAD.  All that's going to do is add
 Pete> an extra system call/ioctl overhead to your program.
 Pete>  From my experience (mostly SNMP agents), vxWorks implements this
 Pete> model exactly as I've desribed.
On a slight topic drift :-)
IME not quite.  I'm running a possibly broken 5.4.2 on a PPC (mv2700).  I
am trying to use select (the same as my previous comments about select
returning in less than one tick) on a single, input socket channel.  I have
the FIONREAD in there so I can see how much is there.  My typical case
returns 17 from FIONREAD , but the following read() will only return 1
byte.  Has anyone seen that?  (I've tried it with 17 and 540 as the number
of bytes to read.  Both return 1 byte.)
Mahalo,
Jim
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado 3 - is it GDB ?
Date: Tue, 09 Apr 2002 15:39:05 -0700
From: Lori Fraleigh <lori@rti.com>
Organization: Real-Time Innovations
Message-ID: <3CB36D89.B61B4788@rti.com>
References: <a6b968b7.0204072002.2b2877df@posting.google.com>
The Tornado Tools 3 / AE debugger does not sit on top of GDB.
Wind River re-implemented the graphical debugger in Java using
some of the technology for the Look tool that was available for
Tornado 2.
It does use the target server and makes use of a private API
similar to WTX.
There is also a command line debugger called tcdb which supports
some of the gdb command line functionality.
lori
David Ward wrote:
>
> I'm curious about the T3 debugger and the WRS web site is not clear -
> Is it sitting over GDB like T2 ?
> Does it talk WTX and use the same target server as T2 ?
>
> Thanks in advance,
> Dave Ward
- --
Lori Fraleigh                                Director of Engineering
Real-Time Innovations, Inc.                  http://www.rti.com
Phone: 408-734-4200 x121                     Fax: 408-734-5009
---------------------------
Newsgroups: comp.os.vxworks
Subject: SimNT and WindML
Date: 9 Apr 2002 15:59:04 -0700
From: Hans-Juergen.Kempel@gmx.de (Hans-Juergen.Kempel)
Organization: http://groups.google.com/
Message-ID: <21c842f4.0204091459.7d8cc913@posting.google.com>
Hello,
we try starting a project using Tornado II/WindML on SimNT.
The documentation on WindML says, that the module "ugl_winLib.o" have to
be included in the vxWorks-Image, but it isn't part of the distribution.
Building a small trivial application using WindML-Calls results in
big file (~ 2.5 MB) which cannot be uploaded due to relocation-errors.
We don't have great experience using VxWorks and WindML.
Can anybody give us an hint, which modules/libs have to be linked
with the application resp. the vxWorks-Image.
Thx in advance
hjk
PS: we using TORNADO 2 on WIN2K
---------------------------
Newsgroups: comp.os.vxworks
Subject: Initialization string for an END driver
Date: 9 Apr 2002 16:04:43 -0700
From: mike_texx@mail.ru (MK)
Organization: http://groups.google.com/
Message-ID: <72096774.0204091504.504c7ea@posting.google.com>
The driver for cs8900a ethernet controller in my BSP expects an
initialization string of the format "unit_num:ioBase:intNum:intLevel"
even though the string that is defined in configNet.h is of the format
"ioBase:intNum:intLevel". There also is a comment, that reads, that
muxLib.o module will automatically prepend the unit number to the
init. string that I define in configNet.h   That mechanism doesn't
seem to work. Could anyone please clarify where and how does muxLib.o
prepend the unit number, and what do I need to do in order to trigger
that process.
Thanks.
Mike
---------------------------
Newsgroups: comp.os.vxworks
Subject: question: symbol file of bootrom and vxworks
Date: 9 Apr 2002 17:35:58 -0700
From: lisheng_811@yahoo.com.cn (Saledom)
Organization: http://groups.google.com/
Message-ID: <4a7f0d21.0204091635.d21c7d9@posting.google.com>
two beginner's questions about visionIce II, visionclick 7.0 and
tornado II IDE.
i make a bootable project in the IDE of tornado II, and don't modify
any defult setting.
1. i program a bsp and build it's bootrom. since the bootrom is a hex
or bin file, visionlclick  can not convert it to a symbol file. now i
debug the bootrom without the source code. is there some method to
debugging my bootrom with the source code?
2. i build a vxworks image, then convert to the symbol file using
visionclick. after i download the symbol file and binary file to my
target, i  can not find the sysalib.s in the symbol exploer window. if
i build the vxworks_rom image, convert to symbol file, download to
target, sysalib.s and romstart.c and rominit.s all are not shown in
the symbol exploer windows.
---------------------------
Newsgroups: comp.os.vxworks,gnu.gcc.help,gnu.g++.help
Subject: Re: Problem when using cout << long-long-var
Date: 10 Apr 2002 01:39:01 GMT
From: Denis Perelyubskiy <denis_newsREMOVE-TO-REPLY@hotmail.com>
Message-ID: <slrnab75tk.4k0.denis_newsREMOVE-TO-REPLY@finch.lecs.cs.ucla.edu>
References: <a8umgh$vbb7v$1@ID-79865.news.dfncis.de> <8ad6x9yp8e.fsf@mlinux.pd.infn.it> <a8uus6$h05$1@narses.hrz.tu-chemnitz.de>
Followup-To: comp.os.vxworks
 * Andr Pnitz <poenitz@gmx.de> [04-Tue-02 07:46 -0700]:
 >
 > In gnu.g++.help Maurizio Loreti <mlonews@pd.infn.it> wrote:
 > >> I have a problem when using
 > >>  cout << long-long-var
 > >
 > > The type "long long" has been introduced in the language with the
 > > ANSI/ISO Standard of end 1998.
 > Could you point me to the relevant section in the Standard please?
Feel free to correct me if I misunderstood something, but
isn't it just this:
Section 6.2.5 Types, Point 4:
   There are five standard signed integer types, designated
   as signed char, short int, int, long int, and long long
   int.  (These and other types may be designated in several
   additional ways, as described in 6.7.2.) There may also
   be implementation-defined extended signed integer
   types.28) The standard and extended signed integer types
   are collectively called signed integer types.29)
this seems to talk about 'long long int'...
denis
- --
if you want to reply by mail, please tweak my
address in a reasonable way. sorry for the
inconvenience.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Initialization string for an END driver
Date: 09 Apr 2002 21:53:42 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <ug0249v4p.fsf@yahoo.com>
References: <72096774.0204091504.504c7ea@posting.google.com>
Sender: bpringlemeir@DeadDuck
>>>>> "MK" == MK  <mike_texx@mail.ru> writes:
 MK> The driver for cs8900a ethernet controller in my BSP expects an
 MK> initialization string of the format
 MK> "unit_num:ioBase:intNum:intLevel" even though the string that is
 MK> defined in configNet.h is of the format
 MK> "ioBase:intNum:intLevel". There also is a comment, that reads,
 MK> that muxLib.o module will automatically prepend the unit number
 MK> to the init. string that I define in configNet.h That mechanism
 MK> doesn't seem to work. Could anyone please clarify where and how
 MK> does muxLib.o prepend the unit number, and what do I need to do
 MK> in order to trigger that process.
Look in "$(WIND_BASE)/target/src/confg/usrNetwork.c".  Search for
`muxLibInit'.  You will find the code interating over an array.  The
calls to `muxDevLoad' will prepend the unit number.  It may actually
call your function twice.  The second time to find the unit number.  I
am using the cs8900a chip and the code.  If you have an ARM chip, you
need to modify things so that an offset is added to align the IP
layer... and in case you don't know, there is new code at the cirrus
web sight.
hth,
Bill Pringlemeir.
- --
Have you ever tried to make an infant generate bad karma?  Or used a
conference call to psychically link with characters from Thundercats?
Or been tortured by my sister while sitting quietly with your sexual
toy?  You will.  And the company that will bring it to you: AT&T.
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: No SockAddr struct following RTM_NEWADDR mesg!!!
Date: 9 Apr 2002 21:32:49 -0700
From: overtones@excite.com (Strawberry)
Organization: http://groups.google.com/
Message-ID: <41440750.0204092032.3e86e4fc@posting.google.com>
hi grps,
   I get a RTM_NEWADDR mesg when i add an inteface. The ifam_flags
shows RTA_NETMASK, RTA_IFP & RTA_IFA bits set. But no SockAddr struct
follows the header in the buffer(size is large enough).
any pointers would be of great help
danq,
SB
---------------------------
Newsgroups: comp.os.vxworks
Subject: SNTP/NTP
Date: 9 Apr 2002 23:09:40 -0700
From: zvikag@yahoo.com (zvi)
Organization: http://groups.google.com/
Message-ID: <d5e10f97.0204092209.192d6dbf@posting.google.com>
Hello vxWorkers!!
I try to devlop an NTP client.
I know that vxWorks support an SNTP client ,
can someone please expain me what are the differences during encoding
between those both protocols?
I read some RFCs of those protocols and I saw that there are some
diffrences, but I didn't understand how they are infect the code.
Thanks in advance
Zvi
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: problem with select?
Date: 10 Apr 2002 06:36:21 GMT
From: Denis Perelyubskiy <denis_newsREMOVE-TO-REPLY@hotmail.com>
Message-ID: <slrnab7nb5.4hr.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu>
References: <slrnaaskch.ct6.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu>
Guys, thanks for suggestions, as well as a very
interesting/useful discussion...
 * Denis Perelyubskiy <denis_newsREMOVE-TO-REPLY@hotmail.com> [04-Fri-02 17:38 -0800]:
 >
 > Hello,
 > we suspect that we are seeing a problem with select() in
 > 5.3.1, whereby select() returns saying there is data in
 > socket(), then we do a read. Read blocks. This does not
 > happen every time, but we saw it once or twice.
 > Hence, I am wondering if anyone else has seen the same
 > issue.
 > thanks,
 > denis
denis
- --
if you want to reply by mail, please tweak my
address in a reasonable way. sorry for the
inconvenience.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Problem when using cout << long-long-var
Date: 10 Apr 2002 07:47:19 GMT
From: =?iso-8859-1?Q?Andr=E9_P=F6nitz?= <poenitz@gmx.de>
Organization: Chemnitz University of Technology
Message-ID: <a90qm7$njj$5@narses.hrz.tu-chemnitz.de>
References: <a8umgh$vbb7v$1@ID-79865.news.dfncis.de> <8ad6x9yp8e.fsf@mlinux.pd.infn.it> <a8uus6$h05$1@narses.hrz.tu-chemnitz.de> <slrnab75tk.4k0.denis_newsREMOVE-TO-REPLY@finch.lecs.cs.ucla.edu>
In gnu.g++.help Denis Perelyubskiy <denis_newsREMOVE-TO-REPLY@hotmail.com> wrote:
> Feel free to correct me if I misunderstood something, but
> isn't it just this:
>
> Section 6.2.5 Types, Point 4:
>
>    There are five standard signed integer types, designated
>    as signed char, short int, int, long int, and long long
>    int.  (These and other types may be designated in several
>    additional ways, as described in 6.7.2.) There may also
>    be implementation-defined extended signed integer
>    types.28) The standard and extended signed integer types
>    are collectively called signed integer types.29)
>
> this seems to talk about 'long long int'...
Indeed, this seems to talk about long long ints.
However, my copy of ISO 14882-1998 has no section 6.2.5 and Section 6.2
is named 'Expression statement' 'Fundamental types' are listed in Section
3.9.1 and 'long long int' is not mentioned there as far as I can tell.
Andre'
- --
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)
---------------------------
Newsgroups: comp.os.vxworks
Subject: Atomic counter
Date: Wed, 10 Apr 2002 08:24:45 +0000 (UTC)
From: "Dieter Bahlmann" <velouria@ccii.co.za>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <9065af8f514816af2948a6cd6023aaa5.38592@mygate.mailgate.org>
Can anyone give me some advice on atomic counters? I need a counter for
resource counting. Should I use semaphores to lock the counter?
Thanks
- --
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
---------------------------
Newsgroups: comp.os.vxworks
Subject: timex & clock
Date: Wed, 10 Apr 2002 11:29:13 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a90t2c$v33p9$1@ID-79865.news.dfncis.de>
timex() returns the execution time in microsecs.
Does timex() have to do with system/auxiliary clock?
If YES : How can timex() return microsecs if the resolution = 60 (according sysClkRateGet)?
If NO : What (clock) does timex()  use?
- --
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Atomic counter
Date: Wed, 10 Apr 2002 08:56:04 GMT
From: "Tri VU KHAC \(Sony\)" <tri.vukhac@sonycom.com>
Organization: KPNQwest customer news service
Message-ID: <E6Ts8.9$fc7.620@nreader2.kpnqwest.net>
References: <9065af8f514816af2948a6cd6023aaa5.38592@mygate.mailgate.org>
Well, semaphore is elegant, but a bit hard if the piece of code does not
much thing.
You can try taskLock and taskUnlock.
Tri.
"Dieter Bahlmann" <velouria@ccii.co.za> wrote in message
news:9065af8f514816af2948a6cd6023aaa5.38592@mygate.mailgate.org...
> Can anyone give me some advice on atomic counters? I need a counter for
> resource counting. Should I use semaphores to lock the counter?
>
> Thanks
>
>
> --
> Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: SimNT and WindML
Date: Wed, 10 Apr 2002 11:08:33 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb40106$1@brateggebdc5.br-automation.co.at>
References: <21c842f4.0204091459.7d8cc913@posting.google.com>
Hi,
maybe someone can help with that little information.
However, I think you should at least mention some of the symbols that are
missing (or all if the list is reasonably short).
Further, the steps you took to build the WindML would help to understand the
problem.
regards
Werner
"Hans-Juergen.Kempel" <Hans-Juergen.Kempel@gmx.de> wrote in message
news:21c842f4.0204091459.7d8cc913@posting.google.com...
> Hello,
>
> we try starting a project using Tornado II/WindML on SimNT.
> The documentation on WindML says, that the module "ugl_winLib.o" have to
> be included in the vxWorks-Image, but it isn't part of the distribution.
>
> Building a small trivial application using WindML-Calls results in
> big file (~ 2.5 MB) which cannot be uploaded due to relocation-errors.
>
> We don't have great experience using VxWorks and WindML.
> Can anybody give us an hint, which modules/libs have to be linked
> with the application resp. the vxWorks-Image.
>
> Thx in advance
>
> hjk
>
> PS: we using TORNADO 2 on WIN2K
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Atomic counter
Date: Wed, 10 Apr 2002 11:12:35 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb401f8@brateggebdc5.br-automation.co.at>
References: <9065af8f514816af2948a6cd6023aaa5.38592@mygate.mailgate.org>
Hi,
using a mutex semaphore to protect the counter will give you a portable
solution.
Depending on how often you need to access the counter, this could however
add some overhead to your program.
Some CPUs provide hardware means to achive atomic increase/decrease value
and return (move) the result.
You need to specify your desired architecture if you are looking for such a
solution.
hth
Werner
"Dieter Bahlmann" <velouria@ccii.co.za> wrote in message
news:9065af8f514816af2948a6cd6023aaa5.38592@mygate.mailgate.org...
> Can anyone give me some advice on atomic counters? I need a counter for
> resource counting. Should I use semaphores to lock the counter?
>
> Thanks
>
>
> --
> Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: format of vxWorks exe image for x86 architecure.
Date: Wed, 10 Apr 2002 12:08:10 +0200
From: "Michael Lawnick" <Lawnick@softec.de>
Organization: Buergernetz Dillingen
Message-ID: <a912ua$ai1$1@snoopy.bndlg.de>
References: <1018358891.867216@ernani.logica.co.uk>
Reply-To: "Michael Lawnick" <Lawnick@softec.de>
Sender: mlawnick@p5088fb90.dip.t-dialin.net
Hi Paul,
elf.h might give you the kick for start.
HTH
Michael
"Paul Madle" <madlep@logica.com> schrieb im Newsbeitrag
news:1018358891.867216@ernani.logica.co.uk...
I have been attempting to perform a CRC check of an executable vxWorks image
as part of the images execution by comparing the CRC before and during
execution.
The CRC comparison fails because the image is not entirely static during
execution. I therefore need to know the format of a vxworks image on an x86
architecture.
Having looked at the programmers guide (5.4 page 450) and the map file
 using -M linker flag ), I have concluded that the image is split into these
chunks:
00000000 00080568 2** 3d .text
00000000 00014540 2** 3d .data
00000000 0029b960 2** 3d .bss
0029b960 00002490 2** 3d COMMON
(taken from map file)
after further analysis, I've found that the executable code is found in the
".text" section which is found after the "COMMON" section.
In essence, I beleive that the executable file looks like this:
- ------------- @ offset 0x0 from file beginning
| COMMON |
- ------------- @ offset 0x2490 from file beginning
| .text |
- -------------
: :
: :
Most of this ".text" section appears to be the same both before and during
execution. However The last part of the .text section changes during
execution and my CRC therefore fails.
Its possible I'm not finding the size of the ".text" section correctly. If
anyone knows how you go about finding the size of this section, please help!
Any information of the format of a vxworks executable image on an x86
architecture would be useful.
Thanks,
Paul.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Instrumentation and Logging in WindView
Date: 10 Apr 2002 03:15:56 -0700
From: jsuchotzki@web.de (Jan)
Organization: http://groups.google.com/
Message-ID: <e11d3b19.0204100215.9d3aa48@posting.google.com>
Hi,
I just went through the WindView User's Guide 2.0 and wondered about
the instrumentation and logging possibilities.
There are functions to choose different logging classes (means which
events should be logged) and there are functions to switch
instrumentation on/off for different objects or object groups (means
which events should be generated).
But why are there differences?
It seems to make no sense to generate events that won't be logged. Are
normally all events generated?
With kind regards
Jan Suchotzki
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Problem when using cout << long-long-var
Date: Wed, 10 Apr 2002 06:23:41 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: BELLSOUTH.net
Message-ID: <3CB412AD.8C7C0425@bellsouth.net>
References: <a8umgh$vbb7v$1@ID-79865.news.dfncis.de> <8ad6x9yp8e.fsf@mlinux.pd.infn.it> <a8uus6$h05$1@narses.hrz.tu-chemnitz.de> <slrnab75tk.4k0.denis_newsREMOVE-TO-REPLY@finch.lecs.cs.ucla.edu> <a90qm7$njj$5@narses.hrz.tu-chemnitz.de>
Andr Pnitz wrote:
> In gnu.g++.help Denis Perelyubskiy <denis_newsREMOVE-TO-REPLY@hotmail.com> wrote:
> > Feel free to correct me if I misunderstood something, but
> > isn't it just this:
> >
> > Section 6.2.5 Types, Point 4:
> >
> >    There are five standard signed integer types, designated
> >    as signed char, short int, int, long int, and long long
> >    int.  (These and other types may be designated in several
> >    additional ways, as described in 6.7.2.) There may also
> >    be implementation-defined extended signed integer
> >    types.28) The standard and extended signed integer types
> >    are collectively called signed integer types.29)
> >
> > this seems to talk about 'long long int'...
>
> Indeed, this seems to talk about long long ints.
>
> However, my copy of ISO 14882-1998 has no section 6.2.5 and Section 6.2
> is named 'Expression statement' 'Fundamental types' are listed in Section
> 3.9.1 and 'long long int' is not mentioned there as far as I can tell.
>
> Andre'
>
> --
> Those who desire to give up Freedom in order to gain Security,
> will not have, nor do they deserve, either one. (T. Jefferson)
Perhaps the problem being seen is due to the gnu compiler which
most of us are using in vxWorks projects is much older than
1998, and therefore does not support long long.  Whether the C,
C++, or ISO standards specify the type is not the issue, at least
for vxWorks.  It's whether your particular compiler supports this
type, and the gcc I have with Tornado/vxWorks does not.
Speaking only for myself,
Joe Durusau
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Wed Apr 10 08:02:10 2002
From: "Sinn, Larry" <Larry.Sinn@kla-tencor.com>
Date: Wed Apr 10 08:02:12 PDT 2002
Subject: Re: How to set TIMEZONE? Support for timezones in localtime?
If you're just looking to get local time and have a Real Computer available
(abbreviated UNIX) you can get local time from port 13 or GMT from port 37.
Larry.
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
> Ok, with a little more testing I've determined how it works and tm_isdst
does
> get set correctly.  The start and end dates for daylight savings time are
> actually dates.  That is 040102 means April 1st at 2am.  This means you
have to
> figure out what the 1st Sunday of April and last Sunday of  October is to
set
> TIMEZONE correctly each year.  Since the example in the documentation
shows
> 040102 which is not when daylight savings should change I'm wondering if
the 01
> was really supposed to mean week # like I was remembering from QNX.
>
> What I was remembering earlier was from QNX where you specify the week not
the
> exact date.  That way your timezone setting doesn't change from year to
year.
> The QNX format was
>
> TZ=EST5EDT4,M4.1.0/3,M10.5.0/3 where
>     EST is Eastern Standard Time
>     5 is UTC - 5
>     EDT is daylight saving time
>     4 is  UTC - 4
>     M4.1.0/3 is first Sunday of April at 3am
>     M10.5.0/3 is last Sunday of October at 3am
>
> So for VxWorks I'll have to write a little bit of code to compute the
TIMEZONE
> setting on each bootup....
>
> Jon
>
>
> Joe Chung wrote:
>
> > > Jon Newbill <JonUN@bitworkssystemsDELETETHIS.com> writes:
> > > Thanks, I found the putenv and envShow.  It seems to work for the most
> > > part but daylight savings doesn't seem to work.  When I use the string
you
> > > suggest below  localtime reports tm_isdst as 0.  Even though daylight
> > > savings should have started 2 days ago.  The documentation doesn't
define
> > > the daylight savings start and end formats.  I vaguely remember from
other
> > > unix doc that its MMWWHH where MM is month WW is week number and HH is
> > > hour.  But I seem to remember that it always chose the WW Sunday after
the
> > > 1st monday or something.  Windriver doesn't put in this detail in
their
> > > documentation and I'm wondering if they support DST.  Also on other
unix
> > > sytems I thought the 2nd <unused> field of TIMEZONE was for the
daylight
> > > savings time name.  If  I set TIMEZONE to PST:PDT:480:040102:100102 my
> > > time shifts an hour earlier like I'm suddenly on standard time.  If
> > > anything I would expect it to shift an hour later (spring forward).  I
> > > haven't tried a date before last Sunday yet to see what it does when
PST
> > > should be in effect.
> >
> > Hmmm, come to think of it, I don't recall being able to get
> > tm_isdst to ever be non zero either, or to get DST working at all
> > (lucky for me, the project that I worked on was in the during non
> > daylight savings time period).
> >
> > -jc
> >
From vxwexplo-errs@csg.lbl.gov  Wed Apr 10 08:19:33 2002
From: "Sinn, Larry" <Larry.Sinn@kla-tencor.com>
Date: Wed Apr 10 08:19:35 PDT 2002
Subject: Re: vme ints on MVME5100
For general VME interrupts:
       /* Connect INPUT interrupt */
        if ( intConnect( INUM_TO_IVEC(vmeIntVect),
(VOIDFUNCPTR)InterruptServiceRoutine, 0 ) == ERROR )
        {
            printf("Error in intConnect\n");
            return ERROR;
        }
        sysIntEnable(4); /* Or what ever interrupt level you are using */
        intEnable (vmeIntVect);
For Universe chip interrupts:
        /* Connect to IST */
        if ( sysUnivIntConnect( univDmaIntVect, (FUNCPTR)UnivIntSerRoutine,
0 ) == ERROR )
        {
            printf("Error in sysUnivIntConnect\n");
            return ERROR;
        }
        /* Enable the interrupts */
        if ( sysUnivIntEnable( univDmaIntVect ) == ERROR )
        {
            printf( "Error in sysUnivIntEnable" );
            return ERROR;
        }
Larry.
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: "Kelly Hornsby" <klh1964@cox.net>
> Organization: Cox Communications
> Message-ID: <7Iqr8.10819$GG1.420120@news2.east.cox.net>
>
> Hello
>
> I'm looking for an initialization sequence to setup interrupts to support
> VME Bus interrupts on a Motorola VME 5100.  I've tried several different
> ways to setup the interrupt, but no luck.  I know the vector/status that
the
> device generating the interrupt will supply, but I can't seem to connect
to
> right interrupt.
>
> Any help?  I'd like a code snippet if I could get it.
>
> I'm using PowerPC and Tornado2
From vxwexplo-errs@csg.lbl.gov  Wed Apr 10 09:14:49 2002
From: Anuradha Pani <buisingh@yahoo.com>
Date: Wed Apr 10 09:14:51 PDT 2002
Subject: redirecting the display on the stdout to a stream
hi,
  i have a board running on vxworks but it does not
have a file system. i want to be able to redirect the
display on the screen for example, the results of
inetstatShow(), to some character buffer, so that i
can send the buffer out on TCP and display it on the
other side.
is there any way to do this?
thanks
anuradha
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
From vxwexplo-errs@csg.lbl.gov  Thu Apr 11 04:03:23 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Thu Apr 11 04:03:26 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Thu Apr 11 04:03:16 PDT 2002
        Subject: Re: timex & clock
        Subject: [Q] about timer[posix] w/ tornado 2.0.1
        Subject: Showing information about semaphores in Tornado Shell
        Subject: Re: How to set TIMEZONE? Support for timezones in localtime?
        Subject: Re: sysClkRateSet
        Subject: Re: Compiling GNU code for VxWorks AE
        Subject: Re: question: symbol file of bootrom and vxworks
        Subject: Re: tutorial recommendations for newbie?
        Subject: How to debug a page fault?
        Subject: Re: SimNT and WindML
        Subject: Re: taskDelay bug?
        Subject: Re: DosFs File Attributes
        Subject: Re: Atomic counter
        Subject: Re: please help: block device driver stuck
        Subject: Re: Atomic counter
        Subject: Default Route from the inside???
        Subject: How to redirect stdout to /dev/null?
        Subject: Using default route on VxWorks 5.3.1
        Subject: Re: Problem when using cout << long-long-var
        Subject: Re: Showing information about semaphores in Tornado Shell
        Subject: !!! Software-Designer (u.a. C, Realtime, Multiprozessor) sucht neues Projekt !!!
        Subject: Re: please help: block device driver stuck
        Subject: Re: Atomic counter
        Subject: L2 cache
        Subject: Re: Set IP_TOS won't work for for TCP handshake packet
        Subject: Re: How to redirect stdout to /dev/null?
        Subject: Re: IpRouting
        Subject: Re: Compiling GNU code for VxWorks AE
        Subject: Re: How to redirect stdout to /dev/null?
        Subject: Re: Showing information about semaphores in Tornado Shell
        Subject: Re: Compiling GNU code for VxWorks AE
        Subject: Re: RESUME: C/C++, Tornado/VxWorks, TCP/IP, Real-time embedded (Control) systems
        Subject: Why bootrom made myself can not activate my network interface?
        Subject: how can debug tNetTask?
        Subject: Tornado for Industrial Automation
        Subject: VxWorks driver development
        Subject: Re: how can debug tNetTask?
        Subject: Re: format of vxWorks exe image for x86 architecure.
        Subject: Target Shell : command rejected
        Subject: pciIntConnect
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: timex & clock
Date: Wed, 10 Apr 2002 12:11:56 +0100
From: "Tim Allen" <timallen@ntlworld.com>
Organization: ntlworld News Service
Message-ID: <3aVs8.2454$1N1.65572@news8-gui.server.ntli.net>
References: <a90t2c$v33p9$1@ID-79865.news.dfncis.de>
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a90t2c$v33p9$1@ID-79865.news.dfncis.de...
> timex() returns the execution time in microsecs.
>
> Does timex() have to do with system/auxiliary clock?
It uses the system clock.
> If YES : How can timex() return microsecs if the resolution = 60
(according sysClkRateGet)?
You'll notice that when timex returns it also shows a +/- tolerance. This
should be the period of the sytem clock. If you increase the system clock
rate, the tolerance decreases. If the time is too short to usefully measure
then timexN can be used to repeat the function call repeatedly until a more
accurate time can be measured.
Regards,
Tim.
---------------------------
Newsgroups: comp.os.vxworks
Subject: [Q] about timer[posix] w/ tornado 2.0.1
Date: 10 Apr 2002 04:46:07 -0700
From: belliny@soback.kornet.net (belliny, Mint~*)
Organization: http://groups.google.com/
Message-ID: <6fb8119a.0204100346.723b836f@posting.google.com>
Hello~
I have a question about posix timer.
I wrote this program and got general protection fault error when the
timer is fired...
Is there any omitted block or did I start with wrong lane?
Thanks in advance...
>> result [simulated w/ vxSim]
0x514c128 (t1): Timer Creation Success
0x514c128 (t1): Timer connection Success
0x514c128 (t1): Timer settime Success
Exception !
 Vector 13 : General Protection Fault
  Program Counter : 0x0041de3d
 Status Register : 0x00010202
<< program
#include "vxWorks.h"
#include "time.h"
timer_t	pTimerId;
struct itimerspec tmValue;
int nFlag = 1;
STATUS TimerTest();
void fnMyTestFunction(timer_t timerid, int arg);
STATUS TimerTest()
{
	pTimerId = NULL;
	// timer creation //
	if (timer_create(CLOCK_REALTIME, NULL, &pTimerId) == ERROR)
	{
		logMsg("timer Creation Error\n");
		return(ERROR);
	}
	else
	{
		logMsg("Timer Creation Success\n");
	}
	// timer connect //
	if (timer_connect(pTimerId, (VOIDFUNCPTR)fnMyTestFunction, 0) ==
ERROR)
	{
		logMsg("Timer connection Error\n");
		return (ERROR);
	}
	else
	{
		logMsg("Timer connection Success\n");
	}
	tmValue.it_value.tv_sec = 5;
	tmValue.it_value.tv_nsec = 0;
	tmValue.it_interval.tv_sec = 10;
	tmValue.it_interval.tv_nsec = 0;
	// timer settime //
	if (timer_settime(pTimerId, 0, &tmValue, NULL) == ERROR)
	{
		logMsg("TImer settime Error\n");
		return (ERROR);
	}
	else
	{
		logMsg("Timer settime Success\n");
	}
	while(nFlag)
	{
		// do noting... //
	}
}
void fnMyTestFunction(timer_t timerid, int arg)
{
	static int nCount;
	nCount += 1;
	logMsg("Hi~!\n");
	if (nCount == 10)
		nFlag = 0;
}
---------------------------
Newsgroups: comp.os.vxworks
Subject: Showing information about semaphores in Tornado Shell
Date: Wed, 10 Apr 2002 15:38:16 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a91blb$umnnf$1@ID-79865.news.dfncis.de>
semShow() shows information about a specific semaphore (semId).
It is possible to show list of all semaphores (their semId's)?
- --
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to set TIMEZONE? Support for timezones in localtime?
Date: Wed, 10 Apr 2002 12:42:30 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CB433B8.8030201@spamm.me.l8s.co.uk>
References: <3CB21456.E91B3577@bitworkssystemsDELETETHIS.com> <rpspu19x2ac.fsf@nospam.invalid> <3CB31C42.D25D7C34@bitworkssystemsDELETETHIS.com> <rpsy9fwyeee.fsf@nospam.invalid> <3CB34C42.234B0EDC@bitworkssystemsDELETETHIS.com>
Jon Newbill wrote:
> So for VxWorks I'll have to write a little bit of code to compute the TIMEZONE
> setting on each bootup....
I guess you don't expect your system to stay up for over a year?
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: sysClkRateSet
Date: Wed, 10 Apr 2002 12:46:22 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CB434A2.6070205@spamm.me.l8s.co.uk>
References: <a8upej$vk6lv$1@ID-79865.news.dfncis.de>
> sysClkRateSet(1000000) returns ERROR.
Not surprising really!
How do you expect your system to take interrupts at that rate?
FWIW there are bugs lurking if your clock rate is above 2k.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Compiling GNU code for VxWorks AE
Date: Wed, 10 Apr 2002 15:30:50 +0200
From: "Christof Wehner" <dont_spam_christof.wehner@nospam.arcor.de>
Organization: Arcor
Message-ID: <a91es6$sgi$1@newsread1.arcor-online.net>
References: <55aab3a9.0204081249.19f8ad52@posting.google.com> <a8uo0u$26v$1@newsread1.arcor-online.net>
Followup-To: poster
Oooooh - got the text wrong :-( sorry for that.
My comments below ARE correct if you want to build tools that cross-compile
etc. for VxWorks.
Your message seems to imply you want to RUN flex & bison on YOUR TARGET
SYSTEM (no shout...!). Why do you want to do that? VxWorks is not intended
to be the development system...
PLease explain a bit more what you want to do.
Thanks, and sorry ;-)
Christof
"Arcor News" <dont_spam_christof.wehner@nospam.arcor.de> schrieb im
Newsbeitrag news:a8uo0u$26v$1@newsread1.arcor-online.net...
> Hi,
>
> you need to run the same configure script, with an additional option
> specifying the target: --target=ppc-wrs-vxworks or the like. see
configure's
> docs for more information.
>
> Christof
>
> "Venu Madhav Padakanti" <venu_padakanti@yahoo.com> schrieb im Newsbeitrag
> news:55aab3a9.0204081249.19f8ad52@posting.google.com...
> > I am trying to build the GNU tools flex (which in turn needs bison)
> > for the VxWorks. I am using Tornado 3.1 and VxWorks AE 1.1
> > environment.
> >
> >     In the UNIX and also in Cygwin on PC's world I run a script
> > configure to set up/generate the Makefiles and then do a make to build
> > the appropriate libraries and executables.
> >
> >     Can someone share their knowledge about porting these onto
> > VxWorks. I am trying to look for any documentation or any help in that
> > direction.
> >
> >     Appreciate any kind of help on that.
> >
> > Thanks
> > ..venu
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: question: symbol file of bootrom and vxworks
Date: Wed, 10 Apr 2002 13:38:54 GMT
From: "Rob Targosz" <rtargosz@rogers.com>
Message-ID: <OfXs8.35346$cN1.21279@news01.bloor.is.net.cable.rogers.com>
References: <4a7f0d21.0204091635.d21c7d9@posting.google.com>
Some of the VxWorks BSP and BootRom is only available as object code (for
example: file systems), but sysalib.s should be in your
tornado/target/config directory in the folder for the BSP you are using. If
you are using a WRS BSP, check in tornado/target/unsupported/config.
- --
Robert L. Targosz, B.Sc. Math, MCP
Senior Software Engineer
rtargosz@rogers.com
"Saledom" <lisheng_811@yahoo.com.cn> wrote in message
news:4a7f0d21.0204091635.d21c7d9@posting.google.com...
> two beginner's questions about visionIce II, visionclick 7.0 and
> tornado II IDE.
>
> i make a bootable project in the IDE of tornado II, and don't modify
> any defult setting.
>
> 1. i program a bsp and build it's bootrom. since the bootrom is a hex
> or bin file, visionlclick  can not convert it to a symbol file. now i
> debug the bootrom without the source code. is there some method to
> debugging my bootrom with the source code?
>
> 2. i build a vxworks image, then convert to the symbol file using
> visionclick. after i download the symbol file and binary file to my
> target, i  can not find the sysalib.s in the symbol exploer window. if
> i build the vxworks_rom image, convert to symbol file, download to
> target, sysalib.s and romstart.c and rominit.s all are not shown in
> the symbol exploer windows.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: tutorial recommendations for newbie?
Date: 10 Apr 2002 07:12:41 -0700
From: vittala@hotmail.com (Vittal)
Organization: http://groups.google.com/
Message-ID: <6847c39a.0204100612.2c794294@posting.google.com>
References: <a8kqru$sjt$1@sulawesi-fi.lerc.nasa.gov>
Hi,
I would suggest you go through one of the "Operating System" book,
which gives you the basic idea of tasking, multiprocessing, IPC, etc.
There are lot of books and one of them is by Silberstaz (did i get the
spelling correct??) and Galvin.
Hope this helps.
"Laszlo G. Szijarto" <lszijarto@mrdoc.cc> wrote in message news:<a8kqru$sjt$1@sulawesi-fi.lerc.nasa.gov>...
> Hello, Everyone,
>
> Thanks you in advance for you help.
>
> I'm very new to VxWorks (5.3 Solaris development host, PPC604 target).
>
> Could anyone recommend a good tutorial, especially on multitasking,
> semaphores,
> interprocess communications, etc. -- for someone who hasn't done a great
> deal of
> multithreaded programming and doesn't know what a semaphore is.  I'm reading
> the
> WindRiver "Programmer's Guide" -- but the information goes over my head.  No
> examples in that guide.  No basic description of fundamental concepts.
>
> Plus, my company can't afford to send me to WindRiver school right now.
>
> Thank you very much,
> Laszlo
---------------------------
Newsgroups: comp.os.vxworks
Subject: How to debug a page fault?
Date: 10 Apr 2002 07:22:16 -0700
From: vittala@hotmail.com (Vittal)
Organization: http://groups.google.com/
Message-ID: <6847c39a.0204100622.583e4755@posting.google.com>
Hi,
Is there a standard method/approach to debug a page fault. Many of the
times we come across page faults and most of the time, just check one
of the funciton names in the displayed error message and try to debug
it.
The error message displays the offending function at the end and I
think it is because of the LIFO structure of the stack and function
push and pops. So, we start tacing the problem from the function which
is displayed at the end and most of the times we are successful in
debugging the problem. But, I don't think it is a standard approach.
Can anyone give a standard method/approach to be taken to debug a page
fault? Is there any documentation on this from any of the OS
providers? Any web-sites and the like?
Thanks in Advance...
- - Vittal.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: SimNT and WindML
Date: 10 Apr 2002 10:39:35 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <ur8ln1uu0.fsf@yahoo.com>
References: <21c842f4.0204091459.7d8cc913@posting.google.com> <3cb40106$1@brateggebdc5.br-automation.co.at>
Sender: bpringlemeir@DeadDuck
 >> we try starting a project using Tornado II/WindML on SimNT.  The
 >> documentation on WindML says, that the module "ugl_winLib.o" have
 >> to be included in the vxWorks-Image, but it isn't part of the
 >> distribution.
 Werner> Hi, maybe someone can help with that little information.
 Werner> However, I think you should at least mention some of the
 Werner> symbols that are missing (or all if the list is reasonably
 Werner> short).  Further, the steps you took to build the WindML
 Werner> would help to understand the problem.
Werner is right, you should give more information.  However, maybe
these instructions will help.
1. Install Tornado.
2. Install WindML 2.0
3. Build generic graphic driver using the WindML Configuration Tool,
4. Add following files to the project:
udbmffnt.c in $(WIND_BASE)/target/src/ugl/driver/font/bmf/udbmffnt.c
udsimnt.c  in $(WIND_BASE)/target/src/ugl/driver/graphics/simnt/udsimnt.c
uglInit.c  in $(WIND_BASE)/target/src/ugl/config/uglInit.c
5. Link extra object module $(WIND_BASE)/target/lib/objSIMNTgnuvx/simLib.o
I think that the instructions for installing WindML on the simulator
are incorrect.  I don't think that there is a ugl_winLib.o.  I believe
that this is actually simLib.o.  This is a mistake in the install
instructions.  Using the WindML patches is even more trouble as you
must delete some duplicate files that are placed in the the
libSIMNTgnuvx.a by the install programs.
hth,
Bill Pringlemeir.
- --
CHUBBY CHECKER owns my BUILDING!
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: taskDelay bug?
Date: Wed, 10 Apr 2002 16:14:58 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$nf3dug$ke8$1@lnews.actcom.co.il>
References: <9c198a20.0203280707.42c77023@posting.google.com>
I recall one case that taskDelay seemed to be stock,
but later investigation revealed that due to other code,
taskDelay's argument would be anegative value, and despite
the fact that taskDelay prototype declares the argument as
a signed integer, the function actually treats the argument
as an unsigned integer, so a negative value becomes a huge
positive value causing a year's worth of delay.
A simple call to "i" from shell would reveal this in a snap.
Other then this, random memory corruption could cause anything.
Hope this helps.
P.S. You probably need more experience to earn the "system engineer"
title you assumed for yourself ;-)
"System Engineer" <sys_eng30@hotmail.com> wrote in message
news:9c198a20.0203280707.42c77023@posting.google.com...
> Hi All,
>
> Has anybody ever had some troubles with the taskDelay(1)?
>
> It seems that one of the tasks in my application has got stock in this
> procedure. The problem has happened only once, but I want to find the
> root cause anyway.
>
>  Example
>
> semA is a mutual exclusion semaphore.
>
> Task A:
>
> while (1)
> {
>   semTake(semA);
>
>   do_some_stuff();
>
>   semGive(semA);
> }
>
> task B
>
> while(1)
> {
>    taskDelay(1);
>    semTake(semA);
>
>    do_other_things();
>
>    semGive();
> }
>
>
> So the sequence is A -> B -> A ->B
> The priority of the task B is greater than the priority of the task A.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: DosFs File Attributes
Date: Wed, 10 Apr 2002 16:25:37 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$fx3dug$ue8$1@lnews.actcom.co.il>
References: <a7t0u9$hgb@nntpa.cb.lucent.com>
Thanks all for commeting on DosFs2 product status.
Regarding the original problem of changing attributes -
it is rather trivial - the file being opened read-only
won't allow modification of the file, which include file data
and attributes. Open the file O_RDWR and your attribute will
change promptly.
Also, it is a good practice to print errno value if a function
like ioctl() returns a -1, better yet do:
    if ( ioctl(fd, ..., ...) != OK )
        perror("ioctl");
Leonid
"Jim S" <jims@lucent.com> wrote in message
news:a7t0u9$hgb@nntpa.cb.lucent.com...
> Are there any tips on setting attributes for files under DosFs?
> I've tried the documented procedure of:
>
> fd=open("filename", O_RDONLY, 0)
> fstat (fd, &statStruct)
> ioctl (fd, FIOATTRIBSET, statStruct.st_attrib | DOS_ATTR_RDONLY))  /*
> DOS_ATTR_RDONLY = 0x01 */
>
> But the ioctl( ) always returns error (-1) and the file attributes remain
> unchanged.  The files exist (open OK and I can check the size), but the
> attribute always show as 0x0.
>
> Also, what's the deal with dosFs2.0?  Is it part of the standard Tornado
> 2/VxW 5.4?  Seems we have the original dosFs as part of a recent T2/VxW
5.4,
> would this contribute to my problem?  WindSurf offered little insight on
> this.
>
> TIA,
> Jim
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Atomic counter
Date: Wed, 10 Apr 2002 16:44:43 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$8t4dug$af8$1@lnews.actcom.co.il>
References: <9065af8f514816af2948a6cd6023aaa5.38592@mygate.mailgate.org>
I would like to elaborate and clarify:
On some processors, most CISCO and many RISC, a "C" line like this
    counter ++ ;
will be compiled into a single non-interruptable (and thus atomic)
instruction.
for example, on 69k this would be
    addq, 1,(r4)
also most RISC processors will do a similar thing, look at the disassembly
and take notice of the register loading instructions that precede the "add",
the value loaded are constant hence an interrupt in the sequence is not
a problem as long as these three can be done without giving an interrupt
a chanse:
    load counter memory content, increment, save back result
If your CPU does not do this, or you need a portable solution,
and you are shy from using a mutex semaphore, use intLib.h
macros INT_LOCK and INT_UNLOCK, as these should be faster
then intLock() and intUnlock() functions.
Leonid
"Dieter Bahlmann" <velouria@ccii.co.za> wrote in message
news:9065af8f514816af2948a6cd6023aaa5.38592@mygate.mailgate.org...
> Can anyone give me some advice on atomic counters? I need a counter for
> resource counting. Should I use semaphores to lock the counter?
>
> Thanks
>
>
> --
> Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: please help: block device driver stuck
Date: Wed, 10 Apr 2002 17:21:43 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$wi6dug$5i8$1@lnews.actcom.co.il>
References: <a8vqre$8okq@hermes.fundp.ac.be>
This is a multi-part message in MIME format.
- ------=_NextPart_000_00DC_01C1E0C4.B9FD94A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
The first three bytes of a DosFs boot sector should
be a valid 8086 (16 bit) jump instruction, and DosFs2
checks the value for sanity.
Looking again at your boot sector data, it is apparent that
there are other DosFs value which seem quite unreasonable
(e.g. bytes per sector), so I would suggest the sector
you are looking at is not a valid DosFs BootSec, thus changing the code =
checking the first byte won't help much.
My best guest is that this is a partition table sector, hence I would =
suggest using dpartLib.
Leonid
  "VU Khac Tri (home)" <tvk6843@hotmail.com> wrote in message =
news:a8vqre$8okq@hermes.fundp.ac.be...
  Hi folks,
  I'm writing a driver for a block removable device (e.g. Compact Flash =
card reader). Its boot record as following:
  OFFSET 0 1 2 3  4 5 6 7  8 9 A B  C D E F  *0123456789ABCDEF*
  000000 fa33c08e d0bc007c 8bf45007 501ffbfc *.3.....|..P.P...*
  000010 bf0006b9 0001f2a5 ea1d0600 00bebe07 *................*
  000020 b304803c 80740e80 3c00751c 83c610fe *...<.t..<.u.....*
  000030 cb75efcd 188b148b 4c028bee 83c610fe *.u......L.......*
  000040 cb741a80 3c0074f4 be8b06ac 3c00740b *.t..<.t.....<.t.*
  000050 56bb0700 b40ecd10 5eebf0eb febf0500 *V.......^.......*
  000060 bb007cb8 010257cd 135f730c 33c0cd13 *..|...W.._s.3...*
  000070 4f75edbe a306ebd3 bec206bf fe7d813d *Ou...........}.=3D*
  000080 55aa75c7 8bf5ea00 7c000049 6e76616c *U.u.....|..Inval*
  000090 69642070 61727469 74696f6e 20746162 *id partition tab*
  0000a0 6c650045 72726f72 206c6f61 64696e67 *le.Error loading*
  0000b0 206f7065 72617469 6e672073 79737465 * operating syste*
  0000c0 6d004d69 7373696e 67206f70 65726174 *m.Missing operat*
  0000d0 696e6720 73797374 656d0000 00000000 *ing system......*
  0000e0 00000000 00000000 00000000 00000000 *................*
  0000f0 TO 0001af SAME AS ABOVE
  0001b0 00000000 00000000 00000000 00008001 *................*
  0001c0 0100060d fef83e00 00000678 0d000000 *......>....x....*
  0001d0 00000000 00000000 00000000 00000000 *................*
  0001e0 00000000 00000000 00000000 00000000 *................*
  0001f0 00000000 00000000 00000000 000055aa *..............U.*
  I initialize the driver using dosFsDevCreate(). But when I call =
open(filename), its returns ERROR (message: "Malformed boot sector. =
Offset 0, value 250"). I discover that the function dosFsBootSecGet() =
executes a verification for the first byte of the boot sector. If the =
value of this byte is not 0xE9 or 0xEB, then it issues the message.
  Does anyone have idea, how to avoid this happens ?
  Thank you in advance.
  Tri.
  PS. The doc of dosFs2.0 is not updated, and I really get stucked.
- ------=_NextPart_000_00DC_01C1E0C4.B9FD94A0
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 5.50.4912.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DCourier size=3D2>The first three bytes of a DosFs boot =
sector=20
should</FONT></DIV>
<DIV><FONT face=3DCourier>be a valid 8086 (16 bit) jump instruction, and =
DosFs2</FONT></DIV>
<DIV><FONT face=3DCourier>checks the value for sanity.</FONT></DIV>
<DIV><FONT face=3DCourier>Looking again at your boot sector data, it is =
apparent=20
that</FONT></DIV>
<DIV><FONT face=3DCourier>there are other DosFs value which seem quite=20
unreasonable</FONT></DIV>
<DIV><FONT face=3DCourier>(e.g. bytes per sector), so I would suggest =
the=20
sector</FONT></DIV>
<DIV><FONT face=3DCourier>you are looking at is not a valid DosFs =
BootSec, thus=20
changing the code checking the first byte won't help much.</FONT></DIV>
<DIV><FONT face=3DCourier></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier>My best guest is that this is a partition =
table sector,=20
hence I would suggest using dpartLib.</FONT></DIV>
<DIV><FONT face=3DCourier></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier>Leonid</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>"VU Khac Tri (home)" &lt;<A=20
  href=3D"mailto:tvk6843@hotmail.com">tvk6843@hotmail.com</A>&gt; wrote =
in message=20
  <A=20
  =
href=3D"news:a8vqre$8okq@hermes.fundp.ac.be">news:a8vqre$8okq@hermes.fund=
p.ac.be</A>...</DIV>
  <DIV><FONT size=3D2>Hi folks,</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>I'm writing&nbsp;a driver for a block removable =
device (e.g.=20
  Compact Flash card reader). Its boot record as following:</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DCourier size=3D2>OFFSET 0 1 2 3&nbsp; 4 5 6 7&nbsp; =
8 9 A=20
  B&nbsp; C D E F&nbsp; *0123456789ABCDEF*<BR>000000 fa33c08e d0bc007c =
8bf45007=20
  501ffbfc *.3.....|..P.P...*<BR>000010 bf0006b9 0001f2a5 ea1d0600 =
00bebe07=20
  *................*<BR>000020 b304803c 80740e80 3c00751c 83c610fe=20
  *...&lt;.t..&lt;.u.....*<BR>000030 cb75efcd 188b148b 4c028bee 83c610fe =
  *.u......L.......*<BR>000040 cb741a80 3c0074f4 be8b06ac 3c00740b=20
  *.t..&lt;.t.....&lt;.t.*<BR>000050 56bb0700 b40ecd10 5eebf0eb febf0500 =
  *V.......^.......*<BR>000060 bb007cb8 010257cd 135f730c 33c0cd13=20
  *..|...W.._s.3...*<BR>000070 4f75edbe a306ebd3 bec206bf fe7d813d=20
  *Ou...........}.=3D*<BR>000080 55aa75c7 8bf5ea00 7c000049 6e76616c=20
  *U.u.....|..Inval*<BR>000090 69642070 61727469 74696f6e 20746162 *id =
partition=20
  tab*<BR>0000a0 6c650045 72726f72 206c6f61 64696e67 *le.Error=20
  loading*<BR>0000b0 206f7065 72617469 6e672073 79737465 * operating=20
  syste*<BR>0000c0 6d004d69 7373696e 67206f70 65726174 *m.Missing=20
  operat*<BR>0000d0 696e6720 73797374 656d0000 00000000 *ing=20
  system......*<BR>0000e0 00000000 00000000 00000000 00000000=20
  *................*<BR>0000f0 TO 0001af SAME AS ABOVE<BR>0001b0 =
00000000=20
  00000000 00000000 00008001 *................*<BR>0001c0 0100060d =
fef83e00=20
  00000678 0d000000 *......&gt;....x....*<BR>0001d0 00000000 00000000 =
00000000=20
  00000000 *................*<BR>0001e0 00000000 00000000 00000000 =
00000000=20
  *................*<BR>0001f0 00000000 00000000 00000000 000055aa=20
  *..............U.*<BR></FONT></DIV>
  <DIV><FONT size=3D2>I initialize the driver using dosFsDevCreate(). =
But when I=20
  call open(filename), its returns ERROR (message: "Malformed boot =
sector.=20
  Offset 0, value 250"). I discover that the function dosFsBootSecGet() =
executes=20
  a verification for the first byte of the boot sector. If the value of =
this=20
  byte is not 0xE9 or 0xEB, then&nbsp;it issues the =
message.</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>Does anyone have idea, how to avoid this happens=20
  ?</FONT></DIV>
  <DIV><FONT size=3D2>Thank you in advance.</FONT></DIV>
  <DIV><FONT size=3D2>Tri.</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>PS. The doc of dosFs2.0 is not updated, and I =
really get=20
  stucked.</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>
- ------=_NextPart_000_00DC_01C1E0C4.B9FD94A0--
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Atomic counter
Date: 10 Apr 2002 13:36:43 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uit6z1mms.fsf@yahoo.com>
References: <9065af8f514816af2948a6cd6023aaa5.38592@mygate.mailgate.org> <newscache$8t4dug$af8$1@lnews.actcom.co.il>
Sender: bpringlemeir@DeadDuck
 Leonid> I would like to elaborate and clarify: On some processors,
 Leonid> most CISCO and many RISC, a "C" line like this counter ++ ;
[snip]
I would have to disagree with this.  Almost every RISC chip I have
used has a load/store architecture.  It is impossible to increment a
memory variable atomically.  There are often special purpose
instructions that swap a register with a memory location.  This
implements a read/write cycle which the "++" statement does as well,
just not on a single cycle on RISCs I know.
Most CISC implementations do have support for operations on memory and
you can do inc, addq, etc on them to do an atomic increment.  I am not
quite sure about CISCO though ;-).
Regards,
Bill Pringlemeir.
- --
Look DEEP into the OPENINGS!!  Do you see any ELVES or EDSELS...  or a
 HIGHBALL??...
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Default Route from the inside???
Date: 10 Apr 2002 10:42:23 -0700
From: kenb88@hotmail.com (Whacked)
Organization: http://groups.google.com/
Message-ID: <6755aee5.0204100942.19b97957@posting.google.com>
A program that I am writing requires that I lookup the default route
from the routing table. Probably a simple question, but how the heck
do you do it? There is RouteAdd, RouteDelete, RouteShow, but now
RouteGet. Certainly the kernel has to look it up for every packet
going off the LAN. How can I look it up?
thanks in advance,
---------------------------
Newsgroups: comp.os.vxworks
Subject: How to redirect stdout to /dev/null?
Date: 10 Apr 2002 10:50:39 -0700
From: gbaker@turinnetworks.com (Glen Baker)
Organization: http://groups.google.com/
Message-ID: <edd6b700.0204100950.77001491@posting.google.com>
Has anybody got a cool way to redirect stdout to (the equivalent of)
/dev/null? It seems like ioGlobalStdSet() should do the trick if I can
somehow conjure up a file descriptor that goes nowhere...
email would be appreciated.
Thanks,
..glen
---------------------------
Newsgroups: comp.os.vxworks
Subject: Using default route on VxWorks 5.3.1
Date: Wed, 10 Apr 2002 14:00:50 -0400
From: "Lauren Terner" <lterner@mindspring.com>
Organization: MindSpring Enterprises
Message-ID: <a91uo6$k2d$1@slb6.atl.mindspring.net>
It seems that whenever I add a default route to the routing table, ping
insists on
contacting the default gateway for every ip, including ip's on the local
lan.  It appears
that it is always trying to do a reverse lookup using gethostbyaddr().  As a
result, the
ping won't succeed unless you name the target ip in the host table.  Will
the connect()
system call also perform this weird routing before establishing a TCP
connection?
I am running VxWorks on PowerPc 860 Artesyn Board.
Can someone offer an explanation?
Your help is appreciated.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Problem when using cout << long-long-var
Date: 10 Apr 2002 18:12:44 GMT
From: Denis Perelyubskiy <denis_newsREMOVE-TO-REPLY@hotmail.com>
Message-ID: <slrnab904s.6vu.denis_newsREMOVE-TO-REPLY@concorde.cs.ucla.edu>
References: <a8umgh$vbb7v$1@ID-79865.news.dfncis.de> <8ad6x9yp8e.fsf@mlinux.pd.infn.it> <a8uus6$h05$1@narses.hrz.tu-chemnitz.de> <slrnab75tk.4k0.denis_newsREMOVE-TO-REPLY@finch.lecs.cs.ucla.edu> <a90qm7$njj$5@narses.hrz.tu-chemnitz.de> <3CB412AD.8C7C0425@bellsouth.net>
 * joe durusau <durusau@bellsouth.net> [04-Wed-02 03:23 -0700]:
 >
 > Andr Pnitz wrote:
 > > In gnu.g++.help Denis Perelyubskiy
 > > <denis_newsREMOVE-TO-REPLY@hotmail.com> wrote:
 > > > Feel free to correct me if I misunderstood something, but
 > > > isn't it just this:
 > > >
 > > > Section 6.2.5 Types, Point 4:
 > > >
 > > >    There are five standard signed integer types,
 > > >    designated as signed char, short int, int, long
 > > >    int, and long long int.  (These and other types
 > > >    may be designated in several additional ways, as
 > > >    described in 6.7.2.) There may also be
 > > >    implementation-defined extended signed integer
 > > >    types.28) The standard and extended signed integer
 > > >    types are collectively called signed integer
 > > >    types.29)
 > > >
 > > > this seems to talk about 'long long int'...
 > >
 > > Indeed, this seems to talk about long long ints.
 > >
 > > However, my copy of ISO 14882-1998 has no section 6.2.5
 > > and Section 6.2 is named 'Expression statement'
 > > 'Fundamental types' are listed in Section
  [...]
 > Perhaps the problem being seen is due to the gnu compiler
 > which most of us are using in vxWorks projects is much
 > older than 1998, and therefore does not support long
 > long.  Whether the C, C++, or ISO standards specify the
 > type is not the issue, at least for vxWorks.  It's
 > whether your particular compiler supports this type, and
 > the gcc I have with Tornado/vxWorks does not.
I agree that this point is very moot :), since its not clear
when, what, if the c99 will make it into any of WRS supplied
compilers... at least for our x86 architecture anyway. The
hope is that we will be seeing some of that in the upcoming
(at least I think it is upcoming) 2.96.x ....
Oh, and to comment on Andre's post: I was quoting from
ISO/IEC 9899:1999 (E)... but as I said earlier, agreeing
with Joe, that .. WHO CARES! :)
denis
- --
if you want to reply by mail, please tweak my
address in a reasonable way. sorry for the
inconvenience.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Showing information about semaphores in Tornado Shell
Date: Wed, 10 Apr 2002 13:14:43 -0500
From: Andrew Johnson <anj@aps.anl.gov>
Organization: APS, Argonne National Laboratory
Message-ID: <3CB48113.A472E56D@aps.anl.gov>
References: <a91blb$umnnf$1@ID-79865.news.dfncis.de>
Alex Vinokur wrote:
>
> semShow() shows information about a specific semaphore (semId).
>
> It is possible to show list of all semaphores (their semId's)?
No, because vxWorks doesn't keep track of where they all are.  If you want
to do that for your application you'll have to create your own list and
semShowAll() routine.
This might no longer be true for vxWorks AE though...
- - Andrew
- --
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away.
- - Antoine de Saint-Exupery
---------------------------
Newsgroups: comp.os.vxworks
Subject: !!! Software-Designer (u.a. C, Realtime, Multiprozessor) sucht neues Projekt !!!
Date: Wed, 10 Apr 2002 20:58:21 +0200
From: "M.Thoemel" <matthias.thoemel@t-online.de>
Organization: T-Online
Message-ID: <a9220d$8hb$03$1@news.t-online.com>
Guten Tag,
ich bin freier Systemprogrammerer und C-Designer mit einem sehr breiten
Spektrum.
Ich suche ab dem Juli/2002 ein neues, interessantes und herausforderndes
Projekt
entweder als freier Mitarbeiter oder als Angestellter. Sie knnen sich auf
meiner
Website im Detail ber meine Fhigkeiten informieren:
http://matthias.thoemel.bei.t-online.de
Meine Schwerpunkte sind:
- - C (aber auch: Fortran, Basic, Assembler, ...)
- - Realtimesysteme (VxWorks, ...)
- - Window-Systeme (Windows-XP/2000/98, Linux, ...)
- - systemnahe Programmierung
- - 3D-Software
- - Anwendungsprogrammierung
- - UML (RoseRT)
- - spezielle Hardware-Schnittstellen
- - Netzwerke
- - Treiber
- - Streamsdriver
- - Grafische Datenauswertung/Darstellung
- - Software-Messungen
- - Gruppenleitung
- - Projektierung
- - Projektleitung
  etc...
Ich wrde mich ber einen Kontakt mit Ihnen freuen.
Ihr Matthias Thmel
(mailto:matthias.thoemel@t-online.de)
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: please help: block device driver stuck
Date: Wed, 10 Apr 2002 21:05:31 +0200
From: "VU Khac Tri \(home\)" <tvk6843@hotmail.com>
Organization: FUNDP, Namur, Belgium
Message-ID: <a92d9n$9c3q@hermes.fundp.ac.be>
References: <a8vqre$8okq@hermes.fundp.ac.be> <newscache$wi6dug$5i8$1@lnews.actcom.co.il>
Hi Leonid,
Thank you for your suggetion. I looked further data on the device and found
that the first sector is only the boot master record which contains the
device's partition table, the next sector (512bytes) contains dosFs record.
Thank you for your help.
Tri.
PS. Would you please tell me where I can get the document of dpartLib. I got
dosFS2.0 and the version VxWorks 5.4, but I cannot find any docs for this
lib.
============
"Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message
news:newscache$wi6dug$5i8$1@lnews.actcom.co.il...
The first three bytes of a DosFs boot sector should
be a valid 8086 (16 bit) jump instruction, and DosFs2
checks the value for sanity.
Looking again at your boot sector data, it is apparent that
there are other DosFs value which seem quite unreasonable
(e.g. bytes per sector), so I would suggest the sector
you are looking at is not a valid DosFs BootSec, thus changing the code
checking the first byte won't help much.
My best guest is that this is a partition table sector, hence I would
suggest using dpartLib.
Leonid
"VU Khac Tri (home)" <tvk6843@hotmail.com> wrote in message
news:a8vqre$8okq@hermes.fundp.ac.be...
Hi folks,
I'm writing a driver for a block removable device (e.g. Compact Flash card
reader). Its boot record as following:
OFFSET 0 1 2 3  4 5 6 7  8 9 A B  C D E F  *0123456789ABCDEF*
000000 fa33c08e d0bc007c 8bf45007 501ffbfc *.3.....|..P.P...*
000010 bf0006b9 0001f2a5 ea1d0600 00bebe07 *................*
000020 b304803c 80740e80 3c00751c 83c610fe *...<.t..<.u.....*
000030 cb75efcd 188b148b 4c028bee 83c610fe *.u......L.......*
000040 cb741a80 3c0074f4 be8b06ac 3c00740b *.t..<.t.....<.t.*
000050 56bb0700 b40ecd10 5eebf0eb febf0500 *V.......^.......*
000060 bb007cb8 010257cd 135f730c 33c0cd13 *..|...W.._s.3...*
000070 4f75edbe a306ebd3 bec206bf fe7d813d *Ou...........}.=*
000080 55aa75c7 8bf5ea00 7c000049 6e76616c *U.u.....|..Inval*
000090 69642070 61727469 74696f6e 20746162 *id partition tab*
0000a0 6c650045 72726f72 206c6f61 64696e67 *le.Error loading*
0000b0 206f7065 72617469 6e672073 79737465 * operating syste*
0000c0 6d004d69 7373696e 67206f70 65726174 *m.Missing operat*
0000d0 696e6720 73797374 656d0000 00000000 *ing system......*
0000e0 00000000 00000000 00000000 00000000 *................*
0000f0 TO 0001af SAME AS ABOVE
0001b0 00000000 00000000 00000000 00008001 *................*
0001c0 0100060d fef83e00 00000678 0d000000 *......>....x....*
0001d0 00000000 00000000 00000000 00000000 *................*
0001e0 00000000 00000000 00000000 00000000 *................*
0001f0 00000000 00000000 00000000 000055aa *..............U.*
I initialize the driver using dosFsDevCreate(). But when I call
open(filename), its returns ERROR (message: "Malformed boot sector. Offset
0, value 250"). I discover that the function dosFsBootSecGet() executes a
verification for the first byte of the boot sector. If the value of this
byte is not 0xE9 or 0xEB, then it issues the message.
Does anyone have idea, how to avoid this happens ?
Thank you in advance.
Tri.
PS. The doc of dosFs2.0 is not updated, and I really get stucked.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Atomic counter
Date: Wed, 10 Apr 2002 19:34:55 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CB4945C.4010407@spamm.me.l8s.co.uk>
References: <9065af8f514816af2948a6cd6023aaa5.38592@mygate.mailgate.org> <newscache$8t4dug$af8$1@lnews.actcom.co.il> <uit6z1mms.fsf@yahoo.com>
Bill Pringlemeir wrote:
>  Leonid> I would like to elaborate and clarify: On some processors,
>  Leonid> most CISCO and many RISC, a "C" line like this counter ++ ;
> [snip]
>
> I would have to disagree with this.  Almost every RISC chip I have
> used has a load/store architecture.  It is impossible to increment a
> memory variable atomically.  There are often special purpose
> instructions that swap a register with a memory location.  This
> implements a read/write cycle which the "++" statement does as well,
> just not on a single cycle on RISCs I know.
>
> Most CISC implementations do have support for operations on memory and
> you can do inc, addq, etc on them to do an atomic increment.  I am not
> quite sure about CISCO though ;-).
I've also seen compilers that convert x++ to x=x+1 before doing anything
with it.  For complicated lvalues 'x' can be calculated separately using
different registers - even when a memory increment is available.
What locking you need sort of depends on what else might be playing
with the variable.  For a single cpu system disabling interrupts by
modifying the cpu flags is usually cheapest.
For multi-cpu systems in can be worth using tricks to avoid having
to lock at all. eg: per cpu counters.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: L2 cache
Date: 10 Apr 2002 12:42:24 -0700
From: triniatlarge@yahoo.com (lovell James)
Organization: http://groups.google.com/
Message-ID: <a66abf95.0204101142.20f7bfc8@posting.google.com>
I am trying to enable L2 cache on a PPc 755 board. Do I need to set
the W(writethrough) bit for the WIMG settings in the PTE and also set
the writethrough bit L2WT in the L2 cache control register?
Thanks
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Set IP_TOS won't work for for TCP handshake packet
Date: 10 Apr 2002 13:29:18 -0700
From: xukaih@yahoo.ca (xukaih)
Organization: http://groups.google.com/
Message-ID: <317b63da.0204101229.3d7c06a9@posting.google.com>
References: <317b63da.0204091338.3f3d296@posting.google.com>
It is becoming more interesting:
At client side, the TOS of all packets are correct,
including SYN, ACK of SYN.
The only Packet which not set is SYN,ACK of SYN
from server.
So I put getsocketopt and printinfo right before
and after accept().
The result of print shows:
Before accept, master socket has correct TOS.
After accept, master socket has correct TOS,
slave socket has TOS set to default.
This is no-blocking accept, and accept() returns
with valid new socket ID.
Is this problem in vxworks, as it indicates
new socket should be created with same
properties as master ?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to redirect stdout to /dev/null?
Date: 10 Apr 2002 13:44:24 -0700
From: gbaker@turinnetworks.com (Glen Baker)
Organization: http://groups.google.com/
Message-ID: <edd6b700.0204101244.a97672@posting.google.com>
References: <edd6b700.0204100950.77001491@posting.google.com>
Sigh. I haven't had to respond to one of my own postings since the
80's (back when Usenet was such a nice place).
Anyway...nevermind. Figured it out. Dumb. Easy. Think before posting.
Etc.
..glen
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: IpRouting
Date: 10 Apr 2002 14:20:07 -0700
From: tlksk@hotmail.com (Kumar)
Organization: http://groups.google.com/
Message-ID: <f01af1e2.0204101320.6e4e52e3@posting.google.com>
References: <Jins8.20295$7F1.3041@nwrddc02.gnilink.net>
Hmm why cant you contact windriver alternatively use freeBSD code.
"Verizon" <vze399g7@verizon.net> wrote in message news:<Jins8.20295$7F1.3041@nwrddc02.gnilink.net>...
> Hi,
>
>  Does anybody know if you can get source code for ip routing in VxWorks
> 5.4x?
> We have code from 5.3 that we have modified and we MAY need to upgrade.
> Wondering
> how much of a pain it is going to be to modify the code to fit into 5.4.
>
> Any help would be appreciated...
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Compiling GNU code for VxWorks AE
Date: 10 Apr 2002 14:44:18 -0700
From: venu_padakanti@yahoo.com (Venu Madhav Padakanti)
Organization: http://groups.google.com/
Message-ID: <55aab3a9.0204101344.60c91b6@posting.google.com>
References: <55aab3a9.0204081249.19f8ad52@posting.google.com> <a8uo0u$26v$1@newsread1.arcor-online.net> <a91es6$sgi$1@newsread1.arcor-online.net>
Christof
   I am using a cygwin environment to generate the C source code files
from flex and bison but I need to build libflex.a to link some symbols
in the generated code. So the task at my hand is to compile the
libflex.a in VxWorks environment.
   I realised that we do not need to build the flex and bison tools.
   I have tried to use the --target=ppc_wrs_vxworks (as suggested)
kind of environment but it did not understand the target right.
   Hope it helps.
Thanks
..venu
"Christof Wehner" <dont_spam_christof.wehner@nospam.arcor.de> wrote in message news:<a91es6$sgi$1@newsread1.arcor-online.net>...
> Oooooh - got the text wrong :-( sorry for that.
> My comments below ARE correct if you want to build tools that cross-compile
> etc. for VxWorks.
>
> Your message seems to imply you want to RUN flex & bison on YOUR TARGET
> SYSTEM (no shout...!). Why do you want to do that? VxWorks is not intended
> to be the development system...
>
> PLease explain a bit more what you want to do.
>
> Thanks, and sorry ;-)
>
> Christof
>
> "Arcor News" <dont_spam_christof.wehner@nospam.arcor.de> schrieb im
> Newsbeitrag news:a8uo0u$26v$1@newsread1.arcor-online.net...
> > Hi,
> >
> > you need to run the same configure script, with an additional option
> > specifying the target: --target=ppc-wrs-vxworks or the like. see
>  configure's
> > docs for more information.
> >
> > Christof
> >
> > "Venu Madhav Padakanti" <venu_padakanti@yahoo.com> schrieb im Newsbeitrag
> > news:55aab3a9.0204081249.19f8ad52@posting.google.com...
> > > I am trying to build the GNU tools flex (which in turn needs bison)
> > > for the VxWorks. I am using Tornado 3.1 and VxWorks AE 1.1
> > > environment.
> > >
> > >     In the UNIX and also in Cygwin on PC's world I run a script
> > > configure to set up/generate the Makefiles and then do a make to build
> > > the appropriate libraries and executables.
> > >
> > >     Can someone share their knowledge about porting these onto
> > > VxWorks. I am trying to look for any documentation or any help in that
> > > direction.
> > >
> > >     Appreciate any kind of help on that.
> > >
> > > Thanks
> > > ..venu
> >
> >
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to redirect stdout to /dev/null?
Date: 10 Apr 2002 15:17:32 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204101417.23840a69@posting.google.com>
References: <edd6b700.0204100950.77001491@posting.google.com>
Hello,
> Has anybody got a cool way to redirect stdout to (the equivalent of)
> /dev/null? It seems like ioGlobalStdSet() should do the trick if I can
> somehow conjure up a file descriptor that goes nowhere...
Open /null and that will get you the fd you need.
HTH,
John...
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Showing information about semaphores in Tornado Shell
Date: 10 Apr 2002 15:24:04 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204101424.42736ca5@posting.google.com>
References: <a91blb$umnnf$1@ID-79865.news.dfncis.de> <3CB48113.A472E56D@aps.anl.gov>
Hello,
Andrew Johnson <anj@aps.anl.gov> wrote in message news:<3CB48113.A472E56D@aps.anl.gov>...
> Alex Vinokur wrote:
> >
> > semShow() shows information about a specific semaphore (semId).
> >
> > It is possible to show list of all semaphores (their semId's)?
>
> No, because vxWorks doesn't keep track of where they all are.  If you want
> to do that for your application you'll have to create your own list and
> semShowAll() routine.
>
> This might no longer be true for vxWorks AE though...
It isn't true for AE... all the kernel objects are 'tracked' since
they are all owned by another object. That allows you to display any
part of the object tree, or, using the tools, examine the complete
list of objects by class.
Since the objects can also now be named, these tools will also display
the name of the object (which can be very convenient for debugging
assuming you take the time to give your objects [meaningful] names).
This ownership model is also the basis for the resource reclamation
feature in VxWorks AE - when an object is deleted, all the objects
that it owns will also be deleted.
HTH,
John...
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Compiling GNU code for VxWorks AE
Date: 10 Apr 2002 15:26:28 -0700
From: Joe Chung <nospam@nospam.invalid>
Message-ID: <rps4rijmbqj.fsf@nospam.invalid>
References: <55aab3a9.0204081249.19f8ad52@posting.google.com> <a8uo0u$26v$1@newsread1.arcor-online.net> <a91es6$sgi$1@newsread1.arcor-online.net> <55aab3a9.0204101344.60c91b6@posting.google.com>
venu_padakanti@yahoo.com (Venu Madhav Padakanti) writes:
> Christof
>
>    I am using a cygwin environment to generate the C source code files
> from flex and bison but I need to build libflex.a to link some symbols
> in the generated code. So the task at my hand is to compile the
> libflex.a in VxWorks environment.
>
>    I realised that we do not need to build the flex and bison tools.
>
>    I have tried to use the --target=ppc_wrs_vxworks (as suggested)
> kind of environment but it did not understand the target right.
>
>    Hope it helps.
>
> Thanks
> ..venu
Um, you don't really need to "port" libfl.a (libflex).
libfl.a only defines two functions:
int main(int argc, char *argv[])
{
  while(yylex() != 0) ;
  return 0;
}
int yywrap()
{
  return 1;
}
Thus, if you already have a call to yylex() in your code and you
use the
%option noyywrap
in your .l file, then you don't need libfl.a.
- -jc
- --
(apply 'concat (reverse (list "com"
                              (char-to-string 46) "yahoo"
                              (char-to-string 64) "joechung")))
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: RESUME: C/C++, Tornado/VxWorks, TCP/IP, Real-time embedded (Control) systems
Date: Wed, 10 Apr 2002 18:05:12 -0700
From: "John Wynne" <jwynne@uci.edu>
Organization: University of California, Irvine
Message-ID: <a92ncv$ojs$1@news.service.uci.edu>
References: <18ca8ef6.0204090952.3d9bf845@posting.google.com>
Reply-To: "John Wynne" <jwynne@uci.edu>
> Bijan Nazem
> No. 99, Greenwin village Rd.
> Toronto, Ontario, M2R 2S4
> Tel:(416) 733-2145
> BijanNazem@hotmail.com
>
> Objective:
>
>     To obtain a position as an Embedded, real-time software engineer,
>     in which I can utilize my present skills and further enhance my
>     knowledge with diverse applications.
>
> Education:
>
>     9/93 to 2/96 M.Sc. Degree in Electrical Engineering
>                  (Major: Control Eng.)(Isfahan University of
>
>           Technology, Isfahan- Iran) GPA 17.78 out of 20
>
>     9/88 to 2/93 B.Sc. Degree in Electrical Engineering
>                 (Major: Electronic Eng.)(Shiraz University, Shiraz-
>
>                        Iran)                       GPA 16.89 out of 20
>
> Experiences and technical skills:
>
> Expert at:
>     . C and C++ programming language                         5 years
>     . Object oriented programming                            5 years
>     . VxWorks operating systems (Real-time operating system) 4 years
>     . Tornado development environment                        4 years
>     . TCP/IP network programming for Windows NT and VxWorks  4 years
>     . MVME 162 (Motorola) embedded controller (68k family)   4 years
>     . Win32 multithread programming                          3 years
>     . VME bus and multiprocessors environment                4 years
>     . Device driver for VxWorks (Low-level programming for hardware
>       interfacing)                                           4 years
>     . Serial port communication programming for Windows NT and
>       VxWorks                                                4 years
>     . Control system design and closed loop control systems  5 years
>     . Real-time control systems                              4 years
>     . MATLAB and Simulink                                    5 years
>     . MOORE DCS system (IEC 1131-3)                          3 years
>
> good at:
>     . Microsoft .NET framework and C# language
>     . Microsoft Visual C++, MFC, ActiveX, XML and GUI design
>     . ODBC, SQL and database access using Visual C++
>     . DSP (TMS 6000 series) assembly language and archetecture
>     . Windows NT/2000 archetecture and configuration
>     . Device driver for windows NT using DriverWorks and Softice
>     . Digital signal processing and filtering
>     . IEC 1131-3 standard programming language
>     . Citect (A PC-based SCADA system)
>     . LabView (G programming)
>     . PLC GE-Fanuc
>
> Employment and working history:
>     4/96 to 2001 IRISA (Industrial Automation and MIS systems
> Company),
>     Job title: Software Engineer.
>     . MVME-162 embedded controller (A SBC board made by Motorola)
>       configuration and system level programming for VxWorks running
>       on that hardware.
>     . Object oriented device driver for IP ADC, IP DAC and IP-
>       Quadrature Modules to provide interface between hardware (I/O)
>       and application.
>     . Design and implementation of 3964 protocol (A character based
>       protocol for communicating with Siemens mini-computers and PLCs
>       in C++ language for VxWorks and Windows NT (Win32).
>     . Design and implementation of Modbus on ethernet protocol (an
>       industrial network protocol for communication with SCADA
> systems)
>       in C++ language for VxWorks targets.
>     . Design and development of some communication tasks for VxWorks
>       on one side and LabView (running on Windows NT workstation) on
>       the other side using TCP/IP protocol in order to enable computer
>       room engineer to set parameters on embedded controllers and see
>       real-time data with 1-msec resolution through LabView
> application.
>     . Design and implementation of complicated closed loop control
>       systems and digital filters using MATLAB/Simulink and coding
>       them in C++ (VxWorks, VME, MVME-162) to implement AGC and
>       thickness control system for the hot strip finishing mill of
>       Mobarakeh Steel Company (A plant in Isfahan-Iran with 3.5
>       million tons per year productivity)
>     . Writing device driver for VMIVME-5576 (A reflective memory card
>       made by VMIC for VME bus)to reading and writing data and
>       generating and catching interrupts for VxWorks .
>     . Writing device driver for VMIPCI-5576 (A reflective memory card
>       made by VMIC for PCI bus)to reading and writing data and
>       generating and catching interrupts for Windows NT using
>       DriverWorks.
nice.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Why bootrom made myself can not activate my network interface?
Date: 10 Apr 2002 19:33:03 -0700
From: liandongzhang@hotmail.com (liandongzhang)
Organization: http://groups.google.com/
Message-ID: <83f4aa95.0204101833.4cec8377@posting.google.com>
my network interface is 3Com EtherLink III ISA (3C509/3C509b) in ISA
mode
i configure the config.h in Pentium BSP.
and under GUI  Build>build bootrom i rebuild the bootrom_uncmp
then i use mkboot.bat make a boot disk.
my boot parameters is :
"elPci(0,0)ldzhang:D:\Project\bootdisk\vxworks.st h=192.168.10.169
e=192.168.10.171 u=wintar pw=11 tn=target"
this make can't cotinue my work.
Can anybody tell why ?
---------------------------
Newsgroups: comp.os.vxworks
Subject: how can debug tNetTask?
Date: 10 Apr 2002 20:09:00 -0700
From: hammer_chang@263.net (zhangyonghong)
Organization: http://groups.google.com/
Message-ID: <f83209fa.0204101908.13c6d6d1@posting.google.com>
I have the tcp/ip source code.thanks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Tornado for Industrial Automation
Date: 10 Apr 2002 22:21:36 -0700
From: techsoul2001@yahoo.com (raghuram)
Organization: http://groups.google.com/
Message-ID: <e04d465b.0204102121.32b849ec@posting.google.com>
vxworks
Hi all,
We are in the processs of designing a process control system using
SBCs. These SBCs would perform data acquisition and control and should
have OPC server functionality.  Third party HMI packages like
Wonderware running on external PCs would have OPC client functionality
and serve as operator Interfaces in this scheme. There would be a
bi-directional data exchange.
I would like to know if any body has used VxOPC for such typical
temperature control of chamber type of applications. I am worried
about the data throughput of this OPC client server functionality as
the response time specifications of the system specify one second.
Any feedback regarding VxOPC performance is highly appreciated.
VxOPC is very expensive. From this forum I understand that using
VxWorks+VxDCOM and building our own OPC server on that, we can still
achieve the same functionality. But I am apprehensive about the time
factor as I am not sure how much time this is going to take.
I understand that there are some third party packages available for
VxWorks that provide this functionality. Any hints/suggestions are
appreciated.
Thanks and best regards.
---------------------------
Newsgroups: comp.os.vxworks
Subject: VxWorks driver development
Date: 10 Apr 2002 22:29:35 -0700
From: techsoul2001@yahoo.com (raghuram)
Organization: http://groups.google.com/
Message-ID: <e04d465b.0204102129.582ae76@posting.google.com>
VXWORKS
Hi,
National Instruments offers ESP488 source code for their GPIB/ENET100
(Ethernet to GPIB converter)product. I was told that using this source
code package, it is easy to develop a driver for this product for
VxWorks.
I would like to know if anybody had used this ESP-488 software to
develop a driver for this GPIB/ENET100 product for VxWorks. Any hints
/ suggestions are  appreciated.
Thanks and best regards.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: how can debug tNetTask?
Date: Thu, 11 Apr 2002 07:38:14 GMT
From: "Ofer Goren" <ofer_goren@iamba.com>
Organization: Verio
Message-ID: <newscache$n6aeug$6ua$1@lnews.actcom.co.il>
References: <f83209fa.0204101908.13c6d6d1@posting.google.com>
HI.
If you have the source code, I think you should first change the taskSpawn
of tNetTask option parameter, so it wont be UN_BREAKABLE.
Then, you will have to connect to the target with serial, or other means
that are not network-based.
HTH.
"zhangyonghong" <hammer_chang@263.net> wrote in message
news:f83209fa.0204101908.13c6d6d1@posting.google.com...
> I have the tcp/ip source code.thanks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: format of vxWorks exe image for x86 architecure.
Date: Thu, 11 Apr 2002 09:26:21 +0100
From: "Paul Madle" <madlep@logica.com>
Organization: Logica UK Ltd
Message-ID: <1018513583.721564@ernani.logica.co.uk>
References: <1018358891.867216@ernani.logica.co.uk> <a912ua$ai1$1@snoopy.bndlg.de>
Michael,
Thanks for the tip, I've had a look at elf.h. Unfortunately I don't think
the executable image I'm compiling is in elf format.
I do know that the 2nd and 3rd 32 bits of the executable image file
represent the size of the .data and .text. Does anyone know where the format
of this file is defined? (x86 architecture).
Paul.
"Michael Lawnick" <Lawnick@softec.de> wrote in message
news:a912ua$ai1$1@snoopy.bndlg.de...
> Hi Paul,
>
> elf.h might give you the kick for start.
> HTH
> Michael
>
> "Paul Madle" <madlep@logica.com> schrieb im Newsbeitrag
> news:1018358891.867216@ernani.logica.co.uk...
> I have been attempting to perform a CRC check of an executable vxWorks
image
> as part of the images execution by comparing the CRC before and during
> execution.
> The CRC comparison fails because the image is not entirely static during
> execution. I therefore need to know the format of a vxworks image on an
x86
> architecture.
>
> Having looked at the programmers guide (5.4 page 450) and the map file
>  using -M linker flag ), I have concluded that the image is split into
these
> chunks:
>
> 00000000 00080568 2** 3d .text
> 00000000 00014540 2** 3d .data
> 00000000 0029b960 2** 3d .bss
> 0029b960 00002490 2** 3d COMMON
>
> (taken from map file)
>
> after further analysis, I've found that the executable code is found in
the
> ".text" section which is found after the "COMMON" section.
>
> In essence, I beleive that the executable file looks like this:
>
> ------------- @ offset 0x0 from file beginning
> | COMMON |
> ------------- @ offset 0x2490 from file beginning
> | .text |
> -------------
> : :
> : :
>
> Most of this ".text" section appears to be the same both before and during
> execution. However The last part of the .text section changes during
> execution and my CRC therefore fails.
>
> Its possible I'm not finding the size of the ".text" section correctly. If
> anyone knows how you go about finding the size of this section, please
help!
>
> Any information of the format of a vxworks executable image on an x86
> architecture would be useful.
>
> Thanks,
>
>
>
> Paul.
>
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Target Shell : command rejected
Date: Thu, 11 Apr 2002 11:46:01 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a93idr$2js$1@ID-79865.news.dfncis.de>
=========================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : ccsimpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=========================================================
Project Type : bootable VxWorks image (custom configured)
=========================================================
I want to use Target Shell.
All 'target shell componets' are included :
* shell banner (macro INCLUDE_SHELL_BANNER)
* shell startup script (macro INCLUDE_STARTUP_SCRIPT)
* target debugging (macro INCLUDE_DEBUG)
* target shell (macro INCLUDE_SHELL)
However,  the shell command is rejected.
|| ------ The Target Simulator Window : BEGIN ------
|| Target Shell Banner is omitted
Development System
VxWorks version 5.4.2
KERNEL: WIND version 2.5
Copyright Wind River Systems, Inc., 1984-1999
CPU: VxSim for Windows.  Processor #0.
Memory Size: 0x200000.  BSP version 1.1/1.
WDB: Ready.
- -> help
undefined symbol: help
- ->
|| ------ The Target Simulator Window : END --------
Any explanation?
Thanks in advance,
 --
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: pciIntConnect
Date: 11 Apr 2002 03:56:24 -0700
From: zhoul@blrcsv.china.bell-labs.com (zlybupt)
Organization: http://groups.google.com/
Message-ID: <989cdae4.0204110256.faeb5a5@posting.google.com>
Hi all:
   when I use pciIntConnect to connect a ISR to a irq,i use like that
 if (pciIntConnect((VOIDFUNCPTR *)INUM_TO_IVEC(device->irq +
INT_NUM_IRQ0),
                &NICInterrupt,  PARA)!=OK)
 HERE i have two problems:
   1.the system tells me INT_NUM_IRQ0 not defined and I cannot find it
in any *.h file ,is it necessary to add it?
   2.If the parameters I want to pass to the ISR is more than one ,how
do I pass it,using which form? Can somebody give me an example?
   Thank you in advance!
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Thu Apr 11 06:12:23 2002
From: Ilia Bosis <Ilia_Bosis@packetlight.com>
Date: Thu Apr 11 06:12:25 PDT 2002
Subject: VxWorks/SourceSafe bizar problem
Welcome to the club :( .
The point, in short, is that the MS VSS tool converts the files to the DOS
format
(CR/LF at the end of line) before storing them in it's database.
TCL scripts used by Tornado, on another hand, assume UNIX format (LF)
and does not like the CR/LF.
Solutions are either:
-- Save the .wsp and .wpj files as BINARY.
   That prohibits the translation, but make it impossible to see differences
in VSS.
-- Modify the TCL scripts to make it accept the DOS file format.
Details are in the VxWorks FAQ:
http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html section 1.12.
That FAQ is a very good resource, by the way. Keep it on Your bookmarks.
Hope, this helps.
			Ilia.
> Newsgroups: comp.os.vxworks
> Subject: VxWorks/SourceSafe bizar problem
> Date: Mon, 8 Apr 2002 20:01:30 +0200
> From: "Rami Gideoni" <rgideoni@rugged.com>
> Organization: Internet Gold, ISRAEL
> Message-ID: <a8sic6$hd8$1@news.inter.net.il>
>
> Hi,
>
> I'm checking in file in .wpj (VxWorks project file) extension and when I'm
> checking it out -- I find out that the size of the file was altered.
>
> MS-DOS fc (file compare) utility find no difference between the two files
--
> the same is true also for the text editor I'm using
>
> when I check in ZIP version of the file -- the problem disappear.
>
> Any idea will be welcomed.
>
>
> RamiG
--------------------------------------------
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  Thu Apr 11 06:53:32 2002
From: "Joe Welfeld" <jwelfeld@paragon-networks.com>
Date: Thu Apr 11 06:53:34 PDT 2002
Subject: Tornado 2.02 With Diab compiler 4.4b
Hello All,
I have just Installed the Diab Compiler on Tornado 2.02 and was wondering if
anyone has seen this problem ? I modified project files etc... and the Diab
compiler appears to be working fine.  The problem appeared when I tried to
compile code that needed variable argument support.
Whenever I build a file with varargs I would get an unresolved on va_start.
I re-read through the install notes and found that in Tornado under the
"VxWorks Tab" - "development tool chain" there are 3 Diab options to
include.
Diab RTA Support  (which I can include in the project just fine)
Diab Packet/Swap Support
Diab Variable Argument Support
The Packet and Var Arg support are in italics and if I try to include them
I get an option not installed ?
I have re-installed, with the latest Diab Patch (multiple times,  even
started from scratch). And have been working with Support,  but nothing has
worked so far.
I was wondering if anyone has seen this problem ?  or can point me in the
right direction ?
Thanks,
Joe Welfeld
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/_/
Joe Welfeld                                   Software Manager IP Services
Paragon Networks International              Http://www.paragon-networks.com
61 Commerce Dr.                                 Brookfield Ct. 06804
203-740-3650 Ext:602
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/_/
From vxwexplo-errs@csg.lbl.gov  Thu Apr 11 11:26:20 2002
From: Perry Seip <perry.seip@nexgencom.net>
Date: Thu Apr 11 11:26:23 PDT 2002
Subject: CRC checks
I am designing a system using vxWorks with several PPC boards in a VME
chassis.  Communication between the tasks on the boards is done via a
custom "hub" design where all messages are routed through a central hub
process on each board.  Currently, a CRC is tacked onto the end of each
message at the source and subsequently checked at the destination to
ensure proper delivery.  I am curious as to whether this is a common
practice or not.  Is it necessary or beneficial?
Thanks,
Perry
From vxwexplo-errs@csg.lbl.gov  Fri Apr 12 04:03:19 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Fri Apr 12 04:03:22 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Fri Apr 12 04:03:15 PDT 2002
        Subject: Re: Atomic counter
        Subject: Re: pciIntConnect
        Subject: Re: pciIntConnect
        Subject: Re: format of vxWorks exe image for x86 architecure.
        Subject: Re: Target Shell : command rejected
        Subject: Re: Target Shell : command rejected
        Subject: Re: Target Shell : command rejected
        Subject: T2.1 MIPS32 Toolchain problem.
        Subject: Re: Target Shell : command rejected
        Subject: Re: Using default route on VxWorks 5.3.1
        Subject: Re: Default Route from the inside???
        Subject: Re: Target Shell : command rejected
        Subject: Re: format of vxWorks exe image for x86 architecure.
        Subject: Re: Default Route from the inside???
        Subject: Re: T2.1 MIPS32 Toolchain problem.
        Subject: Re: Target Shell : command rejected
        Subject: Re: how can debug tNetTask?
        Subject: Re: how to config a ata hard disk ?
        Subject: Re: VxWorks/SourceSafe bizar problem
        Subject: utilities.c (where is it?)
        Subject: Re: format of vxWorks exe image for x86 architecure.
        Subject: Re: how can debug tNetTask?
        Subject: Re: TCP Stream Socket send buffer in VxWorks v5.4
        Subject: Zinc bitmap problem
        Subject: Re: utilities.c (where is it?)
        Subject: modified source code of inflate() used in vxworks_romcompress
        Subject: Beginer Info
        Subject: Re: utilities.c (where is it?)
        Subject: NETWORK INTERFACE bringup problem
        Subject: Video driver
        Subject: Re: DMA 8237
        Subject: Re: question: symbol file of bootrom and vxworks
        Subject: Re: sysClkRateSet
        Subject: Re: Zinc bitmap problem
        Subject: motorola mcc
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Atomic counter
Date: Thu, 11 Apr 2002 11:42:15 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$chleug$f4b$1@lnews.actcom.co.il>
References: <9065af8f514816af2948a6cd6023aaa5.38592@mygate.mailgate.org> <newscache$8t4dug$af8$1@lnews.actcom.co.il> <uit6z1mms.fsf@yahoo.com>
Sorry about tye typo - this is what happens when you are repeatedly
typing one particular word hundreds of times, your mind auto-completes
the word, or maybe its due to extensive use of MSFT apps,
I hope not :-(
Back to the subject at hand, obviously, a load/store architecture
will not modify a memory location in-place and thus will need
some kind of locking to protect the counter increment.
However, with pipelined RISC architectures, when an interrupt
request happens, the pipeline already may have part or the entire
increment sequence in the pipe, and then certain pipe flushing
occurs that might still make the increment sequence "atomic".
But even if the RISC can modify a memory location in-place,
there is the pipeline which must be considered.
I feel this discussion is getting improper for this forum.
"Bill Pringlemeir" <bpringlemeir@yahoo.com> wrote in message
news:uit6z1mms.fsf@yahoo.com...
>
>  Leonid> I would like to elaborate and clarify: On some processors,
>  Leonid> most CISCO and many RISC, a "C" line like this counter ++ ;
> [snip]
>
> I would have to disagree with this.  Almost every RISC chip I have
> used has a load/store architecture.  It is impossible to increment a
> memory variable atomically.  There are often special purpose
> instructions that swap a register with a memory location.  This
> implements a read/write cycle which the "++" statement does as well,
> just not on a single cycle on RISCs I know.
>
> Most CISC implementations do have support for operations on memory and
> you can do inc, addq, etc on them to do an atomic increment.  I am not
> quite sure about CISCO though ;-).
>
> Regards,
> Bill Pringlemeir.
>
> --
> Look DEEP into the OPENINGS!!  Do you see any ELVES or EDSELS...  or a
>  HIGHBALL??...
> vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: pciIntConnect
Date: Thu, 11 Apr 2002 13:52:48 +0200
From: "Michael Lawnick" <Lawnick@softec.de>
Organization: Buergernetz Dillingen
Message-ID: <a93teg$36o$1@snoopy.bndlg.de>
References: <989cdae4.0204110256.faeb5a5@posting.google.com>
Reply-To: "Michael Lawnick" <Lawnick@softec.de>
Sender: mlawnick@pd9e6509b.dip.t-dialin.net
Hi zlybupt,
"zlybupt" <zhoul@blrcsv.china.bell-labs.com> schrieb im Newsbeitrag
news:989cdae4.0204110256.faeb5a5@posting.google.com...
> Hi all:
>    when I use pciIntConnect to connect a ISR to a irq,i use like that
>  if (pciIntConnect((VOIDFUNCPTR *)INUM_TO_IVEC(device->irq +
> INT_NUM_IRQ0),
>                 &NICInterrupt,  PARA)!=OK)
>  HERE i have two problems:
>    1.the system tells me INT_NUM_IRQ0 not defined and I cannot find it
> in any *.h file ,is it necessary to add it?
Depends on the hardware you didn't mention.
>    2.If the parameters I want to pass to the ISR is more than one ,how
> do I pass it,using which form? Can somebody give me an example?
Give the address of a static struct.
>    Thank you in advance!
Never mind.
Michael
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: pciIntConnect
Date: 11 Apr 2002 14:05:49 +0200
From: Reinhold Wirth <wirth@softec.de>
Organization: WEB.DE
Message-ID: <3cb57c1d@netnews.web.de>
References:  <989cdae4.0204110256.faeb5a5@posting.google.com>
zhoul@blrcsv.china.bell-labs.com (zlybupt) wrote:
>Hi all:
>   when I use pciIntConnect to connect a ISR to a irq,i use like that
> if (pciIntConnect((VOIDFUNCPTR *)INUM_TO_IVEC(device->irq +
>INT_NUM_IRQ0),
>                &NICInterrupt,  PARA)!=OK)
> HERE i have two problems:
>   1.the system tells me INT_NUM_IRQ0 not defined and I cannot find it
>in any *.h file ,is it necessary to add it?
>   2.If the parameters I want to pass to the ISR is more than one ,how
>do I pass it,using which form? Can somebody give me an example?
1. INT_NUM_IRQ0 is only user for a PC
This is defined in config.h of the PC BSP.
The conversion from INT_NUM to INT_VEV is defined in config.h too.
2. example see sysSerial.c in your BSP
  (intConnet uses the equal parameters)
- --
__________________________________________________________
News suchen, lesen, schreiben mit http://newsgroups.web.de
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: format of vxWorks exe image for x86 architecure.
Date: Thu, 11 Apr 2002 14:39:40 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb583fe$1@brateggebdc5.br-automation.co.at>
References: <1018358891.867216@ernani.logica.co.uk> <a912ua$ai1$1@snoopy.bndlg.de> <1018513583.721564@ernani.logica.co.uk>
Hi,
You mean on a 'real' x86 target - not in the Windows Simulator?
It's in a.out format, at least for VxWorks 5.4.
Further, I think you can get the end of the text segment from the address of
_etext symbol.
I'm not sure, if the symbol is present in a release build - and how it is
added to the image though.
It is just there in the debug image I did something similar some time ago
;-)
hth
Werner
"Paul Madle" <madlep@logica.com> wrote in message
news:1018513583.721564@ernani.logica.co.uk...
> Michael,
>
> Thanks for the tip, I've had a look at elf.h. Unfortunately I don't think
> the executable image I'm compiling is in elf format.
>
> I do know that the 2nd and 3rd 32 bits of the executable image file
> represent the size of the .data and .text. Does anyone know where the
format
> of this file is defined? (x86 architecture).
>
> Paul.
>
> "Michael Lawnick" <Lawnick@softec.de> wrote in message
> news:a912ua$ai1$1@snoopy.bndlg.de...
> > Hi Paul,
> >
> > elf.h might give you the kick for start.
> > HTH
> > Michael
> >
> > "Paul Madle" <madlep@logica.com> schrieb im Newsbeitrag
> > news:1018358891.867216@ernani.logica.co.uk...
> > I have been attempting to perform a CRC check of an executable vxWorks
> image
> > as part of the images execution by comparing the CRC before and during
> > execution.
> > The CRC comparison fails because the image is not entirely static during
> > execution. I therefore need to know the format of a vxworks image on an
> x86
> > architecture.
> >
> > Having looked at the programmers guide (5.4 page 450) and the map file
> >  using -M linker flag ), I have concluded that the image is split into
> these
> > chunks:
> >
> > 00000000 00080568 2** 3d .text
> > 00000000 00014540 2** 3d .data
> > 00000000 0029b960 2** 3d .bss
> > 0029b960 00002490 2** 3d COMMON
> >
> > (taken from map file)
> >
> > after further analysis, I've found that the executable code is found in
> the
> > ".text" section which is found after the "COMMON" section.
> >
> > In essence, I beleive that the executable file looks like this:
> >
> > ------------- @ offset 0x0 from file beginning
> > | COMMON |
> > ------------- @ offset 0x2490 from file beginning
> > | .text |
> > -------------
> > : :
> > : :
> >
> > Most of this ".text" section appears to be the same both before and
during
> > execution. However The last part of the .text section changes during
> > execution and my CRC therefore fails.
> >
> > Its possible I'm not finding the size of the ".text" section correctly.
If
> > anyone knows how you go about finding the size of this section, please
> help!
> >
> > Any information of the format of a vxworks executable image on an x86
> > architecture would be useful.
> >
> > Thanks,
> >
> >
> >
> > Paul.
> >
> >
> >
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Target Shell : command rejected
Date: Thu, 11 Apr 2002 14:36:02 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb58324$1@brateggebdc5.br-automation.co.at>
References: <a93idr$2js$1@ID-79865.news.dfncis.de>
Hi,
you need to include the target resident symbol table into your image.
I'm not sure if this is done automatically and you didn't mention it.
You can easily find out by invoking a function you are sure that is in the
image - like printf or taskDelay.
Further, you need to include all the various show routines you want to
invoke on your target.
hth
Werner
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a93idr$2js$1@ID-79865.news.dfncis.de...
> =========================================================
> Tornado  : Version 2.0.2
> VxWorks  : Version 5.4.2
> BSP      : Version 1.1/1
> Compiler : ccsimpc
>            gcc version egcs-2.90.29 tornado 2.0 980515
>            (egcs-1.0.3 release)
> Host     : Windows2000
> Target   : VxSim for Windows (VxWorks target simulator)
> =========================================================
> Project Type : bootable VxWorks image (custom configured)
> =========================================================
>
>
>
> I want to use Target Shell.
>
> All 'target shell componets' are included :
> * shell banner (macro INCLUDE_SHELL_BANNER)
> * shell startup script (macro INCLUDE_STARTUP_SCRIPT)
> * target debugging (macro INCLUDE_DEBUG)
> * target shell (macro INCLUDE_SHELL)
>
>
>
> However,  the shell command is rejected.
>
>
> || ------ The Target Simulator Window : BEGIN ------
> || Target Shell Banner is omitted
>
>
> Development System
> VxWorks version 5.4.2
> KERNEL: WIND version 2.5
> Copyright Wind River Systems, Inc., 1984-1999
>
> CPU: VxSim for Windows.  Processor #0.
> Memory Size: 0x200000.  BSP version 1.1/1.
> WDB: Ready.
>
> -> help
> undefined symbol: help
> ->
>
> || ------ The Target Simulator Window : END --------
>
>
> Any explanation?
>
> Thanks in advance,
>
>  --
> ====================
>   Alex Vinokur
>     http://up.to/alexvn
>     http://go.to/alexv_math
>     mailto:alexvn@bigfoot.com
>     mailto:alexvn@go.to
>   ====================
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Target Shell : command rejected
Date: Thu, 11 Apr 2002 16:01:02 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a941c0$4361$1@ID-79865.news.dfncis.de>
References: <a93idr$2js$1@ID-79865.news.dfncis.de>
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message news:a93idr$2js$1@ID-79865.news.dfncis.de...
: =========================================================
: Tornado  : Version 2.0.2
: VxWorks  : Version 5.4.2
: BSP      : Version 1.1/1
: Compiler : ccsimpc
:            gcc version egcs-2.90.29 tornado 2.0 980515
:            (egcs-1.0.3 release)
: Host     : Windows2000
: Target   : VxSim for Windows (VxWorks target simulator)
: =========================================================
: Project Type : bootable VxWorks image (custom configured)
: =========================================================
:
:
:
: I want to use Target Shell.
:
: All 'target shell componets' are included :
: * shell banner (macro INCLUDE_SHELL_BANNER)
: * shell startup script (macro INCLUDE_STARTUP_SCRIPT)
: * target debugging (macro INCLUDE_DEBUG)
: * target shell (macro INCLUDE_SHELL)
:
:
:
: However,  the shell command is rejected.
:
:
: || ------ The Target Simulator Window : BEGIN ------
: || Target Shell Banner is omitted
:
=== (Target Shell Window) ===
:
: Development System
: VxWorks version 5.4.2
: KERNEL: WIND version 2.5
: Copyright Wind River Systems, Inc., 1984-1999
:
: CPU: VxSim for Windows.  Processor #0.
: Memory Size: 0x200000.  BSP version 1.1/1.
: WDB: Ready.
=== (Tornado Shell Window) ===
- -> i
  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY
- ---------- ------------ -------- --- ---------- -------- -------- ------- -----
tExcTask   _excTask      4b990a0   0 PEND         44d216  4b98fbc       0     0
tLogTask   _logTask      4b94688   0 PEND         44d216  4b945a0       0     0
tShell     _shell        4b8c958   1 PEND         44d216  4b8c5c0       0     0
tWdbTask   0x40c72c      4b90c10   3 READY        44d216  4b90af4       0     0
value = 0 = 0x0
:
=== (Target Shell Window) ===
: -> help
: undefined symbol: help
: ->
=== (Tornado Shell Window) ===
- -> i
  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY
- ---------- ------------ -------- --- ---------- -------- -------- ------- -----
tExcTask   _excTask      4b990a0   0 PEND         44d216  4b98fbc       0     0
tLogTask   _logTask      4b94688   0 PEND         44d216  4b945a0       0     0
tShell     _shell        4b8c958   1 PEND         44d216  4b8c5c0   30065     0
tWdbTask   0x40c72c      4b90c10   3 READY        44d216  4b90af4       0     0
value = 0 = 0x0
:
: || ------ The Target Simulator Window : END --------
:
:
We can see that after typing 'help' in Target Shell Window
the tShell task has errno 30065
: Any explanation?
:
: Thanks in advance,
:
:  --
: ====================
:   Alex Vinokur
:     http://up.to/alexvn
:     http://go.to/alexv_math
:     mailto:alexvn@bigfoot.com
:     mailto:alexvn@go.to
:   ====================
:
:
:
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Target Shell : command rejected
Date: Thu, 11 Apr 2002 16:05:39 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a941kl$4fi8$1@ID-79865.news.dfncis.de>
References: <a93idr$2js$1@ID-79865.news.dfncis.de> <3cb58324$1@brateggebdc5.br-automation.co.at>
"Werner Schiendl" <ws-news@gmx.at> wrote in message news:3cb58324$1@brateggebdc5.br-automation.co.at...
: Hi,
:
: you need to include the target resident symbol table into your image.
: I'm not sure if this is done automatically and you didn't mention it.
:
: You can easily find out by invoking a function you are sure that is in the
: image - like printf or taskDelay.
printf also is rejected in Target Shell Window
- -> printf
undefined symbol: printf
:
: Further, you need to include all the various show routines you want to
: invoke on your target.
:
: hth
: Werner
:
:
:
[snip]
- --
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: T2.1 MIPS32 Toolchain problem.
Date: Thu, 11 Apr 2002 10:07:13 +0900
From: "Girish Gulawani" <girishvgNOSPAM@yahoo.com>
Message-ID: <3cb58a92$0$21579$44c9b20d@news3.asahi-net.or.jp>
Hello, all.
Today I'm really excited to learn that our working BSP for MIPS R4000 board
is not working with our recently acquired T2.1 toolchain. We have been using
the same bootrom code with T1.0.1 & T2.0.
The bootrom_res is compiled with default compiler options & MIPS32 library.
.1> First of all I was unable to input -mcpu=r4000 or -mips3. Whether my
expiation is wrong that I should be compiling with these options for my
R4000 based board? Removing this options compilation is through.
.2> The object-dump shows arch as r6000 & a flag  D_PAGED is missing. Most
importantly some sections are *missing*. Also the sections headers shows two
data sections one linked to RAM data address & other one linked in
0xBFCxxxxx area. I think *this* is the problem.
BTW I could not find ELF tools such as elfHex in the bin directory. So I
used old T2.0 ELF tools.
.1> elfHex -a 0xbfc00000 bootrom_res > rom.hex fails giving message as -
malloc failed.
.2> elfToBsd < bootrom_res > rom.bsd, fails saying multiple data sections.
To add to the confusion, the "file" command on Sun-Solaris host shows file
type as R3000 MIPS-1.
I have checked VxWorks FAQ site. It seems no updates about T2.1 problems.
Ofcourse I do not expect any reply from de-WRS anytime soon.
Could anybody please help me in understanding where could the problem be??
Many thanks in advance.
Girish.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Target Shell : command rejected
Date: Thu, 11 Apr 2002 16:28:00 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a942ui$53nu$1@ID-79865.news.dfncis.de>
References: <a93idr$2js$1@ID-79865.news.dfncis.de> <a941c0$4361$1@ID-79865.news.dfncis.de>
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message news:a941c0$4361$1@ID-79865.news.dfncis.de...
:
: "Alex Vinokur" <alexvn@bigfoot.com> wrote in message news:a93idr$2js$1@ID-79865.news.dfncis.de...
: : =========================================================
: : Tornado  : Version 2.0.2
: : VxWorks  : Version 5.4.2
: : BSP      : Version 1.1/1
: : Compiler : ccsimpc
: :            gcc version egcs-2.90.29 tornado 2.0 980515
: :            (egcs-1.0.3 release)
: : Host     : Windows2000
: : Target   : VxSim for Windows (VxWorks target simulator)
: : =========================================================
: : Project Type : bootable VxWorks image (custom configured)
: : =========================================================
: :
[snip]
:
: We can see that after typing 'help' in Target Shell Window
: the tShell task has errno 30065
=== (Tornado Shell Window) ===
- -> i
  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY
- ---------- ------------ -------- --- ---------- -------- -------- ------- -----
tExcTask   _excTask      4b990a0   0 PEND         44d216  4b98fbc       0     0
tLogTask   _logTask      4b94688   0 PEND         44d216  4b945a0       0     0
tShell     _shell        4b8c958   1 PEND         44d216  4b8c5c0   30065     0
tWdbTask   0x40c72c      4b90c10   3 READY        44d216  4b90af4       0     0
value = 0 = 0x0
- -> printErrno 0x30065
0x30065 = S_taskLib_NAME_NOT_FOUND
:
: : Any explanation?
: :
: : Thanks in advance,
: :
: :  --
: : ====================
: :   Alex Vinokur
: :     http://up.to/alexvn
: :     http://go.to/alexv_math
: :     mailto:alexvn@bigfoot.com
: :     mailto:alexvn@go.to
: :   ====================
: :
: :
: :
:
:
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Using default route on VxWorks 5.3.1
Date: Thu, 11 Apr 2002 09:32:10 -0400
From: "chosi" <mcianciosi@raytheon.com>
Organization: Raytheon Company
Message-ID: <vfgt8.708$c6.536@bos-service2.ext.raytheon.com>
References: <a91uo6$k2d$1@slb6.atl.mindspring.net>
If I understand correctly, when you do something like:
     ping "192.1.2.3"
or whatever your IP address is, it pings OK?  But if you do:
     ping "hostname"
or whatever your host name is, it tries to go to the default route?
If this is correct, then I think it's trying to resolve the hostname
before it does the actual ping, and that resolution is what is using
the default route.  I don't know how your system resolves hostnames -
maybe DNS?  If so, it's using the default route to try to talk to the
DNS-server.
I hope this helps rather than adds to confusion.
"Lauren Terner" <lterner@mindspring.com> wrote in message
news:a91uo6$k2d$1@slb6.atl.mindspring.net...
> It seems that whenever I add a default route to the routing table, ping
> insists on
> contacting the default gateway for every ip, including ip's on the local
> lan.  It appears
> that it is always trying to do a reverse lookup using gethostbyaddr().  As
a
> result, the
> ping won't succeed unless you name the target ip in the host table.  Will
> the connect()
> system call also perform this weird routing before establishing a TCP
> connection?
>
> I am running VxWorks on PowerPc 860 Artesyn Board.
>
> Can someone offer an explanation?
>
> Your help is appreciated.
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Default Route from the inside???
Date: 11 Apr 2002 14:11:56 GMT
From: nospam@kpsws.com
Message-ID: <3cb599ac$0$4022$4d4ebb8e@read-nat.news.nl.uu.net>
References: <6755aee5.0204100942.19b97957@posting.google.com>
Routeshow looks fine to me... doesn't routeshow list all routes with the
default at the top of the list???
>
A program that I am writing requires that I lookup the default route
from the routing table. Probably a simple question, but how the heck
do you do it? There is RouteAdd, RouteDelete, RouteShow, but now
RouteGet. Certainly the kernel has to look it up for every packet
going off the LAN. How can I look it up?
thanks in advance,
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Target Shell : command rejected
Date: Thu, 11 Apr 2002 16:11:49 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb59997$1@brateggebdc5.br-automation.co.at>
References: <a93idr$2js$1@ID-79865.news.dfncis.de> <a941c0$4361$1@ID-79865.news.dfncis.de> <a942ui$53nu$1@ID-79865.news.dfncis.de>
Hi,
Did you already check, that you _have_ the target resident symbol table
built into your VxWorks configuration?
You need:
[development tool components]
+ [symbol table components]
    * symbol table
    + [symbol table initialization components]
      * initialize symbol table
      + [select symbol table initialization]
        * built-in symbol table
Then your target resident shell will work.
The host shell uses the symbol information stored on the host (provided
through the target _server_).
The target shell has no access to this information, but needs it's own
symbol table.
hth
Werner
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a942ui$53nu$1@ID-79865.news.dfncis.de...
>
> "Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a941c0$4361$1@ID-79865.news.dfncis.de...
> :
> : "Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a93idr$2js$1@ID-79865.news.dfncis.de...
> : : =========================================================
> : : Tornado  : Version 2.0.2
> : : VxWorks  : Version 5.4.2
> : : BSP      : Version 1.1/1
> : : Compiler : ccsimpc
> : :            gcc version egcs-2.90.29 tornado 2.0 980515
> : :            (egcs-1.0.3 release)
> : : Host     : Windows2000
> : : Target   : VxSim for Windows (VxWorks target simulator)
> : : =========================================================
> : : Project Type : bootable VxWorks image (custom configured)
> : : =========================================================
> : :
>
> [snip]
>
> :
> : We can see that after typing 'help' in Target Shell Window
> : the tShell task has errno 30065
>
>
> === (Tornado Shell Window) ===
> -> i
>   NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO
DELAY
> ---------- ------------ -------- --- ---------- -------- -------- -------
- -----
> tExcTask   _excTask      4b990a0   0 PEND         44d216  4b98fbc       0
0
> tLogTask   _logTask      4b94688   0 PEND         44d216  4b945a0       0
0
> tShell     _shell        4b8c958   1 PEND         44d216  4b8c5c0   30065
0
> tWdbTask   0x40c72c      4b90c10   3 READY        44d216  4b90af4       0
0
> value = 0 = 0x0
>
> -> printErrno 0x30065
> 0x30065 = S_taskLib_NAME_NOT_FOUND
>
> :
> : : Any explanation?
> : :
> : : Thanks in advance,
> : :
> : :  --
> : : ====================
> : :   Alex Vinokur
> : :     http://up.to/alexvn
> : :     http://go.to/alexv_math
> : :     mailto:alexvn@bigfoot.com
> : :     mailto:alexvn@go.to
> : :   ====================
> : :
> : :
> : :
> :
> :
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: format of vxWorks exe image for x86 architecure.
Date: 11 Apr 2002 07:17:33 -0700
From: igtorque@yahoo.es (=?ISO-8859-1?Q?Ignacio_Gonz=E1lez_T.?=)
Organization: http://groups.google.com/
Message-ID: <74c2e5b4.0204110617.294d37d2@posting.google.com>
References: <1018358891.867216@ernani.logica.co.uk> <a912ua$ai1$1@snoopy.bndlg.de> <1018513583.721564@ernani.logica.co.uk>
IIRC, the format for x86 architecture (targets) is named
  a.out-i386
Curiously, the format used by the simulator over Windows (simpc) is
different. I think it was:
  pe-i386
"Paul Madle" <madlep@logica.com> wrote in message news:<1018513583.721564@ernani.logica.co.uk>...
> Michael,
>
> Thanks for the tip, I've had a look at elf.h. Unfortunately I don't think
> the executable image I'm compiling is in elf format.
>
> I do know that the 2nd and 3rd 32 bits of the executable image file
> represent the size of the .data and .text. Does anyone know where the format
> of this file is defined? (x86 architecture).
>
> Paul.
>
> "Michael Lawnick" <Lawnick@softec.de> wrote in message
> news:a912ua$ai1$1@snoopy.bndlg.de...
> > Hi Paul,
> >
> > elf.h might give you the kick for start.
> > HTH
> > Michael
> >
> > "Paul Madle" <madlep@logica.com> schrieb im Newsbeitrag
> > news:1018358891.867216@ernani.logica.co.uk...
> > I have been attempting to perform a CRC check of an executable vxWorks
>  image
> > as part of the images execution by comparing the CRC before and during
> > execution.
> > The CRC comparison fails because the image is not entirely static during
> > execution. I therefore need to know the format of a vxworks image on an
>  x86
> > architecture.
> >
> > Having looked at the programmers guide (5.4 page 450) and the map file
> >  using -M linker flag ), I have concluded that the image is split into
>  these
> > chunks:
> >
> > 00000000 00080568 2** 3d .text
> > 00000000 00014540 2** 3d .data
> > 00000000 0029b960 2** 3d .bss
> > 0029b960 00002490 2** 3d COMMON
> >
> > (taken from map file)
> >
> > after further analysis, I've found that the executable code is found in
>  the
> > ".text" section which is found after the "COMMON" section.
> >
> > In essence, I beleive that the executable file looks like this:
> >
> > ------------- @ offset 0x0 from file beginning
> > | COMMON |
>  ------------- @ offset 0x2490 from file beginning
> > | .text |
>  -------------
> > : :
> > : :
> >
> > Most of this ".text" section appears to be the same both before and during
> > execution. However The last part of the .text section changes during
> > execution and my CRC therefore fails.
> >
> > Its possible I'm not finding the size of the ".text" section correctly. If
> > anyone knows how you go about finding the size of this section, please
>  help!
> >
> > Any information of the format of a vxworks executable image on an x86
> > architecture would be useful.
> >
> > Thanks,
> >
> >
> >
> > Paul.
> >
> >
> >
> >
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Default Route from the inside???
Date: Thu, 11 Apr 2002 14:28:08 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$t5teug$7cb$1@lnews.actcom.co.il>
References: <6755aee5.0204100942.19b97957@posting.google.com>
It seems rather strange that an application would want
to know routing details - this violates the layering concept.
There are two ways to do this:
1. You can immitate the workings of routeShow(), which traverses the entire
routing table made of linked lists, and is a rather complex peice of code.
To do this, get the source file netShow.c from your FAE or support engineer,
there are a few functions involved.
2. You can use the MIB-2 interface library - m2Lib - which provides
interface to assorted network modules for use by SNMP, but your application
can use this API as well, and the API is reasonably documented in the m2Lib
manual pages.
Please note that you do not need to have WindNett SNMP installed to use the
m2Lib which comes standard. Also the second approach is more "future proof".
Hope this helps,
    Leonid
"Whacked" <kenb88@hotmail.com> wrote in message
news:6755aee5.0204100942.19b97957@posting.google.com...
> A program that I am writing requires that I lookup the default route
> from the routing table. Probably a simple question, but how the heck
> do you do it? There is RouteAdd, RouteDelete, RouteShow, but now
> RouteGet. Certainly the kernel has to look it up for every packet
> going off the LAN. How can I look it up?
>
> thanks in advance,
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: T2.1 MIPS32 Toolchain problem.
Date: 11 Apr 2002 15:24:42 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91EDB1213E376borkhuisagerecom@135.7.153.101>
References: <3cb58a92$0$21579$44c9b20d@news3.asahi-net.or.jp>
"Girish Gulawani" <girishvgNOSPAM@yahoo.com> wrote:
> Today I'm really excited to learn that our working BSP for MIPS R4000
> board is not working with our recently acquired T2.1 toolchain. We
> have been using the same bootrom code with T1.0.1 & T2.0.
Between T2.0 and T2.1 the architecture for MIPS has been changed. See the
"Release notes and architecture supplement" for Tornado 2.1 for more
details. See section 8 for information on upgrading.
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: Target Shell : command rejected
Date: Thu, 11 Apr 2002 16:00:14 GMT
From: "drdiags" <drdiags@attbi.com>
Organization: AT&T Broadband
Message-ID: <iqit8.73$Gl6.1726@sccrnsc01>
References: <a93idr$2js$1@ID-79865.news.dfncis.de> <a941c0$4361$1@ID-79865.news.dfncis.de>
Alex,
    In the Tornado IDE, you need to select the Symbol Table selection and
include the
symbol table initialization and select whether you want it built in or
downloaded ala
the vxWorks.sym file. I usually select built in, since that way if I
misconfigured my
networking, I still have the symbol table to correct this. Your choice.
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a941c0$4361$1@ID-79865.news.dfncis.de...
>
> "Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a93idr$2js$1@ID-79865.news.dfncis.de...
> : =========================================================
> : Tornado  : Version 2.0.2
> : VxWorks  : Version 5.4.2
> : BSP      : Version 1.1/1
> : Compiler : ccsimpc
> :            gcc version egcs-2.90.29 tornado 2.0 980515
> :            (egcs-1.0.3 release)
> : Host     : Windows2000
> : Target   : VxSim for Windows (VxWorks target simulator)
> : =========================================================
> : Project Type : bootable VxWorks image (custom configured)
> : =========================================================
> :
> :
> :
> : I want to use Target Shell.
> :
> : All 'target shell componets' are included :
> : * shell banner (macro INCLUDE_SHELL_BANNER)
> : * shell startup script (macro INCLUDE_STARTUP_SCRIPT)
> : * target debugging (macro INCLUDE_DEBUG)
> : * target shell (macro INCLUDE_SHELL)
> :
> :
> :
> : However,  the shell command is rejected.
> :
> :
> : || ------ The Target Simulator Window : BEGIN ------
> : || Target Shell Banner is omitted
> :
>
> === (Target Shell Window) ===
> :
> : Development System
> : VxWorks version 5.4.2
> : KERNEL: WIND version 2.5
> : Copyright Wind River Systems, Inc., 1984-1999
> :
> : CPU: VxSim for Windows.  Processor #0.
> : Memory Size: 0x200000.  BSP version 1.1/1.
> : WDB: Ready.
>
> === (Tornado Shell Window) ===
> -> i
>   NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO
DELAY
> ---------- ------------ -------- --- ---------- -------- -------- -------
- -----
> tExcTask   _excTask      4b990a0   0 PEND         44d216  4b98fbc       0
0
> tLogTask   _logTask      4b94688   0 PEND         44d216  4b945a0       0
0
> tShell     _shell        4b8c958   1 PEND         44d216  4b8c5c0       0
0
> tWdbTask   0x40c72c      4b90c10   3 READY        44d216  4b90af4       0
0
> value = 0 = 0x0
>
> :
>
> === (Target Shell Window) ===
> : -> help
> : undefined symbol: help
> : ->
>
> === (Tornado Shell Window) ===
> -> i
>   NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO
DELAY
> ---------- ------------ -------- --- ---------- -------- -------- -------
- -----
> tExcTask   _excTask      4b990a0   0 PEND         44d216  4b98fbc       0
0
> tLogTask   _logTask      4b94688   0 PEND         44d216  4b945a0       0
0
> tShell     _shell        4b8c958   1 PEND         44d216  4b8c5c0   30065
0
> tWdbTask   0x40c72c      4b90c10   3 READY        44d216  4b90af4       0
0
> value = 0 = 0x0
>
> :
> : || ------ The Target Simulator Window : END --------
> :
> :
>
> We can see that after typing 'help' in Target Shell Window
> the tShell task has errno 30065
>
> : Any explanation?
> :
> : Thanks in advance,
> :
> :  --
> : ====================
> :   Alex Vinokur
> :     http://up.to/alexvn
> :     http://go.to/alexv_math
> :     mailto:alexvn@bigfoot.com
> :     mailto:alexvn@go.to
> :   ====================
> :
> :
> :
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: how can debug tNetTask?
Date: Thu, 11 Apr 2002 16:48:51 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CB5BEFD.4090009@spamm.me.l8s.co.uk>
References: <f83209fa.0204101908.13c6d6d1@posting.google.com> <newscache$n6aeug$6ua$1@lnews.actcom.co.il>
Ofer Goren wrote:
> HI.
>
> If you have the source code, I think you should first change the taskSpawn
> of tNetTask option parameter, so it wont be UN_BREAKABLE.
You can change that with taskOptionSet, I don't have taskLib.h to hand,
but VX_UNBREAKABLE might be 4!
- -> taskOptionsSet( taskNameToId( "tNetTask" ), 4, 0 )
Remember to use the target shell!
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: how to config a ata hard disk ?
Date: Thu, 11 Apr 2002 13:00:22 -0400
From: david lindauer <dlindauer@notifier-is.net>
Message-ID: <3CB5C126.EC8E9C55@notifier-is.net>
References: <6f67022c.0204060333.7ec41758@posting.google.com>
zxyi wrote:
> when I use usrAtaConfig()
> I got an error?
> I want to know,when config a ata hard disk ,what should i do?
> I have included ata support in the project .
> If the driver hae install another os can I also use vxworks on it?
depends on how your hardware is set up.  In particular if your ATA
device controller is a PCI device masquerading on standard disk ports,
the problem could be that you haven't done proper PCI initialization
prior to doing the usrAtaConfig().  Other than that make sure you are
using the correct ATA device number (for instance if the hardware has it
set up on the secondary ports instead of the primary ones) and it works
pretty much out of the box.  (we're using a pentium class processor on a
pc compatible board with PCI peripherals on the secondary ports, so we
had a lot of configuration issues to overcome).
David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: VxWorks/SourceSafe bizar problem
Date: Thu, 11 Apr 2002 13:03:01 -0400
From: david lindauer <dlindauer@notifier-is.net>
Message-ID: <3CB5C1C5.88F2D4F9@notifier-is.net>
References: <a8sic6$hd8$1@news.inter.net.il> <3CB1CF9A.860F87C1@wanadoo.fr>
Patrick Deiber wrote:
> Rami,
>
> Take care Visual Source safe will convert unix text format to DOS format.
> That would say it will replace LF (0x0A) with CR and LF (0x0D 0x0A).
>
and this can be a very bad thing; the project files HAVE to be in unix format or
tornado won't accept them.  So if you checked files out of source safe later and
tried to open the project, you couldn't.  I suggest telling sourcesafe that all
your files are binary....
David
>
> Patrick
>
> Rami Gideoni wrote:
>
> > Hi,
> >
> > I'm checking in file in .wpj (VxWorks project file) extension and when I'm
> > checking it out -- I find out that the size of the file was altered.
> >
> > MS-DOS fc (file compare) utility find no difference between the two files --
> > the same is true also for the text editor I'm using
> >
> > when I check in ZIP version of the file -- the problem disappear.
> >
> > Any idea will be welcomed.
> >
> > RamiG
---------------------------
Newsgroups: comp.os.vxworks
Subject: utilities.c (where is it?)
Date: 11 Apr 2002 12:58:48 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uy9futbnb.fsf@yahoo.com>
Sender: bpringlemeir@DeadDuck
In this document,
 "http://www.xs4all.nl/~borkhuis/vxworks/troubleshooting.txt"
A utilities.c files is referenced.  It has an `endPoolShow()'
function.  Does anyone know the where abouts of this file?  This is an
excellent article btw.  Does anyone know the author?
tia,
Bill Pringlemeir.
- --
Let's witness well-worn the Void!
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: format of vxWorks exe image for x86 architecure.
Date: Thu, 11 Apr 2002 19:38:35 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cb5ca0c$1@brateggebdc5.br-automation.co.at>
References: <1018358891.867216@ernani.logica.co.uk> <a912ua$ai1$1@snoopy.bndlg.de> <1018513583.721564@ernani.logica.co.uk> <74c2e5b4.0204110617.294d37d2@posting.google.com>
Hi,
"Ignacio Gonzlez T." <igtorque@yahoo.es> wrote in message
news:74c2e5b4.0204110617.294d37d2@posting.google.com...
> IIRC, the format for x86 architecture (targets) is named
>   a.out-i386
>
> Curiously, the format used by the simulator over Windows (simpc) is
> different. I think it was:
>   pe-i386
>
Yes, because the resulting file is a Windows .EXE (namely VxWorks.exe) and
Windows is a bit selective what it loads and executes ;-)
regards
Werner
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: how can debug tNetTask?
Date: Thu, 11 Apr 2002 18:02:18 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$v23fug$6mb$1@lnews.actcom.co.il>
References: <f83209fa.0204101908.13c6d6d1@posting.google.com>
In adition to David's excellent hint, I must point out that you do not
typically debug a task, but you debug code, and tNetTask is one such
task that runs code from many different modules, including but not limitted
to TCP timers, IP input processing, network driver receive and transmit
cleanup
functions.
The purpose of tNetTask is to defer code that was originally running at
interrupt level on Unix, down to task level to block the network code from
interfering with RT performance.
"zhangyonghong" <hammer_chang@263.net> wrote in message
news:f83209fa.0204101908.13c6d6d1@posting.google.com...
> I have the tcp/ip source code.thanks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: TCP Stream Socket send buffer in VxWorks v5.4
Date: Thu, 11 Apr 2002 18:07:11 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$va3fug$8mb$1@lnews.actcom.co.il>
References: <ba563fa9.0204090417.2adf065a@posting.google.com>
You can check how much total space is available on a socket,
using getsockoption(), but this does not  give you how much of
this space is FREE at the instance.
I have researched this on 5.4, and there is absolutely no way
to get this done, even modifying the SENS code is somewhat tricky,
and expensive.
So what we did instead, is switching to non-blocking mode,
and that avoided blocking entirely, and each call to write() returned
exactly the amount succesfully transferred to the socket buffer,
and returned immediately.
HTH,
    Leonid
"Jeff Steinsnyder" <Jeffrey.Steinsnyder@L-3Com.com> wrote in message
news:ba563fa9.0204090417.2adf065a@posting.google.com...
> Is there a way to check the size of the available space in the TCP
> socket send buffer before writing to it? - so that the write function
> guaranteed the space is available for a complete message buffer. The
> objective of this check is to minimize the socket blocking time.
> Thank you very much for the input or any suggestions on the subject,
>
> Jeff Steinsnyder.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Zinc bitmap problem
Date: Thu, 11 Apr 2002 18:08:50 GMT
From: "Jacco" <hiermijn@email.com>
Organization: QuickNet
Message-ID: <Sikt8.56917$nk5.6121675@amsnews02.chello.com>
Hello,
I have a question about Zinc for VxWorks 5.3. After I made a graphical user
interface with the Zinc designer I tested it on my target and it works fine
but the problem is that the bitmaps are not shown correctly. The lower layer
which Zinc uses to draw is UGL in my case.
When I put a bitmap on for example a button there is a line shown on the
left or right side of the bitmap. The color of this vertical line is the
same as my default background color. When I press the button the line
disappears or in some cases moves to the other side of the bitmap. Is there
anybody who had the same experience or has a solution for this problem?
Thanks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: utilities.c (where is it?)
Date: 11 Apr 2002 19:20:13 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91EDD90FD1276borkhuisagerecom@135.7.153.101>
References: <uy9futbnb.fsf@yahoo.com>
Bill Pringlemeir <bpringlemeir@yahoo.com> wrote:
>
> In this document,
>
>  "http://www.xs4all.nl/~borkhuis/vxworks/troubleshooting.txt"
Try http://www.xs4all.nl/~borkhuis/vxworks/utilities.c
And as far as I remember correctly the document came from DrDiag.
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: modified source code of inflate() used in vxworks_romcompress
Date: 11 Apr 2002 18:29:08 -0700
From: lihuapeng@21cn.com (DragonSpring)
Organization: http://groups.google.com/
Message-ID: <1d411918.0204111729.5ad8e104@posting.google.com>
We use MPC860 and Tornado 2.0/VxWorks 5.4. We build a
vxworks_romcompress image to boot the system and also use SWT(software
watchdog). Now we run into the problem: the SWT time out and system
reset during inflate().
From comp.os.vxworks, I know there are two methods to resolve this
problem:
1. use a periodical hardware timer to clear watchdog.
- - But at this time the vxworks kernel doesn't initialize yet. So I
cann't use intConnect(), maybe I have to call intVecSet().
2. Modify the zlib source code(from
http://www.info-zip.org/pub/infozip/zlib/) to insert watchdog kicks.
- - But it seems too hard for me to modify it. I cannot understand the
arithmetic and don't know where to insert watchdog kicks. Another
difficulty: Maybe the WindRiver use its own flag/tag in the compress
image for identification/check.
Does anyone has the modified and tested zlib source code for VxWorks ?
Will you please email me a copy of it ?
Thanks.
lihuapeng@21cn.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Beginer Info
Date: Thu, 11 Apr 2002 22:36:03 -0400
From: "DPGumby" <major_gowen@gosympatico.ca>
Organization: Bell Sympatico
Message-ID: <ZIrt8.19585$e64.3021201@news20.bellglobal.com>
Any go basic info or tutorials?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: utilities.c (where is it?)
Date: Fri, 12 Apr 2002 04:25:22 GMT
From: "drdiags" <drdiags@attbi.com>
Organization: AT&T Broadband
Message-ID: <Sktt8.9235$Gl6.3681@sccrnsc01>
References: <uy9futbnb.fsf@yahoo.com> <Xns91EDD90FD1276borkhuisagerecom@135.7.153.101>
Bill,
    The information was given to me by  WR Network support. It does expand
on how to configure
the stack and since it was tips and not IP, I was told I could pass it on to
the newsgroup, along
with the utilities.c file which is also unsupported. Hope it helps someone
else in need of figuring
out how to deal with those pesky mblks.....
"Johan Borkhuis" <borkhuis@agere.com> wrote in message
news:Xns91EDD90FD1276borkhuisagerecom@135.7.153.101...
> Bill Pringlemeir <bpringlemeir@yahoo.com> wrote:
>
> >
> > In this document,
> >
> >  "http://www.xs4all.nl/~borkhuis/vxworks/troubleshooting.txt"
>
> Try http://www.xs4all.nl/~borkhuis/vxworks/utilities.c
>
> And as far as I remember correctly the document came from DrDiag.
>
> 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: NETWORK INTERFACE bringup problem
Date: 11 Apr 2002 21:40:27 -0700
From: mike_texx@mail.ru (MK)
Organization: http://groups.google.com/
Message-ID: <72096774.0204112040.55dd401b@posting.google.com>
I am trying to bringup an ethernet network interface (a cs8900a chip)
on an ARM7312 Cogent CDK238 development kit board.
muxDevLoad() and muxDevStart() complete successfully, but the ifShow
says "No network interface active". Does that mean that either of
those two functions actually failed, or do I need to do more in order
to have the interface show up on ifShow?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Video driver
Date: Fri, 12 Apr 2002 07:32:02 +0200
From: "Thomas Weiss" <weiss_t@club-internet.fr>
Organization: Club-Internet / T-Online France
Message-ID: <3cb6714a$0$22381$7a628cd7@news.club-internet.fr>
Hello,
I've to write a video driver for a PC104/ISA board based
on the 65545 from Chips and Technologies.
I've downloaded the 65545 product sheet and I have the
list of all the registers, but I don't know how to intialiaze the
board, so I'm looking for a kind of init procedure. Any
information would be very helpful !
BTW, how can I find the memory base address of thsi video
card (it doesn't appear in the CPU board BIOS).
Thank you !
Thomas.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: DMA 8237
Date: Fri, 12 Apr 2002 05:38:35 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <vput8.10221$Gl6.5642@sccrnsc01>
References: <a8puj5$mam$1@news.inter.net.il> <3cb15bdb@brateggebdc5.br-automation.co.at>
And, if I recall correctly, an active buffer cannot span a 64Kbyte memory
boundary (16 bits). The 16-bit address register does not carry into the
8-bit page register.
"Werner Schiendl" <ws-news@gmx.at> wrote in message
news:3cb15bdb@brateggebdc5.br-automation.co.at...
> Hi,
>
> the buffer must be in the first 16 MB address space (24 bit addresses).
>
> The floppy driver that comes with VxWorks uses the fixed range from 0x5000
> to 0x8000 as buffer.
> You may define your own buffer in that way, maybe just below 0xA0000
(start
> of BIOS data area of PCs).
>
> Alternatively, you can reserve some memory in sysLib.c at boot time.
> You cannot use USER_RESERVED_MEM, because that would be one the top of the
> memory pool and break if your system has more than 16MB.
>
> AFAIK, there is no driver or support for the 8237 DMA controller in the
BSP.
> You'll need a hardware description and do it yourself.
>
> hth
> Werner
>
>
> "Gidi Navrotsky" <gidin21@hotmail.com> wrote in message
> news:a8puj5$mam$1@news.inter.net.il...
> > Does anyone know how to use the 8237 DMA in the PC?
> >
> > I tries to use the dmaSetup routine that comes with the tornado package,
> > still there is a need to allocate a buffer for using this function.
> > How do I allocate this buffer?  It should be under 1 MB? am I right?
> >
> > Dow anyone have a sample code concerning this issue?
> >
> > Thank you
> >
> >
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: question: symbol file of bootrom and vxworks
Date: Fri, 12 Apr 2002 06:03:40 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <0Nut8.9764$CH1.6539@sccrnsc02>
References: <4a7f0d21.0204091635.d21c7d9@posting.google.com>
1. You should be able to use the visionIce "convert" tool on the
intermediate elf output file before the bootrom is converted to hex. This
tool produces both the symbol table file and the output formats which can be
downloaded or flashed by visionIce. If you received a sample BSP with
visionClick, check the makefiles in that BSP.
2. When you build a vxworks_rom image, you actually build two parts: the
uncompressed boot image which runs first (rominit, romstart, etc.), which
then deflashes and loads the main vxworks image. You won't be able to get
the symbol tables for both loaded simultaneously.
Furthermore, on some targets, the initial boot image is link-located to an
upper RAM address, but because it is designed as position independent code,
can run out of either flash or RAM. After RAM is initialized, it copies
itself from flash into the relocated area of RAM, where it can deflash the
main image much faster than if it executed out of flash. The side effect of
this is that the visionIce symbol table will reference the RAM location,
which is useless during the time execution occurs out of flash (when most
debugging is actually needed).
"Saledom" <lisheng_811@yahoo.com.cn> wrote in message
news:4a7f0d21.0204091635.d21c7d9@posting.google.com...
> two beginner's questions about visionIce II, visionclick 7.0 and
> tornado II IDE.
>
> i make a bootable project in the IDE of tornado II, and don't modify
> any defult setting.
>
> 1. i program a bsp and build it's bootrom. since the bootrom is a hex
> or bin file, visionlclick  can not convert it to a symbol file. now i
> debug the bootrom without the source code. is there some method to
> debugging my bootrom with the source code?
>
> 2. i build a vxworks image, then convert to the symbol file using
> visionclick. after i download the symbol file and binary file to my
> target, i  can not find the sysalib.s in the symbol exploer window. if
> i build the vxworks_rom image, convert to symbol file, download to
> target, sysalib.s and romstart.c and rominit.s all are not shown in
> the symbol exploer windows.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: sysClkRateSet
Date: Fri, 12 Apr 2002 06:12:29 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <hVut8.9865$CH1.6481@sccrnsc02>
References: <a8upej$vk6lv$1@ID-79865.news.dfncis.de> <3CB434A2.6070205@spamm.me.l8s.co.uk>
Try it in about 10 years on your 200GHz, 128-bit photonic I/O subprocessor,
using "VxWorks FJ".
"David Laight" <david@spamm.me.l8s.co.uk> wrote in message
news:3CB434A2.6070205@spamm.me.l8s.co.uk...
> > sysClkRateSet(1000000) returns ERROR.
>
>
> Not surprising really!
> How do you expect your system to take interrupts at that rate?
>
> FWIW there are bugs lurking if your clock rate is above 2k.
>
> David
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Zinc bitmap problem
Date: Fri, 12 Apr 2002 08:25:43 +0200
From: Emmanuel Herbreteau <eherbreteau@sepro-robotique.com>
Organization: SEPRO Robotique (BEP)
Message-ID: <3CB67DE7.D47AC8E9@sepro-robotique.com>
References: <Sikt8.56917$nk5.6121675@amsnews02.chello.com>
Jacco wrote:
> I have a question about Zinc for VxWorks 5.3.
> When I put a bitmap on for example a button there is a line shown on the
> left or right side of the bitmap. The color of this vertical line is the
> same as my default background color.
Hi,
Did you try to use a "ZAF_FLAT_BUTTON" button type ?
buttonX = new ZafButton(
10,10,32,32,ZAF_NULLP(ZafStringData),bmpButtonX,ZAF_FLAT_BUTTON );
Regards
Emmanuel
---------------------------
Newsgroups: comp.os.vxworks
Subject: motorola mcc
Date: 12 Apr 2002 01:51:53 -0700
From: lionjackyfish@sina.com.cn (JackyLiu)
Organization: http://groups.google.com/
Message-ID: <425faaf3.0204120051.26313b81@posting.google.com>
would anyone can tell me how can i implement n*64k channel and total
band must be 8M use two MCC in 8260 ?
i use MPC8260ZU133A, 66/133/133. Did anyone use this chip too?
when i use only one TDM each MCC, i can get total 16M band, that is,
256 channels * 64k. and at this time , i can implement two super
channel, each is 16*64k, if there are 3 or more super channels, GUN
error is getted.
but when i use several TDM each MCC, i can just get total 8M band,
(128 channels * 64k), how can i overcome it?
the TDM clock is 8M all and i use internal loopback , are there
something wrong?
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Fri Apr 12 09:16:16 2002
From: "vxworks  post" <myvxw@rediffmail.com>
Date: Fri Apr 12 09:16:18 PDT 2002
Subject: VxWorks
good morning !
Background ::: used serial port to connect the target
 		to my workstation.
Issue ::: after the vxworks shell is up, i am not able to
 	  reboot my shell using <ctrl-x> or<ctrl>-\ or @
 	  or any other special characters.
Could any of u let me know as to y this is happening.
rgds
vxworker
From vxwexplo-errs@csg.lbl.gov  Sat Apr 13 04:03:16 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Sat Apr 13 04:03:18 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Sat Apr 13 04:03:11 PDT 2002
        Subject: Re: T2.1 MIPS32 Toolchain problem.
        Subject: route for nt0 interface
        Subject: Re: NETWORK INTERFACE bringup problem
        Subject: integrating zinc with current application
        Subject: Re: Beginer Info
        Subject: Re: Default Route from the inside???
        Subject: Re: sysClkRateSet
        Subject: NetJobAdd: ring buffer overflow!
        Subject: Re: NETWORK INTERFACE bringup problem
        Subject: Sandpoint PMC8240/8245 BSP can't boot on sp3-8245
        Subject: Re: question: symbol file of bootrom and vxworks
        Subject: Re: Default Route from the inside???
        Subject: Re: Zinc bitmap problem
        Subject: Re: Compiling GNU code for VxWorks AE
        Subject: Re: pciIntConnect
        Subject: JOB OPPORTUNITIES - Embedded Software Engineers & Systems Engineers
        Subject: Re: Where is IP_MAX_UNITS set in Tornado VxWorks Configuration?
        Subject: Re: JOB OPPORTUNITIES - Embedded Software Engineers & Systems Engineers
        Subject: Re: eieio and sync in sysInLong() and sysOutLong()
        Subject: Re: modified source code of inflate() used in vxworks_romcompress
        Subject: Re: route for nt0 interface
        Subject: ENOBUFS
        Subject: Question about vxworks init.
        Subject: Re: modified source code of inflate() used in vxworks_romcompress
        Subject: wtx error:10034
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: T2.1 MIPS32 Toolchain problem.
Date: Fri, 12 Apr 2002 08:35:37 +0900
From: "Girish Gulawani" <girishvgNOSPAM@yahoo.com>
Message-ID: <3cb6c694$0$27610$44c9b20d@news3.asahi-net.or.jp>
References: <3cb58a92$0$21579$44c9b20d@news3.asahi-net.or.jp> <Xns91EDB1213E376borkhuisagerecom@135.7.153.101>
Hi, Johan.
First of all thanks for replying.
The problem is solved. It was due to the cache library initialization. It's
working though, I still don't know why was the wrong data sections insertion
taking place. Almost accidentally I came across this "vxwebmips" &
"vxwr5kebmips". These are some kind of emulations shown in ldmips help
(floating point?). The default is vxwr5kebmips (5Kc specific?). Suspecting
this is the cause I changed options to vxwebmips. The data sections were
placed right. Do you or does anybody else have an idea what these emulations
are? Or am I talking something totally out of context?
Thanks again.
Girish.
"Johan Borkhuis" <borkhuis@agere.com> wrote in message
news:Xns91EDB1213E376borkhuisagerecom@135.7.153.101...
> "Girish Gulawani" <girishvgNOSPAM@yahoo.com> wrote:
> > Today I'm really excited to learn that our working BSP for MIPS R4000
> > board is not working with our recently acquired T2.1 toolchain. We
> > have been using the same bootrom code with T1.0.1 & T2.0.
>
> Between T2.0 and T2.1 the architecture for MIPS has been changed. See the
> "Release notes and architecture supplement" for Tornado 2.1 for more
> details. See section 8 for information on upgrading.
>
> 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: route for nt0 interface
Date: 12 Apr 2002 05:36:44 -0700
From: sai_dattathrani@infy.com (sai)
Organization: http://groups.google.com/
Message-ID: <8dff11cd.0204120436.4d18bb2d@posting.google.com>
Hi all,
 I am having the trial version of Tornado. I have configured an ip
address for nt0 interface. But the route to this network is not added
to the kernel. If I have configured 90.0.0.1 to nt0, there is no route
to 90.0.0.0.
 Can anyone please help me solve this problem.
rgds
sai
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: NETWORK INTERFACE bringup problem
Date: 12 Apr 2002 06:24:41 -0700
From: alimohd@logiceastern.com (Ali)
Organization: http://groups.google.com/
Message-ID: <b305b5bd.0204120524.537f83e@posting.google.com>
References: <72096774.0204112040.55dd401b@posting.google.com>
mike_texx@mail.ru (MK) wrote in message news:<72096774.0204112040.55dd401b@posting.google.com>...
> I am trying to bringup an ethernet network interface (a cs8900a chip)
> on an ARM7312 Cogent CDK238 development kit board.
>
> muxDevLoad() and muxDevStart() complete successfully, but the ifShow
> says "No network interface active". Does that mean that either of
> those two functions actually failed, or do I need to do more in order
> to have the interface show up on ifShow?
hi mike
 I think the problem is in ur endDevTbl[] entry have u made an entry
there there correctly just check ur configNet file again...
 also see the IP_MAX_UNITS ...
still if u have probspost again with more details.
bye
---------------------------
Newsgroups: comp.os.vxworks
Subject: integrating zinc with current application
Date: Fri, 12 Apr 2002 14:09:58 GMT
From: "Joe Mazza" <KMAZZA@cox.rr.com>
Organization: RoadRunner - Cox
Message-ID: <WUBt8.46473$pe6.14975086@typhoon.southeast.rr.com>
Hello all,
I'm new to Zinc so forgive the easy question. I have an existing c++
application, the source code of which gets autogenerated by the design tool
I'm using. Since the code is autogenerated, the main entry point is
automatically created. Looking at everything that comes "out-of-the-box"
with zinc it seems like I'm forced to define ZafApplication::Main so that it
can instantiate all of the wonderful things it does, like zafWindowManager
for instance. I've tried just creating a new zafWindowManager object inside
my application but I get an exception on the target. And, by the way, I'm
just trying to use some of the code from the zinc demos so I'm not doing
anything overly complicated. Running the demo by itself works great. Can
anyone lend a hand?
Thank you,
Joe
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Beginer Info
Date: Fri, 12 Apr 2002 07:46:21 -0700
From: "Michael R. Kesti" <mkesti@gv.net>
Organization: MK Associates
Message-ID: <3CB6F33D.90B67A68@gv.net>
References: <ZIrt8.19585$e64.3021201@news20.bellglobal.com>
Reply-To: mkesti@gv.net
DPGumby wrote:
>Any go basic info or tutorials?
Link to http://groups.google.com/advanced_group_search, enter "tutorial"
in the "with all the words" box and "comp.os.vxworks" in the "Return only
messages from the newsgroup" box. Then click on the "Google Search" button.
- --
========================================================================
          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: Default Route from the inside???
Date: 12 Apr 2002 08:07:27 -0700
From: kenb88@hotmail.com (Whacked)
Organization: http://groups.google.com/
Message-ID: <6755aee5.0204120707.7c7571f6@posting.google.com>
References: <6755aee5.0204100942.19b97957@posting.google.com> <newscache$t5teug$7cb$1@lnews.actcom.co.il>
Leonid,
Thanks...those are some good suggestions. What about using the
AF_ROUTE socket interface? Think that would work?
"Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message news:<newscache$t5teug$7cb$1@lnews.actcom.co.il>...
> It seems rather strange that an application would want
> to know routing details - this violates the layering concept.
>
> There are two ways to do this:
>
> 1. You can immitate the workings of routeShow(), which traverses the entire
> routing table made of linked lists, and is a rather complex peice of code.
> To do this, get the source file netShow.c from your FAE or support engineer,
> there are a few functions involved.
> 2. You can use the MIB-2 interface library - m2Lib - which provides
> interface to assorted network modules for use by SNMP, but your application
> can use this API as well, and the API is reasonably documented in the m2Lib
> manual pages.
>
> Please note that you do not need to have WindNett SNMP installed to use the
> m2Lib which comes standard. Also the second approach is more "future proof".
>
> Hope this helps,
>     Leonid
>
> "Whacked" <kenb88@hotmail.com> wrote in message
> news:6755aee5.0204100942.19b97957@posting.google.com...
> > A program that I am writing requires that I lookup the default route
> > from the routing table. Probably a simple question, but how the heck
> > do you do it? There is RouteAdd, RouteDelete, RouteShow, but now
> > RouteGet. Certainly the kernel has to look it up for every packet
> > going off the LAN. How can I look it up?
> >
> > thanks in advance,
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: sysClkRateSet
Date: Fri, 12 Apr 2002 15:12:56 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CB6FA07.4090805@spamm.me.l8s.co.uk>
References: <a8upej$vk6lv$1@ID-79865.news.dfncis.de> <3CB434A2.6070205@spamm.me.l8s.co.uk> <hVut8.9865$CH1.6481@sccrnsc02>
Gary M wrote:
> Try it in about 10 years on your 200GHz, 128-bit photonic I/O subprocessor,
> using "VxWorks FJ".
Yes - but select() will still be broken :-)
>
> "David Laight" <david@spamm.me.l8s.co.uk> wrote in message
> news:3CB434A2.6070205@spamm.me.l8s.co.uk...
>
>>>sysClkRateSet(1000000) returns ERROR.
>>>
>>
>>Not surprising really!
>>How do you expect your system to take interrupts at that rate?
>>
>>FWIW there are bugs lurking if your clock rate is above 2k.
>>
>>David
>>
>>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: NetJobAdd: ring buffer overflow!
Date: Thu, 11 Apr 2002 10:03:22 +0800
From: "eric" <lihao@accesssolutions.com.tw>
Organization: DCI HiNet
Message-ID: <a92tbv$ake@netnews.hinet.net>
Sir,
   I am use network buffer but system show "NetJobAdd: ring buffer
overflow!"  How to solve this problem? Thank!
Best Regards,
eric
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: NETWORK INTERFACE bringup problem
Date: Fri, 12 Apr 2002 08:58:07 -0700
From: "Dan Gold" <gold@ensemble.com>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <a9708v$ed0$1@newsreader.mailgate.org>
References: <72096774.0204112040.55dd401b@posting.google.com>
Sender: gold@ensemble.com
"MK" <mike_texx@mail.ru> wrote in message
news:72096774.0204112040.55dd401b@posting.google.com...
> I am trying to bringup an ethernet network interface (a cs8900a chip)
> on an ARM7312 Cogent CDK238 development kit board.
>
> muxDevLoad() and muxDevStart() complete successfully, but the ifShow
> says "No network interface active". Does that mean that either of
> those two functions actually failed, or do I need to do more in order
> to have the interface show up on ifShow?
It depends.  Is the interface your boot device or an additional network
interface ?  VxWorks will bring up your boot device, so if it's not up,
chances are the muxDevLoad() or muxDevStart() functions failed.  You can see
the code in usrNetInit() in usrNetwork.c that does the work and instrument
it if necessary.
If it's an additional interface, then you need to do more to bring the
interface up.  Look at the rest of the code in usrNetInit(), i.e. where it
does usrNetIfConfig().  That stuff all needs to be done.  If you go to
Johan's vxWorks FAQ, there's a code snippet that does all of that.
  hth,
   Dan Gold   gold@ensemble.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Sandpoint PMC8240/8245 BSP can't boot on sp3-8245
Date: 12 Apr 2002 09:19:57 -0700
From: baran@yeah.net (baran)
Organization: http://groups.google.com/
Message-ID: <5a942a22.0204120819.2491812b@posting.google.com>
I downloaded the Sandpoint PMC8240/8245 Motorola Sandpoint (PMC8240 &
PMC8245) BSP (rel July 2001) from windsurf and tried to run it on my
sandpoint 8245 board,But it can't boot normally.
After I have installed the TDK-14110.tar package,I used my programmer
to burn ~\Tornado\target\config\sp824x\bootrom.hex into U6 (29f040). I
have used the
same methods to burn dink32 file, it works fine.
But bootrom seems didn't work normally,It can't print any character on
the
terminal which connecting to sp3's com1. I tried 9600bps and 38400bps
and com2,all faild. After PowerOn,the "PCI" and "ROM" LED lighted
about 1 second,then off.
I used the 'build bootrom' in tornado to build a new bootrom.hex,but I
still
can't work.
Can anybody tell me the right way to boot my sp3-8245?
baran
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: question: symbol file of bootrom and vxworks
Date: 12 Apr 2002 09:42:13 -0700
From: vloscomp@yahoo.com (Vinh)
Organization: http://groups.google.com/
Message-ID: <c129947c.0204120842.47b65647@posting.google.com>
References: <4a7f0d21.0204091635.d21c7d9@posting.google.com>
lisheng_811@yahoo.com.cn (Saledom) wrote in message news:<4a7f0d21.0204091635.d21c7d9@posting.google.com>...
> two beginner's questions about visionIce II, visionclick 7.0 and
> tornado II IDE.
I am also a beginner :)
>
> i make a bootable project in the IDE of tornado II, and don't modify
> any defult setting.
I used Cygwin and GNU make enviroments. The Wind GUI also generates a
makefile.
>
> 1. i program a bsp and build it's bootrom. since the bootrom is a hex
> or bin file, visionlclick  can not convert it to a symbol file. now i
> debug the bootrom without the source code. is there some method to
> debugging my bootrom with the source code?
>
The make produced an 'elf' or 'coff' format, but the actual file name
produce doesnot have the 'elf'/'coff' extension. The following is what
is used to convert and relocate the entry points. (Note: there is an
intermediary conversion to 'hex', i don't know the command line option
for VisionClick to convert 'elf' to 'bin')
Make bootrom
ccppc -Bc:/Tornado/host/x86-win32/lib/gcc-lib/ -c -mstrict-align -ansi
- -nostdinc -O2
- -fvolatile -fno-builtin -fno-for-scope -Wall -I/h   -I.
- -I../../../LC/GigE/Bsp/config
All -Ic:/Tornado/target/h -Ic:/Tornado/target/src/config
- -Ic:/Tornado/target/src/drv
- -DCPU=PPC604   -g -DENABLE_MEMORY_ROBE=1 -DNIC_OVER_ETHERNET_PORT
- -DMPSC_AS_UART -I..
/../../LC/GigE/Bsp/h -I../../../LC/common/CommDrv/h
- -I../../../LC/common/CoreDrv/h
- -o ../../../bin/version.o ../../../LC/GigE/Bsp/configAll/version.c
ldppc -EB -X -N -Map bootrom.map -e _romInit -Ttext 00010000  \
    -o bootrom.elf \
        ../../../bin/romInit.o ../../../bin/bootInit.o
../../../bin/version.o ../../.
./bin/itab.o \
     c:/Tornado/target/lib/libPPC604gnuvx.a ../../../bin/bootrom.Z.o
c:/Tornado/host/x86-win32/bin/romsize PPC -b 00080000  bootrom.elf
bootrom.elf: 16900(t) + 168785(d) = 185685 (338603 unused)
true bootrom.elf
- --------------------------------------------
 Make bootrom.hex
 Convert bootrom.elf to bootrom.hex (Motorola S)
c:/Tornado/host/x86-win32/bin/elfHex -a 100  bootrom.elf  \
 > bootrom.hex
*********************************************************
 Convert bootrom.hex (Motorola S) to bootrom.bin flat bin
 WARNING: entry points is at absolute addr 100
*********************************************************
c:/ESTII/convert -s bootrom.hex -a bootrom.bin
convert.exe v7.9A Copyright (c) 1996-2001 Wind River HSI
convert S-Record file bootrom.hex to Flat Binary file bootrom.bin
Extracting image from 'bootrom.hex'
Writing flat binary image to 'bootrom.bin'
Lower address: 0x0
Upper address: 0xffffffff
Execution address: 0x00000000
Image written
> 2. i build a vxworks image, then convert to the symbol file using
> visionclick. after i download the symbol file and binary file to my
> target, i  can not find the sysalib.s in the symbol exploer window. if
> i build the vxworks_rom image, convert to symbol file, download to
> target, sysalib.s and romstart.c and rominit.s all are not shown in
> the symbol exploer windows.
I don't know what is your target architecture is, but mine is PPC and
most of
source can be browsed by VisionClick once the above is achieved.
Good Luck,
Vinh Lam
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Default Route from the inside???
Date: Fri, 12 Apr 2002 16:47:22 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$5augug$l9f$1@lnews.actcom.co.il>
References: <6755aee5.0204100942.19b97957@posting.google.com> <newscache$t5teug$7cb$1@lnews.actcom.co.il> <6755aee5.0204120707.7c7571f6@posting.google.com>
I do not recall that VxWorks code supports or uses AF_ROUTE,
so it could be a wild goose chase.
If time is of essense, use one of the two methods I recommend
which are guaranteed to give results within a constrained timeframe,
because both are employing APIs used by WRS's own code.
"Whacked" <kenb88@hotmail.com> wrote in message
news:6755aee5.0204120707.7c7571f6@posting.google.com...
> Leonid,
>
> Thanks...those are some good suggestions. What about using the
> AF_ROUTE socket interface? Think that would work?
>
>
>
>
> "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message
news:<newscache$t5teug$7cb$1@lnews.actcom.co.il>...
> > It seems rather strange that an application would want
> > to know routing details - this violates the layering concept.
> >
> > There are two ways to do this:
> >
> > 1. You can immitate the workings of routeShow(), which traverses the
entire
> > routing table made of linked lists, and is a rather complex peice of
code.
> > To do this, get the source file netShow.c from your FAE or support
engineer,
> > there are a few functions involved.
> > 2. You can use the MIB-2 interface library - m2Lib - which provides
> > interface to assorted network modules for use by SNMP, but your
application
> > can use this API as well, and the API is reasonably documented in the
m2Lib
> > manual pages.
> >
> > Please note that you do not need to have WindNett SNMP installed to use
the
> > m2Lib which comes standard. Also the second approach is more "future
proof".
> >
> > Hope this helps,
> >     Leonid
> >
> > "Whacked" <kenb88@hotmail.com> wrote in message
> > news:6755aee5.0204100942.19b97957@posting.google.com...
> > > A program that I am writing requires that I lookup the default route
> > > from the routing table. Probably a simple question, but how the heck
> > > do you do it? There is RouteAdd, RouteDelete, RouteShow, but now
> > > RouteGet. Certainly the kernel has to look it up for every packet
> > > going off the LAN. How can I look it up?
> > >
> > > thanks in advance,
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Zinc bitmap problem
Date: Fri, 12 Apr 2002 16:57:22 GMT
From: "Jacco" <hiermijn@email.com>
Organization: QuickNet
Message-ID: <SlEt8.71921$nk5.7011161@amsnews02.chello.com>
References: <Sikt8.56917$nk5.6121675@amsnews02.chello.com> <3CB67DE7.D47AC8E9@sepro-robotique.com>
Hello,
Thank you for your reply. I tried the use of a ZAF_FLAT_BUTTON but it gives
the same effect. The problem is that whenever I use a bitmap the lines are
shown. It is not limited to a button. It looks like the line that is drawn
is, for some unknown reason, a part of the bitmap or drawn incorrectly. I
created the images with the image editor which is part of the Zinc Designer.
With this editor you can edit the pixels. When the bitmap is shown on the
target the left or right side (depends on image) of the bitmap pixels are
shown as a vertical line I didn't specify.
"Emmanuel Herbreteau" <eherbreteau@sepro-robotique.com> schreef in bericht
news:3CB67DE7.D47AC8E9@sepro-robotique.com...
> Hi,
>
> Did you try to use a "ZAF_FLAT_BUTTON" button type ?
>
> buttonX = new ZafButton(
> 10,10,32,32,ZAF_NULLP(ZafStringData),bmpButtonX,ZAF_FLAT_BUTTON );
>
> Regards
> Emmanuel
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Compiling GNU code for VxWorks AE
Date: 12 Apr 2002 10:08:36 -0700
From: venu_padakanti@yahoo.com (Venu Madhav Padakanti)
Organization: http://groups.google.com/
Message-ID: <55aab3a9.0204120908.63888765@posting.google.com>
References: <55aab3a9.0204081249.19f8ad52@posting.google.com> <a8uo0u$26v$1@newsread1.arcor-online.net> <a91es6$sgi$1@newsread1.arcor-online.net> <55aab3a9.0204101344.60c91b6@posting.google.com> <rps4rijmbqj.fsf@nospam.invalid>
Thanks Joe it works. I used the option and it works. Now I do not need
to port the library.
I am blocked with some VxWorks Simulator issues on Windows 2K on
Pentium 4.
I linked and could run a sample program.
Thanks for your help.
..Venu
Joe Chung <nospam@nospam.invalid> wrote in message news:<rps4rijmbqj.fsf@nospam.invalid>...
> venu_padakanti@yahoo.com (Venu Madhav Padakanti) writes:
>
> > Christof
> >
> >    I am using a cygwin environment to generate the C source code files
> > from flex and bison but I need to build libflex.a to link some symbols
> > in the generated code. So the task at my hand is to compile the
> > libflex.a in VxWorks environment.
> >
> >    I realised that we do not need to build the flex and bison tools.
> >
> >    I have tried to use the --target=ppc_wrs_vxworks (as suggested)
> > kind of environment but it did not understand the target right.
> >
> >    Hope it helps.
> >
> > Thanks
> > ..venu
>
> Um, you don't really need to "port" libfl.a (libflex).
> libfl.a only defines two functions:
>
> int main(int argc, char *argv[])
> {
>   while(yylex() != 0) ;
>
>   return 0;
> }
>
> int yywrap()
> {
>   return 1;
> }
>
> Thus, if you already have a call to yylex() in your code and you
> use the
> %option noyywrap
> in your .l file, then you don't need libfl.a.
>
> -jc
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: pciIntConnect
Date: Fri, 12 Apr 2002 17:13:23 GMT
From: "Travis Pennington" <travispennington@worldnet.att.net>
Organization: AT&T Worldnet
Message-ID: <TAEt8.19643$Rw2.1582583@bgtnsc05-news.ops.worldnet.att.net>
References: <989cdae4.0204110256.faeb5a5@posting.google.com>
"zlybupt" <zhoul@blrcsv.china.bell-labs.com> wrote in message
news:989cdae4.0204110256.faeb5a5@posting.google.com...
> Hi all:
>    when I use pciIntConnect to connect a ISR to a irq,i use like that
>  if (pciIntConnect((VOIDFUNCPTR *)INUM_TO_IVEC(device->irq +
> INT_NUM_IRQ0),
>                 &NICInterrupt,  PARA)!=OK)
>  HERE i have two problems:
>    1.the system tells me INT_NUM_IRQ0 not defined and I cannot find it
> in any *.h file ,is it necessary to add it?
It is a good practice to add the IRQ0 offset when using (pci)IntConnect.
Depending upon your hardware, the IRQ number does not map directly to the
vector table index used for the IRQ.  Sometimes the beginning of the vector
table is used for system related interrupts and the index for IRQ0 occurs
afterwords.  This is certainly the case for Intel processors.  However the
PowerPC and I believe some other Motorola processors don't use this
scheme -- INT_NUM_IRQ0 is zero.
If your target is a single board computer that came with its own BSP, you
should search the BSP package for the definition of INT_NUM_IRQ0, or some
similar definition with "IRQ0", "IRQ_0", etc. in it.
Also not that you may need to perform an intEnable() is the interrupt line
you are connected to has not been previously enabled.  Do not apply the
INT_NUM_IRQ0 offset to the intEnable() call.  Thus, your call would look
something like "intEnable (device->irq)"
>    2.If the parameters I want to pass to the ISR is more than one ,how
> do I pass it,using which form? Can somebody give me an example?
>    Thank you in advance!
As stated by a previous replier, bundle your arguments in a structure,
ensure your structure is persistent (global or static if you wish), and pass
the address of the structure as the argument.
Good Luck
---------------------------
Newsgroups: comp.os.vxworks,comp.lang.ada
Subject: JOB OPPORTUNITIES - Embedded Software Engineers & Systems Engineers
Date: Fri, 12 Apr 2002 18:31:23 GMT
From: "Mark D" <markd01@comcast.net>
Organization: Giganews.Com - Premium News Outsourcing
Message-ID: <%JFt8.14815$GS6.1191432@bin3.nnrp.aus1.giganews.com>
Hi Everyone,
I am currently assisting a Major Communications Company in the Philadelphia
area that is in need of Embedded Software Engineers, and Systems Engineers.
This is a great company with excellent benefits! If you know someone that
would qualify, please forward this email to them. I appreciate any help you
can give.
To be considered for this opportunity please forward a Word copy of your
resume, your salary history ( last 2 positions), your contact information
(include a cell phone if you have one). Please let me know if you are
interested.
Sincerely,
Valarie Williams
CPR, Inc.
Val@cprstaffing.com
___________________________________________________________________________
EMBEDDED SOFTWARE ENGINEERS
Active DOD Secret Security Clearance Required for this position. If your
clearance was administratively inactivated within the last 22 months, you
may still qualify.
JOB DESCRIPTION:
- - Software requirements analysis, design, development, integration and test
of digital signal processing software.
- - Produce product which meets customer's requirements.
- - Coordination with systems engineering and customer regarding DAP issues.
- - Identify and plan to mitigate risks to successful completion of project.
- - Meet challenging schedule within cost allocation.
REQUIREMENTS:
- - BSEE, CE.
- - 4-12 years experience in software systems requirements analysis, design,
development, integration and test with concentration in digital signal
process.
- - Experience with embedded real-time C and RTOS.
- - Excellent written and verbal communication skills.
- - Familiarity with modern software engineering process/methodology.
- - Use workstation based software engineering tools.
- - Self-starter, highly motivate and demonstrated success in working on
teams.
- - Active DOD Secret Security Clearance.
SALARY:
70-100K relocation assistance available
____________________________________________________________
SENIOR SYSTEMS ENGINEERS
REQUIREMENTS:
- - Proficient in requirements analysis and development.
- - Proficient in specification development,
- - Knowledgeable in system modeling such as UML or Demaro
- - Knowledgeable in hardware and in software processes and their interaction.
- - Proficient in the development of test plans, procedures and reports.
- - Proficient in system design.
- - Proficient in the development of security related documentation.
- - Knowledgeable in cryptographic principles.
- - Knowledgeable in RED/BLACK separation principles and in TEMPEST design
principles.
- - Demonstrated self-starter.
- - BSEE,CE. US Citizenship Required.
- - Most positions require a background investigation.
____________________________________________________________
Contact:
Valarie Williams
CPR, Inc.
Val@cprstaffing.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Where is IP_MAX_UNITS set in Tornado VxWorks Configuration?
Date: 12 Apr 2002 13:25:14 -0700
From: mike_texx@mail.ru (MK)
Organization: http://groups.google.com/
Message-ID: <72096774.0204121225.17aa0b4d@posting.google.com>
References: <3CA4A329.16157E28@bitworkssystemsDELETETHIS.com> <jyap8.167762$q2.16110@sccrnsc01>
> Hello Jon,
>
>     In the Tornado IDE, when the project is open for your bootable vxWorks
> kernel, the
> vxWorks tab can be selected. Right-Click on the Network Components and
> select parameters.
> In the list you will find IP_MAX_UNITS which you can change. Don't ask me
> why the
> value in the BSP is over-ridden, but anyway this is what I did to add 4 NICs
> to my
> Pentium vxWorks kernel.
>
I am not using Tornado to set the network options. Could you tell me
which .h files I would need to edit in order to increase IP_MAX_UNITS?
 A definition in bootConfig.c file doesn't matter, since I am building
a standalone image vxWorks.st_rom.  There is a piece of code in
usrNetwork.c that looks like this:
#ifdef INCLUDE_END
#ifndef IP_MAX_UNITS
#define IP_MAX_UNITS 1
#endif
I could change the definition from 1 to 2 here, but it seems like the
IP_MAX_UNITS is already defined by this point, and the line is ignored
altogether due to #ifndef.  Can you suggest a proper way of changing
the definition of IP_MAX_UNITS ?
Thanks.
---------------------------
Newsgroups: comp.os.vxworks,comp.lang.ada
Subject: Re: JOB OPPORTUNITIES - Embedded Software Engineers & Systems Engineers
Date: 12 Apr 2002 14:30:07 -0700
From: dennison@telepath.com (Ted Dennison)
Organization: http://groups.google.com/
Message-ID: <4519e058.0204121330.587c9309@posting.google.com>
References: <%JFt8.14815$GS6.1191432@bin3.nnrp.aus1.giganews.com>
"Mark D" <markd01@comcast.net> wrote in message news:<%JFt8.14815$GS6.1191432@bin3.nnrp.aus1.giganews.com>...
> To be considered for this opportunity please forward a Word copy of your
> resume, your salary history ( last 2 positions), your contact information
I respectfully submit to you that Microsoft Word is an expensive
proprietary word processor with a secret file format that not everyone
in your target audience has access to. If you want the best possible
return ratio, you really should consider accepting something that is a
publicly avilable standard, like HTML or even (gasp) plain text.
> - Experience with embedded real-time C and RTOS.
I'd also submit that an Ada newsgroup may be a great place to look for
hot-shot embedded real-time developers, but is probably not the best
place to look for people who are dying to get a job coding in C.
> - Knowledgeable in RED/BLACK separation principles and in TEMPEST design
> principles.
Ahhh. Sounds like the LMCO group I used to work with in Camden.
Have a nice day.
- --
T.E.D.
Home     -  mailto:dennison@telepath.com (Yahoo: Ted_Dennison)
Homepage -  http://www.telepath.com/dennison/Ted/TED.html
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: eieio and sync in sysInLong() and sysOutLong()
Date: Fri, 12 Apr 2002 23:47:43 +0200
From: "Wiesel Andre" <wiesel@bluewin.ch>
Organization: Bluewin AG
Message-ID: <3cb756f4_4@news.bluewin.ch>
References: <3caae4d0.98474498@news.eunet.no> <3CAC5AE1.5040708@spamm.me.l8s.co.uk> <3cada852.111794762@news.eunet.no>
The writes are always ordered. This means that when the "kick" will happen
on the
bus, all previous write transaction will have happened on the bus as well.
The only problem occurs when you do a write/read sequence. As writes are
buffered, you
may actually do the read before the write is really "flushed" on the bus.
eieio  will flush the
write.
As the writes are stored in a fifo, you are sure that writes are always
ordered.
Regarding the sync, I think they are useless.
"BT" <brede.thurmann@kongsberg-simrad.com> wrote in message
news:3cada852.111794762@news.eunet.no...
> On Thu, 4 Apr 2002 13:51:32 +0000 (UTC), David Laight
> <david@spamm.me.l8s.co.uk> wrote:
>
> >BT wrote:
> >
> >> I have a computer based on a PPC755 with an MPC107
> >> connected to a PCI bus. I use the functions sysInLong()
> >> and sysoutLong() to access devices on the PCI bus.
> >> The functions from vxWorks disasemble like this:
> >>
> >> sysInLong:
> >>     lwbrx   r4,r0,r3
> >>     eieio
> >>     sync
> >>     or      r3,r4,r4
> >>     bclr    20,0
> >>
> >> sysOutLong:
> >>     stwbrx  r4,r0,r3
> >>     eieio
> >>     sync
> >>     bclr    20,0
> >>
> >> Is it realy necessary to use both 'eieio' and 'sync'?
> >> I does not get any problems if I try to remove the 'eieio'
> >> but I think it is a bit difficult to fully understand
> >> when to use these functions.
> >
> >I have to admit to not having written PPC, but I believe I know
> >some of what eieio and sync are for :-)
> >
> >What I wonder is whether the about are 'correct' at all.
> >Consider the following that might happen in an ethernet
> >driver tx routine.
> > copy_frame_to_shared_memory();
> > update_tx_ring();
> > sysOutLong( tx_ctl, kick_tx );
> >Now you need all the memoy writes associated with the first
> >two actions to happen before the 'kick' of the ethernet chip.
> >To guarantee this any eieio and/or sync instructions must
> >be done BEFORE the write generated by sysOutLong.
> >
> >What have I missed?
> >
> > David
> >
>
> I have not yet thaught about that. It seems to me that you have
> described a case where it is not enough just to use sysOutLong()
> to 'kick' the ethenet.
> But I belive I do not have this problem as I have set up my system
> like this:
> - Net buffers are located in an area where cahce is disabled
> - Address trasnlation is enabled.
> - The I bit (in WIMG) set.
> This shall as I understand it enforce strongly ordered load and store.
>
> BT
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: modified source code of inflate() used in vxworks_romcompress
Date: 12 Apr 2002 15:37:48 -0700
From: pkockritz@mac.com (Pete Kockritz)
Organization: http://groups.google.com/
Message-ID: <9423c55b.0204121437.702044b@posting.google.com>
References: <1d411918.0204111729.5ad8e104@posting.google.com>
lihuapeng@21cn.com (DragonSpring) wrote in message news:<1d411918.0204111729.5ad8e104@posting.google.com>...
> Does anyone has the modified and tested zlib source code for VxWorks ?
> Will you please email me a copy of it ?
> Thanks.
My suggestion would be to ask your WRS FAE for the source to inflateLib.
Pete
- --
pkockritz at mac dot com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: route for nt0 interface
Date: Fri, 12 Apr 2002 20:42:29 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: BELLSOUTH.net
Message-ID: <3CB77EF5.CD6316E6@bellsouth.net>
References: <8dff11cd.0204120436.4d18bb2d@posting.google.com>
sai wrote:
> Hi all,
>
>  I am having the trial version of Tornado. I have configured an ip
> address for nt0 interface. But the route to this network is not added
> to the kernel. If I have configured 90.0.0.1 to nt0, there is no route
> to 90.0.0.0.
>
>  Can anyone please help me solve this problem.
>
> rgds
> sai
    I've never used it personally, but I am told that the freebee
versiobn has to be rebuilt to include networking.  It comes
network-less.
Speaking only for myself,
Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: ENOBUFS
Date: Fri, 12 Apr 2002 22:15:50 -0400
From: "Rick Guzick" <legalaliens@erols.com>
Message-ID: <a984cv$an0$1@bob.news.rcn.net>
Hi.
Has anybody seen an ENOBUFS ("no buffer space available") returned on a
socket call?  If so, is it normal for me to get this once in awhile?  What
should be the logic to handle this?  TaskDelay and try again?
Wind River CS suggested increasing my tcp_sendspace and tcp_recvspace.  This
did not help at all.
Any suggestion?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Question about vxworks init.
Date: 12 Apr 2002 21:16:04 -0700
From: liandongzhang@hotmail.com (liandongzhang)
Organization: http://groups.google.com/
Message-ID: <83f4aa95.0204122016.49bd12cc@posting.google.com>
I use bootrom download vxworks from host through ftp.
bootrom works,when it can load vxworks and init vxworks
but in the process of init vxworks
it printf:
muxDevLoad failed for device entry 0!
Could not find elt0
Attaching network interface elt0... done.
Attaching interface lo0...done.
VxWorks
CopyRight..........
Cpu:PC Pentium
VxWorks:5.4
Bsp Version:1.2/0
Creation datae: Apr 13 2002
WDB: Ready
- ->
but when i input a command such as help,?
it return :undefined symbol:help
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: modified source code of inflate() used in vxworks_romcompress
Date: 13 Apr 2002 02:09:41 -0700
From: lihuapeng@21cn.com (DragonSpring)
Organization: http://groups.google.com/
Message-ID: <1d411918.0204130109.59f11ffd@posting.google.com>
References: <1d411918.0204111729.5ad8e104@posting.google.com> <9423c55b.0204121437.702044b@posting.google.com>
But they said that they had not the source code to inflateLib. I am in
despair. Who can help me?
pkockritz@mac.com (Pete Kockritz) wrote in message news:<9423c55b.0204121437.702044b@posting.google.com>...
> lihuapeng@21cn.com (DragonSpring) wrote in message news:<1d411918.0204111729.5ad8e104@posting.google.com>...
> > Does anyone has the modified and tested zlib source code for VxWorks ?
> > Will you please email me a copy of it ?
> > Thanks.
>
> My suggestion would be to ask your WRS FAE for the source to inflateLib.
>
> Pete
---------------------------
Newsgroups: comp.os.vxworks
Subject: wtx error:10034
Date: 13 Apr 2002 03:25:41 -0700
From: sanil_kumar_d@yahoo.com (Sanil Kumar D)
Organization: http://groups.google.com/
Message-ID: <12f865b0.0204130225.3757914f@posting.google.com>
When i downloaded a downloadable(NOT bootable) image ('.out'),i got an error :
wtx error: 10034 (LOADER_RELOCATION_OFFSET_TOO_LARGE).
Pls send your views as soon as possible
Thanks.
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Mon Apr 15 04:03:15 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Mon Apr 15 04:03:18 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Mon Apr 15 04:03:11 PDT 2002
        Subject: data  exception: how to debug?
        Subject: Re: Error message to semTake request
        Subject: Re: data  exception: how to debug?
        Subject: Error message to semTake request
        Subject: Task properties in Tornado Shell and Target Simulator Windows
        Subject: Output redirection to Tornado Shell Window or Target Simulator Window
        Subject: Serial port traffic crashes x86 target
        Subject: A little about ring buffers
        Subject: The ls() command & Target Shell
        Subject: Re: route for nt0 interface
        Subject: Re: wtx error:10034
        Subject: Re: route for nt0 interface
        Subject: Question about network card driver in vxworks
        Subject: Multiple messages on a routing socket??
        Subject: Re: data  exception: how to debug?
        Subject: Invalid Opcode
        Subject: Re: Serial port traffic crashes x86 target
        Subject: Re: A little about ring buffers
        Subject: HOW to USE memalign( )?
        Subject: wdbserial connection problem
        Subject: Does tftpdDirectoryAdd() return anything?
        Subject: Re: Question about vxworks init.
        Subject: Re: Quatech MPAP 200/300 PCMCIA board
        Subject: [Q]ring buffer problem
        Subject: Re: [Q]ring buffer problem
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: data  exception: how to debug?
Date: 14 Apr 2002 10:06:19 -0700
From: roswel_ajf@hotmail.com (roswell)
Organization: http://groups.google.com/
Message-ID: <6dcae13d.0204140906.7f8b372@posting.google.com>
hi,
 Please give me some general help on how to debug a data exception for
PPC750/755 based on following information i see on Vxworks (5.2)
shell.
data access
Exception current instruction address: 0x000b0a00
Machine Status Register: 0x0000b030
Data Access Register: 0x087f7564
Condition Register: 0x42000080
Data Storage interrupt Register: 0x40000000
Task: 0x6533bc8 "tFtpdServ1"
what are these all mean?
thanks..
roswel
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Error message to semTake request
Date: Sun, 14 Apr 2002 19:00:22 +0200
From: "VU Khac Tri \(home\)" <tvk6843@hotmail.com>
Organization: FUNDP, Namur, Belgium
Message-ID: <a9cnes$cd8s@hermes.fundp.ac.be>
References: <4b460db0.0204140430.329d35a1@posting.google.com>
Yes, you call semTake for a semID which is not valid. This may be due to,
some task has called semDelete before the other task call semTake OR in the
task called semDelete before the other task calls semCreate OR semCreate has
failed. "Invalid semaphore ID" is already clear enough  ;-)
You may want to visualize this using WindView.
Tri.
"Sagi Linshits" <slinshits@hotmail.co.il> wrote in message
news:4b460db0.0204140430.329d35a1@posting.google.com...
> I did semTake command and got S_objLib_OBJ_ID_ERROR message. Can
> somebody describe me in more details what means this error message. In
> help I seen that this is some as "Invalid semaphore ID", but for me
> this answer in not enought. I see that semaphore that I want to take
> is valid. So can somebody help me?
> Thank you.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: data  exception: how to debug?
Date: Sun, 14 Apr 2002 10:18:46 -0700
From: "Michael R. Kesti" <mkesti@gv.net>
Organization: MK Associates
Message-ID: <3CB9B9F6.6065363B@gv.net>
References: <6dcae13d.0204140906.7f8b372@posting.google.com>
Reply-To: mkesti@gv.net
roswell wrote:
>hi,
> Please give me some general help on how to debug a data exception for
>PPC750/755 based on following information i see on Vxworks (5.2)
>shell.
>
>data access
>Exception current instruction address: 0x000b0a00
>Machine Status Register: 0x0000b030
>Data Access Register: 0x087f7564
>Condition Register: 0x42000080
>Data Storage interrupt Register: 0x40000000
>Task: 0x6533bc8 "tFtpdServ1"
>
>what are these all mean?
They are teling you that a task named "tFtpServ1", whose task control block
(TCB) is located at address 0x6533bc8, accessed memory at address 0x087f7564
while executing an instruction at address 0x000b0a00 and that access resulted
in a data access exception.  The remaining values are the contents of the
indicated registers.
These sort of errors are frequently the result of accessing memory that
doesn't exist, often because of a programming error that results in use
of an unitialized or otherwise erroneous pointer.
>thanks..
Sure.
- --
========================================================================
          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: Error message to semTake request
Date: 14 Apr 2002 05:30:43 -0700
From: slinshits@hotmail.co.il (Sagi Linshits)
Organization: http://groups.google.com/
Message-ID: <4b460db0.0204140430.329d35a1@posting.google.com>
I did semTake command and got S_objLib_OBJ_ID_ERROR message. Can
somebody describe me in more details what means this error message. In
help I seen that this is some as "Invalid semaphore ID", but for me
this answer in not enought. I see that semaphore that I want to take
is valid. So can somebody help me?
Thank you.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Task properties in Tornado Shell and Target Simulator Windows
Date: Sun, 14 Apr 2002 15:43:02 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a9bte5$1s2kb$1@ID-79865.news.dfncis.de>
=========================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : ccsimpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=========================================================
Project Type : bootable VxWorks image (custom configured)
=========================================================
The same i() command sometimes generates different results
in Tornado Shell Window and Target Simulator Window.
In example below the properties of the same task tShell
  * are identical before performing any task in Target Simulator Window
    [see W1 and W2]
  * have different ERRNO after performing any task in Target Simulator Window
    [see W3 and W4]
What is a reason for that?
Thanks in advance.
|| ====== [W1] Tornado Shell Window : BEGIN ======
- -> i
  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY
- ---------- ------------ -------- --- ---------- -------- -------- ------- -----
tExcTask   _excTask      4ba90a0   0 PEND         434ba2  4ba8fbc       0     0
tLogTask   _logTask      4ba4688   0 PEND         434ba2  4ba45a0       0     0
tShell     _shell        4b9c100   1 PEND         434ba2  4b9bd68       0     0
tWdbTask   0x4112e8      4ba03b8   3 READY        434ba2  4ba029c       0     0
value = 0 = 0x0
- ->
|| ====== [W1] Tornado Shell Window : END ========
Comment : tShell ERRNO == 0
|| ====== [W2] Target Simulator Window : BEGIN ======
- -> i
  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY
- ---------- ------------ -------- --- ---------- -------- -------- ------- -----
tExcTask   _excTask      4ba90a0   0 PEND         434ba2  4ba8fbc       0     0
tLogTask   _logTask      4ba4688   0 PEND         434ba2  4ba45a0       0     0
tShell     _shell        4b9c100   1 READY        41a088  4b9b530       0     0
tWdbTask   4112e8        4ba03b8   3 PEND         434ba2  4ba029c       0     0
value = 0 = 0x0
- ->
|| ====== [W2] Target Simulator Window : END ========
Comment : tShell ERRNO == 0
|| ====== [W3] Tornado Shell Window : BEGIN ======
- -> i
  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY
- ---------- ------------ -------- --- ---------- -------- -------- ------- -----
tExcTask   _excTask      4ba90a0   0 PEND         434ba2  4ba8fbc       0     0
tLogTask   _logTask      4ba4688   0 PEND         434ba2  4ba45a0       0     0
tShell     _shell        4b9c100   1 PEND         434ba2  4b9bd68  1c0001     0
tWdbTask   0x4112e8      4ba03b8   3 READY        434ba2  4ba029c       0     0
value = 0 = 0x0
- -> printErrno 0x1c0001
0x1c0001 = S_symLib_SYMBOL_NOT_FOUND
value = 0 = 0x0
- ->
|| ====== [W3] Tornado Shell Window : END ========
Comment#1 : tShell ERRNO == 0x1c0001
Comment#2 : Any command (not only -> i)
            in [W2] Target Simulator Window
            causes tShell ERRNO != 0
     [W3] Tornado Shell Window
|| ====== [W4] Target Simulator Window : BEGIN ======
- -> i
  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY
- ---------- ------------ -------- --- ---------- -------- -------- ------- -----
tExcTask   _excTask      4ba90a0   0 PEND         434ba2  4ba8fbc       0     0
tLogTask   _logTask      4ba4688   0 PEND         434ba2  4ba45a0       0     0
tShell     _shell        4b9c100   1 READY        41a088  4b9b530       0     0
tWdbTask   4112e8        4ba03b8   3 PEND         434ba2  4ba029c       0     0
value = 0 = 0x0
- ->
|| ====== [W4] Target Simulator Window : END ========
Comment : tShell ERRNO == 0
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: Output redirection to Tornado Shell Window or Target Simulator Window
Date: Sun, 14 Apr 2002 16:34:07 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a9c0dv$1sg93$1@ID-79865.news.dfncis.de>
=========================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : ccsimpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=========================================================
Project Type : bootable VxWorks image (custom configured)
=========================================================
Here is the foo1() function.
It prints some line using cout and cerr.
We can see that
  cout prints its output to Tornado Shell Window,
  cerr prints its output to Target Simulator Window.
Can we redirect cout/cerr
 * in a task created by system (as below)
 * in a task created by using taskSpawn
to specific window (Tornado Shell Window or Target Simulator Window) ?
|| ###### C++ Code : BEGIN ######
// File s1.cpp
#include "string"
#include "iostream"
#include "strstream"
#include "taskLib.h"
void foo1 (void)
{
string  str;
ostrstream ostr;
  ostr << " : [ "
 << __FILE__
 << ", #"
 << __LINE__
 << "; "
 <<  __FUNCTION__
 << "; t#"
 << hex
 << taskIdSelf()
 << dec
 << ", "
 << taskName(taskIdSelf()) << " ] "
 << endl;
  ostr << ends;
  str = ostr.str();
  ostr.rdbuf()->freeze (0);
  cout << "cout" << str;
  cerr << "cerr" << str;
}
|| ###### C++ Code : END ########
|| ====== [W1] Tornado Shell Window : BEGIN ======
- -> foo1
cout : [ D:/projects/basic/01/src2/s1.cpp, #14; foo1; t#4b8dad0, t3 ]
value = 0 = 0x0
- ->
|| ====== [W1] Tornado Shell Window : END ========
|| ====== [W2] Target Simulator Window : BEGIN ======
- -> cerr : [ D:/projects/basic/01/src2/s1.cpp, #14; foo1; t#4b8dad0, t3 ]
|| ====== [W2] Target Simulator Window : END ========
- --
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: Serial port traffic crashes x86 target
Date: 11 Apr 2002 01:20:56 GMT
From: rwa1701@mstar2.net
Organization: NewsOne.Net - Free Usenet News via the Web - http://newsone.net/
Message-ID: <a92odo$1b9$1@news.netmar.com>
I'm using VxWorks 5.4 and Tornado II and an x86 target board. (It's a 486 CPU
on the Prometheus board from Diamond Systems.) I need to read some serial
data over the onboard COM ports. I can read and write via those ports just
fine using the tyLib facility (open(), read(), write(), etc.); the problem
comes when I step up the data rate to where I actually need it; then the
target dies a horrific death - "General Protection Fault", or Page
Fault, or
WDB grief, or something equally awful - the actual death throes seem to vary,
but the result is the same - the system reboots itself.
For the record, I'm reading data at 115.2KB, and getting a 500-byte packet at
10Hz. I actually need 20Hz, but it's already dying about a minute after
startup with it at 10Hz. This is approaching the limits of the serial
bandwidth, but not exceeding it.
Maybe anyone who does high-speed high-bandwidth serial comm on an x86 target
with VxWorks uses some other device driver instead of the generic one
supplied with the x86 BSP.
I'm considering editing usrConfig.c::usrRoot() and upping the sizes of the
ring buffers in the device driver. But while I mess with that, if anybody has
any bright ideas as to what might be going on or how to fix it, I'm all
ears.
- - Roger Andersen
- - Sierra Nevada Corporation
 -----  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: A little about ring buffers
Date: 14 Apr 2002 22:31:45 -0700
From: vinodkrishnankutty@hotmail.com (vinod)
Organization: http://groups.google.com/
Message-ID: <cb7218f2.0204142131.5affd8d7@posting.google.com>
Hi all,
   I just wanted to know about ring buffers. How do they work? and is
there any advantage of using them over messageQ's or pipes.
Rgds,
vinod
---------------------------
Newsgroups: comp.os.vxworks
Subject: The ls() command & Target Shell
Date: Mon, 15 Apr 2002 09:03:11 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a9dqce$28ogd$1@ID-79865.news.dfncis.de>
=========================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : ccsimpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=========================================================
Project Type : bootable VxWorks image (custom configured)
=========================================================
Hi,
I tried to perform the ls command in the Target Simulator Window.
Here is what I have.
What is wrong?
Thanks in advance.
|| ====== Target Simulator Window : BEGIN ======
Adding 2547 symbols for standalone.
                 VxWorks
Copyright 1984-1998  Wind River Systems, Inc.
            CPU: VxSim for Windows
        VxWorks: 5.4.2
    BSP version: 1.1/1
  Creation date: Apr 14 2002
            WDB: Ready.
- -> i
  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY
- ---------- ------------ -------- --- ---------- -------- -------- ------- -----
tExcTask   _excTask      4ba90a0   0 PEND         434ba2  4ba8fbc       0     0
tLogTask   _logTask      4ba4688   0 PEND         434ba2  4ba45a0       0     0
tShell     _shell        4b9c100   1 READY        41a088  4b9b530       0     0
tWdbTask   4112e8        4ba03b8   3 PEND         434ba2  4ba029c       0     0
value = 0 = 0x0
- -> ls
Can't open ".".
value = -1 = 0xffffffff = _func_taskRegsShowRtn + 0xffb79d6b
- -> i
  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY
- ---------- ------------ -------- --- ---------- -------- -------- ------- -----
tExcTask   _excTask      4ba90a0   0 PEND         434ba2  4ba8fbc       0     0
tLogTask   _logTask      4ba4688   0 PEND         434ba2  4ba45a0       0     0
tShell     _shell        4b9c100   1 READY        41a088  4b9b530   d0001     0
tWdbTask   4112e8        4ba03b8   3 PEND         434ba2  4ba029c       0     0
value = 0 = 0x0
- -> printErrno 0xd0001
S_iosLib_DEVICE_NOT_FOUND
value = 26 = 0x1a
- ->
|| ====== Target Simulator Window : END ========
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: route for nt0 interface
Date: 14 Apr 2002 23:15:01 -0700
From: overtones@excite.com (Strawberry)
Organization: http://groups.google.com/
Message-ID: <41440750.0204142215.641c1e51@posting.google.com>
References: <8dff11cd.0204120436.4d18bb2d@posting.google.com> <3CB77EF5.CD6316E6@bellsouth.net>
joe durusau <durusau@bellsouth.net> wrote in message news:<3CB77EF5.CD6316E6@bellsouth.net>...
> sai wrote:
>
> > Hi all,
> >
> >  I am having the trial version of Tornado. I have configured an ip
> > address for nt0 interface. But the route to this network is not added
> > to the kernel. If I have configured 90.0.0.1 to nt0, there is no route
> > to 90.0.0.0.
> >
> >  Can anyone please help me solve this problem.
> >
> > rgds
> > sai
>
>     I've never used it personally, but I am told that the freebee
> versiobn has to be rebuilt to include networking.  It comes
> network-less.
>
> Speaking only for myself,
>
> Joe Durusau
hi,
  I too am facing the same problem. The route for lo0 interface is
there but there is no route for nt0 interface. This is despite
enabling all the networking features. :(,
what could be the possible reason?
rgds,
SB
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: wtx error:10034
Date: Mon, 15 Apr 2002 08:32:32 +0200
From: "Michael Lawnick" <Lawnick@softec.de>
Organization: Buergernetz Dillingen
Message-ID: <a9ds63$e3$1@snoopy.bndlg.de>
References: <12f865b0.0204130225.3757914f@posting.google.com>
Reply-To: "Michael Lawnick" <Lawnick@softec.de>
Sender: mlawnick@pd9524835.dip.t-dialin.net
Go to www.google.com and search the NG. You'll find multiple entries for
this problem.
"Sanil Kumar D" <sanil_kumar_d@yahoo.com> schrieb im Newsbeitrag
news:12f865b0.0204130225.3757914f@posting.google.com...
> When i downloaded a downloadable(NOT bootable) image ('.out'),i got an
error :
> wtx error: 10034 (LOADER_RELOCATION_OFFSET_TOO_LARGE).
> Pls send your views as soon as possible
> Thanks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: route for nt0 interface
Date: 14 Apr 2002 23:44:00 -0700
From: sai_dattathrani@infy.com (sai)
Organization: http://groups.google.com/
Message-ID: <8dff11cd.0204142243.4ca3549a@posting.google.com>
References: <8dff11cd.0204120436.4d18bb2d@posting.google.com> <3CB77EF5.CD6316E6@bellsouth.net>
joe durusau <durusau@bellsouth.net> wrote in message news:<3CB77EF5.CD6316E6@bellsouth.net>...
> sai wrote:
>
> > Hi all,
> >
> >  I am having the trial version of Tornado. I have configured an ip
> > address for nt0 interface. But the route to this network is not added
> > to the kernel. If I have configured 90.0.0.1 to nt0, there is no route
> > to 90.0.0.0.
> >
> >  Can anyone please help me solve this problem.
> >
> > rgds
> > sai
>
>     I've never used it personally, but I am told that the freebee
> versiobn has to be rebuilt to include networking.  It comes
> network-less.
>
> Speaking only for myself,
>
> Joe Durusau
Hi,
 We have created an image with the networking component enabled. But
still, the route has not got added. Infact there are no entries in the
route net table. The output of routeshow command is as follows:
- -> routeShow
ROUTE NET TABLE
destination      gateway              flags  Refcnt  Use
Interface
- ----------------------------------------------------------------------------
- ----------------------------------------------------------------------------
ROUTE HOST TABLE
destination      gateway              flags  Refcnt  Use
Interface
- ----------------------------------------------------------------------------
127.0.0.1        127.0.0.1            5      0       0             lo0
- ----------------------------------------------------------------------------
value = 77 = 0x4d = 'M'
- ->
Please let me know if there is any specific component which needs to
be enabled.
The network components enabled right now are :
Under network devices
    BSD attach interface
    BSD interface support
    END attach interface
    END interface support
Under BSD Ethernet Devices
    loopback driver
Under shared memory network components
    nothing
Under networking protocols -> core TCP/IP components
    BSD 4.3 Compatibel sockets
    BSD socket
    ICMPv4
    IGMPv4
    IPv4
    TCPv4
    UDPv4
    network library support
Under networking protocols -> core TCP/IP components -> TCP/IP
configuration components
    API to ARP tables
    HOST TBL
Under networking protocols -> network applications
    BOOTP client
    PING client
Under networking protocols -> network routing protocol
    BSD routing socket
    RIP
please let me know if there is any other component to be enabled for
entires to be added in the routing table.
rgds
sai
---------------------------
Newsgroups: comp.os.vxworks
Subject: Question about network card driver in vxworks
Date: 14 Apr 2002 23:57:55 -0700
From: zhoul@blrcsv.china.bell-labs.com (zlybupt)
Organization: http://groups.google.com/
Message-ID: <989cdae4.0204142257.6b740b36@posting.google.com>
Dear All:
    Recently,I am porting a network card driver code from linux to
vsworks,and confused by some problems.I wish someone can help me
explain it.
   As we all know,there are two FIFOs in internal of network card,and
the
network card use it to implement receiving and transmiting job.After
going through the driver code in linux,I find the function such as
pci_alloc_consistent and pci_map_single to implement DMA transfer
job,obvoiusly there are no such functions in vxworks,so I wonder how
do I implement the similar job in vxworks.Is there DMA mechanism in
vxworks,where can i get some guidance?
    Thank you in advance!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Multiple messages on a routing socket??
Date: 14 Apr 2002 23:58:53 -0700
From: overtones@excite.com (Strawberry)
Organization: http://groups.google.com/
Message-ID: <41440750.0204142258.361e2b89@posting.google.com>
hi folks,
   Can there come multiple messages on a routing socket at the same
time. (say) if an Interface is deleted do we get both Interface Delete
Mesg RTM_DELADDR and also route delete message RTM_DELETE?. If so how
to determine the buffer size for read call, and also how to parse the
multiple messages?
Any help is appreciated,
cheers,
StrawBerry (my fav)
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: data  exception: how to debug?
Date: Mon, 15 Apr 2002 07:18:25 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <59vu8.14626$V44.192@rwcrnsc53>
References: <6dcae13d.0204140906.7f8b372@posting.google.com> <3CB9B9F6.6065363B@gv.net>
Where is your VxWorks image loaded? I thought the default address was
0x00100000 for PPC, in which case, 0x000b0a00 seems bogus for an instruction
address.
"Michael R. Kesti" <mkesti@gv.net> wrote in message
news:3CB9B9F6.6065363B@gv.net...
> roswell wrote:
>
> >hi,
> > Please give me some general help on how to debug a data exception for
> >PPC750/755 based on following information i see on Vxworks (5.2)
> >shell.
> >
> >data access
> >Exception current instruction address: 0x000b0a00
> >Machine Status Register: 0x0000b030
> >Data Access Register: 0x087f7564
> >Condition Register: 0x42000080
> >Data Storage interrupt Register: 0x40000000
> >Task: 0x6533bc8 "tFtpdServ1"
> >
> >what are these all mean?
>
> They are teling you that a task named "tFtpServ1", whose task control
block
> (TCB) is located at address 0x6533bc8, accessed memory at address
0x087f7564
> while executing an instruction at address 0x000b0a00 and that access
resulted
> in a data access exception.  The remaining values are the contents of the
> indicated registers.
>
> These sort of errors are frequently the result of accessing memory that
> doesn't exist, often because of a programming error that results in use
> of an unitialized or otherwise erroneous pointer.
>
> >thanks..
>
> Sure.
>
> --
> ========================================================================
>           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: Invalid Opcode
Date: Mon, 15 Apr 2002 18:11:50 +1000
From: "Gary O'Keefe" <garyok66@bigpond.com>
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
Message-ID: <j6vu8.40004$uR5.91086@newsfeeds.bigpond.com>
I am using VxWorks version 5.3.1 with IOWorks R03.00 (Build 901). When
IOWorks goes to load a program to the VxWorks system a program named
"Loader" crashes with Invalid Opcode.
Being new to Vxworks I was wondering if this was a Vxworks problem or an
IOWorks problem.
If it is a Vxworks problem can someone help?
Thanks
Gary O'Keefe
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Serial port traffic crashes x86 target
Date: Mon, 15 Apr 2002 07:27:06 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <ehvu8.15486$4D6.983@rwcrnsc52.ops.asp.att.net>
References: <a92odo$1b9$1@news.netmar.com>
If the system is staying up for a minute before blowing up, then I am less
inclined to blame the driver (after all, in a minute it has already sucked
up 300KBytes), and more inclined to determine if your application is
accepting and properly processing the data from the driver fast enough. I'd
suggest doing some performance monitoring to see what's really going on. You
have a minute to work with, which is practically an eternity.
<rwa1701@mstar2.net> wrote in message news:a92odo$1b9$1@news.netmar.com...
>
> I'm using VxWorks 5.4 and Tornado II and an x86 target board. (It's a 486
CPU
> on the Prometheus board from Diamond Systems.) I need to read some serial
> data over the onboard COM ports. I can read and write via those ports just
> fine using the tyLib facility (open(), read(), write(), etc.); the problem
> comes when I step up the data rate to where I actually need it; then the
> target dies a horrific death - "General Protection Fault", or Page
> Fault, or
> WDB grief, or something equally awful - the actual death throes seem to
vary,
> but the result is the same - the system reboots itself.
>
> For the record, I'm reading data at 115.2KB, and getting a 500-byte packet
at
> 10Hz. I actually need 20Hz, but it's already dying about a minute after
> startup with it at 10Hz. This is approaching the limits of the serial
> bandwidth, but not exceeding it.
>
> Maybe anyone who does high-speed high-bandwidth serial comm on an x86
target
> with VxWorks uses some other device driver instead of the generic one
> supplied with the x86 BSP.
>
> I'm considering editing usrConfig.c::usrRoot() and upping the sizes of the
> ring buffers in the device driver. But while I mess with that, if anybody
has
> any bright ideas as to what might be going on or how to fix it, I'm all
> ears.
>
> - Roger Andersen
> - Sierra Nevada Corporation
>
>
>
>
>
>  -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the
eb  -----
>   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: A little about ring buffers
Date: Mon, 15 Apr 2002 07:42:36 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <Mvvu8.16027$HH5.1138@rwcrnsc51.ops.asp.att.net>
References: <cb7218f2.0204142131.5affd8d7@posting.google.com>
Draw a circle, and divide the circle into "n" arc segments. You've created a
ring buffer with n elements. Now draw an arrow pointing towards one segment
from the outside, this is your input pointer. Draw an arrow pointing to the
same segment from the inside, this is your output pointer. When you put an
element into the buffer, place it in the segment pointed at by the input
pointer (unless the buffer is already full), and move the input pointer to
the next segment; if moving the pointer causes it to catch up with the
output pointer, your buffer is now full. When you take an element out of the
buffer, take it from the segment pointed at by the output pointer (unless
the buffer is currently empty), and advance the output pointer to the next
segment; if advancing the output pointer causes it to catch up with the
input pointer, the buffer is now empty.
That is a very simple description of the most simplest of ring buffers and
how they work. Converting the visualization above to an actual memory system
is straightforward, providing you account for the empty and full conditions,
and properly handle the mutual exclusion issues with insertion, removal, and
pointer update.
Their advantage depends on the application. Since you have complete control
over the implementation, you can dynamically control the size, access
methods, and other special requirements you may have which cannot be
achieved by using (built-in) message queues or pipes. You just have to build
and support them yourself.
"vinod" <vinodkrishnankutty@hotmail.com> wrote in message
news:cb7218f2.0204142131.5affd8d7@posting.google.com...
> Hi all,
>    I just wanted to know about ring buffers. How do they work? and is
> there any advantage of using them over messageQ's or pipes.
>
> Rgds,
> vinod
---------------------------
Newsgroups: comp.os.vxworks
Subject: HOW to USE memalign( )?
Date: 15 Apr 2002 01:44:22 -0700
From: seatide2002@hotmail.com (seatide2002)
Organization: http://groups.google.com/
Message-ID: <7384051c.0204150044.1f6677db@posting.google.com>
I know memalign() is charge of allocating a buffer from the system
memory partition,and the allocated buffer begins on a memory address
evenly divisible by the specified alignment parameter.
   But I don't know what's the meaning of 'memory address evenly
divisible by the specified alignment parameter', and what's the
differents between it and the other function--malloc()?
   why dose memalign() return NULL?
   Thanks for Everyone.
---------------------------
Newsgroups: comp.os.vxworks
Subject: wdbserial connection problem
Date: Mon, 15 Apr 2002 16:49:24 +0800
From: "maoyi_fan" <maoyi_fan@yahoo.com.tw>
Organization: DCI HiNet
Message-ID: <a9e47j$640@netnews.hinet.net>
 Hi,
    I'm testing the wdbserial connection between Tornado and a target agent
on an ARM7TDMI.
 The target is already boot-up and shows vxWorks banner onto HyperTerminal.
However, I kept receiving an error message :
 rpccore backend client Client can't decode result
when I launched the Target Server. Does anybody have any idea about what
happened?
    Any suggestion or experience sharing is highly appreciated. Thank you in
advance.
 TGTSVR (dsc21_serial@maoyi): Sat Apr 13 10:01:13 2002
    Wind River Systems Target Server: NT/Win95 version
    Connecting to target agent... succeeded.
    Attaching C++ interface... succeeded.
    Attaching coff OMF reader for ARM CPU family... succeeded.
    Warning: Target checksum: 0x182b (computed from 0x8700000 to 0x878211c).
             Host checksum: 0x3301 (computed from 0x1b05b78 to 0x1b87c94).
    Warning: Core file checksums do not match.
    Warning: Symbol .stabstr from section of type STYP_REG. Ignored.
    Warning: Symbol .stabstr from section of type STYP_REG. Ignored.
    Warning: Symbol .stabstr from section of type STYP_REG. Ignored.
    Warning: Symbol .stabstr from section of type STYP_REG. Ignored.
    Warning: Symbol .stabstr from section of type STYP_REG. Ignored.
TGTSVR (dsc21_serial@maoyi): Sat Apr 13 10:11:46 2002
    Error: rpccore backend client Client can't decode result
TGTSVR (dsc21_serial@maoyi): Sat Apr 13 10:12:02 2002
    Error: rpccore backend client Client can't decode result
TGTSVR (dsc21_serial@maoyi): Sat Apr 13 10:12:15 2002
    Error: clnttty_rcv: read timed out
    Error: rpccore backend client Client can't decode result
TGTSVR (dsc21_serial@maoyi): Sat Apr 13 10:12:31 2002
    Error: rpccore backend client Client can't decode result
TGTSVR (dsc21_serial@maoyi): Sat Apr 13 10:12:47 2002
    Error: rpccore backend client Client can't decode result
TGTSVR (dsc21_serial@maoyi): Sat Apr 13 10:13:02 2002
    Error: rpccore backend client Client can't decode result
TGTSVR (dsc21_serial@maoyi): Sat Apr 13 10:14:39 2002
    Error: rpccore backend client Timed out
---------------------------
Newsgroups: comp.os.vxworks
Subject: Does tftpdDirectoryAdd() return anything?
Date: Mon, 15 Apr 2002 12:16:42 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a9e5na$2eocb$1@ID-79865.news.dfncis.de>
=========================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : ccsimpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=========================================================
From the tftpdLib manual :
file $WIND_BASE/docs/vxworks/ref/tftpdLib.html#tftpdDirectoryAdd
|| ============ tftpdLib : BEGIN ============
|| Fragments
tftpdDirectoryAdd( )
NAME
tftpdDirectoryAdd( ) - add a directory to the access list
SYNOPSIS
STATUS tftpdDirectoryAdd
    (
    char * fileName /* name of directory to add to access list */
    )
DESCRIPTION
This routine adds the specified directory name to the access list for the TFTP server.
RETURNS
N/A
|| ============ tftpdLib : END ==============
On the one hand the tftpdDirectoryAdd( ) function returns STATUS-type,
on the other hand RETURNS is N/A.
What does it mean?
Does tftpdDirectoryAdd() always return OK?
- --
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Question about vxworks init.
Date: 15 Apr 2002 09:20:24 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91F1735EE4CFAborkhuisagerecom@135.7.153.101>
References: <83f4aa95.0204122016.49bd12cc@posting.google.com>
liandongzhang@hotmail.com (liandongzhang) wrote:
> but when i input a command such as help,?
> it return :undefined symbol:help
You should include the symbol table in your build.
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,alt.periphs.pcmcia,comp.sys.ibm.pc.hardware.comm,comp.os.os2.comm
Subject: Re: Quatech MPAP 200/300 PCMCIA board
Date: Sun, 14 Apr 2002 07:26:31 GMT
From: "William L. Hartzell" <wlhartzell@attbi.com>
Organization: AT&T Broadband
Message-ID: <3CB93B2E.90503@attbi.com>
References: <LV%t8.17678$0o.3382369@typhoon.nyroc.rr.com>
Sender: wlhartzell@blackdragon.client.attbi.com
Sir:
Susan wrote:
> I purchased the MPAP 200 PCMCIA card for synchronous data transfer.
> According to Quatech, data rates up to 4 megabits/sec are possible.
> Unfortunately, their driver selection is quite limited, and these data rates
> are simply not possible with the Syncdrive drivers.  Is anyone aware of Win
> 32 drivers for these cards?
>
Why would OS/2 users know about Win32 drivers?  Ask on a Windows newsgroup.
- --
Bill
<Be Kind to the Taxman on His Day>
---------------------------
Newsgroups: comp.os.vxworks
Subject: [Q]ring buffer problem
Date: Mon, 15 Apr 2002 17:44:58 +0800
From: "eric" <lihao@accesssolutions.com.tw>
Organization: DCI HiNet
Message-ID: <a9e784$c6t@netnews.hinet.net>
Sir,
   I am use network library but system show "NetJobAdd: ring buffer
overflow!"  Please give me any advice!  Thank!
Best Regards,
eric
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: [Q]ring buffer problem
Date: Mon, 15 Apr 2002 10:36:54 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$r5xlug$452$1@lnews.actcom.co.il>
References: <a9e784$c6t@netnews.hinet.net>
WHat you experience is inbound traffic overflow - the netTask is incapable
of processing packet at the speed they arrive at the network interface.
The solution to this largely depends on YOUR APPLICATION and its
requirements.
I might be available for a short consulting job to help on the issue.
Leonid Rosenboim
Consultant
"eric" <lihao@accesssolutions.com.tw> wrote in message
news:a9e784$c6t@netnews.hinet.net...
> Sir,
>    I am use network library but system show "NetJobAdd: ring buffer
> overflow!"  Please give me any advice!  Thank!
>
> Best Regards,
>
> eric
>
>
>
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Tue Apr 16 04:03:16 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Tue Apr 16 04:03:19 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Tue Apr 16 04:03:11 PDT 2002
        Subject: Re: Task properties in Tornado Shell and Target Simulator Windows
        Subject: VxSim IP Address
        Subject: Re: The ls() command & Target Shell
        Subject: Re: Does tftpdDirectoryAdd() return anything?
        Subject: Re: eieio and sync in sysInLong() and sysOutLong()
        Subject: Re: Serial port traffic crashes x86 target
        Subject: Re: The ls() command & Target Shell
        Subject: Re: HOW to USE memalign( )?
        Subject: Buffer full UDP problem
        Subject: Multiple Tornado installations
        Subject: Re: Zinc bitmap problem
        Subject: Re: integrating zinc with current application
        Subject: Re: Buffer full UDP problem
        Subject: Re: Zinc bitmap problem
        Subject: Re: Multiple Tornado installations
        Subject: Re: Multiple Tornado installations
        Subject: Re: VxSim IP Address
        Subject: Re: Zinc bitmap problem
        Subject: file transfer
        Subject: Is AIO Buffered?
        Subject: Re: eieio and sync in sysInLong() and sysOutLong()
        Subject: boot problems
        Subject: Re: Buffer full UDP problem
        Subject: Re: file transfer
        Subject: VxWorks boot problem.
        Subject: Re: route for nt0 interface
        Subject: Re: file transfer
        Subject: Tornado IDE Startup Error under non-admin W2K account
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Task properties in Tornado Shell and Target Simulator Windows
Date: 15 Apr 2002 11:25:54 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91F188A3FC5FCborkhuisagerecom@135.7.153.101>
References: <a9bte5$1s2kb$1@ID-79865.news.dfncis.de>
"Alex Vinokur" <alexvn@bigfoot.com> wrote:
> The same i() command sometimes generates different results
> in Tornado Shell Window and Target Simulator Window.
>
> In example below the properties of the same task tShell
>   * are identical before performing any task in Target Simulator
>   Window
>     [see W1 and W2]
>   * have different ERRNO after performing any task in Target Simulator
>   Window
>     [see W3 and W4]
That is because they are different. The target shell runs as a task on
the target, where as the host shell runs on an interpreter on your PC.
Only requests for information are send to the target and the answers are
processed on your PC before you see them.
Also the fact that you see a different ERRNO does not mean anything, as
you did not see any function return ERROR. The ERRNO value only has
meaning if a function did return ERROR, and it is specified that it will
set ERRNO at that condition.
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: VxSim IP Address
Date: Mon, 15 Apr 2002 15:01:04 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a9efbg$2hlfi$1@ID-79865.news.dfncis.de>
=========================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : ccsimpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=========================================================
Project Type : bootable VxWorks image (custom configured)
=========================================================
From the VxSim manual.
file $WIND_BASE\docs\vxworks\guide\x-vxsim5.html
|| ============ VxSim : BEGIN ============
|| Fragments
IP Addressing
All of the networking facilities available under VxWorks--for example, sockets, RPC, NFS--are available with VxSim.
 For VxSim to communicate with the outside world, it must have its own target IP address as provided through a network interface.
Internet addressing is handled slightly differently among the available network interfaces.
  For each VxSim process, there are three associated IP addresses:
Target IP - the address of each VxSim process, internal to your host.
Local IP - your host's address on the VxSim network, internal to your host.
Host IP - your host's address according to the network at your site.
The target IP address and the local IP address communicate according to the protocol of the chosen network interface.
 The host IP address is not directly relevant to the VxSim network
|| ============ VxSim : END ==============
How can we get/set(?) a specific VxSim IP Address ?
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: The ls() command & Target Shell
Date: 15 Apr 2002 11:58:41 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91F18E326BCA6borkhuisagerecom@135.7.153.101>
References: <a9dqce$28ogd$1@ID-79865.news.dfncis.de>
"Alex Vinokur" <alexvn@bigfoot.com> wrote:
> Hi,
>
> I tried to perform the ls command in the Target Simulator Window.
>
> Here is what I have.
>
> What is wrong?
Before you can do an ls you have to be in a directory of a file systems. Sy
if your filesystem is called "/tffs/" you should do cd "/tffs/" first.
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: Does tftpdDirectoryAdd() return anything?
Date: Mon, 15 Apr 2002 12:01:40 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$031mug$l82$1@lnews.actcom.co.il>
References: <a9e5na$2eocb$1@ID-79865.news.dfncis.de>
Sashka, Drujok !
since I wrote this, I feel obliged to answer, despite the apparent lack of
complexity...
The function is part of the enhanced FTP server distributted with DosFs 2.0
in the "unsupported" category.
This function will add a path, which is at this point a simple string, to a
list of path names that the FTP user will be allowed access. If the acess
list is empty, no restrictions are enforced.
If the list is non-empty, each request file name will be checked against
each string in the list, and if it fails to match any of the entires, access
will be denied, only then the FTP server will attempt access ot the file or
directory, and only then it will verify the path.
Henceforth, the function at hand does not check for path validity, hence its
return value of ERROR would not be possible indeed.
Hope this helps,
    Leonid
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a9e5na$2eocb$1@ID-79865.news.dfncis.de...
> =========================================================
> Tornado  : Version 2.0.2
> VxWorks  : Version 5.4.2
> BSP      : Version 1.1/1
> Compiler : ccsimpc
>            gcc version egcs-2.90.29 tornado 2.0 980515
>            (egcs-1.0.3 release)
> Host     : Windows2000
> Target   : VxSim for Windows (VxWorks target simulator)
> =========================================================
>
>
> From the tftpdLib manual :
>
>
> file $WIND_BASE/docs/vxworks/ref/tftpdLib.html#tftpdDirectoryAdd
> || ============ tftpdLib : BEGIN ============
> || Fragments
>
>
> tftpdDirectoryAdd( )
> NAME
> tftpdDirectoryAdd( ) - add a directory to the access list
>
> SYNOPSIS
>
> STATUS tftpdDirectoryAdd
>     (
>     char * fileName /* name of directory to add to access list */
>     )
> DESCRIPTION
> This routine adds the specified directory name to the access list for the
TFTP server.
>
>
> RETURNS
> N/A
>
> || ============ tftpdLib : END ==============
>
>
> On the one hand the tftpdDirectoryAdd( ) function returns STATUS-type,
> on the other hand RETURNS is N/A.
>
> What does it mean?
> Does tftpdDirectoryAdd() always return OK?
>
>
> --
> ====================
>   Alex Vinokur
>     http://up.to/alexvn
>     http://go.to/alexv_math
>     mailto:alexvn@bigfoot.com
>     mailto:alexvn@go.to
>   ====================
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: eieio and sync in sysInLong() and sysOutLong()
Date: Mon, 15 Apr 2002 13:28:21 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CBAD609.5060100@spamm.me.l8s.co.uk>
References: <3caae4d0.98474498@news.eunet.no> <3CAC5AE1.5040708@spamm.me.l8s.co.uk> <3cada852.111794762@news.eunet.no> <3cb756f4_4@news.bluewin.ch>
Wiesel Andre wrote:
> The writes are always ordered. This means that when the "kick" will
 > happen on the bus, all previous write transaction will have happened
 > on the bus as well.
I had a feeling (based on no facts) that the PPC could reorder things
further than that.  TSO (total store ordering) is easy to deal with,
my suspicions were that the PPC was only PSO.
>
> The only problem occurs when you do a write/read sequence. As writes
 > are buffered, you may actually do the read before the write is really
 > "flushed" on the bus eieio will flush the write.
Does that mean that eieio is just 'drain write buffer'?
Does the PPC architecture define what happens when you do a read of an
address that is the same as that of a buffered write?
I recall that the sparc archecture forces a drain of the write buffer,
although you have to read some very small print to find that out!
This is also probably true of the ppc (and arm) - otherwise far too much
code just doesn't work!
> Regarding the sync, I think they are useless.
They must have SOME use - otherwide the instruction wouldn't exist :-)
OTOH the eieio in sysInLong should be before the lwbrx
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Serial port traffic crashes x86 target
Date: Mon, 15 Apr 2002 13:32:18 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CBAD6F6.9000104@spamm.me.l8s.co.uk>
References: <a92odo$1b9$1@news.netmar.com>
rwa1701@mstar2.net wrote:
> I'm using VxWorks 5.4 and Tornado II and an x86 target board. (It's a 486 CPU
> on the Prometheus board from Diamond Systems.) I need to read some serial
> data over the onboard COM ports. I can read and write via those ports just
> fine using the tyLib facility (open(), read(), write(), etc.); the problem
> comes when I step up the data rate to where I actually need it; then the
> target dies a horrific death - "General Protection Fault", or Page
> Fault, or
> WDB grief, or something equally awful - the actual death throes seem to vary,
> but the result is the same - the system reboots itself.
Try increasing the stack size of your task...
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: The ls() command & Target Shell
Date: Mon, 15 Apr 2002 13:34:56 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CBAD794.5020906@spamm.me.l8s.co.uk>
References: <a9dqce$28ogd$1@ID-79865.news.dfncis.de> <Xns91F18E326BCA6borkhuisagerecom@135.7.153.101>
Johan Borkhuis wrote:
> "Alex Vinokur" <alexvn@bigfoot.com> wrote:
>
>>Hi,
>>
>>I tried to perform the ls command in the Target Simulator Window.
>>
>>Here is what I have.
>>
>>What is wrong?
>>
>
> Before you can do an ls you have to be in a directory of a file systems. Sy
> if your filesystem is called "/tffs/" you should do cd "/tffs/" first.
Additionally ls wants a non-null argument, and the filesystem code likes
a non-null path to play with.
So try:
- -> ls "/tffs/."
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: HOW to USE memalign( )?
Date: Mon, 15 Apr 2002 13:40:47 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CBAD8F1.3020700@spamm.me.l8s.co.uk>
References: <7384051c.0204150044.1f6677db@posting.google.com>
seatide2002 wrote:
> I know memalign() is charge of allocating a buffer from the system
> memory partition,and the allocated buffer begins on a memory address
> evenly divisible by the specified alignment parameter.
>    But I don't know what's the meaning of 'memory address evenly
> divisible by the specified alignment parameter', and what's the
> differents between it and the other function--malloc()?
>    why dose memalign() return NULL?
memalign( 1<<8, n ) will return an address that is guaranteed
to be a multiple of 1<<8 - ie end in 8 zeroes if expressed in
binary.  This is needed when allocating structures that have
to accessed by some hardware devices.
In all other respects it is equivalent to malloc.
Indeed both are wrapper functions for memPartAlignedAlloc().
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Buffer full UDP problem
Date: 15 Apr 2002 07:27:03 -0700
From: barryrichard@hotmail.com (RichardBarry)
Organization: http://groups.google.com/
Message-ID: <eec86974.0204150627.49fac57d@posting.google.com>
Hi,
I have an applications that consists of a control task and a few UDP
communications tasks running on a PC(486) target with an Intel 82559
Ethernet card using Tornado 1.
I have found that under conditions of extremely high network traffic,
writing to a UDP socket causes an error, with errno being set to 55
(buffer full).  This would be expected and should not be a problem.
However, once this has happened it seems impossible to re-establish
any network connectivity - the machine cannot even be pinged.  The
control task continues normally.
After receiving this buffer full error I have tried waiting before
retransmitting, even closing all sockets and restarting the
communications task, yet I can never again send or receive anything
without restarting the machine.
Any ideas or experiences would be gratefully received.
Richard.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Multiple Tornado installations
Date: Mon, 15 Apr 2002 15:43:16 +0100
From: "Frank Boyce" <devel@realm.com>
Organization: Agilent Technologies
Message-ID: <1018881798.564494@cswreg.cos.agilent.com>
Hi Folks,
I'm interested in installing 2 Tornado IDEs on to my PC. I want to build for
both targets on the same machine: StrongARM and Intel x86. Can you tell me
if this configuration is supported. If it is, does it work "out of the box"
or do I have some levers to pull.
Otherwise, can you let me know if it simply won't work at all?
Thank you,
Frank
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Zinc bitmap problem
Date: 15 Apr 2002 12:04:23 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uy9fposmw.fsf@yahoo.com>
References: <Sikt8.56917$nk5.6121675@amsnews02.chello.com> <3CB67DE7.D47AC8E9@sepro-robotique.com> <SlEt8.71921$nk5.7011161@amsnews02.chello.com>
Sender: bpringlemeir@DeadDuck
 Jacco> Thank you for your reply. I tried the use of a ZAF_FLAT_BUTTON
 Jacco> but it gives the same effect. The problem is that whenever I
 Jacco> use a bitmap the lines are shown. It is not limited to a
 Jacco> button. It looks like the line that is drawn is, for some
 Jacco> unknown reason, a part of the bitmap or drawn incorrectly. I
 Jacco> created the images with the image editor which is part of the
 Jacco> Zinc Designer.  With this editor you can edit the pixels. When
 Jacco> the bitmap is shown on the target the left or right side
 Jacco> (depends on image) of the bitmap pixels are shown as a
 Jacco> vertical line I didn't specify.
Who wrote the UGL display drivers?  It sounds like a problem with the
bitBlit routines.  Specifically, if you have a 4-bit display, this
would be a common problem.  It might also happen for 2-bit displays.
Anyways, masking operations must be done with existing screen memory
when the bitBlit is done.
hth,
Bill Pringlemeir.
- --
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: integrating zinc with current application
Date: 15 Apr 2002 12:41:33 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <ulmboq5he.fsf@yahoo.com>
References: <WUBt8.46473$pe6.14975086@typhoon.southeast.rr.com>
Sender: bpringlemeir@DeadDuck
 Joe> Hello all, I'm new to Zinc so forgive the easy question. I have
 Joe> an existing c++ application, the source code of which gets
[snip]
 Joe> exception on the target. And, by the way, I'm just trying to use
 Joe> some of the code from the zinc demos so I'm not doing anything
 Joe> overly complicated. Running the demo by itself works great. Can
 Joe> anyone lend a hand?
Yes, I can help you.  Read the manual.  In the manual, they describe
how you must modify the `auto-gen' code to work with vxWorks.
Specific gotchas include accessing the Zinc resource file (.ZNC).
This will have to be different if you don't have a file system.
Please read the manual.  You might be interested in Chapter 8 of the
Zinc 6.0 reference manual (similar for Zinc 5.x), specifically section
8.2.1 which is easily seen by reading the index.
hth,
Bill Pringlemeir.
- --
Project Monarch Blowfish Kennedy Delta Force Khaddafi enforcers Freeh
Defcon bullion csim Comirex IRA MD2 eternity server militia
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Buffer full UDP problem
Date: 15 Apr 2002 10:02:26 -0700
From: barryrichard@hotmail.com (RichardBarry)
Organization: http://groups.google.com/
Message-ID: <eec86974.0204150902.5aa2e7ea@posting.google.com>
References: <eec86974.0204150627.49fac57d@posting.google.com>
Having done some more investigation I think the buffer is filling up
due to the network failing, rather than the other way around.
Any clues?
barryrichard@hotmail.com (RichardBarry) wrote in message news:<eec86974.0204150627.49fac57d@posting.google.com>...
> Hi,
>
> I have an applications that consists of a control task and a few UDP
> communications tasks running on a PC(486) target with an Intel 82559
> Ethernet card using Tornado 1.
>
> I have found that under conditions of extremely high network traffic,
> writing to a UDP socket causes an error, with errno being set to 55
> (buffer full).  This would be expected and should not be a problem.
> However, once this has happened it seems impossible to re-establish
> any network connectivity - the machine cannot even be pinged.  The
> control task continues normally.
>
> After receiving this buffer full error I have tried waiting before
> retransmitting, even closing all sockets and restarting the
> communications task, yet I can never again send or receive anything
> without restarting the machine.
>
> Any ideas or experiences would be gratefully received.
>
> Richard.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Zinc bitmap problem
Date: Mon, 15 Apr 2002 17:12:45 GMT
From: "Jacco" <hiermijn@email.com>
Organization: QuickNet
Message-ID: <hSDu8.103640$nk5.10232169@amsnews02.chello.com>
References: <Sikt8.56917$nk5.6121675@amsnews02.chello.com> <3CB67DE7.D47AC8E9@sepro-robotique.com> <SlEt8.71921$nk5.7011161@amsnews02.chello.com> <uy9fposmw.fsf@yahoo.com>
> Who wrote the UGL display drivers?  It sounds like a problem with the
> bitBlit routines.  Specifically, if you have a 4-bit display, this
> would be a common problem.  It might also happen for 2-bit displays.
> Anyways, masking operations must be done with existing screen memory
> when the bitBlit is done.
>
> hth,
> Bill Pringlemeir.
>
> --
> vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
Thanks for your reply. In the UGL display driver I use the
"uglGeneric16BitBitmapBlit" method. My device uses 16 bits to represent a
color. Could you explain me what the problem can be with bitmapBlit?
Greetings,
Jacco
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Multiple Tornado installations
Date: Mon, 15 Apr 2002 19:22:06 +0200
From: Gerald van Kampen <gkampen@dont.spamm.xs4all.nl>
Message-ID: <3CBB0C3E.2090105@dont.spamm.xs4all.nl>
References: <1018881798.564494@cswreg.cos.agilent.com>
Frank,
Yes multiple installations of Tornado on the same host will work. However
keep them in different directory trees. The latest version of Tornado for
StrongArm/XScale is 2.1.1 and for x86 this is still 2.0.2. They use different
versions of the GNU toolchain (2.96 versus 2.7.2 respectively). So in this case
you must use different directories.
Use torVars.bat to switch between the environment variables if you want to build
your BSP or application outside the project facility.
Gerald
Frank Boyce wrote:
> Hi Folks,
>
> I'm interested in installing 2 Tornado IDEs on to my PC. I want to build for
> both targets on the same machine: StrongARM and Intel x86. Can you tell me
> if this configuration is supported. If it is, does it work "out of the box"
> or do I have some levers to pull.
>
> Otherwise, can you let me know if it simply won't work at all?
>
> Thank you,
> Frank
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Multiple Tornado installations
Date: Mon, 15 Apr 2002 19:23:15 +0200
From: Gerald van Kampen <dont.spamm.gkampen@xs4all.nl>
Message-ID: <3CBB0C83.1090500@xs4all.nl>
References: <1018881798.564494@cswreg.cos.agilent.com>
Frank,
Yes multiple installations of Tornado on the same host will work. However
keep them in different directory trees. The latest version of Tornado for
StrongArm/XScale is 2.1.1 and for x86 this is still 2.0.2. They use different
versions of the GNU toolchain (2.96 versus 2.7.2 respectively). So in this case
you must use different directories.
Use torVars.bat to switch between the environment variables if you want to build
your BSP or application outside the project facility.
Gerald
Frank Boyce wrote:
> Hi Folks,
>
> I'm interested in installing 2 Tornado IDEs on to my PC. I want to build for
> both targets on the same machine: StrongARM and Intel x86. Can you tell me
> if this configuration is supported. If it is, does it work "out of the box"
> or do I have some levers to pull.
>
> Otherwise, can you let me know if it simply won't work at all?
>
> Thank you,
> Frank
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: VxSim IP Address
Date: Mon, 15 Apr 2002 19:35:17 +0200
From: Gerald van Kampen <dont.spamm.gkampen@xs4all.nl>
Message-ID: <3CBB0F55.4080501@xs4all.nl>
References: <a9efbg$2hlfi$1@ID-79865.news.dfncis.de>
Hi Alex,
Here are a bunch of summaries on SIMNT.
1. What routing is necessary to enable a SIMNT VxSim
target to communicate with an external host?
2.How to set up Networking on Full VxSim (SIM NT) on Windows NT
3.How to configure SIMNT VxSim targets to use IP addresss
other than 90.0.0.x
4. How can SIMNT VxSim targets on one NT host communicate
with SIMNT VxSim targets on another NT host?
SUMMARY 1.
What routing is necessary to enable a SIMNT VxSim
target to communicate with an external host?
A SIMNT vxSim target is launched on an WinNT host,
which has an IP address of 192.11.47.33.
An external host, which happens to be a
pc486 vxWorks target, in this example,
wishes to communicate with the vxSim
target.
Here's is a diagram of the network topology:
- -------------- On vxTarget1:
| vxTarget1 | ->routeShow
| | ROUTE NET TABLE
| | destination gateway
| 90.0.0.1 | 0.0.0.0 90.0.0.1 --------------
|
|
| nt_host1
- ----------------
| 90.0.0.254 |
| | |
| (127.0.0.1) |
| | |
| | |
| 192.11.47.33 |
- ----------------
|
|
- ---------|--------------
|
pc486 | vxWorks target
- ----------------
| 192.11.47.133| On pc486, add the route:
| |
| pc486 | routeAdd "90.0.0.0", "192.11.47.33"
| |
- ----------------
The external pc486 vxWorks target needs to add
an entry to its route table that routes
packets for the vxSim targets on the 90.0.0.0
subnet to the NT host on which the vxSim
targets reside, 192.11.47.33.
routeAdd "90.0.0.0", "192.11.47.33"
*****************cut here **********************
SUMMARY 2.
How to set up Networking on Full VxSim (SIM NT) on Windows NT
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.
1. Confirm that the Full VxSim product is installed.
2. Install and Configure ULIP.
3. Turn on IP Forwarding on the NT
4. Modify target/config/simpc/config.h
5. Create a New Project
6. Configure the Project and Build VxWorks
7. Launch VxSim target and attach Target Server
8. Launch Second VxSim target and target server
9. Ping the VxSim targets.
Details:
1. Confirm that the Full VxSim product is installed.
a. The file setup.log should have at least the
following entries:
100-9878-30 Driver Objects/Headers: simnt
100-9884-30 Tornado Full Simulator: x86-winNT
100-10026-30 Tornado Object: x86-winNT x simnt
The full VxSimulator product is a BSP and requires
the appropriate Tornado object.
b. If the full simulator is installed, the file
$WIND_BASE/target/config/simpc/fullSimInstalled.flag
exists and contains a single line:
// 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").
Basically, this section describes how to navigate to
the Network control panel:
Settings > Control Panel > Network
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.
IMPORTANT:
However, for IP address enter the following:
90.0.0.254
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.
If the ULIP driver has already been installed
and it is necessary to modify or to verify the
settings, do the following:
Navigate from Start > Settings > Control Panels > Network
Select the "Protocols" tab and "TCP/IP"
Select "Properties"
In "IP Address" tab, from the "Adapter" pull down menu,
select ULIP Virtual Adapter.
Select "Specify an IP address"
For IP Address, input 90.0.0.254
For Subnet Mask, input 255.255.255.0
3. TURN ON IP FORWARDING
For one vxSim target to talk to another, IP
forwarding needs to be turned on.
To turn on IP forwarding on NT:
Navigate to the Network Control Panel:
Start > Settings > Control Panels > Network
Once there, select the "Protocol" tab, select
"TCP/IP" and select "Properties".
Select "Routing"
Click on "Enable IP Forwarding"
After all these changes, you should be prompted
that it is necessary to shutdown and restart
WinNT.
4. MODIFY CONFIG.H
Locate config.h and the following lines:
/*
* 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.
Do this before you build a project based on
simpc!!
5. CREATE A NEW PROJECT
Create a new project, which should be a
downloadable vxWorks boot image, based on
the bsp: simpc.
6. CONFIGURE PROJECT AND BUILD VXWORKS
Configure the new Project to include a target
shell, symbol table, show routines, net show
routines and ping.
Using the Project facility, identify the following
components and include them.
a. Find the PING client under:
network components > network protocols >
network applications > PING client
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.
b. Locate network components > network debugging
Right-click on network debugging
 >From the check list. select:
UDP show routines
TCP show routines
ICMP show routines
IGMP show routines
Network show routines
c. Under development tool components, locate
show routines.
Right-click on show routines;select and include:
memory show routines
stdio show routines
symbol table show routines
task show routines
d. Also under development tool components, include the
downloaded symbol table:
 > symbol table components
 >symbol table initialization components
 >select symbol table initialization >
 >downloaded symbol table
e. Include error status table (or INCLUDE_STAT_SYM_TBL).
 >symbol table components > error status table
f. Locate target shell component and include it.
 >development tool components >
 >target shell components > target shell
(target debugging will automatically be included.)
g. Right-click in the VxWorks tab of the Project Facility and
select "Rebuild all (vxWorks.exe).
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".
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
A "VxWorks Simulator for Windows" window appears:
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.
Launching the target server
When the target is successfully launched, a
window automatically appears:
"VxSim Launch: Launch Target Server"
A message reads:
"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:
"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:
Target Server failed to initialize before timeout.
(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.)
INSTEAD, from Tornado menu: select Tools > Target Server
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:
tgtsvr.exe 90.0.0.1 -n vxTarget1 -V -B wdbrpc -R d\ -RW
Click on "Launch"
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.
A window called vxTarget1@heiwa Log Console appears
and contains something like the following text:
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
...
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 = 0 = 0x0
8. LAUNCH SECOND VXSIM TARGET
Launch a second VxSim target by clicking on
the VxSim icon, and use processor 1 (instead of 0).
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).
VxSimNT targets can be numbered from 0-9.
IP addresses from 90.0.0.1 through 90.0.0.10
(Unlike VxSim on Solaris using ULIP which
supports up to 15 targets, full VxSimNT only
supports up to 10 targets.)
Selecting target server "VxSim2@heiwa",
start another Windsh:
...
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.
- -> hostShow
hostname inet address aliases
- -------- ------------ -------
vxTarget 90.0.0.2
localhost 127.0.0.1
host 90.0.0.254
value = 0 = 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 = 0 = 0x0
9. Ping the vxSim targets.
Vxsim targets can now ping each other:
 >From Windsh of target 90.0.0.2:
- -> ping "90.0.0.1",3
PING 90.0.0.1: 56 data bytes
64 bytes from 90.0.0.1: icmp_seq=0. time=48. ms
64 bytes from 90.0.0.1: icmp_seq=1. time=64. ms
64 bytes from 90.0.0.1: icmp_seq=0. time=1072. ms
- ----90.0.0.1 PING Statistics----
2 packets transmitted, 3 packets received, -50%
packet loss
round-trip (ms) min/avg/max = 48/394/1072
value = 0 = 0x0
- ->
 >From WinNT DOS command prompt, ping the targets:
c:\tornado>ping 90.0.0.1
Pinging 90.0.0.1 with 32 bytes of data:
Reply from 90.0.0.1: bytes=32 time=30ms TTL=64
Reply from 90.0.0.1: bytes=32 time=10ms TTL=64
Reply from 90.0.0.1: bytes=32 time=10ms TTL=64
Reply from 90.0.0.1: bytes=32 time<10ms TTL=64
c:\tornado>ping 90.0.0.2
Pinging 90.0.0.2 with 32 bytes of data:
Reply from 90.0.0.2: bytes=32 time=30ms TTL=64
Reply from 90.0.0.2: bytes=32 time=10ms TTL=64
Reply from 90.0.0.2: bytes=32 time=10ms TTL=64
Reply from 90.0.0.2: bytes=32 time=10ms TTL=64
RESEARCH:
VxWorks Programmer's Guide, 5.4, Appendix H. VxSim
Tornado Release Notes 2.0,
Sec. 7.4 VxWorks Target Simulator, VxSim
(pp. 23-25)
***********************cut here**************************
SUMMARY 3.
How to configure SIMNT VxSim targets to use IP addresss other than
90.0.0.x
SIMNT VxSim targets always use IP address of 90.0.0.x
even though ULIP adapter is configured for 91.0.0.254.(e.g.)
IP addresses used for hosts "vxTarget" and "host"
are also incorrect:
- -> hostShow
hostname inet address aliases
- -------- ------------ -------
vxTarget 90.0.0.1 localhost 127.0.0.1
host 90.0.0.254
value = 0 = 0x0
Cause: In target/config/compos/src/net/usrNetEndBoot.c,
the routeAdd uses a hard-coded address of 90.0.0.1:
#if CPU==SIMNT
routeAdd("0.0.0.0","90.0.0.1");
#endif /* CPU==SIMNT */
In usrNetUlipBoot.c, it appears code exists to
set the routes for specific target IP addresses
and it is not hard-coded to 90.0.0.1,
but this never appears to be called.
INCLUDE_ULIP_BOOT does not exist in the PROJECT facility.
usrNetUlipStart is not called anywhere.
Fix: How to configure SIMNT to use a different IP net address
Problem:
The target.nr for SIMNT (target/config/simpc/target.nr)
instructs the user to specify an IP address, i.e. 90.0.0.254,
which will be used for vxSim targets, when configuring
the ULIP Virtual Adapter in the Networking Control Panel.
However, even if the ULIP adapter is given a different
IP address, i.e. 91.0.0.254, the vxSim targets are assigned
IP addresses with a net portion of 90.0.0.
ifShow displays the IP address of the target as 90.0.0.x.
hostShow contains entries for "vxTarget" and "host" as
   90.0.0.1 and 90.0.0.254 respectively.
routeShow indicates a default route does not exist.
An entry for 0.0.0.0., 91.0.0.1 should be present.
The target server will connect to vxTarget with IP address
91.0.0.1, however.
The following procedure should be used to change the IP address
SIMNT vxSim targets will use.
1. Confirm the ULIP adapter IP address.
Navigate to: Control Panel > Network > Protocol > TCP/IP.
Select TCP/IP; click on "Properties".
Using the "adapter" pull down menu, select ULIP Virtual
Adapter.
Verify the desired IP address is specified, i.e. 91.0.0.254.
If any change was made, WinNT must be rebooted before the
change becomes effective.
2. Modify simpc/config.h,
Make the following change to the default config.h file
located in directory target/config/simpc.
Identify the section:
/*
* The default configuration is no network. If you've
installed the
* full featured simulator (unbundled), change TRUE to FALSE
below.
*/
#if TRUE
#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
Per the instruction in the comment, change the initial
FROM:
#if TRUE
#undef INCLUDE_NETWORK
...
TO:
#if FALSE
#undef INCLUDE_NETWORK
...
3. Build a new project ("bootable VxWorks image")
based on the BSP "simpc".
4. Configure the new Project to include a target
shell, symbol table, show routines, net show
routines and ping.
Using the Project facility, identify the following
components and include them.
a. Find INCLUDE_PING or the PING client under:
network components > network protocols >
network applications > PING client
b. Locate network components > network debugging
Right-click on network debugging
 >From the check list. select:
UDP show routines
TCP show routines
ICMP show routines
IGMP show routines
Network show routines
c. Under development tool components, locate
show routines.
Right-click on show routines;select and include:
memory show routines
stdio show routines
symbol table show routines
task show routines
d. Also under development tool components, include the
downloaded symbol table:
 > symbol table components
 >symbol table initialization components
 >select symbol table initialization >
 >downloaded symbol table
e. Include error status table (or INCLUDE_STAT_SYM_TBL).
 >symbol table components > error status table
f. Locate target shell component and include it.
 >development tool components >
 >target shell components > target shell
(target debugging will automatically be included.)
g. Right-click in the VxWorks tab of the Project Facility
and select "Rebuild all (vxWorks.exe).
5. Launch a SIMNT VxSim target by clicking on the "Vx" icon
in the tool bar.
In the dialog box that appars, make sure that
"Custom-built simulator" is selected, and that the
full path to the vxWorks.exe executable points to the
object in the new Project's default directory, i.e.
E:\simnt\target\proj\newsim91\default\vxWorks.exe
Select Processor 0.
When the window appears prompting that a TargetServer is
required and will be started, click "Cancel".
6. Verify that the VxSim target has been launched successfully.
Note that the target shell prompt appears.
0x4b98408
Attached TCP/IP interface to nt unit 0
Attaching interface lo0...done
Loading symbol table from host:E:/simnt/target/proj/newsim91
/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: Sep 16 1999
WDB: Ready.
- ->
7. Change the IP address of the VxSim target.
a. Use the command ifShow to display the IP address
of the target's interface.
- -> ifShow
nt (unit number 0):
Flags: (0xf1) UP POINT-TO-POINT RUNNING
Type: ETHERNET_CSMACD
Internet address: 90.0.0.1
b. Use ifAddrSet to assign the desired IP address:
IfAddrSet takes two arguments: the interface name
and the IP address:
- -> ifAddrSet "nt0","91.0.0.1"
value = 0 = 0x0
- -> ifShow
nt (unit number 0):
Flags: (0xf1) UP POINT-TO-POINT RUNNING
Type: ETHERNET_CSMACD
Internet address: 91.0.0.1
8. Add a default route to the route table.
(A default routesuch as 0.0.0.0, 90.0.0.1 may already
exist. If this is the case, use routeDelete to remove it:
- -> routeDelete "0.0.0.0", "90.0.0.1")
Use routeAdd to add a default route, using
the IP address of nt0 as the gateway;
- -> routeAdd "0.0.0.0", "91.0.0.1"
Below is the output of routeShow, routeAdd, and
routeShow after the routeAdd:
- -> routeShow
ROUTE NET TABLE
destination gateway flags Refcnt Use Interface
- -----------------------------------------------------
- -----------------------------------------------------
ROUTE HOST TABLE
destination gateway flags Refcnt Use Interface
- -----------------------------------------------------
127.0.0.1 127.0.0.1 5 0 0 lo0
- -----------------------------------------------------
value = 77 = 0x4d = 'M'
- -> routeAdd "0.0.0.0", "91.0.0.1"
value = 0 = 0x0
(If the routeAdd returns an error, use routeDelete
to remove the route, and try the routeAdd again.)
- -> routeShow
ROUTE NET TABLE
destination gateway flags Refcnt Use Interface
- -----------------------------------------------------
0.0.0.0 91.0.0.1 101 0 0 nt0
- -----------------------------------------------------
ROUTE HOST TABLE
destination gateway flags Refcnt Use Interface
- -----------------------------------------------------
127.0.0.1 127.0.0.1 5 0 0 lo0
- -----------------------------------------------------
value = 77 = 0x4d = 'M'
9. Correct entries in the host table.
Using hostDelete and hostAdd, remove entries referring
to the incorrect net (90.0.0.) and reenter correct entries.
Below is sample output of hostShow, hostDelete and hostAdd.
- -> hostShow
hostname inet address aliases
- -------- ------------ -------
vxTarget 90.0.0.1 localhost 127.0.0.1
host 90.0.0.254
value = 0 = 0x0
- -> hostDelete "vxTarget", "90.0.0.1"
value = 0 = 0x0
- -> hostDelete "host", "90.0.0.254"
value = 0 = 0x0
- -> hostAdd "vxTarget", "91.0.0.1"
value = 0 = 0x0
- -> hostAdd "host", "91.0.0.254"
value = 0 = 0x0
- -> hostShow
hostname inet address aliases
- -------- ------------ -------
localhost 127.0.0.1
vxTarget 91.0.0.1
host 91.0.0.254
value = 0 = 0x0
- ->
Cause: SPR#28810 filed against this restriction.
**************************cut here***********************
SUMMARY 4.
How can SIMNT VxSim targets on one NT host communicate
with SIMNT VxSim targets on another NT host?
Given the following network topology:
Two NT hosts, nt_host1 (192.11.47.33) and
nt_host2 (192.11.47.133)
Each NT host has two vxSim Targets.
nt_host1 has vxTarget1 (90.0.0.1)
and vxTarget2 (90.0.0.2)
nt_host2 has vxTarget11 (91.0.0.1)
and vxTarget22 (91.0.0.2)
Note that on one host, the IP address used by
SIMNT targets MUST be changed. Refer to solution
on <a href="primus://:14.0.296688.2325139">how to change SIMNT IP
addresses</a>.
What routing is necessary for vxTarget 1 on
nt_host1 to communicate with vxTarget 11 on
nt_host2?
Below is a diagram of the example network.
- -------------- -------------- On vxTarget1:
| vxTarget1 | | vxTarget 2 | ->routeShow
| | | | ROUTE NET TABLE
| | | | destination
gateway
| 90.0.0.1 | | 90.0.0.2 | 0.0.0.0
   90.0.0.1 -------------- --------------
| |
|---------------------|
|
|
| nt_host1 From DOS prompt (edited for simplicity):
- ---------------- C: route print
| 90.0.0.254 | Destination Gateway Interface
| | | 90.0.0.0 90.0.0.254
| (127.0.0.1) | 90.0.0.254 127.0.0.1
| | | 192.11.47.0 192.11.47.33
| | |
| 192.11.47.33 |
- ---------------- C: route add 91.0.0.1 192.11.47.133
|
|
- ---------|--------------
|
| nt_host2
- ----------------
| 192.11.47.133| On nt_host2, add the following
| | | host specific route:
| (127.0.0.1) |
| | |
| | | C: route add 90.0.0.1 192.11.47.33
| 91.0.0.254 |
- ----------------
|
|
|
|
|-----------------------|
| |
| |
- -------------- --------------
| vxTarget11 | | vxTarget22 |
| | | |
| | | |
| 91.0.0.1 | | 91.0.0.2 |
- -------------- --------------
Below is a sample routing table from nt_host2:
c:\tornado>route print
Active Routes:
Network Address Netmask Gateway Address
Interface
91.0.0.0 255.255.255.0 91.0.0.254
91.0.0.254
91.0.0.254 255.255.255.255 127.0.0.1
127.0.0.1
91.255.255.255 255.255.255.255 91.0.0.254
91.0.0.254
127.0.0.0 255.0.0.0 127.0.0.1
127.0.0.1
192.11.47.0 255.255.255.0 192.11.47.133
192.11.47.133
192.11.47.133 255.255.255.255 127.0.0.1
127.0.0.1
192.11.47.255 255.255.255.255 192.11.47.133
192.11.47.133
224.0.0.0 224.0.0.0 91.0.0.254
91.0.0.254
224.0.0.0 224.0.0.0 192.11.47.133
192.11.47.133
255.255.255.255 255.255.255.255 192.11.47.133
192.11.47.133
Add a route, using the command route add
from a DOS prompt on nt_host2
c:\tornado>route add 90.0.0.1 192.11.47.33
This instructs IP to route packets to
vxTarget1 (90.0.0.1) on nt_host 1
to the 147.11.48.33, nt_host1's
IP address.
Similarly on nthost1, a route to a specific
host, 91.0.0.1 should be added, using the IP
address of nthost_2 as the gateway:
d:\>route add 91.0.0.1 192.11.47.133
(For some reason, when testing on an NT host,
adding a route to the network address 90.0.0.0
or 91.0.0.0, the subnet mask of 255.255.255.255
was assigned, preventing the vxSim targets from
communicating.)
(Using host specific routes enabled the vxSim
targets on the NT hosts to communicate.)
(Instead of a single route table entry
for a destination network, separate
host specific entries for each vxSim
target seem to be necessary.)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HTH,
Gerald
Alex Vinokur wrote:
> =========================================================
> Tornado  : Version 2.0.2
> VxWorks  : Version 5.4.2
> BSP      : Version 1.1/1
> Compiler : ccsimpc
>            gcc version egcs-2.90.29 tornado 2.0 980515
>            (egcs-1.0.3 release)
> Host     : Windows2000
> Target   : VxSim for Windows (VxWorks target simulator)
> =========================================================
> Project Type : bootable VxWorks image (custom configured)
> =========================================================
>
>
> From the VxSim manual.
>
>
> file $WIND_BASE\docs\vxworks\guide\x-vxsim5.html
> || ============ VxSim : BEGIN ============
> || Fragments
>
> IP Addressing
> All of the networking facilities available under VxWorks--for example, sockets, RPC, NFS--are available with VxSim.
>  For VxSim to communicate with the outside world, it must have its own target IP address as provided through a network interface.
>
> Internet addressing is handled slightly differently among the available network interfaces.
>   For each VxSim process, there are three associated IP addresses:
>
> Target IP - the address of each VxSim process, internal to your host.
>
> Local IP - your host's address on the VxSim network, internal to your host.
>
> Host IP - your host's address according to the network at your site.
>
> The target IP address and the local IP address communicate according to the protocol of the chosen network interface.
>  The host IP address is not directly relevant to the VxSim network
>
> || ============ VxSim : END ==============
>
>
>
> How can we get/set(?) a specific VxSim IP Address ?
>
>
>
> ====================
>   Alex Vinokur
>     http://up.to/alexvn
>     http://go.to/alexv_math
>     mailto:alexvn@bigfoot.com
>     mailto:alexvn@go.to
>   ====================
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Zinc bitmap problem
Date: 15 Apr 2002 13:50:34 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <u3cxwq2ad.fsf@yahoo.com>
References: <Sikt8.56917$nk5.6121675@amsnews02.chello.com> <3CB67DE7.D47AC8E9@sepro-robotique.com> <SlEt8.71921$nk5.7011161@amsnews02.chello.com> <uy9fposmw.fsf@yahoo.com> <hSDu8.103640$nk5.10232169@amsnews02.chello.com>
Sender: bpringlemeir@DeadDuck
 Jacco> Thanks for your reply. In the UGL display driver I use the
 Jacco> "uglGeneric16BitBitmapBlit" method. My device uses 16 bits to
 Jacco> represent a color. Could you explain me what the problem can
 Jacco> be with bitmapBlit?
The bitBlit is like this [numbers are byte pairs],
  Bitmap                Screen
    012345678    --->     0123456789
  0 .........    --->   0 ?.........
  1 ..****...    --->   1 ?..****...
  2 ...**....    --->   2 ?...**....
  3 ...**....    --->   3 ?...**....
  4 ...**....    --->   4 ?...**....
  5 ..****...    --->   5 ?..****...
The question marks must be read from the current screen image when you
move the data.  I looked at the 16 bit routines breifly.  There are
some comments in udg16utl.c.  These might be relevant,
/*
 * ugl16BitBCopyOr
 *
 * Use caution when using this routine as it doesn't check for overlapping
 * conditions.
 */
etc... I think that they are harmless though as the bitBlit routine
should gaurd against overlap.  However, if you have 16 bit hardware
and use the 16 bit drivers, there should not be a problem.
What are the specifics of the platform that you are using?  Can you
try the UGL demos to see if they also exhibit this behavior?
hth,
Bill Pringlemeir.
- --
Months from now cleaning the fridge may seem mysterious.  This week
food would be a good thing to try.  Seconds from now sleeping may seem
mysterious.  Beware of your teddy bear bearing bad weather.  You'll
once in a while be enlightened.  Don't forget, it's only 366 days at
most until Christmas.
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: file transfer
Date: Mon, 15 Apr 2002 12:10:02 -0700
From: Shawn Baldwin <sabaldwin@west.raytheon.com>
Organization: Raytheon Company
Message-ID: <3CBB258A.FD3349DA@west.raytheon.com>
I want to transfer an image file from a PC to my Ppmc750 target via an
RS232 using either FTP or some other protocol!  Could someone point me
in the right direction to implement this!  Thanks!
Shawn Baldwin
---------------------------
Newsgroups: comp.os.vxworks
Subject: Is AIO Buffered?
Date: 15 Apr 2002 14:17:35 -0600
From: taashlo@sandia.gov
Organization: Sandia National Laboratories, Albuquerque, NM USA
Message-ID: <ofgk4syo.fsf@sandia.gov>
Sender: taashlo@TYPHOON
Hi All,
I'm getting really poor performance out of my SCSI hard disk when
I write large numbers of relativly small (just over 2Kbyte) "chunks"
of data.  By doing some tests, I found that the perfomance increases
significantly (from ~120Kbytes/sec to ~1.6Mbytes/sec) by increasing
the size of the "chunk" that gets written.  I'm using asynchronous
I/O (lio_listio) to prevent my high-priority tasks from blocking on
the writes to disk.
Is vxworks' AIO buffered?  If so, how do I change the size of the
buffers used?
Thanks,
Tad Ashlock <taashlo@sandia.gov>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: eieio and sync in sysInLong() and sysOutLong()
Date: Mon, 15 Apr 2002 23:01:49 +0200
From: "Wiesel Andre" <wiesel@bluewin.ch>
Organization: Bluewin AG
Message-ID: <3cbb3faf$1_4@news.bluewin.ch>
References: <3caae4d0.98474498@news.eunet.no> <3CAC5AE1.5040708@spamm.me.l8s.co.uk> <3cada852.111794762@news.eunet.no> <3cb756f4_4@news.bluewin.ch> <3CBAD609.5060100@spamm.me.l8s.co.uk>
Hi,
"David Laight" <david@spamm.me.l8s.co.uk> wrote in message
news:3CBAD609.5060100@spamm.me.l8s.co.uk...
> Wiesel Andre wrote:
>
> > The writes are always ordered. This means that when the "kick" will
>
>  > happen on the bus, all previous write transaction will have happened
>  > on the bus as well.
>
> I had a feeling (based on no facts) that the PPC could reorder things
> further than that.  TSO (total store ordering) is easy to deal with,
> my suspicions were that the PPC was only PSO.
*** There is no re-ordering in stores when accessing cache-inhibited &
guarded
       memory region. (And I assume you use sysInLong() and sysOutLong() on
this
       type of memory).
> >
> > The only problem occurs when you do a write/read sequence. As writes
>
>  > are buffered, you may actually do the read before the write is really
>  > "flushed" on the bus eieio will flush the write.
>
> Does that mean that eieio is just 'drain write buffer'?
*** Not really. It's just ordering the I/O. The eieio can return before the
data
       are actually written into memory. The sync will only return after all
       data are written and that the cache states are updated.
       But eieio is enough in most of the cases, and less penalizing.
> Does the PPC architecture define what happens when you do a read of an
> address that is the same as that of a buffered write?
> I recall that the sparc archecture forces a drain of the write buffer,
> although you have to read some very small print to find that out!
> This is also probably true of the ppc (and arm) - otherwise far too much
> code just doesn't work!
>
>
> > Regarding the sync, I think they are useless.
>
> They must have SOME use - otherwide the instruction wouldn't exist :-)
*** Of course sync is useful. But it's not needed in these 2 routines
(sysInLong() & sysOutLong() )
       Generally you don't care if the data due to eieio previous
transaction are really written to the
       bus. What you care is ordering. If you really need strong
synchronization, it's better to put a sync
       where you need it rather than breaking the pipeline for all I/O
transactions by having these sync
       in these 2 routines ...
> OTOH the eieio in sysInLong should be before the lwbrx
*** Or even removed. sysOutLong() is taking care of ordering already.
---------------------------
Newsgroups: comp.os.vxworks
Subject: boot problems
Date: 15 Apr 2002 14:29:47 -0700
From: mandracchia@ciaoweb.it (Manu)
Organization: http://groups.google.com/
Message-ID: <1e539f32.0204151329.ff435d0@posting.google.com>
I have a artesyn's board with a cetia atm cpmc ATM card. When I create
a bootable project with the BSP artesyn I compile e boot without
problem.
But if I use the driver CETIA too, the compiler not create problem but
when i boot the board and it received the vxworks image with the
driver it become freeze and the wftp server signal a socket error
10054! how i can resolve my problem? It's probably a driver memory
configuration error. How I can check the memory configuration or
better, how I can check when the driver is memorized?
Thank's
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Buffer full UDP problem
Date: Mon, 15 Apr 2002 23:09:20 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CBB5E34.1040102@spamm.me.l8s.co.uk>
References: <eec86974.0204150627.49fac57d@posting.google.com> <eec86974.0204150902.5aa2e7ea@posting.google.com>
RichardBarry wrote:
> Having done some more investigation I think the buffer is filling up
> due to the network failing, rather than the other way around.
Does your ethernet driver correctly handle things when the transmit
side is flow controlled by the media?
The WRS supplied END one I copied didn't!
I don't know what it SHOULD do, I just accepted all the packets
and queued them within the MAC driver.
(With a 'dump the queue if we don't seem to be going anywhere'
feature).
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: file transfer
Date: 15 Apr 2002 22:09:30 -0700
From: senthilb@comneti.com (senthil)
Organization: http://groups.google.com/
Message-ID: <26ca8a8f.0204152109.65d8de70@posting.google.com>
References: <3CBB258A.FD3349DA@west.raytheon.com>
Shawn Baldwin <sabaldwin@west.raytheon.com> wrote in message news:<3CBB258A.FD3349DA@west.raytheon.com>...
> I want to transfer an image file from a PC to my Ppmc750 target via an
> RS232 using either FTP or some other protocol!  Could someone point me
> in the right direction to implement this!  Thanks!
>
> Shawn Baldwin
Hi,
 For transfering files via RS232 ports , there are many efficient
protocols like X-Modem, Kermit ,Y-Modem and Z-Modem. Try out ZModem
protocol which is considered to be one of the best. You can get the
free code in C with Unix over the web.
Senthil
---------------------------
Newsgroups: comp.os.vxworks
Subject: VxWorks boot problem.
Date: 15 Apr 2002 22:55:20 -0700
From: ihate_ms@hotmail.com (DM)
Organization: http://groups.google.com/
Message-ID: <c199b129.0204152155.2f200852@posting.google.com>
I've designed a board based on the ATMEL AT91M40800 processor.
Successfully modified/created a BSP and got the bootrom working.
I get the [VxWorks Boot]: prompt and it responds to commands.
For starters, I'm trying to download the VxWorks kernel image
through a serial line using TSFS on the PC (no ethernet on my
device). Here's what happens on the target server console:
tgtsvr (target@osiris): Tue Apr 16 11:04:35 2002
    Wind River Systems Target Server: NT/Win95 version
    Connecting to target agent... succeeded.
    Attaching C++ interface... succeeded.
    Warning: No core file. Use -c option if you wish to use one.
    Attaching coff OMF reader for ARM CPU family... succeeded.
    Warning: Unable to start synchronization on target
    TSFS: opened file (E:\programs\Tornado\vxworks).
    TSFS: closed file (E:\programs\Tornado\vxworks).
On the target, VxWorks loads:
Loading /tgtsvr/vxworks...
384292 + 8xxx + 3xxxx
and then nothing...
After 5-10s, the target server window shows:
    Error: rpccore backend client Timed out
    Warning: Cannot write to virtual I/O channel 0
Any ideas what's happening? Suggestions?
Thanks in advance folks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: route for nt0 interface
Date: 16 Apr 2002 00:32:20 -0700
From: kannan@comneti.com (kannan)
Organization: http://groups.google.com/
Message-ID: <2ede7703.0204152332.7939f74a@posting.google.com>
References: <8dff11cd.0204120436.4d18bb2d@posting.google.com> <3CB77EF5.CD6316E6@bellsouth.net> <8dff11cd.0204142243.4ca3549a@posting.google.com>
Hi,
Whether you have included "INCLUDE_NET_INIT" .I think  this will solve your problem.
Thanks and Regards,
Kannan
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: file transfer
Date: Tue, 16 Apr 2002 11:09:17 +0200
From: "Michael Lawnick" <Lawnick@softec.de>
Organization: Buergernetz Dillingen
Message-ID: <a9gpnu$jkl$1@snoopy.bndlg.de>
References: <3CBB258A.FD3349DA@west.raytheon.com>
Reply-To: "Michael Lawnick" <Lawnick@softec.de>
Sender: mlawnick@pd9e654d0.dip.t-dialin.net
Hi Shawn,
if you want to use FTP, you'll use TCP-over-serial aka PPP ->
include PPP into your bootrom image.
This will give you a transparent TCP connection on both sides,PC and target.
HTH
Michael
"Shawn Baldwin" <sabaldwin@west.raytheon.com> schrieb im Newsbeitrag
news:3CBB258A.FD3349DA@west.raytheon.com...
> I want to transfer an image file from a PC to my Ppmc750 target via an
> RS232 using either FTP or some other protocol!  Could someone point me
> in the right direction to implement this!  Thanks!
>
> Shawn Baldwin
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Tornado IDE Startup Error under non-admin W2K account
Date: Tue, 16 Apr 2002 10:14:39 +0100
From: "Chris Read" <chris.read@uk.thalesgroup.com>
Organization: Thales Defence (Communications) Ltd
Message-ID: <a9gq26$mg0$1@rdel.co.uk>
W2K, Tornado 2.0.2, PPC
I have installed Tornado under a local administrators account as suggested
 in the installation guide, and it all seems to be fine. The problem is that
to
actually do my real work, I must logon to a domain where my account does
not have admin privs. As a result Tornado raises an error at startup as it
can't access the relevant registry entries. Basically this seems to be those
relating to the registration & license info that it puts in the splash
dialog,
which then show as <unknown>.
In addition it puts up an error box saying:
Gdb Error - Failed to register COM server Error code = 0x8002801C.
The good news is that none of this seems to stop anything working as far as
I can make out, but it would be nice to be able to fix the problem. I have
had a dig in the windows registry (only from the local admin, as it's
disabled under domain account) but no luck in sorting it out. It seems to be
user related, and I don't have access to the domain user registry content.
Anyone met the same poblem, or have an idea?
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Tue Apr 16 09:21:20 2002
From: "Sabarivel S" <sabaris@future.futsoft.com>
Date: Tue Apr 16 09:21:22 PDT 2002
Subject: Vxworks : Receiving all multicast IP packets
Hello
   My requirement is to receive all multicast data packets.
   i.e All IP Packets whose destination address is a
   multicast address irrespective of protocol.
  Kindly provide a way in which this can be acheived ?
  We are using ipFilter's hook  function to receive
  these packets and facing problems in receiving all
  multicast packets. Is this a correct way ?
  Indicate us the right way of acheiving above
  functionality.
Thanks & Regards
sabari
***************************************************************************
This message is proprietary to Future Software Limited (FSL)
and is intended solely for the use of the individual to whom it
is addressed. It may contain  privileged or confidential information
and should not be circulated or used for any purpose other than for
what it is intended.
If you have received this message in error, please notify the
originator immediately. If you are not the intended recipient,
you are notified that you are strictly prohibited from using,
copying, altering, or disclosing the contents of this message.
FSL accepts no responsibility for loss or damage arising from
the use of the information transmitted by this email including
damage from virus.
***************************************************************************
From vxwexplo-errs@csg.lbl.gov  Wed Apr 17 04:03:18 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Wed Apr 17 04:03:21 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Wed Apr 17 04:03:14 PDT 2002
        Subject: VxWorks booting from floppy on standalone PC
        Subject: Re: Tornado IDE Startup Error under non-admin W2K account
        Subject: Re: Multiple Tornado installations
        Subject: custom build in Tornado 2 IDE
        Subject: How to get notifications about updates to ARP table?
        Subject: Re: custom build in Tornado 2 IDE
        Subject: Re: VxWorks booting from floppy on standalone PC
        Subject: Re: eieio and sync in sysInLong() and sysOutLong()
        Subject: [AE]netPoolInit() freezes in motFecInitMem()
        Subject: Re: Tornado IDE Startup Error under non-admin W2K account
        Subject: Re: Buffer full UDP problem
        Subject: Re: The ls() command & Target Shell
        Subject: dosfs2 and FIOSEEK64
        Subject: Re: Tornado IDE Startup Error under non-admin W2K account
        Subject: crosswind tcl scripts
        Subject: Re: Tornado IDE Startup Error under non-admin W2K account
        Subject: Re: VxWorks booting from floppy on standalone PC
        Subject: How to write a BSP
        Subject: Re: [AE]netPoolInit() freezes in motFecInitMem()
        Subject: where can I add the INCLUDE_POSIX_SCHED?
        Subject: Re: VxWorks boot problem.
        Subject: where can I add the INCLUDE_POSIX_SCHED?
        Subject: Tornado II pricing
        Subject: Re: Tornado IDE Startup Error under non-admin W2K account
        Subject: Running a python test Script
        Subject: Re: dosfs2 and FIOSEEK64
        Subject: interrupt: pannic: ring buffer overflow messages on the target shell.
        Subject: Re: Buffer full UDP problem
        Subject: "bind failed" using intel eeV driver
        Subject: Re: Tornado IDE Startup Error under non-admin W2K account
        Subject: Re: How to write a BSP
        Subject: Slave booting over Ethernet
        Subject: Re: Tornado II pricing
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: VxWorks booting from floppy on standalone PC
Date: 16 Apr 2002 04:52:58 -0700
From: mohit@mahindrabt.com (Mohit)
Organization: http://groups.google.com/
Message-ID: <538e14e.0204160352.39d19629@posting.google.com>
Hi,
   I am facing problem in booting standalone PC using bootable VxWorks
image created as per the documentation says.
I understand that vxWorks.st is the standalone image from which
I can create a bootable floppy using mkboot.bat, vxsys.com and
vxWorks.st.
I have Tornado 2.0 running on Window 95. i create bootrom.sys using
vxcopy utility then i copy bootrom.sys to floppy. All the blocks of
this file are contiguous.When i try to boot the PC using this floppy i
can see Vxld1.2 and  some dots and system does not seem to go beyond
that(it hangs).Could anybody please tell me which step is missing and
how to solve the problem and what all we see after a successful boot.
Any help will be highly appreciated.
Thanks in advance,
Mohit
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado IDE Startup Error under non-admin W2K account
Date: 16 Apr 2002 12:19:19 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91F291B2278DDborkhuisagerecom@135.7.153.101>
References: <a9gq26$mg0$1@rdel.co.uk>
"Chris Read" <chris.read@uk.thalesgroup.com> wrote:
> I have installed Tornado under a local administrators account as
> suggested in the installation guide, and it all seems to be fine. The
> problem is that to actually do my real work, I must logon to a domain
> where my account does not have admin privs. As a result Tornado raises
> an error at startup as it can't access the relevant registry entries.
You should add this username to the local administrator group on your W2K
machine. This should solve this issue.
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: Multiple Tornado installations
Date: 16 Apr 2002 12:23:16 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91F2925D3A2A4borkhuisagerecom@135.7.153.101>
References: <1018881798.564494@cswreg.cos.agilent.com> <3CBB0C3E.2090105@dont.spamm.xs4all.nl>
Gerald van Kampen <gkampen@dont.spamm.xs4all.nl> wrote:
> Yes multiple installations of Tornado on the same host will work.
> However keep them in different directory trees. The latest version of
> Tornado for StrongArm/XScale is 2.1.1 and for x86 this is still 2.0.2.
> They use different versions of the GNU toolchain (2.96 versus 2.7.2
> respectively). So in this case you must use different directories.
You can install different target-versions in one tree, as long as they have
the same version number (so installing T2.0.2 for both x86 and StrongArm in
the same tree is no problem).
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: custom build in Tornado 2 IDE
Date: Tue, 16 Apr 2002 14:44:40 +0200
From: "Joerg Engel" <j.engel@zeiss.de>
Message-ID: <3cbc1cc1$0$183$4d4ebb8e@read.news.de.uu.net>
I want to include a custom tool to generate a header file bofore starting
the build process in Tornado 2 IDE.
How can I do this ?
Joerg
---------------------------
Newsgroups: comp.os.vxworks
Subject: How to get notifications about updates to ARP table?
Date: 16 Apr 2002 06:00:22 -0700
From: slawomirc_ie@yahoo.ie (Slawomir Czarko)
Organization: http://groups.google.com/
Message-ID: <9acd95bc.0204160500.1864d2eb@posting.google.com>
In our project we need to get notifications whenever VxWorks
ARP table gets modified. We've got a basic VxWorks license. How can
this be achieved?
Slawomir Czarko
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: custom build in Tornado 2 IDE
Date: 16 Apr 2002 13:01:47 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91F298E544747borkhuisagerecom@135.7.153.101>
References: <3cbc1cc1$0$183$4d4ebb8e@read.news.de.uu.net>
"Joerg Engel" <j.engel@zeiss.de> wrote:
> I want to include a custom tool to generate a header file bofore starting
> the build process in Tornado 2 IDE.
> How can I do this ?
Try including an extra rule for this header file in the build properties
window.
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: VxWorks booting from floppy on standalone PC
Date: Tue, 16 Apr 2002 09:08:15 -0400
From: david lindauer <dlindauer@notifier-is.net>
Message-ID: <3CBC223F.136113CD@notifier-is.net>
References: <538e14e.0204160352.39d19629@posting.google.com>
Mohit wrote:
> Hi,
>    I am facing problem in booting standalone PC using bootable VxWorks
> image created as per the documentation says.
> I understand that vxWorks.st is the standalone image from which
> I can create a bootable floppy using mkboot.bat, vxsys.com and
> vxWorks.st.
> I have Tornado 2.0 running on Window 95. i create bootrom.sys using
> vxcopy utility then i copy bootrom.sys to floppy. All the blocks of
> this file are contiguous.When i try to boot the PC using this floppy i
> can see Vxld1.2 and  some dots and system does not seem to go beyond
> that(it hangs).Could anybody please tell me which step is missing and
> how to solve the problem and what all we see after a successful boot.
> Any help will be highly appreciated.
>
> Thanks in advance,
> Mohit
you should erase all files on the floppy before copying bootrom.sys, as I
think it has to be the first thing on the floppy in addition to being
contiguous.  Also make sure you used vxsys to install the bootstrap in
sector 0 (I think the fact that you got dots means you did this).
What you should have seen next was the screen displayed by bootrom.sys.  I
can't remember what it displays, but after other stuff it will either give
you a prompt or start counting down and give you a chance to go to a
prompt.  In any case it is very obvious that something is happening.  If
the countdown completes it will try to load your vxworks.st file.  (the
activity it undertakes as far as counting down and loading images is
governed by the macro DEFAULT_BOOT_LINE in your config.h, BSP directory).
David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: eieio and sync in sysInLong() and sysOutLong()
Date: 16 Apr 2002 07:41:43 -0700
From: vloscomp@yahoo.com (Vinh)
Organization: http://groups.google.com/
Message-ID: <c129947c.0204160641.70a39036@posting.google.com>
References: <3caae4d0.98474498@news.eunet.no> <3CAC5AE1.5040708@spamm.me.l8s.co.uk> <3cada852.111794762@news.eunet.no> <3cb756f4_4@news.bluewin.ch> <3CBAD609.5060100@spamm.me.l8s.co.uk> <3cbb3faf$1_4@news.bluewin.ch>
Hi all,
   The PPC750 or PPC is a harvard architecture, therefore there will
be buffered for data and instruction. The PPC is also support out of
order execution, and branch prediction.
   With that said, I think wether you have cache enable, disable, or
guarded will not protectes the code from out of order execution. The
sync is generally used to enforced the ordering of the pipeline
instruction, and the data pipes.
It is also used after a branch instruction! I think this is used to
ensured the branching when the prediction fails.
Vinh Lam
"Wiesel Andre" <wiesel@bluewin.ch> wrote in message news:<3cbb3faf$1_4@news.bluewin.ch>...
> Hi,
>
> "David Laight" <david@spamm.me.l8s.co.uk> wrote in message
> news:3CBAD609.5060100@spamm.me.l8s.co.uk...
> > Wiesel Andre wrote:
> >
> > > The writes are always ordered. This means that when the "kick" will
>
> >  > happen on the bus, all previous write transaction will have happened
> >  > on the bus as well.
> >
> > I had a feeling (based on no facts) that the PPC could reorder things
> > further than that.  TSO (total store ordering) is easy to deal with,
> > my suspicions were that the PPC was only PSO.
>
> *** There is no re-ordering in stores when accessing cache-inhibited &
> guarded
>        memory region. (And I assume you use sysInLong() and sysOutLong() on
> this
>        type of memory).
>
> > >
> > > The only problem occurs when you do a write/read sequence. As writes
>
> >  > are buffered, you may actually do the read before the write is really
> >  > "flushed" on the bus eieio will flush the write.
> >
> > Does that mean that eieio is just 'drain write buffer'?
>
> *** Not really. It's just ordering the I/O. The eieio can return before the
> data
>        are actually written into memory. The sync will only return after all
>        data are written and that the cache states are updated.
>
>        But eieio is enough in most of the cases, and less penalizing.
>
> > Does the PPC architecture define what happens when you do a read of an
> > address that is the same as that of a buffered write?
> > I recall that the sparc archecture forces a drain of the write buffer,
> > although you have to read some very small print to find that out!
> > This is also probably true of the ppc (and arm) - otherwise far too much
> > code just doesn't work!
> >
> >
> > > Regarding the sync, I think they are useless.
> >
> > They must have SOME use - otherwide the instruction wouldn't exist :-)
>
> *** Of course sync is useful. But it's not needed in these 2 routines
> (sysInLong() & sysOutLong() )
>        Generally you don't care if the data due to eieio previous
> transaction are really written to the
>        bus. What you care is ordering. If you really need strong
> synchronization, it's better to put a sync
>        where you need it rather than breaking the pipeline for all I/O
> transactions by having these sync
>        in these 2 routines ...
>
> > OTOH the eieio in sysInLong should be before the lwbrx
>
> *** Or even removed. sysOutLong() is taking care of ordering already.
---------------------------
Newsgroups: comp.os.vxworks
Subject: [AE]netPoolInit() freezes in motFecInitMem()
Date: Tue, 16 Apr 2002 11:52:46 -0400
From: "David Masse" <dmasse@ele.etsmtl.ca>
Organization: Universite du Quebec
Message-ID: <a9hhig$531$1@Tropolix.UQSS.UQuebec.CA>
Hi,
I have a problem with the mdpMotFecEnd.c (almost the same as motFecEnd.c)
driver for the motorola MPC860 Fast Ethernet Controller.  When I boot my
target, it sometimes freezes when muxDevLoad() is called from
usrEndLibInit().  I trace the code and I found that the CPU freeze when
netPoolInit() is called in motFecInitMem()  ( usrEndlibInit() ->
muxDevLoad() -> mdpMotFecEndLoad() -> motFecInitMem() -> netPoolInit() ).  I
try decreasing or increasing the tbd and rbd buffer number but the problem
always reappear when I add some components.  I try also increasing the
kernel memory but the same problem reappear and even sometimes increasing
the kernel memory generates the problem while it was working before I
increased the memory.  I also noted that when I add more than two logical
regions in my kernelIoRgnPool region pool, the CPU freezes i netPoolInit().
Can someone help me?
My BSP is a custom BSP build from mdpmPro8xxT BSP and my target is a
Motorola MPC860P.
Thanks
- - David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado IDE Startup Error under non-admin W2K account
Date: Tue, 16 Apr 2002 17:09:31 +0100
From: "Chris Read" <chris.read@uk.thalesgroup.com>
Organization: Thales Defence (Communications) Ltd
Message-ID: <a9hicb$t8t$1@rdel.co.uk>
References: <a9gq26$mg0$1@rdel.co.uk> <Xns91F291B2278DDborkhuisagerecom@135.7.153.101>
> You should add this username to the local administrator group on your W2K
> machine. This should solve this issue.
>
Nice in theory, as obviously I'd do it. However as it is a non-administrator
account logged onto a domain (company IT policy), I haven't the priv to do
so. Logging on as a local admin is no good as I can't access the domain
drives, and I can't make modifications to the domain user logon privs as
they are held by the server. I have also had a problem with some unreleated
software that runs fine under local admin, but not when logged on to the
domain. It has to be some priv related thing, that I'm going to have to
start shouting at IT to go figure sooner or later.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Buffer full UDP problem
Date: Tue, 16 Apr 2002 10:34:42 -0700
From: Hwa Jin Bae <hjb@pso.com>
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <3CBC60B2.8010906@pso.com>
References: <eec86974.0204150627.49fac57d@posting.google.com> <eec86974.0204150902.5aa2e7ea@posting.google.com> <3CBB5E34.1040102@spamm.me.l8s.co.uk>
One of the basic rules for the network driver is that it should survive
overflow cases like the one you mentioned.  Network interface driver may
be stressed, like the case where too many back to back I/O requests are
made, but should recover from it without failing forever.  If the driver
is not written properly, network will not recover.
Many network drivers I have seen are written incorrectly.  They work OK
under most situations but under extreme load they fail.  And worse yet,
they do not recover.
Many of these problems can be attributed to the code in the input and
output path code of the drivers.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: The ls() command & Target Shell
Date: Tue, 16 Apr 2002 19:16:07 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbc5c4d$1@brateggebdc5.br-automation.co.at>
References: <a9dqce$28ogd$1@ID-79865.news.dfncis.de> <Xns91F18E326BCA6borkhuisagerecom@135.7.153.101> <3CBAD794.5020906@spamm.me.l8s.co.uk>
Hi,
"David Laight" <david@spamm.me.l8s.co.uk> wrote in message
news:3CBAD794.5020906@spamm.me.l8s.co.uk...
... snip ...
>
> Additionally ls wants a non-null argument, and the filesystem code likes
> a non-null path to play with.
> So try:
>
> -> ls "/tffs/."
>
From usrFsLib.c, function dirList (which does the work for ls):
    /* If no directory name specified, use "." */
    if (dirName == NULL)
 dirName = ".";
So it is ok to use a null argument for the path.
However, one needs to change to a valid current working directory then.
So using what David mentioned is an alternative to Johan's solution.
hth
Werner
---------------------------
Newsgroups: comp.os.vxworks
Subject: dosfs2 and FIOSEEK64
Date: 16 Apr 2002 10:58:26 -0700
From: skamara@attbi.com (Scott Kamara)
Organization: http://groups.google.com/
Message-ID: <eaffe947.0204160958.3ff191f9@posting.google.com>
When I FIOSEEK64 past the known end of file the ioctl
does not return ERROR. Do others see this?
Scott Kamara
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado IDE Startup Error under non-admin W2K account
Date: Tue, 16 Apr 2002 11:31:44 -0700
From: Melvin Gardipee <"<mbgardipee"@.west.NO_SPAM_HERE.raytheon.com>>
Organization: Raytheon Company
Message-ID: <g7_u8.701$Bd4.4920@dfw-service2.ext.raytheon.com>
References: <a9gq26$mg0$1@rdel.co.uk>
I don't know about Win2K but I had a similar problem with <unknown> fields
in NT4. I exported the HKEY_CURRENT_USER\Software\Wind River Systems key
from local administrator, logged back into domain and merged the .REG file
back into the registry.
Regards,
Melvin Gardipee
Chris Read wrote:
>
> W2K, Tornado 2.0.2, PPC
>
> I have installed Tornado under a local administrators account as suggested
>  in the installation guide, and it all seems to be fine. The problem is that
> to
> actually do my real work, I must logon to a domain where my account does
> not have admin privs. As a result Tornado raises an error at startup as it
> can't access the relevant registry entries. Basically this seems to be those
> relating to the registration & license info that it puts in the splash
> dialog,
> which then show as <unknown>.
> In addition it puts up an error box saying:
> Gdb Error - Failed to register COM server Error code = 0x8002801C.
>
> The good news is that none of this seems to stop anything working as far as
> I can make out, but it would be nice to be able to fix the problem. I have
> had a dig in the windows registry (only from the local admin, as it's
> disabled under domain account) but no luck in sorting it out. It seems to be
> user related, and I don't have access to the domain user registry content.
>
> Anyone met the same poblem, or have an idea?
---------------------------
Newsgroups: comp.os.vxworks
Subject: crosswind tcl scripts
Date: Tue, 16 Apr 2002 14:24:55 -0400
From: "Steve" <steve.c.strauss@lmco.com>
Organization: Lockheed Martin -- Information Systems Center
Message-ID: <a9hq9l$br7$1@zeus.orl.lmco.com>
Does anyone know of any repository of crosswind tcl scripts?  I'm sure that
a lot of people have added a lot of useful things to crosswind, but I was
wondering if there is any central collection of things.  Thank you.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado IDE Startup Error under non-admin W2K account
Date: Tue, 16 Apr 2002 19:30:12 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbc5f9a$1@brateggebdc5.br-automation.co.at>
References: <a9gq26$mg0$1@rdel.co.uk>
Hi,
did you try to start it one time from your administrator account?
Registering COM servers should normally only be necessary _once_ (which does
not prevent ignorant SW developers from doing it anytime the thing is
started...).
hth
Werner
"Chris Read" <chris.read@uk.thalesgroup.com> wrote in message
news:a9gq26$mg0$1@rdel.co.uk...
> W2K, Tornado 2.0.2, PPC
>
> I have installed Tornado under a local administrators account as suggested
>  in the installation guide, and it all seems to be fine. The problem is
that
> to
> actually do my real work, I must logon to a domain where my account does
> not have admin privs. As a result Tornado raises an error at startup as it
> can't access the relevant registry entries. Basically this seems to be
those
> relating to the registration & license info that it puts in the splash
> dialog,
> which then show as <unknown>.
> In addition it puts up an error box saying:
> Gdb Error - Failed to register COM server Error code = 0x8002801C.
>
> The good news is that none of this seems to stop anything working as far
as
> I can make out, but it would be nice to be able to fix the problem. I have
> had a dig in the windows registry (only from the local admin, as it's
> disabled under domain account) but no luck in sorting it out. It seems to
be
> user related, and I don't have access to the domain user registry content.
>
> Anyone met the same poblem, or have an idea?
>
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: VxWorks booting from floppy on standalone PC
Date: Wed, 17 Apr 2002 00:35:33 GMT
From: nunya@damn.business.com (Bruce)
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <3cbcc35b.499888@news.houston.sbcglobal.net>
References: <538e14e.0204160352.39d19629@posting.google.com> <3CBC223F.136113CD@notifier-is.net>
In comp.os.vxworks
david lindauer <dlindauer@notifier-is.net> wrote:
>>    I am facing problem in booting standalone PC using bootable VxWorks
>> image created as per the documentation says.
>> I understand that vxWorks.st is the standalone image from which
>> I can create a bootable floppy using mkboot.bat, vxsys.com and
>> vxWorks.st.
>> I have Tornado 2.0 running on Window 95. i create bootrom.sys using
>> vxcopy utility then i copy bootrom.sys to floppy. All the blocks of
>> this file are contiguous.When i try to boot the PC using this floppy i
>> can see Vxld1.2 and  some dots and system does not seem to go beyond
>> that(it hangs).Could anybody please tell me which step is missing and
>> how to solve the problem and what all we see after a successful boot.
>> Any help will be highly appreciated.
>>
>> Thanks in advance,
>> Mohit
>
>you should erase all files on the floppy before copying bootrom.sys, as I
>think it has to be the first thing on the floppy in addition to being
>contiguous.  Also make sure you used vxsys to install the bootstrap in
>sector 0 (I think the fact that you got dots means you did this).
>
>What you should have seen next was the screen displayed by bootrom.sys.  I
>can't remember what it displays, but after other stuff it will either give
>you a prompt or start counting down and give you a chance to go to a
>prompt.  In any case it is very obvious that something is happening.  If
>the countdown completes it will try to load your vxworks.st file.  (the
>activity it undertakes as far as counting down and loading images is
>governed by the macro DEFAULT_BOOT_LINE in your config.h, BSP directory).
This can also happen if his bootrom.sys is too large.  Because you are
still in a DOS world, it can't be larger than about 550k.
Bruce
---------------------------
Newsgroups: comp.os.vxworks
Subject: How to write a BSP
Date: Wed, 17 Apr 2002 09:32:25 +0800
From: "minskey73" <minskey73@yahoo.com.cn>
Organization: Changzhou Telecom
Message-ID: <a9ij9f$1cil$1@news.cz.js.cn>
Hello,
    I am a newer and know little about so-called BSP .Would you like to
tell me how to write a BSP for MPC860-based.
   thank you anyway
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: [AE]netPoolInit() freezes in motFecInitMem()
Date: 16 Apr 2002 19:41:47 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204161841.496d62cf@posting.google.com>
References: <a9hhig$531$1@Tropolix.UQSS.UQuebec.CA>
Hello,
Sounds like you have something wrong in the memory description for
your board - probably something overlapping an I/O region or the
memory mapped registers location. How does your 00region.sdf differ
from a standard 860 board like the ads860 or mbx860, or even the board
you based it on.
Try drawing out the memory map to see what is where in both virtual
and physical (note that most, if not all, your I/O regions are
probably mapped so that P = V). The memMacros.dat file in your kernel
project might help you get the actual numbers here (saves chasing down
the macro values yourself).
HTH,
John...
> I have a problem with the mdpMotFecEnd.c (almost the same as motFecEnd.c)
> driver for the motorola MPC860 Fast Ethernet Controller.  When I boot my
> target, it sometimes freezes when muxDevLoad() is called from
> usrEndLibInit().  I trace the code and I found that the CPU freeze when
> netPoolInit() is called in motFecInitMem()  ( usrEndlibInit() ->
> muxDevLoad() -> mdpMotFecEndLoad() -> motFecInitMem() -> netPoolInit() ).  I
> try decreasing or increasing the tbd and rbd buffer number but the problem
> always reappear when I add some components.  I try also increasing the
> kernel memory but the same problem reappear and even sometimes increasing
> the kernel memory generates the problem while it was working before I
> increased the memory.  I also noted that when I add more than two logical
> regions in my kernelIoRgnPool region pool, the CPU freezes i netPoolInit().
>
> Can someone help me?
>
> My BSP is a custom BSP build from mdpmPro8xxT BSP and my target is a
> Motorola MPC860P.
>
> Thanks
>
> - David
---------------------------
Newsgroups: comp.os.vxworks
Subject: where can I add the INCLUDE_POSIX_SCHED?
Date: Wed, 17 Apr 2002 11:13:54 +0800
From: "" <wujun@bupt.edu.cn>
Organization: Bentium Ltd. (CN99)
Message-ID: <a9ip9o$4eq$1@mail.cn99.com>
I have builded a downloadable application modules for VxWorks, when I
download it, there are some errors:
Errors while downloading E:/Tornado/target/proj/Project0/SIMNTgnu/hello.out:
_retrun
_sched_getparam
_sched_setparam
Where can I add the macro INCLUDE_POSIX_SCHED?
Thanks in advance.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: VxWorks boot problem.
Date: 16 Apr 2002 20:24:47 -0700
From: ihate_ms@hotmail.com (DM)
Organization: http://groups.google.com/
Message-ID: <c199b129.0204161924.7e85b0c2@posting.google.com>
References: <c199b129.0204152155.2f200852@posting.google.com>
ihate_ms@hotmail.com (DM) wrote in message news:<c199b129.0204152155.2f200852@posting.google.com>...
> I've designed a board based on the ATMEL AT91M40800 processor.
> Successfully modified/created a BSP and got the bootrom working.
....
....
<snip>
Forget it folks, problem solved.
---------------------------
Newsgroups: comp.os.vxworks
Subject: where can I add the INCLUDE_POSIX_SCHED?
Date: Wed, 17 Apr 2002 10:03:53 +0800
From: "" <wujun@bupt.edu.cn>
Organization: Bentium Ltd. (CN99)
Message-ID: <a9ir2j$5sn$1@mail.cn99.com>
I have builded a downloadable application modules for VxWorks, when I
download it, there are some errors:
Errors while downloading E:/Tornado/target/proj/Project0/SIMNTgnu/hello.out:
_retrun
_sched_getparam
_sched_setparam
Where can I add the macro INCLUDE_POSIX_SCHED?
Thanks in advance.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Tornado II pricing
Date: Wed, 17 Apr 2002 05:09:22 GMT
From: "Darwin Chen" <ecedarwin@hotmail.com>
Message-ID: <6s7v8.2027$Cx3.852454@news3.news.adelphia.net>
Does anyone know the estimate pricing for Tornado II package?  I am
interested to learn VxWork RTOS, but not sure if the software package is
affordable for an individual.
Thanks and best regards,
Darwin
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado IDE Startup Error under non-admin W2K account
Date: 16 Apr 2002 23:43:42 -0700
From: heiko_elger@arburg.com (Heiko Elger)
Organization: http://groups.google.com/
Message-ID: <97e6274e.0204162243.4beb254b@posting.google.com>
References: <a9gq26$mg0$1@rdel.co.uk>
I expected a similar behavior with WinNT (Install with admin accout -
want to work without admin account).
It's an inofficial SPR #67097 "Enhancement of Tornado installation".
The resolution is to export the keys HKLM-Software-WindRiverSystems to
HKCU-Software-WindRiverSystems.
WRS hopes to resolve this error in next version.
best regards
Heiko
---------------------------
Newsgroups: comp.os.vxworks
Subject: Running a python test Script
Date: 16 Apr 2002 23:49:07 -0700
From: vinodkrishnankutty@hotmail.com (vinod)
Organization: http://groups.google.com/
Message-ID: <cb7218f2.0204162249.13680edf@posting.google.com>
hi all,
  I have a python script with which i would like to test my vxworks
application. I am new to python and this is the first time that i am
using it. I am using a windows 2000 system and python 2.2.1
  Could some one please help me by telling me how to link this python
script with tornado. I tried specifying the the target server name
within the script but it did not work.
  Thanx in advance,
vinod
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosfs2 and FIOSEEK64
Date: Wed, 17 Apr 2002 07:05:20 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$opcpug$gq6$1@lnews.actcom.co.il>
References: <eaffe947.0204160958.3ff191f9@posting.google.com>
That's right, seeking past end of file is not an error, not until one tries
to read data from  such an offset, where no data exists. Hence a read()
after seeking over EOF will return an error, but writing there will result
in the file size increase to accomodate that new data in that new offset,
and zero-filled gap between where the EOF was previously and where this new
data begins.
This is compatible with the I/O behaviour defined by POSIX and implemented
in all Unix systems, except that a Unix file system does not need to
actually fill the gap, as the I-Node based system allows for "holes" in a
file, a range which has no data blocks. This "hole" reads as a series of
zeroes though. FAT structure due to its sequencial block linkage does not
allow for "holes", hence the implementation difference, maintaining semantic
similarity.
In other words, the way to create a file "hole" on Unix is to seek past end
of file, and write a few bytes, hence the seek operation is not an error by
itself.
Hope this helps,
    Leonid
"Scott Kamara" <skamara@attbi.com> wrote in message
news:eaffe947.0204160958.3ff191f9@posting.google.com...
> When I FIOSEEK64 past the known end of file the ioctl
> does not return ERROR. Do others see this?
>
> Scott Kamara
---------------------------
Newsgroups: comp.os.vxworks
Subject: interrupt: pannic: ring buffer overflow messages on the target shell.
Date: 17 Apr 2002 01:32:56 -0700
From: people@micro-web.co.kr (JinSoo Kim)
Organization: http://groups.google.com/
Message-ID: <edc45795.0204170032.4f1eef0a@posting.google.com>
Hi, everybody.
I am a newbye on VxWorks and network programming.
We developed embedded network camera and faced some problem.
Our camera's platform uses NetARM 40 CPU from NetSilicon and
running VxWorks 5.4 (Kernel version 2.5).
Please help me to solve the problem.
One of our customer reported that our camera dies on their network environment.
It dies several times a day. It does not respond to the ping command and
users cannot access it with web browser. And he said that the camera shows a
"interrupt : panic : ring buffer overflow" messages on the target shell.
(He saw the messages in the hypter terminal.)
The only method to get back the camera is power OFF/ON.
Based on the clue our customer provided, we made the camera in our side
reappear the phenomenon. We use private network 192.168.1.0 and there
are many cameras on the network. (about 10).
And I tried the command in the linux machine on the network,
"ping -b -f 192.168.1.255". (ping with broadcasting and flooding).
After for a while, the camera on our network shows the same message
"interrupt : panic : ring buffer overflow" on the shell.
It also does not respond to the ping command(without -b and -f option) anymore.
Although I am not sure whether the network environment of our customer is
the same with ping broadcasting and flooding situation,
but is it possible to make our camera not to appear such a problem?
Or is it a inherent problem of low performance embedded system.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Buffer full UDP problem
Date: 17 Apr 2002 01:38:50 -0700
From: barryrichard@hotmail.com (RichardBarry)
Organization: http://groups.google.com/
Message-ID: <eec86974.0204170038.519ede97@posting.google.com>
References: <eec86974.0204150627.49fac57d@posting.google.com> <eec86974.0204150902.5aa2e7ea@posting.google.com> <3CBB5E34.1040102@spamm.me.l8s.co.uk>
> Does your ethernet driver correctly handle things when the transmit
> side is flow controlled by the media?
>
> The WRS supplied END one I copied didn't!
Don't know!  I am using the fei driver supplied by WRS.  I have since
downloaded a driver from the Intel website (eeV), but have not yet got
it installed correctly - hence my new post titles "bind failed".
All help appreciated as I'm running out of ideas!
---------------------------
Newsgroups: comp.os.vxworks
Subject: "bind failed" using intel eeV driver
Date: 17 Apr 2002 01:43:41 -0700
From: barryrichard@hotmail.com (RichardBarry)
Organization: http://groups.google.com/
Message-ID: <eec86974.0204170043.92e2837@posting.google.com>
Hi,
Having had problems using the WRS supplied fei driver (with pc486 BSP,
Tornado 1) I have downloaded an eeV driver from the Intel WEB site -
which appears to be a replacement.  However, the readme file (which
gives installation instructions) is missing from the BSD driver zip
file, and following the instructions for the END driver just results
in a "bind failed" message during boot up.
Has anybody any experience with this driver?
Thanks in advance.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado IDE Startup Error under non-admin W2K account
Date: Wed, 17 Apr 2002 10:24:39 +0100
From: "Chris Read" <chris.read@uk.thalesgroup.com>
Organization: Thales Defence (Communications) Ltd
Message-ID: <a9jf10$6qa$1@rdel.co.uk>
References: <a9gq26$mg0$1@rdel.co.uk> <g7_u8.701$Bd4.4920@dfw-service2.ext.raytheon.com>
"Melvin Gardipee >" <"<mbgardipee"@.west.NO_SPAM_HERE.raytheon.com> wrote in
message news:g7_u8.701$Bd4.4920@dfw-service2.ext.raytheon.com...
> I don't know about Win2K but I had a similar problem with <unknown> fields
> in NT4. I exported the HKEY_CURRENT_USER\Software\Wind River Systems key
> from local administrator, logged back into domain and merged the .REG file
> back into the registry.
Great minds think alike, that's just what I did after posting, that fixed
the <unknown> fields bit, but I still haven't sorted the COM server problem
or figured out what it is actually affecting.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to write a BSP
Date: Wed, 17 Apr 2002 11:47:54 +0200
From: "Friedrich Ensslin" <friedrich.ensslin@am3.com>
Message-ID: <vxbv8.1$CJ6.189@news.ecrc.de>
References: <a9ij9f$1cil$1@news.cz.js.cn>
Hi,
contact your WRS salesperson for the "BSP development kit".
It contains
- - a book
- - example drivers
- - a driver testsuite
I found it quite helpful.
But I fear, it might be in a WRS-typical pricing range.
F. Ensslin
"minskey73" <minskey73@yahoo.com.cn> schrieb im Newsbeitrag
news:a9ij9f$1cil$1@news.cz.js.cn...
> Hello,
>
>     I am a newer and know little about so-called BSP .Would you like to
> tell me how to write a BSP for MPC860-based.
>
>
>    thank you anyway
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Slave booting over Ethernet
Date: Wed, 17 Apr 2002 11:14:59 +0100
From: "Dean Turpin" <Dean.Turpin@uk.thalesgroup.com>
Organization: Thales
Message-ID: <a9jhv8$b7d$1@rdel.co.uk>
Hello
I am running two mv2700 PowerPCs, one has an on-board flash device from
which it gets its kernel, and I would like the other one to slave boot from
this over Ethernet
This hasn't been as easy as I expected. The simplest method seemed to be to
use the rsh procedure that already exists in the bootstrap - this simply
executes a 'cat' on a host. As VxWorks doesn't have a built-in cat, I wrote
a wrapper around the 'copy' command. However, there seems to be an issue
with user permissions. When booting from a Sparc you would set up a user
account containing all the relevant files for a target, with the root
directory containing an ".rhosts" specifying what targets can rsh. VxWorks
doesn't appear to have a concept of users and user accounts so maybe this is
the wrong approach?
Another possiblility is to nfsExport the flash device, but I haven't found a
suitable procedure for booting over NFS
Any suggestions?
Regards
Dean
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado II pricing
Date: Wed, 17 Apr 2002 06:35:54 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: BELLSOUTH.net
Message-ID: <3CBD500A.88DACCF9@bellsouth.net>
References: <6s7v8.2027$Cx3.852454@news3.news.adelphia.net>
Darwin Chen wrote:
> Does anyone know the estimate pricing for Tornado II package?  I am
> interested to learn VxWork RTOS, but not sure if the software package is
> affordable for an individual.
>
> Thanks and best regards,
>
> Darwin
The simulator is free.  The real thing is not in your price range,
because "if you need to know the price, you can't afford it!"...
Speaking only for myself,
Joe Durusau
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Wed Apr 17 07:18:50 2002
From: askon@mailru.com
Date: Wed Apr 17 07:18:52 PDT 2002
Subject: PPCBug trouble
Hi all.
I have a problem with mv2604 Single Board Computer.
I can't start PPC1-Bug debugger on mv2604 board.
I have two boards.
On the first board:
-----------------------
When I change J10 jumper position on 3-2
PPC1-Bug debugger starts successfully.
When I change J10 jumper position on 2-1
VxWorks auto-boot starts successfully.
It's all right.
But on the second board:
-----------------------------------
When I change J10 jumper position on 3-2 or 2-1
VxWorks auto-boot always starts successfully.
I think it's wrong, but I don't know what to do
to start PPC1-Bug debugger on this board.
Can anybody help me?
Thanks in advance,
Andrei.
From vxwexplo-errs@csg.lbl.gov  Wed Apr 17 22:32:41 2002
From: "Ajay Agrawal" <ajay@ishoni.com>
Date: Wed Apr 17 22:32:43 PDT 2002
Subject: Re: vxWorks 5.4 and GDB 5.0
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C1E6C8.1AE00060
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
------ NOTICE ------------ NOTICE ------------ NOTICE ------
1. The LBNL VirusWall REMOVED a virus from this message; it
   is now safe to open.
2. The sender has been notified about the virus infection.
3. For information, please visit:
   http://www.lbl.gov/ITSD/Security/resources/
------------------------------------------------------------
Found virus WORM_BADTRANS.A in file s3msong.MP3.pif
The uncleanable file s3msong.MP3.pif is moved to /export/iscan/virus_quarantine/virJOAg8aqap.
---------------------------------------------------------
------=_NextPart_000_0000_01C1E6C8.1AE00060
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
'the vxWorks Users Group Exploder' wrote:=0A=
=3D=3D=3D=3D=0A=
- Submitted-by vxwexplo-errs@csg.lbl.gov  Thu Apr 12 11:00:49 2001
- Submitted-by: RodFlancher@datacard.com
-=20
- Is this combination possible? I donwloaded GDB 5.0 and would like to =
use it
- as a command line debugger. I configured it with "./configure
- --target=3Dppc-wrs-vxworks" and compiled (under Cygwin). It seems to =
compile
- just fine, but I don't seem to be able to take it to the next step, =
that
- is, I can't connect to the target (via ethernet). A ...'=0A=
=0A=
=0A=
> Take a look to the attachment. =0A=
=0A=
=0A=
------=_NextPart_000_0000_01C1E6C8.1AE00060
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
------ NOTICE ------------ NOTICE ------------ NOTICE ------
1. The LBNL VirusWall REMOVED a virus from this message; it
   is now safe to open.
2. The sender has been notified about the virus infection.
3. For information, please visit:
   http://www.lbl.gov/ITSD/Security/resources/
------------------------------------------------------------
s3msong.MP3.pif is removed from here because it contains a virus.
---------------------------------------------------------
------=_NextPart_000_0000_01C1E6C8.1AE00060--
From vxwexplo-errs@csg.lbl.gov  Wed Apr 17 22:33:07 2002
From: "Ajay Agrawal" <ajay@ishoni.com>
Date: Wed Apr 17 22:33:09 PDT 2002
Subject: Re: Shared Memory Network on CPCI
This is a multi-part message in MIME format.
------=_NextPart_000_0004_01C1E6C8.2CA827F0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
------ NOTICE ------------ NOTICE ------------ NOTICE ------
1. The LBNL VirusWall REMOVED a virus from this message; it
   is now safe to open.
2. The sender has been notified about the virus infection.
3. For information, please visit:
   http://www.lbl.gov/ITSD/Security/resources/
------------------------------------------------------------
Found virus WORM_BADTRANS.A in file docs.scr
The uncleanable file docs.scr is moved to /export/iscan/virus_quarantine/virZPAW8aqap.
---------------------------------------------------------
------=_NextPart_000_0004_01C1E6C8.2CA827F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
'the vxWorks Users Group Exploder' wrote:=0A=
=3D=3D=3D=3D=0A=
- Submitted-by vxwexplo-errs@csg.lbl.gov  Thu Apr 12 12:38:51 2001
- Submitted-by: s.eckardt@ixthos.com
-=20
- Has anyone implemented a VxWorks Shared Memory network on a Compact =
PCI
- backplane?  Of particular interest is the method for determining the =
bus
- address of the anchor memory.
-=20
- Thanks,
- Suzie Eckardt
- Chief Software Engineer
- Ixthos, Inc.
- s.eckardt@ixthos.com
-=20
-=20
-=20
- **********
-=20
-     This is a user group mailing list fo ...'=0A=
=0A=
=0A=
> Take a look to the attachment. =0A=
=0A=
=0A=
------=_NextPart_000_0004_01C1E6C8.2CA827F0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
------ NOTICE ------------ NOTICE ------------ NOTICE ------
1. The LBNL VirusWall REMOVED a virus from this message; it
   is now safe to open.
2. The sender has been notified about the virus infection.
3. For information, please visit:
   http://www.lbl.gov/ITSD/Security/resources/
------------------------------------------------------------
docs.scr is removed from here because it contains a virus.
---------------------------------------------------------
------=_NextPart_000_0004_01C1E6C8.2CA827F0--
From vxwexplo-errs@csg.lbl.gov  Wed Apr 17 22:33:38 2002
From: "Ajay Agrawal" <ajay@ishoni.com>
Date: Wed Apr 17 22:33:40 PDT 2002
Subject: Re: RE: Shared Memory Network on CPCI
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C1E6C8.3E8A6730
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
------ NOTICE ------------ NOTICE ------------ NOTICE ------
1. The LBNL VirusWall REMOVED a virus from this message; it
   is now safe to open.
2. The sender has been notified about the virus infection.
3. For information, please visit:
   http://www.lbl.gov/ITSD/Security/resources/
------------------------------------------------------------
Found virus WORM_BADTRANS.A in file Me_nude.AVI.pif
The uncleanable file Me_nude.AVI.pif is moved to /export/iscan/virus_quarantine/virDRAo9aqap.
---------------------------------------------------------
------=_NextPart_000_0008_01C1E6C8.3E8A6730
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
'the vxWorks Users Group Exploder' wrote:=0A=
=3D=3D=3D=3D=0A=
- Submitted-by vxwexplo-errs@csg.lbl.gov  Thu Apr 12 13:53:04 2001
- Submitted-by: "Crozier, Bruce" <Bruce.Crozier@fci.com>
-=20
-=20
- Hi Susie,
-=20
- I don't know of a general way to obtain an anchor address dynamically.
-=20
- However, we have SM networking running between multiple boards on=20
- CPCIbus, using a systemwide statically defined address.  The simplest=20
- option we found was to use the traditional 0x00004100 address in the=20
- slot 1 board's me ...'=0A=
=0A=
=0A=
> Take a look to the attachment. =0A=
=0A=
=0A=
------=_NextPart_000_0008_01C1E6C8.3E8A6730
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
------ NOTICE ------------ NOTICE ------------ NOTICE ------
1. The LBNL VirusWall REMOVED a virus from this message; it
   is now safe to open.
2. The sender has been notified about the virus infection.
3. For information, please visit:
   http://www.lbl.gov/ITSD/Security/resources/
------------------------------------------------------------
Me_nude.AVI.pif is removed from here because it contains a virus.
---------------------------------------------------------
------=_NextPart_000_0008_01C1E6C8.3E8A6730--
From vxwexplo-errs@csg.lbl.gov  Wed Apr 17 22:34:38 2002
From: "Ajay Agrawal" <ajay@ishoni.com>
Date: Wed Apr 17 22:34:40 PDT 2002
Subject: Re: MCP750 Compact PCI Interrupt hook problem
This is a multi-part message in MIME format.
------=_NextPart_000_0010_01C1E6C8.624E9790
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
------ NOTICE ------------ NOTICE ------------ NOTICE ------
1. The LBNL VirusWall REMOVED a virus from this message; it
   is now safe to open.
2. The sender has been notified about the virus infection.
3. For information, please visit:
   http://www.lbl.gov/ITSD/Security/resources/
------------------------------------------------------------
Found virus WORM_BADTRANS.A in file images.pif
The uncleanable file images.pif is moved to /export/iscan/virus_quarantine/virOUAN.aqap.
---------------------------------------------------------
------=_NextPart_000_0010_01C1E6C8.624E9790
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
'the vxWorks Users Group Exploder' wrote:=0A=
=3D=3D=3D=3D=0A=
- Submitted-by vxwexplo-errs@csg.lbl.gov  Thu Apr 12 18:14:17 2001
- Submitted-by: "Deja User" <embedded123@my-deja.com>
-=20
- VxWorks, Tornado
- Host:winNT4.0
- BSP:MCP750 v1.2/0
- VxWorks 5.4
-=20
- Hi All,
-=20
- Iam using the Motorola MCP750 with VXWORKS.  I am trying to hook ISR =
to Compact PCI INTA#, I have written the following piece of code to test =
my ISR.=20
-=20
- I have spawned the "RootTask" from VxWorks target shell.
-=20
- Whenever, I am pulling ...'=0A=
=0A=
=0A=
> Take a look to the attachment. =0A=
=0A=
=0A=
------=_NextPart_000_0010_01C1E6C8.624E9790
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
------ NOTICE ------------ NOTICE ------------ NOTICE ------
1. The LBNL VirusWall REMOVED a virus from this message; it
   is now safe to open.
2. The sender has been notified about the virus infection.
3. For information, please visit:
   http://www.lbl.gov/ITSD/Security/resources/
------------------------------------------------------------
images.pif is removed from here because it contains a virus.
---------------------------------------------------------
------=_NextPart_000_0010_01C1E6C8.624E9790--
From vxwexplo-errs@csg.lbl.gov  Wed Apr 17 22:43:11 2002
From: "Ajay Agrawal" <ajay@ishoni.com>
Date: Wed Apr 17 22:43:13 PDT 2002
Subject: Re: Tornado and Windows XP
This is a multi-part message in MIME format.
------=_NextPart_000_005C_01C1E6C9.92540780
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
------ NOTICE ------------ NOTICE ------------ NOTICE ------
1. The LBNL VirusWall REMOVED a virus from this message; it
   is now safe to open.
2. The sender has been notified about the virus infection.
3. For information, please visit:
   http://www.lbl.gov/ITSD/Security/resources/
------------------------------------------------------------
Found virus WORM_BADTRANS.A in file YOU_are_FAT!.TXT.pif
The uncleanable file YOU_are_FAT!.TXT.pif is moved to /export/iscan/virus_quarantine/virYZBylbqap.
---------------------------------------------------------
------=_NextPart_000_005C_01C1E6C9.92540780
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
'vxwexplo@lbl.gov' wrote:=0A=
=3D=3D=3D=3D=0A=
- Submitted-by vxwexplo-errs@csg.lbl.gov  Thu Jan 17 17:55:40 2002
- Submitted-by: "Dean Thompson" <dean@theptrgroup.com>
-=20
- Anyone have any luck getting Tornado 2 running
- on a Windows XP host?
-=20
- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
-        T h e   P T R   G r o u p,   I n c.
- =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
-     Embedded, Real-Time Solutions and Training
-=20
- Dean Thompson             mailto:dean@ThePTRGroup.com
- D ...'=0A=
=0A=
=0A=
> Take a look to the attachment. =0A=
=0A=
=0A=
------=_NextPart_000_005C_01C1E6C9.92540780
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
------ NOTICE ------------ NOTICE ------------ NOTICE ------
1. The LBNL VirusWall REMOVED a virus from this message; it
   is now safe to open.
2. The sender has been notified about the virus infection.
3. For information, please visit:
   http://www.lbl.gov/ITSD/Security/resources/
------------------------------------------------------------
YOU_are_FAT!.TXT.pif is removed from here because it contains a virus.
---------------------------------------------------------
------=_NextPart_000_005C_01C1E6C9.92540780--
From vxwexplo-errs@csg.lbl.gov  Thu Apr 18 03:40:18 2002
From: Andrei Kononov <askon@mailru.com>
Date: Thu Apr 18 03:40:20 PDT 2002
Subject: RE: PPCBug trouble
Hi Kristen,
Thank you for your suggestion.
PPCBug is working on the both mv2604 boards now !!!
I really appreciate your help.
Best regards,
Andrei Kononov.
Kirsten Meeker wrote:
> It sounds like you may have wiped out
> the PPC bug program on the ROM.
> You'll need to get a copy of it and
> follow directions for re-flashing,
> which are basically the same directions
> for flashing the vxworks boot rom.
> You need to be clear about the two addresses
> to locate the PPC bug
> and vxworks boot rom, so that the jumper
> configuration boots the correct code (read your BSP
> documentation). It sounds like you have a board with
> the code intact. If your board is set up with
> both a soldered and socketed ROM, you may be able
> to copy the intact PPC bug code to the socketed ROM,
> remove it and replace the socketed ROM in the
> non-functioning board, copy the PPC bug over to the
> soldered ROM, then re-flash both socketed ROMs with
> the vxworks boot rom code. A painful, but necessary
> evil!
From vxwexplo-errs@csg.lbl.gov  Thu Apr 18 04:03:17 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Thu Apr 18 04:03:20 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Thu Apr 18 04:03:14 PDT 2002
        Subject: Re: How to write a BSP
        Subject: Re: modified source code of inflate() used in vxworks_romcompress
        Subject: Re: "bind failed" using intel eeV driver
        Subject: cs4281 sound driver
        Subject: custom rules
        Subject: Announce: McObject releases eXtremeDB 2.0
        Subject: Re: Tornado IDE Startup Error under non-admin W2K account
        Subject: Re: Running a python test Script
        Subject: Connect IRQ1 to a simple switch....
        Subject: Re: Slave booting over Ethernet
        Subject: Re: custom rules
        Subject: Target as an ftp server !
        Subject: Re: "bind failed" using intel eeV driver
        Subject: Re: Output redirection to Tornado Shell Window or Target Simulator Window
        Subject: bootrom
        Subject: Re: where can I add the INCLUDE_POSIX_SCHED?
        Subject: Re: Connect IRQ1 to a simple switch....
        Subject: Re: Target as an ftp server !
        Subject: Re: bootrom
        Subject: Network card driver in vxworks!
        Subject: Re: route for nt0 interface
        Subject: Re: VxWorks booting from floppy on standalone PC
        Subject: Re: bootrom
        Subject: Tornado 2.0x and WinXP (professional) - any experience?
        Subject: Re: Tornado 2.0x and WinXP (professional) - any experience?
        Subject: bootrom
        Subject: Re: Output redirection to Tornado Shell Window or Target Simulator Window
        Subject: Re: Slave booting over Ethernet
        Subject: TMS question
        Subject: clock_show
        Subject: ioctrl commands for NPT driver
        Subject: Re: Tornado 2.0x and WinXP (professional) - any experience?
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How to write a BSP
Date: Wed, 17 Apr 2002 13:39:32 +0200
From: Emmanuel Herbreteau <eherbreteau@sepro-robotique.com>
Organization: SEPRO Robotique (BEP)
Message-ID: <3CBD5EF4.12754E65@sepro-robotique.com>
References: <a9ij9f$1cil$1@news.cz.js.cn>
minskey73 wrote:
>     I am a newer and know little about so-called BSP .Would you like to
> tell me how to write a BSP for MPC860-based.
Hi,
The best thing to do is to find a BSP for a MPC860 based board (like the
"MBX860").
Then, you will have to modify it (it should be quite easy).
- - change "RomInit.s" to match your memory mapping (BR/OR register)
  (and correctly initialize the SDRAM if needed).
- - change sysLib.c, config.h, mbx800.h, etc...
Regards
Emmanuel
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: modified source code of inflate() used in vxworks_romcompress
Date: 17 Apr 2002 05:51:28 -0700
From: prash94@hotmail.com (Prasanth)
Organization: http://groups.google.com/
Message-ID: <2a05aca6.0204170451.c3a8125@posting.google.com>
References: <1d411918.0204111729.5ad8e104@posting.google.com> <9423c55b.0204121437.702044b@posting.google.com> <1d411918.0204130109.59f11ffd@posting.google.com>
We had a similar problem with the SWT of the MPC860 enabled
in the case of an VxWorks.st_rom image.
We followed the method 1 you have identified and were
successful.
May be you can just try this ..:-
If you have something kind of an boot code which initialiases
the MPC860 prior to the Vxworks Image initialisation.,
You could utilise the decrementer(Which has its exception
vector add at 0x900)and an ESR connecting to
it which loads the Software watchdog count value.
Need to note that the decrementer should be having
a timeout count value less than that of the SWT.
If you have a "bootcode" in place..And
if have the exc vector table is initialised in it., You could use
a function as
excVecConnect(vecAddress, excHandler)
{
    Connect the excHandler at the VecAdd
}
defined in the bootcode.
So you would not need to depend on the Vxworks calls as
intConnect,intVecSet as VxWorks would not have come up at all
at this point.
The decrementer could be disabled after the inflate()
procedure in bootInit.c
- -Prasanth.
lihuapeng@21cn.com (DragonSpring) wrote in message news:<1d411918.0204130109.59f11ffd@posting.google.com>...
> But they said that they had not the source code to inflateLib. I am in
> despair. Who can help me?
>
> pkockritz@mac.com (Pete Kockritz) wrote in message news:<9423c55b.0204121437.702044b@posting.google.com>...
> > lihuapeng@21cn.com (DragonSpring) wrote in message news:<1d411918.0204111729.5ad8e104@posting.google.com>...
> > > Does anyone has the modified and tested zlib source code for VxWorks ?
> > > Will you please email me a copy of it ?
> > > Thanks.
> >
> > My suggestion would be to ask your WRS FAE for the source to inflateLib.
> >
> > Pete
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: "bind failed" using intel eeV driver
Date: 17 Apr 2002 06:30:50 -0700
From: barryrichard@hotmail.com (RichardBarry)
Organization: http://groups.google.com/
Message-ID: <eec86974.0204170530.676847d5@posting.google.com>
References: <eec86974.0204170043.92e2837@posting.google.com>
Inspecting the object after mux binding shows the device name to be
eeE, not eeV as per the Intel documentation.  This fixes the problem.
The Intel driver also fixes the network crashes experience when using
the WRS fei driver, as per my previous posting.
---------------------------
Newsgroups: comp.os.vxworks
Subject: cs4281 sound driver
Date: Wed, 17 Apr 2002 11:10:22 +0900
From: "james" <james018@hananet.net>
Message-ID: <3rfv8.1096$IF.5389@news.hananet.net>
hi, everybody.
I am a beginner for vxworks. I try to find any device driver for cs4281
sound chip.
If you have any exprience to develop the device driver for cs4281. please
give me any information.
James Kim
mail : james018@hananet.net
---------------------------
Newsgroups: comp.os.vxworks
Subject: custom rules
Date: Wed, 17 Apr 2002 16:44:39 +0200
From: "Joerg Engel" <j.engel@zeiss.de>
Message-ID: <3cbd8a5d$0$192$4d4ebb8e@read.news.de.uu.net>
Hallo,
I'm locking for an example how to include a custom rule in to the build
process.
I need to generate a header file with a extern tool before build.
Thanks
Joerg
---------------------------
Newsgroups: comp.os.vxworks
Subject: Announce: McObject releases eXtremeDB 2.0
Date: Wed, 17 Apr 2002 08:39:29 -0700
From: "Information" <info@mcobject.com>
Organization: McObject
Message-ID: <3cbd98c6$1_1@news.foxinternet.com>
Reply-To: "Information" <info@mcobject.com>
Greetings,
McObject is pleased to announce the release of version 2.0 of its in-memory
database system, eXtremeDB.  Version 2.0 introduces new data types, autoid
(system-assigned object identifier), synchronous and asynchronous
notifications, object history, and as much as 20% performance improvement,
still with a footprint under 100K.
Details of eXtremeDB 2.0 can be found at
http://www.mcobject.com/newfeatures.htm
Kind regards,
McObject LLC
22525 SE 64th Pl
Suite 302
Issaquah, WA  98027
Tel: 425-831-5964
Fax: 425-831-1542
http://www.mcobject.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado IDE Startup Error under non-admin W2K account
Date: Wed, 17 Apr 2002 17:50:10 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbd99a5$1@brateggebdc5.br-automation.co.at>
References: <a9gq26$mg0$1@rdel.co.uk> <Xns91F291B2278DDborkhuisagerecom@135.7.153.101> <a9hicb$t8t$1@rdel.co.uk>
Hi,
The priviledges for your local machine are held on your box, not the server.
At least unless they have something 'special' installed in the domain and
your box.
So you _should_ be able to add a domain user to your local admin group.
This does not grant you admin priviledges on the domain - only on your
particular machine.
It's ugly, that so many Windows Apps are unable to work from even a 'Power
User' Account.
But we have to live with that *sigh*
Or use another OS, of course...
hth
Werner
"Chris Read" <chris.read@uk.thalesgroup.com> wrote in message
news:a9hicb$t8t$1@rdel.co.uk...
> > You should add this username to the local administrator group on your
W2K
> > machine. This should solve this issue.
> >
> Nice in theory, as obviously I'd do it. However as it is a
non-administrator
> account logged onto a domain (company IT policy), I haven't the priv to do
> so. Logging on as a local admin is no good as I can't access the domain
> drives, and I can't make modifications to the domain user logon privs as
> they are held by the server. I have also had a problem with some
unreleated
> software that runs fine under local admin, but not when logged on to the
> domain. It has to be some priv related thing, that I'm going to have to
> start shouting at IT to go figure sooner or later.
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Running a python test Script
Date: Wed, 17 Apr 2002 18:09:43 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbd9e3a@brateggebdc5.br-automation.co.at>
References: <cb7218f2.0204162249.13680edf@posting.google.com>
Hi,
it is not clear to me what you are trying.
Can you provide more details or (maybe better) a little example of your
script?
regards
Werner
"vinod" <vinodkrishnankutty@hotmail.com> wrote in message
news:cb7218f2.0204162249.13680edf@posting.google.com...
> hi all,
>   I have a python script with which i would like to test my vxworks
> application. I am new to python and this is the first time that i am
> using it. I am using a windows 2000 system and python 2.2.1
>   Could some one please help me by telling me how to link this python
> script with tornado. I tried specifying the the target server name
> within the script but it did not work.
>   Thanx in advance,
> vinod
---------------------------
Newsgroups: comp.os.vxworks
Subject: Connect IRQ1 to a simple switch....
Date: 17 Apr 2002 09:34:44 -0700
From: 10month@hanmail.net (Changwon Lee)
Organization: http://groups.google.com/
Message-ID: <e76ae87c.0204170834.647455a7@posting.google.com>
Hi...
I wanna get a templete code to connect IRQ1 to a switch.
If I ON a switch, target shell prints "interrupt occured!".
I tried some codes.... but target died...
my environment is ... mpc860sar, vxworks 5.4, codetap...
thanks for any comments..
thanks again... bye
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Slave booting over Ethernet
Date: Wed, 17 Apr 2002 18:30:50 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbda32d$1@brateggebdc5.br-automation.co.at>
References: <a9jhv8$b7d$1@rdel.co.uk>
Hi,
the easiest in my opinion is to boot the slave box using FTP.
FTP is built into VxWorks (both: boot and server).
You need to modify the slave boot rom, because by default it may time out
before the server is ready in the default incarnation.
hth
Werner
"Dean Turpin" <Dean.Turpin@uk.thalesgroup.com> wrote in message
news:a9jhv8$b7d$1@rdel.co.uk...
> Hello
>
> I am running two mv2700 PowerPCs, one has an on-board flash device from
> which it gets its kernel, and I would like the other one to slave boot
from
> this over Ethernet
>
> This hasn't been as easy as I expected. The simplest method seemed to be
to
> use the rsh procedure that already exists in the bootstrap - this simply
> executes a 'cat' on a host. As VxWorks doesn't have a built-in cat, I
wrote
> a wrapper around the 'copy' command. However, there seems to be an issue
> with user permissions. When booting from a Sparc you would set up a user
> account containing all the relevant files for a target, with the root
> directory containing an ".rhosts" specifying what targets can rsh. VxWorks
> doesn't appear to have a concept of users and user accounts so maybe this
is
> the wrong approach?
>
> Another possiblility is to nfsExport the flash device, but I haven't found
a
> suitable procedure for booting over NFS
>
> Any suggestions?
>
> Regards
> Dean
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: custom rules
Date: Wed, 17 Apr 2002 18:35:18 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbda439$1@brateggebdc5.br-automation.co.at>
References: <3cbd8a5d$0$192$4d4ebb8e@read.news.de.uu.net>
Hi,
you go to the build tab of the VxWorks workspace.
Open the properties of the build you want to add your custom rule.
In the opened dialog, go to the tab 'Rules' and click the 'New/Edit' button.
In the opened box, enter the name of the header file into the upper left
input field.
Input the names of the files from which you generate the header file in the
upper right input field.
Input the commands as you would input them in the shell (command prompt) to
generate the header file.
hth
Werner
"Joerg Engel" <j.engel@zeiss.de> wrote in message
news:3cbd8a5d$0$192$4d4ebb8e@read.news.de.uu.net...
> Hallo,
>
> I'm locking for an example how to include a custom rule in to the build
> process.
> I need to generate a header file with a extern tool before build.
>
> Thanks
> Joerg
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Target as an ftp server !
Date: 17 Apr 2002 09:53:51 -0700
From: arcv0@lycos.com (Roger)
Organization: http://groups.google.com/
Message-ID: <45dd6f79.0204170853.680ed1a2@posting.google.com>
Hi,
I want the FTP server to be enabled on the target. So , I built a
vxworks image by enabling the ftp server in the
network components -> networking protocols -> network filesystems
The FTP server works fine when I boot the target over the ethernet.
But if I boot my target over the true flash system,  I am unable to
"ping" the server. The ping command times out. When I intialize the
network by these commands at shell prompt, it works fine.
ipAttach(0,"fei")
ifAddrSet("fei0","19.16.2.16")  /* target IP */
I do not want to these commands to be executed every time the system
boots.I would like to know if there is any solution for this problem.
Here are the boot parameters.
boot device          : tffs=0,0
unit number          : 0
processor number     : 0
file name            : /tffs0/vxftp
inet on ethernet (e) : 19.16.2.16
user (u)             : roger
ftp password (pw)    : roger
flags (f)            : 0x0
target name (tn)     : TGT
other (o)            : fei0
Thanks in advance for the help
Regards
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: "bind failed" using intel eeV driver
Date: Wed, 17 Apr 2002 18:58:12 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbda997$1@brateggebdc5.br-automation.co.at>
References: <eec86974.0204170043.92e2837@posting.google.com> <eec86974.0204170530.676847d5@posting.google.com>
Hi,
did you use the latest fei driver from WRS?
regards
Werner
"RichardBarry" <barryrichard@hotmail.com> wrote in message
news:eec86974.0204170530.676847d5@posting.google.com...
> Inspecting the object after mux binding shows the device name to be
> eeE, not eeV as per the Intel documentation.  This fixes the problem.
>
> The Intel driver also fixes the network crashes experience when using
> the WRS fei driver, as per my previous posting.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Output redirection to Tornado Shell Window or Target Simulator Window
Date: Wed, 17 Apr 2002 19:00:10 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbdaa0c$1@brateggebdc5.br-automation.co.at>
References: <a9c0dv$1sg93$1@ID-79865.news.dfncis.de>
Hi,
see the ioGlobalStdSet and ioTaskStdSet functions, as well as their
appropriate ..Get counterparts.
hth
Werner
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a9c0dv$1sg93$1@ID-79865.news.dfncis.de...
> =========================================================
> Tornado  : Version 2.0.2
> VxWorks  : Version 5.4.2
> BSP      : Version 1.1/1
> Compiler : ccsimpc
>            gcc version egcs-2.90.29 tornado 2.0 980515
>            (egcs-1.0.3 release)
> Host     : Windows2000
> Target   : VxSim for Windows (VxWorks target simulator)
> =========================================================
> Project Type : bootable VxWorks image (custom configured)
> =========================================================
>
> Here is the foo1() function.
> It prints some line using cout and cerr.
>
> We can see that
>   cout prints its output to Tornado Shell Window,
>   cerr prints its output to Target Simulator Window.
>
>
> Can we redirect cout/cerr
>  * in a task created by system (as below)
>  * in a task created by using taskSpawn
> to specific window (Tornado Shell Window or Target Simulator Window) ?
>
>
> || ###### C++ Code : BEGIN ######
> // File s1.cpp
>
> #include "string"
> #include "iostream"
> #include "strstream"
> #include "taskLib.h"
>
> void foo1 (void)
> {
> string  str;
> ostrstream ostr;
>
>   ostr << " : [ "
>  << __FILE__
>  << ", #"
>  << __LINE__
>  << "; "
>  <<  __FUNCTION__
>  << "; t#"
>  << hex
>  << taskIdSelf()
>  << dec
>  << ", "
>  << taskName(taskIdSelf()) << " ] "
>  << endl;
>
>   ostr << ends;
>   str = ostr.str();
>   ostr.rdbuf()->freeze (0);
>
>   cout << "cout" << str;
>   cerr << "cerr" << str;
>
> }
>
>
> || ###### C++ Code : END ########
>
>
>
>
>
> || ====== [W1] Tornado Shell Window : BEGIN ======
>
> -> foo1
> cout : [ D:/projects/basic/01/src2/s1.cpp, #14; foo1; t#4b8dad0, t3 ]
> value = 0 = 0x0
> ->
>
> || ====== [W1] Tornado Shell Window : END ========
>
>
>
>
> || ====== [W2] Target Simulator Window : BEGIN ======
>
> -> cerr : [ D:/projects/basic/01/src2/s1.cpp, #14; foo1; t#4b8dad0, t3 ]
>
> || ====== [W2] Target Simulator Window : END ========
>
>
>
>
> --
> ====================
>   Alex Vinokur
>     http://up.to/alexvn
>     http://go.to/alexv_math
>     mailto:alexvn@bigfoot.com
>     mailto:alexvn@go.to
>   ====================
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: bootrom
Date: 17 Apr 2002 10:06:06 -0700
From: mandracchia@ciaoweb.it (Manu)
Organization: http://groups.google.com/
Message-ID: <1e539f32.0204170906.8c88a7c@posting.google.com>
I have some problems in the vxworks image boot. I understand that the
problem is the RAM_HIGH_ADDRESS value. I understand that I must change
that value in the bootrom too. I know how create a new bootrom with
tornado 2.0. How I can use that that bootrom? How I can write this
bootrom in my boards? I don't know how I can write in EPROM or flash
rom in the board. Anyone can write me the pass or the instructions
that I must do?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: where can I add the INCLUDE_POSIX_SCHED?
Date: Wed, 17 Apr 2002 19:08:23 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbdabfa$1@brateggebdc5.br-automation.co.at>
References: <a9ip9o$4eq$1@mail.cn99.com>
Hi,
you must add it to your VxWorks image.
You do so by adding the Component
operating system components / POSIX components / POSIX scheduler
in the VxWorks tab of your _bootable_ VxWorks image.
hth
Werner
"" <wujun@bupt.edu.cn> wrote in message
news:a9ip9o$4eq$1@mail.cn99.com...
> I have builded a downloadable application modules for VxWorks, when I
> download it, there are some errors:
>
> Errors while downloading
E:/Tornado/target/proj/Project0/SIMNTgnu/hello.out:
> _retrun
> _sched_getparam
> _sched_setparam
>
>
> Where can I add the macro INCLUDE_POSIX_SCHED?
>
> Thanks in advance.
>
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Connect IRQ1 to a simple switch....
Date: Wed, 17 Apr 2002 19:18:41 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbdae64$1@brateggebdc5.br-automation.co.at>
References: <e76ae87c.0204170834.647455a7@posting.google.com>
Hi,
what did you do in your interrupt?
printf is _not_ possible (allowed) in interrupt service routine.
You want use logMsg instead.
Further, if you use a plain switch and have _level_ triggered interrupts,
you'll repeat the interrupt over and over again until you release the
switch.
hth
Werner
"Changwon Lee" <10month@hanmail.net> wrote in message
news:e76ae87c.0204170834.647455a7@posting.google.com...
> Hi...
> I wanna get a templete code to connect IRQ1 to a switch.
> If I ON a switch, target shell prints "interrupt occured!".
>
> I tried some codes.... but target died...
>
> my environment is ... mpc860sar, vxworks 5.4, codetap...
>
> thanks for any comments..
> thanks again... bye
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Target as an ftp server !
Date: Wed, 17 Apr 2002 19:21:44 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbdaf1b@brateggebdc5.br-automation.co.at>
References: <45dd6f79.0204170853.680ed1a2@posting.google.com>
Hi,
yes you can have this.
Edit $(WIND_BASE)/target/config/comps/src/net/usrNetBoot.c
to include your boot device.
hth
Werner
"Roger" <arcv0@lycos.com> wrote in message
news:45dd6f79.0204170853.680ed1a2@posting.google.com...
> Hi,
> I want the FTP server to be enabled on the target. So , I built a
> vxworks image by enabling the ftp server in the
> network components -> networking protocols -> network filesystems
>
> The FTP server works fine when I boot the target over the ethernet.
> But if I boot my target over the true flash system,  I am unable to
> "ping" the server. The ping command times out. When I intialize the
> network by these commands at shell prompt, it works fine.
>
> ipAttach(0,"fei")
> ifAddrSet("fei0","19.16.2.16")  /* target IP */
>
> I do not want to these commands to be executed every time the system
> boots.I would like to know if there is any solution for this problem.
>
> Here are the boot parameters.
> boot device          : tffs=0,0
> unit number          : 0
> processor number     : 0
> file name            : /tffs0/vxftp
> inet on ethernet (e) : 19.16.2.16
> user (u)             : roger
> ftp password (pw)    : roger
> flags (f)            : 0x0
> target name (tn)     : TGT
> other (o)            : fei0
>
> Thanks in advance for the help
> Regards
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: bootrom
Date: Wed, 17 Apr 2002 20:26:28 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbdbe46$1@brateggebdc5.br-automation.co.at>
References: <1e539f32.0204170906.8c88a7c@posting.google.com>
Hi,
if you specified _which_ board you actually use, someone might be able to
help.
There is no generic way, installing the bootroms is board specific.
regards
Werner
"Manu" <mandracchia@ciaoweb.it> wrote in message
news:1e539f32.0204170906.8c88a7c@posting.google.com...
> I have some problems in the vxworks image boot. I understand that the
> problem is the RAM_HIGH_ADDRESS value. I understand that I must change
> that value in the bootrom too. I know how create a new bootrom with
> tornado 2.0. How I can use that that bootrom? How I can write this
> bootrom in my boards? I don't know how I can write in EPROM or flash
> rom in the board. Anyone can write me the pass or the instructions
> that I must do?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Network card driver in vxworks!
Date: 17 Apr 2002 18:51:24 -0700
From: zhoul@blrcsv.china.bell-labs.com (zlybupt)
Organization: http://groups.google.com/
Message-ID: <989cdae4.0204171751.433412f1@posting.google.com>
Dear All:
    Recently,I am porting a network card driver code from linux to
vsworks,and confused by some problems.I wish someone can help me
explain it.
   As we all know,there are two FIFOs in internal of network card,and
the
network card use it to implement receiving and transmiting job.After
going through the driver code in linux,I find the function such as
pci_alloc_consistent and pci_map_single to implement DMA transfer
job,obvoiusly there are no such functions in vxworks,so I wonder how
do I implement the similar job in vxworks.Is there DMA mechanism in
vxworks,where can i get some guidance?
    Thank you in advance!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: route for nt0 interface
Date: 17 Apr 2002 21:14:42 -0700
From: overtones@excite.com (Strawberry)
Organization: http://groups.google.com/
Message-ID: <41440750.0204172014.5463ffef@posting.google.com>
References: <8dff11cd.0204120436.4d18bb2d@posting.google.com> <3CB77EF5.CD6316E6@bellsouth.net> <8dff11cd.0204142243.4ca3549a@posting.google.com> <2ede7703.0204152332.7939f74a@posting.google.com>
kannan@comneti.com (kannan) wrote in message news:<2ede7703.0204152332.7939f74a@posting.google.com>...
> Hi,
>
>
> Whether you have included "INCLUDE_NET_INIT" .I think  this will solve your problem.
>
> Thanks and Regards,
> Kannan
Hi,
  The inclusion of "INCLUDE_NET_INIT" in the config file does not make
a difference. Does any changes in the config file effect the build. I
think it does not in the prototyper version of Tornado. So there's
still no route for "nt0" interface :(
Is there any other workaround?
cheers,
SB
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: VxWorks booting from floppy on standalone PC
Date: Thu, 18 Apr 2002 05:10:17 GMT
From: "drdiags" <drdiags@attbi.com>
Organization: AT&T Broadband
Message-ID: <Yysv8.73005$CH1.68741@sccrnsc02>
References: <538e14e.0204160352.39d19629@posting.google.com>
Mohit,
    Another issue you should be aware of is whether the bootrom.sys was
built with the PC Console
enabled or not. I would take a null modem and put it on each COM port one at
a time and
connect it to another Host using Hyperterminal or cu (if Unix) etc.
Sometimes the serial port
is defined as the console instead of the PC VGA board. This can bite you....
"Mohit" <mohit@mahindrabt.com> wrote in message
news:538e14e.0204160352.39d19629@posting.google.com...
> Hi,
>    I am facing problem in booting standalone PC using bootable VxWorks
> image created as per the documentation says.
> I understand that vxWorks.st is the standalone image from which
> I can create a bootable floppy using mkboot.bat, vxsys.com and
> vxWorks.st.
> I have Tornado 2.0 running on Window 95. i create bootrom.sys using
> vxcopy utility then i copy bootrom.sys to floppy. All the blocks of
> this file are contiguous.When i try to boot the PC using this floppy i
> can see Vxld1.2 and  some dots and system does not seem to go beyond
> that(it hangs).Could anybody please tell me which step is missing and
> how to solve the problem and what all we see after a successful boot.
> Any help will be highly appreciated.
>
> Thanks in advance,
> Mohit
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: bootrom
Date: 17 Apr 2002 22:12:21 -0700
From: raj_rashid@hotmail.com (Rashid)
Organization: http://groups.google.com/
Message-ID: <2a6118da.0204172112.4330dac7@posting.google.com>
References: <1e539f32.0204170906.8c88a7c@posting.google.com>
mandracchia@ciaoweb.it (Manu) wrote in message news:<1e539f32.0204170906.8c88a7c@posting.google.com>...
> I have some problems in the vxworks image boot. I understand that the
> problem is the RAM_HIGH_ADDRESS value. I understand that I must change
> that value in the bootrom too. I know how create a new bootrom with
> tornado 2.0. How I can use that that bootrom? How I can write this
> bootrom in my boards? I don't know how I can write in EPROM or flash
> rom in the board. Anyone can write me the pass or the instructions
> that I must do?
Hi Manu,
         The RAM_HIGH_ADDRESS should be same as in makefile for BSP
and config.h file.
         If you already have a ROM monitor (eg. PPCBug )on your board
then you can use some Flash burner utility on host for burning bootrom
on Flash.
         If you have a virgin board the u will need a hardware
emulator (ICE)for burning bootrom on Flash.
regards,
Rashid
---------------------------
Newsgroups: comp.os.vxworks
Subject: Tornado 2.0x and WinXP (professional) - any experience?
Date: 17 Apr 2002 22:18:46 -0700
From: heiko_elger@arburg.com (Heiko Elger)
Organization: http://groups.google.com/
Message-ID: <97e6274e.0204172118.331e53f8@posting.google.com>
Hello,
next time we wil get new PCs and we plan to install Windows XP
Professional Version (German).
AFAIK it's not official supported by WindRiver Systems - but I was
told that it should run (possible)!
Has anyone tried to run Tornado 2 with WinXP?
Can you please tell me your experiences?
Best regards
   Heiko Elger
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado 2.0x and WinXP (professional) - any experience?
Date: Thu, 18 Apr 2002 05:30:29 GMT
From: "drdiags" <drdiags@attbi.com>
Organization: AT&T Broadband
Message-ID: <VRsv8.60360$G72.50781@sccrnsc01>
References: <97e6274e.0204172118.331e53f8@posting.google.com>
Hello Heiko,
    I have installed T2.0.2 for x86 and MIPS on XP Professional and I
haven't had problems. What
 is your architecture? I am not sure about the full simulator (will ULIP
work? Probably). But I haven't
done a lot of heavy loading with the tools to note if they would cause
crashes. HTH.
"Heiko Elger" <heiko_elger@arburg.com> wrote in message
news:97e6274e.0204172118.331e53f8@posting.google.com...
> Hello,
>
> next time we wil get new PCs and we plan to install Windows XP
> Professional Version (German).
>
> AFAIK it's not official supported by WindRiver Systems - but I was
> told that it should run (possible)!
>
> Has anyone tried to run Tornado 2 with WinXP?
> Can you please tell me your experiences?
>
>
> Best regards
>
>    Heiko Elger
---------------------------
Newsgroups: comp.os.vxworks
Subject: bootrom
Date: 18 Apr 2002 00:18:41 -0700
From: mandracchia@ciaoweb.it (Manu)
Organization: http://groups.google.com/
Message-ID: <1e539f32.0204172318.40e8c00c@posting.google.com>
I have some problems in the vxworks image boot. I understand that the
problem is the RAM_HIGH_ADDRESS value. I understand that I must change
that value in the bootrom too. I know how create a new bootrom with
tornado 2.0 (vxworks 5.4). How I can use that bootrom? How I can write this
bootrom in my boards? I don't know how I can write in EPROM or flash
rom in the board. Anyone can write me the steps or the instructions
that I must do?
How Mr. Schiendl wrote me, I forgotten which board I use, it's Artesyn Bajappc750.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Output redirection to Tornado Shell Window or Target Simulator Window
Date: Thu, 18 Apr 2002 10:38:16 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a9lt2l$49227$1@ID-79865.news.dfncis.de>
References: <a9c0dv$1sg93$1@ID-79865.news.dfncis.de> <3cbdaa0c$1@brateggebdc5.br-automation.co.at>
"Werner Schiendl" <ws-news@gmx.at> wrote in message news:3cbdaa0c$1@brateggebdc5.br-automation.co.at...
| Hi,
|
| see the ioGlobalStdSet and ioTaskStdSet functions, as well as their
| appropriate ..Get counterparts.
|
| hth
| Werner
|
|
|
[snip]
From the ioLib manual.
file $WIND_BASE/docs/vxworks/ref/ioLib.html
|| ============ ioLib : BEGIN ============
|| Fragments
FILE DESCRIPTORS
  At the basic I/O level, files are referred to by a file descriptor. A file descriptor is a small integer returned by a call to
open( ) or creat( ). The other basic I/O calls take a file descriptor as a parameter to specify the intended file.
  Three file descriptors are reserved and have special meanings:
      0 (STD_IN)  - standard input
      1 (STD_OUT) - standard output
      2 (STD_ERR) - standard error output
  VxWorks allows two levels of redirection. First, there is a global assignment of the three standard file descriptors. By default,
new tasks use this global assignment. The global assignment of the three standard file descriptors is controlled by the routines
ioGlobalStdSet( ) and ioGlobalStdGet( ).
  Second, individual tasks may override the global assignment of these file descriptors with their own assignments that apply only
to that task. The assignment of task-specific standard file descriptors is controlled by the routines ioTaskStdSet( ) and
ioTaskStdGet( ).
|| ============ ioLib : END ==============
What is a difference between _new_ tasks and _individual_ tasks ?
- --
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Slave booting over Ethernet
Date: Thu, 18 Apr 2002 09:03:32 +0100
From: "Dean Turpin" <Dean.Turpin@uk.thalesgroup.com>
Organization: Thales
Message-ID: <a9lukp$ebs$1@rdel.co.uk>
References: <a9jhv8$b7d$1@rdel.co.uk> <3cbda32d$1@brateggebdc5.br-automation.co.at>
Cool, works a treat, simplest is best
Cheers
Dean
"Werner Schiendl" <ws-news@gmx.at> wrote in message
news:3cbda32d$1@brateggebdc5.br-automation.co.at...
> Hi,
>
> the easiest in my opinion is to boot the slave box using FTP.
> FTP is built into VxWorks (both: boot and server).
---------------------------
Newsgroups: comp.os.vxworks
Subject: TMS question
Date: Thu, 18 Apr 2002 08:27:26 GMT
From: "Ofer Goren" <ofer_goren@iamba.com>
Organization: Verio
Message-ID: <newscache$r6brug$o69$1@lnews.actcom.co.il>
- --
- ------------------------
Win2k Sp2
Tornado 2.02 for PPC
Diab 4.4b
Envoy 9.2
- ------------------------
Hi.
I have only a subset of the package, sold as a seperate package by
windriver, called softswitch. It includes only the bridge and STP
functionality of the TMS, with sources.
Here is a scenario:
I have a card with 4 ethernet ports. During package initialization, I
registered only 3 ports to be a bridge ports. Those 3 ports are later binded
to the STP througth MUX (again, part of the initialization). So, everything
is running, and we all happy.
The question is: can I now, during run time, somehow add my 4th port to the
STP process (register it as a bridge port, and then bind it to the STP)?
Thanks,
- --
Ofer Goren
Iamba Technologies
---------------------------
Newsgroups: comp.os.vxworks
Subject: clock_show
Date: Thu, 18 Apr 2002 12:11:45 +0200
From: "Alex Vinokur" <alexvn@bigfoot.com>
Organization: Scopus
Message-ID: <a9m2hu$4eceu$1@ID-79865.news.dfncis.de>
=========================================================
Tornado  : Version 2.0.2
VxWorks  : Version 5.4.2
BSP      : Version 1.1/1
Compiler : ccsimpc
           gcc version egcs-2.90.29 tornado 2.0 980515
           (egcs-1.0.3 release)
Host     : Windows2000
Target   : VxSim for Windows (VxWorks target simulator)
=========================================================
Project Type : bootable VxWorks image (custom configured)
=========================================================
There is a helpful and useful function clock_show().
|| ====== [W1] Tornado Shell Window : BEGIN ======
- -> lkup "show"
_clock_show               0x0042d3ec text     (vxWorks.exe)
_show                     0x00445994 text     (vxWorks.exe)
value = 0 = 0x0
- -> clock_show
  seconds    nanosecs  freq (hz)  resolution  base ticks  base secs  base nsecs
- ---------- ----------- ---------- ----------  ----------  ---------- ----------
 00000000   000000000   00000060   16666666    00001230    00000000   000000000
value = 0 = 0x0
- -> clock_show
  seconds    nanosecs  freq (hz)  resolution  base ticks  base secs  base nsecs
- ---------- ----------- ---------- ----------  ----------  ---------- ----------
 00000009   066666664   00000060   16666666    00001230    00000000   000000000
value = 0 = 0x0
- -> clock_show
  seconds    nanosecs  freq (hz)  resolution  base ticks  base secs  base nsecs
- ---------- ----------- ---------- ----------  ----------  ---------- ----------
 00000014   449999982   00000060   16666666    00001230    00000000   000000000
value = 0 = 0x0
- ->
|| ====== [W1] Tornado Shell Window : END ========
|| ###### C++ Code : BEGIN ######
// File symTbl.cpp
[omitted]
IMPORT int clockLibInit ();
IMPORT int clock_getres ();
IMPORT int clock_gettime ();
IMPORT int clock_setres ();
IMPORT int clock_settime ();
IMPORT int clock_show ();
[omitted]
SYMBOL standTbl [2582] =
    {
[omitted]
    {{NULL},"_clockLibInit", (char*) clockLibInit, 0, N_EXT | N_TEXT},
    {{NULL},"_clock_getres", (char*) clock_getres, 0, N_EXT | N_TEXT},
    {{NULL},"_clock_gettime", (char*) clock_gettime, 0, N_EXT | N_TEXT},
    {{NULL},"_clock_setres", (char*) clock_setres, 0, N_EXT | N_TEXT},
    {{NULL},"_clock_settime", (char*) clock_settime, 0, N_EXT | N_TEXT},
    {{NULL},"_clock_show", (char*) clock_show, 0, N_EXT | N_TEXT},
[omitted]
    };
[omitted]
|| ###### C++ Code : END ########
However,
1. The clockLib manual (file $WIND_BASE/docs/vxworks/ref/clockLib.html)
   doesn't hold the clock_show's description.
2. There is no *.h file that holds the clock_show() function.
- --
====================
  Alex Vinokur
    http://up.to/alexvn
    http://go.to/alexv_math
    mailto:alexvn@bigfoot.com
    mailto:alexvn@go.to
  ====================
---------------------------
Newsgroups: comp.os.vxworks
Subject: ioctrl commands for NPT driver
Date: 18 Apr 2002 02:21:36 -0700
From: slawomirc_ie@yahoo.ie (Slawomir Czarko)
Organization: http://groups.google.com/
Message-ID: <9acd95bc.0204180121.7ca42816@posting.google.com>
What is the minimum set of ioctrl commands which NPT driver has to
implement in order to work with IP protocol stack?
Slawomir
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Tornado 2.0x and WinXP (professional) - any experience?
Date: 18 Apr 2002 03:49:37 -0700
From: heiko_elger@arburg.com (Heiko Elger)
Organization: http://groups.google.com/
Message-ID: <97e6274e.0204180249.245c8a7@posting.google.com>
References: <97e6274e.0204172118.331e53f8@posting.google.com> <VRsv8.60360$G72.50781@sccrnsc01>
Hello,
we are using x86 and full simulator!
I think that the ULIP driver will possible not work - but we are using
it not very often cause of poor performance
Best regards
Heiko
"drdiags" <drdiags@attbi.com> wrote in message news:<VRsv8.60360$G72.50781@sccrnsc01>...
> Hello Heiko,
>
>     I have installed T2.0.2 for x86 and MIPS on XP Professional and I
> haven't had problems. What
>  is your architecture? I am not sure about the full simulator (will ULIP
> work? Probably). But I haven't
> done a lot of heavy loading with the tools to note if they would cause
> crashes. HTH.
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Fri Apr 19 04:03:19 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Fri Apr 19 04:03:22 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Fri Apr 19 04:03:14 PDT 2002
        Subject: Tornado for Tricore
        Subject: Re: Sandpoint PMC8240/8245 BSP can't boot on sp3-8245
        Subject: Re: Output redirection to Tornado Shell Window or Target Simulator Window
        Subject: WindML and ugl_winLib.o or simLib.o
        Subject: Maximum num of NPT devices attached to Ip stack?
        Subject: Re: modified source code of inflate() used in vxworks_romcompress
        Subject: Re: Output redirection to Tornado Shell Window or Target Simulator Window
        Subject: Video card driver problems.
        Subject: Re: WindML and ugl_winLib.o or simLib.o
        Subject: Re: WindML and ugl_winLib.o or simLib.o
        Subject: Re: Video card driver problems.
        Subject: ulipInit failed
        Subject: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
        Subject: Re: bootrom
        Subject: Re: modified source code of inflate() used in vxworks_romcompress
        Subject: Re: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
        Subject: Re: Zinc bitmap problem
        Subject: vxWorks IP/UDP stack performance problem
        Subject: Re: Zinc bitmap problem
        Subject: Re: Zinc bitmap problem
        Subject: Re: vxWorks IP/UDP stack performance problem
        Subject: Re: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
        Subject: Re: Video card driver problems.
        Subject: Target shell restart
        Subject: Re: Maximum num of NPT devices attached to Ip stack?
        Subject: Re: Invalid Opcode
        Subject: Re: Video card driver problems.>> PING to Johan Borkhuis. would you add this question in FA list??
        Subject: Re: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
        Subject: Re: vxWorks IP/UDP stack performance problem
        Subject: Re: Video card driver problems.
        Subject: Re: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
        Subject: about using far pointers in Vxworks
        Subject: PCI Bus Intel x86 Special Cycles
        Subject: Re: Is AIO Buffered?
        Subject: which library should i use for pty?
        Subject: System Information
        Subject: hashTblEach and callback using hashTblRemove safe?
        Subject: Re: Video card driver problems.
        Subject: Re: vxWorks IP/UDP stack performance problem
        Subject: testing fiber gigabit ethernet
        Subject: dosfs2: upper/lower case  8.3 file name format
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Tornado for Tricore
Date: 18 Apr 2002 04:20:40 -0700
From: emsindhwani@yahoo.com.sg (Mohit Sindhwani)
Organization: http://groups.google.com/
Message-ID: <fe83e076.0204180320.77829e31@posting.google.com>
Does anyone have any experience with using the Tricore version of VxWorks/Tornado?
Thanks
Regards
Mohit.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Sandpoint PMC8240/8245 BSP can't boot on sp3-8245
Date: 18 Apr 2002 11:45:40 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91F48BFF04F2Fborkhuisagerecom@135.7.153.101>
References: <5a942a22.0204120819.2491812b@posting.google.com>
baran@yeah.net (baran) wrote:
> I downloaded the Sandpoint PMC8240/8245 Motorola Sandpoint (PMC8240 &
> PMC8245) BSP (rel July 2001) from windsurf and tried to run it on my
> sandpoint 8245 board,But it can't boot normally.
>
> After I have installed the TDK-14110.tar package,I used my programmer
> to burn ~\Tornado\target\config\sp824x\bootrom.hex into U6 (29f040). I
> have used the
> same methods to burn dink32 file, it works fine.
>
> But bootrom seems didn't work normally,It can't print any character on
> the
> terminal which connecting to sp3's com1. I tried 9600bps and 38400bps
> and com2,all faild. After PowerOn,the "PCI" and "ROM" LED lighted
> about 1 second,then off.
>
> I used the 'build bootrom' in tornado to build a new bootrom.hex,but I
> still
> can't work.
>
> Can anybody tell me the right way to boot my sp3-8245?
I had exactly the same problem: TDK 14110 does not work, and rebuild also
does not work. But I got some information from our FAE with some
different DIP switch settings
(+ = on, - is off)
On the module:
           12345678
Switch 2:  +-++----
Switch 3:  -++++--+
Main board:
           12345678
Switch 1:  +++++++-
Switch 2:  --+-----
The changes wrt the standard setting are:
Sw2-7, Sw3-1, Sw3-6
Sw1-6, Sw2-3
I hope this also works for you.
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: Output redirection to Tornado Shell Window or Target Simulator Window
Date: Thu, 18 Apr 2002 13:42:56 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbeb131$1@brateggebdc5.br-automation.co.at>
References: <a9c0dv$1sg93$1@ID-79865.news.dfncis.de> <3cbdaa0c$1@brateggebdc5.br-automation.co.at> <a9lt2l$49227$1@ID-79865.news.dfncis.de>
Hi,
"Alex Vinokur" <alexvn@bigfoot.com> wrote in message
news:a9lt2l$49227$1@ID-79865.news.dfncis.de...
... snip ...
>
>
> What is a difference between _new_ tasks and _individual_ tasks ?
>
>
>
You can define a task's local interpretation of STDIN, STDOUT and STDERR
_after_ it has been created using ioTaskStdSet function. Doing so sets up a
local version of the appropriate STDxxx file descriptor and connects it to
the filedescriptor you specified.
Tasks, which have not been assigned an individual STDIN, STDOUT and STDERR
file descriptor use the global mapping, which you can modify with
ioGlobalStdSet.
I think section 3.3.2 in the VxWorks Programmer's Guide explains that well.
hth
Werner
---------------------------
Newsgroups: comp.os.vxworks
Subject: WindML and ugl_winLib.o or simLib.o
Date: 18 Apr 2002 07:08:32 -0700
From: stefan.koeltze@web.de (=?ISO-8859-1?Q?Stefan_K=F6ltze?=)
Organization: http://groups.google.com/
Message-ID: <c3074ac6.0204180608.3299002b@posting.google.com>
Hi!
Please can anybody give me an idea why I do not find any of the files
ugl_winLib.o or simLib.o to link them to my SIMNT-Project!
I want to include the UGL/WindML on SIMNT platform ...
Thanks a lot
Stefano
---------------------------
Newsgroups: comp.os.vxworks
Subject: Maximum num of NPT devices attached to Ip stack?
Date: 18 Apr 2002 07:46:40 -0700
From: aidank@s3group.com (Aidan Kenny)
Organization: http://groups.google.com/
Message-ID: <99723b54.0204180646.249afaf8@posting.google.com>
Hi everyone,
Perhaps you can help me. Is there a mechanism of setting the maximum
number of NPT devices that you can attach to the IP stack in VxWorks.
We are successfully attaching 8 Npt drivers and then the ninth fails.
We have seen the configAll.h #define NUM_DRIVERS = 20. So this is not
the problem. Any idea what is going on?
Thanks for any help,
Aidan.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: modified source code of inflate() used in vxworks_romcompress
Date: Mon, 15 Apr 2002 17:33:45 +0200
From: "Christof Wehner" <dont_spam_christof.wehner@nospam.arcor.de>
Organization: Arcor
Message-ID: <a9mmg8$o6f$1@newsread1.arcor-online.net>
References: <1d411918.0204111729.5ad8e104@posting.google.com> <9423c55b.0204121437.702044b@posting.google.com> <1d411918.0204130109.59f11ffd@posting.google.com>
Hello!
just to throw in another (euro) 2 cents ;-)
what about the bootrom_uncmp version? Or is the bootrom size an issue?
just my twocents,
Christof
"DragonSpring" <lihuapeng@21cn.com> wrote in
news:1d411918.0204130109.59f11ffd@posting.google.com...
> But they said that they had not the source code to inflateLib. I am in
> despair. Who can help me?
>
> pkockritz@mac.com (Pete Kockritz) wrote in message
news:<9423c55b.0204121437.702044b@posting.google.com>...
> > lihuapeng@21cn.com (DragonSpring) wrote in message
news:<1d411918.0204111729.5ad8e104@posting.google.com>...
> > > Does anyone has the modified and tested zlib source code for VxWorks ?
> > > Will you please email me a copy of it ?
> > > Thanks.
> >
> > My suggestion would be to ask your WRS FAE for the source to inflateLib.
> >
> > Pete
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Output redirection to Tornado Shell Window or Target Simulator Window
Date: Thu, 18 Apr 2002 14:51:03 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CBEEBF4.2070609@spamm.me.l8s.co.uk>
References: <a9c0dv$1sg93$1@ID-79865.news.dfncis.de> <3cbdaa0c$1@brateggebdc5.br-automation.co.at> <a9lt2l$49227$1@ID-79865.news.dfncis.de> <3cbeb131$1@brateggebdc5.br-automation.co.at>
Werner Schiendl wrote:
>
> You can define a task's local interpretation of STDIN, STDOUT and STDERR
> _after_ it has been created using ioTaskStdSet function. Doing so sets up a
> local version of the appropriate STDxxx file descriptor and connects it to
> the filedescriptor you specified.
>
> Tasks, which have not been assigned an individual STDIN, STDOUT and STDERR
> file descriptor use the global mapping, which you can modify with
> ioGlobalStdSet.
>
> I think section 3.3.2 in the VxWorks Programmer's Guide explains that well.
There is a slight problem in that you can't tell whether a task is using
the global assignments or equivalent local ones.
IIRC the file table only has entries for fd numbers 3 and above,
references to 0-2 are first indirected via task data (set by
ioTaskStdSet) then, if still 0..2, by global data (set by
ioGlobalStdSet),
The 'problem' is that you cannot tell whether a task has explicitly
assigned one the the fds to the same number as the global one.
ie: ioTaskStdSet( 0, 0, ioTaskStdGet( 0, 0 )) isn't a no-op.
Since a later ioGlobalStdSet( 0, fd ) will not affect that task.
In practise this makes it impossible to reset a tasks fd assignments
after a temporary change.
(I think ioTaskStdSet( 0, 0, 0 ) will reset a tasks stdin to match
the global default.)
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Video card driver problems.
Date: 18 Apr 2002 08:25:54 -0700
From: liandongzhang@hotmail.com (liandongzhang)
Organization: http://groups.google.com/
Message-ID: <83f4aa95.0204180725.75ca0f13@posting.google.com>
i want to make a video card driver for vxworks,
of course i have no WindML in hand,it is expensive.
My video card is S3 Trio64V+ PCI , i have search through google for a
long time and still can not find the specification of it.
Can i make out a driver for my video card with out it's spec?
Can anybody tell me where can i find the specification?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: WindML and ugl_winLib.o or simLib.o
Date: Thu, 18 Apr 2002 17:32:22 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbee6f9$1@brateggebdc5.br-automation.co.at>
References: <c3074ac6.0204180608.3299002b@posting.google.com>
Hi,
you need to build the WindML library before you build your application.
Start the WindML Configuration tool from the Tools -> WindML... menu.
(or with the red wind mill toolbar button).
Configure it as desired and build it.
The result goes into the lib directory of your Tornado Installation
directory.
The file to download, AFAIK, is the uglSIMNTgnu.o file.
Alternatively, you can link you application against the libSIMNTgnuUgl.a
archive.
hth
Werner
"Stefan Kltze" <stefan.koeltze@web.de> wrote in message
news:c3074ac6.0204180608.3299002b@posting.google.com...
> Hi!
>
> Please can anybody give me an idea why I do not find any of the files
> ugl_winLib.o or simLib.o to link them to my SIMNT-Project!
> I want to include the UGL/WindML on SIMNT platform ...
>
> Thanks a lot
> Stefano
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: WindML and ugl_winLib.o or simLib.o
Date: 18 Apr 2002 11:43:47 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uelhdko5o.fsf@yahoo.com>
References: <c3074ac6.0204180608.3299002b@posting.google.com>
Sender: bpringlemeir@DeadDuck
 Stefan> Hi!  Please can anybody give me an idea why I do not find any
 Stefan> of the files ugl_winLib.o or simLib.o to link them to my
 Stefan> SIMNT-Project!  I want to include the UGL/WindML on SIMNT
 Stefan> platform ...
simLib.o is in "$(WIND_BASE)/target/lib/objSIMNTgnuvx", and
"$(WIND_BASE)/target/src/ugl/bsp/config/simpc".  I assume that it does
not exist on your system, because you have should be competent enough
to do a "find -print -iname simLib\.o" or a "dir /s".
I suggest that you consult WindRiver for patch version of WindML.
There are at version 2.0 and this might include the file.
hth,
Bill Pringlemeir.
- --
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Video card driver problems.
Date: Thu, 18 Apr 2002 17:52:40 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbeebb8$1@brateggebdc5.br-automation.co.at>
References: <83f4aa95.0204180725.75ca0f13@posting.google.com>
Hi,
since what you mention seems to be a VGA compatible card, you can use the
standard VGA driver for it.
At least if you installed it in a PC that loads and initializes the VGA
bios.
There is also a generic VESA driver in the WindML package, IIRC.
If the above condition is met _and_ the card has a VESA compliant VGA BIOS
you should be able to use this one as well.
To write a tailored driver for the board, you need the hardware description,
however.
Alternatively, you may consider looking into e. g. Linux sources for such a
driver.
Maybe you find even links to reference material there.
good look
Werner
"liandongzhang" <liandongzhang@hotmail.com> wrote in message
news:83f4aa95.0204180725.75ca0f13@posting.google.com...
> i want to make a video card driver for vxworks,
> of course i have no WindML in hand,it is expensive.
> My video card is S3 Trio64V+ PCI , i have search through google for a
> long time and still can not find the specification of it.
>
> Can i make out a driver for my video card with out it's spec?
> Can anybody tell me where can i find the specification?
---------------------------
Newsgroups: comp.os.vxworks
Subject: ulipInit failed
Date: 18 Apr 2002 09:39:36 -0700
From: paulm@s3group.com (Paul Mannion)
Organization: http://groups.google.com/
Message-ID: <cc89ccd7.0204180839.5b2cc953@posting.google.com>
Hi,
 I'm trying to run the vxwoks simulator (on solaris).
 getting the following error when the simulator is
 launched...
 ulipInit failed errno 0x7a0001
 any help appreciated.
 tnx
Paul
---------------------------
Newsgroups: comp.os.vxworks
Subject: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
Date: 18 Apr 2002 09:48:11 -0700
From: r.stelzer@stoye.de (Rainer Stelzer)
Organization: http://groups.google.com/
Message-ID: <78a5d372.0204180848.6fa1f1f@posting.google.com>
Hi vxworkers,
I wrote a BSP based on the MBX860 BSP and
modified it to fit our costum MPC823e board.
Afaik there is no difference between the cpu core
of the MPC860 and the MPC823e.
So I do not made any changes in the BSP regarding the
core settings like cache size.
Unfortunately we now face a strange problem, that the
stackpointer seems to jump about 4k without a good
reason. This causes tasks with stack less than 10 k
to crash the system by writing illegal memory regions.
My questions:
- - Do I have fit core settings when changing a
  MPC860 BSP to a MPC850 BSP ?
- - Has somebody out there a hint why a stackpointer
  jumps. (That means he leaves a region within it's
  allocated stack memory unused)
Thanks in advance.
Regards
Rainer
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: bootrom
Date: 18 Apr 2002 09:54:31 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204180854.530cac9d@posting.google.com>
References: <1e539f32.0204172318.40e8c00c@posting.google.com>
Hello,
You'll need to look in your BSP documentation for information on how
to program the EPROM/flash on the board - normally there is a file
called target.txt or target.nr in the BSP that contains this
information (and other board-specific information). If that doesn't
help, try calling the board's manufacturer and ask them for
instructions.
Rgds,
John...
mandracchia@ciaoweb.it (Manu) wrote in message news:<1e539f32.0204172318.40e8c00c@posting.google.com>...
> I have some problems in the vxworks image boot. I understand that the
> problem is the RAM_HIGH_ADDRESS value. I understand that I must change
> that value in the bootrom too. I know how create a new bootrom with
> tornado 2.0 (vxworks 5.4). How I can use that bootrom? How I can write this
> bootrom in my boards? I don't know how I can write in EPROM or flash
> rom in the board. Anyone can write me the steps or the instructions
> that I must do?
>
>
>
> How Mr. Schiendl wrote me, I forgotten which board I use, it's Artesyn Bajappc750.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: modified source code of inflate() used in vxworks_romcompress
Date: Thu, 18 Apr 2002 17:03:09 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CBF0AEB.6070801@spamm.me.l8s.co.uk>
References: <1d411918.0204111729.5ad8e104@posting.google.com>
DragonSpring wrote:
> We use MPC860 and Tornado 2.0/VxWorks 5.4. We build a
> vxworks_romcompress image to boot the system and also use SWT(software
> watchdog). Now we run into the problem: the SWT time out and system
> reset during inflate().
>
> From comp.os.vxworks, I know there are two methods to resolve this
> problem:
> 1. use a periodical hardware timer to clear watchdog.
>
> - But at this time the vxworks kernel doesn't initialize yet. So I
> cann't use intConnect(), maybe I have to call intVecSet().
>
> 2. Modify the zlib source code(from
> http://www.info-zip.org/pub/infozip/zlib/) to insert watchdog kicks.
>
> - But it seems too hard for me to modify it. I cannot understand the
> arithmetic and don't know where to insert watchdog kicks. Another
> difficulty: Maybe the WindRiver use its own flag/tag in the compress
> image for identification/check.
Some further thoughts:
1) try enabling the data and instruction caches in romInit.s
    (you might have to add code to flush the D cache at the top of
    the main image (might be the start of sysAlib.s))
    This might speed things up enough so that the watchdog doesn't bark.
I was thinking you could patch the inflate code at runtime - but I
don't think any source files you have get executed after the code
is copied out of ROM and before it is executed....
FWIW I think you need to kick your dog within the loop in inflate_blocks()
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
Date: Thu, 18 Apr 2002 17:05:45 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CBF0B89.8090603@spamm.me.l8s.co.uk>
References: <78a5d372.0204180848.6fa1f1f@posting.google.com>
Rainer Stelzer wrote:
>
> Unfortunately we now face a strange problem, that the
> stackpointer seems to jump about 4k without a good
> reason. This causes tasks with stack less than 10 k
> to crash the system by writing illegal memory regions.
I'd guess something is allocating a 4k buffer on stack.
Opening files using RCP (esp. if DNS has to be used to find
the server) is a good way to eat up loads of stack!
(and blow the system out of the water if the filename
is actually long!)
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Zinc bitmap problem
Date: Thu, 18 Apr 2002 17:10:28 GMT
From: "Jacco" <hiermijn@email.com>
Organization: QuickNet
Message-ID: <86Dv8.134512$nk5.13102136@amsnews02.chello.com>
>The bitBlit is like this [numbers are byte pairs],
>
>  Bitmap                Screen
>    012345678    --->     0123456789
>
>  0 .........    --->   0 ?.........
>  1 ..****...    --->   1 ?..****...
>  2 ...**....    --->   2 ?...**....
>  3 ...**....    --->   3 ?...**....
>  4 ...**....    --->   4 ?...**....
>  5 ..****...    --->   5 ?..****...
>
>The question marks must be read from the current screen image when you
>move the data.  I looked at the 16 bit routines breifly.  There are
>some comments in udg16utl.c.  These might be relevant,
>
>/*
> * ugl16BitBCopyOr
 >*
> * Use caution when using this routine as it doesn't check for overlapping
> * conditions.
> */
>
>etc... I think that they are harmless though as the bitBlit routine
>should gaurd against overlap.  However, if you have 16 bit hardware
>and use the 16 bit drivers, there should not be a problem.
>
>What are the specifics of the platform that you are using?  Can you
>try the UGL demos to see if they also exhibit this behavior?
>
>hth,
>Bill Pringlemeir.
My platform is based on an ARM processor.
In Zinc I made a test routine to show the bitmap data contents and that was
allright. In this structure of ZafLogicalColor there is no blue line.When I
have a bitmap on a button and I push it, the blue line goes to the opposite
side or in one case dissapears. My mouse cursor has also a blue line and on
one part of the screen the blue line is on the left and on the other part of
the screen the line is on the right. An other thing is that the blue line
can be interrupted with an other specified pixel color.
Example
My original bitmap is this:
gray gray gray gray gray gray
gray gray gray blck gray gray
gray gray  blck gray blck gray
gray blck  gray gray gray blck
blck gray  gray gray gray gray
The bitmap shown in Zinc is this:
blue blue gray gray gray gray
blue blue gray blck gray gray
blue blue  blck gray blck gray
blue blck  gray gray gray blck
blck blue  gray gray gray gray
As you can see in the bitmap shown in zinc the black pixels are shown
correctly but there comes a blue line on the left with the black pixels in
the right color. If i use the transparent color in place of the gray color I
get the same effect that the black pixels are shown but there is still a
blue line. Do you have an explanation for this?
Greetings,
Jacco
---------------------------
Newsgroups: comp.os.vxworks
Subject: vxWorks IP/UDP stack performance problem
Date: 18 Apr 2002 10:28:41 -0700
From: jschen_97@yahoo.com (James Chen)
Organization: http://groups.google.com/
Message-ID: <c66096d9.0204180928.55be7e9@posting.google.com>
We have a problem with the performance of vxWorks IP/UDP stack.
Our analysis shows that a "sendto" takes about 420us on Motorola8260
and 720us on 860. This measurement is done with only vxWorks tasks
running (i.e. our own application tasks are not running).
Our application is processing calls, and each call has 2 sendto. We need
to do 90 calls every 20ms. You can see we are in trouble already (e.g. 8260
can only do around 47 sendto in 20ms.)
I am looking for ideas to improve the performance. I have read some of
the postings in this news group. I'm going to try ideas like:
1. use loan buf not bcopy in the ethernet driver;
2. don't do netJobAdd when tNetTask is already processing receiving packets;
3. maybe try to disable INTR once an INTR occurs, and use tNetTask to process
   all ethernet frames (i.e. polling), although this will increase the INTR
   latency;
4. bypass the IP stack all together when sending packets by invoking
   the driver's send;
5. I'm not sure about zbuf (eliminating copy from application to socket layer),
   since I have read different opinions about it;
Any suggestions, comments or sharing of your experiences are greatly appreciated.
Thanks in advance,
James
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Zinc bitmap problem
Date: 18 Apr 2002 13:40:56 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uvgaokiqf.fsf@yahoo.com>
References: <86Dv8.134512$nk5.13102136@amsnews02.chello.com>
Sender: bpringlemeir@DeadDuck
 Jacco> My platform is based on an ARM processor.  In Zinc I made a
 Jacco> test routine to show the bitmap data contents and that was
 Jacco> allright. In this structure of ZafLogicalColor there is no
 Jacco> blue line.When I have a bitmap on a button and I push it, the
 Jacco> blue line goes to the opposite side or in one case
 Jacco> dissapears. My mouse cursor has also a blue line and on one
 Jacco> part of the screen the blue line is on the left and on the
 Jacco> other part of the screen the line is on the right. An other
 Jacco> thing is that the blue line can be interrupted with an other
 Jacco> specified pixel color.
[snip]
 Jacco> As you can see in the bitmap shown in zinc the black pixels
 Jacco> are shown correctly but there comes a blue line on the left
 Jacco> with the black pixels in the right color. If i use the
 Jacco> transparent color in place of the gray color I get the same
 Jacco> effect that the black pixels are shown but there is still a
 Jacco> blue line. Do you have an explanation for this?
I think that the mouse cursor uses UGL routines and not Zinc directly.
Ergo, I don't think this is a `Zinc' problem.  It is in the UGL or
display driver issue.  At first, I didn't think that you had a color
display [which was somewhat stupid as 16/32 bit monochrome is a bit
uncommon].  I am more familiar with 1,2,4 bit displays.  Anyways, I am
uncertain how the Generic UGL driver treats the colour codes.  This
16/32 bits are sub-divided into color bits.  If these are not being
interpreted properly by the driver, then something can go a miss.
Specifically, the bitmaps might have a one pixel mask of some sort.
The masking operation might not be working properly as it relies on
manipulation of the color fields.  However, that is just a guess.
hth,
Bill Pringlemeir.
- --
Why not love?
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Zinc bitmap problem
Date: Thu, 18 Apr 2002 18:21:14 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CBF1D31.6070607@spamm.me.l8s.co.uk>
References: <86Dv8.134512$nk5.13102136@amsnews02.chello.com> <uvgaokiqf.fsf@yahoo.com>
> I think that the mouse cursor uses UGL routines and not Zinc directly.
And some of the UGL routines are 'broken' - fortunately they are
shipped in source form.
(Unfortunately that makes it even harder to get WRS to fix the bugs
you've found (and fixed) since they are no longer on your critical path)
> Ergo, I don't think this is a `Zinc' problem.  It is in the UGL or
> display driver issue.  At first, I didn't think that you had a color
> display [which was somewhat stupid as 16/32 bit monochrome is a bit
> uncommon].  I am more familiar with 1,2,4 bit displays.  Anyways, I am
> uncertain how the Generic UGL driver treats the colour codes.  This
> 16/32 bits are sub-divided into color bits.  If these are not being
> interpreted properly by the driver, then something can go a miss.
> Specifically, the bitmaps might have a one pixel mask of some sort.
> The masking operation might not be working properly as it relies on
> manipulation of the color fields.  However, that is just a guess.
Are you absolutely sure these lines are one pixel wide?
LCD panels sometimes show vertical lines on colour boundaries
because of their construction....
I don't remember any problems with the bitblit routines (apart from
them being piss-awful slow).  Area fill, and window boundaries
(from java) are an entirely different kettle of fish though :-)
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: vxWorks IP/UDP stack performance problem
Date: Thu, 18 Apr 2002 15:25:25 -0400
From: Keith Arner <karner@fore.com>
Organization: Marconi
Message-ID: <Pine.GSO.4.42.0204181518070.20591-100000@zimbra>
References: <c66096d9.0204180928.55be7e9@posting.google.com>
Reply-To: Keith Arner <keith.arner@marconi.com>
On 18 Apr 2002, James Chen wrote:
> We have a problem with the performance of vxWorks IP/UDP stack.
> Our analysis shows that a "sendto" takes about 420us on Motorola8260
> and 720us on 860. This measurement is done with only vxWorks tasks
> running (i.e. our own application tasks are not running).
If you use send() instead of sendto(), you might be able to squeeze a
little performance out.  When you do a sendto(), the IP stack will
basically do a connect() internally, then send the packet, then
unconnect it (though it doesn't call connect() to do this).
If you connect() your socket first, you essentially are able to move the
connect() logic outside the loop.  Note, however, that if you are sending
packets to several distinct addresses, you'd need to maintain a socket per
address, and add logic to figure out which socket to use.  Of course, this
additional logic might slow things back down to your previous performance
levels.  Your mileage may vary.
Also, if you connect() your socket and receive an ICMP unreachable packet
for that address, the *next* write on that socket (e.g. the one following
the failed send) will return an error.  At that point, the only way to
clear the error is to close the socket (and re-open a new one, if you need
to).
Oh, and as a pre-emptive strike: yes, you can connect() a UDP socket, even
though UDP is not connection oriented.  When you connect() a UDP socket,
you are basically just declaring the address to which you will be sending
packets.
Keith
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
Date: 18 Apr 2002 13:44:16 -0700
From: r.stelzer@stoye.de (Rainer Stelzer)
Organization: http://groups.google.com/
Message-ID: <78a5d372.0204181244.73573873@posting.google.com>
References: <78a5d372.0204180848.6fa1f1f@posting.google.com> <3CBF0B89.8090603@spamm.me.l8s.co.uk>
David Laight <david@spamm.me.l8s.co.uk> wrote in message news:<3CBF0B89.8090603@spamm.me.l8s.co.uk>...
> Rainer Stelzer wrote:
>
>
> >
> > Unfortunately we now face a strange problem, that the
> > stackpointer seems to jump about 4k without a good
> > reason. This causes tasks with stack less than 10 k
> > to crash the system by writing illegal memory regions.
>
> I'd guess something is allocating a 4k buffer on stack.
>
> Opening files using RCP (esp. if DNS has to be used to find
> the server) is a good way to eat up loads of stack!
> (and blow the system out of the water if the filename
> is actually long!)
>
> 	David
We investigate this,
but we can see the "stack gaping" behavior at most  of the
tasks in the system. (about 80 tasks, depends on configuration)
And many of them didn't use complex os libraries.
We can see that the stack gap seem to be unused.
The initial 0xee pattern isn't destroyed.
However, we do not know the maximum stack need of each
library delivered by wrs.
If there is a statement, that, e.g. windview library, needs 4k of
stackspace in special situations, then the result would be that
there can't be one task with less than, lets say 5K stack memory,
running. But i do not know such kind of requirement, (Do you ?)
so we calculate stacksize the old fashion way.
- - Do you know if there is a lower limit of stack needed by a task. ?
- - May be that some tasks doing simple things include a sprintf
  call to pass trace information in one line to logMsg instead of
  calling logMsg several times. Do you know the stack need of a
  sprintf ?
  The trace function can be turned on on the fly, but it may be
  that the sprintf call's are made in either case ..
  i'll have a look at the source now ...
rgds
Rainer
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Video card driver problems.
Date: Thu, 18 Apr 2002 16:53:57 -0400
From: david lindauer <dlindauer@notifier-is.net>
Message-ID: <3CBF3265.86EACC4E@notifier-is.net>
References: <83f4aa95.0204180725.75ca0f13@posting.google.com> <3cbeebb8$1@brateggebdc5.br-automation.co.at>
Werner Schiendl wrote:
> Hi,
>
> since what you mention seems to be a VGA compatible card, you can use the
> standard VGA driver for it.
> At least if you installed it in a PC that loads and initializes the VGA
> bios.
>
> There is also a generic VESA driver in the WindML package, IIRC.
> If the above condition is met _and_ the card has a VESA compliant VGA BIOS
> you should be able to use this one as well.
>
> To write a tailored driver for the board, you need the hardware description,
> however.
> Alternatively, you may consider looking into e. g. Linux sources for such a
> driver.
> Maybe you find even links to reference material there.
>
you *may* be able to get the spec from the manufacturer.  At least they used to
give them out...
David
>
> good look
> Werner
>
> "liandongzhang" <liandongzhang@hotmail.com> wrote in message
> news:83f4aa95.0204180725.75ca0f13@posting.google.com...
> > i want to make a video card driver for vxworks,
> > of course i have no WindML in hand,it is expensive.
> > My video card is S3 Trio64V+ PCI , i have search through google for a
> > long time and still can not find the specification of it.
> >
> > Can i make out a driver for my video card with out it's spec?
> > Can anybody tell me where can i find the specification?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Target shell restart
Date: Thu, 18 Apr 2002 17:48:13 -0500
From: Andrew Johnson <anj@aps.anl.gov>
Organization: APS, Argonne National Laboratory
Message-ID: <3CBF4D2D.F9CD24FB@aps.anl.gov>
Under Tornado 1.0.1 and earlier, if the Target Shell task died because of
some access fault (bus error etc.), tShell is automatically restarted:
T101> d 0x90000000
90000000:
Access Fault
Program Counter: 0x00053a24
Status Register: 0x3004
Access Address : 0x90000000
Fault Status   : 0x01450028
 65a52 _vxTaskEntry   +10 : _shell (1, 0, 0, 0, 0, 0, 0, 0, 0, 0)
 47166 _shell         +12a: 47184 ([1, 0, 3, 7f, 0])
 472f8 _shell         +2bc: _execute ([fa0bbe, 1, 0, 0, &_ioGlobalStdSet])
 47412 _execute       +a2 : _yyparse ([0, 1, ffffffff, fa0bbe, 0])
 7c54e _yyparse       +520: 7af3a (ffea50, ffea70)
 7b03e _yystart       +728: _d (90000000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
shell restarted.
T101>
Under Tornado 2.0.2, this no longer happens automatically:
T202> d 0x90000000
90000000:
Access Fault
Program Counter: 0x0005bae0
Status Register: 0x3004
Access Address : 0x90000000
Fault Status   : 0x01450028
Task: 0xf24ab0 "tShell"
It is possible to restart the shell manually at this point by pressing
CTRL+C, but we didn't have to do that before.  Can anyone suggest any way
of restoring the old auto-restart behaviour?  What controls this, and why
might WRS have changed it?
TIA,
- - Andrew
- --
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away.
- - Antoine de Saint-Exupery
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Maximum num of NPT devices attached to Ip stack?
Date: 18 Apr 2002 16:19:09 -0700
From: demralarood@hotmail.com (Demrala Rood)
Organization: http://groups.google.com/
Message-ID: <3baeb99.0204181519.481f5831@posting.google.com>
References: <99723b54.0204180646.249afaf8@posting.google.com>
aidank@s3group.com (Aidan Kenny) wrote in message news:<99723b54.0204180646.249afaf8@posting.google.com>...
> Hi everyone,
> Perhaps you can help me. Is there a mechanism of setting the maximum
> number of NPT devices that you can attach to the IP stack in VxWorks.
> We are successfully attaching 8 Npt drivers and then the ninth fails.
> We have seen the configAll.h #define NUM_DRIVERS = 20. So this is not
> the problem. Any idea what is going on?
> Thanks for any help,
> Aidan.
Is your end table array bigger enough for more than 8?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Invalid Opcode
Date: Fri, 19 Apr 2002 10:18:32 +1000
From: "Gary O'Keefe" <garyok66@bigpond.com>
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
Message-ID: <jDIv8.44297$uR5.99253@newsfeeds.bigpond.com>
References: <j6vu8.40004$uR5.91086@newsfeeds.bigpond.com>
Don't worry, I managed to solve this problem.
There are some configuration files that reside on the vxworks system
which were pointing to files on the NT host. Some of these files on the NT
host must have been corrupt.
"Gary O'Keefe" <garyok66@bigpond.com> wrote in message
news:j6vu8.40004$uR5.91086@newsfeeds.bigpond.com...
> I am using VxWorks version 5.3.1 with IOWorks R03.00 (Build 901). When
> IOWorks goes to load a program to the VxWorks system a program named
> "Loader" crashes with Invalid Opcode.
> Being new to Vxworks I was wondering if this was a Vxworks problem or an
> IOWorks problem.
> If it is a Vxworks problem can someone help?
>
> Thanks
> Gary O'Keefe
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Video card driver problems.>> PING to Johan Borkhuis. would you add this question in FA list??
Date: Thu, 18 Apr 2002 20:35:42 +0900
From: "Girish Gulawani" <girishvgNOSPAM@yahoo.com>
Message-ID: <3cbf5836$0$27606$44c9b20d@news3.asahi-net.or.jp>
References: <83f4aa95.0204180725.75ca0f13@posting.google.com>
hi.
you dont say which board for it is?
if its x86 board then you dont have any problems. look no further than ralf
brown's interrupt list. if the VGA bios driver isnt sufficient for your
graphics requirements you may look into XFree86 source code for complete
driver. refer www.xfree86.org.
but if its for non x86 board, then i guess you may serious problem due to
non availability of main bios & vga bios. especially if the particular VGA
card of yours has only x86 bios in its expansion rom. above mentioned
XFree86 does have even this BIOS source. that way for almost all the VGA
card, but tightly coupled in the XFree86 design. you must break those ties
and use. a tough choice. or else and the best option is you may search for
x86 BIOS emulation.
getting specs for vga chip is easy but not the card. its trade secret.
hth.
girish.
"liandongzhang" <liandongzhang@hotmail.com> wrote in message
news:83f4aa95.0204180725.75ca0f13@posting.google.com...
> i want to make a video card driver for vxworks,
> of course i have no WindML in hand,it is expensive.
> My video card is S3 Trio64V+ PCI , i have search through google for a
> long time and still can not find the specification of it.
>
> Can i make out a driver for my video card with out it's spec?
> Can anybody tell me where can i find the specification?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
Date: Thu, 18 Apr 2002 23:52:11 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CBF6ACA.8050801@spamm.me.l8s.co.uk>
References: <78a5d372.0204180848.6fa1f1f@posting.google.com> <3CBF0B89.8090603@spamm.me.l8s.co.uk> <78a5d372.0204181244.73573873@posting.google.com>
Rainer Stelzer wrote:
> We investigate this,
> but we can see the "stack gaping" behavior at most  of the
> tasks in the system. (about 80 tasks, depends on configuration)
> And many of them didn't use complex os libraries.
> We can see that the stack gap seem to be unused.
> The initial 0xee pattern isn't destroyed.
>
> However, we do not know the maximum stack need of each
> library delivered by wrs.
Don't suppose they do either!
Many, many moons ago I wrote some code that parsed the assembler
listing file output by our pascal compiler to determine the
maximum stack depth (and hence the required stack size) for a
supermarket till backend system.   Most of the tasks would only
go anywhere near their limits when reporting obscure faults!
Anyway, I'd look at the contents of the stack just behond the
block of unmolested 0xee, it is very likely that there is a
return address lurking - it might just give the required hint.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: vxWorks IP/UDP stack performance problem
Date: 18 Apr 2002 17:54:49 -0700
From: demralarood@hotmail.com (Demrala Rood)
Organization: http://groups.google.com/
Message-ID: <3baeb99.0204181654.52ace7bf@posting.google.com>
References: <c66096d9.0204180928.55be7e9@posting.google.com>
jschen_97@yahoo.com (James Chen) wrote in message news:<c66096d9.0204180928.55be7e9@posting.google.com>...
> We have a problem with the performance of vxWorks IP/UDP stack.
> Our analysis shows that a "sendto" takes about 420us on Motorola8260
> and 720us on 860. This measurement is done with only vxWorks tasks
> running (i.e. our own application tasks are not running).
>
> Our application is processing calls, and each call has 2 sendto. We need
> to do 90 calls every 20ms. You can see we are in trouble already (e.g. 8260
> can only do around 47 sendto in 20ms.)
>
> I am looking for ideas to improve the performance. I have read some of
> the postings in this news group. I'm going to try ideas like:
>
> 1. use loan buf not bcopy in the ethernet driver;
> 2. don't do netJobAdd when tNetTask is already processing receiving packets;
> 3. maybe try to disable INTR once an INTR occurs, and use tNetTask to process
>    all ethernet frames (i.e. polling), although this will increase the INTR
>    latency;
> 4. bypass the IP stack all together when sending packets by invoking
>    the driver's send;
> 5. I'm not sure about zbuf (eliminating copy from application to socket layer),
>    since I have read different opinions about it;
>
> Any suggestions, comments or sharing of your experiences are greatly appreciated.
I think first to know where is the problem instead of going straight
to try things in the ethernet driver. Why don't you try measuring the
time of sendto when sent to 127.0.0.1? If is still big, then leave the
driver alone because its not to blame. I don't think anything you list
is going to help and some of them will maybe make it worse.
dr
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Video card driver problems.
Date: 18 Apr 2002 18:27:19 -0700
From: liandongZhang@hotmail.com (liandongzhang)
Organization: http://groups.google.com/
Message-ID: <6eb8ea75.0204181727.4bb55641@posting.google.com>
References: <83f4aa95.0204180725.75ca0f13@posting.google.com> <3cbeebb8$1@brateggebdc5.br-automation.co.at>
Thank you , i will try standard vga driver.
Can you seggest me a example of such a standard vag driver?
I heard that to debug and test a video driver is dengerous and can
kill the monitor. is it right?
"Werner Schiendl" <ws-news@gmx.at> wrote in message news:<3cbeebb8$1@brateggebdc5.br-automation.co.at>...
> Hi,
>
> since what you mention seems to be a VGA compatible card, you can use the
> standard VGA driver for it.
> At least if you installed it in a PC that loads and initializes the VGA
> bios.
>
> There is also a generic VESA driver in the WindML package, IIRC.
> If the above condition is met _and_ the card has a VESA compliant VGA BIOS
> you should be able to use this one as well.
>
> To write a tailored driver for the board, you need the hardware description,
> however.
> Alternatively, you may consider looking into e. g. Linux sources for such a
> driver.
> Maybe you find even links to reference material there.
>
> good look
> Werner
>
>
> "liandongzhang" <liandongzhang@hotmail.com> wrote in message
> news:83f4aa95.0204180725.75ca0f13@posting.google.com...
> > i want to make a video card driver for vxworks,
> > of course i have no WindML in hand,it is expensive.
> > My video card is S3 Trio64V+ PCI , i have search through google for a
> > long time and still can not find the specification of it.
> >
> > Can i make out a driver for my video card with out it's spec?
> > Can anybody tell me where can i find the specification?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
Date: Fri, 19 Apr 2002 03:42:36 GMT
From: Pete Kockritz <pkockritz@mac.com>
Organization: AT&T Broadband
Message-ID: <pkockritz-CE493C.22423518042002@netnews.attbi.com>
References: <78a5d372.0204180848.6fa1f1f@posting.google.com>
In article <78a5d372.0204180848.6fa1f1f@posting.google.com>,
 r.stelzer@stoye.de (Rainer Stelzer) wrote:
> Hi vxworkers,
>
> I wrote a BSP based on the MBX860 BSP and
> modified it to fit our costum MPC823e board.
> Afaik there is no difference between the cpu core
> of the MPC860 and the MPC823e.
> So I do not made any changes in the BSP regarding the
> core settings like cache size.
>
> Unfortunately we now face a strange problem, that the
> stackpointer seems to jump about 4k without a good
> reason. This causes tasks with stack less than 10 k
> to crash the system by writing illegal memory regions.
Check the stack usage of your interrupt handlers and watchdog callback
routines. Work that is to be done by these can be deferred and done
in the context of _any_ task.
- --
Pete Kockritz
<mailto:pkockritz@mac.com>
---------------------------
Newsgroups: comp.os.vxworks
Subject: about using far pointers in Vxworks
Date: 18 Apr 2002 21:01:11 -0700
From: forvxworks@rediffmail.com (Anand)
Organization: http://groups.google.com/
Message-ID: <f14c07cb.0204182001.a13a51f@posting.google.com>
Hi,
  usually i have been working under DOS using Borlandc and making use
of the macro MK_FP to create and use far pointers. But i doubt whether
far pointers are supported in Vxworks. If they are kindly give me an
alternative or better , how i can use the macro MK_FP in Vxworks. can
anyone send me an example??
 Regards.
Anand.
---------------------------
Newsgroups: comp.arch.embedded,comp.os.vxworks
Subject: PCI Bus Intel x86 Special Cycles
Date: Fri, 19 Apr 2002 04:27:10 GMT
From: "Jeffrey Szczepanski" <jrs@inscitek.com>
Organization: Road Runner
Message-ID: <y0Nv8.57688$0o.10752473@typhoon.nyroc.rr.com>
I am looking for a list of the "x86 Architecture Specific - (Code 0x02)" PCI
Bus Special Cycles that are defined by Intel. Typically supported by their
PCI/AGP Chipsets. The only one I have seen documented is "type 0x12" for the
STOP GRANT special cycle to support sleep modes, but I understand that are
several others.
Thanks in advance, for any details on the definition/usage of PCI Special
Cycles by Intel.
Jeff Szczepanski
jrs@inscitek.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Is AIO Buffered?
Date: Thu, 18 Apr 2002 17:09:41 +0200
From: "Christof Wehner" <dont_spam_christof.wehner@nospam.arcor.de>
Organization: Arcor
Message-ID: <a9oa7e$983$1@newsread1.arcor-online.net>
References: <ofgk4syo.fsf@sandia.gov>
Hi Tad,
well AIO must be buffered, otherwise it wouldn't manage to be
"asynchronous", right? ;-)
Frankly, I did not see anything in the nor in the config files docs that
seems to allow changing the parameter. Anyone else in the group?
What I would suggest would be writing your own code here, sending through a
Message Queue to a task that collects the information and writes whenever
the appropriate size is reached.
May not be the most desired way, but maybe a way to achieve your goal.
Just a thought,
Christof
<taashlo@sandia.gov> schrieb im Newsbeitrag news:ofgk4syo.fsf@sandia.gov...
> Hi All,
>
> I'm getting really poor performance out of my SCSI hard disk when
> I write large numbers of relativly small (just over 2Kbyte) "chunks"
> of data.  By doing some tests, I found that the perfomance increases
> significantly (from ~120Kbytes/sec to ~1.6Mbytes/sec) by increasing
> the size of the "chunk" that gets written.  I'm using asynchronous
> I/O (lio_listio) to prevent my high-priority tasks from blocking on
> the writes to disk.
>
> Is vxworks' AIO buffered?  If so, how do I change the size of the
> buffers used?
>
> Thanks,
>
> Tad Ashlock <taashlo@sandia.gov>
---------------------------
Newsgroups: comp.os.vxworks
Subject: which library should i use for pty?
Date: Thu, 18 Apr 2002 20:54:16 +0800
From: brwang <brwang@csie.nctu.edu.tw>
Organization: DCI HiNet
Message-ID: <3CBEC1F8.374A5475@csie.nctu.edu.tw>
Hi,
I wrote a program in which I have used ptyDrv() and ptyDeviceCreate().
But when loading it to the target server, these functions can not be
linked.
Does anyone know which library should I include in configAll.h for using
these functions? Thanks in advance :)
Regards
---------------------------
Newsgroups: comp.os.vxworks
Subject: System Information
Date: Fri, 19 Apr 2002 03:54:38 GMT
From: "FloodBarBoy" <floodbarboy@hotmail.com>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <2yMv8.1588$3y6.603062440@newssvr11.news.prodigy.com>
I have a device that has VxWorks installed on it. I am trying to find out
some general information about the device. Is there any commands that I can
use with VxWorks to display system information, such as enthernet devices,
ram, flash ram, or whatever device is on this board? I am trying to learn
all about this device so any information will help. Thank you for your time.
---------------------------
Newsgroups: comp.os.vxworks
Subject: hashTblEach and callback using hashTblRemove safe?
Date: 19 Apr 2002 00:49:29 -0700
From: macpete@gmx.de (Marc Peter)
Organization: http://groups.google.com/
Message-ID: <24315948.0204182349.3fd708e8@posting.google.com>
Hello,
my Question is: Is it safe to remove a node from a vxWorks (5.4.x) hash table
from within a callback called by hashTblEach?
Essentially, I want to remove all elements from a hash table, that have a
special property. So far, I've just been using hashTblRemove from within the
callback and haven't noticed any problems, yet. But I wonder if doing so is
really supported by hashLib, and it's not using any data structures that have
potentially been freed by a callback... I don't have source access.
Can anybody shed some light on this?
Marc
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Video card driver problems.
Date: Fri, 19 Apr 2002 11:37:51 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cbfe55f@brateggebdc5.br-automation.co.at>
References: <83f4aa95.0204180725.75ca0f13@posting.google.com> <3cbeebb8$1@brateggebdc5.br-automation.co.at> <6eb8ea75.0204181727.4bb55641@posting.google.com>
Hi,
"liandongzhang" <liandongZhang@hotmail.com> wrote in message
news:6eb8ea75.0204181727.4bb55641@posting.google.com...
> Thank you , i will try standard vga driver.
> Can you seggest me a example of such a standard vag driver?
There is no 'example' of such a driver.
The standard VGA driver _is_ part of the WindML distribution.
It is available for x86 based PC targets, not sure if any other target is
supported.
You can select it from the dropdown-list when you build WindML with the
configuration tool.
> I heard that to debug and test a video driver is dengerous and can
> kill the monitor. is it right?
Well, I won't say it _cannot_ happen, but up-to-date monitors usually just
display an error message or switch off in case of signals they don't
understand or cannot display because they're out of range.
If you mean any kind of flat panel connected digitally to your graphics
chip: well, this is something completely different. Although they are less
sensible now than a couple of years ago, it's easy to kill them with
mal-programmed graphics chip.
In case you use the latter, I strongly recommend you consult proper
documentation from the panel _and_ graphics chip vendor. Failing that, you
may find documenation in XFree sources as recommended in another post. Be
advised, that not all drivers of XFree work with flat panels correctly, but
assume a CRT connected.
hth
Werner
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: vxWorks IP/UDP stack performance problem
Date: 19 Apr 2002 03:01:54 -0700
From: cpotenza@onetel.net.uk (Claudio Potenza)
Organization: http://groups.google.com/
Message-ID: <2025ac82.0204190201.12238178@posting.google.com>
References: <c66096d9.0204180928.55be7e9@posting.google.com>
jschen_97@yahoo.com (James Chen) wrote in message
> We have a problem with the performance of vxWorks IP/UDP stack.
> Our analysis shows that a "sendto" takes about 420us on Motorola8260
> and 720us on 860. This measurement is done with only vxWorks tasks
> running (i.e. our own application tasks are not running).
I did the very same measurement on a 8260 (using the motFcc driver)
and saw something like 200-300 usec to do a sendto.
Things that you can do to improve:
1) Do you have instruction and data cache turned on? (I had)
2) you can turn off computation of UDP cheksum (there is
   an ioctl code to do this)
3) ?????
I can tell you that in my project in the end I decided to preformat
the IP and UDP header header and send the packet as raw ethernet
packets using the ifstruct->if_output function.
This way I obtained something around 70-80 usec per send
---------------------------
Newsgroups: comp.arch.embedded,comp.os.vxworks
Subject: testing fiber gigabit ethernet
Date: 19 Apr 2002 03:29:17 -0700
From: demralarood@hotmail.com (Demrala Rood)
Organization: http://groups.google.com/
Message-ID: <3baeb99.0204190229.36793728@posting.google.com>
I am wondering how do most people test their fiber gigabit
ethernet devices and drivers? I am using a Netgear switch
that has 2 fiber ports and 16 10/100 ports to connect my
PC to device, but I can't get near line rate and forget
testing errors because I can't make the switch do errors.
I would like to be sure that the system can handle heavy
traffic, short and long frames, FCS errors, etc. I think
if put gigabit in my PC, I can push more data into device,
but I still worry about errors and how to make them from PC.
Can anyone please tell me how you do this?
thank you
rd
---------------------------
Newsgroups: comp.os.vxworks
Subject: dosfs2: upper/lower case  8.3 file name format
Date: 19 Apr 2002 03:41:22 -0700
From: hans.vermeersch@protronic.com (Hans Vermeersch)
Organization: http://groups.google.com/
Message-ID: <fcb7d817.0204190241.519e1e50@posting.google.com>
Suppose you create a file or a directory with a name following the old
dos 8.3 file name format on a compact flash card on a Win2000 pc. The
cf card has been formatted following the FAT file system.
Then you take this compact flash card to a VxWorks 5.4 environment
with dosfs2. Now this same file or directory appears with its name in
upper case. A file or directory name not following the 8.3 format is
not changed.
If one repeats the same experiment on a Win98 pc, then the file or
directory name is not changed when using dosfs2.
Does anyone know a work-around for this problem?
Thanks in advance,
Hans Vermeersch.
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Fri Apr 19 22:35:38 2002
From: "Sabarivel S" <sabaris@future.futsoft.com>
Date: Fri Apr 19 22:35:41 PDT 2002
Subject: RE: comp.os.vxworks newsdigest
Hai all,
  When does SetSockopt call with MULTICAST_IF option gives
  S_errno_ENOBUFS error message.
  If anyone has already faced this type of error message
  pl indicate me.
 thanks
 sabari
***************************************************************************
This message is proprietary to Future Software Limited (FSL)
and is intended solely for the use of the individual to whom it
is addressed. It may contain  privileged or confidential information
and should not be circulated or used for any purpose other than for
what it is intended.
If you have received this message in error, please notify the
originator immediately. If you are not the intended recipient,
you are notified that you are strictly prohibited from using,
copying, altering, or disclosing the contents of this message.
FSL accepts no responsibility for loss or damage arising from
the use of the information transmitted by this email including
damage from virus.
***************************************************************************
From vxwexplo-errs@csg.lbl.gov  Sat Apr 20 04:03:15 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Sat Apr 20 04:03:17 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Sat Apr 20 04:03:11 PDT 2002
        Subject: bootp problem with tornado2
        Subject: Re: about using far pointers in Vxworks
        Subject: explicit template instantiation of basic_string
        Subject: Re: System Information
        Subject: network card for ARM Integrator
        Subject: Re: about using far pointers in Vxworks
        Subject: Re: about using far pointers in Vxworks
        Subject: German keyboard mapping for pcConsole anywhere?
        Subject: Re: Is AIO Buffered?
        Subject: Netfilter, ipchains, iptables...
        Subject: User Libraries in VxWorks/GNU?  How?
        Subject: bytepacking of arrays
        Subject: Re: arptnew error with subnetmask
        Subject: Re: crosswind tcl scripts
        Subject: Re: bootp problem with tornado2
        Subject: Re: System Information
        Subject: sound device driver for cs4281
        Subject: interrupt: panic : ring buffer overflow on the shell
        Subject: Re: vxWorks IP/UDP stack performance problem
        Subject: Re: dosfs2: upper/lower case  8.3 file name format
        Subject: Re: bytepacking of arrays
        Subject: Re: Netfilter, ipchains, iptables...
        Subject: Re: testing fiber gigabit ethernet
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: bootp problem with tornado2
Date: Fri, 19 Apr 2002 14:22:45 +0200
From: Fritz Stadler <Fritz.Stadler.gp@icn.siemens.de>
Organization: Siemens AG
Message-ID: <3CC00C15.63369E29@icn.siemens.de>
Hello,
I have a problem with the library function bootpMsgSend() in
conjunction with tornado2.0.2.
My Hardware is the Motorola 860 and the bootp is performed on
the "cpm0" interface. This interface is attached with cpmattach()
in usrNetwork.c. Furthermore the interface is preinitialised with
the IP address 10.0.0.1. This is done by a call to usrNetInit().
After these initialisations my bootp client is calling the function
bootpMsgSend(), but this function timed out. I can see, with a LAN
monitor, that the BOOTP request is sent out and the server answers
with a correct bootp reply.  The tornado IP is sending back a ICMP
message with 'Destination Unreachable' and 'Port Unreachable'.
This means, IP has no knowledge about the bootp reply.
The patch 67304 - "bootp failures due to checksum" - is installed.
Everything of this works fine with tornado1.
Does anybody know what can be wrong?
Thanks in advance.
Fritz
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: about using far pointers in Vxworks
Date: Fri, 19 Apr 2002 13:34:54 GMT
From: nunya@damn.business.com (Bruce)
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <3cc01c98.517824@news.houston.sbcglobal.net>
References: <f14c07cb.0204182001.a13a51f@posting.google.com>
In comp.os.vxworks
forvxworks@rediffmail.com (Anand) wrote:
>Hi,
>  usually i have been working under DOS using Borlandc and making use
>of the macro MK_FP to create and use far pointers. But i doubt whether
>far pointers are supported in Vxworks. If they are kindly give me an
>alternative or better , how i can use the macro MK_FP in Vxworks. can
>anyone send me an example??
VxWorks uses a 32 bit flat memory model.  There is no need for far
pointers.  If you need a pointer to an address, just get it.  No segemnt
offset stuff.
Bruce
---------------------------
Newsgroups: comp.os.vxworks
Subject: explicit template instantiation of basic_string
Date: 19 Apr 2002 07:16:31 -0700
From: Torsten.Pfundt@bln.siemens.de (TP)
Organization: http://groups.google.com/
Message-ID: <79b35a81.0204190616.1ef5ccd0@posting.google.com>
Hi everyone,
i am working with TornadoII vxWorks. i tried to instantiate (explicit)
the template basic_string, with this code:
   #include <std/bastring.cc>
   template class std::basic_string<char>;
But there are still unresolved symbols (if i try to download the
linked package
to the VxSim (a vxWorks Simulator)). I compile with the
"-fno-implicit-templates" compiler option. I think there might be a
bug in the "std/straits.h" Header-File, 'cause only these defined
functions (copy, move, eos, ...) are unresolved. If i explicit
instantiate string_char_traits (template struct
std::string_char_traits<char>;) the same errors occur.
Can anyone help me?
Thanks a lot, Torsten Pfundt.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: System Information
Date: 19 Apr 2002 11:27:22 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uit6nk8th.fsf@yahoo.com>
References: <2yMv8.1588$3y6.603062440@newssvr11.news.prodigy.com>
Sender: bpringlemeir@DeadDuck
 FloodBarBoy> I have a device that has VxWorks installed on it. I am
 FloodBarBoy> trying to find out some general information about the
 FloodBarBoy> device. Is there any commands that I can use with
 FloodBarBoy> VxWorks to display system information, such as enthernet
 FloodBarBoy> devices, ram, flash ram, or whatever device is on this
 FloodBarBoy> board? I am trying to learn all about this device so any
 FloodBarBoy> information will help. Thank you for your time.
Which system is it that you are trying to hack?  I suggest that you
look at the vxWorks FAQ.  It also has links to WRS sight where you can
get the "Tornado Prototyper".  It has documentation on vxWorks and
will tell you about functions such as "ifShow", "memShow", etc.
hth,
Bill Pringlemeir.
- --
I've got an IDEA!!  Why don't I STARE at you so HARD, you forget your
 SOCIAL SECURITY NUMBER!!
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: network card for ARM Integrator
Date: Fri, 19 Apr 2002 15:43:03 GMT
From: Andray Kaganovsky <andraykNOSPAM@primus.ca>
Organization: Primus Canada
Message-ID: <Xns91F577ED1FA8Dandrayk@216.254.136.26>
Greetings,
target.nr file in ARM Integrator's BSP says that vxWorks will
recognize and work with DEC21x40 based network card. My question
is, did anybody tried to use SMC 8432BT/T EtherPower card
(based on DEC21041-PB controller) with ARM Integrator. Also,
if somebody out there got any network card to work on that
board, could you please tell me what card it is.
Thanks in advance and regards,
Andray
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: about using far pointers in Vxworks
Date: Fri, 19 Apr 2002 15:48:09 GMT
From: Andray Kaganovsky <andraykNOSPAM@primus.ca>
Organization: Primus Canada
Message-ID: <Xns91F578CA0A183andrayk@216.254.136.26>
References: <f14c07cb.0204182001.a13a51f@posting.google.com>
forvxworks@rediffmail.com (Anand) wrote in
news:f14c07cb.0204182001.a13a51f@posting.google.com:
> Hi,
>   usually i have been working under DOS using Borlandc and making use
> of the macro MK_FP to create and use far pointers. But i doubt whether
> far pointers are supported in Vxworks. If they are kindly give me an
> alternative or better , how i can use the macro MK_FP in Vxworks. can
> anyone send me an example??
>  Regards.
> Anand.
[AndrayK]. Here is an example of how one can turn 32-bit linear
address into the pointer under vxWorks:
    void * add2ptr (unsigned long addr)
    {
        return  ((void *) addr);
    }
regards, Andray
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: about using far pointers in Vxworks
Date: 19 Apr 2002 09:14:27 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204190814.3a7d6984@posting.google.com>
References: <f14c07cb.0204182001.a13a51f@posting.google.com>
Hello,
I have some good news for you... you're now using an operating system
that has no need for the "far pointer" distinction. You can simply use
pointers.
If you have code that uses the macro you describe and you'd like to
use that code, simply define the macro to be nothing:
e.g.
   #define MK_FP
HTH,
John...
forvxworks@rediffmail.com (Anand) wrote in message news:<f14c07cb.0204182001.a13a51f@posting.google.com>...
> Hi,
>   usually i have been working under DOS using Borlandc and making use
> of the macro MK_FP to create and use far pointers. But i doubt whether
> far pointers are supported in Vxworks. If they are kindly give me an
> alternative or better , how i can use the macro MK_FP in Vxworks. can
> anyone send me an example??
>  Regards.
> Anand.
---------------------------
Newsgroups: comp.os.vxworks
Subject: German keyboard mapping for pcConsole anywhere?
Date: Fri, 19 Apr 2002 18:14:38 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cc0425c$1@brateggebdc5.br-automation.co.at>
Hi,
Does anybode have or know where to get a german keyboard mapping for the
pcConsole device?
(pc486 and pcPentium BSP, VxWorks 5.4)
It's not too hard to do in the sources it seems, but if it's already done
I'd prefer of course.
Thanks for any input!
- - Werner
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Is AIO Buffered?
Date: 19 Apr 2002 09:33:27 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204190833.46459643@posting.google.com>
References: <ofgk4syo.fsf@sandia.gov> <a9oa7e$983$1@newsread1.arcor-online.net>
Hello,
"Christof Wehner" <dont_spam_christof.wehner@nospam.arcor.de> wrote in message news:<a9oa7e$983$1@newsread1.arcor-online.net>...
> Hi Tad,
>
> well AIO must be buffered, otherwise it wouldn't manage to be
> "asynchronous", right? ;-)
No, you can easily support AIO using the original buffer - when
submitting a buffer you essentially give it to the AIO system and must
promise not to use it until it has been processed. This, I believe, is
how the POSIX AIO system works. There are no copies of the data.
> Frankly, I did not see anything in the nor in the config files docs that
> seems to allow changing the parameter. Anyone else in the group?
>
> What I would suggest would be writing your own code here, sending through a
> Message Queue to a task that collects the information and writes whenever
> the appropriate size is reached.
> May not be the most desired way, but maybe a way to achieve your goal.
Not sure that would be much different, in fact, if you are sending the
data through the message queue, as opposed to just a pointer to the
data, it will be worse. The AIO scheme is not particularly complex.
One thing that the original poster can try is to switch on the
debugging messages:
  To enable, set aioSysPrintRtn = logMsg from a shell prompt
  To disable, set aioSysPrintRtn = 0
That will allow you to see the size of the blocks being submitted to
write(). From looking at the code quickly, it looks as though the size
for the write is coming directly from the command that was submitted,
so that should allow you to control the size of the transfers
yourself.
HTH,
John...
> Just a thought,
>
> Christof
> <taashlo@sandia.gov> schrieb im Newsbeitrag news:ofgk4syo.fsf@sandia.gov...
> > Hi All,
> >
> > I'm getting really poor performance out of my SCSI hard disk when
> > I write large numbers of relativly small (just over 2Kbyte) "chunks"
> > of data.  By doing some tests, I found that the perfomance increases
> > significantly (from ~120Kbytes/sec to ~1.6Mbytes/sec) by increasing
> > the size of the "chunk" that gets written.  I'm using asynchronous
> > I/O (lio_listio) to prevent my high-priority tasks from blocking on
> > the writes to disk.
> >
> > Is vxworks' AIO buffered?  If so, how do I change the size of the
> > buffers used?
> >
> > Thanks,
> >
> > Tad Ashlock <taashlo@sandia.gov>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Netfilter, ipchains, iptables...
Date: 19 Apr 2002 12:42:05 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uelhbk5cy.fsf@yahoo.com>
Sender: bpringlemeir@DeadDuck
I am designing a module that is to log network data.  I think that
etherInputHook() can be used with a mux/bsd driver.  However, what
mechanism can be used to log PPP and SLIP packets?  Raw packets are
fine and the data.  The ability to accept/deny data is also good, but
not mandated.  The purpose is that if a network node gets too much
"spurious" traffic, it will present a message to a logging system.
Snarf, muxTkBind, and bfp are all things that might be related to
this.  I am not sure what Tornado/vxWorks version are needed to use
these and I am not sure which ones are relevant and which
documentation I should look at.
Regards,
Bill Pringlemeir.
- --
Is it 1974?  What's for SUPPER?  Can I spend my COLLEGE FUND in one
 wild afternoon??
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: User Libraries in VxWorks/GNU?  How?
Date: Fri, 19 Apr 2002 18:07:46 GMT
From: Jon Newbill <JonUN@bitworkssystemsDELETETHIS.com>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <3CC05D4D.3776ED51@bitworkssystemsDELETETHIS.com>
I've been using VxWorks for a little over four months now.  I've had
much previous experience on pSOS and some QNX.  The concept of dynamc
linking during download used on VxWorks has taken some getting used to.
I'm still wondering how one easily finds which module (from hundreds)
references an undefined symbol reported when downloading the .out file.
But my question today is how one does a user library.  I have a
collection of routines which have been used on many previous projects as
a library.  .  It seems the concept of pulling referenced routines from
a library doesn't exist in the development system.  It looks like the ar
utility is used as the librarian under GNU but it's not clear how to
compile/link with an ar archive to create a .out file for downloading.
The alternative would be to download the entire library as a separate
.out but I'd like to only load the referenced routines not the entire
library.  Any help or insights would be appreciated.
My environment is Pentium III target/Win32 host running VxWorks 5.4.2
Jon Newbill
JonUn@bitworkssystemsREMOVTHIS.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: bytepacking of arrays
Date: Fri, 19 Apr 2002 14:17:19 -0400
From: "Suresh Kannan" <suresh_kannan@ae.gatech.edu>
Organization: Georgia Institute of Technology
Message-ID: <a9pms0$43j$1@news-int.gatech.edu>
Hello,
I want to pack my structures using the __attribute__((packed)) directve for
gcc. For example I have declared my structures to be
strcut foo {
   char a;
   double b;
   char c;
} __attribute__((packed));
In my code I refer to it as for example
void myfunc() {
   struct foo instance1;
   struct foo *pinstance1 = &instance1;
   ...some code..
}
My questions are as follows :
1) Since I do not typedef my strucutre and I use the "struct foo" to declare
my instances and pointers to instances everytime...will it work ? Do I just
have to declare the packed attribute for the structures "decleration" in my
header files as opposed to instances defined in my C files as well ?
2) Is it enough that I used the __attribute__ directive once for the entire
structure ? The effect I want is that I want no holes in my structure. Or,
do I have to declare each member with the __attribute__ directive.
3) How about declaring arrays of these variables ? For example "struct foo
fooarray[10];" in my C code. Can I assume that this array is tightly packed
?
Note that I tried the #pragma pack 1 and #pragma pack 0 directives, but it
did not work well, which is why I am using the _attribute_ directive and it
seems to work. I am compilg using the gcc compiler that comes with Tornado
2.0.2
regards,
suresh.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: arptnew error with subnetmask
Date: 19 Apr 2002 12:15:22 -0700
From: aman@ee.tamu.edu (A G)
Organization: http://groups.google.com/
Message-ID: <59bd2444.0204191115.49de6f0f@posting.google.com>
References: <f2882726.0203201334.7e1cb132@posting.google.com> <u9i8p8bbk7p698@corp.supernews.com>
This error could happen when your subnetmask is too narrow.
So you are connected to a network which is wider that what you are
'allowed' to send to.
When you get a ARP packet from such an address, and you realise you
cannot reply, vxworks would generate this error.
\
Aman Garg
"Hwa Jin Bae" <hjb@pso.com> wrote in message news:<u9i8p8bbk7p698@corp.supernews.com>...
> Can you list outputs of routeShow and arpShow for both cases?
>
> Do you see ARP request coming out of your target in non-working case?  Sniff
> the network and show us the trace.  If you can.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: crosswind tcl scripts
Date: 19 Apr 2002 15:22:10 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <u1ydbjxy5.fsf@yahoo.com>
References: <a9hq9l$br7$1@zeus.orl.lmco.com>
Sender: bpringlemeir@DeadDuck
>>>>> "Steve" == Steve  <steve.c.strauss@lmco.com> writes:
 Steve> Does anyone know of any repository of crosswind tcl scripts?
 Steve> I'm sure that a lot of people have added a lot of useful
 Steve> things to crosswind, but I was wondering if there is any
 Steve> central collection of things.  Thank you.
Section 1.6.3 Tornado API v2.0.1,
   To the extent that your organization permits it, you can also
   benefit other Tornado users by sharing your Tornado resource
   extensions. The comp.os.vxworks newsgroup is one appropriate
   vehicle, as is the archive maintained by the Wind River Users
   Group. See the Tornado User's Guide: Customer Service for
   information about finding these resources on the World Wide Web.
Apparently it has not happened.  I would like to add CVS buttons, but
I am unsure whether I can provide this to everyone.  Apparently my
company wants me to sign a new confidentiality agreement.  I am sure
that other people are bound by such things.  Anyways,
 "ftp://ftp.atd.ucar.edu/pub/archive/vxworks/vx/"
 "http://www.xs4all.nl/~borkhuis/vxworks/ftp/vxhacks/"
provide little [no TCL that I can see].  I have some Emacs lisp code
for connecting a target server, a target shell, using ange-ftp,
compiler hooks, and running GUB/GDB on an NT machine.  I have posted
some of this stuff, but there is no common place for it and I don't
know how interesting it is.
Regards,
Bill Pringlemeir.
- --
Khaddafi Firefly covert video ASPIC CBNRC CNCIS constitution KGB Kh-11
FTS2000 Bletchley Park MD5 security spies Audiotel
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: bootp problem with tornado2
Date: 19 Apr 2002 12:55:02 -0700
From: jeremywalters@hotmail.com (Jeremy Walters)
Organization: http://groups.google.com/
Message-ID: <21fff711.0204191155.48a35d33@posting.google.com>
References: <3CC00C15.63369E29@icn.siemens.de>
Fritz Stadler <Fritz.Stadler.gp@icn.siemens.de> wrote in message news:<3CC00C15.63369E29@icn.siemens.de>...
> Hello,
>
> I have a problem with the library function bootpMsgSend() in
> conjunction with tornado2.0.2.
>
> My Hardware is the Motorola 860 and the bootp is performed on
> the "cpm0" interface. This interface is attached with cpmattach()
> in usrNetwork.c. Furthermore the interface is preinitialised with
> the IP address 10.0.0.1. This is done by a call to usrNetInit().
>
> After these initialisations my bootp client is calling the function
> bootpMsgSend(), but this function timed out. I can see, with a LAN
> monitor, that the BOOTP request is sent out and the server answers
> with a correct bootp reply.  The tornado IP is sending back a ICMP
> message with 'Destination Unreachable' and 'Port Unreachable'.
> This means, IP has no knowledge about the bootp reply.
> The patch 67304 - "bootp failures due to checksum" - is installed.
>
> Everything of this works fine with tornado1.
>
> Does anybody know what can be wrong?
>
> Thanks in advance.
> Fritz
When we had a problem very similar to this (PPC603/604)we applied the
whole Network Patch Bundle, SPR68322.  This includes 67304 and I
thought that it was the specific fix for our problem.  But maybe there
is something else in the bundle that actually resolved our problem.
There are quite a few network code fixes in the bundle so you may want
to check it out.
HTH,
- -Jeremy
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: System Information
Date: Sat, 20 Apr 2002 00:00:02 GMT
From: "FloodBarBoy" <floodbarboy@hotmail.com>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <6c2w8.5$Gs.989346@newssvr30.news.prodigy.com>
References: <2yMv8.1588$3y6.603062440@newssvr11.news.prodigy.com> <uit6nk8th.fsf@yahoo.com>
Thank you for your response Bill. The device that I am looking at is a
router. It has a Motorola 850 SAR PPC processor. I want to find what VxWorks
see the other devices as so that I can see if it is feasable to put another
OS on it. I need this information to see if there are drivers in the other
OS. I have two of these routers and just playing with one. If I mess it up,
no harm done. I will turn it into a wall clock.
http://www.nerdsrus.com/projects/pipelineclock/  I think that I have tried
ifShow and it returned a response that said it was basically unknown. I
tried devs but did not understand the output. memShow just shows whats in
memory I think. However, I will try these out tonight when I get the router
hooked up for some further research. I have a version of linux that supports
the Motorola 850 SAR PPC chip. Just need to make sure the other devices are
supported. Once again thank you for your response.
"Bill Pringlemeir" <bpringlemeir@yahoo.com> wrote in message
news:uit6nk8th.fsf@yahoo.com...
>
>  FloodBarBoy> I have a device that has VxWorks installed on it. I am
>  FloodBarBoy> trying to find out some general information about the
>  FloodBarBoy> device. Is there any commands that I can use with
>  FloodBarBoy> VxWorks to display system information, such as enthernet
>  FloodBarBoy> devices, ram, flash ram, or whatever device is on this
>  FloodBarBoy> board? I am trying to learn all about this device so any
>  FloodBarBoy> information will help. Thank you for your time.
>
> Which system is it that you are trying to hack?  I suggest that you
> look at the vxWorks FAQ.  It also has links to WRS sight where you can
> get the "Tornado Prototyper".  It has documentation on vxWorks and
> will tell you about functions such as "ifShow", "memShow", etc.
>
> hth,
> Bill Pringlemeir.
>
> --
> I've got an IDEA!!  Why don't I STARE at you so HARD, you forget your
>  SOCIAL SECURITY NUMBER!!
> vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: sound device driver for cs4281
Date: Sat, 20 Apr 2002 09:46:32 +0900
From: "james" <james018@hananet.net>
Message-ID: <BX2w8.1206$IF.7055@news.hananet.net>
hi, everybody.
I am a beginner for vxworks. I try to find any device driver for cs4281
sound chip.
If you have any exprience to develop the device driver for cs4281.
please give me any information.
James Kim
mail : james018@hananet.net
---------------------------
Newsgroups: comp.os.vxworks
Subject: interrupt: panic : ring buffer overflow on the shell
Date: 19 Apr 2002 19:04:50 -0700
From: wegaia@micro-web.co.kr (Young Hoon Park)
Organization: http://groups.google.com/
Message-ID: <c104e646.0204191804.133d37e5@posting.google.com>
Hi, everybody.
I am a newbie on VxWorks.
We developed embedded network camera and faced some problem.
Our camera's platform uses NetARM 40 CPU from NetSilicon and
running VxWorks 5.4 (Kernel version 2.5).
Please help me to solve the problem.
One of our customer reported that our camera dies on their network environment.
It dies several times a day. It does not respond to the ping command and
users cannot access it with web browser. And he said that the camera shows a
"interrupt : panic : ring buffer overflow" messages on the target shell.
(He saw the messages in the hypter terminal.)
The only method to get back the camera is power OFF/ON.
Based on the clue our customer provided, we made the camera in our side
reappear the phenomenon. We use private network 192.168.1.0 and there
are many cameras on the network. (about 10).
And I tried the command in the linux machine on the network,
"ping -b -f 192.168.1.255". (ping with broadcasting and flooding).
After for a while, the camera on our network shows the same message
"interrupt : panic : ring buffer overflow" on the shell.
It also does not respond to the ping command(without -b and -f option) anymore.
Although I am not sure whether the network environment of our customer is
the same with ping broadcasting and flooding situation,
but is it possible to make our camera not to appear such a problem?
Or is it a inherent problem of low performance embedded system.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: vxWorks IP/UDP stack performance problem
Date: 19 Apr 2002 22:44:26 -0700
From: jschen_97@yahoo.com (James Chen)
Organization: http://groups.google.com/
Message-ID: <c66096d9.0204192144.78820887@posting.google.com>
References: <c66096d9.0204180928.55be7e9@posting.google.com> <2025ac82.0204190201.12238178@posting.google.com>
The receiving path is even worse than the TX path.
On 8260, from INTR to socket receive complete it
takes 800us for SCC and 332us for FCC.
It takes the same amount of time (100us) from INTR
to pushing up to IP stack in both SCC and FCC driver.
I don't understand why there is almost 500us
difference
between a FCC packet and a SCC packet processing
in the IP stack even thought both driver (mux) layer
takes the same amount of time.
This test is done with only vxWorks tasks running. I
made sure there was no other IP traffic, no serial
INTRs.
Another observation (or surprise) is the mblk memory
copy in the driver layer. It takes around 200us just
to do a copy in the SCC driver, but only 40us in the
FCC driver. This doesn't make any sense. Both piece
of code is executed on the same power PC???
Thank you for sharing your experiences.
cpotenza@onetel.net.uk (Claudio Potenza) wrote in message news:<2025ac82.0204190201.12238178@posting.google.com>...
> jschen_97@yahoo.com (James Chen) wrote in message
>
> > We have a problem with the performance of vxWorks IP/UDP stack.
> > Our analysis shows that a "sendto" takes about 420us on Motorola8260
> > and 720us on 860. This measurement is done with only vxWorks tasks
> > running (i.e. our own application tasks are not running).
>
> I did the very same measurement on a 8260 (using the motFcc driver)
> and saw something like 200-300 usec to do a sendto.
> Things that you can do to improve:
>
> 1) Do you have instruction and data cache turned on? (I had)
>
> 2) you can turn off computation of UDP cheksum (there is
>    an ioctl code to do this)
>
> 3) ?????
>
> I can tell you that in my project in the end I decided to preformat
> the IP and UDP header header and send the packet as raw ethernet
> packets using the ifstruct->if_output function.
> This way I obtained something around 70-80 usec per send
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosfs2: upper/lower case  8.3 file name format
Date: Sat, 20 Apr 2002 08:46:44 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$nf1vug$e7e$1@lnews.actcom.co.il>
References: <fcb7d817.0204190241.519e1e50@posting.google.com>
Hans,
please let me explain:
An old style 8.3 file name is stored in directory entry with all alphabetic
characters in upper case, that is the rule for 8.3 file names. In fact,
Scandisk on Windows would claim it is an error to have a lower case
or an international character in an 8.3 file name.
For some reason, some Microsoft systems display the 8.3 file names
in lower case, or first letter upper case, other lower case.
DosFs2 displays the file names EXACTLY as they appear in the directory
entry,
and does not limit the characters to upper case, because over the years many
DOS-based applications used international cahracters in file names, and I
have
decided (when designing DosFs2) that this should be allowed in VxWorks,
hence
there is no CONVERSION of characters for displaying either 8.3 or long file
names
by the file system, and no restrictions - all 8 bits can be used.
Hope this helps,
    Leonid Rosenboim
"Hans Vermeersch" <hans.vermeersch@protronic.com> wrote in message
news:fcb7d817.0204190241.519e1e50@posting.google.com...
> Suppose you create a file or a directory with a name following the old
> dos 8.3 file name format on a compact flash card on a Win2000 pc. The
> cf card has been formatted following the FAT file system.
> Then you take this compact flash card to a VxWorks 5.4 environment
> with dosfs2. Now this same file or directory appears with its name in
> upper case. A file or directory name not following the 8.3 format is
> not changed.
>
> If one repeats the same experiment on a Win98 pc, then the file or
> directory name is not changed when using dosfs2.
>
> Does anyone know a work-around for this problem?
>
>
> Thanks in advance,
>
> Hans Vermeersch.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: bytepacking of arrays
Date: Sat, 20 Apr 2002 09:43:47 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$q24vug$eae$1@lnews.actcom.co.il>
References: <a9pms0$43j$1@news-int.gatech.edu>
I have had some experience with such tricks in the past, with partial
success.
The syntax you used should suffice, but results will differn greatly
depending
on your target architecture. Not all compiler backends are capable of
generating
code for accesing misaligned data types selectively for packet members.
If you are doing a special code for one particular CPU, then this approach
is
viable, and all you need to do is double check the structure sizeof()
result,
which will tell you if the compiler did or did not pack the structure.
But if you are doing portable code, then by all means I recommend to avoid
this practice, and define the structure simply as an array of bytes, and
some code
(perhaps macro) to convert the composite fields into native data types,
thereby
also preserving correct byte order.
HTH
"Suresh Kannan" <suresh_kannan@ae.gatech.edu> wrote in message
news:a9pms0$43j$1@news-int.gatech.edu...
> Hello,
>
> I want to pack my structures using the __attribute__((packed)) directve
for
> gcc. For example I have declared my structures to be
>
> strcut foo {
>    char a;
>    double b;
>    char c;
> } __attribute__((packed));
>
> In my code I refer to it as for example
>
> void myfunc() {
>    struct foo instance1;
>    struct foo *pinstance1 = &instance1;
>    ...some code..
> }
>
> My questions are as follows :
>
> 1) Since I do not typedef my strucutre and I use the "struct foo" to
declare
> my instances and pointers to instances everytime...will it work ? Do I
just
> have to declare the packed attribute for the structures "decleration" in
my
> header files as opposed to instances defined in my C files as well ?
>
> 2) Is it enough that I used the __attribute__ directive once for the
entire
> structure ? The effect I want is that I want no holes in my structure. Or,
> do I have to declare each member with the __attribute__ directive.
>
> 3) How about declaring arrays of these variables ? For example "struct foo
> fooarray[10];" in my C code. Can I assume that this array is tightly
packed
> ?
>
> Note that I tried the #pragma pack 1 and #pragma pack 0 directives, but it
> did not work well, which is why I am using the _attribute_ directive and
it
> seems to work. I am compilg using the gcc compiler that comes with Tornado
> 2.0.2
>
>
> regards,
> suresh.
>
>
>
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Netfilter, ipchains, iptables...
Date: Sat, 20 Apr 2002 09:55:01 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$gl4vug$rae$1@lnews.actcom.co.il>
References: <uelhbk5cy.fsf@yahoo.com>
Howdy Bill,
Here is another method, which works for ALL INTERFACES, on a 5.4,
note there is only one hook at the IP input end, which will let you sniff
all incoming packets, but not the outgoing ones.
Here is a snip of a packet filter I wrote some time ago.
- -----------------------------------------------------------------------
BOOL netFilterHook2if
    (
    struct ifnet *pIf,      /* interface packet was received on */
    struct mbuf **pPtrMbuf,  /* pointer to pointer to an mbuf chain */
    struct ip   **pPtrIpHdr, /* pointer to pointer to ip header */
    int          ipHdrLen /* ip packet header length */
    )
    {
    /* ... ... ... */
_packet_drop: /* Dtop this packet, and don't forget to free its resources */
    m_freem(*pPtrMbuf);
    return(TRUE);
_packet_accept: /* Continue normal processing of packet */
    return(FALSE);
    }
extern FUNCPTR _ipFilterHook ;    /* DECLARE HOOK */
_ipFilterHook = netFilterHook2if ;  /* install filter */
- ---------
Hope this helps,
    Leonid
"Bill Pringlemeir" <bpringlemeir@yahoo.com> wrote in message
news:uelhbk5cy.fsf@yahoo.com...
>
> I am designing a module that is to log network data.  I think that
> etherInputHook() can be used with a mux/bsd driver.  However, what
> mechanism can be used to log PPP and SLIP packets?  Raw packets are
> fine and the data.  The ability to accept/deny data is also good, but
> not mandated.  The purpose is that if a network node gets too much
> "spurious" traffic, it will present a message to a logging system.
>
> Snarf, muxTkBind, and bfp are all things that might be related to
> this.  I am not sure what Tornado/vxWorks version are needed to use
> these and I am not sure which ones are relevant and which
> documentation I should look at.
>
> Regards,
> Bill Pringlemeir.
>
> --
> Is it 1974?  What's for SUPPER?  Can I spend my COLLEGE FUND in one
>  wild afternoon??
> vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.arch.embedded,comp.os.vxworks
Subject: Re: testing fiber gigabit ethernet
Date: Sat, 20 Apr 2002 09:58:53 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$xr4vug$wae$1@lnews.actcom.co.il>
References: <3baeb99.0204190229.36793728@posting.google.com>
Perhaps this issue will be better dealt with on one of the networking
news groups, there you might find people with specific experience
building networking geat test labs, with traffic simulators sniffers
and other gear.
A PC is not nearly enough to test an embedded networked device,
not just because it cant simulate errors, but also because it can not
be expected to generate wire speed traffic, aka. works case load scenario.
You might also consider using a network lab service for testing instead
of building your own lab, because the equipment may be quite expensive.
"Demrala Rood" <demralarood@hotmail.com> wrote in message
news:3baeb99.0204190229.36793728@posting.google.com...
> I am wondering how do most people test their fiber gigabit
> ethernet devices and drivers? I am using a Netgear switch
> that has 2 fiber ports and 16 10/100 ports to connect my
> PC to device, but I can't get near line rate and forget
> testing errors because I can't make the switch do errors.
> I would like to be sure that the system can handle heavy
> traffic, short and long frames, FCS errors, etc. I think
> if put gigabit in my PC, I can push more data into device,
> but I still worry about errors and how to make them from PC.
> Can anyone please tell me how you do this?
>
> thank you
> rd
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Sun Apr 21 04:03:09 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Sun Apr 21 04:03:11 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Sun Apr 21 04:03:06 PDT 2002
        Subject: Re: User Libraries in VxWorks/GNU?  How?
        Subject: Re: bytepacking of arrays
        Subject: Re: interrupt: panic : ring buffer overflow on the shell
        Subject: Re: interrupt: panic : ring buffer overflow on the shell
        Subject: Re: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
        Subject: how to conver a fraction to nsec?
        Subject: Configuation Space readout error.
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: User Libraries in VxWorks/GNU?  How?
Date: Sat, 20 Apr 2002 09:58:59 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: Bellsouth.Net
Message-ID: <3CC17423.B3D0CF94@bellsouth.net>
References: <3CC05D4D.3776ED51@bitworkssystemsDELETETHIS.com>
Jon Newbill wrote:
> I've been using VxWorks for a little over four months now.  I've had
> much previous experience on pSOS and some QNX.  The concept of dynamc
> linking during download used on VxWorks has taken some getting used to.
> I'm still wondering how one easily finds which module (from hundreds)
> references an undefined symbol reported when downloading the .out file.
> But my question today is how one does a user library.  I have a
> collection of routines which have been used on many previous projects as
> a library.  .  It seems the concept of pulling referenced routines from
> a library doesn't exist in the development system.  It looks like the ar
> utility is used as the librarian under GNU but it's not clear how to
> compile/link with an ar archive to create a .out file for downloading.
> The alternative would be to download the entire library as a separate
> .out but I'd like to only load the referenced routines not the entire
> library.  Any help or insights would be appreciated.
>
> My environment is Pentium III target/Win32 host running VxWorks 5.4.2
>
> Jon Newbill
> JonUn@bitworkssystemsREMOVTHIS.com
In general, you build vxWorks with whatever components you need
built in.  You don't link with an archive file as  such.  If you want to
make a bootable application file, you link you app as part of the vxWorks
image.  See the instructions in the manual for makeing vxWorks.st, which is
usually made with your app all linked in to vxWorks itself.
I've never tried to do this with the (relatively) new gooey thing,
but in the classic way, you just set MACH_EXTRA = "whatever you need"
and build vxWorks.st.  If you look at the FAQ, there should be some
examples there.
Speaking only for myself,
Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: bytepacking of arrays
Date: Sat, 20 Apr 2002 10:04:09 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: Bellsouth.Net
Message-ID: <3CC17559.AA736AB6@bellsouth.net>
References: <a9pms0$43j$1@news-int.gatech.edu>
Suresh Kannan wrote:
> Hello,
>
> I want to pack my structures using the __attribute__((packed)) directve for
> gcc. For example I have declared my structures to be
>
> strcut foo {
>    char a;
>    double b;
>    char c;
> } __attribute__((packed));
>
> In my code I refer to it as for example
>
> void myfunc() {
>    struct foo instance1;
>    struct foo *pinstance1 = &instance1;
>    ...some code..
> }
>
> My questions are as follows :
>
> 1) Since I do not typedef my strucutre and I use the "struct foo" to declare
> my instances and pointers to instances everytime...will it work ? Do I just
> have to declare the packed attribute for the structures "decleration" in my
> header files as opposed to instances defined in my C files as well ?
>
> 2) Is it enough that I used the __attribute__ directive once for the entire
> structure ? The effect I want is that I want no holes in my structure. Or,
> do I have to declare each member with the __attribute__ directive.
>
> 3) How about declaring arrays of these variables ? For example "struct foo
> fooarray[10];" in my C code. Can I assume that this array is tightly packed
> ?
>
> Note that I tried the #pragma pack 1 and #pragma pack 0 directives, but it
> did not work well, which is why I am using the _attribute_ directive and it
> seems to work. I am compilg using the gcc compiler that comes with Tornado
> 2.0.2
>
> regards,
> suresh.
1. Never tried it, but you could use -s and check the output.
2. No.  Do it on every line.
3. Unlikely.
<Unsolicited advice, worth exactly what you paid for it>
    packing in general causes slow code, and doesn't work at all
for some platforms.  (SPARC is an example).  It's probably not a good
idea.
</Unsolicited advice, worth exactly what you paid for it>
Speaking only for myself,
Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: interrupt: panic : ring buffer overflow on the shell
Date: Sat, 20 Apr 2002 10:10:10 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: Bellsouth.Net
Message-ID: <3CC176C2.FE8650D2@bellsouth.net>
References: <c104e646.0204191804.133d37e5@posting.google.com>
Young Hoon Park wrote:
> Hi, everybody.
>
> I am a newbie on VxWorks.
> We developed embedded network camera and faced some problem.
> Our camera's platform uses NetARM 40 CPU from NetSilicon and
> running VxWorks 5.4 (Kernel version 2.5).
> Please help me to solve the problem.
>
> One of our customer reported that our camera dies on their network environment.
> It dies several times a day. It does not respond to the ping command and
> users cannot access it with web browser. And he said that the camera shows a
> "interrupt : panic : ring buffer overflow" messages on the target shell.
> (He saw the messages in the hypter terminal.)
> The only method to get back the camera is power OFF/ON.
>
> Based on the clue our customer provided, we made the camera in our side
> reappear the phenomenon. We use private network 192.168.1.0 and there
> are many cameras on the network. (about 10).
> And I tried the command in the linux machine on the network,
> "ping -b -f 192.168.1.255". (ping with broadcasting and flooding).
> After for a while, the camera on our network shows the same message
> "interrupt : panic : ring buffer overflow" on the shell.
> It also does not respond to the ping command(without -b and -f option) anymore.
>
> Although I am not sure whether the network environment of our customer is
> the same with ping broadcasting and flooding situation,
> but is it possible to make our camera not to appear such a problem?
> Or is it a inherent problem of low performance embedded system.
    Your fundamental problem is that processing network info is taking too
long.  You need to time the functions that get data from the net (or put it
in) and compare to the amout of data flowing.  For example, it your cam
is transmitting using UDP and on a 10baseT net, count on no more than
3 mbits per second output under really good conditions.  Note that this
is a total for all data on the net from all cams operating, not just a single
unit.  If you are using TCP, add some more time for overhead.  You might
try using zbufs, which reduce overhead somewhat, but overall, you need
to do a bandwidth analysis to see how much traffic is being offered to the
net, and how much it can handle.
Speaking only for myself,
Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: interrupt: panic : ring buffer overflow on the shell
Date: 20 Apr 2002 12:21:21 -0700
From: tlksk@hotmail.com (Kumar)
Organization: http://groups.google.com/
Message-ID: <f01af1e2.0204201121.1c6f5d41@posting.google.com>
References: <c104e646.0204191804.133d37e5@posting.google.com> <3CC176C2.FE8650D2@bellsouth.net>
Hi
   Are you processing the network packets using netJobAdd. This might
lead problem like this. As netJobAdd puts the network packets into an
ring buffer for processing.
Kumar
joe durusau <durusau@bellsouth.net> wrote in message news:<3CC176C2.FE8650D2@bellsouth.net>...
> Young Hoon Park wrote:
>
> > Hi, everybody.
> >
> > I am a newbie on VxWorks.
> > We developed embedded network camera and faced some problem.
> > Our camera's platform uses NetARM 40 CPU from NetSilicon and
> > running VxWorks 5.4 (Kernel version 2.5).
> > Please help me to solve the problem.
> >
> > One of our customer reported that our camera dies on their network environment.
> > It dies several times a day. It does not respond to the ping command and
> > users cannot access it with web browser. And he said that the camera shows a
> > "interrupt : panic : ring buffer overflow" messages on the target shell.
> > (He saw the messages in the hypter terminal.)
> > The only method to get back the camera is power OFF/ON.
> >
> > Based on the clue our customer provided, we made the camera in our side
> > reappear the phenomenon. We use private network 192.168.1.0 and there
> > are many cameras on the network. (about 10).
> > And I tried the command in the linux machine on the network,
> > "ping -b -f 192.168.1.255". (ping with broadcasting and flooding).
> > After for a while, the camera on our network shows the same message
> > "interrupt : panic : ring buffer overflow" on the shell.
> > It also does not respond to the ping command(without -b and -f option) anymore.
> >
> > Although I am not sure whether the network environment of our customer is
> > the same with ping broadcasting and flooding situation,
> > but is it possible to make our camera not to appear such a problem?
> > Or is it a inherent problem of low performance embedded system.
>
>     Your fundamental problem is that processing network info is taking too
> long.  You need to time the functions that get data from the net (or put it
> in) and compare to the amout of data flowing.  For example, it your cam
> is transmitting using UDP and on a 10baseT net, count on no more than
> 3 mbits per second output under really good conditions.  Note that this
> is a total for all data on the net from all cams operating, not just a single
> unit.  If you are using TCP, add some more time for overhead.  You might
> try using zbufs, which reduce overhead somewhat, but overall, you need
> to do a bandwidth analysis to see how much traffic is being offered to the
> net, and how much it can handle.
>
> Speaking only for myself,
>
> Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: PowerPC BSP design: stack handling / cpu core difference between MPC860 and MPC823e ?
Date: 20 Apr 2002 21:50:25 -0700
From: r.stelzer@stoye.de (Rainer Stelzer)
Organization: http://groups.google.com/
Message-ID: <78a5d372.0204202050.6bd9543b@posting.google.com>
References: <78a5d372.0204180848.6fa1f1f@posting.google.com> <pkockritz-CE493C.22423518042002@netnews.attbi.com>
> Check the stack usage of your interrupt handlers and watchdog callback
> routines. Work that is to be done by these can be deferred and done
> in the context of _any_ task.
That's the problem.
Allocating about 5k within a watchdog callback routine to
post a message in a queue caused the problem.
Thanks.
Thanks to David too.
Rgds
Rainer
---------------------------
Newsgroups: comp.os.vxworks
Subject: how to conver a fraction to nsec?
Date: 21 Apr 2002 00:05:07 -0700
From: zvikag@yahoo.com (zvi)
Organization: http://groups.google.com/
Message-ID: <d5e10f97.0204202305.207423ac@posting.google.com>
Hello dear vxWorkers!!
I need a mathematical advise:
how to convert fraction (in an NTP client)to nano seconds?
TIA
Zvi
---------------------------
Newsgroups: comp.os.vxworks
Subject: Configuation Space readout error.
Date: 21 Apr 2002 01:38:09 -0700
From: liandongzhang@hotmail.com (liandongzhang)
Organization: http://groups.google.com/
Message-ID: <83f4aa95.0204210038.146944be@posting.google.com>
I want to get the all devices's vendor ID and device ID on my pci by
the following function(with the device id and vendor id i can get the
bus address of each pci card,and with the bus address i can use it to
programe my video card,maybe .i am not sure) throuth the following
function.
but the function can find only device as:
device id is:125o
vendor id is:8086
#define PCI_VENDOR_ID_INTEL		0x8086
#define PCI_DEVICE_ID_INTEL_82439	0x1250
i want to know if my function works all right with only one device can
be read out by it.and if it is right why it can only find one device?
i have a s3 Trio64V+ video card.
#include "vxWorks.h"
#include "stdio.h"
#include "stdlib.h"
#include "semLib.h"
#include "taskLib.h"
#include "sysLib.h"
#define STACK_SIZE	20000
struct _pci_info{
	int bus;
	int device;
	int function;
	int venderid;
	int deviceid;
 };
int tidMonitor;
struct _pci_info infoarray[20];
void monitor (void);
STATUS progStart (void)
{
	int j,k,i;
	int kk = 0;
	int pci_max_bus = 5;
	int pci_max_device = 5;
	int pci_max_functions = 5;
	int offset = 0;
	long dwTemp;
	int ret;
 	for (i=0;i< pci_max_bus;i++)
           	for(j=0;j<pci_max_device;j++)
            		for(k=0;k<pci_max_functions;k++)
			{
                		ret = pciConfigInLong(i,j,k,offset,&dwTemp);
				printf("ret is %d\n",ret);
				printf("dwtemp is %x\n",dwTemp);
  			}
     return (OK);
}
//////////////////////////////////////////////////////////////////////////////
i think the bus address of a pci dev can be achiceved from two places
one is throuth read the configuation space of each device and this
will be fine for all the situations.
second is read the address information from the Memory.Because i think
Pci bios has finished enumeration and configuation in the process of
post.and had put the information collected in somewhere in the
Memory(i don't know where)
Is what i think right??
//////////////////////////////////////////////////////////////////////////////
once i get the bus address of the frame buffer and registers on
videocard can i start programe my videocard driver for vxworks?
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Mon Apr 22 04:03:11 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Mon Apr 22 04:03:13 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Mon Apr 22 04:03:08 PDT 2002
        Subject: Re: testing fiber gigabit ethernet
        Subject: Re: how to conver a fraction to nsec?
        Subject: Re: VxWorks/SourceSafe bizar problem
        Subject: Re: bytepacking of arrays
        Subject: Re: sound device driver for cs4281
        Subject: unable to add equal cost routes
        Subject: Re: dosfs2: upper/lower case  8.3 file name format
        Subject: Porting code from BSD to Vxworks
        Subject: Query on FTP.
        Subject: Query on FTP
        Subject: Re: Maximum num of NPT devices attached to Ip stack?
        Subject: ABOUT MAKE FILE
        Subject: Re: ABOUT MAKE FILE
        Subject: Promiscuous mode not working for FEI Intel 8255x
-------------------------------------------------------
Newsgroups: comp.arch.embedded,comp.os.vxworks
Subject: Re: testing fiber gigabit ethernet
Date: 21 Apr 2002 07:23:48 -0700
From: demralarood@hotmail.com (Demrala Rood)
Organization: http://groups.google.com/
Message-ID: <3baeb99.0204210623.bd44697@posting.google.com>
References: <3baeb99.0204190229.36793728@posting.google.com> <newscache$xr4vug$wae$1@lnews.actcom.co.il>
"Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message news:<newscache$xr4vug$wae$1@lnews.actcom.co.il>...
> Perhaps this issue will be better dealt with on one of the networking
> news groups, there you might find people with specific experience
> building networking geat test labs, with traffic simulators sniffers
> and other gear.
>
> A PC is not nearly enough to test an embedded networked device,
> not just because it cant simulate errors, but also because it can not
> be expected to generate wire speed traffic, aka. works case load scenario.
>
> You might also consider using a network lab service for testing instead
> of building your own lab, because the equipment may be quite expensive.
Thank you, Leonard, for your kind advice. I suspected I might cause
such a reply as your so I should have said that I did not hope to hear
from people with have hundred thousands dollars equipment. I wanted to
hear from people like me which have little budget and are working in
embedded systems using giga ethernet. I will thank those which rfeplied
to me personal to look into renting very expensive testers. I will
check this but maybe have no choice but to use my PC with giga-card.
I have more time then money to spent.
dr
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: how to conver a fraction to nsec?
Date: 21 Apr 2002 08:40:40 -0700
From: demralarood@hotmail.com (Demrala Rood)
Organization: http://groups.google.com/
Message-ID: <3baeb99.0204210740.3e5888d2@posting.google.com>
References: <d5e10f97.0204202305.207423ac@posting.google.com>
zvikag@yahoo.com (zvi) wrote in message news:<d5e10f97.0204202305.207423ac@posting.google.com>...
> Hello dear vxWorkers!!
>
> I need a mathematical advise:
> how to convert fraction (in an NTP client)to nano seconds?
x        1,000,000,000             x * 1,000,000,000
- -    *   -------------      =      -----------------
y              y                           y
dr
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: VxWorks/SourceSafe bizar problem
Date: Sun, 21 Apr 2002 16:12:07 +0000 (UTC)
From: "Franco Bassetti" <francobassetti@hotmail.com>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <28425636ea7cc10f2ecb9d7354ed81d2.37262@mygate.mailgate.org>
References: <a8sic6$hd8$1@news.inter.net.il> <3CB1CF9A.860F87C1@wanadoo.fr> <3CB5C1C5.88F2D4F9@notifier-is.net>
I suggest telling sourcesafe that wpj files
are binary....
For wpj files you will not be able to see difference between versions
but it works.
Alberto
- --
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: bytepacking of arrays
Date: 22 Apr 2002 00:06:19 GMT
From: Denis Perelyubskiy <denis_newsREMOVE-TO-REPLY@hotmail.com>
Message-ID: <slrnac6kvr.mqg.denis_newsREMOVE-TO-REPLY@finch.lecs.cs.ucla.edu>
References: <a9pms0$43j$1@news-int.gatech.edu>
hello,
 * Suresh Kannan <suresh_kannan@ae.gatech.edu> [04-Fri-02
 * 11:17 -0700]:
 >
 > Hello,
 > I want to pack my structures using the __attribute__((packed)) directve for
 > gcc. For example I have declared my structures to be
 > strcut foo {
 >    char a;
 >    double b;
 >    char c;
 > } __attribute__((packed));
 > In my code I refer to it as for example
 > void myfunc() {
 >    struct foo instance1;
 >    struct foo *pinstance1 = &instance1;
 >    ...some code..
 > }
 > My questions are as follows :
 > 1) Since I do not typedef my strucutre and I use the
 > "struct foo" to declare my instances and pointers to
 > instances everytime...will it work ? Do I just have to
 > declare the packed attribute for the structures
 > "decleration" in my header files as opposed to instances
 > defined in my C files as well ?
that has nothing to do with your particular problem, so
don't worry about it. typedef is merely a syntactic suggar,
so eventually everything comes back to the definition of the
structure (in your case) in question
 > 2) Is it enough that I used the __attribute__ directive
 > once for the entire structure ? The effect I want is that
 > I want no holes in my structure. Or, do I have to declare
 > each member with the __attribute__ directive.
I could never figure that one out, and both Joe and Leonid
have answered that. I think I might've seen different
results in different settings: so you should see what
sizeof() tells you... now, how portable this will turn out
to be, is something I can't tell you. I think I might've
just rephrased what Leonid said in an earlier post :)
 > 3) How about declaring arrays of these variables ? For
 > example "struct foo fooarray[10];" in my C code. Can I
 > assume that this array is tightly packed ?
I believe you are guaranteed by the C standard that elements
in the array are at consecutive memory locations, so yes.
However, what could happen is that there is no padding
between structures, but there is padding at the end of
structures. This goes back to the previous question
 > Note that I tried the #pragma pack 1 and #pragma pack 0
 > directives, but it did not work well, which is why I am
 > using the _attribute_ directive and it seems to work. I
 > am compilg using the gcc compiler that comes with Tornado
 > 2.0.2
Not only that, but they are highly error prone: consider
what happens if you forget to do a #pragma pack after
#pragma pack 1 in beginning of the header file somewhere -
every file in your compilation unit included after this
point will fall under #pragma pack 1... this sucks.
 > regards,
 > suresh.
denis
- --
if you want to reply by mail, please tweak my
address in a reasonable way. sorry for the
inconvenience.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: sound device driver for cs4281
Date: Mon, 22 Apr 2002 01:25:28 GMT
From: "ChanSeong Mike Kim" <cskim@fdlab.co.kr>
Organization: Dacom
Message-ID: <cEJw8.4244$WH4.628275@news.bora.net>
References: <BX2w8.1206$IF.7055@news.hananet.net>
OSS(Open Sound System) provides a eval. and working driver for Vxworks as I
know.
Visit www.oss.com  then request evaluation version.
"james" <james018@hananet.net> wrote in message
news:BX2w8.1206$IF.7055@news.hananet.net...
> hi, everybody.
>
> I am a beginner for vxworks. I try to find any device driver for cs4281
> sound chip.
> If you have any exprience to develop the device driver for cs4281.
> please give me any information.
>
> James Kim
> mail : james018@hananet.net
>
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: unable to add equal cost routes
Date: 21 Apr 2002 21:08:12 -0700
From: sai_dattathrani@infy.com (sai)
Organization: http://groups.google.com/
Message-ID: <8dff11cd.0204212008.6d401648@posting.google.com>
Hi,
 I tried adding routes to same destination with different gateway. But
VxWorks does not seem to accept.
If I try to add route to destination 50.0.0.0 as below
Destination  Gateway
50.0.0.0     90.0.0.1
50.0.0.0     90.0.0.3
Tried adding using RouteAdd() function provided by VxWorks and routing
socket, the second route is not added to the kernel. Routing socket
returns (File exist - EEXIST) error.
 could someone please help me solve this problem.
rgds
sai
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosfs2: upper/lower case  8.3 file name format
Date: 21 Apr 2002 23:49:18 -0700
From: hans.vermeersch@protronic.com (Hans Vermeersch)
Organization: http://groups.google.com/
Message-ID: <fcb7d817.0204212249.267442b8@posting.google.com>
References: <fcb7d817.0204190241.519e1e50@posting.google.com> <newscache$nf1vug$e7e$1@lnews.actcom.co.il>
"Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message news:<newscache$nf1vug$e7e$1@lnews.actcom.co.il>...
> Hans,
> please let me explain:
>
> An old style 8.3 file name is stored in directory entry with all alphabetic
> characters in upper case, that is the rule for 8.3 file names. In fact,
> Scandisk on Windows would claim it is an error to have a lower case
> or an international character in an 8.3 file name.
> For some reason, some Microsoft systems display the 8.3 file names
> in lower case, or first letter upper case, other lower case.
>
> DosFs2 displays the file names EXACTLY as they appear in the directory
> entry,
What I still do not understand is why this same file name on the
compact flash card is correct on a Win2000 or Win98 pc. Let me give an
example :
1. create a file "UPPlow.TxT" on a cf card (FAT formatted) on Win98 pc
2. this same file appears as "UPPLOW.TXT" with DosFs2
3. this same file appears as "UPPlow.TxT" on a Win2000 or Win98 pc
So, I think there must be some additional information somewhere hidden
in the compact flash file system that has not been used by the DosFs2.
Does anyone know where this information has been hidden, and how you
can retrieve it ?
Thanks,
Hans Vermeersch.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Porting code from BSD to Vxworks
Date: 22 Apr 2002 01:04:23 -0700
From: li.mingzheng@mail.zte.com.cn (Li Ming Zheng)
Organization: http://groups.google.com/
Message-ID: <15dcd3bc.0204220004.1b8e316c@posting.google.com>
Hi,
Currently, we are doing a project working on IPv6, we are supposed to
port the IP protocol stack  source code written in C from FreeBSD to
Vxworks, however, we don't have this kind of experience before, we
still have no idea on how to port code from unix to Vxworks.
Anybody has this kind of experience and can help? Could you please
give us any suggestions on how to port TCP/IP from UNIX to Vxworks,
how many main concerns throghout this process. And how to start to
make future work easier?
Thank you very much for your time!!
Best Regards
Mingzheng
---------------------------
Newsgroups: comp.os.vxworks
Subject: Query on FTP.
Date: Mon, 22 Apr 2002 13:59:56 +0530
From: "Saurabh Bahl" <sbahl@cisco.com>
Organization: Cisco Systems Inc.
Message-ID: <1019464061.93771@sj-nntpcache-5>
Hi ,
When i use ftpXfer() system call  on VxWorks ,  it returns me an error
number 0xdd . Any pointers what this error number stands for and why am i
getting this error ?
Thanks,
Saurabh Bahl
---------------------------
Newsgroups: comp.os.vxworks
Subject: Query on FTP
Date: Mon, 22 Apr 2002 14:06:10 +0530
From: "Saurabh Bahl" <sbahl@cisco.com>
Organization: Cisco Systems Inc.
Message-ID: <1019464367.468195@sj-nntpcache-5>
Hi,
I am using ftpXfer() system call on VxWorks . Its returning me an error
number 0xdd . Any one has any pointers to what this error number means ?
Thanks,
Saurabh
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Maximum num of NPT devices attached to Ip stack?
Date: Mon, 22 Apr 2002 10:31:26 +0100
From: Aidan Kenny <aidank@s3group.com>
Organization: Esat Net Customer
Message-ID: <3CC3D86E.EA15C1EA@s3group.com>
References: <99723b54.0204180646.249afaf8@posting.google.com>
This is a multi-part message in MIME format.
- --------------A2BB93955E0CF486416AF103
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Found it!
There is a MAX_MUX_BIND defined in useNetwork.c
Hope this helps somebody else,
Regards,
Aidan.
Aidan Kenny wrote:
> Hi everyone,
> Perhaps you can help me. Is there a mechanism of setting the maximum
> number of NPT devices that you can attach to the IP stack in VxWorks.
> We are successfully attaching 8 Npt drivers and then the ninth fails.
> We have seen the configAll.h #define NUM_DRIVERS = 20. So this is not
> the problem. Any idea what is going on?
> Thanks for any help,
> Aidan.
- --------------A2BB93955E0CF486416AF103
Content-Type: text/x-vcard; charset=us-ascii;
 name="aidank.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Aidan Kenny
Content-Disposition: attachment;
 filename="aidank.vcf"
begin:vcard
n:Kenny;Aidan
tel;work:00-353-1-2911340
x-mozilla-html:FALSE
url:www.s3group.com
org:Silicon and Software Systems (S3);Communications Infrastructure
version:2.1
email;internet:aidank@s3group.com
title:Software Engineer
adr;quoted-printable:;;Whelen House,=0D=0ASouth County Business Park,=0D=0ALeopardstown =0D=0A=0D=0A;Dublin 18;;;Ireland
fn:Aidan Kenny
end:vcard
- --------------A2BB93955E0CF486416AF103--
---------------------------
Newsgroups: comp.os.vxworks
Subject: ABOUT MAKE FILE
Date: 22 Apr 2002 02:41:20 -0700
From: lionjackyfish@sina.com.cn (JackyLiu)
Organization: http://groups.google.com/
Message-ID: <425faaf3.0204220141.439a2dae@posting.google.com>
Would anyone can give a example about making losts of files which
loacted at vary directories?  i don't want use project facility to add
every files again and again each time when i create a new project !
Thanks!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: ABOUT MAKE FILE
Date: 22 Apr 2002 10:14:37 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91F87C90B2C41borkhuisagerecom@135.7.153.101>
References: <425faaf3.0204220141.439a2dae@posting.google.com>
lionjackyfish@sina.com.cn (JackyLiu) wrote:
> Would anyone can give a example about making losts of files which
> loacted at vary directories?  i don't want use project facility to add
> every files again and again each time when i create a new project !
You could try to add the files to the project file. If you add them to the
Makefile you cannot use the project facility, as this overwrites the
Makefile.
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: Promiscuous mode not working for FEI Intel 8255x
Date: 22 Apr 2002 03:48:37 -0700
From: surajkant@usa.net (Suraj Kant)
Organization: http://groups.google.com/
Message-ID: <66a06107.0204220248.7fe86349@posting.google.com>
Hi,
I am trying to set the ethernet card into promiscuous mode by
ifFlagChange( "fei0", 0x100, 1);
when I do a ifShow "fei0",
It shows that the card is set to promiscuous mode but I don't get any
packets apart from the
a. Destined for the station
b. Broadcast
c. Multicast ( This gets enabled when I set the promiscuous flag).
What I suspect is that the fei driver is not setting the card to
promiscuous mode instead it is setting it into multicast mode.
I am using pcPentium bsp supplied by Windriver and the driver is from
WRS only.
Any pointers would be appreciated.
Can any one suggest a method for setting the Intel's 82559 into
promiscuous mode directly without using the vxWorks standard APIs.
Thanx
Suraj
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Mon Apr 22 07:00:24 2002
From: Atkinson Andrew <AATKINSON1@qinetiq.com>
Date: Mon Apr 22 07:00:27 PDT 2002
Subject: System Memory -
Hi All
I have a board fitted with 64M DRAM and I wish to make all of this available to my system/application. What I want to get clear is the correct process for doing this - a combination of BSP documentation, Wind River WTN and Wind River Manuals has not made this 100% clear.
At present what I am trying is this:
1. Set LOCAL_MEM_SIZE to 32MB
2. USER_RESERVED_MEM to 32MB.
3. Once the system has booted use memAddToPool (0x02000000, 0x02000000) to add the remianing the 32MB to the system meory pool.
Now the points I am unclear on are:
1. When is the correct time to call memAddToPool? Should this be called from usrRoot as suggested in the Wind River documentation or can this be called from an application?
2. I am assuming that this additional memory will then need mapping in to my sysPhysMemDesc strcuture along with the rest of system RAM, is this correct? When does this need to be done and where from (typically)?
3. If I were to use LOCAL_MEM_AUTOSIZE the memory map gets updated automatically during sysHwInit. Do I still need to call memAddToPool if auto-sizing is employed?
The OS/Target details are VxWorks 5.4 and Radstone PPC4 (603)
Any help appreciated
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
--
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.
From vxwexplo-errs@csg.lbl.gov  Mon Apr 22 10:19:29 2002
From: "Shah, Ranjana" <SHAH@Telephonics.com>
Date: Mon Apr 22 10:19:31 PDT 2002
Subject: Re: Query on FTP.
Saurabh,
0xdd = 221 is a normal reply when the ftp connection is closed.
Refer to http://www.nwconnection.com/2000_09/ftp/replies.html
<http://www.nwconnection.com/2000_09/ftp/replies.html>
for a list of Replies to FTP Commands. All of them may not be implemented in
the ftp client of VxWorks.
Ranjana Shah
Hi ,
When i use ftpXfer() system call on VxWorks , it returns me an error
number 0xdd . Any pointers what this error number stands for and why am i
getting this error ?
Thanks,
Saurabh Bahl
Ranjana Shah
Staff Engineer
Telephonics Corp.
Voice: (631) 549-6104
FAX: (631) 755-7642
From vxwexplo-errs@csg.lbl.gov  Mon Apr 22 17:52:22 2002
From: Fanming <fanming2000@etang.com>
Date: Mon Apr 22 17:52:25 PDT 2002
Subject: intLock problem
We are developping programs base PPC8240,using vxworks 5.4,and we often find that status of tasks(tNetTask or ourself tasks) is READY,and program counter stops at intLock(),asm "mtmsr r4",
why?
can anyone help me ? thanks.
From vxwexplo-errs@csg.lbl.gov  Mon Apr 22 23:48:46 2002
From: "Ronny Oren" <roren@rugged.com>
Date: Mon Apr 22 23:48:49 PDT 2002
Subject: Code Search - SAP/SDP , RTSP
Hello,
I am using a vxWorks based system, which act as a server of video data.
The server sends streams of video via the net to multicast groups.
I am looking for SAP/SDP, RTSP protocol codes that can be added to my
server.
If any one had encountered those codes, please let me know where can I find
them.
Thank you,
Ronny
From vxwexplo-errs@csg.lbl.gov  Tue Apr 23 03:28:07 2002
From: "Webb (ext) Stuart" <Stuart.Webb.ext@ts.siemens.de>
Date: Tue Apr 23 03:28:09 PDT 2002
Subject: Compiling STL using VxWorks compiler
Hi,
Hopefully Ive landed in the right place.
We are newly compiling a project using VxWorks (target :
TORNADO2T.x86-cygnus-2.7.2-960126) and are getting many errors.  The same
project compiles perfectly using the Visual Studio compiler.
The following type declaration appears to create problems :
map<int,vector<string>>
Does anybody know how to make this work, or which newsgroup I should
contact.
Regards,
Stuart Webb
From vxwexplo-errs@csg.lbl.gov  Tue Apr 23 04:03:17 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Tue Apr 23 04:03:19 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Tue Apr 23 04:03:12 PDT 2002
        Subject: What is the callback function?
        Subject: Re: explicit template instantiation of basic_string
        Subject: Ntp Client driver and clock_gettime
        Subject: Re: What is the callback function?
        Subject: Re: User Libraries in VxWorks/GNU?  How?
        Subject: Driver for VME acquisition board
        Subject: IPDetach Error!
        Subject: Re: Query on FTP.
        Subject: ipFilterLib [was: Netfilter, ipchains, iptables...]
        Subject: Re: Promiscuous mode not working for FEI Intel 8255x
        Subject: Re: dosfs2: upper/lower case  8.3 file name format
        Subject: dosFs2: lower case directory name handling
        Subject: Re: ABOUT MAKE FILE
        Subject: Expect and DejaGnu... Testing 1 2 3...
        Subject: kbhit
        Subject: How do you call GNU make recursively on Win32 host
        Subject: How to wait until keyboard is pressed
        Subject: Re: How do you call GNU make recursively on Win32 host
        Subject: Re: How do you call GNU make recursively on Win32 host
        Subject: [Q]How to take a picture using USB Camera with x86 board(PENTIUM)-Vxworks 5.4 + UGL + ZINC
        Subject: Re: How do you call GNU make recursively on Win32 host
        Subject: Re: Promiscuous mode not working for FEI Intel 8255x
        Subject: Re: [Q]How to take a picture using USB Camera with x86 board(PENTIUM)-Vxworks 5.4 + UGL + ZINC
        Subject: Re: Driver for VME acquisition board
        Subject: Re: kbhit
        Subject: Detecting IP conflict with Gratuitous ARP
        Subject: Re: dosfs2: upper/lower case  8.3 file name format
        Subject: Re: dosfs2: upper/lower case  8.3 file name format
        Subject: Re: dosFs2: lower case directory name handling
        Subject: Re: ipFilterLib [was: Netfilter, ipchains, iptables...]
        Subject: Re: dosfs2: upper/lower case  8.3 file name format
        Subject: Re: testing fiber gigabit ethernet
        Subject: Re: Promiscuous mode not working for FEI Intel 8255x
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: What is the callback function?
Date: 22 Apr 2002 04:41:55 -0700
From: netproa@freechal.com (James)
Organization: http://groups.google.com/
Message-ID: <3ad4e9be.0204220341.3da36d12@posting.google.com>
Hi,
Recently, I saw callback function many times
in interrupt routime of some device and functions of protocols.
What is the callback function and it's role?
Sorry, I'm not good at embedded program.
So it's difficult to question more detailed.
Thanks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: explicit template instantiation of basic_string
Date: 22 Apr 2002 05:04:51 -0700
From: timothy.j.iskander@lmco.com (Tim Iskander)
Organization: http://groups.google.com/
Message-ID: <46e37459.0204220404.70d6ec73@posting.google.com>
References: <79b35a81.0204190616.1ef5ccd0@posting.google.com>
Torsten.Pfundt@bln.siemens.de (TP) wrote in message news:<79b35a81.0204190616.1ef5ccd0@posting.google.com>...
> Hi everyone,
>
> i am working with TornadoII vxWorks. i tried to instantiate (explicit)
> the template basic_string, with this code:
>
>    #include <std/bastring.cc>
>    template class std::basic_string<char>;
>
> But there are still unresolved symbols (if i try to download the
> linked package
> to the VxSim (a vxWorks Simulator)). I compile with the
> "-fno-implicit-templates" compiler option. I think there might be a
> bug in the "std/straits.h" Header-File, 'cause only these defined
> functions (copy, move, eos, ...) are unresolved. If i explicit
> instantiate string_char_traits (template struct
> std::string_char_traits<char>;) the same errors occur.
>
> Can anyone help me?
>
> Thanks a lot, Torsten Pfundt.
Make sure you have all the C++ support enabled in the kernel.
There are separate configlettes/options for C++ string type and C++ string i/o
/Tim
---------------------------
Newsgroups: comp.os.vxworks
Subject: Ntp Client driver and clock_gettime
Date: 22 Apr 2002 05:18:26 -0700
From: ruchama@septier.com (Ruchama Goldshmidt)
Organization: http://groups.google.com/
Message-ID: <5df340e0.0204220418.2400593f@posting.google.com>
Hello!
We write a driver for an NTP client in PPC8260 board.
Now, I want to synchronize the POSIX clock with the NTP times ,when I
call the clock_gettime(CLOCK_REALTIME,&tv) and try to compare between
tv.nsec and the results I get from the NTP server I see the the time
is the POSIX is not progressing at all and it is always in the same
value I set calling to clock_settime.
tv_sec is progressing as expected but tv_nsec does not!!
Is anyone has any suggestion what to do in order to make the clock
work correctly?
TIA
Ruchama Goldshmidt.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: What is the callback function?
Date: Mon, 22 Apr 2002 09:07:53 -0400
From: david lindauer <dlindauer@notifier-is.net>
Message-ID: <3CC40B28.C7A460FA@notifier-is.net>
References: <3ad4e9be.0204220341.3da36d12@posting.google.com>
hi,
sometimes some service of an operating system (or possibly part of your
application) will need to notify you that something is happening.  There
are a variety of ways to do this, one method being a 'callback'
function.
Generally you register your callback function with by calling an
appropriate initialization routine and passing a pointer to a
user-defined function to the routine;  then when something specific
happens the routine will be called automatically by the subsystem-
usually as a reaction to some sort of event.
For example in a recent program I wrote here I pass a callback function
pointer along with each network message I send out (on a custom
network).  Then when the response comes in or a timeout occurs, the
network layer calls the callback and tells it what has happened.  By
using different callbacks for different types of network messages, I can
taylor my response rather easily, and don't have to litter the network
layer with application-specific code.
The contents of a callback routine depend heavily on how the subsystem
that calls it is written; you need to read the docs to see what you can
do while in any given callback function.
David
James wrote:
> Hi,
>
> Recently, I saw callback function many times
> in interrupt routime of some device and functions of protocols.
>
> What is the callback function and it's role?
>
> Sorry, I'm not good at embedded program.
> So it's difficult to question more detailed.
>
> Thanks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: User Libraries in VxWorks/GNU?  How?
Date: 22 Apr 2002 06:35:18 -0700
From: pkockritz@mac.com (Pete Kockritz)
Organization: http://groups.google.com/
Message-ID: <9423c55b.0204220535.620a80e7@posting.google.com>
References: <3CC05D4D.3776ED51@bitworkssystemsDELETETHIS.com>
Jon Newbill <JonUN@bitworkssystemsDELETETHIS.com> wrote in message news:<3CC05D4D.3776ED51@bitworkssystemsDELETETHIS.com>...
> But my question today is how one does a user library.  I have a
> collection of routines which have been used on many previous projects as
> a library.  .  It seems the concept of pulling referenced routines from
> a library doesn't exist in the development system.  It looks like the ar
> utility is used as the librarian under GNU but it's not clear how to
> compile/link with an ar archive to create a .out file for downloading.
> The alternative would be to download the entire library as a separate
> .out but I'd like to only load the referenced routines not the entire
> library.  Any help or insights would be appreciated.
To link a library in with your project to create the .out, under the Builds
tab of the workspace, right click on the build to which you want to add the
library and select Properties. Click the Macros tab. Set the value of the
macro PRJ_LIBS to the (full pathname) of the .a file you want to have
linked into your .out file. Be sure to click the Add/Set button to set
the value.
Pete
- --
pkockritz at mac dot com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Driver for VME acquisition board
Date: Mon, 22 Apr 2002 15:49:47 +0200
From: "Flavio FURLAN" <furlan.f@tecnomare.it>
Organization: ITnet S.p.A. is not responsible of the content of this article as posted by one of its customers.
Message-ID: <aa14fp$1b4n8$1@news02.it.net>
Hi,
I'm working to a project where I need to write a device driver
for a VME acquisition board: it has memory-mapped registers,
and I need to read from and write to them in order to obtain data.
I know all it is needed about the board hardware, but have no
expertise on coding drivers under VxWorks (5.4).
As I'm new to this O.S., could anybody point me to some
example source code, or even to a programming guide, useful to
learn how to write my own driver?
Thanks in advance.
Flavio F.
---------------------------
Newsgroups: comp.os.vxworks
Subject: IPDetach Error!
Date: Mon, 22 Apr 2002 15:14:02 +0100
From: Aidan Kenny <aidank@s3group.com>
Organization: Esat Net Customer
Message-ID: <3CC41AAA.8599B82E@s3group.com>
This is a multi-part message in MIME format.
- --------------0C3586B8CB8DC8185F5672F1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi Everyone,
I'm having a problem detaching an NPT device from the IP Stack. When I
call ipDetach(), I get the following error,
0x1d82af0 (tShell): Could not un-bind from the IP MUX!0x1d82af0
(tShell):
Could not un-bind from the ARP MUX!value = -1 = 0xffffffff = mainSem +
0xfe004e0f
Am I missing a step in my shutdown routine?
Thanks for any help,
Regards,
Aidan.
- --------------0C3586B8CB8DC8185F5672F1
Content-Type: text/x-vcard; charset=us-ascii;
 name="aidank.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Aidan Kenny
Content-Disposition: attachment;
 filename="aidank.vcf"
begin:vcard
n:Kenny;Aidan
tel;work:00-353-1-2911340
x-mozilla-html:FALSE
url:www.s3group.com
org:Silicon and Software Systems (S3);Communications Infrastructure
version:2.1
email;internet:aidank@s3group.com
title:Software Engineer
adr;quoted-printable:;;Whelen House,=0D=0ASouth County Business Park,=0D=0ALeopardstown =0D=0A=0D=0A;Dublin 18;;;Ireland
fn:Aidan Kenny
end:vcard
- --------------0C3586B8CB8DC8185F5672F1--
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Query on FTP.
Date: Mon, 22 Apr 2002 12:15:10 -0700
From: Joe Durusau <joseph.a.durusau@lmco.com>
Organization: Lockheed Martin Corporation
Message-ID: <3CC4613E.4667477@lmco.com>
References: <1019464061.93771@sj-nntpcache-5>
Saurabh Bahl wrote:
>
> Hi ,
>
> When i use ftpXfer() system call  on VxWorks ,  it returns me an error
> number 0xdd . Any pointers what this error number stands for and why am i
> getting this error ?
>
> Thanks,
> Saurabh Bahl
Best guess:
	You are loking at areplay code from a remote host, as in:
         221 Service closing control connection.
             Logged out if appropriate.
Known to happen if you leave a connection idle for a long time.
See rfc 959, or maybe a successor rfc.
Speaking only for myself,
Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: ipFilterLib [was: Netfilter, ipchains, iptables...]
Date: 22 Apr 2002 11:49:29 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <u1yd7wx6e.fsf_-_@yahoo.com>
References: <uelhbk5cy.fsf@yahoo.com> <newscache$gl4vug$rae$1@lnews.actcom.co.il>
Sender: bpringlemeir@DeadDuck
 Leonid> Here is another method, which works for ALL INTERFACES, on a
 Leonid> 5.4, note there is only one hook at the IP input end, which
 Leonid> will let you sniff all incoming packets, but not the outgoing
 Leonid> ones.  Here is a snip of a packet filter I wrote some time
 Leonid> ago.
Thanks Leonid!  You made me look at the `ipXxxxx' libraries and there
is an `ipFilterLib'.  Does anyone have experience with this?  I see
several complaints about a missing `ipFilterLib.h'.  Google is showing
this link,
 "http://www.calsoft.co.in/techcenter/network/vxworks.html"
Regards,
Bill Pringlemeir.
   ipFilterLib - ip filter hooks library
   ROUTINES
        ipFilterLibInit( ) - initialize ip filter facility
        ipFilterHookAdd( ) - add a routine to receive all IP packets
        ipFilterHookDelete( ) - delete a ip filter hook routine
   DESCRIPTION
        This library provides utilities that give direct access to IP
        packets. Incoming raw IP packets can be examined or processed
        using the hooks ipFilterHookAdd( ). The input hook can be used to
        receive raw IP packets that are a part of IP (Internet Protocol)
        protocols. The filter hook can also be used to build IP traffic
        monitoring and testing tools.
        Normally, the network should be accessed through the higher-level
        socket interface provided in sockLib. The routines in ipFilterLib
        should rarely, if ever, be necessary for applications.
        The ipFilterLibInit( ) routine links the ip filtering facility
        into the VxWorks system. This is performed automatically if
        INCLUDE_IP_FILTER is defined in configAll.h.
- --
However, if you want the underlying mechanism, it isnt a semantic
issue, because at some level, there is no more rug to shuffle things
under.  - Bilge
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Promiscuous mode not working for FEI Intel 8255x
Date: Mon, 22 Apr 2002 19:29:58 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cc4487c$1@brateggebdc5.br-automation.co.at>
References: <66a06107.0204220248.7fe86349@posting.google.com>
Hi,
do you have the latest version of the fei driver?
Afaik, the version included with Tornado 2 is _not_ the latest version and
has some issues.
Ask your FAE about the update.
hth
Werner
"Suraj Kant" <surajkant@usa.net> wrote in message
news:66a06107.0204220248.7fe86349@posting.google.com...
> Hi,
> I am trying to set the ethernet card into promiscuous mode by
>
> ifFlagChange( "fei0", 0x100, 1);
>
> when I do a ifShow "fei0",
> It shows that the card is set to promiscuous mode but I don't get any
> packets apart from the
> a. Destined for the station
> b. Broadcast
> c. Multicast ( This gets enabled when I set the promiscuous flag).
>
> What I suspect is that the fei driver is not setting the card to
> promiscuous mode instead it is setting it into multicast mode.
>
> I am using pcPentium bsp supplied by Windriver and the driver is from
> WRS only.
> Any pointers would be appreciated.
> Can any one suggest a method for setting the Intel's 82559 into
> promiscuous mode directly without using the vxWorks standard APIs.
> Thanx
> Suraj
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosfs2: upper/lower case  8.3 file name format
Date: Mon, 22 Apr 2002 22:30:06 +0100
From: Roy Bamford <roy_bamford@nospam.lineone.net>
Message-ID: <pan.2002.04.22.22.29.20.757398.1985@nospam.lineone.net>
References: <fcb7d817.0204190241.519e1e50@posting.google.com> <newscache$nf1vug$e7e$1@lnews.actcom.co.il> <fcb7d817.0204212249.267442b8@posting.google.com>
On Mon, 22 Apr 2002 07:49:18 +0100, Hans Vermeersch wrote:
> "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message
> news:<newscache$nf1vug$e7e$1@lnews.actcom.co.il>...
>> Hans,
>> please let me explain:
>>
>> An old style 8.3 file name is stored in directory entry with all
>> alphabetic characters in upper case, that is the rule for 8.3 file
>> names. In fact, Scandisk on Windows would claim it is an error to have
>> a lower case or an international character in an 8.3 file name. For
>> some reason, some Microsoft systems display the 8.3 file names in lower
>> case, or first letter upper case, other lower case.
>>
>> DosFs2 displays the file names EXACTLY as they appear in the directory
>> entry,
>
>
> What I still do not understand is why this same file name on the compact
> flash card is correct on a Win2000 or Win98 pc. Let me give an example :
>
> 1. create a file "UPPlow.TxT" on a cf card (FAT formatted) on Win98 pc
>
> 2. this same file appears as "UPPLOW.TXT" with DosFs2
>
> 3. this same file appears as "UPPlow.TxT" on a Win2000 or Win98 pc
>
> So, I think there must be some additional information somewhere hidden
> in the compact flash file system that has not been used by the DosFs2.
> Does anyone know where this information has been hidden, and how you can
> retrieve it ?
>
>
> Thanks,
>
>
> Hans Vermeersch.
Hans,
When you create files on a FAT volume under Windows, it creates *two*
entries in the directory. One is an all uppercase 8.3 format which is a
hangover from the good old days of DOS and another entry, just as you
typed it in the long file name format. This can take up several directory
entries. To prevent DOS from listing the long file name fragments, the
first character is mangled to indicate a deleted directory entry. This
keeps both DOS and Windows happy.
I am not familiar with the details of how DosFs2 copes with all this but
it looks like it returns the DOS 8.3 filename unless its illegal.
What does DosFs2 do with filenames that don't fit into the 8.3 format
like your examples. Windows by default truncates the filename to six
characters and adds ~n to keep the 8.3 forms unique. Maybe DosFs2 uses
the "~" to tell that a long filename exists, in which case it returns the
long filename format.
Regards,
Roy Bamford
- --
Computer users fall into two groups:-
Those that do backups
Those that have never had a hard drive fail
---------------------------
Newsgroups: comp.os.vxworks
Subject: dosFs2: lower case directory name handling
Date: Mon, 22 Apr 2002 20:57:51 GMT
From: Pete Flugstad <pete_flugstad@nospam.icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <3CC4799C.5090609@nospam.icon-labs.com>
Since there appear to be some dosFs2 experts here, (Leonid
Rosenboim?) I thought I'd post something I discovered recently
while trying to fix some problems with dosFs2.
Format a CompactFlash card on Windows (FAT) and create a directory
off of the root directory, call it "cfg".  From what I understand,
the actual on-disk directory entry would be "CFG".
Now, boot under vxWorks with dosFs2.  Sure enough, when I do a
directory listing of the root of the CF device under vxWorks
(/dev/ata0a), I see "CFG", as other posts have indicated.
Now, if you try and fopen a file called "cfg/config.dat", this
will FAIL.
Now, if you try and fopen a file called "CFg/config.dat", this
will WORK.
However, if you use vxWorks and rename the directory to "cfg",
then fopen "cfg/config.dat", this works.
Trying to open a file "config.dat", in the current working
directory, regardless of case (of the string passed to fopen
or what's on the disk) works ALL the time.  As expected.
I was under the impression that the filesystem should be case
insensative, but it appears this is not the case for directories?
Is this a bug, or am I not understanding how this is supposed to
work?
I added code to automatically rename the directory "CFG" to "cfg",
and it's avoiding this problem, but it's obviously not a great
solution.
Thanks,
Pete Flugstad
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: ABOUT MAKE FILE
Date: 22 Apr 2002 17:46:32 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uit6jv22v.fsf@yahoo.com>
References: <425faaf3.0204220141.439a2dae@posting.google.com>
Sender: bpringlemeir@DeadDuck
 Jacky> Would anyone can give a example about making losts of files
 Jacky> which loacted at vary directories?  i don't want use project
 Jacky> facility to add every files again and again each time when i
 Jacky> create a new project !
Your alternatives are,
     1) not to use Tornado Projects but GNU makefiles directly
or
     2) to use TCL to do this programmatically.
or
     3) do something else that will take lots of time.
The Makefiles are the fastest to implement in most cases, but it also
the least `friendly' to GUI users.  It does work well for automated
build processes.  If the project files have a lot of source files
(>200), it can take a lot of time to do operations (dependencies,
opening the project, adding files, etc).  So the Makefiles are better
in this regards, they also have a lot of flexibility.  Read the
documentation on GNU make, especially "static pattern rules".
Option two, using TCL files is better in the long run.  Especially if
you have many different developers who aren't familiar with Embedded
and vxWorks development [aka Windows Programmers].  You can look in
the directories "$(WIND_BASE)/host/resources/tcl" and
"$(WIND_BASE)/host/resources/tcl/app-config/projects".  There are
several files here that do almost what you wish.
"$(WIND_BASE)/host/resource/tcl/app-config/Project/prjFileLib.tcl",
first function is "proc prjFileAdd {hProj file}".  Unfortunately, you
need to learn TCL to do this.  It might be worth it though...
If you are talking about 50 files, then Johan's suggestion of adding
them via the project interface is probably good.  You can also
directly edit the project file [make a back-up first!].  Then make the
dependencies and rebuild everything.
hth,
Bill Pringlemeir.
- --
Have you ever joined a church where everyone but you can emote
verbally with your endothermic therapsid?  Or joined a church where
everyone but you can talk with your alien?  Or used your car to travel
while being chopped to pieces by a rotor blade?  You will.  And the
company that will bring it to you: AT&T.
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Expect and DejaGnu... Testing 1 2 3...
Date: 22 Apr 2002 17:50:41 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uelh7v1vy.fsf@yahoo.com>
Sender: bpringlemeir@DeadDuck
I am not sure if anyone has used either "Expect" or "DejaGnu" to setup
test harnesses for vxWorks.  They both use TCL and I think that they
could be modified to use the `WTX' mechanism to automate some tests.
Any comments appreciated...
Bill Pringlemeir.
  - Expect "http://expect.nist.gov/"
  - DejaGnu "http://www.gnu.org/software/dejagnu/manual/book1.html"
  - Testing articles "http://www.testing.com/writings.html"
- --
Enjoy reality!
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: kbhit
Date: Mon, 22 Apr 2002 23:03:09 +0000 (UTC)
From: "Franco Bassetti" <francobassetti@hotmail.com>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <f190d24edd39bea9d73085f4e35732ab.37262@mygate.mailgate.org>
I need a function to know if the stdin buffer is empty or a key has been
pressed on the keyboard.
I tried ioctl(0,1,0) but it crashed
2 parameter: FIONREAD is 1
File descriptor for stdin is 0 I think.
Can anybody help me?
Thank you
- --
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
---------------------------
Newsgroups: comp.os.vxworks
Subject: How do you call GNU make recursively on Win32 host
Date: Mon, 22 Apr 2002 23:38:36 GMT
From: Jon Newbill <JonUn@bitworkssystemsRemovThis.com>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <3CC49F68.D1EFFC2D@bitworkssystemsRemovThis.com>
In section 5.2 on page 38 of the GNU Make User's Guide it states
". . . shell commands such as cd that set variables local to each
process will not affect the following command lines.  If you want to use
cd to affect the next command, put the two on a single line with a
semicolon between them.  "
This assumes a UNIX platform since only UNIX shells accept multiple
commands separated by semicolons.  This means the example on page 42 for
calling make recursively doesn't work on a Win32 host.
subsystem:
 cd subdir; $(MAKE)
How does one call make recursively on a Win32 host?  Thanks in advance
Jon Newbill
Bitworks Systems Inc.
---------------------------
Newsgroups: comp.os.vxworks
Subject: How to wait until keyboard is pressed
Date: Tue, 23 Apr 2002 00:18:24 GMT
From: "ChanSeong Mike Kim" <cskim@fdlab.co.kr>
Organization: Dacom
Message-ID: <kL1x8.4080$br1.147483@news.bora.net>
References: <f190d24edd39bea9d73085f4e35732ab.37262@mygate.mailgate.org>
Hi ~
I found this function in torando/target/config/all/bootconfig.c
I think this would be helpful for you.
ChanSeong Mike Kim
Korea Computer Inc. (www.kci.co.kr)
/***************************************************************************
***
*
* autoboot - do automatic boot sequence
*
* RETURNS: Doesn't return if successful (starts execution of booted system).
*/
LOCAL char autoboot
    (
    int timeout  /* timeout time in seconds */
    )
    {
    ULONG autoBootTime;
    int  timeLeft;
    UINT timeMarker;
    int  bytesRead = 0;
    FUNCPTR entry;
    char key;
    if (timeout > 0)
 {
 printf ("\nPress any key to stop auto-boot...\n");
 /* Loop looking for a char, or timeout after specified seconds */
 autoBootTime = tickGet () + sysClkRateGet () * timeout;
 timeMarker = tickGet () + sysClkRateGet ();
 timeLeft = timeout;
 printf ("%2d\r", timeLeft);
  while ((tickGet () < autoBootTime) && (bytesRead == 0))
     {
     (void) ioctl (consoleFd, FIONREAD, (int) &bytesRead);
     if (tickGet () == timeMarker)
  {
  timeMarker = tickGet () + sysClkRateGet ();
  printf ("%2d\r", --timeLeft);
  }
     }
 }
    if (bytesRead == 0)    /* nothing typed so auto-boot */
 {
 /* put the console back in line mode so it echoes (so's you can bang
  * on it to see if it's still alive) */
 (void) ioctl (consoleFd, FIOSETOPTIONS, OPT_TERMINAL);
 if (bootLoad (BOOT_LINE_ADRS, &entry) == OK)
     go (entry);    /* ... and never return */
 else
     {
     printf ("Can't load boot file!!\n");
     taskDelay (sysClkRateGet ()); /* pause a second */
     reboot (BOOT_NO_AUTOBOOT);  /* something is awry */
     }
 }
    else
 {
 /* read the key that stopped autoboot */
 read (consoleFd, &key, 1);
 return (key & 0x7f);  /* mask off parity in raw mode */
 }
    return (ERROR);   /* for lint - can't really get here */
    }
"Franco Bassetti" <francobassetti@hotmail.com> wrote in message
news:f190d24edd39bea9d73085f4e35732ab.37262@mygate.mailgate.org...
> I need a function to know if the stdin buffer is empty or a key has been
> pressed on the keyboard.
> I tried ioctl(0,1,0) but it crashed
> 2 parameter: FIONREAD is 1
> File descriptor for stdin is 0 I think.
>
> Can anybody help me?
> Thank you
>
>
> --
> Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How do you call GNU make recursively on Win32 host
Date: Mon, 22 Apr 2002 20:19:01 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: Bellsouth.Net
Message-ID: <3CC4A875.7BCCD985@bellsouth.net>
References: <3CC49F68.D1EFFC2D@bitworkssystemsRemovThis.com>
Jon Newbill wrote:
> In section 5.2 on page 38 of the GNU Make User's Guide it states
>
> ". . . shell commands such as cd that set variables local to each
> process will not affect the following command lines.  If you want to use
> cd to affect the next command, put the two on a single line with a
> semicolon between them.  "
>
> This assumes a UNIX platform since only UNIX shells accept multiple
> commands separated by semicolons.  This means the example on page 42 for
> calling make recursively doesn't work on a Win32 host.
>
> subsystem:
>  cd subdir; $(MAKE)
>
> How does one call make recursively on a Win32 host?  Thanks in advance
>
> Jon Newbill
> Bitworks Systems Inc.
Doesn't the shell that comes with cygwin work with semicolons??
Speaking only for myself,
Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How do you call GNU make recursively on Win32 host
Date: Tue, 23 Apr 2002 00:22:05 GMT
From: Jon Newbill <JonUn@bitworkssystemsRemovThis.com>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <3CC4A990.596131FC@bitworkssystemsRemovThis.com>
References: <3CC49F68.D1EFFC2D@bitworkssystemsRemovThis.com>
I found the solution.   Use -C option instead
subsystem:
    $(MAKE) -C subdir
Jon Newbill
Jon Newbill wrote:
> In section 5.2 on page 38 of the GNU Make User's Guide it states
>
> ". . . shell commands such as cd that set variables local to each
> process will not affect the following command lines.  If you want to use
> cd to affect the next command, put the two on a single line with a
> semicolon between them.  "
>
> This assumes a UNIX platform since only UNIX shells accept multiple
> commands separated by semicolons.  This means the example on page 42 for
> calling make recursively doesn't work on a Win32 host.
>
> subsystem:
>  cd subdir; $(MAKE)
>
> How does one call make recursively on a Win32 host?  Thanks in advance
>
> Jon Newbill
> Bitworks Systems Inc.
---------------------------
Newsgroups: comp.os.vxworks
Subject: [Q]How to take a picture using USB Camera with x86 board(PENTIUM)-Vxworks 5.4 + UGL + ZINC
Date: Tue, 23 Apr 2002 00:25:10 GMT
From: "ChanSeong Mike Kim" <cskim@fdlab.co.kr>
Organization: Dacom
Message-ID: <GR1x8.4081$br1.149187@news.bora.net>
References: <c104e646.0204191804.133d37e5@posting.google.com>
Hi ~
We gonna to develop a new product.
But my senior manager gonna to change main os as Windows 2K prof.
Because our client want to attach a camera, but we don't know how to handle
and take a picture in
Vxworks environment.
So, I'd like to know how to attach a USB type camera in Vxworks 5.4(+UGL +
ZINC - currently using )
with x86 Board(All-in-one board).
Also I'd like to know this requires a addition cost.
Thank you in advance.
"Young Hoon Park" <wegaia@micro-web.co.kr> wrote in message
news:c104e646.0204191804.133d37e5@posting.google.com...
> Hi, everybody.
>
> I am a newbie on VxWorks.
> We developed embedded network camera and faced some problem.
> Our camera's platform uses NetARM 40 CPU from NetSilicon and
> running VxWorks 5.4 (Kernel version 2.5).
> Please help me to solve the problem.
>
> One of our customer reported that our camera dies on their network
environment.
> It dies several times a day. It does not respond to the ping command and
> users cannot access it with web browser. And he said that the camera shows
a
> "interrupt : panic : ring buffer overflow" messages on the target shell.
> (He saw the messages in the hypter terminal.)
> The only method to get back the camera is power OFF/ON.
>
> Based on the clue our customer provided, we made the camera in our side
> reappear the phenomenon. We use private network 192.168.1.0 and there
> are many cameras on the network. (about 10).
> And I tried the command in the linux machine on the network,
> "ping -b -f 192.168.1.255". (ping with broadcasting and flooding).
> After for a while, the camera on our network shows the same message
> "interrupt : panic : ring buffer overflow" on the shell.
> It also does not respond to the ping command(without -b and -f option)
anymore.
>
> Although I am not sure whether the network environment of our customer is
> the same with ping broadcasting and flooding situation,
> but is it possible to make our camera not to appear such a problem?
> Or is it a inherent problem of low performance embedded system.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How do you call GNU make recursively on Win32 host
Date: Tue, 23 Apr 2002 00:26:43 GMT
From: Jon Newbill <JonUn@bitworkssystemsRemovThis.com>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Message-ID: <3CC4AAAF.F7AFD41C@bitworkssystemsRemovThis.com>
References: <3CC49F68.D1EFFC2D@bitworkssystemsRemovThis.com> <3CC4A875.7BCCD985@bellsouth.net>
No it uses theWINNT cmd.exe shell.  So using the -C options is the answer
Jon
joe durusau wrote:
> Jon Newbill wrote:
>
> > In section 5.2 on page 38 of the GNU Make User's Guide it states
> >
> > ". . . shell commands such as cd that set variables local to each
> > process will not affect the following command lines.  If you want to use
> > cd to affect the next command, put the two on a single line with a
> > semicolon between them.  "
> >
> > This assumes a UNIX platform since only UNIX shells accept multiple
> > commands separated by semicolons.  This means the example on page 42 for
> > calling make recursively doesn't work on a Win32 host.
> >
> > subsystem:
> >  cd subdir; $(MAKE)
> >
> > How does one call make recursively on a Win32 host?  Thanks in advance
> >
> > Jon Newbill
> > Bitworks Systems Inc.
>
> Doesn't the shell that comes with cygwin work with semicolons??
>
> Speaking only for myself,
>
> Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Promiscuous mode not working for FEI Intel 8255x
Date: 22 Apr 2002 21:25:19 -0700
From: surajkant@usa.net (Suraj Kant)
Organization: http://groups.google.com/
Message-ID: <66a06107.0204222025.7f1715af@posting.google.com>
References: <66a06107.0204220248.7fe86349@posting.google.com> <3cc4487c$1@brateggebdc5.br-automation.co.at>
Hi,
   You are right this is not the latest version of the driver. I tried
using the eeV driver from Intel's website but it seems its not
working. When I create the boot image in the floppy, I get a message
"Can't load boot file!!"
I am using the boot device as eeE,as per one the mails posted in this
group, but no luck as of now.
Alternatively, I tried using the 3com's 3c905, ethernet card. In that
also I received the similar problem regarding the promiscuous mode. So
I downloaded the data sheet of the 3Com NIC, and manually wrote the
configuration to its register, this made the thing working in
promiscuous mode. ( I used the standard 3com, elPci driver from WRS
for this).
So I am expected a similar solution for Intel card for the older FEI
driver of the WRS. I couldn't get the register sets for setting the
same for 82559. If anyone can just provide me the procedure for
setting the registers for Intel's 82559, it would be great.
Thanx,
Suraj
"Werner Schiendl" <ws-news@gmx.at> wrote in message news:<3cc4487c$1@brateggebdc5.br-automation.co.at>...
> Hi,
>
> do you have the latest version of the fei driver?
> Afaik, the version included with Tornado 2 is _not_ the latest version and
> has some issues.
>
> Ask your FAE about the update.
>
> hth
> Werner
>
>
> "Suraj Kant" <surajkant@usa.net> wrote in message
> news:66a06107.0204220248.7fe86349@posting.google.com...
> > Hi,
> > I am trying to set the ethernet card into promiscuous mode by
> >
> > ifFlagChange( "fei0", 0x100, 1);
> >
> > when I do a ifShow "fei0",
> > It shows that the card is set to promiscuous mode but I don't get any
> > packets apart from the
> > a. Destined for the station
> > b. Broadcast
> > c. Multicast ( This gets enabled when I set the promiscuous flag).
> >
> > What I suspect is that the fei driver is not setting the card to
> > promiscuous mode instead it is setting it into multicast mode.
> >
> > I am using pcPentium bsp supplied by Windriver and the driver is from
> > WRS only.
> > Any pointers would be appreciated.
> > Can any one suggest a method for setting the Intel's 82559 into
> > promiscuous mode directly without using the vxWorks standard APIs.
> > Thanx
> > Suraj
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: [Q]How to take a picture using USB Camera with x86 board(PENTIUM)-Vxworks 5.4 + UGL + ZINC
Date: 23 Apr 2002 07:25:07 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91F95FD839721borkhuisagerecom@135.7.153.102>
References: <c104e646.0204191804.133d37e5@posting.google.com> <GR1x8.4081$br1.149187@news.bora.net>
"ChanSeong Mike Kim" <cskim@fdlab.co.kr> wrote:
> Because our client want to attach a camera, but we don't know how to
> handle and take a picture in Vxworks environment.
>
> So, I'd like to know how to attach a USB type camera in Vxworks
> 5.4(+UGL + ZINC - currently using )
>
> with x86 Board(All-in-one board).
>
> Also I'd like to know this requires a addition cost.
There is a USB kit available from WindRiver, but it will cost you quite a
lot, just as all the other WindRiver products :-)
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: Driver for VME acquisition board
Date: Tue, 23 Apr 2002 17:41:56 +0930
From: Tim Shaw <Tim.Shaw@dsto.defence.gov.au>
Organization: Defence Science and Technology Organisation
Message-ID: <3CC5174C.C8EDBB6F@dsto.defence.gov.au>
References: <aa14fp$1b4n8$1@news02.it.net>
The programmers guide has a description of device drivers in section 3
(I/O System), page ~140. Use the create, open, close for initialising
data structures, etc. Use read and write functions for reading and
writing from/to your board. Use ioctl functions for run-time
configuration (probably using DMA to read or write data). Once you've
defined functions to do these, add them to the driver table using
iosDrvInstall.
You'll need to use the function calls sysBusToLocalAdrs and
sysLocalToBusAdrs to communicate to your VME board. sysBusToLocalAdrs
converts an address as seen on the VME bus to one as seen by your CPU.
sysLocalToBusAdrs does the opposite.
Flavio FURLAN wrote:
> Hi,
>
> I'm working to a project where I need to write a device driver
> for a VME acquisition board: it has memory-mapped registers,
> and I need to read from and write to them in order to obtain data.
> I know all it is needed about the board hardware, but have no
> expertise on coding drivers under VxWorks (5.4).
>
> As I'm new to this O.S., could anybody point me to some
> example source code, or even to a programming guide, useful to
> learn how to write my own driver?
>
> Thanks in advance.
>
> Flavio F.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: kbhit
Date: Tue, 23 Apr 2002 10:15:31 +0200
From: Patrick <pn@milhouse.to_undies.co.uk>
Organization: Siemens Inc.
Message-ID: <Pine.LNX.4.21.0204231014440.2171-100000@ulmlx023.egnetz>
References: <f190d24edd39bea9d73085f4e35732ab.37262@mygate.mailgate.org>
On Mon, 22 Apr 2002, Franco Bassetti wrote:
> I need a function to know if the stdin buffer is empty or a key has been
> pressed on the keyboard.
> I tried ioctl(0,1,0) but it crashed
> 2 parameter: FIONREAD is 1
> File descriptor for stdin is 0 I think.
>
> Can anybody help me?
> Thank you
Try this:
- ---------------------------------------------------------------
#include <stdio.h>      /* printf()         */
#include <tyLib.h>      /* FIOSETOPTIONS    */
#include <assert.h>     /* assert()         */
#include <taskLib.h>    /* taskDelay()      */
#include <sysLib.h>     /* sysClkRateGet()  */
static int keyhit( void );
void test( void )
{
    char key;
    int testCount = 0;
    int options;
    /* Save options */
    options = ioctl( 0, FIOGETOPTIONS, 0 );
    /* Enter raw mode */
    ioctl( 0, FIOSETOPTIONS, OPT_TERMINAL & ~OPT_LINE & ~OPT_ECHO );
    printf( "Press any key to stop\n" );
    while ( !(key = keyhit()) )
    {
        printf( "Test %d\n", testCount++ );
        taskDelay( sysClkRateGet() );
    } /* while !keyhit() */
    /* Leave raw mode */
    ioctl( 0, FIOSETOPTIONS, options );
    printf( "\nKey was %d = %.4X = %c\n", key, key, key );
}
static int keyhit( void )
{
    int nread;
    int rc;
    int oneChar;
    /* probe STDIN to see if operator entered any characters */
    /* It ought to be possible to use poll() here instead of the FIONREAD
     * ioctl. I also remember a reference to setting 'NONBLOCK' mode.
     */
    rc = ioctl( 0, FIONREAD, (int) &nread );
    assert( ERROR != rc );
    if ( nread )
    {   /* got a char */
        /* flush all the characters entered */
        for ( ; nread; nread-- )
        {
            oneChar = getchar();
        }
        return oneChar;
    }
    return 0;
}
- ---------------------------------------------------------------------
Regards
Patrick
- ----------------------------------------------------------------------
strip 'to_undies' to reply
---------------------------
Newsgroups: comp.os.vxworks
Subject: Detecting IP conflict with Gratuitous ARP
Date: 23 Apr 2002 01:51:42 -0700
From: dave.joynson@orange.net (Dave Joynson)
Organization: http://groups.google.com/
Message-ID: <da396027.0204230051.669fc0d4@posting.google.com>
I am using VxWorks 5.4 for PPC860 and I am attempting to
(programmatically) detect if the IP address manually assigned to the
target conflicts with any existing IP address on the attached network.
I understand that a gratuitous ARP seems to be an accepted method of
achieving this. I notice that when i perform ifAddrSet() a gratuitous
ARP is performed by VxWorks automatically but even if I have a
conflicting address (i.e. another network node replies) ifAddrSet()
returns OK.
If I try to perform a gratuitous ARP manually using etherAddrResolve()
ARP packets are not sent on my ethernet interface (motfec0).
Any suggestions on how I may achieve my goal would be gratefully
appreciated.
Dave Joynson
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosfs2: upper/lower case  8.3 file name format
Date: 23 Apr 2002 02:26:41 -0700
From: hans.vermeersch@protronic.com (Hans Vermeersch)
Organization: http://groups.google.com/
Message-ID: <fcb7d817.0204230126.791d8b40@posting.google.com>
References: <fcb7d817.0204190241.519e1e50@posting.google.com> <newscache$nf1vug$e7e$1@lnews.actcom.co.il> <fcb7d817.0204212249.267442b8@posting.google.com> <pan.2002.04.22.22.29.20.757398.1985@nospam.lineone.net>
Roy Bamford <roy_bamford@nospam.lineone.net> wrote in message news:<pan.2002.04.22.22.29.20.757398.1985@nospam.lineone.net>...
>
> Hans,
>
> When you create files on a FAT volume under Windows, it creates *two*
> entries in the directory. One is an all uppercase 8.3 format which is a
> hangover from the good old days of DOS and another entry, just as you
> typed it in the long file name format. This can take up several directory
> entries. To prevent DOS from listing the long file name fragments, the
> first character is mangled to indicate a deleted directory entry. This
> keeps both DOS and Windows happy.
>
> I am not familiar with the details of how DosFs2 copes with all this but
> it looks like it returns the DOS 8.3 filename unless its illegal.
>
> What does DosFs2 do with filenames that don't fit into the 8.3 format
> like your examples. Windows by default truncates the filename to six
> characters and adds ~n to keep the 8.3 forms unique. Maybe DosFs2 uses
> the "~" to tell that a long filename exists, in which case it returns the
> long filename format.
>
> Regards,
>
> Roy Bamford
Roy,
Thanks for the explanation. Now I know that there are two entries
created for each filename.
Filenames that don't fit into the 8.3 format, and created on a pc with
a FAT file system, are correctly shown with DosFs2. Even complicated
filenames with a mixture of upper and lower case characters. There is
no truncation or other mutilation.
Only filenames that fit into the 8.3 format, and created on a pc with
a FAT file system, are *always* shown in upper case with DosFs2.
Why is DosFs2 not using the original filename in case of a 8.3 name
format ?
Regards,
Hans Vermeersch
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosfs2: upper/lower case  8.3 file name format
Date: Tue, 23 Apr 2002 09:34:40 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$gon0vg$m51$1@lnews.actcom.co.il>
References: <fcb7d817.0204190241.519e1e50@posting.google.com> <newscache$nf1vug$e7e$1@lnews.actcom.co.il> <fcb7d817.0204212249.267442b8@posting.google.com>
Hans, I rpobably need tome more details here, DosFs2 came before Win2k:
After you create the file under Windows, what do you get inside the
directory entry?
There are plenty of tools for the Windows world to display raw directory
entries, an dyou may also need a thorough explanation of the VFAT file name
format to understand that raw data.
Roy's explanation is quite insufficient.
Leonid
"Hans Vermeersch" <hans.vermeersch@protronic.com> wrote in message
news:fcb7d817.0204212249.267442b8@posting.google.com...
> "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message
news:<newscache$nf1vug$e7e$1@lnews.actcom.co.il>...
> > Hans,
> > please let me explain:
> >
> > An old style 8.3 file name is stored in directory entry with all
alphabetic
> > characters in upper case, that is the rule for 8.3 file names. In fact,
> > Scandisk on Windows would claim it is an error to have a lower case
> > or an international character in an 8.3 file name.
> > For some reason, some Microsoft systems display the 8.3 file names
> > in lower case, or first letter upper case, other lower case.
> >
> > DosFs2 displays the file names EXACTLY as they appear in the directory
> > entry,
>
>
> What I still do not understand is why this same file name on the
> compact flash card is correct on a Win2000 or Win98 pc. Let me give an
> example :
>
> 1. create a file "UPPlow.TxT" on a cf card (FAT formatted) on Win98 pc
>
> 2. this same file appears as "UPPLOW.TXT" with DosFs2
>
> 3. this same file appears as "UPPlow.TxT" on a Win2000 or Win98 pc
>
> So, I think there must be some additional information somewhere hidden
> in the compact flash file system that has not been used by the DosFs2.
> Does anyone know where this information has been hidden, and how you
> can retrieve it ?
>
>
> Thanks,
>
>
> Hans Vermeersch.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosFs2: lower case directory name handling
Date: Tue, 23 Apr 2002 09:40:45 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$kyn0vg$q51$1@lnews.actcom.co.il>
References: <3CC4799C.5090609@nospam.icon-labs.com>
Pete,
By default, DosFs2 is case-insensitive, i.e. it does not matter what case is
the file name, an open() will find it, but there is a seldom used option in
DosFs2, to perform a case-sensitive file name search, did you set it ?
For the record, DosFs 2.0 supports three different directory structures:
 + VFAT (default) supports bpoth 8.3 and VFAT long file names, OS/2 and
Windows 95 and upwards compatible
 +  8.3 which is a subset of the previous, supporting only DOS file names,
will accept any Windows volume but without the long file names, offers
smaller footprint.
 + VX_LONG a WindRiver proprietary format, that supports 40-byte long file
names, offers file size larger then 4 GByte.
Under 8.3 and VFAT, the file search is case insensitive by default, with
VX_LONG the file matching is case sensitive by default.
Hope this helps,
    Leonid
P.S. I am referring to the DosFs 2.0 version developed and released in
1996-1997, there may be sunsequent changes to the software of which I am
unaware.
"Pete Flugstad" <pete_flugstad@nospam.icon-labs.com> wrote in message
news:3CC4799C.5090609@nospam.icon-labs.com...
> Since there appear to be some dosFs2 experts here, (Leonid
> Rosenboim?) I thought I'd post something I discovered recently
> while trying to fix some problems with dosFs2.
>
> Format a CompactFlash card on Windows (FAT) and create a directory
> off of the root directory, call it "cfg".  From what I understand,
> the actual on-disk directory entry would be "CFG".
>
> Now, boot under vxWorks with dosFs2.  Sure enough, when I do a
> directory listing of the root of the CF device under vxWorks
> (/dev/ata0a), I see "CFG", as other posts have indicated.
>
> Now, if you try and fopen a file called "cfg/config.dat", this
> will FAIL.
>
> Now, if you try and fopen a file called "CFg/config.dat", this
> will WORK.
>
> However, if you use vxWorks and rename the directory to "cfg",
> then fopen "cfg/config.dat", this works.
>
> Trying to open a file "config.dat", in the current working
> directory, regardless of case (of the string passed to fopen
> or what's on the disk) works ALL the time.  As expected.
>
> I was under the impression that the filesystem should be case
> insensative, but it appears this is not the case for directories?
> Is this a bug, or am I not understanding how this is supposed to
> work?
>
> I added code to automatically rename the directory "CFG" to "cfg",
> and it's avoiding this problem, but it's obviously not a great
> solution.
>
> Thanks,
> Pete Flugstad
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: ipFilterLib [was: Netfilter, ipchains, iptables...]
Date: Tue, 23 Apr 2002 09:44:02 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$14o0vg$s51$1@lnews.actcom.co.il>
References: <uelhbk5cy.fsf@yahoo.com> <newscache$gl4vug$rae$1@lnews.actcom.co.il> <u1yd7wx6e.fsf_-_@yahoo.com>
Bill,
the library is only for setting and removing the hook, in my code, I showed
you how to hook it up yourself, without bothering about the ipHookLib, which
is just a few lines of code.
The method worked for me as required, filtered all incming IP frames, no
matter what was the source interface or how many interfaces or which driver
flavour is used.
One disadvantage, don't know how to catch outgoing frames this way.
Leonid
"Bill Pringlemeir" <bpringlemeir@yahoo.com> wrote in message
news:u1yd7wx6e.fsf_-_@yahoo.com...
>
>  Leonid> Here is another method, which works for ALL INTERFACES, on a
>  Leonid> 5.4, note there is only one hook at the IP input end, which
>  Leonid> will let you sniff all incoming packets, but not the outgoing
>  Leonid> ones.  Here is a snip of a packet filter I wrote some time
>  Leonid> ago.
>
> Thanks Leonid!  You made me look at the `ipXxxxx' libraries and there
> is an `ipFilterLib'.  Does anyone have experience with this?  I see
> several complaints about a missing `ipFilterLib.h'.  Google is showing
> this link,
>
>  "http://www.calsoft.co.in/techcenter/network/vxworks.html"
>
> Regards,
> Bill Pringlemeir.
>
>    ipFilterLib - ip filter hooks library
>
>    ROUTINES
>
>         ipFilterLibInit( ) - initialize ip filter facility
>         ipFilterHookAdd( ) - add a routine to receive all IP packets
>         ipFilterHookDelete( ) - delete a ip filter hook routine
>
>    DESCRIPTION
>
>         This library provides utilities that give direct access to IP
>         packets. Incoming raw IP packets can be examined or processed
>         using the hooks ipFilterHookAdd( ). The input hook can be used to
>         receive raw IP packets that are a part of IP (Internet Protocol)
>         protocols. The filter hook can also be used to build IP traffic
>         monitoring and testing tools.
>
>         Normally, the network should be accessed through the higher-level
>         socket interface provided in sockLib. The routines in ipFilterLib
>         should rarely, if ever, be necessary for applications.
>
>         The ipFilterLibInit( ) routine links the ip filtering facility
>         into the VxWorks system. This is performed automatically if
>         INCLUDE_IP_FILTER is defined in configAll.h.
>
> --
> However, if you want the underlying mechanism, it isnt a semantic
> issue, because at some level, there is no more rug to shuffle things
> under.  - Bilge
>
> vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosfs2: upper/lower case  8.3 file name format
Date: Tue, 23 Apr 2002 09:53:40 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$3ko0vg$061$1@lnews.actcom.co.il>
References: <fcb7d817.0204190241.519e1e50@posting.google.com> <newscache$nf1vug$e7e$1@lnews.actcom.co.il> <fcb7d817.0204212249.267442b8@posting.google.com> <pan.2002.04.22.22.29.20.757398.1985@nospam.lineone.net> <fcb7d817.0204230126.791d8b40@posting.google.com>
"Hans Vermeersch" <hans.vermeersch@protronic.com> wrote in message
news:fcb7d817.0204230126.791d8b40@posting.google.com...
> Roy Bamford <roy_bamford@nospam.lineone.net> wrote in message
news:<pan.2002.04.22.22.29.20.757398.1985@nospam.lineone.net>...
> >
> > Hans,
> >
> > When you create files on a FAT volume under Windows, it creates *two*
> > entries in the directory. One is an all uppercase 8.3 format which is a
> > hangover from the good old days of DOS and another entry, just as you
> > typed it in the long file name format. This can take up several
directory
> > entries. To prevent DOS from listing the long file name fragments, the
> > first character is mangled to indicate a deleted directory entry. This
> > keeps both DOS and Windows happy.
> >
> > I am not familiar with the details of how DosFs2 copes with all this but
> > it looks like it returns the DOS 8.3 filename unless its illegal.
> >
> > What does DosFs2 do with filenames that don't fit into the 8.3 format
> > like your examples. Windows by default truncates the filename to six
> > characters and adds ~n to keep the 8.3 forms unique. Maybe DosFs2 uses
> > the "~" to tell that a long filename exists, in which case it returns
the
> > long filename format.
> >
> > Regards,
> >
> > Roy Bamford
>
> Roy,
>
> Thanks for the explanation. Now I know that there are two entries
> created for each filename.
> Filenames that don't fit into the 8.3 format, and created on a pc with
> a FAT file system, are correctly shown with DosFs2. Even complicated
> filenames with a mixture of upper and lower case characters. There is
> no truncation or other mutilation.
> Only filenames that fit into the 8.3 format, and created on a pc with
> a FAT file system, are *always* shown in upper case with DosFs2.
> Why is DosFs2 not using the original filename in case of a 8.3 name
> format ?
>
This is hard to explain, without understanding HOW does Win2k store
such a file name on the volume, Does it create a long name in addition to
the 8.3 alias ? What is special about this alias when opposed to a truly
long file name?
Needs more research.
> Regards,
>
>
> Hans Vermeersch
---------------------------
Newsgroups: comp.arch.embedded,comp.os.vxworks
Subject: Re: testing fiber gigabit ethernet
Date: Tue, 23 Apr 2002 09:56:58 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$lpo0vg$361$1@lnews.actcom.co.il>
References: <3baeb99.0204190229.36793728@posting.google.com> <newscache$xr4vug$wae$1@lnews.actcom.co.il> <3baeb99.0204210623.bd44697@posting.google.com>
It's really a trade-off.
You can use a PC or another target system to generate traffic,
you might be able to generate high traffic load if you use high powered
PC and effecient software, you may use a few PCs to simulteneously
load one target system (this has worked well for me!), and this is very
very close to reality.
What you wont be able to test without an expensive gear is assorted
error conditions that a complient system does not and will not be able
to generate.
"Demrala Rood" <demralarood@hotmail.com> wrote in message
news:3baeb99.0204210623.bd44697@posting.google.com...
> "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message
news:<newscache$xr4vug$wae$1@lnews.actcom.co.il>...
> > Perhaps this issue will be better dealt with on one of the networking
> > news groups, there you might find people with specific experience
> > building networking geat test labs, with traffic simulators sniffers
> > and other gear.
> >
> > A PC is not nearly enough to test an embedded networked device,
> > not just because it cant simulate errors, but also because it can not
> > be expected to generate wire speed traffic, aka. works case load
scenario.
> >
> > You might also consider using a network lab service for testing instead
> > of building your own lab, because the equipment may be quite expensive.
>
> Thank you, Leonard, for your kind advice. I suspected I might cause
> such a reply as your so I should have said that I did not hope to hear
> from people with have hundred thousands dollars equipment. I wanted to
> hear from people like me which have little budget and are working in
> embedded systems using giga ethernet. I will thank those which rfeplied
> to me personal to look into renting very expensive testers. I will
> check this but maybe have no choice but to use my PC with giga-card.
> I have more time then money to spent.
>
> dr
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Promiscuous mode not working for FEI Intel 8255x
Date: 23 Apr 2002 03:17:53 -0700
From: demralarood@hotmail.com (Demrala Rood)
Organization: http://groups.google.com/
Message-ID: <3baeb99.0204230217.1dc439a4@posting.google.com>
References: <66a06107.0204220248.7fe86349@posting.google.com> <3cc4487c$1@brateggebdc5.br-automation.co.at> <66a06107.0204222025.7f1715af@posting.google.com>
surajkant@usa.net (Suraj Kant) wrote in message news:<66a06107.0204222025.7f1715af@posting.google.com>...
> So I am expected a similar solution for Intel card for the older FEI
> driver of the WRS. I couldn't get the register sets for setting the
> same for 82559. If anyone can just provide me the procedure for
> setting the registers for Intel's 82559, it would be great.
Intel does still not give freely a manual for this but the linux driver
e100 has source code you could use to figure it out. I think anyone
which knows how to reconfig 82559 can not tell you because of NDA.
dr
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Tue Apr 23 12:27:51 2002
From: "John F Davis" <johndavi@us.ibm.com>
Date: Tue Apr 23 12:27:53 PDT 2002
Subject: library for getting notifications from kernel when a network interface link
Hello
Which library in VxWorks sends notifications to a app when the interface
link goes up and down?
I need to know the library name so I can understand how to register for
such notifications.
JD
From vxwexplo-errs@csg.lbl.gov  Tue Apr 23 21:22:53 2002
From: "RajaSekhar" <rajasekharl@inucom.com>
Date: Tue Apr 23 21:22:56 PDT 2002
Subject: RE: comp.os.vxworks newsdigest
Friends,
Can any one help how to boot two vxworks images over ethernet on ppc or x86
target boards.
Is it possible ? If so what are the configurations to be done.
Thanks in advance for any help
Raja Sekhar
From vxwexplo-errs@csg.lbl.gov  Wed Apr 24 04:03:20 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Wed Apr 24 04:03:22 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Wed Apr 24 04:03:15 PDT 2002
        Subject: Re: kbhit
        Subject: Re: network card for ARM Integrator
        Subject: Re: [Q]How to take a picture using USB Camera with x86 board(PENTIUM)-Vxworks 5.4 + UGL + ZINC
        Subject: PCI-to-PCI bridge x86
        Subject: Re: Promiscuous mode not working for FEI Intel 8255x
        Subject: INCLUDE_SNMP
        Subject: Exception error
        Subject: Re: INCLUDE_SNMP
        Subject: Re: ipFilterLib [was: Netfilter, ipchains, iptables...]
        Subject: Re: Expect and DejaGnu... Testing 1 2 3...
        Subject: Re: arptnew error with subnetmask
        Subject: Re: vxWorks IP/UDP stack performance problem
        Subject: Help about Pseudo Terminal
        Subject: Re: dosFs2: lower case directory name handling
        Subject: [AE] Boot error "muxLoad failed"
        Subject: Help Please
        Subject: Re: dosFs2: lower case directory name handling
        Subject: Re: Buffer full UDP problem
        Subject: Re: Driver for VME acquisition board
        Subject: How to make sure the Envoy SNMP Agent is working
        Subject: Calling 'sendto' from ISR
        Subject: Re: Calling 'sendto' from ISR
        Subject: Re: Calling 'sendto' from ISR
        Subject: Re: Detecting IP conflict with Gratuitous ARP
        Subject: Windnet OSPF - dropped links
        Subject: Re: Porting code from BSD to Vxworks
        Subject: Re: interrupt: panic : ring buffer overflow on the shell
        Subject: Re: [AE] Boot error "muxLoad failed"
        Subject: Re: Calling 'sendto' from ISR
        Subject: Re: Calling 'sendto' from ISR
        Subject: Re: bootrom
        Subject: Re: INCLUDE_SNMP
        Subject: what are the BSD driver and END driver?
        Subject: Re: Calling 'sendto' from ISR
        Subject: Re: Detecting IP conflict with Gratuitous ARP
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: kbhit
Date: Tue, 23 Apr 2002 12:23:29 +0000 (UTC)
From: "Franco Bassetti" <francobassetti@hotmail.com>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <e919d3c44bc165eaae61cd06f7e49879.37262@mygate.mailgate.org>
References: <f190d24edd39bea9d73085f4e35732ab.37262@mygate.mailgate.org>
Thanks you both
for help.
- --
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: network card for ARM Integrator
Date: Tue, 23 Apr 2002 12:41:15 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$bbw0vg$be1$1@lnews.actcom.co.il>
References: <Xns91F577ED1FA8Dandrayk@216.254.136.26>
Andrushka,
Basically, if the driver claims to support the DEC (aka. Tulip) chip, it
should
work with any card carrying that chip, or a backwards compatible chip.
I suggest to check Linux archives about compatibility of the different
Tulip derivatives, because DEC is deceased now.
Once you got a compatible chip, some boards would have the PCI device
and manufacturer ID's changed to their own, so the driver looking for
the original DEC ID numbers would not recognize the card. All that is
needed is to discover the true ID's (e.g. using pciBusShow(), and modify
the driver to accept these ID's as well.
Sorry I can not offer more specific advise,
    Leonid
"Andray Kaganovsky" <andraykNOSPAM@primus.ca> wrote in message
news:Xns91F577ED1FA8Dandrayk@216.254.136.26...
> Greetings,
>
> target.nr file in ARM Integrator's BSP says that vxWorks will
> recognize and work with DEC21x40 based network card. My question
> is, did anybody tried to use SMC 8432BT/T EtherPower card
> (based on DEC21041-PB controller) with ARM Integrator. Also,
> if somebody out there got any network card to work on that
> board, could you please tell me what card it is.
>
> Thanks in advance and regards,
> Andray
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: [Q]How to take a picture using USB Camera with x86 board(PENTIUM)-Vxworks 5.4 + UGL + ZINC
Date: Tue, 23 Apr 2002 13:12:48 GMT
From: "ChanSeong Mike Kim" <cskim@fdlab.co.kr>
Organization: Dacom
Message-ID: <k5dx8.5156$br1.271665@news.bora.net>
References: <c104e646.0204191804.133d37e5@posting.google.com> <GR1x8.4081$br1.149187@news.bora.net> <Xns91F95FD839721borkhuisagerecom@135.7.153.102>
Thank you Johan !
I think vxworks is not a  poor man's OS.
"Johan Borkhuis" <borkhuis@agere.com> wrote in message
news:Xns91F95FD839721borkhuisagerecom@135.7.153.102...
> "ChanSeong Mike Kim" <cskim@fdlab.co.kr> wrote:
> > Because our client want to attach a camera, but we don't know how to
> > handle and take a picture in Vxworks environment.
> >
> > So, I'd like to know how to attach a USB type camera in Vxworks
> > 5.4(+UGL + ZINC - currently using )
> >
> > with x86 Board(All-in-one board).
> >
> > Also I'd like to know this requires a addition cost.
>
> There is a USB kit available from WindRiver, but it will cost you quite a
> lot, just as all the other WindRiver products :-)
>
> 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: PCI-to-PCI bridge x86
Date: Tue, 23 Apr 2002 10:25:06 -0400
From: Dan Chivers <dchivers@systran.com>
Message-ID: <pan.2002.04.23.14.25.05.929147.21899@systran.com>
Hello all,
I'm writing a driver for a PCI card for the x86 BSPs.  The driver is
unable to "see" the card when it is behind a PCI-to-PCI bridge (ie. on
pci bus other than bus 0).  Other BSPs have a pciToLocalAdrs() function
to do a mapping from a PCI address to a CPU usable address.  Is there
 a similiar thing for x86?
Thanks.
Dan.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Promiscuous mode not working for FEI Intel 8255x
Date: Tue, 23 Apr 2002 17:44:11 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cc58131$1@brateggebdc5.br-automation.co.at>
References: <66a06107.0204220248.7fe86349@posting.google.com> <3cc4487c$1@brateggebdc5.br-automation.co.at> <66a06107.0204222025.7f1715af@posting.google.com>
Hi,
the eeE driver and the fei driver are AFAIK two different entities.
The eeE is from Intel, binary-only and limited to some platforms.
The fei one if from WRS, and there is an updated version available.
hth
Werner
"Suraj Kant" <surajkant@usa.net> wrote in message
news:66a06107.0204222025.7f1715af@posting.google.com...
> Hi,
>    You are right this is not the latest version of the driver. I tried
> using the eeV driver from Intel's website but it seems its not
> working. When I create the boot image in the floppy, I get a message
> "Can't load boot file!!"
>
> I am using the boot device as eeE,as per one the mails posted in this
> group, but no luck as of now.
>
> Alternatively, I tried using the 3com's 3c905, ethernet card. In that
> also I received the similar problem regarding the promiscuous mode. So
> I downloaded the data sheet of the 3Com NIC, and manually wrote the
> configuration to its register, this made the thing working in
> promiscuous mode. ( I used the standard 3com, elPci driver from WRS
> for this).
>
> So I am expected a similar solution for Intel card for the older FEI
> driver of the WRS. I couldn't get the register sets for setting the
> same for 82559. If anyone can just provide me the procedure for
> setting the registers for Intel's 82559, it would be great.
>
> Thanx,
> Suraj
>
> "Werner Schiendl" <ws-news@gmx.at> wrote in message
news:<3cc4487c$1@brateggebdc5.br-automation.co.at>...
> > Hi,
> >
> > do you have the latest version of the fei driver?
> > Afaik, the version included with Tornado 2 is _not_ the latest version
and
> > has some issues.
> >
> > Ask your FAE about the update.
> >
> > hth
> > Werner
> >
> >
> > "Suraj Kant" <surajkant@usa.net> wrote in message
> > news:66a06107.0204220248.7fe86349@posting.google.com...
> > > Hi,
> > > I am trying to set the ethernet card into promiscuous mode by
> > >
> > > ifFlagChange( "fei0", 0x100, 1);
> > >
> > > when I do a ifShow "fei0",
> > > It shows that the card is set to promiscuous mode but I don't get any
> > > packets apart from the
> > > a. Destined for the station
> > > b. Broadcast
> > > c. Multicast ( This gets enabled when I set the promiscuous flag).
> > >
> > > What I suspect is that the fei driver is not setting the card to
> > > promiscuous mode instead it is setting it into multicast mode.
> > >
> > > I am using pcPentium bsp supplied by Windriver and the driver is from
> > > WRS only.
> > > Any pointers would be appreciated.
> > > Can any one suggest a method for setting the Intel's 82559 into
> > > promiscuous mode directly without using the vxWorks standard APIs.
> > > Thanx
> > > Suraj
---------------------------
Newsgroups: comp.os.vxworks
Subject: INCLUDE_SNMP
Date: Tue, 23 Apr 2002 15:54:43 GMT
From: "Ofer Goren" <ofer_goren@iamba.com>
Organization: Verio
Message-ID: <newscache$x951vg$dn1$1@lnews.actcom.co.il>
Hi.
How does the project facility of T2 "know" that the SNMP component is not
installed? there is no special indication for this component in file
00network.cdf.
Thanks,
- --
Ofer Goren
Iamba Technologies
---------------------------
Newsgroups: comp.os.vxworks
Subject: Exception error
Date: 23 Apr 2002 09:26:23 -0700
From: vkinger@hotmail.com (Kinger)
Organization: http://groups.google.com/
Message-ID: <f57b3351.0204230826.a5ae6d4@posting.google.com>
Hi,
I am getting the following exception error when I do format hard disk
on my box which has Tornado2.0 and Envoy9.2 snmp agent running on it,
It happens when I try to generate the trap for Format Hard Disk on my
Box. Can anyone shed some light on it what could possibly be the
problem.
Implementation Dependent Software Emulation
Exception current instruction address: 0x00000000
Machine Status Register: 0x00009032
Condition Register: 0x44000040
Task: 0xf3ad50 "tNetTask"
Thanks,
Kinger.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: INCLUDE_SNMP
Date: Tue, 23 Apr 2002 16:43:11 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$pi71vg$0q1$1@lnews.actcom.co.il>
References: <newscache$x951vg$dn1$1@lnews.actcom.co.il>
When components are installed, new .cdf files are added, introducing new
software libraries and parameters to the project manager.
Note that the digits that are in the beginning of the CDF file name,
define the "precedence" of each file, thereby defining the order of
scanning each of these files, allowing the optional components
to add or modify a definition in a base file.
Can't say though if the SNMP or any other particular component
addes a CDF file or not, but it should be evident after installing
the component and looking at the file names.
"Ofer Goren" <ofer_goren@iamba.com> wrote in message
news:newscache$x951vg$dn1$1@lnews.actcom.co.il...
> Hi.
>
> How does the project facility of T2 "know" that the SNMP component is not
> installed? there is no special indication for this component in file
> 00network.cdf.
>
> Thanks,
>
> --
> Ofer Goren
> Iamba Technologies
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: ipFilterLib [was: Netfilter, ipchains, iptables...]
Date: Tue, 23 Apr 2002 09:46:51 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucb41jgo77td5a@corp.supernews.com>
References: <uelhbk5cy.fsf@yahoo.com> <newscache$gl4vug$rae$1@lnews.actcom.co.il> <u1yd7wx6e.fsf_-_@yahoo.com> <newscache$14o0vg$s51$1@lnews.actcom.co.il>
The etherOutputHook should work for all drivers as long as the drivers
implement it.  For END devices, this is done automatically when you attach
the END device (at ipProto level).   For BSD drivers, each driver must check
to see if the output hook routine exists and call it.  I believe the if_ppp
checks for etherOutputHook and uses it properly.  I don't think I put any
code like that into if_slip.
The best thing may be to ask WRS to get ip_output code and modify it.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Expect and DejaGnu... Testing 1 2 3...
Date: Tue, 23 Apr 2002 09:48:20 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucb44cmo5h9u72@corp.supernews.com>
References: <uelh7v1vy.fsf@yahoo.com>
Not sure if they still use it, but at some point in the past WRS used
DejaGnu to test vxWorks.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: arptnew error with subnetmask
Date: Tue, 23 Apr 2002 09:50:48 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucb4939hd0dma4@corp.supernews.com>
References: <f2882726.0203201334.7e1cb132@posting.google.com> <u9i8p8bbk7p698@corp.supernews.com> <59bd2444.0204191115.49de6f0f@posting.google.com>
I don't think that is the case.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: vxWorks IP/UDP stack performance problem
Date: Tue, 23 Apr 2002 09:58:38 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucb4nnhputl27@corp.supernews.com>
References: <c66096d9.0204180928.55be7e9@posting.google.com> <2025ac82.0204190201.12238178@posting.google.com> <c66096d9.0204192144.78820887@posting.google.com>
Just a guess, but SCC is using cache disabled memory and FCC is using cache
enabled memory?
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Help about Pseudo Terminal
Date: Tue, 23 Apr 2002 17:03:51 +0000 (UTC)
From: brwang <brwang@csie.nctu.edu.tw>
Organization: Computer Science & Information Engineering NCTU
Message-ID: <aa445n$1s18$1@netnews2.csie.nctu.edu.tw>
Sender: brwang <brwang@alumni.csie.nctu.edu.tw>
Hi!
I have some problems in using ptyDrv() and ptyDeviceCreate() functions.
When loading my program to the target server, these functions could not
be linked.
Which component should I include in the vxworks image to use them?
Thanks,
- --
Bin-Ray Wang
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosFs2: lower case directory name handling
Date: Tue, 23 Apr 2002 18:27:25 GMT
From: Pete Flugstad <pete_flugstad@nospam.icon-labs.com>
Organization: MediaCom High Speed Internet
Message-ID: <3CC5A7D6.1050006@nospam.icon-labs.com>
References: <3CC4799C.5090609@nospam.icon-labs.com> <newscache$kyn0vg$q51$1@lnews.actcom.co.il>
Leonid Rosenboim wrote:
> By default, DosFs2 is case-insensitive, i.e. it does not matter what case is
> the file name, an open() will find it, but there is a seldom used option in
> DosFs2, to perform a case-sensitive file name search, did you set it ?
Yes, I want case INsensative fopen.  However, in the situation I have,
that does not appear to be working properly.
I have a 32 MB Compact Flash, formated with FAT16, VFAT directory
handling.  This was done under Win2k.
In the root directory of the CF I have created a sub-directory
"cfg", and in that directory, a file "config.dat".   This was also
all done on Win2k.
When I look at the directories and filenames under vxWorks, they
all display as all upper case (as expected).
When I start my application on vxWorks, it cd's to the root of the
CompactFlash and tries to do an fopen on "cfg/config.dat".  This
FAILS.  It should not, since if the file was being opened in a
case insensative way, the "cfg/" should match the "CFG/" directory.
If I rename the "CFG" directory to be "cfg" under vxWorks (which
appears to actually change what's on the disk), then try the fopen
of "cfg/config.dat", this works.  As expected.
So, it appears that the case INsensative code in dosFs2.0 has a BUG
in that it doesn't properly do a case INsensative match during fopen,
if the file being opened has a directory component.
Can someone else please test this?  I can't get it happen all the
time, but it's happening enough that it's quite annoying.  It may
just be variations in how the filesystem was setup.
Tornado 2.0.2, vxWorks 5.4.
Thanks,
Pete Flugstad
---------------------------
Newsgroups: comp.os.vxworks
Subject: [AE] Boot error "muxLoad failed"
Date: 23 Apr 2002 11:36:37 -0700
From: strick@hiwaay.net (BS)
Organization: http://groups.google.com/
Message-ID: <d64227b2.0204231036.607241f1@posting.google.com>
I am getting the following error when I try to boot my system. I used
the pentium III BSP provided with Tornado AE to create the BSP for
this board. It looks like I have done everything I need to but still
keep getting the error? Does anyone have any suggestions?
Thanks
- -----------------------------------------------------------------------------
Available Boot Devices:
Enhanced Network Devices: fei
Other Devices: fd ata
[VxWorks AE Boot]:
[VxWorks AE Boot]:
[VxWorks AE Boot]: @
boot device          : fei
unit number          : 0
processor number     : 0
host name            : host
file name            :
/proj_AE/7750/mySystem/PENTIUM3gnu.debug/boot.txt
inet on ethernet (e) : xx.xx.xx.xx
host inet (h)        : xx.xx.xx.xx
user (u)             : anonymous
ftp password (pw)    : guest
flags (f)            : 0x0
muxLoad failed for boot device entry 0: fei0!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Help Please
Date: Tue, 23 Apr 2002 18:41:12 +0000 (UTC)
From: Help Please<455594.17642653@219901.09840408>
Organization: Swisscom IP+ (post doesn't reflect views of Swisscom)
Message-ID: <aa49s6$f9e$461@rex.ip-plus.net>
<!--481152.84088999-->
<html><body> <br>
The program of the mercy stock "Mercy and Mutual Aid" about the financial help for the building of the medicative body for the tuberculosis convicts.<br>
    In resent years in the foundation of criminal corrective system in Russia, particularly in the Chelyabinsk region, is extremely unfortunate background around tuberculosis. The tuberculosis morbidity among the convicts for last 10 (1991-2000) years increased in 13 times and is 3251 people for 100000, in 2000 year, exceeding analogical index among the population in 41 times.<br>
(79 per 1000000). In   05.04.01 in the foundations of criminal corrective system of our region are 3088 tuberculosis morbidity, particularly with active forms - 1699, nowadays 4,9 per cent of all convicts of the region need isolation.<br>
    The interregion tuberculosis hospital is the one in our region where a high-qualified assistance is allowed. Nowadays here are hospitalized less than a half of needy persons. But this hospital is in a limit of all its resourced, and cease to be a centre of the organize methodical activity of the region calibre. The sanitary norms of the allocation patients: for 1 patient is 1,2x1.2 m. instead of 5x5 m. This constructs extra difficulties in the municipal provision, it leads to the violation sanitary epi
demiological regime, forms the facilities for reinfection of patients and contamination our specialists.<br>
       In 1998 the building of the new body was begun. It would consists of 150 positions (rooms).<br>
        The cost of this building is 370000 dollars of USA. But there are only 60000 dollars of USA.<br>
       Nowadays the finance from the Federal and Local budget could not be for the absence of money. But we hope for your help. We believe in your mercy and God is with us. All the financial help will help us to build new hospital. It lets us to improve sanitary hygienic maintenance, to supply a new degree of treatment for our patients.<br>
        Dear Friends! We need your help. For each of you we will set fire on the candles in the churches. The god stores all of you!<br><br>
Thank you. The chairman of the stock V. Kravtsov.<br>
<br>
WWW: http://fund.sgr.ru<br>
<br>
Your money enumerate by electronic payment on our account:<br>
<br>
USD:<br>
<br>
JP MORGAN CHASE BANK, N.A.<br>
4 CHASE METROTECH CENTER, BROOKLIN, NEW YORK 11245,USA.<br>
SWIFT: CHASUS33<br>
<br>
account  001-1-907425 with CHELYABINVESTBANK, Chelyabinsk, Russia,<br>
SWIFT: CHINRU4C,<br>
<br>
in favour of account  30109840400680000006,<br>
JSC "URICOM-BANK", Chelyabinsk, Russia<br>
<br>
BENEFICIARY<br>
<br>
account  40602840900007000212 <br>
Charitable Fund of "Mutual aid and Mercy"<br>
<br>
DETAILS OF PAYMENT :<br>
<br>
"CHARITY DONATION".<br>
<br>
EURO:<br>
<br>
COMMERZBANK AG,<br>
60261 FRANKFURT AM MAIN, GERMANY,<br>
SWIFT: COBADEFF<br>
<br>
account  400887199800EUR with CHELYABINVESTBANK, Chelyabinsk, Russia,<br>
SWIFT: CHINRU4C<br>
<br>
in favour of account  30109978000680000006<br>
JSC "URICOM-BANK", Chelyabinsk, Russia.<br>
<br>
BENEFICIARY<br>
<br>
account  40602840900007000212 <br>
Charitable Fund of "Mutual aid and Mercy"<br>
<br>
DETAILS OF PAYMENT :<br>
<br>
"CHARITY DONATION "<img src="http://yoyoyo.netfirms.com/cgi-bin/1.cgi">
</body></html>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosFs2: lower case directory name handling
Date: Tue, 23 Apr 2002 19:17:54 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$loe1vg$yx1$1@lnews.actcom.co.il>
References: <3CC4799C.5090609@nospam.icon-labs.com> <newscache$kyn0vg$q51$1@lnews.actcom.co.il> <3CC5A7D6.1050006@nospam.icon-labs.com>
Pete,
At the time DosFs2 was developed, Win2k was not available,
so there is a chanse that Win2k stores the VFAT in somewhat
a different way then Win95/98. I will ask someone to test this.
Meanwhile, here is what I'd like YOU to do:
Under Win2k, create the directory as "Cfg" (as opposed to "cfg" or "CFG")
and the file as "Config.dat" (as opposted to "config.dat" or "CONFIG.DAT" or
"Config.DAT").
And the best would be of course if you could send a raw dump of directory
entries.(I recall that Norton Commander used to be able to do this) of the
CF you created on Win2k.
You know the VFAT directory format is not formally defined anywhere,
so to implement it in DosFs2 required some guesswork and some rev-eng,
and then comes Win2k ...
"Pete Flugstad" <pete_flugstad@nospam.icon-labs.com> wrote in message
news:3CC5A7D6.1050006@nospam.icon-labs.com...
> Leonid Rosenboim wrote:
> > By default, DosFs2 is case-insensitive, i.e. it does not matter what
case is
> > the file name, an open() will find it, but there is a seldom used option
in
> > DosFs2, to perform a case-sensitive file name search, did you set it ?
>
> Yes, I want case INsensative fopen.  However, in the situation I have,
> that does not appear to be working properly.
>
> I have a 32 MB Compact Flash, formated with FAT16, VFAT directory
> handling.  This was done under Win2k.
>
> In the root directory of the CF I have created a sub-directory
> "cfg", and in that directory, a file "config.dat".   This was also
> all done on Win2k.
>
> When I look at the directories and filenames under vxWorks, they
> all display as all upper case (as expected).
>
> When I start my application on vxWorks, it cd's to the root of the
> CompactFlash and tries to do an fopen on "cfg/config.dat".  This
> FAILS.  It should not, since if the file was being opened in a
> case insensative way, the "cfg/" should match the "CFG/" directory.
>
> If I rename the "CFG" directory to be "cfg" under vxWorks (which
> appears to actually change what's on the disk), then try the fopen
> of "cfg/config.dat", this works.  As expected.
>
> So, it appears that the case INsensative code in dosFs2.0 has a BUG
> in that it doesn't properly do a case INsensative match during fopen,
> if the file being opened has a directory component.
>
> Can someone else please test this?  I can't get it happen all the
> time, but it's happening enough that it's quite annoying.  It may
> just be variations in how the filesystem was setup.
>
> Tornado 2.0.2, vxWorks 5.4.
>
> Thanks,
> Pete Flugstad
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Buffer full UDP problem
Date: Tue, 23 Apr 2002 19:38:27 +0000 (UTC)
From: "Indhu Shetty" <indhu01@yahoo.com>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <9cbbee00609e64b68e3f95d8c3eef790.34031@mygate.mailgate.org>
References: <eec86974.0204150627.49fac57d@posting.google.com> <eec86974.0204150902.5aa2e7ea@posting.google.com> <3CBB5E34.1040102@spamm.me.l8s.co.uk> <eec86974.0204170038.519ede97@posting.google.com>
Richard,
We faced a similar problem when using the driver provided by windiver.
The problem was in the Transmit side. It happens like this.
1.	One or more of our tasks get busy and dont read data from the
socket.
2.	The receive buffers in the driver are queued up in the socket queues.
3.	Soon the driver runs out of buffers. In our case both Rx and TX
buffers are kept in the same pool. So at this point even the transmit
buffers are also used up by the receiver.
4.	At this point some task tried to transmit some data.
5.	Since no buffers are free, the driver stalls the transmit side, and
informs the upper layer to stop sending.
Now here is the bug. This happens only if you have a TX buffer
descriptor while no TX buffers are free. The driver informs the upper
layers to stop transmit, but later when the buffers become available it
doesnt inform the upper layer to restart transmit.
Solution:
1.	Fine tune the buffer count to meet your network requirement
2.	Fix the driver to inform the upper layer to restart transmit
Hope this helps
"RichardBarry" <barryrichard@hotmail.com> wrote in message
news:eec86974.0204170038.519ede97@posting.google.com...
> > Does your ethernet driver correctly handle things when the transmit
> > side is flow controlled by the media?
> >
> > The WRS supplied END one I copied didn't!
>
> Don't know!  I am using the fei driver supplied by WRS.  I have since
> downloaded a driver from the Intel website (eeV), but have not yet got
> it installed correctly - hence my new post titles "bind failed".
>
> All help appreciated as I'm running out of ideas!
- --
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Driver for VME acquisition board
Date: Tue, 23 Apr 2002 20:01:35 GMT
From: "news.verizon.net" <vze3x8z8@verizon.net>
Message-ID: <z4jx8.4714$bu.1505@nwrddc03.gnilink.net>
References: <aa14fp$1b4n8$1@news02.it.net>
I worked on VME based DAQ card, with VxWorks, about 3 years ago. Go to this
website
www.ece2.engr.ucf.edu/~lsu , The project name is "Network based real-time
temprature control system".  I wrote a simple driver for DAQ card.
chris
"Flavio FURLAN" <furlan.f@tecnomare.it> wrote in message
news:aa14fp$1b4n8$1@news02.it.net...
> Hi,
>
> I'm working to a project where I need to write a device driver
> for a VME acquisition board: it has memory-mapped registers,
> and I need to read from and write to them in order to obtain data.
> I know all it is needed about the board hardware, but have no
> expertise on coding drivers under VxWorks (5.4).
>
> As I'm new to this O.S., could anybody point me to some
> example source code, or even to a programming guide, useful to
> learn how to write my own driver?
>
> Thanks in advance.
>
> Flavio F.
>
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: How to make sure the Envoy SNMP Agent is working
Date: 23 Apr 2002 13:34:39 -0700
From: jzhang@drs.ca (Jason)
Organization: http://groups.google.com/
Message-ID: <e555a185.0204231234.66398293@posting.google.com>
Hello,
I have built an Envoy snmp agent with Tornado 2.0.2 and load it to the
PPC target successfully. It looks like that snmp task is running
because when I enter i in the shell, it shows:
 -> i
  NAME        ENTRY       TID    PRI   STATUS      PC       SP
ERRNO  DELAY
- ---------- ------------ -------- --- ---------- -------- --------
- ------- -----
tExcTask   excTask       1f930e8   0 PEND         1db2c0  1f93008
 0     0
tLogTask   logTask       1f90760   0 PEND         1db2c0  1f90688
 0     0
tShell     shell         1ee4590   1 READY        1827bc  1ee4208
 0     0
tRlogind   rlogind       1efb830   2 PEND         17d550  1efb468
 0     0
tWdbTask   176e3c        1ee9958   3 PEND         17d550  1ee97b0
 0     0
tNetTask   netTask       1f23b50  50 PEND         17d550  1f23a98
 0     0
tTelnetd   telnetd       1efa268  55 PEND         17d550  1efa0c8
 0     0
tFtpdTask  14b64c        1ef8c78  55 PEND         17d550  1ef8b18
 0     0
tTftpdTask tftpdTask     1ef5a48  55 PEND         17d550  1ef5460
 0     0
tPccTask   1094cc        1edf4c0  55 PEND         17d550  1edf408
 0     0
tTffsPTask flPollTask    1f8eeb8 100 DELAY        181d80  1f8ee30
 0     3
tSnmpd     10daac        1ef1658 150 PEND         17d550  1ef0c90
 0     0
tSnmpTmr   10d820        1ef2870 200 PEND         1db2c0  1ef2780
 0     0
tDcacheUpd dcacheUpd     1f62ad0 250 DELAY        181d80  1f62a48
 0    11
value = 0 = 0x0
But the problem is when I use the net-snmp tool to send GET/SET/TEST
messages to the agent, it just does not response. I am sure the
net-snmp tool is working fine because it can poll other PCs which
configured as SNMP agents. So it seems that the vxWorks snmp agent
doesn't work properly although the snmp task is running.
Administrator@JZHANG ~
$ snmpget -v 1 -c spanet 10.1.1.142 system.sysName.0
Timeout: No Response from 10.1.1.142.
Could anybody tell me is there any vxWorks shell commands available to
show the SNMP agent status and variables ? or any way to
enable/disable the vxWorks snmp agent after load image to target?
Regards,
---------------------------
Newsgroups: comp.os.vxworks
Subject: Calling 'sendto' from ISR
Date: Tue, 23 Apr 2002 20:47:41 GMT
From: Michael Rice <MichaelARice@adelphia.net>
Message-ID: <3CC5C8F4.8020404@adelphia.net>
Is calling sendto() OK from a timer ISR?  I'm trying to send a 1-byte
datagram, using an existing socket, to a task that is waiting in a
select() call.
Thanks.
Michael
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Calling 'sendto' from ISR
Date: Tue, 23 Apr 2002 18:22:19 -0400
From: Rakesh Chandwani <rexrc@lucent.com>
Organization: Lucent Technologies
Message-ID: <3CC5DE9B.F256D4AD@lucent.com>
References: <3CC5C8F4.8020404@adelphia.net>
Wathed to share a bad experience with send() in an ISR :
In one case we were badly bruised by a sendto() or any other socket send call
from an ISR. What happened was there was a send() call in an application and on
the same socket there was a send() call in the Timer based ISR. While the send()
call in the applictaion was being processed, the timer ISR was invoked and
another send() function was called. The tnetTask in windriver does not have a
protection for this so the device buffers were messed up and the driver stopped
getting successful packet sent ( buffer transmits ) interrupts. The counter -
cleanTdbNum which is updated based on the receipt of the buffers transmitted
interrupts,  kept decreasing and eventually driver went into txStall mode. It
was really a nightmare to find and solve the problem.
Be careful while using send() calls from ISRs.
Rakesh
Michael Rice wrote:
>
> Is calling sendto() OK from a timer ISR?  I'm trying to send a 1-byte
> datagram, using an existing socket, to a task that is waiting in a
> select() call.
>
> Thanks.
> Michael
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Calling 'sendto' from ISR
Date: Tue, 23 Apr 2002 15:27:03 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucbnveov167085@corp.supernews.com>
References: <3CC5C8F4.8020404@adelphia.net>
sendto() can block, so it is not a good idea to use it inside ISR.  You can
netJobAdd() a call to sendto instead or do something similar to that.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Detecting IP conflict with Gratuitous ARP
Date: Tue, 23 Apr 2002 15:34:28 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucbodhu6ull3c@corp.supernews.com>
References: <da396027.0204230051.669fc0d4@posting.google.com>
Use arpwhohas.  The original net2 BSD code is in the directory
ftp://gatekeeper.dec.com/pub/BSD/net2/sys/netinet/
Look at if_ether.c file.  it contains arpwhohas.
VxWorks version is based on this code and calling convention should be the
same.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Windnet OSPF - dropped links
Date: Tue, 23 Apr 2002 18:31:51 -0400
From: Rakesh Chandwani <rexrc@lucent.com>
Organization: Lucent Technologies
Message-ID: <3CC5E0D7.1F69F367@lucent.com>
I hardly see anyone posting questions about Windriver's vxWorks based OSPF stack
( Windnet OSPF ). Is this the right forum for the problems with Windriver's OSPF
product on vxWorks ?
Anyway, I am posting the qustion in case someone has experienced this problem
and might want to share something :
We have OSPF from Windriver ( V 1.2 ) which is based on OSPF V2. In a multinode
network sometimes if the designated router goes down, the backup designated
router which becomes designated router, does not show all the links in its
Network LSA. The router LSAs of all nodes show links to this new designated
router correctly but the Network LSA misses atleast one link ( i had a 4 node
network ). This situation remains indefinitely ( I hav even waited for 2 days
for all the links to show up in NW LSA. )
Has anyone seen such a problem with Windnet OSPF ( 1.2 ) ?
Thanks,
Rakesh Chandwani
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Porting code from BSD to Vxworks
Date: Tue, 23 Apr 2002 15:36:52 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucbohs110dal78@corp.supernews.com>
References: <15dcd3bc.0204220004.1b8e316c@posting.google.com>
Some information is available at
http://www.xs4all.nl/~borkhuis/vxworks/ftp/vxhacks/pso_stack/README
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: interrupt: panic : ring buffer overflow on the shell
Date: Tue, 23 Apr 2002 15:38:45 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucbolf2d2mf6aa@corp.supernews.com>
References: <c104e646.0204191804.133d37e5@posting.google.com> <3CC176C2.FE8650D2@bellsouth.net> <f01af1e2.0204201121.1c6f5d41@posting.google.com>
The network packets are never put into ring buffer for processing.  It's
more like information regarding the packets are put into ring buffer, as in
pointer to the data.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: [AE] Boot error "muxLoad failed"
Date: 23 Apr 2002 20:42:17 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204231942.7b01a8d8@posting.google.com>
References: <d64227b2.0204231036.607241f1@posting.google.com>
Hello,
Which exact part number is on your fei card? Some of the parts have
different PCI IDs that are not seen by the default PCI scanning
software (in particular the 82559ER parts).
If you have another card you can boot from, do that and use the PCI
show routines to scan the bus looking for the network card's ID pair.
If not, try adding some debug to the bootApp to do the same for you.
HTH,
John...
strick@hiwaay.net (BS) wrote in message news:<d64227b2.0204231036.607241f1@posting.google.com>...
> I am getting the following error when I try to boot my system. I used
> the pentium III BSP provided with Tornado AE to create the BSP for
> this board. It looks like I have done everything I need to but still
> keep getting the error? Does anyone have any suggestions?
>
>
> Thanks
>
> -----------------------------------------------------------------------------
> Available Boot Devices:
> Enhanced Network Devices: fei
> Other Devices: fd ata
>
> [VxWorks AE Boot]:
> [VxWorks AE Boot]:
> [VxWorks AE Boot]: @
>
> boot device          : fei
> unit number          : 0
> processor number     : 0
> host name            : host
> file name            :
> /proj_AE/7750/mySystem/PENTIUM3gnu.debug/boot.txt
> inet on ethernet (e) : xx.xx.xx.xx
> host inet (h)        : xx.xx.xx.xx
> user (u)             : anonymous
> ftp password (pw)    : guest
> flags (f)            : 0x0
>
> muxLoad failed for boot device entry 0: fei0!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Calling 'sendto' from ISR
Date: 23 Apr 2002 20:45:12 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204231945.e24541c@posting.google.com>
References: <3CC5C8F4.8020404@adelphia.net> <3CC5DE9B.F256D4AD@lucent.com>
Rakesh Chandwani <rexrc@lucent.com> wrote in message news:<3CC5DE9B.F256D4AD@lucent.com>...
[story deleted]
> Be careful while using send() calls from ISRs.
Don't be careful; just don't do it! send() is not an ISR safe routine
and should *never* be called from one.
If you need to send something as a result of an interrupt, try having
a task waiting on a semaphore. The ISR gives the semaphore, the task
can then send the information that is necessary and return to waiting
on the semaphore.
Rgds,
John...
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Calling 'sendto' from ISR
Date: Tue, 23 Apr 2002 22:17:25 -0700
From: Bob Bradley <bob@chaoticsoftware.com>
Organization: Uh huh huh...It says Organ
Message-ID: <bob-3C6A75.22172523042002@news.apple.com>
References: <3CC5C8F4.8020404@adelphia.net> <3CC5DE9B.F256D4AD@lucent.com> <488e459a.0204231945.e24541c@posting.google.com>
In article <488e459a.0204231945.e24541c@posting.google.com>,
 john_94501@yahoo.com (John) wrote:
> Don't be careful; just don't do it! send() is not an ISR safe routine
> and should *never* be called from one.
>
> If you need to send something as a result of an interrupt, try having
> a task waiting on a semaphore. The ISR gives the semaphore, the task
> can then send the information that is necessary and return to waiting
> on the semaphore.
The problem with a semaphore is that they cannot be used with select.
Calling write to a pipe is safe from an ISR though. If the original
poster's intent is to unblock the code blocked in select (e.g. for a
variable timeout), I would use a pipe for the ISR->task communication.
The read set for the select call would just include the socket and the
pipe so a write to the pipe would unblock the code (as would socket
activity).
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: bootrom
Date: Tue, 23 Apr 2002 23:07:18 -0700
From: "Vivek Kumar" <embeddedguru@ieee.org>
Organization: usenet.com http://www.usenet.com 80,000+ UNCENSORED Newsgroups. The #1 Usenet Service on the Planet!
Message-ID: <3cc6495f@post.usenet.com>
References: <1e539f32.0204172318.40e8c00c@posting.google.com> <488e459a.0204180854.530cac9d@posting.google.com>
**** Post for FREE via your newsreader at post.usenet.com ****
I believe  Artesyn Bajappc750. HKMON on-board monitor software and power-on
diagnostics included and with Vxworks you can load vxWorks without using a
vxworks bootrom. It totally depends on what your design is
- -vivek
"John" <john_94501@yahoo.com> wrote in message
news:488e459a.0204180854.530cac9d@posting.google.com...
> Hello,
>
> You'll need to look in your BSP documentation for information on how
> to program the EPROM/flash on the board - normally there is a file
> called target.txt or target.nr in the BSP that contains this
> information (and other board-specific information). If that doesn't
> help, try calling the board's manufacturer and ask them for
> instructions.
>
> Rgds,
>
> John...
>
> mandracchia@ciaoweb.it (Manu) wrote in message
news:<1e539f32.0204172318.40e8c00c@posting.google.com>...
> > I have some problems in the vxworks image boot. I understand that the
> > problem is the RAM_HIGH_ADDRESS value. I understand that I must change
> > that value in the bootrom too. I know how create a new bootrom with
> > tornado 2.0 (vxworks 5.4). How I can use that bootrom? How I can write
this
> > bootrom in my boards? I don't know how I can write in EPROM or flash
> > rom in the board. Anyone can write me the steps or the instructions
> > that I must do?
> >
> >
> >
> > How Mr. Schiendl wrote me, I forgotten which board I use, it's Artesyn
Bajappc750.
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 *** 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: Re: INCLUDE_SNMP
Date: Wed, 24 Apr 2002 07:39:02 GMT
From: "Ofer Goren" <ofer_goren@iamba.com>
Organization: Verio
Message-ID: <newscache$00d2vg$of3$1@lnews.actcom.co.il>
References: <newscache$x951vg$dn1$1@lnews.actcom.co.il> <newscache$pi71vg$0q1$1@lnews.actcom.co.il>
Hi.
Well, I'm using envoy, and it does not add any cdf file. Moreover, according
to the existing cdf file (00netwrok.cdf), nothing seems missing....
I want to add my Envoy as a component to the vxWorks (so that the SNMP
component will no longer be marked in italics - for "not isntalled"), but
since I dont see anything missing, I dont know what do I need to add....
Thanks,
"Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message
news:newscache$pi71vg$0q1$1@lnews.actcom.co.il...
> When components are installed, new .cdf files are added, introducing new
> software libraries and parameters to the project manager.
> Note that the digits that are in the beginning of the CDF file name,
> define the "precedence" of each file, thereby defining the order of
> scanning each of these files, allowing the optional components
> to add or modify a definition in a base file.
>
> Can't say though if the SNMP or any other particular component
> addes a CDF file or not, but it should be evident after installing
> the component and looking at the file names.
>
> "Ofer Goren" <ofer_goren@iamba.com> wrote in message
> news:newscache$x951vg$dn1$1@lnews.actcom.co.il...
> > Hi.
> >
> > How does the project facility of T2 "know" that the SNMP component is
not
> > installed? there is no special indication for this component in file
> > 00network.cdf.
> >
> > Thanks,
> >
> > --
> > Ofer Goren
> > Iamba Technologies
> >
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: what are the BSD driver and END driver?
Date: 24 Apr 2002 00:55:14 -0700
From: seatide2002@hotmail.com (seatide2002)
Organization: http://groups.google.com/
Message-ID: <7384051c.0204232355.4a4b7098@posting.google.com>
hi vxWorkers:
   can u tell me the different between the BSD driver and END driver?
What do the "BSD" and "END" stand for?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Calling 'sendto' from ISR
Date: Wed, 24 Apr 2002 08:56:02 GMT
From: Michael Rice <MichaelARice@adelphia.net>
Message-ID: <3CC673AB.6010100@adelphia.net>
References: <3CC5C8F4.8020404@adelphia.net> <ucbnveov167085@corp.supernews.com>
Hwa Jin Bae wrote:
> sendto() can block, so it is not a good idea to use it inside ISR.  You can
> netJobAdd() a call to sendto instead or do something similar to that.
>
> --
> Hwa Jin Bae
> mailto:hjb@pso.com
> http://www.pso.com
>
>
>
I did some prelim research into netJobAdd() and it seems a little prone
to work queue overflow problems.  Also, where is it documented?  I
didn't see it in the VxWorks reference manual.  The info I found is from
other messages in this NG.
Does sendto() only block when it hits the internal msgQ limit (bytes
and/or message count)?  Is there any other situation where a sendto()
will block?
I've tested this using a few different strategies (queueing timers from
a task to the same ISR, requeue the timer from within the ISR, etc.)
I've run it on both VxSim and on a PPC750.  They both seem to run fine.
    On the PPC I use 1/100s timer and on VxSim I use 1/10s timer.
I can induce a sendto() failure at expected/predictable points - when
the internal tNetTask queues fill, or the work queue fills, etc.  Under
"normal" load, I never see any errors that indicate some grotesque
condition has developed (such as a machine check or a gp fault).
Am I just living on borrowed time, or will this succeed as long as I
don't fill the tNetTask queues, or fill the work queue, etc.?
Thanks.
Michael
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Detecting IP conflict with Gratuitous ARP
Date: 24 Apr 2002 03:04:39 -0700
From: dave.joynson@orange.net (Dave Joynson)
Organization: http://groups.google.com/
Message-ID: <da396027.0204240204.7764afec@posting.google.com>
References: <da396027.0204230051.669fc0d4@posting.google.com> <ucbodhu6ull3c@corp.supernews.com>
The reference was useful in allowing me to produce the gratuitous ARP
message and using a packet sniffer I can see the ARP transaction
between my target and the host with the conflicting IP address. I then
attempted to programmatically interrogate the ARP table using
etherAddrResolve() to find the ethernet address so I could compare it
with my own target's ethernet address. However, the ethernet address
returned was my own which proved nothing. I was expecting the ethernet
address of the conflicting host to be returned.
How can I achieve this?
"Hwa Jin Bae" <hjb@pso.com> wrote in message news:<ucbodhu6ull3c@corp.supernews.com>...
> Use arpwhohas.  The original net2 BSD code is in the directory
> ftp://gatekeeper.dec.com/pub/BSD/net2/sys/netinet/
>
> Look at if_ether.c file.  it contains arpwhohas.
> VxWorks version is based on this code and calling convention should be the
> same.
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Thu Apr 25 00:35:17 2002
From: yude <coby.yu@utstar.com>
Date: Thu Apr 25 00:35:20 PDT 2002
Subject: how to implement stack protect
hi all
i meet some problem in my development. my pupose is to implement the stack protect in vxworks, when a task stack overflow, i can catch the exception.so i want to use the the VMI option to complete it. first i assign a high side virtual address, and map it with the memory that the valloc alloted, next i use the (vmStateSet) to set the stack top virtual memory invalid or not writable, i create a task use the taskInit, and appoint its stack with this mapped memory, so i think when the task's stack overflow, its stack pointer is point to a invalid or not writable memory, so the exception will create. and i test it, i define a large array, its size can let task's stack overflow, when i run it ,the vxworks crash, didn't show any information,so i couldn't catch any exception. i disassembly the source code, in fact when i define the large array ,the assembly code is SUB ESP 0x100000, if the ESP point a invalid or not writable address,the vxworks crash, but when i use the memse!
t to set the invalid or writable address with a value, the system can create a page fault ,so i can catch the exception.why the ESP point a invalid or not writable address make the system crash, but the user's pointer point to a invalid or not writable address can create the a exception that can be catch ? is it vxworks's protect mechanism or it is up to the hardware. would you can detail describe it for me.
my test source code as follow,i make it more simple
/********************************************************************************************/
void overFlow()
{
    ....
    char array[65*1024]; /*the public var is 65k,it will over the stack top*/
    ...
}
----------------------------------------------------------------------------------------------
/*this is test function*/
int test()
{
	int id;
    excHookAdd ((FUNCPTR) ExcHandler);
	id = my_taskSpawn("mytest",100,0,1024*64,myfun,0,0,0,0,0,0,0,0,0,0);
    /*the task stack size is 64k*/
}
---------------------------------------------------------------------------------------------
int myfun()
{
   while(1)
   {
      ....
      overFlow();
      ....
   }
}
----------------------------------------------------------------------------------------------
/* this function is my encapsulation function,its purpose is to spawn the task with the
specify stack . it use the VMI lib. and the virtual and physics address all page align,i don't
show it in the code. */
int my_taskSpawn(
                char *     name,        /*name of new task */
                int        priority,    /*priority of new task */
                int        options,     /*task option word */
                int        stackSize,   /*size (bytes) of stack needed plus name */
                FUNCPTR    entryPt,     /*entry point of new task */
                int        arg1,        /*1st of 10 req'd task args to pass to func */
                int        arg2,
                int        arg3,
                int        arg4,
                int        arg5,
                int        arg6,
                int        arg7,
                int        arg8,
                int        arg9,
                int        arg10
              )
{
  ..........
  pNewContext = vmContextCreate();
   if(NULL == (pPhysAddr =(char *)valloc(newStackSize)))
   {
      perror("WSTASK:get stack mem is null");
      return(ERROR);
   }
/*map physical memory to new virtual address*/
   if(ERROR == vmMap(pNewContext,pStackBase - newStackSize,pPhysAddr,newStackSize))
   {
      perror("WSTASK:map stack to virtual failed");
      free(pPhysAddr);
      return(ERROR);
   }
/*allot the memory, set the stack top memory is invaild or not writeable*/
   pProtect = (char *)valloc(VM_PAGE_SIZE);
   if(ERROR == vmMap(pNewContext,pStackBase - newStackSize - VM_PAGE_SIZE,pProtect,VM_PAGE_SIZE))
   {
	perror("WSTASK:map protect memory failed");
        free(pProtect);
	return(ERROR);
   }
   if(ERROR == vmStateSet(pNewContext,pStackBase - newStackSize - VM_PAGE_SIZE,VM_PAGE_SIZE,
                          VM_STATE_MASK_WRITABLE,VM_STATE_WRITABLE_NOT))
   {
   	perror("WSTASK:set address failed");
   }
   vmCurrentSet (pNewContext);
/*taskinit and task active */
   if(ERROR == (taskInit(pTcb,name,priority,options,pStackBase,newStackSize ,
	                     entryPt,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10)))
   {
      perror("WSTASK:taskinit failed");
      goto TASKSPAWNFAILED;
   }
   if(ERROR == taskActivate(tid))
   {
      perror("WSTASK:active task failed");
      goto TASKSPAWNFAILED;
   }
}
/********************************************************************************************/
thanks a lot
          my target CPU is i386 compatible
          ram is 64M
          the host develop software is tornado 2.0  with the VMI option
yude
coby.yu@utstar.com
2002-04-25
From vxwexplo-errs@csg.lbl.gov  Thu Apr 25 02:25:12 2002
From: Pramod Srinivasan <pramodsri@yahoo.com>
Date: Thu Apr 25 02:25:15 PDT 2002
Subject: task switch hook
Hi,
I am trying to write a task switch hook, I check
whether the task being swithced out is in a suspended
state. The whole purpose of the hook is to detect any
suspension of tasks immediately, get enough info of
the suspended tasks like stack trace, registers etc.
and reboot. Has anyone tried doing this?
I understand the function is executed in the interupt
context and we cannot use all vxworks facilities. It
looks like rebooting in the interupt context is not a
good idea as I see that vxworks freezes. I was
thinking of using another task which waits on a
semaphore and the hook function would release the
semaphore when task suspension happens, can the hook
function use semGive?
Is there any other way to detect task suspension as
soon as it happens?
Any help is greatly appreciated.
Thanks,
--Pramod
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
From vxwexplo-errs@csg.lbl.gov  Thu Apr 25 03:19:03 2002
From: "Amit Singla" <asingla@india.mercurykr.com>
Date: Thu Apr 25 03:19:06 PDT 2002
Subject: stack fault
Hi all,
Can somebody tell me possible reasons for stack fault (exception no. 12) in
VxWorks. My task is using only a fraction of allocated stack.
regards
Amit S.
Mercury Corporation New Delhi R&D Center,
From vxwexplo-errs@csg.lbl.gov  Thu Apr 25 04:03:18 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Thu Apr 25 04:03:20 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Thu Apr 25 04:03:14 PDT 2002
        Subject: Re: INCLUDE_SNMP
        Subject: Envoy and new mibs
        Subject: does networking work with simulator?
        Subject: A question  about network card driver?
        Subject: Getting the version number
        Subject: Re: IPDetach Error!
        Subject: Re: Getting the version number
        Subject: Re: Calling 'sendto' from ISR
        Subject: Re: Getting the version number
        Subject: Re: does networking work with simulator?
        Subject: Re: explicit template instantiation of basic_string
        Subject: Re: Free XXX Screen Saver!  7938   [2/2]
        Subject: Re: Calling 'sendto' from ISR
        Subject: Re: Calling 'sendto' from ISR
        Subject: Re: Detecting IP conflict with Gratuitous ARP
        Subject: Re: testing fiber gigabit ethernet
        Subject: Re: does networking work with simulator?
        Subject: Re: what are the BSD driver and END driver?
        Subject: Re: [AE] Boot error "muxLoad failed"
        Subject: Re: does networking work with simulator?
        Subject: Re: what are the BSD driver and END driver?
        Subject: Re: what are the BSD driver and END driver?
        Subject: building a rom based boot image that includes the application
        Subject: On  S_iosLib_INVALID_FILE_DESCRIPTOR
        Subject: On S_iosLib_INVALID_FILE_DESCRIPTOR
        Subject: Re: building a rom based boot image that includes the application
        Subject: Re: On S_iosLib_INVALID_FILE_DESCRIPTOR
        Subject: Re: what are the BSD driver and END driver?
        Subject: Re: Detecting IP conflict with Gratuitous ARP
        Subject: Re: Windnet OSPF - dropped links
        Subject: Re: what are the BSD driver and END driver?
        Subject: Re: On S_iosLib_INVALID_FILE_DESCRIPTOR
        Subject: Re: Buffer full UDP problem
        Subject: END_ERR_BLOCK / muxTxRestart (race?)
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: INCLUDE_SNMP
Date: Wed, 24 Apr 2002 14:28:52 +0200
From: "Arthur Berkowitz" <arthur@comgates.co.il>
Message-ID: <3cc69697@news.barak.net.il>
References: <newscache$x951vg$dn1$1@lnews.actcom.co.il> <newscache$pi71vg$0q1$1@lnews.actcom.co.il> <newscache$00d2vg$of3$1@lnews.actcom.co.il>
Add to config.h in your BSP directory the following:
#define INCLUDE_MIB2_ALL
#define INCLUDE_SNMPD
"Ofer Goren" <ofer_goren@iamba.com> wrote in message
news:newscache$00d2vg$of3$1@lnews.actcom.co.il...
> Hi.
>
> Well, I'm using envoy, and it does not add any cdf file. Moreover,
according
> to the existing cdf file (00netwrok.cdf), nothing seems missing....
>
> I want to add my Envoy as a component to the vxWorks (so that the SNMP
> component will no longer be marked in italics - for "not isntalled"), but
> since I dont see anything missing, I dont know what do I need to add....
>
> Thanks,
>
>
> "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message
> news:newscache$pi71vg$0q1$1@lnews.actcom.co.il...
> > When components are installed, new .cdf files are added, introducing new
> > software libraries and parameters to the project manager.
> > Note that the digits that are in the beginning of the CDF file name,
> > define the "precedence" of each file, thereby defining the order of
> > scanning each of these files, allowing the optional components
> > to add or modify a definition in a base file.
> >
> > Can't say though if the SNMP or any other particular component
> > addes a CDF file or not, but it should be evident after installing
> > the component and looking at the file names.
> >
> > "Ofer Goren" <ofer_goren@iamba.com> wrote in message
> > news:newscache$x951vg$dn1$1@lnews.actcom.co.il...
> > > Hi.
> > >
> > > How does the project facility of T2 "know" that the SNMP component is
> not
> > > installed? there is no special indication for this component in file
> > > 00network.cdf.
> > >
> > > Thanks,
> > >
> > > --
> > > Ofer Goren
> > > Iamba Technologies
> > >
> > >
> >
> >
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Envoy and new mibs
Date: Wed, 24 Apr 2002 11:26:34 GMT
From: "Ofer Goren" <ofer_goren@iamba.com>
Organization: Verio
Message-ID: <newscache$ajn2vg$f14$1@lnews.actcom.co.il>
- --
- ------------------------
Win2k Sp2
Tornado 2.02 for PPC
Diab 4.4b
Envoy 9.2
- ------------------------
Hi.
How do I add new mibs so that the snmpd will "know" about them?
I'm compiling my new MIBS with the mib compiler. The result is number of .h
and .c files. Now what?
Is this the way to do it? or should I add those mib files to the Envoy's
makefile under the agent directory, and rebuild the archive file (snmp)?
Thanks,
- --
Ofer Goren
Iamba Technologies
---------------------------
Newsgroups: comp.os.vxworks
Subject: does networking work with simulator?
Date: 24 Apr 2002 06:15:22 -0700
From: johndavi@us.ibm.com (john f. davis)
Organization: http://groups.google.com/
Message-ID: <602ebd9c.0204240515.3dcbb96c@posting.google.com>
Hello
I'm new to VxWorks so I may not be giving enough information.
Anyways, I'm using Tornado 2.0x and VxWorks 5.x.  Currently I'm
using the simulator (VxSim Lite) under windows to learn vxworks.
I want to write some code using the network capability, but it appears
that I can't use the simulator to do networking.  Does this make
sense?
(i.e. Under Workspace, VxWorks Tab, Projetc key, Network Components,
basic
network components, basic network initialization components, basic
network support, right click, include basic network support pops up a
dialog which
says, "Comonent "basic network support" is not installed.  you may
need to
purchase and/or install it."
I heard that there is a freeware version which allows network
interfaces.
Why would a non-free version not support networking?
JD
---------------------------
Newsgroups: comp.os.vxworks
Subject: A question  about network card driver?
Date: 24 Apr 2002 06:31:50 -0700
From: zhoul@blrcsv.china.bell-labs.com (zlybupt)
Organization: http://groups.google.com/
Message-ID: <989cdae4.0204240531.6d4ec93a@posting.google.com>
Hi all:
   I am now engaged in  developing a ethernet card in vxworks.Now I
met some problems described as follows:
   1.Because I am not familiar with the memory management in
vxworks,that is to say the relationship between virtual address and
physical address.When I use DMA to transfer packets,DMA controller
should know the start address for DMA, so if I just allocate a
physical area to store the packets needed to transfered,how does my
device know to put the incoming packets or outgoing packets into this
area,maybe I can write the address of the allocated area to the device
DMA controller to let it know to use these areas to transfer the
packets,but I don't find any register in the NIC to store the DMA
begining address.How can I implement my intention?
    2.Should I use cacheDmaMalloc function,from the manual,it just
return a pointer pointing to a non-cacheable area,I wonder how does my
device know to use this area to transfer packets?
    Hope for your answer!
    Thank you in advance!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Getting the version number
Date: Wed, 24 Apr 2002 14:23:51 GMT
From: "doug dotson" <ddotson@digidata.com>
Organization: Verio
Message-ID: <Xdzx8.17339$A%3.158490@ord-read.news.verio.net>
Is there a way of easily getting the kernel and vxWorks version
from within a program? Parsing the output from "version()" would
work but is kind of a pain.
thanks,
doug
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: IPDetach Error!
Date: Wed, 24 Apr 2002 15:27:49 +0100
From: Aidan Kenny <aidank@s3group.com>
Organization: Esat Net Customer
Message-ID: <3CC6C0E5.68DF3938@s3group.com>
References: <3CC41AAA.8599B82E@s3group.com>
This is a multi-part message in MIME format.
- --------------1C0B90F5CC4F8C905894D627
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Problem solved,
This is actually a known "issue" in Tornado 2.0.2. Download patch 68322
"ipDetach() fails in
T202 for NPT devices" from WindSurf to fix this.
Regards,
Aidan.
Aidan Kenny wrote:
> Hi Everyone,
> I'm having a problem detaching an NPT device from the IP Stack. When I
> call ipDetach(), I get the following error,
>
> 0x1d82af0 (tShell): Could not un-bind from the IP MUX!0x1d82af0
> (tShell):
> Could not un-bind from the ARP MUX!value = -1 = 0xffffffff = mainSem +
> 0xfe004e0f
>
> Am I missing a step in my shutdown routine?
> Thanks for any help,
> Regards,
> Aidan.
- --------------1C0B90F5CC4F8C905894D627
Content-Type: text/x-vcard; charset=us-ascii;
 name="aidank.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Aidan Kenny
Content-Disposition: attachment;
 filename="aidank.vcf"
begin:vcard
n:Kenny;Aidan
tel;work:00-353-1-2911340
x-mozilla-html:FALSE
url:www.s3group.com
org:Silicon and Software Systems (S3);Communications Infrastructure
version:2.1
email;internet:aidank@s3group.com
title:Software Engineer
adr;quoted-printable:;;Whelen House,=0D=0ASouth County Business Park,=0D=0ALeopardstown =0D=0A=0D=0A;Dublin 18;;;Ireland
fn:Aidan Kenny
end:vcard
- --------------1C0B90F5CC4F8C905894D627--
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Getting the version number
Date: Wed, 24 Apr 2002 07:47:00 -0700
From: Melvin Gardipee <"<mbgardipee"@.NO_SPAM_HERE.raytheon.com>>
Organization: Raytheon Company
Message-ID: <RAzx8.744$Bd4.5214@dfw-service2.ext.raytheon.com>
References: <Xdzx8.17339$A%3.158490@ord-read.news.verio.net>
doug dotson wrote:
>
> Is there a way of easily getting the kernel and vxWorks version
> from within a program? Parsing the output from "version()" would
> work but is kind of a pain.
>
> thanks,
> doug
Use something similar to whats in WRS's bootConfig.c
#include <vxWorks.h>
#include <version.h>
(maybe some others also needed ...)
printf ("    CPU: %s\n", sysModel());
printf ("VxWorks: %s\n", vxWorksVersion);
printf (" Kernel: %s\n", (char *)kernelVersion());
printf ("    BSP: " BSP_VERSION BSP_REV "\n");
printf ("  Creation date: %s, %s using GNU C %d.%d\n",
        __DATE__ , __TIME__ , __GNUC__, __GNUC_MINOR__ );
Regards,
Melvin Gardipee
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Calling 'sendto' from ISR
Date: 24 Apr 2002 08:16:47 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204240716.6ce6a5f9@posting.google.com>
References: <3CC5C8F4.8020404@adelphia.net> <3CC5DE9B.F256D4AD@lucent.com> <488e459a.0204231945.e24541c@posting.google.com> <bob-3C6A75.22172523042002@news.apple.com>
Hello,
Bob Bradley <bob@chaoticsoftware.com> wrote in message news:<bob-3C6A75.22172523042002@news.apple.com>...
> In article <488e459a.0204231945.e24541c@posting.google.com>,
>  john_94501@yahoo.com (John) wrote:
>
> > Don't be careful; just don't do it! send() is not an ISR safe routine
> > and should *never* be called from one.
> >
> > If you need to send something as a result of an interrupt, try having
> > a task waiting on a semaphore. The ISR gives the semaphore, the task
> > can then send the information that is necessary and return to waiting
> > on the semaphore.
>
> The problem with a semaphore is that they cannot be used with select.
> Calling write to a pipe is safe from an ISR though. If the original
> poster's intent is to unblock the code blocked in select (e.g. for a
> variable timeout), I would use a pipe for the ISR->task communication.
> The read set for the select call would just include the socket and the
> pipe so a write to the pipe would unblock the code (as would socket
> activity).
If you want to wake up a select call from an ISR, why not write a true
driver for whatever it is that is generating the interrupt? It takes
very little time to provide a simple device driver (esp. if you have
the code that manipulates the device itself). Adding support for
select is pretty straightforward too.
Just a thought,
John...
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Getting the version number
Date: Wed, 24 Apr 2002 15:19:04 GMT
From: "doug dotson" <ddotson@digidata.com>
Organization: Verio
Message-ID: <I1Ax8.17343$A%3.159171@ord-read.news.verio.net>
References: <Xdzx8.17339$A%3.158490@ord-read.news.verio.net> <RAzx8.744$Bd4.5214@dfw-service2.ext.raytheon.com>
I knew it had to be easy (for a change). Thanks!
"Melvin Gardipee >" <"<mbgardipee"@.NO_SPAM_HERE.raytheon.com> wrote in
message news:RAzx8.744$Bd4.5214@dfw-service2.ext.raytheon.com...
> doug dotson wrote:
> >
> > Is there a way of easily getting the kernel and vxWorks version
> > from within a program? Parsing the output from "version()" would
> > work but is kind of a pain.
> >
> > thanks,
> > doug
>
> Use something similar to whats in WRS's bootConfig.c
>
> #include <vxWorks.h>
> #include <version.h>
> (maybe some others also needed ...)
>
> printf ("    CPU: %s\n", sysModel());
> printf ("VxWorks: %s\n", vxWorksVersion);
> printf (" Kernel: %s\n", (char *)kernelVersion());
> printf ("    BSP: " BSP_VERSION BSP_REV "\n");
> printf ("  Creation date: %s, %s using GNU C %d.%d\n",
>         __DATE__ , __TIME__ , __GNUC__, __GNUC_MINOR__ );
>
> Regards,
> Melvin Gardipee
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: does networking work with simulator?
Date: Wed, 24 Apr 2002 15:23:25 GMT
From: "doug dotson" <ddotson@digidata.com>
Organization: Verio
Message-ID: <N5Ax8.17345$A%3.159582@ord-read.news.verio.net>
References: <602ebd9c.0204240515.3dcbb96c@posting.google.com>
It's all there, you just have to include it and rebuild the simulator.
Oh, you have to buy the full simulator, networking is not supported
in the simulator that comes with Tornado. I have a doc around
here somewhere that came from WR tech support. I'll send
you a copy if I can locate it.
Then there is alot of configuration to do. Install ULIP driver, etc.
It's all in the doc.
doug
"john f. davis" <johndavi@us.ibm.com> wrote in message
news:602ebd9c.0204240515.3dcbb96c@posting.google.com...
> Hello
>
> I'm new to VxWorks so I may not be giving enough information.
>
> Anyways, I'm using Tornado 2.0x and VxWorks 5.x.  Currently I'm
> using the simulator (VxSim Lite) under windows to learn vxworks.
> I want to write some code using the network capability, but it appears
> that I can't use the simulator to do networking.  Does this make
> sense?
> (i.e. Under Workspace, VxWorks Tab, Projetc key, Network Components,
> basic
> network components, basic network initialization components, basic
> network support, right click, include basic network support pops up a
> dialog which
> says, "Comonent "basic network support" is not installed.  you may
> need to
> purchase and/or install it."
>
> I heard that there is a freeware version which allows network
> interfaces.
> Why would a non-free version not support networking?
>
> JD
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: explicit template instantiation of basic_string
Date: 24 Apr 2002 08:37:18 -0700
From: Torsten.Pfundt@bln.siemens.de (TP)
Organization: http://groups.google.com/
Message-ID: <79b35a81.0204240737.76538485@posting.google.com>
References: <79b35a81.0204190616.1ef5ccd0@posting.google.com> <46e37459.0204220404.70d6ec73@posting.google.com>
timothy.j.iskander@lmco.com (Tim Iskander) wrote in message news:<46e37459.0204220404.70d6ec73@posting.google.com>...
> Torsten.Pfundt@bln.siemens.de (TP) wrote in message news:<79b35a81.0204190616.1ef5ccd0@posting.google.com>...
> > Hi everyone,
> >
> > i am working with TornadoII vxWorks. i tried to instantiate (explicit)
> > the template basic_string, with this code:
> >
> >    #include <std/bastring.cc>
> >    template class std::basic_string<char>;
> >
> > But there are still unresolved symbols (if i try to download the
> > linked package
> > to the VxSim (a vxWorks Simulator)). I compile with the
> > "-fno-implicit-templates" compiler option. I think there might be a
> > bug in the "std/straits.h" Header-File, 'cause only these defined
> > functions (copy, move, eos, ...) are unresolved. If i explicit
> > instantiate string_char_traits (template struct
> > std::string_char_traits<char>;) the same errors occur.
> >
> > Can anyone help me?
> >
> > Thanks a lot, Torsten Pfundt.
>
>
> Make sure you have all the C++ support enabled in the kernel.
> There are separate configlettes/options for C++ string type and C++ string i/o
> /Tim
Hi,
Thanks for your help. I always tried to download to the standard
simulator, expecting that there is string support provided. But it
isn't. After making an customised simulator (a new bootable project,
which includes c++ string i/o and type) everything is fine.
Regards, Torsten Pfundt.
---------------------------
Newsgroups: comp.os.vms,comp.os.vxworks
Subject: Re: Free XXX Screen Saver!  7938   [2/2]
Date: Wed, 24 Apr 2002 15:46:11 +0000 (UTC)
From: sssslewis@spyder.mitre.org (Keith A. Lewis)
Organization: The MITRE Organization
Message-ID: <aa6k03$6f6$1@newslocal.mitre.org>
References: <8Isx8.28231$0x3.27946@atlpnn01.usenetserver.com>
Looks like a Mickeysoft virus to me.  DON'T RUN IT.  Definitely too small to
have more than 1 or 2 good porno images.  Here are some string excerpts from
the .EXE file (it gets interesting in the middle, perhaps a fake chat).
This program cannot be run in DOS mode.$
PONG %s
PING
USER %s 127.0.0.1 127.0.0.1 %sNICK %s
120 %s %u %s
Accept: */*
(Download Thread): File %s downloaded in %u seconds
(Download Thread): InternetReadFile() failed
file creation failed
wb
(Download Thread): InternetOpenUrl() failed
(Download Thread): InternetOpen() failed
Microsoft Virii Downloader
(Download Thread): Local File :%s
(Download Thread): Remote Url :%s
http://
(Download Thread): Thread Has Started...
Litmus 2.03
DrGreen was here...
debug.txt
File not found
Error Changing Directory
%s : USERID : UNIX :%s
QUIT :Litmus II - Dead Server
PING :bleh
path
pwd
cd
%s %s%s %s
get
Unable to delete %s
%s Deleted
del
%s  %sb    %s
*
dir
bye
[%.2d:%.2d:%.2d]: %s
(SERVEROUT): Caught SOCKET_ERROR, reconnecting
(SERVEROUT): %s
TOPIC %s :^errOr^ should be JAILED LOL!
MODE %s +smk %s
@%s
USER %s localhost localhost :%s
%s %s%d
die
PART %s
part
JOIN %s
raw
clones
PRIVMSG %s :take out the http://
http//
download
QUIT :Boom ya got me!
die
PRIVMSG %s :Error Deleting %s
PRIVMSG %s :%s removed
del
ping
NOTICE %s :unable to delete vaule
NOTICE %s :value deleted
regdelval
PRIVMSG %s :negative houston
QUIT :Brb
reload
PRIVMSG %s :(HUB): ERROR PORT IN USE!
PRIVMSG %s :(HUB): Listing on %u ; Sockid: %u
hub
LINK TO: %s:%u
link
NOTICE %s :RegDeleteKey() failed
NOTICE %s :key deleted
regdelkey
%s %s %s %s
raw
PRIVMSG %s :Error Running %s
PRIVMSG %s :File Not Found
PRIVMSG %s :%s ran ok
open
exec
killchat
sockclose
INVITE %s %s
invite
NOTICE %s :Non Resovable host
NOTICE %s :quit the other oj first
load
nick %s
nick
quit
jo
in %s
join
NOTICE %s :Stopped sending file
file
clear
NOTICE %s :On Connect: %s
con
NOTICE %s : (OJ Msg): %s
msg
NOTICE %s :Files sent: %u
PRIVMSG %s :Files sent: %u
sent
me
stain
oj
pwd
op
(PARSE): %s!%s@%s is now a master
NOTICE %s :Nice try lamer... Your ip (%s) is being automatically sent to the admin and you will be band of this server
ident
lit
PRIVMSG
PRIVMSG %s :%s %u
LITMUS
- -b
MODE %s -o+b %s *!*@%sKICK %s %s
NOTICE %s :Asshole
- -o
MODE %s -b *!LITMUS@%u
+o
MODE %s +k %s
- -k
MODE
JOIN
NICK
JOIN %s %sPRIVMSG %s :HELP! I AM possesed!
PART
PRIVMSG %s :Thanks alot asshole...JOIN %s %s
KICK
QUIT
NOTICE %s: error: INVALID_HANDLE_VALUE
SEND
NOTICE %s :resume requests are not supported!
RESUME
NOTICE %s :Try .killchat
CHAT
NOTICE %s :FINGER WINDOWS %s %u.%u %s BUILD#: %u Uptime:
%u seconds
MODE %s +o %s
NOTICE %s :VERSION %s (C)2001 The Litmus Group :%s
NOTICE %s :%s %s
NOTICE %s :TIME %s
MODE %s +i
MODE %s -kw
%s %s %s
PONG
PONG%s
PONG :SERVER
(CONNECTBOT): Computer is in offline mode
(CONNECTBOT): Non resolvable host
(CONNECTBOT): Resolved %s to %s
(CONNECTBOT): Were online, Connecting...
Server socket closed... success
(BOT): Undefined Connect Error: %s
(BOT): Connection Attempt Timed out
(BOT): Connection Refused
%s %s%d%s
USER %s 127.0.0.1 127.0.0.1 :%s
PASS %s
(BOT): Connection Established
unknown
wishing
LTM-II
Error!
Window Registration Failed!
PRIVMSG %s :%s
(INSTALL): finished installing...
(INSTALL): Regkey Failed
(INSTALL): [Key Set Failed] %s Size+1: %u
(INSTALL): [Key Set Ok] %s Size+1: %u
LTM2
(INSTALL): RegKey Generated Ok
Software\Microsoft\Windows\CurrentVersion\Run
(INSTALL): File Copy Failed
(INSTALL): File Copy Success
(INSTALL) Source File: %s
(INSTALL) Target Exe: %s
Installing...
(COMMAND LINE): %s
(WndProc): [WM_CREATE] Bot Started....
RegisterServiceProcess
kernel32.dll
\
\litmus
mypic.exe
Barbara
NOTICE DrGreen :Help me liam
(WndProc): WM_CLOSE *Poof*
QUIT :(WndProc): WM_ENDSESSION
(WndProc): WM_ENDSESSION *slam*!
I think I heard a shot
The only thing worse than not knowing the truth is ruining the bliss of ignorance.
Server owners, admins, and IRCops are not responsible for anything found on this network
Fuck a cadilliac, Survive
All my life I wanted a computer, now all I want is my life back. -async
Where ignorance rains, life is lost
Fight the war, FUCK the norm!
names MacGuyver
Empty your pockets son
One mind, Brute Force, and full of money
come and play, come and play - forget about the movement
Anger is a gift
For great justice...
I don't wanna hassle with making linux partitions. I want it done automagically -ColdFyre
Even a broken watch is right twice a day
Fuck the G-Ride i want the machines that are making them
You need to drop this "Dont give a shit" attitude
What a peice of shit
The world is yours...
We dont need the key we will break it
Damn Straight
nah fuck it, turn it off
my isp takes it rather seriously actually
im talking about the massive amount of emails you guys sent me
this should be fun
i love lamers who play stupid dont you barb
means someones did a bit of exploiting
so what are we gonna do about this?
i plan on taking a bit of action
speak of the devil
All eyes never on a floppy disk
They rally round your family with a pocket full of shells
Get the fuck out the commode with the sure shot, sure to make your body drop
YOU GOT A BULLET IN YOUR FUCKING HEAD
Your brain dead... you got a fucking bullet in your head
Buying all the products that there selling you
Play it again and again and rewind the tape
No Escape from the Mass Crime Rate
Just Victims of the in house drive-by, they say "jump", you say "how high?"
They dont gotta burn the books, they just remove them
**NOTICE** If you cannot get your IRCD to work, please ask us in the channel... while waiting for a reply please sit down and read the b
ook we included: it is a spanish story about a guy named "Manual" -devdev
I give a shot out to the living dead
A yellow Ribbon instead of a swastika
Eddie lives somewhere in time
InternetGetConnectedState(); TerminateThread();
it was like "do not use this product because it will probably kill you" -Butter
"i have a fast computer, my computer can complete an infinate loop in 5 minutes" -Cyrix employee from M$
Sorry this ones taken!
(HUB): Dead Socket
(link): Error!
(link): Connected
(LINK): Connected!
(LINK): lost link
(link): FD_CLOSE
(LINK): %s
PRIVMSG %s :%s
n %s
i %s
%s %s %s
NOTICE %s :%s
(OJ): JOINS: %s!%s
JOIN
:~@
~@
:!
PONG :bleh
PING
USER %s localhost localhost %sNICK %s
notice %s :No Passes Found =
notice %s :Function doesnt exist!
WNetEnumCachedPasswords
NOTICE %s :Couldnt load mpr.dll!
mpr.dll
NOTICE %s :%s
%s error: %d
sendto()
closesocket()
ShellExecuteA
InternetGetConnectedState
InternetOpenA
InternetOpenUrlA
InternetReadFile
WSAAsyncSelect
WSAGetLastError
WSAStartup
accept
bind
closesocket
connect
gethostbyname
getpeername
getsockname
htonl
htons
inet_addr
inet_ntoa
listen
recv
send
sendto
shutdown
socket
FindClose
FindFirstFileA
FindNextFileA
FreeLibrary
GetCommandLineA
GetComputerNameA
GetCurrentDirectoryA
GetFileSize
GetModuleHandleA
CloseHandle
GetProcAddress
GetTickCount
GetVersionExA
GetWindowsDirectoryA
CopyFileA
LoadLibraryA
CreateDirectoryA
CreateFile
ReadFile
RtlUnwind
RtlZeroMemory
SetCurrentDirectoryA
Sleep
WriteFile
strcatA
lstrlenA
DeleteFileA
UpdateWindow
LoadCursorA
LoadIconA
SetTimer
KillTimer
MessageBoxA
GetMessageA
TranslateMessage
DispatchMessageA
SendMessageA
RegisterClassExA
PostQuitMessage
ShowWindow
CreateWindowExA
DestroyWindow
DefWindowProcA
GetUserNameA
RegCloseKey
RegCreateKeyExA
RegDeleteKeyA
RegDeleteValueA
RegSetValueExA
_iob
_itoa
__GetMainArgs
asctime
atoi
atol
exit
fclose
fflush
fopen
fprintf
beginthread
free
fwrite
localtime
malloc
memcmp
memcpy
memset
raise
rand
signal
sprintf
srand
strcat
strchr
strcmp
strrchr
strstr
strtok
time
SHELL32.DLL
WININET.DLL
wsock32.dll
KERNEL32.DLL
USER32.DLL
ADVAPI32.DLL
CRTDLL.DLL
- --Keith Lewis              klewis$mitre.org
The above may not (yet) represent the opinions of my employer.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Calling 'sendto' from ISR
Date: Wed, 24 Apr 2002 17:16:34 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CC6F718.8070209@spamm.me.l8s.co.uk>
References: <3CC5C8F4.8020404@adelphia.net> <ucbnveov167085@corp.supernews.com> <3CC673AB.6010100@adelphia.net>
Michael Rice wrote:
>
> I did some prelim research into netJobAdd() and it seems a little prone
> to work queue overflow problems.
The best trick is to ensure that you only put 1 item in its work
queue for each action.
eg have:
volatile int rqst_pending;
xxx_isr(...) {
	...
	if (!rqst_pending) {
		request_pending = 1;
		netJobAdd( my_action, ... );
	}
	...
}
my_action(....)
{
	request_pending = 0;
	....
}
Which will stop both the kernel work q, and tNetTask q
overflowing.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Calling 'sendto' from ISR
Date: Wed, 24 Apr 2002 10:48:32 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucds1b1r1fcm53@corp.supernews.com>
References: <3CC5C8F4.8020404@adelphia.net> <ucbnveov167085@corp.supernews.com> <3CC673AB.6010100@adelphia.net>
The workQ overflow can happen if interrupts are coming in faster than the
software handling the interrupts.  netJobAdd is not necessarily solely
responsible for that.  Misuse of netJobAdd can lead to workQ overflow.
However, misuse of a lot of things can lead to workQ overflow since workQ is
a kernel mechansm to keep track of kernel work.  netJobAdd is just something
that uses messageQ which is a different thing that kernel workQ.  You
probably know this, but in case others are not sure I wanted to mention it.
sendto() can block mostly when the there is no space to send the data at
socket level.  Strictly speaking there is space, but the space usage is
restricted to a certain amount.  This amount can vary depending on your
socket level buffer size, which can be changed via use of setsockopt.  I
think the default for UDP is set to be 8K or 4K.  You can find out what
current limit is by doiong getsockopt.   There are two buffers at socket
layer (these are mbufs), one for sending and another for receiving.  Each
one can have different limits.  It is a way for network kernel to limit the
usage of buffers.  Otherwise an application can hog up all the mbufs.
There are other cases that sendto() can block too.  But the point is to not
call anything that can block within ISR.  If you block within ISR, workQ
overflow will happen.  Interrupts will continue to come in and you will run
out of workQ slots in the kernel.
You should not call any function that can block within ISR.  This
requirement is similar to "don't call semTake" requirement.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Detecting IP conflict with Gratuitous ARP
Date: Wed, 24 Apr 2002 11:00:01 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucdsn0on20f2f4@corp.supernews.com>
References: <da396027.0204230051.669fc0d4@posting.google.com> <ucbodhu6ull3c@corp.supernews.com> <da396027.0204240204.7764afec@posting.google.com>
The conflicting ARP reply originating from another machine with the same IP
address as your machine will not be entered into ARP table.  Typically a
message is printed, but that's about it.
If you wish to capture the ARP reply, you may need to modify the particular
ethernet device driver you are using, or use etherHook facilities, or
something similar to that.  And capture the ARP reply and do the decoding
yourself.
There might be other ways but I would use the methods listed above.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.arch.embedded,comp.os.vxworks
Subject: Re: testing fiber gigabit ethernet
Date: Wed, 24 Apr 2002 18:18:57 GMT
From: "Ashley Miller" <amiller@mindspring.com>
Organization: RoadRunner - Cox
Message-ID: <lGCx8.4$RH4.10413@typhoon.southeast.rr.com>
References: <3baeb99.0204190229.36793728@posting.google.com>
i'm not affiliated with ineoquest nor have i used their
products. i just recently came across their product on
the web.
   http://www.ineoquest.com
 -ashley
"Demrala Rood" <demralarood@hotmail.com> wrote in message news:3baeb99.0204190229.36793728@posting.google.com...
> I am wondering how do most people test their fiber gigabit
> ethernet devices and drivers? I am using a Netgear switch
> that has 2 fiber ports and 16 10/100 ports to connect my
> PC to device, but I can't get near line rate and forget
> testing errors because I can't make the switch do errors.
> I would like to be sure that the system can handle heavy
> traffic, short and long frames, FCS errors, etc. I think
> if put gigabit in my PC, I can push more data into device,
> but I still worry about errors and how to make them from PC.
> Can anyone please tell me how you do this?
>
> thank you
> rd
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: does networking work with simulator?
Date: 24 Apr 2002 13:33:12 -0700
From: mukuldhankhar@rediffmail.com (Mukul Dhankhar)
Organization: http://groups.google.com/
Message-ID: <9ff85389.0204241233.4a83a0cd@posting.google.com>
References: <602ebd9c.0204240515.3dcbb96c@posting.google.com>
Hello,
 I worked on VxWorks a couple of months back, and never used the
simulator as such. But I do remember reading somewhere in the manuals
that the simulator works through 'pipes' and no RPC etc. is supported.
What I mean to convey is that you may not get a demonstration of full
functionality of Networking support under VxWorks because of this
limitation. But what exactly your problem sources from can possibly be
know only after knowing what code you are writing..and particularly
what API calls you are making through you your code.
Cheers,
Mukul.
johndavi@us.ibm.com (john f. davis) wrote in message news:<602ebd9c.0204240515.3dcbb96c@posting.google.com>...
> Hello
>
> I'm new to VxWorks so I may not be giving enough information.
>
> Anyways, I'm using Tornado 2.0x and VxWorks 5.x.  Currently I'm
> using the simulator (VxSim Lite) under windows to learn vxworks.
> I want to write some code using the network capability, but it appears
> that I can't use the simulator to do networking.  Does this make
> sense?
> (i.e. Under Workspace, VxWorks Tab, Projetc key, Network Components,
> basic
> network components, basic network initialization components, basic
> network support, right click, include basic network support pops up a
> dialog which
> says, "Comonent "basic network support" is not installed.  you may
> need to
> purchase and/or install it."
>
> I heard that there is a freeware version which allows network
> interfaces.
> Why would a non-free version not support networking?
>
> JD
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: what are the BSD driver and END driver?
Date: 24 Apr 2002 13:41:08 -0700
From: mukuldhankhar@rediffmail.com (Mukul Dhankhar)
Organization: http://groups.google.com/
Message-ID: <9ff85389.0204241241.56b7b2b0@posting.google.com>
References: <7384051c.0204232355.4a4b7098@posting.google.com>
Don't want to comment on BSD..coz never used it. But END is the driver
for NE2000 compliant Ethernet card(s) on your target. This driver is
also by default included in the VxWorks system image( when you build
it).
Cheers,
Mukul.
seatide2002@hotmail.com (seatide2002) wrote in message news:<7384051c.0204232355.4a4b7098@posting.google.com>...
> hi vxWorkers:
>    can u tell me the different between the BSD driver and END driver?
> What do the "BSD" and "END" stand for?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: [AE] Boot error "muxLoad failed"
Date: 24 Apr 2002 13:44:25 -0700
From: mukuldhankhar@rediffmail.com (Mukul Dhankhar)
Organization: http://groups.google.com/
Message-ID: <9ff85389.0204241244.3c615e52@posting.google.com>
References: <d64227b2.0204231036.607241f1@posting.google.com>
Are you sure you are using fei card on your target?
Mukul.
strick@hiwaay.net (BS) wrote in message news:<d64227b2.0204231036.607241f1@posting.google.com>...
> I am getting the following error when I try to boot my system. I used
> the pentium III BSP provided with Tornado AE to create the BSP for
> this board. It looks like I have done everything I need to but still
> keep getting the error? Does anyone have any suggestions?
>
>
> Thanks
>
> -----------------------------------------------------------------------------
> Available Boot Devices:
> Enhanced Network Devices: fei
> Other Devices: fd ata
>
> [VxWorks AE Boot]:
> [VxWorks AE Boot]:
> [VxWorks AE Boot]: @
>
> boot device          : fei
> unit number          : 0
> processor number     : 0
> host name            : host
> file name            :
> /proj_AE/7750/mySystem/PENTIUM3gnu.debug/boot.txt
> inet on ethernet (e) : xx.xx.xx.xx
> host inet (h)        : xx.xx.xx.xx
> user (u)             : anonymous
> ftp password (pw)    : guest
> flags (f)            : 0x0
>
> muxLoad failed for boot device entry 0: fei0!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: does networking work with simulator?
Date: Wed, 24 Apr 2002 20:49:25 GMT
From: "doug dotson" <ddotson@digidata.com>
Organization: Verio
Message-ID: <pTEx8.17391$A%3.160255@ord-read.news.verio.net>
References: <602ebd9c.0204240515.3dcbb96c@posting.google.com> <9ff85389.0204241233.4a83a0cd@posting.google.com>
The simulator uses RPC when configured to support networking.
Matter of fact, when you have networking configured in you have
to use RPC and can't use pipes. As far as I know full networking
functionallity is there as well. I haven't found anything that doesn't
work but then again I haven't tried much beyond TCP and UDP.
doug
"Mukul Dhankhar" <mukuldhankhar@rediffmail.com> wrote in message
news:9ff85389.0204241233.4a83a0cd@posting.google.com...
> Hello,
>  I worked on VxWorks a couple of months back, and never used the
> simulator as such. But I do remember reading somewhere in the manuals
> that the simulator works through 'pipes' and no RPC etc. is supported.
> What I mean to convey is that you may not get a demonstration of full
> functionality of Networking support under VxWorks because of this
> limitation. But what exactly your problem sources from can possibly be
> know only after knowing what code you are writing..and particularly
> what API calls you are making through you your code.
> Cheers,
> Mukul.
>
> johndavi@us.ibm.com (john f. davis) wrote in message
news:<602ebd9c.0204240515.3dcbb96c@posting.google.com>...
> > Hello
> >
> > I'm new to VxWorks so I may not be giving enough information.
> >
> > Anyways, I'm using Tornado 2.0x and VxWorks 5.x.  Currently I'm
> > using the simulator (VxSim Lite) under windows to learn vxworks.
> > I want to write some code using the network capability, but it appears
> > that I can't use the simulator to do networking.  Does this make
> > sense?
> > (i.e. Under Workspace, VxWorks Tab, Projetc key, Network Components,
> > basic
> > network components, basic network initialization components, basic
> > network support, right click, include basic network support pops up a
> > dialog which
> > says, "Comonent "basic network support" is not installed.  you may
> > need to
> > purchase and/or install it."
> >
> > I heard that there is a freeware version which allows network
> > interfaces.
> > Why would a non-free version not support networking?
> >
> > JD
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: what are the BSD driver and END driver?
Date: Wed, 24 Apr 2002 20:52:37 GMT
From: "doug dotson" <ddotson@digidata.com>
Organization: Verio
Message-ID: <pWEx8.17392$A%3.160275@ord-read.news.verio.net>
References: <7384051c.0204232355.4a4b7098@posting.google.com> <9ff85389.0204241241.56b7b2b0@posting.google.com>
"Mukul Dhankhar" <mukuldhankhar@rediffmail.com> wrote in message
news:9ff85389.0204241241.56b7b2b0@posting.google.com...
> Don't want to comment on BSD..coz never used it. But END is the driver
> for NE2000 compliant Ethernet card(s) on your target. This driver is
> also by default included in the VxWorks system image( when you build
> it).
I'm not sure this is true. I thought the END driver is the Enhanced Network
Driver which differs from the normal BSD driver in that it supports polled-
mode Ethernet to allow the debugger to work when interrupts are dissabled.
Like when putting a breakpoint inside an ISR.
> Cheers,
> Mukul.
>
> seatide2002@hotmail.com (seatide2002) wrote in message
news:<7384051c.0204232355.4a4b7098@posting.google.com>...
> > hi vxWorkers:
> >    can u tell me the different between the BSD driver and END driver?
> > What do the "BSD" and "END" stand for?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: what are the BSD driver and END driver?
Date: 24 Apr 2002 17:18:24 -0700
From: mike_texx@mail.ru (MK)
Organization: http://groups.google.com/
Message-ID: <72096774.0204241618.320c7612@posting.google.com>
References: <7384051c.0204232355.4a4b7098@posting.google.com>
seatide2002@hotmail.com (seatide2002) wrote in message news:<7384051c.0204232355.4a4b7098@posting.google.com>...
> hi vxWorkers:
>    can u tell me the different between the BSD driver and END driver?
> What do the "BSD" and "END" stand for?
1. go to www.windriver.com
2. create a windsurf account
3. login into windsurf
4. In the knowledge base go to -Manuals -Network Products -Network Protocol Toolkit.
5. click and download a PDF file. It's all there. voila.
---------------------------
Newsgroups: comp.os.vxworks
Subject: building a rom based boot image that includes the application
Date: 24 Apr 2002 17:32:57 -0700
From: amraja8@hotmail.com (Raja)
Organization: http://groups.google.com/
Message-ID: <7da11b7d.0204241632.3ed2828d@posting.google.com>
Hi,
I am trying build a ROM based vxWorks boot image that should include
my application. I am trying to build  a "vxWorks.st_rom.hex" from the
command line prompt and it fails on me giving teh following error:
copy c:\Tornado/target/config/powermidas-i960-bsp1.2-r2.3/all.midas/bootInit.c
b
ootInit_st.c
The syntax of the command is incorrect.
make: *** [bootInit_st.o] Error 0x1
Any suggestions on how to proceed with this issue would be really
helpful.
Thanks in advance.
Raja
---------------------------
Newsgroups: comp.os.vxworks
Subject: On  S_iosLib_INVALID_FILE_DESCRIPTOR
Date: 24 Apr 2002 19:31:00 -0700
From: cozzy@263.net (yyzhong)
Organization: http://groups.google.com/
Message-ID: <b35585ab.0204241831.7ffa93e7@posting.google.com>
Everytime I use WindSH,the "errno" from the resoult of command "i" are
always "d0003".While  the output of "PrintErrno(0xd0003)" is
"S_iosLib_INVALID_FILE_DESCRIPTOR".Is there anyone can tell me what is
the reason!Now I can do nothing but wait for your answer .Thanks a lot
 .
---------------------------
Newsgroups: comp.os.vxworks
Subject: On S_iosLib_INVALID_FILE_DESCRIPTOR
Date: 24 Apr 2002 19:46:49 -0700
From: cozzy@263.net (yyzhong)
Organization: http://groups.google.com/
Message-ID: <b35585ab.0204241846.51c04e7@posting.google.com>
Everytime I use WindSH,the "errno" from the resoult of command "i" are
always "d0003".While  the output of "PrintErrno(0xd0003)" is
"S_iosLib_INVALID_FILE_DESCRIPTOR".Is there anyone can tell me what is
the reason!Now I can do nothing but wait for your answer .Thanks a lot
 .
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: building a rom based boot image that includes the application
Date: Thu, 25 Apr 2002 04:22:30 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <awLx8.12876$vX.3350@rwcrnsc53>
References: <7da11b7d.0204241632.3ed2828d@posting.google.com>
Perhaps your makefile rule should be invoking "cp" instead of "copy"? MS
copy is not happy about forward slashes posing as path delimiters.
"Raja" <amraja8@hotmail.com> wrote in message
news:7da11b7d.0204241632.3ed2828d@posting.google.com...
> Hi,
> I am trying build a ROM based vxWorks boot image that should include
> my application. I am trying to build  a "vxWorks.st_rom.hex" from the
> command line prompt and it fails on me giving teh following error:
>
> copy
c:\Tornado/target/config/powermidas-i960-bsp1.2-r2.3/all.midas/bootInit.c
> b
> ootInit_st.c
> The syntax of the command is incorrect.
> make: *** [bootInit_st.o] Error 0x1
>
> Any suggestions on how to proceed with this issue would be really
> helpful.
> Thanks in advance.
> Raja
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: On S_iosLib_INVALID_FILE_DESCRIPTOR
Date: Thu, 25 Apr 2002 04:40:27 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <%MLx8.2951$ao1.7801@rwcrnsc54>
References: <b35585ab.0204241846.51c04e7@posting.google.com>
I'm sorry I don't have the answer, but I'm awestuck at how an unsuccessful
result code from the "i" command could shut down all development. I hope you
don't have to wait too long....
"yyzhong" <cozzy@263.net> wrote in message
news:b35585ab.0204241846.51c04e7@posting.google.com...
> Everytime I use WindSH,the "errno" from the resoult of command "i" are
> always "d0003".While  the output of "PrintErrno(0xd0003)" is
> "S_iosLib_INVALID_FILE_DESCRIPTOR".Is there anyone can tell me what is
> the reason!Now I can do nothing but wait for your answer .Thanks a lot
> .
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: what are the BSD driver and END driver?
Date: Thu, 25 Apr 2002 06:35:48 GMT
From: "Ofer Goren" <ofer_goren@iamba.com>
Organization: Verio
Message-ID: <newscache$wq44vg$ha6$1@lnews.actcom.co.il>
References: <7384051c.0204232355.4a4b7098@posting.google.com> <72096774.0204241618.320c7612@posting.google.com>
I wouldn't recomment on reading this. It is one of the most unreadable,
not-understoodable, gibrish-like document windriver had ever written. And
I'm not the only one saying that.
"MK" <mike_texx@mail.ru> wrote in message
news:72096774.0204241618.320c7612@posting.google.com...
> seatide2002@hotmail.com (seatide2002) wrote in message
news:<7384051c.0204232355.4a4b7098@posting.google.com>...
> > hi vxWorkers:
> >    can u tell me the different between the BSD driver and END driver?
> > What do the "BSD" and "END" stand for?
>
> 1. go to www.windriver.com
> 2. create a windsurf account
> 3. login into windsurf
> 4. In the knowledge base go to -Manuals -Network Products -Network
Protocol Toolkit.
> 5. click and download a PDF file. It's all there. voila.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Detecting IP conflict with Gratuitous ARP
Date: 25 Apr 2002 00:41:49 -0700
From: dave.joynson@orange.net (Dave Joynson)
Organization: http://groups.google.com/
Message-ID: <da396027.0204242341.6f258ab0@posting.google.com>
References: <da396027.0204230051.669fc0d4@posting.google.com> <ucbodhu6ull3c@corp.supernews.com> <da396027.0204240204.7764afec@posting.google.com> <ucdsn0on20f2f4@corp.supernews.com>
"Hwa Jin Bae" <hjb@pso.com> wrote in message news:<ucdsn0on20f2f4@corp.supernews.com>...
> If you wish to capture the ARP reply, you may need to modify the particular
> ethernet device driver you are using, or use etherHook facilities, or
> something similar to that.  And capture the ARP reply and do the decoding
> yourself.
Then that is what I will do.
Thanks for your help.
DJ
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Windnet OSPF - dropped links
Date: 25 Apr 2002 07:45:01 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91FB63385EA06borkhuisagerecom@135.7.153.102>
References: <3CC5E0D7.1F69F367@lucent.com>
Rakesh Chandwani <rexrc@lucent.com> wrote:
> I hardly see anyone posting questions about Windriver's vxWorks based
> OSPF stack ( Windnet OSPF ). Is this the right forum for the problems
> with Windriver's OSPF product on vxWorks ?
This is the right place to post messages on WindNet OSPF, and on all other
WindNet products. But as they are not that common it might be a problem
getting feedback.
But if you find anything that might be usefull in any of the WindNet
product please post that also, so all other (current and future) users can
also profit from it.
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: what are the BSD driver and END driver?
Date: Thu, 25 Apr 2002 00:58:38 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucfdr7bo7edt82@corp.supernews.com>
References: <7384051c.0204232355.4a4b7098@posting.google.com>
BSD is acronym for Berkeley Software Distribution.  As in BSD Unix.  BSD
network driver for VxWorks looks similar to original BSD network drivers in
terms of API, structure, and the layout of code.
END stands for Enhanced Network Driver, or something like that.  It is
structured differently, with different API and layout of the code, than the
original BSD drivers.  It is unique to VxWorks.
What is less clear is the fact that END eventually becomes BSD driver before
getting attached up to the IP layer code.  The TCP/IP stack in VxWorks,
derived from BSD Unix code, still thinks everything is BSD style driver.  In
order to make END work with TCP/IP stack, a layer of code is provided that
will turn END driver into a BSD driver.
So what makes END "enhanced"?  A couple things are usually quoted.  One is
that it allows for better multicasting support.  Another is that it supports
polled mode I/O.  There are some other reasons for the existence of END.
Having written both END and BSD style drivers, I am not at all convinced
that END is a justified model.   The reasons are:
1. Multicast support is just as easily done in BSD mode as in END model.
Just look at how BSD Unix does it.
2. The polled mode can be supported easily in BSD model by extending
existing struct ifnet.
3. END is unique to vxWorks, and makes it harder to port BSD driver to
vxWorks
4. END incurs more overhead overall, since it eventually becomes BSD driver
anyway.
There are some other subtle details that are more troubling in END design.
In particular, there are some rules that seem to have been broken or at
least not explicitly handled in the design.  These are harder to explain in
the limited space and time devoted to a USENET article.  But they have to do
with robustness of a network driver in face of critical situations such as
when there are too many packets to be handled too fast, buffer exhaustion,
careful management of loaned buffers, etc.
If others think differently I would like to hear about it (and learn).  I
have not been able to justify the introduction of END in VxWorks at all from
many points of views I have considered.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: On S_iosLib_INVALID_FILE_DESCRIPTOR
Date: 25 Apr 2002 08:06:45 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91FB66E6EA9C9borkhuisagerecom@135.7.153.102>
References: <b35585ab.0204241846.51c04e7@posting.google.com>
cozzy@263.net (yyzhong) wrote:
> Everytime I use WindSH,the "errno" from the resoult of command "i" are
> always "d0003".While  the output of "PrintErrno(0xd0003)" is
> "S_iosLib_INVALID_FILE_DESCRIPTOR".Is there anyone can tell me what is
> the reason!Now I can do nothing but wait for your answer .Thanks a lot
Please ignore the errno if you did not get a ERROR return code from a call.
The errno is only valid if you did get a ERROR return directly from a call,
and in that case you can look up the meaning of the code.
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: Buffer full UDP problem
Date: Thu, 25 Apr 2002 01:08:44 -0700
From: "Hwa Jin Bae" <hjb@pso.com>
Organization: PSO Systems Inc
Message-ID: <ucfee9cfh3hn10@corp.supernews.com>
References: <eec86974.0204150627.49fac57d@posting.google.com> <eec86974.0204150902.5aa2e7ea@posting.google.com> <3CBB5E34.1040102@spamm.me.l8s.co.uk> <eec86974.0204170038.519ede97@posting.google.com> <9cbbee00609e64b68e3f95d8c3eef790.34031@mygate.mailgate.org>
This illustrates one (of many) problems that can stem from an incomplete
sample driver for END.  Many END drivers are written in a way that will not
handle critical situations like this, especially in the area of buffer
handling.
When I originally designed mbuf loaning for VxWorks 5.0 (the first VxWorks
which had such loaning code), many attempts were made to convey some of the
rules.  One of the rule is that aggressive loaning should be avoided.  This
rule explicitly addresses the problem of the user application (socket
application) not reading the data fast enough, thereby causing the buffer
counts to run low in driver layer when loaning is done.  The rule also
states that the recommended remedy for it is to only loan out safe amount of
buffers and when certain limit is reached (high water mark for loaning),
there should be still sufficient number of buffers remaining in the pool.
Using the remaining buffers, drivers should be written so that no further
loaning is done (data should then be copied), to avoid user applications
affecting the low level code to behave badly or lock up.
All these rules (there are many others) are frequently not followed through.
And part of the blame goes to END.
- --
Hwa Jin Bae
mailto:hjb@pso.com
http://www.pso.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: END_ERR_BLOCK / muxTxRestart (race?)
Date: Thu, 25 Apr 2002 11:52:06 +0100
From: Philip Macfarlane <philip@ramix.com>
Organization: RAMiX Europe Ltd
Message-ID: <ucfnun1d7982d4@corp.supernews.com>
Hi folks,
I'm working on an Ethernet driver for vxWorks, and have the following
question.
In my _Send function, I have to deal with the case when we run out of
transmit resources. In this case, I believe I should return END_ERR_BLOCK,
to indicate to the stack to stop sending frames. e.g. something like:
STATUS _Send()
{
    if (no_resources)
    {
        foo->txBlocked = TRUE;
        return END_ERR_BLOCK;
    }
    actually_send();
    return OK;
}
Then, when transmit resources become available, I need to call
muxTxRestart, to restart the stack. e.g.:
void myISR()
{
    reap_tx_resources();
    if (foo->txBlocked)
    {
        foo->txBlocked = FALSE;
       	netJobAdd ((FUNCPTR)muxTxRestart, (int)&pDrvCtrl->endObj, 0, 0,
                  0, 0);
    }
}
(Not real code - just an example.)
Now for the question. There looks like a race condition on foo->txBlocked.
If an interrupt happens between txBlocked being set to TRUE, but before
the _Send returns, the transmit queue could stall. This of course depends
on when the netTask runs the muxTxRestart().
Is this really a race? Or does vxWorks ensure that the _Send() will
complete (and return END_ERR_BLOCK) _before_ the muxTxRestart() happens?
If there is a race, how is this solved in other drivers?
Many thanks in advance,
Philip Macfarlane
RAMiX Europe Ltd.
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Thu Apr 25 23:41:39 2002
From: yude <coby.yu@utstar.com>
Date: Thu Apr 25 23:41:41 PDT 2002
Subject:  Re: how to implement stack protect
hi Vijay
       thank for you help. but i want to do is use the vmi to set the memory over the stack invalid, when the esp over the stack, i want it create a exception, so i can catch it, and in the isr, i can increase the stack size. mabye it is the same as the mmu use in some OS.your idea is to check if it over the stack. but when i write a function, define a big array, it's size over the stack,for example. the stack size is 10k,i define a array as int a[10000], in fact, at the compile time, the assemb code is "sub esb 10000",when exec this function, becasue i set the memory over the stack as invalid, so it can create the excption, but i can't catch it, the machine crash.i think it is because there has double fault during this course.
when the esp over the stack, it create a excption, and it want change to the exception handle,so the system want store the error code and return address in the stack,but the stack also have overflow,in fact it want to store some information in a
unavailable stack.this is the seacond fault. what can i do for it? how to catch it.
vxworks
yude
coby.yu@utstar.com
2002-04-26
From vxwexplo-errs@csg.lbl.gov  Fri Apr 26 04:03:14 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Fri Apr 26 04:03:17 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Fri Apr 26 04:03:10 PDT 2002
        Subject: Re: END_ERR_BLOCK / muxTxRestart (race?)
        Subject: Re: END_ERR_BLOCK / muxTxRestart (race?)
        Subject: Free vxWorks Snoop utility for PowerPC
        Subject: Re: vxworks_rom on Cetia VMPC6a (Tornado 2.0 NT)
        Subject: Downloadable libraries
        Subject: Re: Downloadable libraries
        Subject: Re: building a rom based boot image that includes the application
        Subject: Re: PCI-to-PCI bridge x86
        Subject: Re: Envoy and new mibs
        Subject: EXTREMELY long time spent in ping() routine
        Subject: Debugging with tornado
        Subject: target shell load of c++ code, where is my builtin_new and delete ?
        Subject: Re: PCI-to-PCI bridge x86
        Subject: Re: what are the BSD driver and END driver?
        Subject: Re: Debugging with tornado
        Subject: No interface UP message(RTM_IFINFO) in routing socket for nt0
        Subject: Re: DHCP - default gateway field
        Subject: Re: unable to add equal cost routes
        Subject: Re: dosFs2: lower case directory name handling
        Subject: [Q]Serial IO nonblocking scheme
        Subject: porting from VxWorks to Linux (Monta Vista, or other)
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: END_ERR_BLOCK / muxTxRestart (race?)
Date: Thu, 25 Apr 2002 12:09:28 +0100
From: Philip Macfarlane <philip@ramix.com>
Organization: RAMiX Europe Ltd
Message-ID: <ucfov8mi3eodb4@corp.supernews.com>
References: <ucfnun1d7982d4@corp.supernews.com>
On Thu, 25 Apr 2002 11:52:06 +0100, Philip Macfarlane wrote:
> Hi folks,
[snip]
Please disregard previous post - it contained some important mistakes.
Sorry,
Philip.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: END_ERR_BLOCK / muxTxRestart (race?)
Date: Thu, 25 Apr 2002 11:31:13 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CC7E94D.8070409@spamm.me.l8s.co.uk>
References: <ucfnun1d7982d4@corp.supernews.com>
> Now for the question. There looks like a race condition on foo->txBlocked.
> If an interrupt happens between txBlocked being set to TRUE, but before
> the _Send returns, the transmit queue could stall. This of course depends
> on when the netTask runs the muxTxRestart().
>
> Is this really a race? Or does vxWorks ensure that the _Send() will
> complete (and return END_ERR_BLOCK) _before_ the muxTxRestart() happens?
I'm not sure returning END_ERR_BLOCK is correct (but haven't checked any
code).  The sample END driver I had definitely didn't do the right
thing.  OTOH the timing window is there if the return value of _send
is used to turn off the upper transmitters.
>
> If there is a race, how is this solved in other drivers?
I'd guess they lock up occaisionally :-)
Some of them just lose the tx buffers and run out of buffer space.
I solved the problem by accepting the packets into the END driver
(letting the upper end recover from lack of buffers).  If packets
weren't being transmitted (ie no progress for 10 seconds) I free
all the queued packets (and reset the MAC engine).
Removes all those timing problems and probably gives better
throughput......
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Free vxWorks Snoop utility for PowerPC
Date: 25 Apr 2002 05:49:18 -0700
From: badepr1@hotmail.com (Paul Bade)
Organization: http://groups.google.com/
Message-ID: <c6bbeac6.0204250449.5e5c2a67@posting.google.com>
A free vxWorks snoop utility for PowerPC on vxWorks
is available by clicking PRODUCTS followed by DOWNLOAD at
        http://www.dot21rts.com/
- ---------------------------------------------------------------
In addition, you can experience a live demo of Dot21's Real-Time
Publish/Subscribe Middleware at the RTC Conferences in
Greenbelt, Maryland on May 2nd and Boston on April 30th.
Attached is an invitation which briefly describes how
Dot21's Middleware can simplify multiprocessing communications
on both LANs and across VMEbus. The demo will also show
you how enablers such as Dot21's Middleware, Wind River's vxWorks,
Motorola's Altivec Processors, and VSIP libraries can provide a
cost effective solution for your signal processing needs. A factory
representative will be available to discuss our middleware
products, data analysis tools, and our services.
More information on Dot21's Products and Services can be found at
        http://www.dot21rts.com/
You can pre-register for the Real-Time & Embedded Computing Conference
in Greenbelt on May 2
           by logging onto the website listed below.
                      Web: http://www.rtcgroup.com/rtecc/greenbelt
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: vxworks_rom on Cetia VMPC6a (Tornado 2.0 NT)
Date: 25 Apr 2002 06:03:29 -0700
From: fbo@thalescomputers.fr (Francois BOULAGNON)
Organization: http://groups.google.com/
Message-ID: <4e0d36fc.0204250503.274f450c@posting.google.com>
References: <59b46a44.0203261620.1ae03207@posting.google.com>
Hi
Here is simpler and faster way to boot vxWorks from this flash.
And an explanation concerning the DEFAULT_BOOT_LINE which of course
is related to the IP address.
I hope this will help you.
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     How to boot a target VMPC6a/6c from the kernel stored in User
Flash.
                         19/04/2002 -- fbo
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The following method is only available for single CPU and with a
vxWorks.st
compiled manually (vxWorks.st is not available in tornado project
tool)
Set DEFAULT_BOOT_LINE ?
=====================
    You may need to configure DEFAULT_BOOT_LINE value in config.h
     (see bootLib for parameters content in vxWorks reference Manual).
    The kernel has 2 ways to get the bootline parameters
    If you have altready used a bootrom for CPU0
    then this bootrom has written the boot parameter in the NVRAM
    and the booting kernel read it when booting (see sysHwInit in
sysLib.c).
    If there is nothing in the NVRAM then it is the DEFAULT_BOOT_LINE
    which is used. This is to be defined in config.h for manual make.
Networks Need ?
=============
If you need the networks in this standalone vxWorks kernel you need to
define STANDALONE_NET in config.h
Build the kernel
================
make clean
make vxWorks.st
elfToBin < vxWorks.st > vxWorks.bin
Note the kernel size
Transfer the kernel from host (.10) to the target(.92) using tftp
command
=========================================================================
COMMAND > tftpget 192.93.163.10:/tmp/vxworks.bin,192.93.163.92;T
OK...
Write kernel in User Flash
==========================
kernel size for example = 1145000 bytes = 0x1178a8 = 0x200 (secteur
size)*0x8bc
COMMAND > iop
 (R)ead / (W)rite / (F)ormat / rewin(D) [R]? w
  Controller LUN                = c ? 5
  Device LUN                    = 0 ?
  Memory address                = 10000 ? 0x200000
  Sector number                 = 0 ?
  Number of sector              = 1 ? 0x900 (> size of kernel divided
by 0x200)
Please Wait...............
Then simulate a boot sequence
==============================
The following command can be done automatically with
the boot string command (BTS command)
Here the kernel size is now 0x900*0x200 = 0x120000
COMMAND > dev 5
COMMAND > bm d8000000 d8120000 0xa0000
COMMAND > go 0xa0000
1f
GO at the effective address 0x000a0000
1f
Adding 3495 symbols for standalone.
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
      ]]]]]]]]]]]  ]]]]     ]]]]]]]]]]       ]]              ]]]]
   (R)
 ]     ]]]]]]]]]  ]]]]]]     ]]]]]]]]       ]]               ]]]]
 ]]     ]]]]]]]  ]]]]]]]]     ]]]]]] ]     ]]                ]]]]
 ]]]     ]]]]] ]    ]]]  ]     ]]]] ]]]   ]]]]]]]]]  ]]]] ]] ]]]]  ]]
 ]]]]]
 ]]]]     ]]]  ]]    ]  ]]]     ]] ]]]]] ]]]]]]   ]] ]]]]]]] ]]]] ]]
]]]]
 ]]]]]     ]  ]]]]     ]]]]]      ]]]]]]]] ]]]]   ]] ]]]]    ]]]]]]]
 ]]]]
 ]]]]]]      ]]]]]     ]]]]]]    ]  ]]]]]  ]]]]   ]] ]]]]    ]]]]]]]]
  ]]]]
 ]]]]]]]    ]]]]]  ]    ]]]]]]  ]    ]]]   ]]]]   ]] ]]]]    ]]]] ]]]]
   ]]]]
 ]]]]]]]]  ]]]]]  ]]]    ]]]]]]]      ]     ]]]]]]]  ]]]]    ]]]]
]]]] ]]]]]
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]       Development System
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]]
 ]]]]]]]]]]]]]]]]]]]]]]]]]]]       VxWorks version VxWorks5.4.2
 ]]]]]]]]]]]]]]]]]]]]]]]]]]       KERNEL: WIND version 2.5
 ]]]]]]]]]]]]]]]]]]]]]]]]]       Copyright Wind River Systems, Inc.,
1984-2001
                               CPU: VMPC6a.  Processor #0.
                              Memory Size: 0x1f80000.  BSP version
1.2/02024.
USB: OHCI version -> 1.0, legacy support
USB: CMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
USB: 2 ports with 2 removable, self powered
static@ieee.org (Andrew Spiehler) wrote in message news:<59b46a44.0203261620.1ae03207@posting.google.com>...
> Hi, I'm pretty new to Vxworks and embedded systems in general. I'm
> having two unrelated (maybe) issues.
>
> First issue: I'm trying to configure a vxworks_rom image to reside in
> an 8 megabyte flash on my cetia board. I set all references in the BSP
> makefile, project facility, and build properties (c compiler,
> assembler, macros) for ROM_BASE_ADRS and ROM_TEXT_ADRS to 0xd8000000
> (the bottom of flash memory on this particular board) and built the
> project. Then I uploaded the file with tftp and wrote it to flash
> memory. Then I commanded the debugger to start executing at d8000000,
> at which point nothing else happened.
>
> I did the above steps again, but this time changed the value to
> 0x02000000, a location in RAM. After uploading the file with tftp, I
> did a blockmove and copied the vxworks_rom data to 0x02000000 and then
> started executing at that address, where I assume the rom copied the
> data and test segments to RAM_LOW_ADRS and jumped there.
>
> Can anyone offer some explanation as to why the vxworks_rom will
> execute out of RAM at 0x02000000 but not flash at 0xd8000000? Am I
> correct in thinking that the vxworks_rom configuration will copy the
> text and data segments to RAM_LOW_ADRS or do I have to use a different
> build configuration?
>
> Second issue: How do I set the the IP address of the board if I'm not
> doing a network boot through the bootrom or through tftp? Does it have
> something to do with the DEFAULT_BOOT_LINE and if so, how do I
> configure the image to use the arguments in that?
>
>
> Andrew Spiehelr
---------------------------
Newsgroups: comp.os.vxworks
Subject: Downloadable libraries
Date: Thu, 25 Apr 2002 09:23:17 -0400
From: "waled" <waled@hotmail_NOSPAM_.com>
Organization: Telefonica Data Espagna
Message-ID: <aa8vvc$pm4$1@nsnmrro2-gest.nuria.telefonica-data.net>
Hello all,
I'm fairly new to VxWorks, so don't be alarmed if my question is stupi :-)
Here's what I'd like to achieve:
We are adding a new feature to our software. But we want that feature to
upgraded without upgrading the whole VxWorks image. We would send a VxWorks
image to the customer and later send only an upgrade/bug fix, etc for the
new feature only. How do I go about that?
Regards,
Houssaine
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Downloadable libraries
Date: Thu, 25 Apr 2002 13:38:25 GMT
From: nunya@damn.business.com (Bruce)
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <3cc806c1.5093464@news.houston.sbcglobal.net>
References: <aa8vvc$pm4$1@nsnmrro2-gest.nuria.telefonica-data.net>
In comp.os.vxworks
"waled" <waled@hotmail_NOSPAM_.com> wrote:
>I'm fairly new to VxWorks, so don't be alarmed if my question is stupi :-)
It isn't stupid.
>Here's what I'd like to achieve:
>
>We are adding a new feature to our software. But we want that feature to
>upgraded without upgrading the whole VxWorks image. We would send a VxWorks
>image to the customer and later send only an upgrade/bug fix, etc for the
>new feature only. How do I go about that?
Look at the ld() command.  If you dynamically load your application, you
could have the image check to see if a new image is available (your.o) and
then load it.
Bruce
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: building a rom based boot image that includes the application
Date: 25 Apr 2002 09:54:43 -0700
From: amraja8@hotmail.com (Raja)
Organization: http://groups.google.com/
Message-ID: <7da11b7d.0204250854.6c3d53b2@posting.google.com>
References: <7da11b7d.0204241632.3ed2828d@posting.google.com> <awLx8.12876$vX.3350@rwcrnsc53>
Thanks Gary,
That helped me. I was using forward slash instead of teh back slash as
you mentioned. I am able to build all the different kinds of images
that are defined in the rules file.
Thank you,
Raja
"Gary M" <com.vertical@garym> wrote in message news:<awLx8.12876$vX.3350@rwcrnsc53>...
> Perhaps your makefile rule should be invoking "cp" instead of "copy"? MS
> copy is not happy about forward slashes posing as path delimiters.
>
> "Raja" <amraja8@hotmail.com> wrote in message
> news:7da11b7d.0204241632.3ed2828d@posting.google.com...
> > Hi,
> > I am trying build a ROM based vxWorks boot image that should include
> > my application. I am trying to build  a "vxWorks.st_rom.hex" from the
> > command line prompt and it fails on me giving teh following error:
> >
> > copy
>  c:\Tornado/target/config/powermidas-i960-bsp1.2-r2.3/all.midas/bootInit.c
> > b
> > ootInit_st.c
> > The syntax of the command is incorrect.
> > make: *** [bootInit_st.o] Error 0x1
> >
> > Any suggestions on how to proceed with this issue would be really
> > helpful.
> > Thanks in advance.
> > Raja
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: PCI-to-PCI bridge x86
Date: Thu, 25 Apr 2002 15:22:59 -0400
From: Dan Chivers <dchivers@systran.com>
Message-ID: <pan.2002.04.25.19.22.58.829971.1126@systran.com>
References: <pan.2002.04.23.14.25.05.929147.21899@systran.com>
I still haven't found a solution to this problem.  Any ideas?
Thanks
> I'm writing a driver for a PCI card for the x86 BSPs.  The driver is
> unable to "see" the card when it is behind a PCI-to-PCI bridge (ie. on
> pci bus other than bus 0).  Other BSPs have a pciToLocalAdrs() function
> to do a mapping from a PCI address to a CPU usable address.  Is there
>  a similiar thing for x86?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Envoy and new mibs
Date: 25 Apr 2002 14:19:30 -0700
From: jzhang@drs.ca (Jason)
Organization: http://groups.google.com/
Message-ID: <e555a185.0204251319.68e5841b@posting.google.com>
References: <newscache$ajn2vg$f14$1@lnews.actcom.co.il>
See http://www.xs4all.nl/~borkhuis/vxworks/vxw_pt6.html#6.7
Q: How do I extend the Envoy SNMP agent?
A: The steps to the extension of the MIB agent should be as follows:
Write your mib file say ex.mib
Compile it using the mibcompiler
$mibcomp -stub -start (name of the module identity in your mib file) \
 -o ex.c (list of mibs on which ex.mib depends) ex.mib
Before doing this make sure that you set your MIBCOMP environment
variable to point to the MIB search path where all your standard MIBs
are located (i.e set MIBCOMP = -l MIB-search-path)
Once the ex.c file is created copy it to the directory
...\snark\vxworks\agent and modify it as per your needs.
Edit the file makefile.cfg under ..\snark\vxworks\agent
add ex to SNMP_OBJS2 i.e $#equate(SNMP_OBJS2 $#objs(snmpsys mib
snmptcp snmpudp saiolib ex))
add ex.mib to MIBSRC i.e
Run makmak in the $SNMP directory specifying wind.cfg
Type make all
You can see if you are able to get/set variables by using utilities
like getif/snmputil.
Good Luck
"Ofer Goren" <ofer_goren@iamba.com> wrote in message news:<newscache$ajn2vg$f14$1@lnews.actcom.co.il>...
> --
> ------------------------
> Win2k Sp2
> Tornado 2.02 for PPC
> Diab 4.4b
> Envoy 9.2
> ------------------------
> Hi.
>
> How do I add new mibs so that the snmpd will "know" about them?
>
> I'm compiling my new MIBS with the mib compiler. The result is number of .h
> and .c files. Now what?
> Is this the way to do it? or should I add those mib files to the Envoy's
> makefile under the agent directory, and rebuild the archive file (snmp)?
>
> Thanks,
---------------------------
Newsgroups: comp.os.vxworks
Subject: EXTREMELY long time spent in ping() routine
Date: 25 Apr 2002 14:24:27 -0700
From: mike_texx@mail.ru (MK)
Organization: http://groups.google.com/
Message-ID: <72096774.0204251324.45b6efbf@posting.google.com>
The problem is, that about 75 seconds are spent inside a ping()
routine.
Can somebody please point out a possible problem/solution, or let me
know what additional information I need to post up to help you answer
my question.
The board is a Cirrus Logic's EP7312-based   Cogent CDK238 development
board with cs8900a ethernet controller.
Software: Vxworks 5.4 , Tornado 2.
If it matters at all: system clock rate is 60 ticks/second
I verified that the system tracks time more or less correctly. Over a
3-minute period the system kept track of seconds OK (accumulated error
was at least less than a second)
Here is the output of the ping() routine.
resolvSend()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1
;; flags: rd; Ques: 1, Ans: 0, Auth: 0, Addit: 0
;; QUESTIONS:
;;	219.1.168.192.in-addr.arpa, type = PTR, class = IN
- -------->(75 seconds are spent waiting here)<------------------
Ping Success
global variable _pingTxTmo is set to 2.
as a matter of fact, here is the routine that I use to test ping()
#include "pinglib.h"
#include "sys/types.h"
extern	int				_pingTxTmo;
int csTestPing(char* IPstr)
{
	static int ind_pingLibInit = FALSE;
	struct in_addr	ipAddr;
	long 			longipAddr = 0;
	char			ipAddrStr[16], *tok;
	int error;
	_pingTxTmo = 2;						// Ping 2 sec timeout
	longipAddr = atoi(IPstr); //byte1
    tok = strtok (IPstr, ".");
    tok = strtok (NULL, ".");
    longipAddr = (longipAddr<<8)|atoi (tok); //byte2
    tok = strtok (NULL, ".");
    longipAddr = (longipAddr<<8)|atoi (tok); //byte3
    tok = strtok (NULL, ".");
    longipAddr = (longipAddr<<8)|atoi (tok); //byte4
	if(!ind_pingLibInit)
	{
		printf( "Ping Init\n" );
		pingLibInit();
		ind_pingLibInit = TRUE;
	}
	ipAddr.s_addr = htonl( longipAddr );
	inet_ntoa_b( ipAddr, ipAddrStr );
	printf( "Ping Target %s\n", ipAddrStr );
	printf( "Ping...\n" );
	if ( !(error = ping( ipAddrStr, 1, PING_OPT_SILENT |
PING_OPT_DONTROUTE )) )
	{
		printf( "Ping Success\n" );
		return 0;
	}
	else
	{
		printf( "Ping Failure. Error %d\n", error);
		if(error == EINVAL) printf(" EINVAL\n");
		if(error == S_pingLib_NOT_INITIALIZED) printf("
S_pingLib_NOT_INITIALIZED\n");
		if(error == S_pingLib_TIMEOUT ) printf(" S_pingLib_TIMEOUT\n");
		return 1;
	}
}
Thanks in advance
---------------------------
Newsgroups: comp.os.vxworks
Subject: Debugging with tornado
Date: 25 Apr 2002 16:50:18 -0700
From: rishi_bhargava@yahoo.com (Rishi Bhargava)
Organization: http://groups.google.com/
Message-ID: <2474871.0204251550.377debda@posting.google.com>
To use tornado debugger or even gdb the bootrom needs to be compiled
with -g option. This makes the bootrom huge. Is there a way to load
the symbols seperately when required for debugging and not form part
of the bootrom.
Thanks,
Rishi
---------------------------
Newsgroups: comp.os.vxworks
Subject: target shell load of c++ code, where is my builtin_new and delete ?
Date: Thu, 25 Apr 2002 22:32:54 -0400
From: "Yves Boudreault" <yves.boudreault2@sympatico.ca>
Organization: Bell Sympatico
Message-ID: <o%2y8.77002$QR1.2676457@news20.bellglobal.com>
Hi,
probably been asked and answered a million times, but could not find it in
the FAQ.
loading a .out file (C++ application) from the target shell, I get
undefined symbol: __builtin_delete (binding 1 type 0)
undefined symbol: __builtin_new (binding 1 type 0)
What I need to accomplish: I am trying to work around the PPC 24-bit
relocation error. So, I start my board with 32MB, disable static
constructors, load the app, add the rest of the board's memory to the memory
pool, and run the static constructors. Convoluted, I know. I thought it
would work, but I am missing something (clearly).
I also get application specific undefined symbols, which throw me for a
loop. Can the target loader handle C++ .out ?
OK, so what am I missing. Because the same image, OS will load from the T2
download button...
Has anyone loaded an application ".out" with an OS build project (without
creating a project with the app code and OS build in one project - any
pointers
Thanks.
Yves
yves.boudreault2 at sympatico dot ca
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: PCI-to-PCI bridge x86
Date: Fri, 26 Apr 2002 03:50:37 GMT
From: "H. E. Taylor" <het@despam.autobahn.mb.ca>
Organization: MTS Internet
Message-ID: <3CC8E942.5B1E@despam.autobahn.mb.ca>
References: <pan.2002.04.23.14.25.05.929147.21899@systran.com> <pan.2002.04.25.19.22.58.829971.1126@systran.com>
In article <pan.2002.04.25.19.22.58.829971.1126@systran.com>,
<dchivers@systran.com> Dan Chivers wrote:
>
>> I'm writing a driver for a PCI card for the x86 BSPs.  The driver is
>> unable to "see" the card when it is behind a PCI-to-PCI bridge (ie. on
>> pci bus other than bus 0).  Other BSPs have a pciToLocalAdrs() function
>> to do a mapping from a PCI address to a CPU usable address.  Is there
>>  a similiar thing for x86?
>
> I still haven't found a solution to this problem.  Any ideas?
>
	The only time I have seen this behaviour is when a bridge
	was not being setup correctly by the PC-BIOS PCI initialization
	code.  I can suggest a couple of first steps.  Check the
	state of the bridge config registers.  Is your hardware
	known good?  ie. does it work under another OS?  A lot of
	this becomes hardware specific.
	I don't know about pciToLocalAdrs().  You do have to make
	sure you allocate a window for PCI memory is your phys mem desc
	array.
<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: what are the BSD driver and END driver?
Date: 25 Apr 2002 21:14:29 -0700
From: greene@kmr.ll.mit.edu (Dave)
Organization: http://groups.google.com/
Message-ID: <b176184e.0204252014.605a2aea@posting.google.com>
References: <7384051c.0204232355.4a4b7098@posting.google.com> <ucfdr7bo7edt82@corp.supernews.com>
Hwa Jin,
I share your concern about the robustness of this model. I have a
particular gripe however, regarding the full implementation of END
driver END_OBJ mem_width and mem_align parameters passed to END
drivers thru the LOAD_STRING. All the END drivers I have examined
freely state that they do not completely and properly handle these
potential driver contraints. Also, it is not enough for the driver to
handle memory width constraints on target device hardware. With the
possibility of buffer loaning up to the protocols , the netBufLib
functions for moving data in and out of (potential) device memory
(with potential mem_width restrictions) all of the buffer management
routines for accessing mBlk buffers must be fully aware of the memory
width required by the device. I noticed that netMblkToBufCopy() allows
a user-specified data copy routine to handle the xfer of data into
device buffers. But I have yet to see a driver tie mem_width
requirements to this feature. Nor do I see how buffers loaned to upper
layers moving data out of device buffers into other pools can enforce
the mem_width requirements if the model and driver implementations
don't allow and enforce the requirements and just throw them on the
ground - like the drivers I have looked at. I may be missing
something, why is there no corresponding netBufToMblkCopy() anyway ?
Of course I have a network device with it's own memory that I would
like to use - and it requires me to use it's own packet memory with
16bit transfers only.
So I am mad about this apparent neglect.
Since I don't trust netBufLib(and protocols above) to handle the
mem_width requirements properly on loaned buffers must I force this
faulty driver to do a proper buffer copy of it's own before handing
the data over the the netBuf mBlks ? Thereby defeating any buffer
loaning ?
I value your opinion on this issue.
Dave.
"Hwa Jin Bae" <hjb@pso.com> wrote in message
...
> There are some other subtle details that are more troubling in END design.
> In particular, there are some rules that seem to have been broken or at
> least not explicitly handled in the design.  These are harder to explain in
> the limited space and time devoted to a USENET article.  But they have to do
> with robustness of a network driver in face of critical situations such as
> when there are too many packets to be handled too fast, buffer exhaustion,
> careful management of loaned buffers, etc.
>
> If others think differently I would like to hear about it (and learn).  I
> have not been able to justify the introduction of END in VxWorks at all from
> many points of views I have considered.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Debugging with tornado
Date: Fri, 26 Apr 2002 05:27:31 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <7z5y8.16592$vX.2072@rwcrnsc53>
References: <2474871.0204251550.377debda@posting.google.com>
Our former WRS FAE recommended building bootrom prototypes as downloadable
VxWorks images, whenever possible. This is much easier to debug and provides
a shorter compile-load-debug cycle. Of course, some code can only be tested
when built as a ROM, but the configured kernel, optional packages, and the
application can be debugged as a regular project.
You can also configure VxWorks to download the symbols from the host,
instead of being built into the image, saving a good chunk of memory.
"Rishi Bhargava" <rishi_bhargava@yahoo.com> wrote in message
news:2474871.0204251550.377debda@posting.google.com...
> To use tornado debugger or even gdb the bootrom needs to be compiled
> with -g option. This makes the bootrom huge. Is there a way to load
> the symbols seperately when required for debugging and not form part
> of the bootrom.
>
> Thanks,
> Rishi
---------------------------
Newsgroups: comp.os.vxworks
Subject: No interface UP message(RTM_IFINFO) in routing socket for nt0
Date: 25 Apr 2002 22:37:29 -0700
From: sai_dattathrani@infy.com (sai)
Organization: http://groups.google.com/
Message-ID: <8dff11cd.0204252137.74e1a733@posting.google.com>
Hi,
 I have VxSim that is shipped along with Tornado. I have created
routing socket to receive interface up messages(RTM_IFINFO). I call
ifFlagChange() function to bring the interface UP or DOWN.
 When the loopback interface(lo0) was brought up & down, the message
RTM_IFINFO was received in the routing socket. But when the interface
nt0 is brought up or down, no message is received on the routing
socket.
 Similarly when secondary ip address is added using ifAddrAdd()
function in lo0, RTM_NEWADDR message is received in the routing
socket, but when a new ip address is added for nt0, no message is
received.
 Can anyone help me solve this problem?
rgds
sai
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: DHCP - default gateway field
Date: Fri, 26 Apr 2002 07:04:10 GMT
From: "Jay Lee" <belecs@lge.com>
Organization: Dacom
Message-ID: <KZ6y8.14292$br1.843520@news.bora.net>
References: <960c4df7.0204082341.5e343c02@posting.google.com>
Hi?
pDhcpcParam->router is pointing the default gateway address.
In my application, I extract the default gateway address as follow, since my
system requires data synchronization between boot parameters and ip
configuration, which is copied from the boot parameters then used by
application.
/***************************************************************************
******************/
 /* Save the default G/W
  - save the new IP address of G/W to the boot parameter saved in the
VxWorks boot area,
  then it will be synchronized with IP configurations used in the
application by nvram_Sync()
 */
 if (pDhcpcParam->router == NULL) {
  printf("Fail to get default G/W IP address\n");
  return ERROR;
 }
 else {
  inet_ntoa_b (pDhcpcParam->router->addr[0], pBootParams.gad);
 }
/***************************************************************************
******************/
In addition, I set the _DHCP_ROUTER_TAG option as follow before the above
codes.
/***************************************************************************
******************/
if (dhcpcOptionSet(pCookie, _DHCP_ROUTER_TAG) == ERROR) {
  printf ("Set _DHCP_ROUTER_TAG failed. %x \n", errno);
  return ERROR;
 }
/***************************************************************************
******************/
I hope this will be helpful for you... Good luck...
- --
===========================================================
Jay Lee
"Bojan" <flander@iskratel.si> wrote in message
news:960c4df7.0204082341.5e343c02@posting.google.com...
> Hello!
> I have a problem. I am using dhcp server and vxworks client. I don't
> know where to read default gateway address in dhcp_param struct.
>
>     struct dhcp_param  bootParams;
>     result = dhcpcBootParamsGet (&bootParams);
>
>     dg = ????
>
> Does anyone know how to read default gateway from struct dhcp_param
> (see below).
>
> Thanks!
>
> Bojan
>
>
> Here are bootparams fields:
>
> struct dhcp_param
>     {
>     char got_option [GOTOPTSIZ];
>     char msgtype; /* DHCP reply or BOOTP reply? */
>     char * sname; /* Host name of DHCP server */
>     char * temp_sname;    /* Server host name if 'sname' holds
> options. */
>     char * file; /* Boot file name */
>     char * temp_file; /* File name if 'file' holds options. */
>     char * hostname; /* Host name of bootstrap server */
>     char * merit_dump;
>     char * dns_domain;
>     char * root_path;
>     char * extensions_path;
>     char * nis_domain;
>     char * nb_scope; /* NetBIOS scope */
>     char * errmsg;
>     char * nisp_domain; /* NIS+ domain name */
>     unsigned char ip_forward; /* Boolean flag */
>     unsigned char nonlocal_srcroute; /* Boolean flag */
>     unsigned char all_subnet_local; /* Boolean flag */
>     unsigned char mask_discover; /* Boolean flag */
>     unsigned char mask_supplier; /* Boolean flag */
>     unsigned char router_discover; /* Boolean flag */
>     unsigned char trailer; /* Boolean flag */
>     unsigned char ether_encap; /* Boolean flag */
>     unsigned char keepalive_garba; /* Boolean flag */
>     unsigned char nb_nodetype; /* NetBIOS node type */
>
> #define BNODE 0x1
> #define PNODE 0x2
> #define MNODE 0x4
> #define HNODE 0x8
>     unsigned char default_ip_ttl; /* time to live (1 - 255) */
>     unsigned char default_tcp_ttl;
>     unsigned short bootsize; /* bootfile size in 16 bits */
>     unsigned short max_dgram_size; /* max dgram reassembly */
>     unsigned short intf_mtu; /* interface mtu */
>     long time_offset; /* 32 bits integer (network byte order)
>   offset from UTC */
>     unsigned long lease_origin; /* DHCP lease start time */
>     unsigned long lease_duration; /* DHCP lease duration */
>     unsigned long dhcp_t1;
>     unsigned long dhcp_t2;
>     unsigned long mtu_aging_timeout; /* 32 bit unsigned integer */
>     unsigned long arp_cache_timeout;
>     unsigned long keepalive_inter;
>     struct u_shorts * mtu_plateau_table; /* array of 16 bit integers
> */
>     struct in_addr server_id; /* DHCP server's IP address */
>     struct in_addr ciaddr; /* Client's current address */
>     struct in_addr yiaddr; /* Client's assigned address */
>     struct in_addr siaddr; /* Address of (tftp) server */
>     struct in_addr giaddr; /* Address of relay agent */
>     struct in_addr * subnet_mask;
>     struct in_addr * swap_server;
>     struct in_addr * brdcast_addr;
>     struct in_addr router_solicit;
>     struct in_addrs * router;
>     struct in_addrs * time_server;
>     struct in_addrs * name_server;
>     struct in_addrs * dns_server; /* DNS server */
>     struct in_addrs * log_server;
>     struct in_addrs * cookie_server;
>     struct in_addrs * lpr_server;
>     struct in_addrs * impress_server;
>     struct in_addrs * rls_server; /* Resource Location Server */
>     struct in_addrs * policy_filter;
>     struct in_addrs * static_route;
>     struct in_addrs * nis_server;
>     struct in_addrs * ntp_server;
>     struct in_addrs * nbn_server; /* NetBIOS name server */
>     struct in_addrs * nbdd_server; /* NetBIOS dgram distrib server
> */
>     struct in_addrs * xfont_server; /* X font erver */
>     struct in_addrs * xdisplay_manager; /* X display manager */
>     struct in_addrs * nisp_server; /* NIS+ server */
>     struct in_addrs * mobileip_ha; /* Mobile IP Home Agent */
>     struct in_addrs * smtp_server;
>     struct in_addrs * pop3_server;
>     struct in_addrs * nntp_server;
>     struct in_addrs * dflt_www_server;
>     struct in_addrs * dflt_finger_server;
>     struct in_addrs * dflt_irc_server;
>     struct in_addrs * streettalk_server;
>     struct in_addrs * stda_server; /* StreetTalk Directory
> Assistance */
>     struct vendor_list * vendlist; /* Vendor-specific information */
>     };
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: unable to add equal cost routes
Date: Fri, 26 Apr 2002 07:15:32 GMT
From: "Jay Lee" <belecs@lge.com>
Organization: Dacom
Message-ID: <o87y8.14293$br1.845747@news.bora.net>
References: <8dff11cd.0204212008.6d401648@posting.google.com>
Hi?
Why don't you use mRouteAdd()?
Please refer the VxWorks Reference Manual or Tornado 2.0 Online Manual...
Good luck...
- --
===========================================================
Jay Lee
"sai" <sai_dattathrani@infy.com> wrote in message
news:8dff11cd.0204212008.6d401648@posting.google.com...
> Hi,
>
>  I tried adding routes to same destination with different gateway. But
> VxWorks does not seem to accept.
>
> If I try to add route to destination 50.0.0.0 as below
> Destination  Gateway
> 50.0.0.0     90.0.0.1
> 50.0.0.0     90.0.0.3
>
> Tried adding using RouteAdd() function provided by VxWorks and routing
> socket, the second route is not added to the kernel. Routing socket
> returns (File exist - EEXIST) error.
>
>  could someone please help me solve this problem.
> rgds
> sai
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosFs2: lower case directory name handling
Date: Fri, 26 Apr 2002 07:21:43 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$qj16vg$nw8$1@lnews.actcom.co.il>
References: <3CC4799C.5090609@nospam.icon-labs.com>
Pete,
I had a firend try to duplicate your symptoms, with a DosFs2
and Win2k. His DosFs2 is roughly the version originally
released in 1997, with a few selected patches.
He could not duplicate your scenario, perhaps there is something
missing in your story, or your DosFs2 has newer patches that
screwed VFAT directory handling outright. But because I do not
receive updates from WindRiver, I can not be sure of that.
"Pete Flugstad" <pete_flugstad@nospam.icon-labs.com> wrote in message
news:3CC4799C.5090609@nospam.icon-labs.com...
> Since there appear to be some dosFs2 experts here, (Leonid
> Rosenboim?) I thought I'd post something I discovered recently
> while trying to fix some problems with dosFs2.
>
> Format a CompactFlash card on Windows (FAT) and create a directory
> off of the root directory, call it "cfg".  From what I understand,
> the actual on-disk directory entry would be "CFG".
>
> Now, boot under vxWorks with dosFs2.  Sure enough, when I do a
> directory listing of the root of the CF device under vxWorks
> (/dev/ata0a), I see "CFG", as other posts have indicated.
>
> Now, if you try and fopen a file called "cfg/config.dat", this
> will FAIL.
>
> Now, if you try and fopen a file called "CFg/config.dat", this
> will WORK.
>
> However, if you use vxWorks and rename the directory to "cfg",
> then fopen "cfg/config.dat", this works.
>
> Trying to open a file "config.dat", in the current working
> directory, regardless of case (of the string passed to fopen
> or what's on the disk) works ALL the time.  As expected.
>
> I was under the impression that the filesystem should be case
> insensative, but it appears this is not the case for directories?
> Is this a bug, or am I not understanding how this is supposed to
> work?
>
> I added code to automatically rename the directory "CFG" to "cfg",
> and it's avoiding this problem, but it's obviously not a great
> solution.
>
> Thanks,
> Pete Flugstad
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: [Q]Serial IO nonblocking scheme
Date: Fri, 26 Apr 2002 16:40:29 +0900
From: "Jinney Jung" <jinney@tge.co.kr>
Organization: Korea Telecom
Message-ID: <aaavgg$9iq$1@news1.kornet.net>
Hi all,
I am trying to implement nonblock serial communication.
but, in the Vxworks, read() function of serial is blocked function.
Is there any advice to implement nonblock serial scheme?
Thanks a lot.
happy day
jinney
---------------------------
Newsgroups: comp.os.linux.embedded,comp.os.vxworks
Subject: porting from VxWorks to Linux (Monta Vista, or other)
Date: 26 Apr 2002 01:59:04 -0700
From: demiurg@tau.ac.il (Alexander Sirotkin)
Organization: http://groups.google.com/
Message-ID: <dd39f296.0204260059.756396e4@posting.google.com>
Hi.
Is there any library, SDK, documentation or whatever regarding porting
code from VxWorks to Linux ? It should not be extremely difficult, but
I was wondering - since it's quite a common task nowdays, maybe
someone wrote some kind of wrapper library or something to make it
easier ?
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Fri Apr 26 05:43:37 2002
From: Goldmann Andreas <andreas.goldmann@siemens.com>
Date: Fri Apr 26 05:43:40 PDT 2002
Subject: nonblock serial scheme
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_000_01C1ED1F.CC1100C0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C1ED1F.CC1100C0"
------_=_NextPart_001_01C1ED1F.CC1100C0
Content-Type: text/plain;
	charset="ISO-8859-1"
Hi Jinney Jung,
I thought, that the serial communication was blocking,
but it is not true on all systems (my opinion),
on my system (SH7750) it is not blocking, if the input buffer is empty
read()-call returns 0 bytes without any waiting.
Blocking/nonblocking depends probably on the serial driver used in a system.
In any way, You can use select() on the file descriptor of a serial device.
See attachment for example.
Good by(t)e, AG
---------------------------
Newsgroups: comp.os.vxworks
Subject: [Q]Serial IO nonblocking scheme
Date: Fri, 26 Apr 2002 16:40:29 +0900
From: "Jinney Jung" <jinney@tge.co.kr>
Organization: Korea Telecom
Message-ID: <aaavgg$9iq$1@news1.kornet.net>
Hi all,
I am trying to implement nonblock serial communication.
but, in the Vxworks, read() function of serial is blocked function.
Is there any advice to implement nonblock serial scheme?
Thanks a lot.
happy day
jinney
------_=_NextPart_001_01C1ED1F.CC1100C0
Content-Type: text/html;
	charset="ISO-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>nonblock serial scheme</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi Jinney Jung,</FONT>
<BR><FONT SIZE=2>I thought, that the serial communication was blocking,</FONT>
<BR><FONT SIZE=2>but it is not true on all systems (my opinion),</FONT>
<BR><FONT SIZE=2>on my system (SH7750) it is not blocking, if the input buffer is empty </FONT>
<BR><FONT SIZE=2>read()-call returns 0 bytes without any waiting. </FONT>
<BR><FONT SIZE=2>Blocking/nonblocking depends probably on the serial driver used in a system.</FONT>
</P>
<P><FONT SIZE=2>In any way, You can use select() on the file descriptor of a serial device.</FONT>
<BR><FONT SIZE=2>See attachment for example. </FONT>
</P>
<P><FONT SIZE=2>Good by(t)e, AG</FONT>
<BR><FONT SIZE=2>---------------------------</FONT>
</P>
<P><FONT SIZE=2>Newsgroups: comp.os.vxworks</FONT>
<BR><FONT SIZE=2>Subject: [Q]Serial IO nonblocking scheme</FONT>
<BR><FONT SIZE=2>Date: Fri, 26 Apr 2002 16:40:29 +0900</FONT>
<BR><FONT SIZE=2>From: &quot;Jinney Jung&quot; &lt;jinney@tge.co.kr&gt;</FONT>
<BR><FONT SIZE=2>Organization: Korea Telecom</FONT>
<BR><FONT SIZE=2>Message-ID: &lt;aaavgg$9iq$1@news1.kornet.net&gt;</FONT>
</P>
<P><FONT SIZE=2>Hi all,</FONT>
</P>
<P><FONT SIZE=2>I am trying to implement nonblock serial communication.</FONT>
</P>
<P><FONT SIZE=2>but, in the Vxworks, read() function of serial is blocked function.</FONT>
</P>
<P><FONT SIZE=2>Is there any advice to implement nonblock serial scheme?</FONT>
</P>
<P><FONT SIZE=2>Thanks a lot.</FONT>
</P>
<P><FONT SIZE=2>happy day</FONT>
</P>
<P><FONT SIZE=2>jinney</FONT>
</P>
<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"></FONT>&nbsp;
</BODY>
</HTML>
------_=_NextPart_001_01C1ED1F.CC1100C0--
------_=_NextPart_000_01C1ED1F.CC1100C0
Content-Type: application/octet-stream;
	name="serialTest.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="serialTest.zip"
UEsDBBQAAAAIAFR9lyxjmLwUnAEAAEIEAAARAAAAaW5jL3NlcmlhbF90ZXN0Lmilk1FLwzAQx98H
+w5HfZkFbUUR1Kfp2jlwCmtF30Jtri4spiVJx0T87iZr5+I2GLhAX/73u7vc/9LAP/nn8YNuJ/Ah
ZhyvQaFkGScalT6dWn1//u5jq3Y7R6wQFAsgJIkmo/4DSaMkJf0hISZmAkzgzliTK3JeUwRvvngp
5UydTj1XVZqy0mjgiqzk7G1TrPTnQM43VaUlE++bqs7U7LfEcoDm/nnFa2W/bgcXGqUA786DL0Og
oKwA46ADQTt+O2I74OgJALygzqQOzoPQWwPj/iu5fY7jaEIeosdheg8X4dVl40PbLkn76XMCoLRJ
T5ZrSs2Wesc3DsSEho9sYXeplrqhNctXyYqVE8woytRM2bOwiKktsIW9SKYdrKBPtXZAq1VVNcA5
yzFmgvbyaSbBb5Vjt7dl3/lbYu+N9M+tojEZDWxwXGtcjJqgcRJqhUXNOTT2KFj6uTLrQ2FeCmpU
8NWnuuOzSaZxiMaL4CwMwzW5BrdIpxwTpvtOyL8MV29x+xl879m9E9t84C1y6P9lakeCQllAYRZ+
aLUfUEsDBAoAAAAAAFR9lywAAAAAAAAAAAAAAAAEAAAAaW5jL1BLAwQUAAAACAALf5csg7ktIa4G
AAC5FAAAEQAAAHNyYy9zZXJpYWxfdGVzdC5jpVhpU9tIEP0sqvgPs045lkEJNtkrGLMF2M46C3jX
FkkqCeUS0girsCWXNA5kU/z37Z5LI1kc2ajAxxyvu19fM97ZevE/n62dzY2dLTKI5nSPZDSNvPmU
0Yy99HH88f3VD6JubjyLYn++CiipmcCzGs5lzGORT6KYkav55YR5KaMB6ZJWx5id9E+nwx4uOF0x
ejvEBWfnJyd8zcQ9dM8nhGS4d8IFuIBvI2Q8CJqbG982Nyy1KqUsht2jv/heC0yW62BwuVz26JfI
p4MoDuxJfzw8PJkOR80OEXZYUWibSoKWgG4hvFXQLaOLo+OUeozaqPo/08FwMHK4GQNQGwA5nMTT
+4RRTcvCOY5qLVNQL7Rrn1nZPuInq3kQNxgYEDEU+TmuNYVVliXN7I/Ho3EHR+60RD71k5wjz59z
4w+EKVIqsMKlAVteQFPCvOyac2AhArHx+2Tp3cR2LYuSMSyqObstp3WL/7utVssh9uD87Phvd9yU
C2jqwiYHhTlk1yGvHPKz84vzq/Ob87vz2mm3mmg/14krIjV5gIA9MvAgWgPCknVtJRdWFRWKizUy
CoI1BzdpxEocVJDwHlc9yAJf8b0sKG2+iwdDY4OHCiKQCXwVEWfReUZNCoxYh31tTZ58UcvLkfqA
fsmSxqSegVaYDTq/FCT+S1QO+gDmMCPeHB3+laSrOI7iK2Wq8C4Yu0pjnu4wyMd0qSiEJK8TYTCM
ZaHIWLrycWSaUXybUIaLRWLxWjGhc+qz4wQKmsGmmu15zDuh8RWbDWNdxyx/5qXEnx2twpCmn04P
P0yPzgeD/nh60j974/55IVYp/aDqjSl7581lofCTGBMeMDAoudpn3gLF6/wTAIPe9GN/PCL2c624
KAkwZ0aQ2CTChQa6cBB4IO7nSbIkYZIS+gXCCGMeJ25m4EVit3XJA2GTvktsJM8hZYmWVSQq419s
sWky/Ng3tzi88pmvCgRy1MQp1imYBLzhBBDXtdBrVTgHyWYhpcquwmiSMMpTDllzFXlB2iqlJBDq
WMDSknNhlnZ+YelFHiL8gTLuetfUaAsOeX84dKeD0bj/rj/WyWzmhvDmXqOeNXhmKVH5YoB9E30x
YZuGUCwUPTr3vtptqFpkkVEIuCDT20WVUG88DioMfmp5UNHnQER5jAQJzcgVlIaY/OGUkqseEG6Q
MaqLBYbknQpake1ViZ5XXZnooxUrHglktkmR6mAgE3aIbL7tqAFIPunFdvvCHHUXS5j49EomctFa
rkMp2Uj+wHrBaZ5akHw2CO82Dhsd1ILsd0njo/i8vW1kwIKCt5it9XIIdJ0s+pcmYT7Y1M4WuG+7
jXajA+/73cZr/kFiqmjNpP7aMKdW92sOLMzDBuZ8ryBZr85Dgb/fizaUCx+BEmuelhiKeMX6wcGB
bDc5Gx0FeF9KFCOCd1OMdpsHj4HEP85pbDDtkPwwoPEitD2H3C/VpQqdCU1TqL+XX7l0o7nlrD6Y
tLKZbuo+aMhXWSLDPzdP5wfEvNFwlse6GOoGB4tE7heXGr3pKTlW0Wo5AZ1Heu3mWqvFbYwa/ZbP
j8IQgbtEjZbaIxcmvQR/vD9wn+SdjbOxvvrx3iY6mbHzB5vbmiJr7a2SDu5dtV17kmwrcpySP6G7
yZk80+FEkNezepb3GcPdleD5xQnVk97Y7lY4TssqtlJtR/WZuBhV5rnWuoRmfi2/3Km8sdaPuEah
rmcVHQm7fdnWp3e6+yB372t0BUaruh7/X+vAiicICX6hk1Tvl5zb7FiP1AS8q4cBDcn08NwdnU57
fbd/jMM7W9Cy8OeBOCBerI/eeJ6Hk33Ab81QHgibUTKPoCAkIQnxvBjQzE+jJUvSDBEgHDA1izdt
3kS35IgsHLgK5uitzmlslaFuJXB6h4JUKwDhDxde6s+gXvLjq1SrnglylQBZIeAKJ0f0zRtJFuTY
It60YMgBfmJeLfEag1YuvNtosVqQeLW4hKCvsFfcFoWzhCn7uAt/Ysma+QngW/4RpBzPqH/NBYSB
610CIloCRqcRhBCA+TPipZzrVUb14RwftEhu+sTlXbyMYlwE5rnj836zcOow5UrZJ0lyjShsFmWE
SpFQ35kXxRlJVprRGC8fpmglHjv5YlnWIhYFQtKvfjchpefb+tCauz+XQmfP8HGYrCA4w4Cnk+lw
uGq6velg+EF4oVk6fvGH+5dnBVIvvHUzg5QSqGVb8ZGB8jj2XXHI+Mr3bG8be+6eFue51XHChI7r
IY5AxWi2eJo/o3EQhT/6sx4w1gdmZNz/KNp/UEsDBAoAAAAAACxylywAAAAAAAAAAAAAAAAKAAAA
c3JjL3N0ZGVyclBLAwQKAAAAAAALf5csAAAAAAAAAAAAAAAABAAAAHNyYy9QSwECFAAUAAAACABU
fZcsY5i8FJwBAABCBAAAEQAAAAAAAAABACAAtoEAAAAAaW5jL3NlcmlhbF90ZXN0LmhQSwECFAAK
AAAAAABUfZcsAAAAAAAAAAAAAAAABAAAAAAAAAAAABAA/0HLAQAAaW5jL1BLAQIUABQAAAAIAAt/
lyyDuS0hrgYAALkUAAARAAAAAAAAAAEAIAC2ge0BAABzcmMvc2VyaWFsX3Rlc3QuY1BLAQIUAAoA
AAAAACxylywAAAAAAAAAAAAAAAAKAAAAAAAAAAEAIAC2gcoIAABzcmMvc3RkZXJyUEsBAhQACgAA
AAAAC3+XLAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAQAP9B8ggAAHNyYy9QSwUGAAAAAAUABQAaAQAA
FAkAAAAA
------_=_NextPart_000_01C1ED1F.CC1100C0--
From vxwexplo-errs@csg.lbl.gov  Fri Apr 26 06:25:20 2002
From: "Legoas, Marco A (FL51)" <marco.a.legoas@honeywell.com>
Date: Fri Apr 26 06:25:22 PDT 2002
Subject: Digital I/O VME Board
VxWorks users:
I am looking for a general purpose VME based digital I/O  board with VxWorks
drivers, or easy to integrate in a VME backplane with a Master CPU running
VxWorks. Among other things, I would like to be able to map one of the input
lines to produce a VME interrupt.
Anyone out there had experience with or can recommend a good board?.
Any leads will be appreciated.
Marco A. Legoas
marco.a.legoas@honeywell.com
From vxwexplo-errs@csg.lbl.gov  Fri Apr 26 15:53:11 2002
From: karunakaran nair <karun40@yahoo.com>
Date: Fri Apr 26 15:53:13 PDT 2002
Subject: question
--0-753319938-1019861588=:62133
Content-Type: text/plain; charset=us-ascii
 how to debug in vxworks with crosswind when static loads are running ? for example, i have
static images in /tmp directory, open windsh with static .st files and find some
problem to debug. how to do this ?
---------------------------------
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
--0-753319938-1019861588=:62133
Content-Type: text/html; charset=us-ascii
<P> how to debug in vxworks with crosswind when static loads are running ? for example, i have
<P>static images in /tmp directory, open windsh with static .st files and find some
<P>problem to debug. how to do this ?
<P>&nbsp;</P><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://rd.yahoo.com/welcome/*http://games.yahoo.com">Yahoo! Games</a> - play chess, backgammon, pool and more
--0-753319938-1019861588=:62133--
From vxwexplo-errs@csg.lbl.gov  Sat Apr 27 04:03:16 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Sat Apr 27 04:03:19 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Sat Apr 27 04:03:12 PDT 2002
        Subject: Re: [Q]Serial IO nonblocking scheme
        Subject: Stack corruption with custom network driver
        Subject: Re: PCI-to-PCI bridge x86
        Subject: GUI on VxWorks
        Subject: Re: GUI on VxWorks
        Subject: Redundant VxNetwork
        Subject: Re: GUI on VxWorks
        Subject: Re: target shell load of c++ code, where is my builtin_new and delete ?
        Subject: NPT Ethernet Driver on Tornado 2.0.2
        Subject: Re: PCI-to-PCI bridge x86
        Subject: Re: EXTREMELY long time spent in ping() routine
        Subject: tracescope, cannot register function
        Subject: Re: EXTREMELY long time spent in ping() routine
        Subject: Re: EXTREMELY long time spent in ping() routine
        Subject: Re: Debugging with tornado
        Subject: Differences between ROM based and RAM based boot  image
        Subject: Ping peculiarity
        Subject: Re: Redundant VxNetwork
        Subject: Re: Ping peculiarity
        Subject: Re: EXTREMELY long time spent in ping() routine
        Subject: bootrom not loading kernel
        Subject: the value of IMMR in PPC860
        Subject: Re: GUI on VxWorks
        Subject: Re: target shell load of c++ code, where is my builtin_new and delete ?
        Subject: Re: Debugging with tornado
        Subject: Re: Redundant VxNetwork
        Subject: Re: the value of IMMR in PPC860
        Subject: Problem about dosFs rename()
        Subject: Network boot problem
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Re: [Q]Serial IO nonblocking scheme
Date: Fri, 26 Apr 2002 14:51:02 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cc94d17@brateggebdc5.br-automation.co.at>
References: <aaavgg$9iq$1@news1.kornet.net>
Hi,
before reading, check if there _is_ something to read with ioctl(fd,
FIONREAD, &num_bytes)
If no bytes are ready for read, check back later.
Don't read more than is available for read.
Than you should not get blocked.
hth
Werner
"Jinney Jung" <jinney@tge.co.kr> wrote in message
news:aaavgg$9iq$1@news1.kornet.net...
> Hi all,
>
> I am trying to implement nonblock serial communication.
>
> but, in the Vxworks, read() function of serial is blocked function.
>
> Is there any advice to implement nonblock serial scheme?
>
> Thanks a lot.
>
> happy day
>
> jinney
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Stack corruption with custom network driver
Date: 26 Apr 2002 06:21:37 -0700
From: Dennis.Dupont@xipn.net (Dennis Dupont)
Organization: http://groups.google.com/
Message-ID: <acde67c5.0204260521.28306f4d@posting.google.com>
We have been using the Motorola/NetComm ATM/AAL5 driver for the PPC8260
with an END driver between it and the MUX layer of the network stack.
When running a test with receive-only operations, we are seeing the stack
pointer of one of the TFFS tasks (either tTffsPTask or tDcacheUpd) being
changed to point inside the stack of the tNetTask.  This quickly causes
the affected task to machine check. Running the same test over the
ethernet drivers does not cause any such problem.  I am quite sure that
the affected task is only being picked on because of its polling nature,
but cannot think of a possible cause for this behavior.
We get another interesting symptom when running a test to track down the
error.  We set a flag so that the interrupt routine in the ATM driver
does not call netJobAdd (just to isolate it to the ISR or the task code).
Running spy during this test shows netTask consuming 95% of the CPU, even
without us calling netJobAdd???  This is somewhat confirmed by the lower
priority tasks not getting any CPU.  I would suspect the ISR time is
being attributed to tNetTask, but why? Even so, we are using such a low
transmit rate that even the ISR shouldn't use that much.
Any debugging suggestions?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: PCI-to-PCI bridge x86
Date: Fri, 26 Apr 2002 09:33:58 -0400
From: Dan Chivers <dchivers@systran.com>
Message-ID: <pan.2002.04.26.13.33.58.364938.1005@systran.com>
References: <pan.2002.04.23.14.25.05.929147.21899@systran.com> <pan.2002.04.25.19.22.58.829971.1126@systran.com> <3CC8E942.5B1E@despam.autobahn.mb.ca>
I have two test machines with multiple PCI buses.
Both of these machines are _very_ different and are both known to work
using other OSs (also running drivers for this PCI card).
> Check the state of the bridge config registers.
I will chex it out, but I'd like to avoid writing a PCI bridge driver although
it looks as if VxWorks might need one for x86. :-)
> 	I don't know about pciToLocalAdrs().  You do have to make sure you
> 	allocate a window for PCI memory is your phys mem desc array.
Yes, this is why it works on bus 0.
---------------------------
Newsgroups: comp.os.vxworks
Subject: GUI on VxWorks
Date: 26 Apr 2002 06:31:55 -0700
From: trnswamy@netKracker.com (Narasimha Swamy)
Organization: http://groups.google.com/
Message-ID: <b432d10c.0204260531.7c331c5f@posting.google.com>
We have to do a project in which we have to develop GUI (Graphical
User Interface) in a VxWorks OS platform. The GUI does not change
automatically but values shown in the GUI will be changing
continuously. The hardware is an Intel Pentium PC with a standard
monitor. We are not sure about how to go about this. Please let me
know what is the best method for such a problem. Please also let me
know where I can get relevent literature and other material like
Tools.
Thank you for any suggestion.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: GUI on VxWorks
Date: Fri, 26 Apr 2002 13:56:26 GMT
From: nunya@damn.business.com (Bruce)
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <3cc958b1.42286835@news.houston.sbcglobal.net>
References: <b432d10c.0204260531.7c331c5f@posting.google.com>
In comp.os.vxworks
trnswamy@netKracker.com (Narasimha Swamy) wrote:
>We have to do a project in which we have to develop GUI (Graphical
>User Interface) in a VxWorks OS platform. The GUI does not change
>automatically but values shown in the GUI will be changing
>continuously. The hardware is an Intel Pentium PC with a standard
>monitor. We are not sure about how to go about this. Please let me
>know what is the best method for such a problem. Please also let me
>know where I can get relevent literature and other material like
>Tools.
VxWorks has Zinc or you can use MetaGraphics for VxWorks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Redundant VxNetwork
Date: 26 Apr 2002 07:54:48 -0700
From: igtorque@yahoo.es (=?ISO-8859-1?Q?Ignacio_Gonz=E1lez_T.?=)
Organization: http://groups.google.com/
Message-ID: <74c2e5b4.0204260654.6e3c03ff@posting.google.com>
Dear VxNetworkers.
We have made a device that runs over VxWorks 5.4.2. It has an Ethernet
card, and a TCP/IP stack over it. This device is connected to
identical devices over a closed Ethernet network (about ten or twenty
devices.) It works.
Now, we want this network to be redundant, in order to cope with
broken wires, broken Ethernet controllers, and the like. We have the
source code of the driver (CS8900, END) which at present time only
supports one controller.
Our approach is to have 2 physical different networks (2 sets of
wires, hubs, etc.), and 2 Ethernet controllers per device, each
connected to a different network. One network would be active; the
other network would be dormant, and would become active only when some
of the elements of the first network fails and is shut down (and this
is detected, of course.)
Now, what is possible, and if posible, what is faster to achieve with
the VxWorks network ?
1) To have 2 different IP addresses per device (1 per network), each
IP address being attached to a different Ethernet driver and
controller, each with a different MAC address. The network switching
would have to be above the TCP level (application programs.)
2) To have 1 IP address per device (1 per network), 2 Ethernet drivers
and 2 different controllers, each one with its own MAC address. The
TCP/IP stack would be attached to one of these drivers / controllers.
The network switching would consist on dettaching the stack and
reattaching it to the other driver / controller.
3) To have 1 IP address per device (1 per network), 1 Ethernet driver
and 2 different controllers, each one with its own MAC address. The
TCP/IP stack would be attached to the unique Ethernet drivers. The
network switching would consist on reinitializing the Ethernet driver
using a different controller (with a different MAC address.)
4) To have 1 IP address per device (1 per network), 1 Ethernet driver
and 2 different controllerswith the same MAC address. The TCP/IP stack
would be attached to the unique Ethernet drivers. The network
switching would consist on reinitializing the Ethernet driver using a
different controller but with the same MAC address.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: GUI on VxWorks
Date: Fri, 26 Apr 2002 17:23:20 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3cc970c6$1@brateggebdc5.br-automation.co.at>
References: <b432d10c.0204260531.7c331c5f@posting.google.com>
Hi,
Directly from WRS you can have the following 3 products I know of:
WindML
Zinc
Java VM (including graphics)
WindML is a C graphics primitive library with driver interfaces for display,
input devices and other things. It forms the foundation of the other two
products. It is the successor of a product called UGL (or, to be precise:
WindML is a new version of UGL, but WRS renamed it to have a sounding name).
Although there are no high-level windowing capabilities, it may be
sufficient for your application if it is basically for displaying
information rather than providing a point and click interface in a windows
manner. If you need 'real' controls this is probably not for you.
Zinc is a C++ graphics library that was available free of charge for Windows
and Linux free of charge. I'm not sure if this is still the case, since
WindRiver acquired the company. Anyway, this provides the usual controls,
and they look pretty much like Windows (95). It is also pretty fast,
especially on a Pentium class target system.
Java has the well-known problems inherent to that system as well as its
advantages: Needs tons of memory, tons of CPU power (your machine may be
sufficient, I guess - but try it anyway before buying), ugly (in my opinion)
AWT window widgets, portability.
You'll find information on these products on WRS web pages.
The main problem with using an embedded OS on a of-the-shelve PC is, that
you won't get WindML graphics drivers for the graphics board used in the PC.
If you plan to setup the system in larger quantities, you need to make sure
that you select components that are available for a longer time.
You'll probably end up writing your driver(s) yourself.
BTW: The drivers that come with WindML for pcPentium are crap, at least when
we evaluated them (very slow, limited to only few modes). The standard VESA
driver is of course very, very slow since no hardware accerleration is
available.
hth
Werner
"Narasimha Swamy" <trnswamy@netKracker.com> wrote in message
news:b432d10c.0204260531.7c331c5f@posting.google.com...
> We have to do a project in which we have to develop GUI (Graphical
> User Interface) in a VxWorks OS platform. The GUI does not change
> automatically but values shown in the GUI will be changing
> continuously. The hardware is an Intel Pentium PC with a standard
> monitor. We are not sure about how to go about this. Please let me
> know what is the best method for such a problem. Please also let me
> know where I can get relevent literature and other material like
> Tools.
> Thank you for any suggestion.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: target shell load of c++ code, where is my builtin_new and delete ?
Date: 26 Apr 2002 11:40:44 -0400
From: Bill Pringlemeir <bpringlemeir@yahoo.com>
Organization: Factory of the mind
Message-ID: <uelh2qxhf.fsf@yahoo.com>
References: <o%2y8.77002$QR1.2676457@news20.bellglobal.com>
Sender: bpringlemeir@DeadDuck
 Yves> loading a .out file (C++ application) from the target shell, I
 Yves> get
 Yves> undefined symbol: __builtin_delete (binding 1 type 0)
 Yves> undefined symbol: __builtin_new (binding 1 type 0)
This sounds like you need to include `C++' support.  Can you run the
command "nmppc vxWorks | grep __builtin", and see if the symbols are
in your vxWorks image?
 Yves> What I need to accomplish: I am trying to work around the PPC
 Yves> 24-bit relocation error. So, I start my board with 32MB,
 Yves> disable static constructors, load the app, add the rest of the
 Yves> board's memory to the memory pool, and run the static
 Yves> constructors. Convoluted, I know. I thought it would work, but
 Yves> I am missing something (clearly).
 Yves> I also get application specific undefined symbols, which throw
 Yves> me for a loop. Can the target loader handle C++ .out ?
 Yves> OK, so what am I missing. Because the same image, OS will load
 Yves> from the T2 download button...
Which shell are you using?  One within Tornado or one hooked up to a
serial port.  The loading is significantly different.  If you are
attempting to do this from a serial port, you must also include the
symbol table in the image.
 Yves> Has anyone loaded an application ".out" with an OS build
 Yves> project (without creating a project with the app code and OS
 Yves> build in one project - any pointers
Yes, I have done this in many different ways.  You must get straight
that the target and the tools have different mechanisms for resolving
symbols.  If you do understand that, we should at least get it out of
the way as it is a common problem.
Regards,
Bill Prinlemeir.
- --
bemd CNCIS Croatian White Water monarchist mania halcon Ft. Knox Delta
Force Legion of Doom Firefly class struggle TELINT Serbian
investigation
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"
---------------------------
Newsgroups: comp.os.vxworks
Subject: NPT Ethernet Driver on Tornado 2.0.2
Date: Fri, 26 Apr 2002 16:53:47 +0100
From: Paul Mannion <paulm@s3group.com>
Organization: Silicon and Software Systems
Message-ID: <3CC9780B.9788892A@s3group.com>
This is a multi-part message in MIME format.
- --------------7A2650BFC0B83D71E3AAC74C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
    I'm writing an NPT ethernet driver with  RFC 894 (dest MAC, src MAC
+ type)  type header.
    I'm also trying to use the Early Link-Level Header Allocation
(#define USR_MAX_LINK_HDR 16)
    facility.
    I'm seeing some strange behaviour running a functional test from
which my driver
    receives ICMP packets. The MBlk printout shows a 32 byte allocation
prior to the
    IP header ?  I assumed that the L2 header early allocation
    would be = 16 bytes as defined in USR_MAX_LINK_HDR ?
    Also the Mblk data pointer received in the driver (nptSend) points
to the IP packet header but it
    doesn't build the ethernet header correctly?
    All the IOCTL command are implemented correctly. I'm I missing
something ?
    Any help appreciated
    tnx
Paul
- --------------7A2650BFC0B83D71E3AAC74C
Content-Type: text/x-vcard; charset=us-ascii;
 name="paulm.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Paul Mannion
Content-Disposition: attachment;
 filename="paulm.vcf"
begin:vcard
n:Mannion;Paul
tel;fax:-353-1-2911001
tel;work:-353-1-2911360
x-mozilla-html:FALSE
org:Silicon and Software Systems
adr:;;;;;;
version:2.1
email;internet:paulm@s3group.com
title:Software Engineer
fn:Paul Mannion
end:vcard
- --------------7A2650BFC0B83D71E3AAC74C--
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: PCI-to-PCI bridge x86
Date: Fri, 26 Apr 2002 16:42:46 GMT
From: "H. E. Taylor" <het@despam.autobahn.mb.ca>
Organization: MTS Internet
Message-ID: <3CC99E3A.720F@despam.autobahn.mb.ca>
References: <pan.2002.04.23.14.25.05.929147.21899@systran.com> <pan.2002.04.25.19.22.58.829971.1126@systran.com> <3CC8E942.5B1E@despam.autobahn.mb.ca> <pan.2002.04.26.13.33.58.364938.1005@systran.com>
In article <pan.2002.04.26.13.33.58.364938.1005@systran.com>,
<dchivers@systran.com> Dan Chivers wrote:
>
> I have two test machines with multiple PCI buses.
> Both of these machines are _very_ different and are both known to work
> using other OSs (also running drivers for this PCI card).
>
	That's good.  It eliminates a whole set of possibilities.
>> Check the state of the bridge config registers.
>
> I will chex it out, but I'd like to avoid writing a PCI bridge driver although
> it looks as if VxWorks might need one for x86. :-)
>
	Ummm.  I'm not sure we're copacetic here.  Because you are
	talking x86, I assume you are in some PC compatible hardware, yes?
	If this is so, the PC-BIOS has code which does the initial PCI bus
	scan and sets up the configuration space registers (of all devices)
	and bridges.  Which PC-BIOS are you using?
	Then VxWorks starts and the pciLib sets itself up, but doesn't
	modify the config registers.  [Caveat:  That's how it was in 5.3.1.
	I haven't used 5.4 or AE.  Which version are you running?]
	This is a long shot, but do you notice a difference in behaviour
	if you do a cold reboot versus a warm restart once the system is
	already up?  There may be timing initialization issues.
<selah>
- -het
- --
"It is difficult to say what is impossible, for the dream of yesterday
is the hope of today and reality of tomorrow." - Robert Goddard
Energy Alternatives: http://www.autobahn.mb.ca/~het/energy.html
H.E. Taylor  http://www.autobahn.mb.ca/~het/
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: EXTREMELY long time spent in ping() routine
Date: 26 Apr 2002 10:08:13 -0700
From: pkockritz@mac.com (Pete Kockritz)
Organization: http://groups.google.com/
Message-ID: <9423c55b.0204260908.270aa164@posting.google.com>
References: <72096774.0204251324.45b6efbf@posting.google.com>
mike_texx@mail.ru (MK) wrote in message news:<72096774.0204251324.45b6efbf@posting.google.com>...
> The problem is, that about 75 seconds are spent inside a ping()
> routine.
> resolvSend()
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1
> ;; flags: rd; Ques: 1, Ans: 0, Auth: 0, Addit: 0
> ;; QUESTIONS:
> ;;	219.1.168.192.in-addr.arpa, type = PTR, class = IN
> -------->(75 seconds are spent waiting here)<------------------
> Ping Success
<snip>
> 	if ( !(error = ping( ipAddrStr, 1, PING_OPT_SILENT |
> PING_OPT_DONTROUTE )) )
Try adding the PING_OPT_NOHOST option. Looks like it may be waiting for a
reverse DNS lookup.
Pete
- --
pkockritz at mac dot com
---------------------------
Newsgroups: comp.os.vxworks
Subject: tracescope, cannot register function
Date: Fri, 26 Apr 2002 14:25:22 -0400
From: Michael Reed <mreed@ll.mit.edu>
Message-ID: <3CC99B92.37C59311@ll.mit.edu>
Are there any RTI / ScopeTool users out here.  From searchs of this
newsgroup and WindSerf, I suspect not too many.  I'm having a problem w/
TraceScope where it reports that I cannot register a particular function
for tracing:
PatchSet: 0x9dea54 (0x9421ffd8)is not a compiler-generated function.
PatchClear: 0x9dea54 not found.
I can sucessfully register other functions.  What's different about this
function?  The API for the PatchSet call says you can only patch
"normally-compiled function".  As in, like, I "normally compile" my code
before running it?  Yes, normally I do this..
THanks,
Mike R.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: EXTREMELY long time spent in ping() routine
Date: Fri, 26 Apr 2002 11:33:48 -0700
From: "MK" <mike_texx@mail.ru>
Organization: mike_texx@mail.ru
Message-ID: <ucj7co4tdkiud0@corp.supernews.com>
References: <72096774.0204251324.45b6efbf@posting.google.com> <9423c55b.0204260908.270aa164@posting.google.com>
Reply-To: "MK" <mike_texx@mail.ru>
"Pete Kockritz" <pkockritz@mac.com> wrote in message
news:9423c55b.0204260908.270aa164@posting.google.com...
> mike_texx@mail.ru (MK) wrote in message
news:<72096774.0204251324.45b6efbf@posting.google.com>...
> <snip>
>
> > if ( !(error = ping( ipAddrStr, 1, PING_OPT_SILENT |
> > PING_OPT_DONTROUTE )) )
>
> Try adding the PING_OPT_NOHOST option. Looks like it may be waiting for a
> reverse DNS lookup.
>
> Pete
> --
> pkockritz at mac dot com
<snip>
PING_OPT_NOHOST doesn't seem to be a documented flag.  My pingLib.h only has
these flags listed:
#define PING_OPT_SILENT  0x1 /* work silently */
#define PING_OPT_DONTROUTE 0x2 /* dont route option */
#define PING_OPT_DEBUG  0x4 /* print debugging messages */
Do you know what PING_OPT_NOHOST is defined as?  Thanks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: EXTREMELY long time spent in ping() routine
Date: Fri, 26 Apr 2002 11:49:27 -0700
From: "MK" <mike_texx@mail.ru>
Organization: mike_texx@mail.ru
Message-ID: <ucj8a3f9o0gd26@corp.supernews.com>
Reply-To: "MK" <mike_texx@mail.ru>
about 75 seconds are spent inside a ping()
routine.
Can somebody please point out a possible problem/solution, or let me
know what additional information I need to post up to help you answer
my question.
The board is a Cirrus Logic's EP7312-based   Cogent CDK238 development
board with cs8900a ethernet controller.
Software: Vxworks 5.4 , Tornado 2.
If it matters at all: system clock rate is 60 ticks/second
I verified that the system tracks time more or less correctly. Over a
3-minute period the system kept track of seconds OK (accumulated error
was at least less than a second)
Here is the output of the ping() routine.
resolvSend()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1
;; flags: rd; Ques: 1, Ans: 0, Auth: 0, Addit: 0
;; QUESTIONS:
;; 219.1.168.192.in-addr.arpa, type = PTR, class = IN
- -------->(75 seconds are spent waiting here)<------------------
Ping Success
global variable _pingTxTmo is set to 2.
as a matter of fact, here is the routine that I use to test ping()
#include "pinglib.h"
#include "sys/types.h"
extern int _pingTxTmo;
int csTestPing(char* IPstr)
{
static int ind_pingLibInit = FALSE;
struct in_addr ipAddr;
long longipAddr = 0;
char ipAddrStr[16], *tok;
int error;
_pingTxTmo = 2; // Ping 2 sec timeout
longipAddr = atoi(IPstr); //byte1
    tok = strtok (IPstr, ".");
    tok = strtok (NULL, ".");
    longipAddr = (longipAddr<<8)|atoi (tok); //byte2
    tok = strtok (NULL, ".");
    longipAddr = (longipAddr<<8)|atoi (tok); //byte3
    tok = strtok (NULL, ".");
    longipAddr = (longipAddr<<8)|atoi (tok); //byte4
if(!ind_pingLibInit)
{
printf( "Ping Init\n" );
pingLibInit();
ind_pingLibInit = TRUE;
}
ipAddr.s_addr = htonl( longipAddr );
inet_ntoa_b( ipAddr, ipAddrStr );
printf( "Ping Target %s\n", ipAddrStr );
printf( "Ping...\n" );
if ( !(error = ping( ipAddrStr, 1, PING_OPT_SILENT |
PING_OPT_DONTROUTE )) )
{
printf( "Ping Success\n" );
return 0;
}
else
{
printf( "Ping Failure. Error %d\n", error);
if(error == EINVAL) printf(" EINVAL\n");
if(error == S_pingLib_NOT_INITIALIZED) printf("
S_pingLib_NOT_INITIALIZED\n");
if(error == S_pingLib_TIMEOUT ) printf(" S_pingLib_TIMEOUT\n");
return 1;
}
}
Thanks in advance
mike_texx@mail.ru (MK) wrote in message
news:<72096774.0204251324.45b6efbf@posting.google.com>...
> The problem is, that about 75 seconds are spent inside a ping()
> routine.
> resolvSend()
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1
> ;; flags: rd; Ques: 1, Ans: 0, Auth: 0, Addit: 0
> ;; QUESTIONS:
> ;; 219.1.168.192.in-addr.arpa, type = PTR, class = IN
> -------->(75 seconds are spent waiting here)<------------------
> Ping Success
<snip>
> if ( !(error = ping( ipAddrStr, 1, PING_OPT_SILENT |
> PING_OPT_DONTROUTE )) )
Try adding the PING_OPT_NOHOST option. Looks like it may be waiting for a
reverse DNS lookup.
Pete
- --
pkockritz at mac dot com
"Pete Kockritz" <pkockritz@mac.com> wrote in message
news:9423c55b.0204260908.270aa164@posting.google.com...
> mike_texx@mail.ru (MK) wrote in message
news:<72096774.0204251324.45b6efbf@posting.google.com>...
> <snip>
>
> > if ( !(error = ping( ipAddrStr, 1, PING_OPT_SILENT |
> > PING_OPT_DONTROUTE )) )
>
> Try adding the PING_OPT_NOHOST option. Looks like it may be waiting for a
> reverse DNS lookup.
>
> Pete
> --
> pkockritz at mac dot com
<snip>
PING_OPT_NOHOST doesn't seem to be a documented flag.  My pingLib.h only has
these flags listed:
#define PING_OPT_SILENT  0x1 /* work silently */
#define PING_OPT_DONTROUTE 0x2 /* dont route option */
#define PING_OPT_DEBUG  0x4 /* print debugging messages */
Do you know what PING_OPT_NOHOST is defined as?  Thanks.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Debugging with tornado
Date: 26 Apr 2002 12:26:30 -0700
From: rishi_bhargava@yahoo.com (Rishi Bhargava)
Organization: http://groups.google.com/
Message-ID: <2474871.0204261126.61903b7c@posting.google.com>
References: <2474871.0204251550.377debda@posting.google.com> <7z5y8.16592$vX.2072@rwcrnsc53>
How do you configure the vxworks to download the symbols from the
host?? Any reference to it will be helpful.
Rishi
"Gary M" <com.vertical@garym> wrote in message news:<7z5y8.16592$vX.2072@rwcrnsc53>...
> Our former WRS FAE recommended building bootrom prototypes as downloadable
> VxWorks images, whenever possible. This is much easier to debug and provides
> a shorter compile-load-debug cycle. Of course, some code can only be tested
> when built as a ROM, but the configured kernel, optional packages, and the
> application can be debugged as a regular project.
>
> You can also configure VxWorks to download the symbols from the host,
> instead of being built into the image, saving a good chunk of memory.
>
> "Rishi Bhargava" <rishi_bhargava@yahoo.com> wrote in message
> news:2474871.0204251550.377debda@posting.google.com...
> > To use tornado debugger or even gdb the bootrom needs to be compiled
> > with -g option. This makes the bootrom huge. Is there a way to load
> > the symbols seperately when required for debugging and not form part
> > of the bootrom.
> >
> > Thanks,
> > Rishi
---------------------------
Newsgroups: comp.os.vxworks
Subject: Differences between ROM based and RAM based boot  image
Date: 26 Apr 2002 13:04:45 -0700
From: amraja8@hotmail.com (Raja)
Organization: http://groups.google.com/
Message-ID: <7da11b7d.0204261204.179c9947@posting.google.com>
Hi
I am running my application by downloading over the ethernet to the
target. It runs fine.
Then I make a boot image "vxWorks.st_rom.hex" and I flash it on to the
board.
This image has my application also. But when it runs , it gives me an
error message that says unable to initialize the PMC devices that are
on a VME Board.
PLease let me know if there are any ideas on pursuing how to fix this.
I am using a VME board on which two PMC daughter board sare attached.
Thanks in advance.
Raja
---------------------------
Newsgroups: comp.os.vxworks
Subject: Ping peculiarity
Date: Fri, 26 Apr 2002 13:58:39 -0700
From: "MK" <mike_texx@mail.ru>
Organization: mike_texx@mail.ru
Message-ID: <ucjfsjd4hjkaf9@corp.supernews.com>
Reply-To: "MK" <mike_texx@mail.ru>
 I have found, that my ping() routine is attempting to send more messages
than is required by the parameter that I pass in.
Here are the printouts of the two ping calls. The first one is to an
existing machine, the second one is to an inexisting one
CALL1 (machine 192.168.1.219 exists)
 -> ping "192.168.1.219", 10, 0
PING 192.168.1.219: 56 data bytes
resolvSend()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2
;; flags: rd; Ques: 1, Ans: 0, Auth: 0, Addit: 0
;; QUESTIONS:
;; 219.1.168.192.in-addr.arpa, type = PTR, class = IN
64 bytes from 192.168.1.219: icmp_seq=0. time=0. ms
- ----192.168.1.219 PING Statistics----
75 packets transmitted, 1 packets received, 98% packet loss
round-trip (ms)  min/avg/max = 0/0/0
value = 0 = 0x0
CALL2 (machine 192.168.1.222 does not exist)
- -> ping "192.168.1.222", 10, 0
PING 192.168.1.222: 56 data bytes
no answer from 192.168.1.222
value = -1 = 0xffffffff
As you can see, in the first call the system attempted to send 75 packets.
Any ideas why this might be happening? The time spent in ping() after the
first call is 75 seconds. The time spent after the second call is 2 seconds
(_pingTxTmo is set to 2)
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Redundant VxNetwork
Date: 26 Apr 2002 14:48:47 -0700
From: vloscomp@yahoo.com (Vinh)
Organization: http://groups.google.com/
Message-ID: <c129947c.0204261348.736145be@posting.google.com>
References: <74c2e5b4.0204260654.6e3c03ff@posting.google.com>
How about:
1 IP address, and two MAC. I don't believed that the CS8900 will do
switching so the driver have to change. Or better yet, flood the two
network and that will allows instance switch-over without any
delay/latency.
Also with one IP, the application does not have to be aware of the
switching. This will saved a lot of headach.
Good Luck.
Vinh Lam
igtorque@yahoo.es (=?ISO-8859-1?Q?Ignacio_Gonz=E1lez_T.?=) wrote in message news:<74c2e5b4.0204260654.6e3c03ff@posting.google.com>...
> Dear VxNetworkers.
>
> We have made a device that runs over VxWorks 5.4.2. It has an Ethernet
> card, and a TCP/IP stack over it. This device is connected to
> identical devices over a closed Ethernet network (about ten or twenty
> devices.) It works.
>
> Now, we want this network to be redundant, in order to cope with
> broken wires, broken Ethernet controllers, and the like. We have the
> source code of the driver (CS8900, END) which at present time only
> supports one controller.
>
> Our approach is to have 2 physical different networks (2 sets of
> wires, hubs, etc.), and 2 Ethernet controllers per device, each
> connected to a different network. One network would be active; the
> other network would be dormant, and would become active only when some
> of the elements of the first network fails and is shut down (and this
> is detected, of course.)
>
> Now, what is possible, and if posible, what is faster to achieve with
> the VxWorks network ?
>
> 1) To have 2 different IP addresses per device (1 per network), each
> IP address being attached to a different Ethernet driver and
> controller, each with a different MAC address. The network switching
> would have to be above the TCP level (application programs.)
>
> 2) To have 1 IP address per device (1 per network), 2 Ethernet drivers
> and 2 different controllers, each one with its own MAC address. The
> TCP/IP stack would be attached to one of these drivers / controllers.
> The network switching would consist on dettaching the stack and
> reattaching it to the other driver / controller.
>
> 3) To have 1 IP address per device (1 per network), 1 Ethernet driver
> and 2 different controllers, each one with its own MAC address. The
> TCP/IP stack would be attached to the unique Ethernet drivers. The
> network switching would consist on reinitializing the Ethernet driver
> using a different controller (with a different MAC address.)
>
> 4) To have 1 IP address per device (1 per network), 1 Ethernet driver
> and 2 different controllerswith the same MAC address. The TCP/IP stack
> would be attached to the unique Ethernet drivers. The network
> switching would consist on reinitializing the Ethernet driver using a
> different controller but with the same MAC address.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Ping peculiarity
Date: Fri, 26 Apr 2002 22:02:12 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CC9CEB2.6030009@spamm.me.l8s.co.uk>
References: <ucjfsjd4hjkaf9@corp.supernews.com>
> As you can see, in the first call the system attempted to send 75 packets.
> Any ideas why this might be happening? The time spent in ping() after the
> first call is 75 seconds. The time spent after the second call is 2 seconds
> (_pingTxTmo is set to 2)
This is because the ping code sends the requests from a timer and/or
signal handler, and reaps the answers (etc) within the process.
The 75 second delay is almost certainly a DNS reverse lookup timeout.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: EXTREMELY long time spent in ping() routine
Date: 26 Apr 2002 15:12:39 -0700
From: pkockritz@mac.com (Pete Kockritz)
Organization: http://groups.google.com/
Message-ID: <9423c55b.0204261412.162a21f@posting.google.com>
References: <ucj8a3f9o0gd26@corp.supernews.com>
"MK" <mike_texx@mail.ru> wrote in message news:<ucj8a3f9o0gd26@corp.supernews.com>...
> Do you know what PING_OPT_NOHOST is defined as?  Thanks.
From my pingLib.h file:
    /*
    modification history
    --------------------
    01b,30oct00,gnn  Added PING_OPT_NOHOST flag to deal with SPR 22766
    01a,25oct94,dzb  written.
    */
    #define PING_OPT_NOHOST         0x8     /* dont do host lookup */
However, if it's not defined in your .h file, it may not be implemented in
your library.
Pete
- --
pkockritz at mac dot com
---------------------------
Newsgroups: comp.os.vxworks
Subject: bootrom not loading kernel
Date: Fri, 26 Apr 2002 18:15:34 -0500
From: Dinker Charak <dinker@fnal.gov>
Organization: Fermi National Accelerator Laboratory
Message-ID: <3CC9DF96.621B2327@fnal.gov>
Hi,
I am working on a mv230x BSP. I created a boot.bin and flashed it using
the ppcbug. I switched the jumper and vxWorks bootron boots up and I
configure the parameters. But it gets stuck at
Attached TCP/IP interface to dc0.
Attaching network interface lo0... done.
Loading...
I did n dc
[VxWorks Boot]: n dc
Attaching network interface dc0... done.
Error setting inet address of dc0 to 0, errno = 0
Cannot initialize interface named "dc0"
What could be wrong? I have INCLUDE_END defined in my config.h and
conFigNet.h is also being included in the build. I had made minimal to
no changes to BSP.
I booted a board having other bootron.bin with same parameters to strike
out network issues.
Any hints?
Thanks,
Dinker
---------------------------
Newsgroups: comp.os.vxworks
Subject: the value of IMMR in PPC860
Date: 26 Apr 2002 19:35:30 -0700
From: jade_chen@21cn.com (shy)
Organization: http://groups.google.com/
Message-ID: <937a20a8.0204261835.3092b1@posting.google.com>
I am new in BSP , when I read the rominit.s,
....
	lis	r4, HIADJ( INTERNAL_MEM_MAP_ADDR)
	addi	r4, r4, LO(INTERNAL_MEM_MAP_ADDR)
	mtspr	IMMR, r4		/* initialize the IMMR register */
......
How to determine the value of INTERNAL_MEM_MAP_ADDR,here
#define INTERNAL_MEM_MAP_ADDR		0x02200000
I cannot get the value from the User Manual.
can anyone help me with this?
Regards,
Jade
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: GUI on VxWorks
Date: Sat, 27 Apr 2002 02:38:21 GMT
From: "ChanSeong Mike Kim" <cskim@fdlab.co.kr>
Organization: Dacom
Message-ID: <xaoy8.15028$br1.1009844@news.bora.net>
References: <b432d10c.0204260531.7c331c5f@posting.google.com>
Hi ~
We're developing App. using x86 board.
I used following component.
1. CPU : PENTIUM(AMD K6-266)
2. MAINBAORD : x86 Board(All-ine-one, SOUND, LAN, 4-SERIAL PORT, HDD,
FDD,VGA)
   MODEL NO:HS-4500 ( www.boser.com.tw)
3. LAN - Realtek8139 ( I recommend Intel LAN CHIP , cause Intel driver is
free of charge)
4. VGA - CHIPS 69000(you can 256 color driver if you find or request to WRS)
And I used Vxworks 5.4 + UGL(former version of WindML) + Zinc 5.0( not Zinc
6.0)  + Tornado 2.0
Bootloader:
I used floopy disk. And used 'mkboot.exe'  as floopy diskette bootable in
host computer running Windows2000 Prof. .
Then boot in target computer using floopy driver. (boot through network
card - I used realtek driver)
I built a vxworks os image with standalone boot mode(not network booting)
including ugl and zinc.
[builing ugl.o  and zinc.o is a another step of building object.]
Then I made hdd bootable using 'mkbootAta' command.
After all above steps I could see my own ZINC initial screen.
......debugging....
Best regards
ChanSeong Mike Kim
"Narasimha Swamy" <trnswamy@netKracker.com> wrote in message
news:b432d10c.0204260531.7c331c5f@posting.google.com...
> We have to do a project in which we have to develop GUI (Graphical
> User Interface) in a VxWorks OS platform. The GUI does not change
> automatically but values shown in the GUI will be changing
> continuously. The hardware is an Intel Pentium PC with a standard
> monitor. We are not sure about how to go about this. Please let me
> know what is the best method for such a problem. Please also let me
> know where I can get relevent literature and other material like
> Tools.
> Thank you for any suggestion.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: target shell load of c++ code, where is my builtin_new and delete ?
Date: Sat, 27 Apr 2002 03:44:20 GMT
From: "Robert Mendow" <rmendow@cs.com>
Organization: Prodigy Internet http://www.prodigy.com
Message-ID: <o8py8.350$Ne2.22539550@newssvr17.news.prodigy.com>
References: <o%2y8.77002$QR1.2676457@news20.bellglobal.com>
The problem with builtin_delete and builtin_new is that the host program
that creates the symbol table (named somthing like makeSymTbl) is not
processing weak symbols.  Assuming that you are using Tornado 2, this is
fixed in the T2CP3 patch.
"Yves Boudreault" <yves.boudreault2@sympatico.ca> wrote in message
news:o%2y8.77002$QR1.2676457@news20.bellglobal.com...
> Hi,
>
> probably been asked and answered a million times, but could not find it in
> the FAQ.
>
> loading a .out file (C++ application) from the target shell, I get
>
> undefined symbol: __builtin_delete (binding 1 type 0)
> undefined symbol: __builtin_new (binding 1 type 0)
>
> What I need to accomplish: I am trying to work around the PPC 24-bit
> relocation error. So, I start my board with 32MB, disable static
> constructors, load the app, add the rest of the board's memory to the
memory
> pool, and run the static constructors. Convoluted, I know. I thought it
> would work, but I am missing something (clearly).
>
> I also get application specific undefined symbols, which throw me for a
> loop. Can the target loader handle C++ .out ?
>
> OK, so what am I missing. Because the same image, OS will load from the T2
> download button...
>
> Has anyone loaded an application ".out" with an OS build project (without
> creating a project with the app code and OS build in one project - any
> pointers
>
> Thanks.
>
> Yves
> yves.boudreault2 at sympatico dot ca
>
>
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Debugging with tornado
Date: Sat, 27 Apr 2002 07:02:21 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <02sy8.154498$CH1.118317@sccrnsc02>
References: <2474871.0204251550.377debda@posting.google.com> <7z5y8.16592$vX.2072@rwcrnsc53> <2474871.0204261126.61903b7c@posting.google.com>
Under the VxWorks configuration:
development tool components -> symbol table components -> symbol table
initialization components -> select symbol table initialization, select
downloaded symbol table. This is the preferred method if you are booting off
the network, and also possible on a ROM boot if you initialize the network
at boot time.
"Rishi Bhargava" <rishi_bhargava@yahoo.com> wrote in message
news:2474871.0204261126.61903b7c@posting.google.com...
> How do you configure the vxworks to download the symbols from the
> host?? Any reference to it will be helpful.
>
> Rishi
>
> "Gary M" <com.vertical@garym> wrote in message
news:<7z5y8.16592$vX.2072@rwcrnsc53>...
> > Our former WRS FAE recommended building bootrom prototypes as
downloadable
> > VxWorks images, whenever possible. This is much easier to debug and
provides
> > a shorter compile-load-debug cycle. Of course, some code can only be
tested
> > when built as a ROM, but the configured kernel, optional packages, and
the
> > application can be debugged as a regular project.
> >
> > You can also configure VxWorks to download the symbols from the host,
> > instead of being built into the image, saving a good chunk of memory.
> >
> > "Rishi Bhargava" <rishi_bhargava@yahoo.com> wrote in message
> > news:2474871.0204251550.377debda@posting.google.com...
> > > To use tornado debugger or even gdb the bootrom needs to be compiled
> > > with -g option. This makes the bootrom huge. Is there a way to load
> > > the symbols seperately when required for debugging and not form part
> > > of the bootrom.
> > >
> > > Thanks,
> > > Rishi
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Redundant VxNetwork
Date: 27 Apr 2002 00:16:57 -0700
From: raj_rashid@hotmail.com (Rashid)
Organization: http://groups.google.com/
Message-ID: <2a6118da.0204262316.cd2572b@posting.google.com>
References: <74c2e5b4.0204260654.6e3c03ff@posting.google.com>
> 1) To have 2 different IP addresses per device (1 per network), each
> IP address being attached to a different Ethernet driver and
> controller, each with a different MAC address. The network switching
> would have to be above the TCP level (application programs.)
      This approach will require the Application software to aware of
the redundancy in the n/w which will increase the complexity at that
level and hence should be avoided.
> 2) To have 1 IP address per device (1 per network), 2 Ethernet drivers
> and 2 different controllers, each one with its own MAC address. The
> TCP/IP stack would be attached to one of these drivers / controllers.
> The network switching would consist on dettaching the stack and
> reattaching it to the other driver / controller.
     This approach is feasible. During switchover execute a small
script which will detach stack from first controller and attach it to
second controller. Eg.
       ifRouteDelete("if0",0)
       ifDetach(0,"if0")
       ipAttach("if1",1)
       ifMaskSet("if1",oxffffff00)
       ifAddrSet("if1","192.168.9.51")
> 3) To have 1 IP address per device (1 per network), 1 Ethernet driver
> and 2 different controllers, each one with its own MAC address. The
> TCP/IP stack would be attached to the unique Ethernet drivers. The
> network switching would consist on reinitializing the Ethernet driver
> using a different controller (with a different MAC address.)
     This is also possible if you are using the same Ethernet
controllers.
> 4) To have 1 IP address per device (1 per network), 1 Ethernet driver
> and 2 different controllerswith the same MAC address. The TCP/IP stack
> would be attached to the unique Ethernet drivers. The network
> switching would consist on reinitializing the Ethernet driver using a
> different controller but with the same MAC address.
Hth,
Rashid
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: the value of IMMR in PPC860
Date: Sat, 27 Apr 2002 07:22:02 GMT
From: "Gary M" <com.vertical@garym>
Organization: AT&T Broadband
Message-ID: <uksy8.154593$CH1.118276@sccrnsc02>
References: <937a20a8.0204261835.3092b1@posting.google.com>
I'm not really sure what you are asking, but here goes:
"shy" <jade_chen@21cn.com> wrote in message
news:937a20a8.0204261835.3092b1@posting.google.com...
> I am new in BSP , when I read the rominit.s,
>
> ....
> lis r4, HIADJ( INTERNAL_MEM_MAP_ADDR)
> addi r4, r4, LO(INTERNAL_MEM_MAP_ADDR)
> mtspr IMMR, r4 /* initialize the IMMR register */
> ......
This code loads the value INTERNAL_MEM_MAP_ADDR into the IMMR register. Only
the 16 most significant bits of IMMR can be written.
>
> How to determine the value of INTERNAL_MEM_MAP_ADDR,here
> #define INTERNAL_MEM_MAP_ADDR 0x02200000
>
Yes, it looks like the value is 0x02200000 to me. I would expect the IMMR
register's most significant bits to be 0x0220. The least significant bits
will contain the part number and mask number of the PPC860 processor.
> I cannot get the value from the User Manual.
>
Did you look at Section 11.4.1 of the MPC860 User Manual? If you don't have
this manual, I suggest you download it from Motorola's web site.
> can anyone help me with this?
>
> Regards,
> Jade
---------------------------
Newsgroups: comp.os.vxworks
Subject: Problem about dosFs rename()
Date: 27 Apr 2002 00:36:14 -0700
From: yuzj@utstar.com (Chaos)
Organization: http://groups.google.com/
Message-ID: <e92e98f8.0204262336.23cd3cde@posting.google.com>
Hi,all,
    I encountered a strange problem about rename() function. The
vxWorks version is 5.4, running on MPC8240. The code like this:
        if ((fd = open(newFile, O_WRONLY | O_CREAT, 0644)) != ERROR)
        {
            if (write(fd, buf, length) != length)
            {
                close(fd);
            	return ERROR;
            }
            rename(fileName, oldFile);
	    close(fd);
        }
Where length==1951000 Bytes, fileName=="/image/img.Z",
oldFile="/image/img.Z.old" and newFile="/image/img.Z.update".
    An error ocuured while rename() executing:
User is not allowed to change to /image - returning to
E:\vxWorks\target\MPC8240
    But if the length==1000000 bytes, the error will not occur.
Could anyone help me?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Network boot problem
Date: 27 Apr 2002 02:35:07 -0700
From: san_blabla@hotmail.com (San Blabla)
Organization: http://groups.google.com/
Message-ID: <6046c736.0204270135.14dd5a20@posting.google.com>
Hi, everyone:
I modified a ethernet controler (Realtek 8019as) END(Enhanced Network
Driver) driver on vxWorks, based on NE2000 END driver.
The standalone boot image and net boot rom PINGs OK. But when the net
boot rom trys to get the net boot system image from host, it fails.
The logging message on the WFTPD is:
Connection accepted from 192.168.0.211 (that's my target ip address)
(after a very long time)
QUIT or close-user loged out
My network boot command line is:
#define DEFAULT_BOOT_LINE \
"rtl(0,0)host:vxWorks h=192.168.0.106 g=192.168.0.1 e=192.168.0.211
u=user pw=password "
Dose anybody know what my problem is? Thanks a lot.
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Sun Apr 28 04:03:13 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Sun Apr 28 04:03:16 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Sun Apr 28 04:03:09 PDT 2002
        Subject: Problem about dosFs rename()
        Subject: vxwoks ping problem ?
        Subject: Re: vxwoks ping problem ?
        Subject: Re: On S_iosLib_INVALID_FILE_DESCRIPTOR
        Subject: Re: Problem about dosFs rename()
        Subject: Re: vxwoks ping problem ?
        Subject: Re: Differences between ROM based and RAM based boot  image
        Subject: Re: On S_iosLib_INVALID_FILE_DESCRIPTOR
        Subject: Re: Differences between ROM based and RAM based boot  image
        Subject: Re: Network boot problem
        Subject: Re: bootrom not loading kernel
        Subject: Re: the value of IMMR in PPC860
        Subject: Re: Problem about dosFs rename()
        Subject: Re: Problem about dosFs rename()
        Subject: pciFindDevice issue about VIA VT82C686B IDE Controller
        Subject: Any port of VxWorks to TI's OMAP1510?
        Subject: Re: Problem about dosFs rename()
        Subject: Re: Redundant VxNetwork
        Subject: Re: porting from VxWorks to Linux (Monta Vista, or other)
        Subject: Re: Free XXX Screen Saver!  7938   [2/2]
        Subject: Re: Network boot problem
-------------------------------------------------------
Newsgroups: comp.os.vxworks
Subject: Problem about dosFs rename()
Date: 27 Apr 2002 04:18:31 -0700
From: yuzj@utstar.com (Chaos)
Organization: http://groups.google.com/
Message-ID: <e92e98f8.0204270318.3f1703a4@posting.google.com>
Hi,all,
    I encountered a strange problem about rename() function. The
vxWorks version is 5.4, running on MPC8240. The code like this:
        if ((fd = open(newFile, O_WRONLY | O_CREAT, 0644)) != ERROR)
        {
            if (write(fd, buf, length) != length)
            {
                close(fd);
            return ERROR;
            }
            rename(fileName, oldFile);
    close(fd);
        }
Where length==1951000 Bytes, fileName=="/image/img.Z",
oldFile="/image/img.Z.old" and newFile="/image/img.Z.update".
    An error ocuured while rename() executing:
User is not allowed to change to /image - returning to
E:\vxWorks\target\MPC8240
    But if the length==1000000 bytes, the error will not occur.
Could anyone help me?
---------------------------
Newsgroups: comp.os.vxworks
Subject: vxwoks ping problem ?
Date: 27 Apr 2002 05:45:41 -0700
From: sardine_sz@163.net (sardine)
Organization: http://groups.google.com/
Message-ID: <b1cb4c43.0204270445.37f80ab7@posting.google.com>
hi vxworkers,
   now my target with Intel82557 END,i found a problem,
   if i ping the target from my PC, like this:
       ping 172.0.0.110 -t
     it's normal,
   but,if i ping the target from my PC,like this:
       ping 172.0.0.110 -t -l 2000
     it's timeout  frequently ???
________________________________________________________
   anyone can tell me why ????
thx!!!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: vxwoks ping problem ?
Date: Sat, 27 Apr 2002 13:19:02 +0000 (UTC)
From: David Laight <david@spamm.me.l8s.co.uk>
Organization: BT Openworld
Message-ID: <3CCAA593.50807@spamm.me.l8s.co.uk>
References: <b1cb4c43.0204270445.37f80ab7@posting.google.com>
sardine wrote:
>
>    but,if i ping the target from my PC,like this:
>        ping 172.0.0.110 -t -l 2000
>      it's timeout  frequently ???
I can tell you WHAT is happening, WHY is a little harder :-)
The 2000 byte ICMP echo packet has to be fragmented by IP into
two ethernet packets.  One of these packets is being lost -
either as part of the command, or the response.
Since I presume your PC will do a 2k ping to other systems
the error is likely to be at the target end!
Could be a driver fault, could be cable fault.
I guess you are using UTP - so we lose some possible errors.
Might be FDX / HDX negotiation error.
Could be a buggy hub/bridge.
	David
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: On S_iosLib_INVALID_FILE_DESCRIPTOR
Date: 27 Apr 2002 06:29:42 -0700
From: cozzy@263.net (yyzhong)
Organization: http://groups.google.com/
Message-ID: <b35585ab.0204270529.ec4ef81@posting.google.com>
References: <b35585ab.0204241846.51c04e7@posting.google.com> <Xns91FB66E6EA9C9borkhuisagerecom@135.7.153.102>
Johan Borkhuis <borkhuis@agere.com> wrote in message news:
> Please ignore the errno if you did not get a ERROR return code from a call.
> The errno is only valid if you did get a ERROR return directly from a call,
> and in that case you can look up the meaning of the code.
But I encountered this kind of error again when I boot the target through ethernet .
The prompt of target :
"	Attached Tcp/IP interface to elt0
	Attached network interface lo0...done
	loading...
	Error loading file:errno=0xd0003
	[Vxworks Boot]:
"
The target is a x86 Pentium machine .
The network card is 3COM 3C509.
The wftpd32 is configed properly.
All changes I made to the "config.h" are listed below :
Replace:
#elif	(CPU_VARIANT == PENTIUM)
#define DEFAULT_BOOT_LINE \
	"fd=0,0(0,0)host:/fd0/vxWorks.st h=90.0.0.3 e=90.0.0.50 u=target"
With:
#elif	(CPU_VARIANT == PENTIUM)
#define DEFAULT_BOOT_LINE \
	"elt(0,0)zhong:c:/temp/vxWorks.st h=192.168.10.199 e=192.168.10.22 u=tar pw=123"
Replace:
#undef	INCLUDE_ULTRA	/* include SMC Elite16 Ultra interface */
#undef	INCLUDE_ENE		/* include Eagle/Novell NE2000 interface */
#undef	INCLUDE_ELT		/* include 3COM EtherLink III interface */
#undef	INCLUDE_ESMC	/* include SMC 91c9x Ethernet interface */
#define	INCLUDE_FEI		/* include Intel Ether Express PRO100B PCI */
#define     INCLUDE_SLIP	/* include serial line interface */
#define     SLIP_TTY	1	/* serial line IP channel COM2 */
#undef	INCLUDE_ELC		/* include SMC Elite16 interface */
#undef	INCLUDE_EEX		/* include INTEL EtherExpress interface */
#undef	INCLUDE_EEX32	/* include INTEL EtherExpress flash 32 */
#undef	INCLUDE_EX		/* include Excelan Ethernet interface */
#undef	INCLUDE_ENP		/* include CMC Ethernet interface*/
#undef	INCLUDE_SM_NET	/* include backplane net interface */
#undef	INCLUDE_SM_SEQ_ADDR  /* shared memory network auto address setup */
#undef  INCLUDE_EL_3C90X_END    /* 3com fast etherLink XL PCI */
#undef  INCLUDE_LN_97X_END      /* AMD 79C972 END DRIVER */
With:
#undef	INCLUDE_ULTRA		/* include SMC Elite16 Ultra interface */
#undef	INCLUDE_ENE		/* include Eagle/Novell NE2000 interface */
#define	INCLUDE_ELT		/* include 3COM EtherLink III interface */
#undef	INCLUDE_ESMC		/* include SMC 91c9x Ethernet interface */
#undef	INCLUDE_FEI		/* include Intel Ether Express PRO100B PCI */
#undef  INCLUDE_SLIP		/* include serial line interface */
#undef  SLIP_TTY	1	/* serial line IP channel COM2 */
#undef	INCLUDE_ELC		/* include SMC Elite16 interface */
#undef	INCLUDE_EEX		/* include INTEL EtherExpress interface */
#undef	INCLUDE_EEX32		/* include INTEL EtherExpress flash 32 */
#undef	INCLUDE_EX		/* include Excelan Ethernet interface */
#undef	INCLUDE_ENP		/* include CMC Ethernet interface*/
#undef	INCLUDE_SM_NET		/* include backplane net interface */
#undef	INCLUDE_SM_SEQ_ADDR  /* shared memory network auto address setup */
#undef  INCLUDE_EL_3C90X_END    /* 3com fast etherLink XL PCI */
#undef  INCLUDE_LN_97X_END      /* AMD 79C972 END DRIVER */
Replace:
#define IO_ADRS_ELT	0x240
#define INT_LVL_ELT	0x0b
#define NRF_ELT		0x00
#define CONFIG_ELT	0	/* 0=EEPROM 1=AUI  2=BNC  3=RJ45 */
With:
#define IO_ADRS_ELT	0x280
#define INT_LVL_ELT	0x0a
#define NRF_ELT		0x0f
#define CONFIG_ELT	3	/* 0=EEPROM 1=AUI  2=BNC  3=RJ45 */
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Problem about dosFs rename()
Date: Sat, 27 Apr 2002 14:59:28 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$3fh8vg$tzc$1@lnews.actcom.co.il>
References: <e92e98f8.0204262336.23cd3cde@posting.google.com>
I find it difficult to understand some details:
what version of DosFs are you using ?
how do you know there is an error in rename() if you do not check its return
value ?
Is the error message you see sometng like
    "User is not allowed to change to /image - returning to
:\vxWorks\target\MPC8240" ?
DosFs (any version) would never generate a message like that, so probably
you are using a different device than your Dos device, avoid this by using
absolute path names in every call.
WIll be glad to assist if you provide more details, or perhaps some
financial inscentive ... ;-)
Leonid Rosenboim
"Chaos" <yuzj@utstar.com> wrote in message
news:e92e98f8.0204262336.23cd3cde@posting.google.com...
> Hi,all,
>     I encountered a strange problem about rename() function. The
> vxWorks version is 5.4, running on MPC8240. The code like this:
>         if ((fd = open(newFile, O_WRONLY | O_CREAT, 0644)) != ERROR)
>         {
>             if (write(fd, buf, length) != length)
>             {
>                 close(fd);
>             return ERROR;
>             }
>
>             rename(fileName, oldFile);
>     close(fd);
>         }
>
> Where length==1951000 Bytes, fileName=="/image/img.Z",
> oldFile="/image/img.Z.old" and newFile="/image/img.Z.update".
>     An error ocuured while rename() executing:
> User is not allowed to change to /image - returning to
> E:\vxWorks\target\MPC8240
>
>     But if the length==1000000 bytes, the error will not occur.
>
> Could anyone help me?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: vxwoks ping problem ?
Date: Sat, 27 Apr 2002 15:55:59 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$a1k8vg$72d$1@lnews.actcom.co.il>
References: <b1cb4c43.0204270445.37f80ab7@posting.google.com>
The Intel 82557 driver in VxWorks in some of its versions
is know to have a bug that exhibits itself when transmitting
multiple packets in a short burst, which is what happens here,
the reply igets fragmented and send in a batch.
Get the latest FEI driver from WindRiver support, that is the
least they could do for the money you pay them.
"sardine" <sardine_sz@163.net> wrote in message
news:b1cb4c43.0204270445.37f80ab7@posting.google.com...
> hi vxworkers,
>    now my target with Intel82557 END,i found a problem,
>    if i ping the target from my PC, like this:
>        ping 172.0.0.110 -t
>      it's normal,
>    but,if i ping the target from my PC,like this:
>        ping 172.0.0.110 -t -l 2000
>      it's timeout  frequently ???
> ________________________________________________________
>    anyone can tell me why ????
>
> thx!!!
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Differences between ROM based and RAM based boot  image
Date: Sat, 27 Apr 2002 10:52:33 -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: <3ccae325$1@post.usenet.com>
References: <7da11b7d.0204261204.179c9947@posting.google.com>
Reply-To: "Vivek Kumar" <_REMOVE_ME_.vivek@.employees.org>
**** Post for FREE via your newsreader at post.usenet.com ****
One of the reasons this could be happening could be because your
applications
may be dependent on some initalizations your bootrom which may not be done
by your downloadable image.
- -vivek
- ---
Vivek Kumar
Embedded Systems Consultant
http://www.vivekkumar.net
"Raja" <amraja8@hotmail.com> wrote in message
news:7da11b7d.0204261204.179c9947@posting.google.com...
> Hi
>
> I am running my application by downloading over the ethernet to the
> target. It runs fine.
> Then I make a boot image "vxWorks.st_rom.hex" and I flash it on to the
> board.
> This image has my application also. But when it runs , it gives me an
> error message that says unable to initialize the PMC devices that are
> on a VME Board.
>
> PLease let me know if there are any ideas on pursuing how to fix this.
>
> I am using a VME board on which two PMC daughter board sare attached.
>
> Thanks in advance.
> Raja
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 *** 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: Re: On S_iosLib_INVALID_FILE_DESCRIPTOR
Date: 27 Apr 2002 12:30:25 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204271130.48a389c@posting.google.com>
References: <b35585ab.0204241846.51c04e7@posting.google.com> <Xns91FB66E6EA9C9borkhuisagerecom@135.7.153.102> <b35585ab.0204270529.ec4ef81@posting.google.com>
Hello,
When that error appears at boot time it normally suggests that the FTP
server is not configured correctly, or you are using the wrong
username/password in the bootline.
Try using another PC or Unix machine to ftp into your development
host:
ftp 192.168.10.199
When prompted, give it the username and password from your bootline.
If that is unsuccessful, check the user information for your ftp
server.
If it worked, try the following:
ftp> bin
ftp> get c:/temp/vxWorks.st
If that works too, then the problem is somewhere on the target. If
this does not work, again check the configuration of the ftp server to
see that the directory containing the file is allowed to be accessed
(most Windoze ftp servers have features to restrict which directories
can be accessed by the clients). Also make sure that the file exists
;-)
If you get this far, the next thing to do is to try seeing if there
are any packets sent from the target. You'll need a packet sniffer of
some sort for this - on a real OS (i.e. Unix) you'd be able to do this
easily, I don't know how to do it on Windoze, but I'm sure it must be
possible if you find the right utility (search the web for one, or
check in the archives for this group - somebody might have mentioned
one before).
Finally, are you sure about the interrupt and I/O address settings?
HTH,
John...
cozzy@263.net (yyzhong) wrote in message news:<b35585ab.0204270529.ec4ef81@posting.google.com>...
> Johan Borkhuis <borkhuis@agere.com> wrote in message news:
> > Please ignore the errno if you did not get a ERROR return code from a call.
> > The errno is only valid if you did get a ERROR return directly from a call,
> > and in that case you can look up the meaning of the code.
>
> But I encountered this kind of error again when I boot the target through ethernet .
> The prompt of target :
> "	Attached Tcp/IP interface to elt0
> 	Attached network interface lo0...done
> 	loading...
> 	Error loading file:errno=0xd0003
> 	[Vxworks Boot]:
> "
>
> The target is a x86 Pentium machine .
> The network card is 3COM 3C509.
> The wftpd32 is configed properly.
> All changes I made to the "config.h" are listed below :
>
> Replace:
> #elif	(CPU_VARIANT == PENTIUM)
> #define DEFAULT_BOOT_LINE \
> 	"fd=0,0(0,0)host:/fd0/vxWorks.st h=90.0.0.3 e=90.0.0.50 u=target"
>
> With:
> #elif	(CPU_VARIANT == PENTIUM)
> #define DEFAULT_BOOT_LINE \
> 	"elt(0,0)zhong:c:/temp/vxWorks.st h=192.168.10.199 e=192.168.10.22 u=tar pw=123"
>
> Replace:
> #undef	INCLUDE_ULTRA	/* include SMC Elite16 Ultra interface */
> #undef	INCLUDE_ENE		/* include Eagle/Novell NE2000 interface */
> #undef	INCLUDE_ELT		/* include 3COM EtherLink III interface */
> #undef	INCLUDE_ESMC	/* include SMC 91c9x Ethernet interface */
> #define	INCLUDE_FEI		/* include Intel Ether Express PRO100B PCI */
> #define     INCLUDE_SLIP	/* include serial line interface */
> #define     SLIP_TTY	1	/* serial line IP channel COM2 */
> #undef	INCLUDE_ELC		/* include SMC Elite16 interface */
> #undef	INCLUDE_EEX		/* include INTEL EtherExpress interface */
> #undef	INCLUDE_EEX32	/* include INTEL EtherExpress flash 32 */
> #undef	INCLUDE_EX		/* include Excelan Ethernet interface */
> #undef	INCLUDE_ENP		/* include CMC Ethernet interface*/
> #undef	INCLUDE_SM_NET	/* include backplane net interface */
> #undef	INCLUDE_SM_SEQ_ADDR  /* shared memory network auto address setup */
> #undef  INCLUDE_EL_3C90X_END    /* 3com fast etherLink XL PCI */
> #undef  INCLUDE_LN_97X_END      /* AMD 79C972 END DRIVER */
>
> With:
> #undef	INCLUDE_ULTRA		/* include SMC Elite16 Ultra interface */
> #undef	INCLUDE_ENE		/* include Eagle/Novell NE2000 interface */
> #define	INCLUDE_ELT		/* include 3COM EtherLink III interface */
> #undef	INCLUDE_ESMC		/* include SMC 91c9x Ethernet interface */
> #undef	INCLUDE_FEI		/* include Intel Ether Express PRO100B PCI */
> #undef  INCLUDE_SLIP		/* include serial line interface */
> #undef  SLIP_TTY	1	/* serial line IP channel COM2 */
> #undef	INCLUDE_ELC		/* include SMC Elite16 interface */
> #undef	INCLUDE_EEX		/* include INTEL EtherExpress interface */
> #undef	INCLUDE_EEX32		/* include INTEL EtherExpress flash 32 */
> #undef	INCLUDE_EX		/* include Excelan Ethernet interface */
> #undef	INCLUDE_ENP		/* include CMC Ethernet interface*/
> #undef	INCLUDE_SM_NET		/* include backplane net interface */
> #undef	INCLUDE_SM_SEQ_ADDR  /* shared memory network auto address setup */
> #undef  INCLUDE_EL_3C90X_END    /* 3com fast etherLink XL PCI */
> #undef  INCLUDE_LN_97X_END      /* AMD 79C972 END DRIVER */
>
> Replace:
> #define IO_ADRS_ELT	0x240
> #define INT_LVL_ELT	0x0b
> #define NRF_ELT		0x00
> #define CONFIG_ELT	0	/* 0=EEPROM 1=AUI  2=BNC  3=RJ45 */
>
> With:
> #define IO_ADRS_ELT	0x280
> #define INT_LVL_ELT	0x0a
> #define NRF_ELT		0x0f
> #define CONFIG_ELT	3	/* 0=EEPROM 1=AUI  2=BNC  3=RJ45 */
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Differences between ROM based and RAM based boot  image
Date: 27 Apr 2002 12:42:59 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204271142.2d3d2d74@posting.google.com>
References: <7da11b7d.0204261204.179c9947@posting.google.com>
Hello,
I would guess that your bootrom was doing some part of the PCI level
initialisation, either for the PMC cards themselves, or for a bridge
between the CPU and the card.
When you switched to the standalone image, you no longer had that
initialisation work being performed, and the cards are not
initialised.
Check the PCI init code you have in your standalone system.
HTH,
John...
amraja8@hotmail.com (Raja) wrote in message news:<7da11b7d.0204261204.179c9947@posting.google.com>...
> Hi
>
> I am running my application by downloading over the ethernet to the
> target. It runs fine.
> Then I make a boot image "vxWorks.st_rom.hex" and I flash it on to the
> board.
> This image has my application also. But when it runs , it gives me an
> error message that says unable to initialize the PMC devices that are
> on a VME Board.
>
> PLease let me know if there are any ideas on pursuing how to fix this.
>
> I am using a VME board on which two PMC daughter board sare attached.
>
> Thanks in advance.
> Raja
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Network boot problem
Date: 27 Apr 2002 12:55:28 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204271155.2b958211@posting.google.com>
References: <6046c736.0204270135.14dd5a20@posting.google.com>
Hello,
Which architecture are you using for your target? This type of
behaviour is common on architectures where you have to set the offset
parameter of the driver to be 2 to realign all the incoming packets
(check in the load string for this parameter).
Ping works because it just "reflects" the incoming packet straight
back out and doesn't attempt to decode the address information. Other
packets require the information to be decoded, and, because of the way
the header information is laid out, the addresses are not 32-bit
aligned. For CPUs that cannot access unaligned 32 bit words, this
causes a problem. For VxWorks, the solution is usually one of two
things (depending on what the controller chip will allow):
1) Shift the packet up two bytes when it is received
2) Adjust the buffer addresses to a 16 bit boundary that is not a 32
bit boundary.
Since you used an existing driver as a model, it might already have
the required offset code in it for (1) - check in the code. If not,
ask Wind River support for a newer version of the NE2000 code as the
version I have for AE contains it.
HTH,
John...
san_blabla@hotmail.com (San Blabla) wrote in message news:<6046c736.0204270135.14dd5a20@posting.google.com>...
> Hi, everyone:
>
> I modified a ethernet controler (Realtek 8019as) END(Enhanced Network
> Driver) driver on vxWorks, based on NE2000 END driver.
>
> The standalone boot image and net boot rom PINGs OK. But when the net
> boot rom trys to get the net boot system image from host, it fails.
> The logging message on the WFTPD is:
>
> Connection accepted from 192.168.0.211 (that's my target ip address)
> (after a very long time)
> QUIT or close-user loged out
>
> My network boot command line is:
>
> #define DEFAULT_BOOT_LINE \
> "rtl(0,0)host:vxWorks h=192.168.0.106 g=192.168.0.1 e=192.168.0.211
> u=user pw=password "
>
> Dose anybody know what my problem is? Thanks a lot.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: bootrom not loading kernel
Date: 27 Apr 2002 13:04:17 -0700
From: john_94501@yahoo.com (John)
Organization: http://groups.google.com/
Message-ID: <488e459a.0204271204.55113c1e@posting.google.com>
References: <3CC9DF96.621B2327@fnal.gov>
Hello,
Dinker Charak <dinker@fnal.gov> wrote in message news:<3CC9DF96.621B2327@fnal.gov>...
> Hi,
>
> I am working on a mv230x BSP. I created a boot.bin and flashed it using
> the ppcbug. I switched the jumper and vxWorks bootron boots up and I
> configure the parameters. But it gets stuck at
When you say stuck, do you mean that it hangs totally, or that it goes
nowhere but any characters typed at the console are echoed?
If it is the former, then something very odd is happening. If it is
the latter, then I suspect that you have one of the combinations of
driver and PPC board where things don't handle the negotiation
correctly. Unfortunately, the dc driver and the PPC boards changed so
often to keep track of new PHY devices and other small, but critical,
changes in the 21x4x chips that there are some combinations that cause
problems (a newer, or older, board might work perfectly with the same
code!).
Some things you can try:
1) Leave the board for a very long time and see if it boots in the end
2) Check the output from the board using a packet sniffer (e.g. snoop
on Solaris)
3) Try a different physical board if you have one, better still if it
is a different revision of the board.
4) Try connecting to a different type of hub/switch, especially one
that operates at a different speed and/or duplex setting.
In parallel with that, I would ask Wind River support for a new
version of the dc driver - it is frequently updated to keep track of
the latest changes in the boards :(
You might also want to have the exact revision of your board and the
exact member of the 21x4x family it uses handy when you call/email.
HTH,
John...
> Attached TCP/IP interface to dc0.
> Attaching network interface lo0... done.
> Loading...
>
> I did n dc
>
> [VxWorks Boot]: n dc
> Attaching network interface dc0... done.
> Error setting inet address of dc0 to 0, errno = 0
> Cannot initialize interface named "dc0"
>
> What could be wrong? I have INCLUDE_END defined in my config.h and
> conFigNet.h is also being included in the build. I had made minimal to
> no changes to BSP.
>
> I booted a board having other bootron.bin with same parameters to strike
> out network issues.
>
> Any hints?
>
> Thanks,
> Dinker
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: the value of IMMR in PPC860
Date: Sat, 27 Apr 2002 13:13:22 -0700
From: "Michael R. Kesti" <mkesti@gv.net>
Organization: MK Associates
Message-ID: <3CCB0662.94D2090C@gv.net>
References: <937a20a8.0204261835.3092b1@posting.google.com>
Reply-To: mkesti@gv.net
shy wrote:
>I am new in BSP , when I read the rominit.s,
>
>....
>        lis     r4, HIADJ( INTERNAL_MEM_MAP_ADDR)
>        addi    r4, r4, LO(INTERNAL_MEM_MAP_ADDR)
>        mtspr   IMMR, r4                /* initialize the IMMR register */
>......
>
>How to determine the value of INTERNAL_MEM_MAP_ADDR,here
>#define INTERNAL_MEM_MAP_ADDR           0x02200000
>
>I cannot get the value from the User Manual.
>
>can anyone help me with this?
INTERNAL_MEM_MAP_ADDR is typically defined in a BSP's "boardname.h" file.
It's value is a consequence of the hardware design, as it's location must
not overlap any external memory devices.
- --
========================================================================
          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: Problem about dosFs rename()
Date: Sat, 27 Apr 2002 23:53:15 +0000 (UTC)
From: "Franco Bassetti" <francobassetti@hotmail.com>
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <b25a2826d91f3f988d17fefaea08e151.37262@mygate.mailgate.org>
References: <e92e98f8.0204262336.23cd3cde@posting.google.com>
I think an error is:
dosFs has the 8.3 format for the files name,
8 characters for the name 3 characters for the extension.
So, the names img.Z.old and img.Z.update are not correct.
- --
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Problem about dosFs rename()
Date: 27 Apr 2002 20:32:08 -0700
From: yuzj@utstar.com (Chaos)
Organization: http://groups.google.com/
Message-ID: <e92e98f8.0204271932.38511b73@posting.google.com>
References: <e92e98f8.0204262336.23cd3cde@posting.google.com>
yuzj@utstar.com (Chaos) wrote in message news:<e92e98f8.0204262336.23cd3cde@posting.google.com>...
Hi,
   Sorry for the repeated posting and indistinct description. Here, I
would clarify something.
   The version of dosFs is 1.0. I have tracked this code in debug
mode. I set a breakpoint at flashFsBlkWrite() in my flash driver which
might be called in the I/O operation of dosFs. Then, I run the code
step by step. I saw the error message while executing rename() and the
execution did not reach the breakpoint. I checked the return value in
the original code, it returns ERROR indeed. But I didn't check the
errno.
   I mount the dosFs on the flash memory. I use the following code:
    DOS_VOL_CONFIG flashVolConfig;
    DOS_VOL_DESC  *  flashDosVolDesc;
    BLK_DEV flashBlkDev;
    flashBlkDev.bd_blkRd       = flashFsBlkRead;
    flashBlkDev.bd_blkWrt      = flashFsBlkWrite;
    flashBlkDev.bd_ioctl       = flashFsIoctl;
    flashBlkDev.bd_reset       = NULL;
    flashBlkDev.bd_statusChk   = NULL;
    flashBlkDev.bd_removable   = FALSE;
    flashBlkDev.bd_nBlocks     = flashFsTotalBlocks; /* 12*1024 */
    flashBlkDev.bd_bytesPerBlk = DOS_SECTOR_SIZE; /* 512 */
    flashBlkDev.bd_blksPerTrack= flashFsTotalBlocks; /* 12*1024 */
    flashBlkDev.bd_nHeads      = 1;
    flashBlkDev.bd_retry       = 1;
    flashBlkDev.bd_mode        = O_RDWR;
    flashBlkDev.bd_readyChanged= FALSE;
    flashDosVolDesc = dosFsDevInit("/image",
                                    &flashBlkDev,
                                    NULL);
    if (flashDosVolDesc == NULL) {
        flashFsBlkEraseAll();
        if (dosFsConfigInit(&flashVolConfig,
                            0xf8,        /* media byte			*/
                            1,       /* secPerCLuster		*/
                            1,       /* num of reserved sectors	*/
                            1,       /* num of FAT copies		*/
                            29,      /* Sectors per fat		*/
                            64,      /* max root entries		*/
                            0,       /* num hidden			*/
                            DOS_OPT_LONGNAMES | DOS_OPT_LOWERCASE) !=
OK) {
            return ERROR;
        } else {
            flashDosVolDesc = dosFsDevInit("/image",
                                            &flashBlkDev,
                                            &flashVolConfig);
        }
        if (flashDosVolDesc == NULL) {
            return ERROR;
        } else
            diskInit("/image");
    }
   This will be done in usrConfig.c.
   BTW, "E:\vxWorks\targe\config\MPC8240"(not
"E:\vxWorks\targe\MPC8240",sorry) is the directory where I built the
image.
---------------------------
Newsgroups: comp.os.vxworks
Subject: pciFindDevice issue about VIA VT82C686B IDE Controller
Date: 27 Apr 2002 21:02:19 -0700
From: ybz@poweron.com.cn (PaulDrew)
Organization: http://groups.google.com/
Message-ID: <33be4111.0204272002.48850a3b@posting.google.com>
I am using VIA south bridge VT82C686B in my system.  There are 7
"functions" implemented in the VT82C686B.  I meet with following
issues:
1) Using pciFindDevie() function, I can find 6 "functions" of
VT82C686B except "function 1" IDE Controller.
2) When I try to read one double word from PCI configuration space of
IDE controller function, the system is dead.
Do anybody have experience on VT82C686B?
Could any one give me some help or hints for these issues?
Thanks,
PaulDrew
---------------------------
Newsgroups: comp.os.vxworks
Subject: Any port of VxWorks to TI's OMAP1510?
Date: 27 Apr 2002 21:36:09 -0700
From: xgdong@linkair.com.cn (Docular Xu)
Organization: http://groups.google.com/
Message-ID: <72a8983.0204272036.17c55291@posting.google.com>
TI has announced its new OMAP1510 chip, which contains both C55x DSP
and ARM925 in one chip, to facilitate 3G multimedia mobile usage.
Is there any one who can tell me :
1)Is there BSP support for VxWorks running on OMAP1510?
2)If no such BSP package, how about the difficulties develop BSP for
OM
AP?
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Problem about dosFs rename()
Date: Sun, 28 Apr 2002 05:19:08 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$28l9vg$l7i$1@lnews.actcom.co.il>
References: <e92e98f8.0204262336.23cd3cde@posting.google.com> <e92e98f8.0204271932.38511b73@posting.google.com>
Indeed, if you use dosFs 1.0, the filenames are either dos-style 8.3 or
unix-style 40-char case sansitive.
In your case, you turned the unix-style names option on with
DOS_OPT_LONGNAMES
but  DOS_OPT_LOWERCASE is highly questionable, it either has no effect,
or is incompatible with the Unix-style names which are CASE-SENSITIVE.
Also, if your Flash driver is anything more then a Dumb block access driver,
i.e. if the driver is in fact capable of wear leveling and the like, it is
probably
aware of the filesystem structure, i.e. monitors the FAT and DIR structures
(as does TFFS), therefore is incomatible with the LONGNAMES option.
The DOS_OPT_LONGNAMES changes the directiry structure to a
proprietary format, not interchangable or compatible with anything
done by Microsoft. (this could be the cause of your problem).
Lastly, checking the value of <errno> when a system function retturns ERROR
should be allways the FIRST THING TO DO, before you summon the world
to your rescue.
"Chaos" <yuzj@utstar.com> wrote in message
news:e92e98f8.0204271932.38511b73@posting.google.com...
> yuzj@utstar.com (Chaos) wrote in message
news:<e92e98f8.0204262336.23cd3cde@posting.google.com>...
> Hi,
>    Sorry for the repeated posting and indistinct description. Here, I
> would clarify something.
>    The version of dosFs is 1.0. I have tracked this code in debug
> mode. I set a breakpoint at flashFsBlkWrite() in my flash driver which
> might be called in the I/O operation of dosFs. Then, I run the code
> step by step. I saw the error message while executing rename() and the
> execution did not reach the breakpoint. I checked the return value in
> the original code, it returns ERROR indeed. But I didn't check the
> errno.
>    I mount the dosFs on the flash memory. I use the following code:
>
>     DOS_VOL_CONFIG flashVolConfig;
>     DOS_VOL_DESC  *  flashDosVolDesc;
>     BLK_DEV flashBlkDev;
>     flashBlkDev.bd_blkRd       = flashFsBlkRead;
>     flashBlkDev.bd_blkWrt      = flashFsBlkWrite;
>     flashBlkDev.bd_ioctl       = flashFsIoctl;
>     flashBlkDev.bd_reset       = NULL;
>     flashBlkDev.bd_statusChk   = NULL;
>     flashBlkDev.bd_removable   = FALSE;
>     flashBlkDev.bd_nBlocks     = flashFsTotalBlocks; /* 12*1024 */
>     flashBlkDev.bd_bytesPerBlk = DOS_SECTOR_SIZE; /* 512 */
>     flashBlkDev.bd_blksPerTrack= flashFsTotalBlocks; /* 12*1024 */
>     flashBlkDev.bd_nHeads      = 1;
>     flashBlkDev.bd_retry       = 1;
>     flashBlkDev.bd_mode        = O_RDWR;
>     flashBlkDev.bd_readyChanged= FALSE;
>
>     flashDosVolDesc = dosFsDevInit("/image",
>                                     &flashBlkDev,
>                                     NULL);
>
>     if (flashDosVolDesc == NULL) {
>         flashFsBlkEraseAll();
>         if (dosFsConfigInit(&flashVolConfig,
>                             0xf8,        /* media byte */
>                             1,       /* secPerCLuster */
>                             1,       /* num of reserved sectors */
>                             1,       /* num of FAT copies */
>                             29,      /* Sectors per fat */
>                             64,      /* max root entries */
>                             0,       /* num hidden */
>                             DOS_OPT_LONGNAMES | DOS_OPT_LOWERCASE) !=
> OK) {
>             return ERROR;
>         } else {
>             flashDosVolDesc = dosFsDevInit("/image",
>                                             &flashBlkDev,
>                                             &flashVolConfig);
>         }
>         if (flashDosVolDesc == NULL) {
>             return ERROR;
>         } else
>             diskInit("/image");
>     }
>
>    This will be done in usrConfig.c.
>    BTW, "E:\vxWorks\targe\config\MPC8240"(not
> "E:\vxWorks\targe\MPC8240",sorry) is the directory where I built the
> image.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Redundant VxNetwork
Date: Sun, 28 Apr 2002 05:26:58 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$4ll9vg$v7i$1@lnews.actcom.co.il>
References: <74c2e5b4.0204260654.6e3c03ff@posting.google.com>
Ola Amigo,
I am reading your question through several times, and it does look
familiar - akin to people looking for the money they lost right under
the street light (as opposted to where they might have lost it).
You say you got 10-20 of these devices, which are connected to
a single Ethernet network, and that I assume to be cause of concern
because the single Ethernet segment (switch) is a single point of
failure - i.e. thje switch fails, your entire system is down.
The Ethernet cables on the other hand are hardly a problem, or the
NIC in each device - both the NIC and Cable have MTBF many orders
of magnitude better then the rest of your device and cheifly its software.
So what I would do iun your place, is buy a second switch, split the
"devices"
in two groups, each connected to a different switch, and the teo switches
connected with a trunk link (preferrably fiber), and each of the group,
including the group's switch, connected to a different power line (or
different UPS), as power failures account for over 80% down time
in most telecommunications systems.
This way, you eliminate the single point of failure, and if indeed something
fails, you will have half of the devices disables as a worst-case scenario.
Hope this helps,
    Leonid
"Ignacio Gonzlez T." <igtorque@yahoo.es> wrote in message
news:74c2e5b4.0204260654.6e3c03ff@posting.google.com...
> Dear VxNetworkers.
>
> We have made a device that runs over VxWorks 5.4.2. It has an Ethernet
> card, and a TCP/IP stack over it. This device is connected to
> identical devices over a closed Ethernet network (about ten or twenty
> devices.) It works.
>
> Now, we want this network to be redundant, in order to cope with
> broken wires, broken Ethernet controllers, and the like. We have the
> source code of the driver (CS8900, END) which at present time only
> supports one controller.
>
> Our approach is to have 2 physical different networks (2 sets of
> wires, hubs, etc.), and 2 Ethernet controllers per device, each
> connected to a different network. One network would be active; the
> other network would be dormant, and would become active only when some
> of the elements of the first network fails and is shut down (and this
> is detected, of course.)
>
> Now, what is possible, and if posible, what is faster to achieve with
> the VxWorks network ?
>
> 1) To have 2 different IP addresses per device (1 per network), each
> IP address being attached to a different Ethernet driver and
> controller, each with a different MAC address. The network switching
> would have to be above the TCP level (application programs.)
>
> 2) To have 1 IP address per device (1 per network), 2 Ethernet drivers
> and 2 different controllers, each one with its own MAC address. The
> TCP/IP stack would be attached to one of these drivers / controllers.
> The network switching would consist on dettaching the stack and
> reattaching it to the other driver / controller.
>
> 3) To have 1 IP address per device (1 per network), 1 Ethernet driver
> and 2 different controllers, each one with its own MAC address. The
> TCP/IP stack would be attached to the unique Ethernet drivers. The
> network switching would consist on reinitializing the Ethernet driver
> using a different controller (with a different MAC address.)
>
> 4) To have 1 IP address per device (1 per network), 1 Ethernet driver
> and 2 different controllerswith the same MAC address. The TCP/IP stack
> would be attached to the unique Ethernet drivers. The network
> switching would consist on reinitializing the Ethernet driver using a
> different controller but with the same MAC address.
---------------------------
Newsgroups: comp.os.linux.embedded,comp.os.vxworks
Subject: Re: porting from VxWorks to Linux (Monta Vista, or other)
Date: Sun, 28 Apr 2002 05:33:10 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$gvl9vg$18i$1@lnews.actcom.co.il>
References: <dd39f296.0204260059.756396e4@posting.google.com>
Sashok!
I do not expect WindRiver to be willing to actively support
an effort of abandoning their product - they barely cope
with supporting active users, mind you.
A very smart engineer, armed with a VxWorks Progremmers
Guide and Reference manuals, can easily acheive this,
by finding, inspecting and changing every aspect of the
applications interface with the Operating Systems,
beginning with the overall architecture of the software.
Another approach is to find a consultant or a consulting
company who are expert in porting. I know one such company
who have done dozens of porting from Unix (Linuix) to VxWorks,
and other peculiar porting efforts.
Its going to cost you in any case.
Leonid
"Alexander Sirotkin" <demiurg@tau.ac.il> wrote in message
news:dd39f296.0204260059.756396e4@posting.google.com...
> Hi.
>
> Is there any library, SDK, documentation or whatever regarding porting
> code from VxWorks to Linux ? It should not be extremely difficult, but
> I was wondering - since it's quite a common task nowdays, maybe
> someone wrote some kind of wrapper library or something to make it
> easier ?
---------------------------
Newsgroups: comp.os.vms,comp.os.vxworks
Subject: Re: Free XXX Screen Saver!  7938   [2/2]
Date: Sun, 28 Apr 2002 09:34:28 +0100
From: Jamie Stallwood <this.no.worky-try.sommat.else@project76.net>
Organization: Project 76
Message-ID: <6pcncugbcr87qa27fc7j6blnbhsdcs8ivn@4ax.com>
References: <8Isx8.28231$0x3.27946@atlpnn01.usenetserver.com> <aa6k03$6f6$1@newslocal.mitre.org>
Reply-To: this.no.worky-try.sommat.else@project76.net
On Wed, 24 Apr 2002 15:46:11 +0000 (UTC), sssslewis@spyder.mitre.org
(Keith A. Lewis) wrote:
>Looks like a Mickeysoft virus to me.  DON'T RUN IT.  Definitely too small to
>have more than 1 or 2 good porno images.  Here are some string excerpts from
>the .EXE file (it gets interesting in the middle, perhaps a fake chat).
>
Confirmed as VIRUS: Backdoor/Litmus.Gen
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Network boot problem
Date: 28 Apr 2002 03:36:37 -0700
From: san_blabla@hotmail.com (San Blabla)
Organization: http://groups.google.com/
Message-ID: <6046c736.0204280236.60716d48@posting.google.com>
References: <6046c736.0204270135.14dd5a20@posting.google.com> <488e459a.0204271155.2b958211@posting.google.com>
Hello, John
The architecture I am using now is MIPS, the END load string I use is
"0xBFA00600:0x15:0x7:0:1:2 ". The last one is for offset parameter. So
I guess I have already set offset to 2. I have also added some debug
messages and found after call my EndSend() driver function 2~3 times,
the up layer protocal will not call my EndSend() driver function any
more. As FTP server can accept the connection, I think maybe data send
is O.K., but data receive maybe wrong. Is there any difference in the
way data send and data receive treat data align?
Regards,
Blabla.
john_94501@yahoo.com (John) wrote in message news:<488e459a.0204271155.2b958211@posting.google.com>...
> Hello,
>
> Which architecture are you using for your target? This type of
> behaviour is common on architectures where you have to set the offset
> parameter of the driver to be 2 to realign all the incoming packets
> (check in the load string for this parameter).
>
> Ping works because it just "reflects" the incoming packet straight
> back out and doesn't attempt to decode the address information. Other
> packets require the information to be decoded, and, because of the way
> the header information is laid out, the addresses are not 32-bit
> aligned. For CPUs that cannot access unaligned 32 bit words, this
> causes a problem. For VxWorks, the solution is usually one of two
> things (depending on what the controller chip will allow):
>
> 1) Shift the packet up two bytes when it is received
>
> 2) Adjust the buffer addresses to a 16 bit boundary that is not a 32
> bit boundary.
>
> Since you used an existing driver as a model, it might already have
> the required offset code in it for (1) - check in the code. If not,
> ask Wind River support for a newer version of the NE2000 code as the
> version I have for AE contains it.
>
> HTH,
>
> John...
>
> san_blabla@hotmail.com (San Blabla) wrote in message news:<6046c736.0204270135.14dd5a20@posting.google.com>...
> > Hi, everyone:
> >
> > I modified a ethernet controler (Realtek 8019as) END(Enhanced Network
> > Driver) driver on vxWorks, based on NE2000 END driver.
> >
> > The standalone boot image and net boot rom PINGs OK. But when the net
> > boot rom trys to get the net boot system image from host, it fails.
> > The logging message on the WFTPD is:
> >
> > Connection accepted from 192.168.0.211 (that's my target ip address)
> > (after a very long time)
> > QUIT or close-user loged out
> >
> > My network boot command line is:
> >
> > #define DEFAULT_BOOT_LINE \
> > "rtl(0,0)host:vxWorks h=192.168.0.106 g=192.168.0.1 e=192.168.0.211
> > u=user pw=password "
> >
> > Dose anybody know what my problem is? Thanks a lot.
---------------------------
End of New-News digest
**********************
From vxwexplo-errs@csg.lbl.gov  Mon Apr 29 04:03:11 2002
From: Vxworks Exploder <vx_explo@csg.lbl.gov>
Date: Mon Apr 29 04:03:13 PDT 2002
Subject: comp.os.vxworks newsdigest
Comp.Os.Vxworks Daily Digest    Mon Apr 29 04:03:07 PDT 2002
        Subject: Re: porting from VxWorks to Linux (Monta Vista, or other)
        Subject: Re: END_ERR_BLOCK / muxTxRestart (race?)
        Subject: affordable vxworks training
        Subject: Re: affordable vxworks training
        Subject: Re: Problem about dosFs rename()
        Subject: Re: dosFs2: lower case directory name handling
        Subject: Re: Problem about dosFs rename()
        Subject: Re: affordable vxworks training
        Subject: Re: bootrom not loading kernel
        Subject: Re: Any port of VxWorks to TI's OMAP1510?
        Subject: Re: PCI-to-PCI bridge x86
        Subject: Re: unable to add equal cost routes
        Subject: Re: On S_iosLib_INVALID_FILE_DESCRIPTOR
        Subject: Re: How do you call GNU make recursively on Win32 host
        Subject: Create dosFS partition dinamically
-------------------------------------------------------
Newsgroups: comp.os.linux.embedded,comp.os.vxworks
Subject: Re: porting from VxWorks to Linux (Monta Vista, or other)
Date: Sun, 28 Apr 2002 14:19:47 GMT
From: mmporter@liberty.homelinux.org (Matt Porter)
Organization: Cox Communications
Message-ID: <slrnaco1ml.dnf.mmporter@liberty.homelinux.org>
References: <dd39f296.0204260059.756396e4@posting.google.com>
Reply-To: mporter@mvista.com
On 26 Apr 2002 01:59:04 -0700, Alexander Sirotkin <demiurg@tau.ac.il> wrote:
>Is there any library, SDK, documentation or whatever regarding porting
>code from VxWorks to Linux ? It should not be extremely difficult, but
>I was wondering - since it's quite a common task nowdays, maybe
>someone wrote some kind of wrapper library or something to make it
>easier ?
http://legacy2linux.sourceforge.net/
There is also a white paper at http://www.mvista.com/legacy
Regards,
- --
Matt Porter
MontaVista Software, Inc.
mporter@mvista.com
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: END_ERR_BLOCK / muxTxRestart (race?)
Date: Sun, 28 Apr 2002 20:49:40 +0200
From: "John Mackenzie" <John.A.Mackenzie@t-online.de>
Organization: T-Online
Message-ID: <aahgaf$ljs$03$1@news.t-online.com>
References: <ucfnun1d7982d4@corp.supernews.com> <3CC7E94D.8070409@spamm.me.l8s.co.uk>
Hi,
    I have also recently developed an END driver and
    I came across exactly this race condition. What I
    did to try and fix it was add the roughly the
    pseudo-code:
     nptSend()
                getTxMutex;
                blockedFlag=true;
                       if(resources)
                             blockedFlag=false
                             return END_OK
                       else
                              return END_ERR_BLOCK
                releaseTxMutex
      nptISR()
                if(restartInterrupt)
                       if(blockedFlag)
                              muxTkRestart
                               blockedFlag = false
   The trick is to set the flag to true before checking for
   resources.
    A spurios call to muxTkRestart should not cause a
    problem - the IP stack will simply try to flush its
    interface queue. However by setting the blocked
    flag before every send I avoid he case where the
    ISR is called before the driver has set the blocked
    flag.
       If this situation does occure then it is not too
    bad as the current packet will wait on the interface
    queue but the next one that comes will try and
    flush the queue. The IP stack does not keep a
    blocked variable and tries to send to the driver
    every time.
     This is a slightly different race condition to what
    you discuss. In my case - I am avoiding that the
    ISR is called before I get a chance to set the
     flag blocked flag to true i.e. I avoid that muxTkRestart
    does not get called.
    I think even in my code your race condition still exists
    but I do not think it will do any harm i.e. I do not think
    your driver will lock up. Imprtant is that the network
    layer calls nptSend for every packet and does not
    stored the "blocked state". The muxTkRestart is
    just use to send any packets on the interface queue.
    Intersting problem - you mail has made me want to
    go and check my code!
            Regards,
                    John
"David Laight" <david@spamm.me.l8s.co.uk> schrieb im Newsbeitrag
news:3CC7E94D.8070409@spamm.me.l8s.co.uk...
> > Now for the question. There looks like a race condition on
foo->txBlocked.
> > If an interrupt happens between txBlocked being set to TRUE, but before
> > the _Send returns, the transmit queue could stall. This of course
depends
> > on when the netTask runs the muxTxRestart().
> >
> > Is this really a race? Or does vxWorks ensure that the _Send() will
> > complete (and return END_ERR_BLOCK) _before_ the muxTxRestart() happens?
>
>
> I'm not sure returning END_ERR_BLOCK is correct (but haven't checked any
> code).  The sample END driver I had definitely didn't do the right
> thing.  OTOH the timing window is there if the return value of _send
> is used to turn off the upper transmitters.
>
>
> >
> > If there is a race, how is this solved in other drivers?
>
> I'd guess they lock up occaisionally :-)
> Some of them just lose the tx buffers and run out of buffer space.
>
> I solved the problem by accepting the packets into the END driver
> (letting the upper end recover from lack of buffers).  If packets
> weren't being transmitted (ie no progress for 10 seconds) I free
> all the queued packets (and reset the MAC engine).
>
> Removes all those timing problems and probably gives better
> throughput......
>
> David
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: affordable vxworks training
Date: Sun, 28 Apr 2002 20:14:00 GMT
From: "D. David Pirzadeh" <ddp@sonic.net>
Message-ID: <cKYy8.550$lX2.3728@typhoon.sonic.net>
What would be the most affordbable, quick way to get
vxworks education.
If you can also email me at ddp@sonic.net it would be appreciated
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: affordable vxworks training
Date: Sun, 28 Apr 2002 16:36:08 -0400
From: joe durusau <durusau@bellsouth.net>
Organization: Bellsouth.Net
Message-ID: <3CCC5D38.C9FF67B8@bellsouth.net>
References: <cKYy8.550$lX2.3728@typhoon.sonic.net>
"D. David Pirzadeh" wrote:
> What would be the most affordbable, quick way to get
> vxworks education.
>
> If you can also email me at ddp@sonic.net it would be appreciated
Download the freebee simulator from the web and flail away.
(I didn't say anything about a GOOD education)!!
Speaking only for myself,
Joe Durusau
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Problem about dosFs rename()
Date: 28 Apr 2002 23:31:03 -0700
From: yuzj@utstar.com (Chaos)
Organization: http://groups.google.com/
Message-ID: <e92e98f8.0204282231.5aee00ea@posting.google.com>
References: <e92e98f8.0204262336.23cd3cde@posting.google.com> <e92e98f8.0204271932.38511b73@posting.google.com> <newscache$28l9vg$l7i$1@lnews.actcom.co.il>
Leonid,
   Thanks for your ardour and kindly remind. I'll remember it.
   It seems that I have found out the cause. In my code, there are
some lines:
    ...
    flashBlkDev.bd_nBlocks     = flashFsTotalBlocks; /* 12*1024 */
    ...
    if (dosFsConfigInit(&flashVolConfig,
                            0xf8,        /* media byte			*/
                            1,       /* secPerCLuster		*/
                            1,       /* num of reserved sectors	*/
                            1,       /* num of FAT copies		*/
                            29,      /* Sectors per fat		*/
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                            64,      /* max root entries		*/
                            0,       /* num hidden			*/
                            DOS_OPT_LONGNAMES | DOS_OPT_LOWERCASE) !=
NULL)
    ....
    The sixth parameter in dosFsConfigInit() should be attended. It
means sectors per fat. Here I passed 29. As we known, dosFs 1.0 use 12
bits to identify one cluster. One sector can represent 341(512/1.5)
clusters. In my dos file system, there are total 12*1024 clusters. So
it needs 36(12*1024/(512/1.5)) sectors per fat. In this instance, the
sectors for one fat are insufficient. If there already has some large
files in the file system, the error should probably occur while
writing a large file to file system. I enlarged the sixth parameter
from 29 to 40, it seems ok(I havn't seen the error message late).
    I believe that this is the cause causes the problem I mentioned
before. But I am puzzled why it doesn't return ERROR when call
dosFsDevInit() with inconsistent parameters. It seems that
dosFsDevInit() doesn't check the parameters. Is this a bug?
"Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message news:<newscache$28l9vg$l7i$1@lnews.actcom.co.il>...
> Indeed, if you use dosFs 1.0, the filenames are either dos-style 8.3 or
> unix-style 40-char case sansitive.
> In your case, you turned the unix-style names option on with
> DOS_OPT_LONGNAMES
> but  DOS_OPT_LOWERCASE is highly questionable, it either has no effect,
> or is incompatible with the Unix-style names which are CASE-SENSITIVE.
>
> Also, if your Flash driver is anything more then a Dumb block access driver,
> i.e. if the driver is in fact capable of wear leveling and the like, it is
> probably
> aware of the filesystem structure, i.e. monitors the FAT and DIR structures
> (as does TFFS), therefore is incomatible with the LONGNAMES option.
> The DOS_OPT_LONGNAMES changes the directiry structure to a
> proprietary format, not interchangable or compatible with anything
> done by Microsoft. (this could be the cause of your problem).
>
> Lastly, checking the value of <errno> when a system function retturns ERROR
> should be allways the FIRST THING TO DO, before you summon the world
> to your rescue.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: dosFs2: lower case directory name handling
Date: 29 Apr 2002 00:33:51 -0700
From: hans.vermeersch@protronic.com (Hans Vermeersch)
Organization: http://groups.google.com/
Message-ID: <fcb7d817.0204282333.6fa60f69@posting.google.com>
References: <3CC4799C.5090609@nospam.icon-labs.com> <newscache$qj16vg$nw8$1@lnews.actcom.co.il>
> > Since there appear to be some dosFs2 experts here, (Leonid
> > Rosenboim?) I thought I'd post something I discovered recently
> > while trying to fix some problems with dosFs2.
> >
> > Format a CompactFlash card on Windows (FAT) and create a directory
> > off of the root directory, call it "cfg".  From what I understand,
> > the actual on-disk directory entry would be "CFG".
> >
> > Now, boot under vxWorks with dosFs2.  Sure enough, when I do a
> > directory listing of the root of the CF device under vxWorks
> > (/dev/ata0a), I see "CFG", as other posts have indicated.
> >
> > Now, if you try and fopen a file called "cfg/config.dat", this
> > will FAIL.
> >
> > Now, if you try and fopen a file called "CFg/config.dat", this
> > will WORK.
> >
> > However, if you use vxWorks and rename the directory to "cfg",
> > then fopen "cfg/config.dat", this works.
> >
> > Trying to open a file "config.dat", in the current working
> > directory, regardless of case (of the string passed to fopen
> > or what's on the disk) works ALL the time.  As expected.
> >
> > I was under the impression that the filesystem should be case
> > insensative, but it appears this is not the case for directories?
> > Is this a bug, or am I not understanding how this is supposed to
> > work?
> >
> > I added code to automatically rename the directory "CFG" to "cfg",
> > and it's avoiding this problem, but it's obviously not a great
> > solution.
> >
> > Thanks,
> > Pete Flugstad
> >
Pete,
This is a possible work-around for this problem :
1. If you format your CF card on a pc with Win98 or Windows Me with
the FAT file system, then there seems to be no problem with
upper/lower case.
If you create then a directory "cfg" on your CF card attached to the
pc, you will read this same directory with DosFs2 as "cfg".
2. If possible, reformat the complete CF card with the DosFs2 FAT16
file system *BEFORE* using it on a Windows pc.
        dosFsVolFormat("/cf0/", DOS_OPT_BLANK , 0);
After this formatting we have the impression that one can exchange
files and directories between DosFs2 and Windows without losing
upper/lower case.
regards,
Hans Vermeersch
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: Problem about dosFs rename()
Date: Mon, 29 Apr 2002 07:40:04 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$bfmbvg$xvk$1@lnews.actcom.co.il>
References: <e92e98f8.0204262336.23cd3cde@posting.google.com> <e92e98f8.0204271932.38511b73@posting.google.com> <newscache$28l9vg$l7i$1@lnews.actcom.co.il> <e92e98f8.0204282231.5aee00ea@posting.google.com>
Congrats for finding the bug - these paramrs where in front of my eyes,
and it did not cross my mind to do the math and check them. Sorry.
Now here is one point I feel important to mention - DosFs 1.0 supports
FAT12 and FAT16, the former can handle up to 2^12 (that's 4096) clusters,
and later can do up to 2^16 clusters.
You can decide for yourself if you prefer a smaller FAT12 at the price
of larger cluster (more per-file wasted space) or vice versa, but if you
freely make these decisions, do not expect the file system to interchange
with anything from Microsoft, their implementations have all sorts of
restrictions.
Now back to your case, 12K sectors, 6MBytes is what I assume your disk
size is. and 12*1024 clusters won't fit into a 12-bit entry, so here are a
few
options that I think should work for you:
FAT    secPerClust    #clust        secsPerFat
16        1                   12K              48
16        2                     6K              24
12        3                     4K              12
Anything else, including the setup you claim is working, will cause
problems...
I agree with you however that DosFs should check the validity of
these parameters, but DosFs 1.0 does not, and I think that is bad.
Therefore, in DosFs 2.0 I have designed a completely different
approach and API for allowing users control the geometry of the
file system being formatted - in DosFs 2.0 the user can decide
which size of FAT entry to use - i.e. FAT12, FAT16 or FAT32;
and the critical parameters such as secPerFat is calculated
automatically. Still, after the user has a chanse to change any
of the parameters, DosFs 2.0- formatting module wouyld check
and possibly make corrections to the settings. It would rather
make sure there is a working file system and not return an error
message to the user and abort (aka. constructive criticism).
We can bitch endlessly about the drawbacks in DosFs 1.0 or we
can switch to DosFs 2.0, whatever's your fancy ;-))
    - Leonid
"Chaos" <yuzj@utstar.com> wrote in message
news:e92e98f8.0204282231.5aee00ea@posting.google.com...
> Leonid,
>    Thanks for your ardour and kindly remind. I'll remember it.
>
>    It seems that I have found out the cause. In my code, there are
> some lines:
>
>     ...
>     flashBlkDev.bd_nBlocks     = flashFsTotalBlocks; /* 12*1024 */
>     ...
>     if (dosFsConfigInit(&flashVolConfig,
>                             0xf8,        /* media byte */
>                             1,       /* secPerCLuster */
>                             1,       /* num of reserved sectors */
>                             1,       /* num of FAT copies */
>                             29,      /* Sectors per fat */
>                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>                             64,      /* max root entries */
>                             0,       /* num hidden */
>                             DOS_OPT_LONGNAMES | DOS_OPT_LOWERCASE) !=
> NULL)
>     ....
>     The sixth parameter in dosFsConfigInit() should be attended. It
> means sectors per fat. Here I passed 29. As we known, dosFs 1.0 use 12
> bits to identify one cluster. One sector can represent 341(512/1.5)
> clusters. In my dos file system, there are total 12*1024 clusters. So
> it needs 36(12*1024/(512/1.5)) sectors per fat. In this instance, the
> sectors for one fat are insufficient. If there already has some large
> files in the file system, the error should probably occur while
> writing a large file to file system. I enlarged the sixth parameter
> from 29 to 40, it seems ok(I havn't seen the error message late).
>     I believe that this is the cause causes the problem I mentioned
> before. But I am puzzled why it doesn't return ERROR when call
> dosFsDevInit() with inconsistent parameters. It seems that
> dosFsDevInit() doesn't check the parameters. Is this a bug?
>
>
> "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com> wrote in message
news:<newscache$28l9vg$l7i$1@lnews.actcom.co.il>...
> > Indeed, if you use dosFs 1.0, the filenames are either dos-style 8.3 or
> > unix-style 40-char case sansitive.
> > In your case, you turned the unix-style names option on with
> > DOS_OPT_LONGNAMES
> > but  DOS_OPT_LOWERCASE is highly questionable, it either has no effect,
> > or is incompatible with the Unix-style names which are CASE-SENSITIVE.
> >
> > Also, if your Flash driver is anything more then a Dumb block access
driver,
> > i.e. if the driver is in fact capable of wear leveling and the like, it
is
> > probably
> > aware of the filesystem structure, i.e. monitors the FAT and DIR
structures
> > (as does TFFS), therefore is incomatible with the LONGNAMES option.
> > The DOS_OPT_LONGNAMES changes the directiry structure to a
> > proprietary format, not interchangable or compatible with anything
> > done by Microsoft. (this could be the cause of your problem).
> >
> > Lastly, checking the value of <errno> when a system function retturns
ERROR
> > should be allways the FIRST THING TO DO, before you summon the world
> > to your rescue.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: affordable vxworks training
Date: Mon, 29 Apr 2002 07:45:08 GMT
From: "Leonid Rosenboim" <Dont_Spam_Leonid@Consultant.com>
Organization: Verio
Message-ID: <newscache$qnmbvg$yvk$1@lnews.actcom.co.il>
References: <cKYy8.550$lX2.3728@typhoon.sonic.net>
VxWorks training from WindRiver is quite expensive, although
if you buy a license, you can usually get a few people into training for
free.
I am not aware of any freelancers doing VxWorks training, but if they
did that, using Wind River's slide, they would need to pay WindRiver
such a high royalty price, that the thing would be still quite expensive.
As a WindRiver distributor in Israel, I have done many such training
courses,
and paid WRS their due, and turned out that if it was my decision,
WRS should be giving these workshops for free - it turns out to be
one of their best sales tools. You get some people hooked onto VxWorks,
and they keep buying it everytime they go in to a new start-up.
That is assuming the instructor was good ... ;-)
    - Leonid Rosenboim
"D. David Pirzadeh" <ddp@sonic.net> wrote in message
news:cKYy8.550$lX2.3728@typhoon.sonic.net...
> What would be the most affordbable, quick way to get
> vxworks education.
>
> If you can also email me at ddp@sonic.net it would be appreciated
>
>
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: bootrom not loading kernel
Date: 29 Apr 2002 08:51:30 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91FF6E7C24546borkhuisagerecom@135.7.153.102>
References: <3CC9DF96.621B2327@fnal.gov>
Dinker Charak <dinker@fnal.gov> wrote:
> [VxWorks Boot]: n dc
> Attaching network interface dc0... done.
> Error setting inet address of dc0 to 0, errno = 0
> Cannot initialize interface named "dc0"
Just a quick suggestion (I don't have a board available at this moment):
The error says "Error settint inet addr to 0": did you set a network
address in the boot parameters?
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: Any port of VxWorks to TI's OMAP1510?
Date: 29 Apr 2002 08:55:28 GMT
From: Johan Borkhuis <borkhuis@agere.com>
Organization: Agere Systems
Message-ID: <Xns91FF6F2893DE4borkhuisagerecom@135.7.153.102>
References: <72a8983.0204272036.17c55291@posting.google.com>
xgdong@linkair.com.cn (Docular Xu) wrote:
> TI has announced its new OMAP1510 chip, which contains both C55x DSP
> and ARM925 in one chip, to facilitate 3G multimedia mobile usage.
>
> Is there any one who can tell me :
> 1)Is there BSP support for VxWorks running on OMAP1510?
> 2)If no such BSP package, how about the difficulties develop BSP for
> OM AP?
The best way to get this kind of information is asking WindRiver support
(or ask your FAE, this usually works better) or ask TI. They are working
together with WindRiver, so probably there is some kind of support at TI
for VxWorks.
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: PCI-to-PCI bridge x86
Date: Mon, 29 Apr 2002 11:37:39 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3ccd145d$1@brateggebdc5.br-automation.co.at>
References: <pan.2002.04.23.14.25.05.929147.21899@systran.com> <pan.2002.04.25.19.22.58.829971.1126@systran.com> <3CC8E942.5B1E@despam.autobahn.mb.ca> <pan.2002.04.26.13.33.58.364938.1005@systran.com> <3CC99E3A.720F@despam.autobahn.mb.ca>
Hi,
"H. E. Taylor" <het@despam.autobahn.mb.ca> wrote in message
news:3CC99E3A.720F@despam.autobahn.mb.ca...
... snip ...
>
> Ummm.  I'm not sure we're copacetic here.  Because you are
> talking x86, I assume you are in some PC compatible hardware, yes?
> If this is so, the PC-BIOS has code which does the initial PCI bus
> scan and sets up the configuration space registers (of all devices)
> and bridges.  Which PC-BIOS are you using?
> Then VxWorks starts and the pciLib sets itself up, but doesn't
> modify the config registers.  [Caveat:  That's how it was in 5.3.1.
> I haven't used 5.4 or AE.  Which version are you running?]
>
> This is a long shot, but do you notice a difference in behaviour
> if you do a cold reboot versus a warm restart once the system is
> already up?  There may be timing initialization issues.
>
Be sure that you have 'Plug and Play OS installed' or similar option of your
BIOS _dis_abled!
If this option is enabled, the BIOS will only setup devices required for
booting (disk controller, graphics controller, keyboard).
If it is disabled, as suggested, most BIOS will setup all devices it can
possibly.
hth
Werner
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: unable to add equal cost routes
Date: 29 Apr 2002 02:49:12 -0700
From: sai_dattathrani@infy.com (sai)
Organization: http://groups.google.com/
Message-ID: <8dff11cd.0204290149.6ea14e19@posting.google.com>
References: <8dff11cd.0204212008.6d401648@posting.google.com> <o87y8.14293$br1.845747@news.bora.net>
Hi,
 I tried mrouteAdd(), it accepts destinations with different mask, but
does not accept same destination, same network mask and different
gateway. It overwrites the previous entry for same detsination & mask.
rgds
sai
"Jay Lee" <belecs@lge.com> wrote in message news:<o87y8.14293$br1.845747@news.bora.net>...
> Hi?
>
> Why don't you use mRouteAdd()?
> Please refer the VxWorks Reference Manual or Tornado 2.0 Online Manual...
> Good luck...
>
>
> --
> ===========================================================
> Jay Lee
>
> "sai" <sai_dattathrani@infy.com> wrote in message
> news:8dff11cd.0204212008.6d401648@posting.google.com...
> > Hi,
> >
> >  I tried adding routes to same destination with different gateway. But
> > VxWorks does not seem to accept.
> >
> > If I try to add route to destination 50.0.0.0 as below
> > Destination  Gateway
> > 50.0.0.0     90.0.0.1
> > 50.0.0.0     90.0.0.3
> >
> > Tried adding using RouteAdd() function provided by VxWorks and routing
> > socket, the second route is not added to the kernel. Routing socket
> > returns (File exist - EEXIST) error.
> >
> >  could someone please help me solve this problem.
> > rgds
> > sai
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: On S_iosLib_INVALID_FILE_DESCRIPTOR
Date: Mon, 29 Apr 2002 11:42:05 +0200
From: "Werner Schiendl" <ws-news@gmx.at>
Message-ID: <3ccd1567$1@brateggebdc5.br-automation.co.at>
References: <b35585ab.0204241846.51c04e7@posting.google.com> <Xns91FB66E6EA9C9borkhuisagerecom@135.7.153.102> <b35585ab.0204270529.ec4ef81@posting.google.com>
Hi,
have you disbled Plug&Play on your 3c509?
A tool for that can be downloaded from 3com website (I think it was part of
the full driver package).
It is _not_ sufficient to set the used IRQ and IO addresses for VxWorks.
The driver will _not_ work unless the Plug&Play is disabled with that tool.
VxWorks makes no mention, however, that something with initializing the
network board went wrong.
So your error could be caused by this.
(All information applies to VxWorks 5.4)
hth
Werner
"yyzhong" <cozzy@263.net> wrote in message
news:b35585ab.0204270529.ec4ef81@posting.google.com...
> Johan Borkhuis <borkhuis@agere.com> wrote in message news:
> > Please ignore the errno if you did not get a ERROR return code from a
call.
> > The errno is only valid if you did get a ERROR return directly from a
call,
> > and in that case you can look up the meaning of the code.
>
> But I encountered this kind of error again when I boot the target through
ethernet .
> The prompt of target :
> " Attached Tcp/IP interface to elt0
> Attached network interface lo0...done
> loading...
> Error loading file:errno=0xd0003
> [Vxworks Boot]:
> "
>
> The target is a x86 Pentium machine .
> The network card is 3COM 3C509.
> The wftpd32 is configed properly.
> All changes I made to the "config.h" are listed below :
>
- --- snip ---
---------------------------
Newsgroups: comp.os.vxworks
Subject: Re: How do you call GNU make recursively on Win32 host
Date: Mon, 29 Apr 2002 09:43:05 +0100
From: "Dave Korn" <no.spam@my.mailbox.invalid>
Organization: Lumber Cartel (tinlc) Members #2234-2237 (owing to browser refresh)
Message-ID: <U59z8.191$Bb2.298382@newsr2.u-net.net>
References: <3CC49F68.D1EFFC2D@bitworkssystemsRemovThis.com> <3CC4A990.596131FC@bitworkssystemsRemovThis.com>
"Jon Newbill" <JonUn@bitworkssystemsRemovThis.com> wrote in message
news:3CC4A990.596131FC@bitworkssystemsRemovThis.com...
> I found the solution.   Use -C option instead
>
> subsystem:
>     $(MAKE) -C subdir
>
> Jon Newbill
>
  I use && a lot in makefile commands.  Here's how I build libjpeg in a
subdirectory and copy the resulting .a back to the parent project directory:
libjpeg.o : alwaystarget
 cd libjpeg && $(MAKE) && copy libjpeg.a .. && cd ..
#
# Dummy target for things that need doing always:
#
alwaystarget:
  In theory, && should work on either *nix or NT.
        DaveK
- --
moderator of
alt.talk.rec.soc.biz.news.comp.humanities.meow.misc.moderated.meow
Burn your ID card!  http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!
Proud Member of the Exclusive "I have been plonked by Davee because he
thinks I'm interesting" List Member #<insert number here>
Master of Many Meowing Minions
Holder of the exhalted PF Chang's Crab Wonton Award for kook spankage above
and beyond the call of hilarity.
---------------------------
Newsgroups: comp.os.vxworks
Subject: Create dosFS partition dinamically
Date: Mon, 29 Apr 2002 11:01:42 GMT
From: "Tri VU KHAC \(Sony\)" <tri.vukhac@sonycom.com>
Organization: KPNQwest customer news service
Message-ID: <qK9z8.41$Pm2.1173@nreader2.kpnqwest.net>
Hi folks,
I am concerned about dosFS with the removable medium devices. Let's examine
an example:
+I mount first a medium which contains a Master Boot Record (MBR) at the
sector 0 and one DOS partition. Then, I remove the medium and replace it by
another medium which does not have MBR, but Boot Partition Record (BPR) of
DOS at the sector 0.
My question is: how does dosFSLib manage this scenario?
Thank you for your helps.
Tri.
---------------------------
End of New-News digest
**********************