From vxwexplo-errs@csg.lbl.gov Wed May 1 04:03:16 2002 From: Vxworks Exploder Date: Wed May 1 04:03:19 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Wed May 1 04:03:12 PDT 2002 Subject: Re: Create dosFS partition dinamically Subject: Boot vxWorks with different ethernet drivers Subject: Re: unable to add equal cost routes Subject: Re: PCI-to-PCI bridge x86 Subject: How to reduce the size of ENVOY SNMP module Subject: VxWorks Vs other embedded OSs Subject: convert vxworks_rom.hex Subject: Re: convert vxworks_rom.hex Subject: Re: VxWorks Vs other embedded OSs Subject: Re: VxWorks Vs other embedded OSs Subject: file upload Subject: Re: VxWorks Vs other embedded OSs Subject: Re: VxWorks Vs other embedded OSs Subject: Lightweight heap monitor for VxWorks 5.4 / Tornado 2.0 Subject: Re: INCLUDE_SNMP Subject: Re: Porting code from BSD to Vxworks Subject: Envoy version in WindNet SNMP Subject: Re: Lightweight heap monitor for VxWorks 5.4 / Tornado 2.0 Subject: Re: affordable vxworks training Subject: How reliable is routeLib in Vxworks Sim? Subject: resourses for realtime Subject: Re: Does windml 2.0 font library support japanese and chinese fonts Subject: Re: VxWorks Vs other embedded OSs Subject: Re: PCI-to-PCI bridge x86 Subject: Re: file upload Subject: Tornado trees and version control Subject: deleting netPools created through netBufLib Subject: Re: VxWorks Vs other embedded OSs Subject: Re: resourses for realtime Subject: #ifdef question Subject: Re: deleting netPools created through netBufLib Subject: Re: #ifdef question Subject: Re: #ifdef question ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: Create dosFS partition dinamically Date: Mon, 29 Apr 2002 15:56:05 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: Set the global variable dpartDebug to "1" and do the disk insertion removal, insert disk, access it (e.g. do "ls"), remove it, and repeat this with another disk. The debug mesages should pretty clearly show what is happening. - - Leonid Rosenboim P.S. Iit seems you are not getting your money's worth for WindRiver support, questions like this even first tier support engineers used to be able to answer. "Tri VU KHAC (Sony)" wrote in message news: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. > > --------------------------- Newsgroups: comp.os.vxworks Subject: Boot vxWorks with different ethernet drivers Date: 29 Apr 2002 09:01:25 -0700 From: san_blabla@hotmail.com (San Blabla) Organization: http://groups.google.com/ Message-ID: <6046c736.0204290801.4047b231@posting.google.com> Hi, We have two ethernet END drivers for two different controlers, but only one controler can be attached to the board at a time. We want to build a single system image that could dynamicaly use the right kind of ethernet controler driver depending on which hardware is realy attached to our board (both in standalone boot mode and network boot mode). In configNet.h, I add both of them to END driver table, but as the boot command line in config.h need to specify the boot up network device, how can I set the boot command line to let the system choose the right driver that uses what is really attached to the board. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: unable to add equal cost routes Date: 29 Apr 2002 10:49:14 -0700 From: vividh@hotmail.com (rasayani) Organization: http://groups.google.com/ Message-ID: <28809481.0204290949.254a944f@posting.google.com> References: <8dff11cd.0204212008.6d401648@posting.google.com> VxWorks kernel doesn't support ECMP. sai_dattathrani@infy.com (sai) 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: PCI-to-PCI bridge x86 Date: Mon, 29 Apr 2002 18:27:24 GMT From: "H. E. Taylor" Organization: MTS Internet Message-ID: <3CCDAB3F.341B@despam.autobahn.mb.ca> References: <3CC8E942.5B1E@despam.autobahn.mb.ca> <3CC99E3A.720F@despam.autobahn.mb.ca> <3ccd145d$1@brateggebdc5.br-automation.co.at> In article <3ccd145d$1@brateggebdc5.br-automation.co.at>, Werner Schiendl wrote: >> >>[...] > > 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. > Hi Werner, Yes but, the BIOS would still set up any bridges it found, wouldn't it? [Anyway, Dan, it is something else for you to try...] - -het - -- "If a packet hits a pocket on a socket on a port, And the bus is interrupted as a very last resort, And the address of the memory makes your floppy disk abort, Then the socket packet pocket has an error to report!" - -Gene Ziegler (with a nod to Dr. Suess) Computer Links: http://www.autobahn.mb.ca/~het/clinks.html H.E. Taylor http://www.autobahn.mb.ca/~het/ --------------------------- Newsgroups: comp.os.vxworks Subject: How to reduce the size of ENVOY SNMP module Date: 29 Apr 2002 11:37:14 -0700 From: jzhang@drs.ca (Jason) Organization: http://groups.google.com/ Message-ID: Hello: I have successfully built the ENVOY SNMP module for PPC, but it quite big (1.5MBytes). I hope to reduce it. Does any one have the idea ? One way I want to try is, among the 11 groups of MIB II, only include a few of them, say the system and ip, exclude the rest 9 groups. But how to do it exactly? Thanks in advance! --------------------------- Newsgroups: comp.os.vxworks Subject: VxWorks Vs other embedded OSs Date: 29 Apr 2002 14:06:52 -0700 From: sriva_t@yahoo.com (Srivathsa) Organization: http://groups.google.com/ Message-ID: <1cdb3add.0204291306.2f4ebd6c@posting.google.com> Hi, I am new to embedded OS' Just want to know how VxWorks compares against other embedded OS'. 1) Psos seems to be as popular as VxWorks. But WindRiver seems to own both Psos and VxWorks. How come? Did WindRiver buy one of these OSs from some other company.. in a bid to kill that OS soon? 2) How does ChorusOS compare with VxWorks in terms of popularity (i.e is it widely used? ) 3) Some embedded OSs have multiple-process concept (seperate address space for each process, which implies that we need hardware MMU. I see that ChorusOS and LynxOS have this feature), while many dont (like VxWorks, Psos). Does this mean that such multiple-process OSs are meant for high-end equipment alone? (i.e those that can afford to have hardware MMU) - -Srivathsa --------------------------- Newsgroups: comp.os.vxworks Subject: convert vxworks_rom.hex Date: 29 Apr 2002 14:47:27 -0700 From: bala@innocor.com (balendran bala) Organization: http://groups.google.com/ Message-ID: Hi guys, Is there anyway that I could convert vxworks_rom.hex file into a text file? Thank you, bala --------------------------- Newsgroups: comp.os.vxworks Subject: Re: convert vxworks_rom.hex Date: Mon, 29 Apr 2002 19:22:40 -0400 From: joe durusau Organization: BELLSOUTH.net Message-ID: <3CCDD5C0.54DEFA39@bellsouth.net> References: balendran bala wrote: > Hi guys, > > Is there anyway that I could convert vxworks_rom.hex file into a text file? > > Thank you, > bala If you look at it, it _is_ a text file. What do you want to do??? Speaking only for myself, Joe Durusau --------------------------- Newsgroups: comp.os.vxworks Subject: Re: VxWorks Vs other embedded OSs Date: 30 Apr 2002 09:49:41 -0700 From: igtorque@yahoo.es (=?ISO-8859-1?Q?Ignacio_Gonz=E1lez_T.?=) Organization: http://groups.google.com/ Message-ID: <74c2e5b4.0204300849.17877357@posting.google.com> References: <1cdb3add.0204291306.2f4ebd6c@posting.google.com> sriva_t@yahoo.com (Srivathsa) wrote in message news:<1cdb3add.0204291306.2f4ebd6c@posting.google.com>... > Hi, > I am new to embedded OS' > Just want to know how VxWorks compares against other embedded OS'. > > 1) Psos seems to be as popular as VxWorks. But WindRiver seems to > own both Psos and VxWorks. How come? Did WindRiver buy one of these > OSs from some other company.. in a bid to kill that OS soon? WindRiver bought Psos. Guess why. > > 2) How does ChorusOS compare with VxWorks in terms of popularity (i.e > is it widely used? ) > It's the first time I've heard of ChorusOS. So, it must be less popular that VxWorks (population size for these statistics = 1 :) > 3) Some embedded OSs have multiple-process concept (seperate address > space for each process, which implies that we need hardware MMU. I see > that ChorusOS and LynxOS have this feature), while many dont (like > VxWorks, Psos). > Does this mean that such multiple-process OSs are meant for > high-end equipment alone? (i.e those that can afford to have hardware > MMU) Don't think so. The last incarnation of VxWorks (AE) supports multiple processes (I think.) And, nowadays, there are cheap chips with MMU, many of them supported by VxWorks 5.x. But, for many of these microprocessors, an OS with only "threads" instead of "processes" is usually more fast in task switching activities. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: VxWorks Vs other embedded OSs Date: 30 Apr 2002 14:59:43 -0400 From: Bill Pringlemeir Organization: Factory of the mind Message-ID: References: <1cdb3add.0204291306.2f4ebd6c@posting.google.com> <74c2e5b4.0204300849.17877357@posting.google.com> Sender: bpringlemeir@DeadDuck Srivathsa wrote in message <1cdb3add.0204291306.2f4ebd6c@posting.google.com>... >> Hi, I am new to embedded OS' Just want to know how VxWorks >> compares against other embedded OS'. >> 1) Psos seems to be as popular as VxWorks. But WindRiver seems to >> own both Psos and VxWorks. How come? Did WindRiver buy one of >> these OSs from some other company.. in a bid to kill that OS >> soon? Ignacio> WindRiver bought Psos. Guess why. These questions are usually very stupid. A little searching on the Internet will produce tonnes of links to different Embedded OS's. The features that an OS offer will fit your organizations goals. However, they will most often be political. Ergo, this is a dumb question that usually denigrates. As such I consider it flame-bait material. >> 2) How does ChorusOS compare with VxWorks in terms of popularity >> (i.e is it widely used? ) Ignacio> It's the first time I've heard of ChorusOS. So, it must be Ignacio> less popular that VxWorks (population size for these Ignacio> statistics = 1 :) Since you are the 2nd person to respond like this, ChorusOS was made in France (afaik). In the `Java Hay Day', Sun bought Chorus and they were trying to convert Chorus to JavaOs. This never really took. Chorus is certainly more popular in Europe, especially France. >> 3) Some embedded OSs have multiple-process concept (seperate >> address space for each process, which implies that we need [snip] Questions like these make it seem very much like the OP is out of his depth... but that is just a little pernicious. Perhaps you could spend, oh a day, a week, or so, looking around the Internet. You may come back with questions on RTEMS, uCos, eCos, FreeBSD, NetBSD, Hard Hat Linux, ucLinux, etc. Currently, I don't think the OP is prepared for a discussion on the topic. It takes at least some problem in order to be conversant on the problem domain. The most important thing is the application and organization where the OS will be used. That said, unless you have lost of PSOS code, I wouldn't go forward with that OS. Regards, Bill Pringlemeir. ps, I am not being mean, really! - -- Have you ever wondered if it was possible to have a subway make annoying phone calls to moldy milk? Or been forced by your arm to eat bananas? Or been kissed by irate newspaper salesmen while living on a planet where you lost your television? 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: file upload Date: Mon, 29 Apr 2002 16:00:49 +0800 From: "eric" Organization: DCI HiNet Message-ID: Hi! Everybody: I am use tornado web for arm7 and want upload file. I am include user rpm - file upload and setting some instruction : httpUploadConfInit(100); httpUploadConfAdd("/fileset","C:\test"); httpRpmConfAdd (HTTP_M_POST, "/fileset", httpRpmUpload);
When I upload a file through IE browser but it will appear error message : Data abort Exception address: 0x00000004 Current Processor Status Register: 0x20000013 Task: 0xf4ce28 "tHTTPd" Please give me some advice !! Regards, Eric, Cheng --------------------------- Newsgroups: comp.os.vxworks Subject: Re: VxWorks Vs other embedded OSs Date: 30 Apr 2002 12:48:08 -0700 From: sriva_t@yahoo.com (Srivathsa) Organization: http://groups.google.com/ Message-ID: <1cdb3add.0204301148.1a967dd3@posting.google.com> References: <1cdb3add.0204291306.2f4ebd6c@posting.google.com> Werner Schiendl wrote: > > Hi, > > > > VxWorks comes in two flavors: the 'old' VxWorks with one shared, flat > address space, all code running with full priviledges. This version > definitely runs on very low performance CPUs. > > The other thing is VxWorks AE, which has pretty much the same API, but > supports for a process model. If I remember right, they name it protection > domains and claim all kinds of magic for their concept, but basically its > just a process model, including resource cleanup and memory protection. I > don't know the exact hardware requirements, but it seems it doesn't make > much sense without a MMU. > I really wonder what embedded applications need the process model. I have seen a few PRETTY BIG APPLICATIONs (by my experience): routers. And they are all based on OS's that dont use the process model. Within these applications, there are logically independent entities that could be modelled as seperate processes in a general purpose OS... but because it is an embedded platform, they have been modelled as threads (faster context switching etc). Which makes me wonder: What embedded applications need the process model? Any examples from the real world? - -Srivathsa --------------------------- Newsgroups: comp.os.vxworks Subject: Re: VxWorks Vs other embedded OSs Date: 30 Apr 2002 16:29:58 -0400 From: Bill Pringlemeir Organization: Factory of the mind Message-ID: References: <1cdb3add.0204291306.2f4ebd6c@posting.google.com> <1cdb3add.0204301148.1a967dd3@posting.google.com> Sender: bpringlemeir@DeadDuck Srivathsa> Which makes me wonder: What embedded applications need the Srivathsa> process model? Any examples from the real world? The answer is, "what ever embedded app can afford it". MMU's are quickly becoming common on all RTOS candidate CPUs. This is because as clock speeds increase, you must cache memory and an MMU is necessary to mark memory sections as cacheable, writeable, etc. You have alluded to a performance hit. This is certainly true in many cases. You also wouldn't want to have virtual memory (VM) on an embedded app. However, because previous routers haven't had a heavy process model, don't suspect that future routers will not. The separation of processes via memory protection provides a layer of protection/debugging that can aid development of a large project. Also, depending on the CPU, a process switch might be as fast or faster than an RTOS switch depending on register banking, etc. Certainly an MMU can allow greater control of memory and hence cache effects. Routers will continue to expand on functionality and at some point they may convert to a system that uses memory protection. So embedded apps would use a `process model' if the cost was little or none. Regards, Bill Pringlemeir. - -- Baranyi Blowfish IRA Verisign Marxist Craig Livingstone INS JPL PLO virus morse Belknap kibo Saddam Hussein Skipjack vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: Lightweight heap monitor for VxWorks 5.4 / Tornado 2.0 Date: Tue, 30 Apr 2002 16:05:54 -0500 From: "John Poplett" Organization: MindSpring Enterprises Message-ID: Hi, I've done some trolling for a lightweight heap monitor for VxWorks and haven't found anything that ready-made that is portable. I am aware of Hwa Jin Bae's vxmalloc.c, which is partially based on Doug Lea's malloc.c and am aware of suggestions on the FAQ sites: http://www.xs4all.nl/~borkhuis/vxworks/vxw_pt6.html#6.2 Based on suggestions in WRS's application note on heap management: http://web1.windriver.com/windsurf/appnotes/ide/tornado/t2/APN116/appnote116 .pdf the cleanest solution seems to be to use the memPart* subroutines and layer a malloc library on top of them. From there it would be easy to install a malloc library with built-in monitoring or merge in something like Walter Bright's mem package. Keep in mind that I need to have a solution that is portable (one that would work on PPC and othe target architectures in addition to SPARCSIM and SIMPC) and that completely replaces the C language free / malloc interface (compile time macro swizzling is not an option since we don't have source to all the components we use). On a Tornado 2.02 system (W2K / vxsimpc), I see that memPartLib.o embeds definitions for malloc and free: [C:/Tornado/target/lib] ../../host/x86-win32/bin/nmsimpc.exe --defined memPartLib.o 00000000 b .bss 00000000 d .data 00000000 t .text 00000000 t ___gnu_compiled_c 000009e8 T _free 000009d4 T _malloc 000009bc T _memAddToPool 0000089c t _memAlignedBlockSplit 00000018 D _memDefaultAlignment 00000190 T _memPartAddToPool ... With malloc and free bound in the same object as the memPart routines, is there any hope of providing a malloc / free replacement portably? Thanks, John --------------------------- Newsgroups: comp.os.vxworks Subject: Re: INCLUDE_SNMP Date: Tue, 30 Apr 2002 05:51:39 GMT From: Mike Anderson Organization: RoadRunner - Cox Message-ID: <3CCE30CE.5050400@theptrgroup.com> References: Ofer Goren wrote: > 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 > > There is a two piece strategy here. The component (the .cdf) describes the object module that's needed. Then, when you switch to the VxWorks tab, it "verifies" the environment by checking the library against the components. This is how a component shows up as there but unavailable (italized). HTH, Mike --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Porting code from BSD to Vxworks Date: 29 Apr 2002 23:28:52 -0700 From: li.mingzheng@mail.zte.com.cn (Li Ming Zheng) Organization: http://groups.google.com/ Message-ID: <15dcd3bc.0204292228.5c338734@posting.google.com> References: <15dcd3bc.0204220004.1b8e316c@posting.google.com> "Hwa Jin Bae" wrote in message news:... > Some information is available at > http://www.xs4all.nl/~borkhuis/vxworks/ftp/vxhacks/pso_stack/README very cool! Thank you so much! But we need to know which release of Vxworks your protocol stack is based on so that we can install and test your stack. Thanks --------------------------- Newsgroups: comp.protocols.snmp,comp.os.vxworks Subject: Envoy version in WindNet SNMP Date: Tue, 30 Apr 2002 09:47:43 +0200 From: "Alex Vinokur" Organization: Scopus Message-ID: ========================================================= 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) - ------------------------ Wind River Systems Emissary SNMP MIB Compiler, version 7.0. - ------------------------ Host : Windows2000 Target : VxSim for Windows (VxWorks target simulator) ========================================================= How can we know which version of Envoy (8.x, 9.x, etc) is used in WindNet SNMP ? - -- ==================== 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: Lightweight heap monitor for VxWorks 5.4 / Tornado 2.0 Date: Wed, 01 May 2002 02:05:15 GMT From: Pete Kockritz Organization: AT&T Broadband Message-ID: References: In article , "John Poplett" wrote: > > On a Tornado 2.02 system (W2K / vxsimpc), I see that memPartLib.o embeds > definitions for malloc and free: > ... > > With malloc and free bound in the same object as the memPart routines, is > there any hope of providing a malloc / free replacement portably? There are ways. You can use a binary editor to change the name from _malloc to something like _xyzloc in the library file. You can then supply your own implementation of those functions. Objcopy allows you to rename symbols; extract the .o, rename _malloc and _free and add it back to the archive. Or, you could ask your WRS FAE for the source to memPartLib. Here is some additional info on replacing malloc: - -- Pete Kockritz --------------------------- Newsgroups: comp.os.vxworks Subject: Re: affordable vxworks training Date: Wed, 01 May 2002 03:31:30 GMT From: "D. David Pirzadeh" Message-ID: References: Got great information from Mike McCullough president of MCC Engineering mike@mccengineering.com 1.Download tornado prototyper 2.get vxworks manuals online 2.play with the code, has a simulator 3.take the class at winriver 4.access winsurf (their support) 5.dowload as many sample modules, will be reusing them again and again --------------------------- Newsgroups: comp.os.vxworks Subject: How reliable is routeLib in Vxworks Sim? Date: 30 Apr 2002 06:11:44 -0700 From: overtones@excite.com (Strawberry) Organization: http://groups.google.com/ Message-ID: <41440750.0204300511.32773ec1@posting.google.com> hi folks, I want to know if anybody has faced problems in the routeLib that comes with Vxworks Sim. I am not getting the RTM_ADD kernel event when i use RouteAdd or mRouteAdd. But when i write my own API to add route using routing socket i get the event. Any idea why?? Also any pointers to reliability of ifLib functions viz., ifAddrAdd are also welcome. regards, Strawberry (my fav..) --------------------------- Newsgroups: comp.os.vxworks Subject: resourses for realtime Date: 30 Apr 2002 21:22:57 -0700 From: alphadog_78@yahoo.com (jim canning) Organization: http://groups.google.com/ Message-ID: <57bd77b5.0204302022.28888e8f@posting.google.com> HI ALL, I'M NEWBIE TO REAL TIME OPERATING SYSTEMS AND I'M STILL A STUDENT AND I WANT TO WORK ON REALTIME OPERATING SYSTEMS AND WANNA KNOW ABOUT THAT STUFF CAN ANYBODY GIVE INFORMATION ABOUT REALTIME OS THAT CAN BE AVAILABLE FOR FREE ON THE NET AND CAN BE DOWNLOADED FOR FREE SO THAT I CAN GET SOME EXPERIENCE I REALLY APPRECIATE IT IF YOU CAN SUGGEST ME THANX JIM --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Does windml 2.0 font library support japanese and chinese fonts Date: 30 Apr 2002 10:46:08 -0400 From: Bill Pringlemeir Organization: Factory of the mind Message-ID: References: <32098fec.0204300619.bb7490e@posting.google.com> Sender: bpringlemeir@DeadDuck Avik> Dear all, I need to know whethet windml 2.0 have existing font Avik> libray for japanese and chinese fonts.If japanese and chinese Avik> font libary is there , then how I can get those font Avik> libraries.you can send your reply to shibasis@rebaca.com. Hope Avik> to get reply soon. Kanji fonts (etc) do not come with WindML 2.0. There are utilities to convert BDF and Windows fonts to the UGL (WindML) format. Font licensing would be up to you. Regards, Bill Pringlemeir. - -- TORPEDOED BY SMALL GNATS 12W 23N. SINKING. U-741. vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: Re: VxWorks Vs other embedded OSs Date: 30 Apr 2002 22:12:19 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0204302112.6ccde94a@posting.google.com> References: <1cdb3add.0204291306.2f4ebd6c@posting.google.com> <1cdb3add.0204301148.1a967dd3@posting.google.com> Hello, > > The other thing is VxWorks AE, which has pretty much the same API, but > > supports for a process model. If I remember right, they name it protection > > domains and claim all kinds of magic for their concept, but basically its > > just a process model, including resource cleanup and memory protection. I > > don't know the exact hardware requirements, but it seems it doesn't make > > much sense without a MMU. > > > > I really wonder what embedded applications need the process model. I wasn't going to enter this discussion, but since it seems to have concluded that VxWorks AE is a process model, and therefore has poor performance, I thought I'd add some comments. 1) VxWorks AE protection domains are not the same as processes, at least not in the Unix/Windows sense of the word. They are passive containers, not schedulable entities. VxWorks AE still schedules at the task level. 2) A process model does not have to mean poor performance context switching. It is often down to smart management of the context information, and correct usage of the MMU's address space support features. Task context switches on most CPUs are unaffected by the addition of protection domains. How? By utilising features in the MMU designed to support a full process model, it is possible to avoid doing any more work on context switches for most CPUs. The exception is the case where the cache is indexed by virtual address, and offers no other tricks to optimise the process. In those cases, some context switches will require a cache flush. > I have seen a few PRETTY BIG APPLICATIONs (by my experience): routers. > And they are all based on OS's that dont use the process model. Indeed, many internet infrastructure devices can be built very successfully with VxWorks 5.x. I guarantee that by the time you read this message it will have passed through at least one box running VxWorks 5.x. The core functionality of these devices may well make more sense in the kernel for absolute performance (especially if it is processing every packet). But what about that web server used for configuration purposes? Could that not be isolated in case it crashes when somebody enters silly values, or a malicious person tries to hack it? > Which makes me wonder: What embedded applications need the process > model? Any examples from the real world? Need it? Perhaps few, but many can benefit from the feature, and the benefits are seen not only in the deployed system, but also during development... what about those null pointers that everybody has encountered at some point? How about the stack overflows that can occur? Much quicker to track down if the MMU traps them as soon as they happen :-) HTH, John... --------------------------- Newsgroups: comp.os.vxworks Subject: Re: PCI-to-PCI bridge x86 Date: Tue, 30 Apr 2002 17:03:24 +0200 From: "Werner Schiendl" Message-ID: <3cceb232$1@brateggebdc5.br-automation.co.at> References: <3CC8E942.5B1E@despam.autobahn.mb.ca> <3CC99E3A.720F@despam.autobahn.mb.ca> <3ccd145d$1@brateggebdc5.br-automation.co.at> <3CCDAB3F.341B@despam.autobahn.mb.ca> Hi, "H. E. Taylor" wrote in message news:3CCDAB3F.341B@despam.autobahn.mb.ca... > In article <3ccd145d$1@brateggebdc5.br-automation.co.at>, > Werner Schiendl wrote: > >> > >>[...] > > > > 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. > > > > Hi Werner, > Yes but, the BIOS would still set up any bridges it found, > wouldn't it? > To be honest, I don't know this. Maybe someone else can shed light on that. I never had a PCI bridge in a VxWorks device so far (or it did work and so I didn't bother ;-)) best regards Werner --------------------------- Newsgroups: comp.os.vxworks Subject: Re: file upload Date: 30 Apr 2002 22:24:11 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0204302124.7ab52eed@posting.google.com> References: Hello, "eric" wrote in message news:... > Hi! Everybody: > I am use tornado web for arm7 and want upload file. I am include user > rpm - file upload and setting some instruction : > httpUploadConfInit(100); > httpUploadConfAdd("/fileset","C:\test"); This is almost certainly wrong. The path C:\test is very unlikely to be something that VxWorks will use. Don't be fooled by the fact that the Tornado WindSh shell sees files that way - it is a host based shell that uses the host file system. In this case, the compiler will be turning \t into a tab character as well, which is almost certainly not what you intended... > httpRpmConfAdd (HTTP_M_POST, "/fileset", httpRpmUpload); > > > When I upload a file through IE browser but it will appear error message : > Data abort > Exception address: 0x00000004 > Current Processor Status Register: 0x20000013 > Task: 0xf4ce28 "tHTTPd" > > Please give me some advice !! First, you should get a stack trace from the task that crashed (see the tt function). It may not work though since the exception address was down near zero, but it is worth a shot. That might give you an address that will help you track down the cause of the problem. HTH, John... --------------------------- Newsgroups: comp.os.vxworks Subject: Tornado trees and version control Date: 30 Apr 2002 08:20:49 -0700 From: Francoys_Crepeau@Mitel.com (Francoys Crepeau) Organization: http://groups.google.com/ Message-ID: I'm looking at setting up Tornado 2 for different teams in an NT environment. These teams need different configurations, (e.g.: some use T2CP4, some use T2CP3, some use DosFS2, some don't, etc.) and it's very difficult to have everybody in a team use the same configuration. What I want to do is to put these different Tornado tree configurations under version control, so that a user could check out the appropriate Tornado tree. For that reason, I've been following the T2/PVCS threads, and it appears that this is feasible, and in fact recommended. I've pasted a paragraph about this under here. My question is the following: I'm not fully clear on "you have to run the Tornado installer after extracting the complete tree...". Can someone clarify this for me? From what I understand, installing a tree from the distribution CD is what the installer does. So, once I've restored a Tornado tree, and adjusted the contents of the torVars.bat file, how exactly would I "run the Tornado installer" so as to obtain a working Tornado installation? Thanks! Françoys Crépeau Mitel Networks mailto:Francoys_Crepeau@Mitel.com /*** FROM "Tornado 2 and PVCS" thread: >We put the complete Tornado tree into CVS, so including host, docs, etc. >The only file to change after install is torVars.bat, you have to put the >right paths in there, but after that no problems. But to be sure you hav to >run Tornado installer after extracting the complete tree for the first >time, but not a complete install, but point it to the directory you just >installed Tornado in. > >Groeten, > Johan ***/ --------------------------- Newsgroups: comp.os.vxworks Subject: deleting netPools created through netBufLib Date: 30 Apr 2002 08:52:41 -0700 From: rvandiepen@availnetworks.com (Ron v.) Organization: http://groups.google.com/ Message-ID: <5c824911.0204300752.50367e5e@posting.google.com> I have come across what appears to be a hole in using netPools. In my application, a previously initialized netPool is being deleted while resources (MBLKS/CLBLKS/clusters) being managed by this pool are "in use". netBufLib happily cleans up all the free resources in the pool and then wipes out (zeroes) the netPool structure. Any subsequent attempt to free the "in use" resources may result in a system crash since the netPool associated with the freed resource is now invalid. It would seem that the netBufLib routines neither detect nor guard against such action. Does anyone know of any mechanism to resolve this? I searched WindSurf for SPRs relating to this but came up empty... --------------------------- Newsgroups: comp.os.vxworks Subject: Re: VxWorks Vs other embedded OSs Date: Tue, 30 Apr 2002 17:43:28 +0200 From: "Werner Schiendl" Message-ID: <3ccebb96$1@brateggebdc5.br-automation.co.at> References: <1cdb3add.0204291306.2f4ebd6c@posting.google.com> Hi, some comments are inlined intor your questions: "Srivathsa" wrote in message news:1cdb3add.0204291306.2f4ebd6c@posting.google.com... > Hi, > I am new to embedded OS' > Just want to know how VxWorks compares against other embedded OS'. > > 1) Psos seems to be as popular as VxWorks. But WindRiver seems to > own both Psos and VxWorks. How come? Did WindRiver buy one of these > OSs from some other company.. in a bid to kill that OS soon? > pSOS has been bought by Windriver some time ago. I would definitely not start a new development with pSOS. In my opinion, pSOS will disappear rather sooner than later. > 2) How does ChorusOS compare with VxWorks in terms of popularity (i.e > is it widely used? ) > No idea about that, so no comment. > 3) Some embedded OSs have multiple-process concept (seperate address > space for each process, which implies that we need hardware MMU. I see > that ChorusOS and LynxOS have this feature), while many dont (like > VxWorks, Psos). > Does this mean that such multiple-process OSs are meant for > high-end equipment alone? (i.e those that can afford to have hardware > MMU) > VxWorks comes in two flavors: the 'old' VxWorks with one shared, flat address space, all code running with full priviledges. This version definitely runs on very low performance CPUs. The other thing is VxWorks AE, which has pretty much the same API, but supports for a process model. If I remember right, they name it protection domains and claim all kinds of magic for their concept, but basically its just a process model, including resource cleanup and memory protection. I don't know the exact hardware requirements, but it seems it doesn't make much sense without a MMU. hth Werner --------------------------- Newsgroups: comp.os.vxworks Subject: Re: resourses for realtime Date: Wed, 01 May 2002 06:46:34 GMT From: "Gary M" Organization: AT&T Broadband Message-ID: References: <57bd77b5.0204302022.28888e8f@posting.google.com> I would suggest you stop shouting and perhaps search among the ample resources on the Web. A good starting point would be a Google advanced search with the words "realtime" and "tutorial" and the phrase "operating system". BTW, you'll understand realtime systems better if you understand operating systems in general. Same concepts, different requirements and implementations. "jim canning" wrote in message news:57bd77b5.0204302022.28888e8f@posting.google.com... > HI ALL, > I'M NEWBIE TO REAL TIME OPERATING SYSTEMS AND I'M STILL A > STUDENT AND I WANT TO WORK ON REALTIME OPERATING SYSTEMS AND WANNA > KNOW ABOUT THAT STUFF > > CAN ANYBODY GIVE INFORMATION ABOUT REALTIME OS THAT CAN BE AVAILABLE > FOR FREE ON THE NET AND CAN BE DOWNLOADED FOR FREE SO THAT I CAN GET > SOME EXPERIENCE > > I REALLY APPRECIATE IT IF YOU CAN SUGGEST ME > > THANX > JIM --------------------------- Newsgroups: comp.os.vxworks Subject: #ifdef question Date: Wed, 01 May 2002 11:07:56 +0200 From: Leon Gubbels Organization: =?iso-8859-1?Q?Oc=E9?= Technologies B.V. Message-ID: <3CCFB06C.196EF97B@oce.nl> Hi, for compilation for target (VxWorks) we now use #ifndef _WIN32 with the GCC compiler. But to be more specific this should be something like #ifdef VXWORKS ... I cannot find this statement in the manuals. Also the compiler (cygnus-2.7.2-960126) doesn't recognize some variants I tried: #ifdef _VXWORKS #ifdef VXWORKS #ifdef _vxworks #ifdef vxworks #ifdef _VxWorks #ifdef VxWorks does anyone know what it should be? Thanx in advance. Leon (if you reply to my mail address, remove NOSPAM). --------------------------- Newsgroups: comp.os.vxworks Subject: Re: deleting netPools created through netBufLib Date: 1 May 2002 02:28:09 -0700 From: demralarood@hotmail.com (Demrala Rood) Organization: http://groups.google.com/ Message-ID: <3baeb99.0205010128.66b318d8@posting.google.com> References: <5c824911.0204300752.50367e5e@posting.google.com> rvandiepen@availnetworks.com (Ron v.) wrote in message news:<5c824911.0204300752.50367e5e@posting.google.com>... > I have come across what appears to be a hole in using netPools. In my > application, a previously initialized netPool is being deleted while > resources (MBLKS/CLBLKS/clusters) being managed by this pool are "in > use". netBufLib happily cleans up all the free resources in the pool > and then wipes out (zeroes) the netPool structure. Any subsequent > attempt to free the "in use" resources may result in a system crash > since the netPool associated with the freed resource is now invalid. > It would seem that the netBufLib routines neither detect nor guard > against such action. Does anyone know of any mechanism to resolve > this? I searched WindSurf for SPRs relating to this but came up > empty... I think the solution is don't free resources that are in use. Since you discuss netpool, I think you must be trying to unload a driver which is not shut down. There won't be an SPR for this. When pruning a tree, would you cut off the limb you stand upon? DR --------------------------- Newsgroups: comp.os.vxworks Subject: Re: #ifdef question Date: Wed, 01 May 2002 06:23:29 -0400 From: joe durusau Organization: Bellsouth.Net Message-ID: <3CCFC221.7B0918A9@bellsouth.net> References: <3CCFB06C.196EF97B@oce.nl> Leon Gubbels wrote: > Hi, for compilation for target (VxWorks) we now use #ifndef _WIN32 with > the GCC compiler. But to be more specific this should be something like > #ifdef VXWORKS ... > I cannot find this statement in the manuals. Also the compiler > (cygnus-2.7.2-960126) doesn't recognize some variants I tried: > #ifdef _VXWORKS > #ifdef VXWORKS > #ifdef _vxworks > #ifdef vxworks > #ifdef _VxWorks > #ifdef VxWorks > > does anyone know what it should be? > > Thanx in advance. > > Leon (if you reply to my mail address, remove NOSPAM). Could you explain exactly what you are trying to do? If you include the right header files, vxWorks will compile OK. You don't have an intrinsic need for such a definition, but you can make one up yourself. As to your question about variations, they are not allowed. You have to decide exactly what you want and why. The compiler is case sensitive. The comiler itself does not require not rely on #defines to work correctly. One aside: Make sure that you differentiate between the stuff you get with the simulator and the real thing. There are quite a few differences. Speaking only for myself, Joe Durusau --------------------------- Newsgroups: comp.os.vxworks Subject: Re: #ifdef question Date: Wed, 01 May 2002 13:02:48 +0200 From: Leon Gubbels Organization: =?iso-8859-1?Q?Oc=E9?= Technologies B.V. Message-ID: <3CCFCB58.71DBFB3E@oce.nl> References: <3CCFB06C.196EF97B@oce.nl> <3CCFC221.7B0918A9@bellsouth.net> joe durusau wrote: > > Leon Gubbels wrote: > > > Hi, for compilation for target (VxWorks) we now use #ifndef _WIN32 with > > the GCC compiler. But to be more specific this should be something like > > #ifdef VXWORKS ... > > I cannot find this statement in the manuals. Also the compiler > > (cygnus-2.7.2-960126) doesn't recognize some variants I tried: > > #ifdef _VXWORKS > > #ifdef VXWORKS > > #ifdef _vxworks > > #ifdef vxworks > > #ifdef _VxWorks > > #ifdef VxWorks > > > > does anyone know what it should be? > > > > Thanx in advance. > > > > Leon (if you reply to my mail address, remove NOSPAM). > > Could you explain exactly what you are trying to do? If you include > the right header files, vxWorks will compile OK. You don't have > an intrinsic need for such a definition, but you can make one up yourself. > > As to your question about variations, they are not allowed. You have to > decide exactly what you want and why. The compiler is case sensitive. > The comiler itself does not require not rely on #defines to work correctly. > > One aside: Make sure that you differentiate between the stuff you get > with the simulator and the real thing. There are quite a few differences. Well, I meant, my code should work for a target (Tornado 2) and simulation (Windows NT) environment, so I use defines to make sure the comipler understands environment specific code. e.g. Tornado understands when I say: sysClkRateGet(); NT does not. So: #ifndef _WIN32 long l_TicksPerSecond = sysClkRateGet(); #else long l_TicksPerSecond = 500; #endif But this does not satisfy me. So I want to know, is there another define for VxWorks, so I can be more specific than #ifndef _WIN32 ?? Leon. --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Wed May 1 06:00:56 2002 From: "Shah, Ranjana" Date: Wed May 1 06:00:59 PDT 2002 Subject: Re: #ifdef question There may or may not be a define in a VxWorks header file, but one way to accomplish what you want (we also do this) is in your build process, for example in the makefile, use DEFINES = -D_VXWORKS_ when you are doing a build for VxWorks target. And then use the #ifdef _VXWORKS_ in your source code. > Hi, for compilation for target (VxWorks) we now use #ifndef _WIN32 with > the GCC compiler. But to be more specific this should be something like > #ifdef VXWORKS ... > I cannot find this statement in the manuals. Also the compiler > (cygnus-2.7.2-960126) doesn't recognize some variants I tried: > #ifdef _VXWORKS > #ifdef VXWORKS > #ifdef _vxworks > #ifdef vxworks > #ifdef _VxWorks > #ifdef VxWorks > does anyone know what it should be? > Thanx in advance. > Leon (if you reply to my mail address, remove NOSPAM). Ranjana Shah From vxwexplo-errs@csg.lbl.gov Wed May 1 11:50:28 2002 From: Shiv Date: Wed May 1 11:50:30 PDT 2002 Subject: TMD Driver : Target server problems for the 8xx Does anyone have any experience with the TMD driver for the PPC8xx series (namely the 855T). I can get the target server up and running with the 8260 but not for my target board which uses the 855T ? All I keep getting is this : Connecting to target agent... succeeded. Attaching C++ interface... succeeded. Attaching elf OMF reader for PPC CPU family... succeeded. Error: rpccore backend client Timed out Error: Error performing target core file checksum. Warning: Core file checksums do not match. Error: rpccore backend client Timed out Error: rpccore backend client Timed out Error: rpccore backend client Timed out Error: Object module load failed for C:\Tornado2\target\proj\TMDriverProject\default/vxWorks Error: loading core symbol table: status = 0x100de Error during target server core initialization Target Server will exit Am I missing something ? Shiv From vxwexplo-errs@csg.lbl.gov Thu May 2 04:03:16 2002 From: Vxworks Exploder Date: Thu May 2 04:03:18 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Thu May 2 04:03:11 PDT 2002 Subject: Re: convert vxworks_rom.hex Subject: netBufLib questions Subject: Booting multiple interfaces Subject: Mutual exclusion between same-priority tasks Subject: Re: #ifdef question Subject: Re: Mutual exclusion between same-priority tasks Subject: Re: Mutual exclusion between same-priority tasks Subject: Re: bootrom not loading kernel Subject: Re: Mutual exclusion between same-priority tasks Subject: WindRiver VisionEvent Setup Subject: RTOS project Subject: Re: #ifdef question Subject: RAM Disk Subject: Re: #ifdef question Subject: Re: Mutual exclusion between same-priority tasks Subject: PPP header compression Subject: Re: Does windml 2.0 font library support japanese and chinese fonts Subject: how to use different frequency to run tasks Subject: Re: how to use different frequency to run tasks Subject: Difference between RTOS and normal OS Subject: Re: RAM Disk Subject: getting the base address of the PCI card Subject: Re: Mutual exclusion between same-priority tasks Subject: Target Type for GCC Cross Compiler and Binutils: VxSim on Windows NT. Subject: Re: Target Type for GCC Cross Compiler and Binutils: VxSim on Windows NT. Subject: Re: convert vxworks_rom.hex Subject: Re: getting the base address of the PCI card Subject: Re: resourses for realtime ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: convert vxworks_rom.hex Date: 1 May 2002 05:10:07 -0700 From: bala@innocor.com (balendran bala) Organization: http://groups.google.com/ Message-ID: References: <3CCDD5C0.54DEFA39@bellsouth.net> Hi Joe, I lost the source code for a function. Since I have the vxworks_rom.hex from last build (includes the function), so I am trying to findout that I could do reverse-engineering and recover the function. Thank you, Bala joe durusau wrote in message news:<3CCDD5C0.54DEFA39@bellsouth.net>... > balendran bala wrote: > > > Hi guys, > > > > Is there anyway that I could convert vxworks_rom.hex file into a text file? > > > > Thank you, > > bala > > If you look at it, it _is_ a text file. What do you want to do??? > > Speaking only for myself, > > Joe Durusau --------------------------- Newsgroups: comp.os.vxworks Subject: netBufLib questions Date: Wed, 1 May 2002 13:55:59 +0000 (UTC) From: "Dexter Nixon" Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: <2b0e7fc437bdc7ad995977ba48739431.76014@mygate.mailgate.org> Hi, I am reading the Network Tool kit guide of VxWorks. Here the pool of clusters we are allocating and managing it by means of mBlk and Clblk structures right. But it is given that access to these structures are not semaphore protected. THen how does this will work. Because if am implementing more than one network protocol using MUX and am initialising a memory pool, and if both protocols access the same mem pool, how can we access mutual exclusion is there when the two protocols acccess the same pool with both are running as different threads. Without semaphore protection internally within the structures how this is possible. anybody kindly explain me. Thanks, Nix - -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG --------------------------- Newsgroups: comp.os.vxworks Subject: Booting multiple interfaces Date: Wed, 1 May 2002 14:28:01 +0000 (UTC) From: "Dexter Nixon" Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: Hi, This was the typical booting example given in the manual. Here we are configuring a Lance Ethernet card while booting itself with this bootline ln(0, 0) bear:/usr/wpwr/target/config/mz7122/vxworks e=90.0.0.2 b=91.0.0.2 h=100.0.0.4 g=90.0.0.3 u=papa pw=biggrump f=0x80 tn=goldilox s=bear:/usr/papa/startup o= Suppose, i have multiple ethernet cards like this means, how can i configure those interfaces. What is the way to do it. THanks, Nix - -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG --------------------------- Newsgroups: comp.os.vxworks Subject: Mutual exclusion between same-priority tasks Date: Wed, 01 May 2002 14:23:52 GMT From: Michael Patrick Organization: ATT Broadband Message-ID: <3CCFFB03.BA438CA4@attbi.com> How many of you are avoiding the use of semaphores for protecting global variables because you think vxworks will schedule (with timeslicing disabled) same-priority tasks to always run to completion until they voluntarily give up context? I came across this design technique when reviewing a project in my company, and submitted a TSR to ask Windriver about it. I was worried, you see, that an interrupt to one task would return through the scheduler to a *different* same-priority task, so that same-priority tasks would NOT be mutually exclusive. PSOS can do this, for example. I was surprised by Windriver's response. They said that although same-priority task mutual exclusion is implemented now, there was "no requirement" for it to operate this way, and it is "not guaranteed" to continue to do so in future versions. They said that semaphores were required for mutual exclusion even between same-priority tasks. I'm curious as to how many existing Vxworks customers are counting on mutual exclusion between same-priority tasks. Perhaps we should get Windriver to formerly add a requirement to provide this in future versions? Regards, - -mike --------------------------- Newsgroups: comp.os.vxworks Subject: Re: #ifdef question Date: Wed, 01 May 2002 10:37:19 -0700 From: Joe Durusau Organization: Lockheed Martin Corporation Message-ID: <3CD027CF.35A5FF7@lmco.com> References: <3CCFB06C.196EF97B@oce.nl> <3CCFC221.7B0918A9@bellsouth.net> <3CCFCB58.71DBFB3E@oce.nl> Leon Gubbels wrote: > > joe durusau wrote: > > > > Leon Gubbels wrote: > > > > > Hi, for compilation for target (VxWorks) we now use #ifndef _WIN32 with > > > the GCC compiler. But to be more specific this should be something like > > > #ifdef VXWORKS ... > > > I cannot find this statement in the manuals. Also the compiler > > > (cygnus-2.7.2-960126) doesn't recognize some variants I tried: > > > #ifdef _VXWORKS > > > #ifdef VXWORKS > > > #ifdef _vxworks > > > #ifdef vxworks > > > #ifdef _VxWorks > > > #ifdef VxWorks > > > > > > does anyone know what it should be? > > > > > > Thanx in advance. > > > > > > Leon (if you reply to my mail address, remove NOSPAM). > > > > Could you explain exactly what you are trying to do? If you include > > the right header files, vxWorks will compile OK. You don't have > > an intrinsic need for such a definition, but you can make one up yourself. > > > > As to your question about variations, they are not allowed. You have to > > decide exactly what you want and why. The compiler is case sensitive. > > The comiler itself does not require not rely on #defines to work correctly. > > > > One aside: Make sure that you differentiate between the stuff you get > > with the simulator and the real thing. There are quite a few differences. > > > > Well, I meant, my code should work for a target (Tornado 2) and > simulation (Windows NT) environment, so I use defines to make sure the > comipler understands environment specific code. e.g. Tornado understands > when I say: sysClkRateGet(); > NT does not. So: > > #ifndef _WIN32 > long l_TicksPerSecond = sysClkRateGet(); > #else > long l_TicksPerSecond = 500; > #endif > > But this does not satisfy me. So I want to know, is there another define > for VxWorks, so I can be more specific than #ifndef _WIN32 ?? > > Leon. You can use whatever you wish, within reason. vxWorks itself does not have any #defines in the header files like that. There is a #define VX_READ in vxWorks.h that would work if you are not using that header in the simulator. I would make up something, like #define TARGET_XXX where XXX is something that you would recognize. There is nothing inherent that will always work. Speaking only for myself, Joe Durusau --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mutual exclusion between same-priority tasks Date: Wed, 01 May 2002 14:53:38 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: <3CCFFB03.BA438CA4@attbi.com> Mike. WindRiver is now full of ex-ISI and otherwise incompetent people, so do not regard a TSE's answer seriously, just get him to escalate this TSR to Engineering. I can assure you that all current and past versions of VxWorks will honor Mutex state between any two tasks, i.e. there is no different how Mutex works if the tasks where same or different priority. Whatever is the state of the documentation (i.e. format product requirements), if for some reason the Mutex gets broken, e.g. for equal-riority tasks, the product will fail standard QA tests. A lot of higher layer VxWorks code relies on Mutexes, so the test coverage for this module is plenty. On many architectures, the lowest level primitives including binary and mutex semaphores, are re-written in native assembly language, to precisely immitate the portable "C" version of the same code. HTH, - Leonid "Michael Patrick" wrote in message news:3CCFFB03.BA438CA4@attbi.com... > How many of you are avoiding the use of semaphores for protecting global > variables because you think vxworks will schedule (with timeslicing > disabled) same-priority tasks to always run to completion until they > voluntarily give up context? > > I came across this design technique when reviewing a project in my > company, and submitted a TSR to ask Windriver about it. I was worried, > you see, that an interrupt to one task would return through the > scheduler to a *different* same-priority task, so that same-priority > tasks would NOT be mutually exclusive. PSOS can do this, for example. > > I was surprised by Windriver's response. They said that although > same-priority task mutual exclusion is implemented now, there was "no > requirement" for it to operate this way, and it is "not guaranteed" to > continue to do so in future versions. They said that semaphores were > required for mutual exclusion even between same-priority tasks. > > I'm curious as to how many existing Vxworks customers are counting on > mutual exclusion between same-priority tasks. Perhaps we should get > Windriver to formerly add a requirement to provide this in future > versions? > > Regards, > -mike > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mutual exclusion between same-priority tasks Date: Wed, 1 May 2002 14:57:23 +0000 (UTC) From: "Dexter Nixon" Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: References: <3CCFFB03.BA438CA4@attbi.com> "Michael Patrick" wrote in message news:3CCFFB03.BA438CA4@attbi.com > How many of you are avoiding the use of semaphores for protecting global > variables because you think vxworks will schedule (with timeslicing > disabled) same-priority tasks to always run to completion until they > voluntarily give up context? > > I came across this design technique when reviewing a project in my > company, and submitted a TSR to ask Windriver about it. I was worried, > you see, that an interrupt to one task would return through the > scheduler to a *different* same-priority task, so that same-priority > tasks would NOT be mutually exclusive. PSOS can do this, for example. > ======================================================================= Hi Mike, Why do we need mutual exclusion between same priority tasks. I could not find what is the relation between priority and mutual exclusion if both tasks are not accessing a common memory location at their life time. Kindly explain me on this. THanks, Nix ========================================================================== > I was surprised by Windriver's response. They said that although > same-priority task mutual exclusion is implemented now, there was "no > requirement" for it to operate this way, and it is "not guaranteed" to > continue to do so in future versions. They said that semaphores were > required for mutual exclusion even between same-priority tasks. > > I'm curious as to how many existing Vxworks customers are counting on > mutual exclusion between same-priority tasks. Perhaps we should get > Windriver to formerly add a requirement to provide this in future > versions? > > Regards, > -mike - -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG --------------------------- Newsgroups: comp.os.vxworks Subject: Re: bootrom not loading kernel Date: Wed, 01 May 2002 11:29:19 -0500 From: Dinker Charak Organization: Fermi National Accelerator Laboratory Message-ID: <3CD017DF.8EF3935@fnal.gov> References: <3CC9DF96.621B2327@fnal.gov> Johan Borkhuis 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? Yes I have. Actually, I tried this "n dc" on another board that boots up properly. It also gave the same result. So am not sure what thsi command does or coveys. Dinker --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mutual exclusion between same-priority tasks Date: Wed, 1 May 2002 10:00:02 -0700 From: "Hwa Jin Bae" Organization: PSO Systems Inc Message-ID: References: <3CCFFB03.BA438CA4@attbi.com> I think Wind River's response is reasonable on this. I don't think that there was a clear intent to have the scheduling of the same priority tasks one way or the other. Yet, I think it is useful to have a task finish the work before allowing another task (of same priority) to take over. How about proposing a new task option bit that can be set? Also, I would use mutex anyway for all shared resources. You can depend on all the tasks accessing the resource to be the same priority tasks. But things can change... especially when system gets very big and other engineers take over the work. I think it is a good practice to defensively program against future misunderstandings. It doesn't always work... :-) - -- Hwa Jin Bae mailto:hjb@pso.com http://www.pso.com --------------------------- Newsgroups: comp.os.vxworks Subject: WindRiver VisionEvent Setup Date: Wed, 01 May 2002 12:57:42 -0400 From: Babu Yama Organization: Lucent Technologies Message-ID: <3CD01E86.D8BF08BB@lucent.com> Hi, Any body has any good experience in setting up WindRiver VisionEvent? Does it work reliably? 1. Can the VisionEvent run at full 66 MHz bus speed on MPC8260? Do we need to clock down to 33 MHz? 2. Does VisionEvent have separate set of manuals. Is there a soft copy of them anywhere on the net/windsurf web site. (already contacted the windriver support, but......) 3. Can anyone outline a procedure briefly, please. Appreciate your comments, Thanks, Babu --------------------------- Newsgroups: comp.os.vxworks Subject: RTOS project Date: 1 May 2002 10:28:59 -0700 From: neetu_12@yahoo.com (Neena76) Organization: http://groups.google.com/ Message-ID: Hello, I'm looking for a small embedded RTOS programming project for a class. If anyone has some interesting ideas or could point me in the right direction, I would appreciate it. Thanks, Neena --------------------------- Newsgroups: comp.os.vxworks Subject: Re: #ifdef question Date: 1 May 2002 11:10:05 -0700 From: pkockritz@mac.com (Pete Kockritz) Organization: http://groups.google.com/ Message-ID: <9423c55b.0205011010.17227887@posting.google.com> References: <3CCFB06C.196EF97B@oce.nl> <3CCFC221.7B0918A9@bellsouth.net> <3CCFCB58.71DBFB3E@oce.nl> Leon Gubbels wrote in message news:<3CCFCB58.71DBFB3E@oce.nl>... > > Well, I meant, my code should work for a target (Tornado 2) and > simulation (Windows NT) environment, so I use defines to make sure the > comipler understands environment specific code. e.g. Tornado understands > when I say: sysClkRateGet(); > NT does not. So: Here are the pre-defines for gcc/Tornado gcc driver version cygnus-2.7.2-960126 egcs-971225 tornado 2.0 executing gcc version cygnus-2.7.2-960126 -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -D__IEEE_BIG_ENDIAN -D__embedded__ -D__IEEE_BIG_ENDIAN -D__embedded__ -Asystem(embedded) -Acpu(powerpc) -Amachine(powerpc) -D__CHAR_UNSIGNED__ -D_CALL_SYSV -Amachine(bigendian) -D_ARCH_PPC To contrast, here they are for gcc/cygwin gcc version 2.95.3-5 (cygwin special) -D__GNUC__=2 -D__GNUC_MINOR__=95 -D_X86_=1 -D_X86_=1 -Asystem(winnt) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix gcc will print this info (and other info) with the following option: gcc -E -v - Pete - -- pkockritz at mac dot com --------------------------- Newsgroups: comp.os.vxworks Subject: RAM Disk Date: Tue, 30 Apr 2002 15:01:41 +0800 From: "eric" Organization: DCI HiNet Message-ID: Hi! Everybody: I am use RAM Disk. How to use RAM Disk as DOS fileSystem? I am use - ->cd "/ram0" instruction in tornado shell but it don't work? Please give me advice!! Thank you! Regards, eric cheng --------------------------- Newsgroups: comp.os.vxworks Subject: Re: #ifdef question Date: Wed, 01 May 2002 11:06:41 -0400 From: david lindauer Message-ID: <3CD00481.57DCADF1@notifier-is.net> References: <3CCFB06C.196EF97B@oce.nl> <3CCFC221.7B0918A9@bellsouth.net> <3CCFCB58.71DBFB3E@oce.nl> Leon Gubbels wrote: Well, I meant, my code should work for a target (Tornado 2) and > simulation (Windows NT) environment, so I use defines to make sure the > comipler understands environment specific code. e.g. Tornado understands > when I say: sysClkRateGet(); > NT does not. So: > > #ifndef _WIN32 > long l_TicksPerSecond = sysClkRateGet(); > #else > long l_TicksPerSecond = 500; > #endif > > But this does not satisfy me. So I want to know, is there another define > for VxWorks, so I can be more specific than #ifndef _WIN32 ?? > > Leon. I haven't seen one. But there is nothing stopping you from making your own, e.g. you could put in a specific #define of your own choosing at compile time. (For Tornado 2, select 'builds' in the workspace, then click on the build you want to change and then click on the C/C++ tab and put the macro you want at the end of the window. If working with a makefile, modify the CFLAGS macro in the make file to add your macro. In both cases the macro would be defined with a -D switch, e.g. -DVxWorks). David --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mutual exclusion between same-priority tasks Date: 1 May 2002 14:16:31 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0205011316.5e33fb21@posting.google.com> References: <3CCFFB03.BA438CA4@attbi.com> Hello Michael, If you are relying on priority alone to ensure mutual exclusion, then I think that you taking chances. The implementor of a priority based pre-emptive scheduler clearly has to make a decision when handling tasks of the same priority. If a task becomes ready, should it be placed at the head of the queue or tail of the queue of tasks with the same priority? Normally, and this is the case for the Wind kernel, the task would be placed at the end of the list. That seems the most logical, especially when people use the phrase "run to completion" to describe the scheduling algorithm (though, one should note, that phrase is not its official name). Will it change in VxWorks? Unlikely. If it isn't broken, why fix it? Should you rely on priority for mutual exclusion? No. There are a number of primitives in all real-time operating systems for ensuring mutual exclusion; use one of them and you'll be safe for the future. For VxWorks, you have the following choices: 1) Mutex semaphores (see semMLib) 2) Pre-emption locking (see taskLock() & taskUnlock()) 3) Interrupt locking (see intLock() & intUnlock()) Which should you use? Depends on your application. From what you have written, I would suspect that (1) or (2) would be the best fit for what you are doing; if you are concerned about semaphores (?), perhaps (2) is something you should look at. I often use a trick here to "hide" the exact implementation here. Define LOCK() and UNLOCK() macros to surround your code with. That way you have the choice of anything from defining them to be nothing, using a semaphore, or using taskLock(). If you think you'll need intLock() ever, you need handle a return from LOCK() and pass it to UNLOCK() though, so think carefully about that one! As for the answer you got from Wind River support; it would seem to be sensible to me. There is no guarantee given - I just checked in manuals, and nowhere that I could see is the behaviour you have described documented. Since that is the case, I would be cautious relying on it if moving to new versions of VxWorks was something I thought I might do. Now, you might decide that the risk is low enough, and the benefit in your application outweighs that risk. If you do come to that conclusion though, I'd make sure the places in the code where this assumption was used were clearly marked (or use the macro trick I described above), just in case... The same applies when using "undocumented" features in Windows, or any other operating system, library etc. HTH, John... > How many of you are avoiding the use of semaphores for protecting global > variables because you think vxworks will schedule (with timeslicing > disabled) same-priority tasks to always run to completion until they > voluntarily give up context? > > I came across this design technique when reviewing a project in my > company, and submitted a TSR to ask Windriver about it. I was worried, > you see, that an interrupt to one task would return through the > scheduler to a *different* same-priority task, so that same-priority > tasks would NOT be mutually exclusive. PSOS can do this, for example. > > I was surprised by Windriver's response. They said that although > same-priority task mutual exclusion is implemented now, there was "no > requirement" for it to operate this way, and it is "not guaranteed" to > continue to do so in future versions. They said that semaphores were > required for mutual exclusion even between same-priority tasks. > > I'm curious as to how many existing Vxworks customers are counting on > mutual exclusion between same-priority tasks. Perhaps we should get > Windriver to formerly add a requirement to provide this in future > versions? > > Regards, > -mike --------------------------- Newsgroups: comp.os.vxworks Subject: PPP header compression Date: Wed, 1 May 2002 18:06:35 -0400 From: "Jason" Organization: Posted via Supernews, http://www.supernews.com Message-ID: Can some one tell me how to change the default PPP header compression under VxWorks? Thanks, Jason --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Does windml 2.0 font library support japanese and chinese fonts Date: Wed, 01 May 2002 23:45:53 GMT From: "ChanSeong Mike Kim" Organization: Dacom Message-ID: References: <32098fec.0204300619.bb7490e@posting.google.com> Hi~ I once tried using perl source to convert from BDF to UGL format. I think you should know some source or utility support only one byte code. At that time I converted some bitmap source to UGL format our own developed convert source. So, I'd like to know good convert program. Regards Chanseong Kim "Bill Pringlemeir" wrote in message news:u3cxdqm6n.fsf@yahoo.com... > > Avik> Dear all, I need to know whethet windml 2.0 have existing font > Avik> libray for japanese and chinese fonts.If japanese and chinese > Avik> font libary is there , then how I can get those font > Avik> libraries.you can send your reply to shibasis@rebaca.com. Hope > Avik> to get reply soon. > > Kanji fonts (etc) do not come with WindML 2.0. There are utilities to > convert BDF and Windows fonts to the UGL (WindML) format. Font > licensing would be up to you. > > Regards, > Bill Pringlemeir. > > -- > TORPEDOED BY SMALL GNATS 12W 23N. SINKING. U-741. > vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: how to use different frequency to run tasks Date: Wed, 1 May 2002 21:48:59 -0400 From: "Jianyuan HU" Organization: Bell Sympatico Message-ID: <4U0A8.61867$kq1.2108928@news20.bellglobal.com> Hi, I am newie in VxWorks, but I have a lot of experience with AMX (RTOS) for real time controller. I want to switch to VxWorks. Our robot controller has 5 tasks, different tasks has different priority and different execution frequncy. for instance, Task1 needs to run once every 1ms, while task2 run once every 20ms, and so on. taskSpawn can't do this job, Watch Dog Timer can't do either, but I think there should be some function to do this job, for AMX can do that easily, only we need to do is to set the timer for each task. Any info is appreciated. James --------------------------- Newsgroups: comp.os.vxworks Subject: Re: how to use different frequency to run tasks Date: Wed, 01 May 2002 20:51:41 -0700 From: "Michael R. Kesti" Organization: MK Associates Message-ID: <3CD0B7CD.D1D6FE93@gv.net> References: <4U0A8.61867$kq1.2108928@news20.bellglobal.com> Reply-To: mkesti@gv.net Jianyuan HU wrote: >Hi, > >I am newie in VxWorks, but I have a lot of experience with AMX (RTOS) for >real time controller. I want to switch to VxWorks. > >Our robot controller has 5 tasks, different tasks has different priority and >different execution frequncy. >for instance, Task1 needs to run once every 1ms, while task2 run once every >20ms, and so on. > >taskSpawn can't do this job, Watch Dog Timer can't do either, but I think >there should be some function to do this job, for AMX can do that easily, >only we need to do is to set the timer for each task. > >Any info is appreciated. Use tasks and watchdog timers to do the job. Have the tasks pend on semaphores that are given in their WDT timeout functions. - -- ======================================================================== 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: Difference between RTOS and normal OS Date: 1 May 2002 21:37:38 -0700 From: vivekm@dd.nec.com.au (Vivek) Organization: http://groups.google.com/ Message-ID: <507efed5.0205012037.3e11728f@posting.google.com> Hi, I am looking for some concrete differences between RTOS and normal OS. Could any body point me to the right direction for this. Thanks and in advance Vivek --------------------------- Newsgroups: comp.os.vxworks Subject: Re: RAM Disk Date: 1 May 2002 22:30:07 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0205012130.3505647b@posting.google.com> References: Hello, "eric" wrote in message news:... > Hi! Everybody: > I am use RAM Disk. How to use RAM Disk as DOS fileSystem? I am use > ->cd "/ram0" instruction in tornado shell but it don't work? You cannot use the RAM disk directly from the Tornado shell since that is a host based tool, and your file system is on the target. You can add the target based shell if you like, or you can use the '@' prefix to the commands like cd that exist on both (assuming you have the FS shell command utilities on the target - if you don't, then use ioDefPathSet() instead of cd). If you want to copy files to the RAM disk from the host, then you'll need to add the file system utilities to the target. I'd suggest adding the target tools (shell, loader etc) as it will all behave more logically if you are actually working from the target rather than via a host based tool when trying to copy files. HTH, John... --------------------------- Newsgroups: comp.os.vxworks Subject: getting the base address of the PCI card Date: 1 May 2002 23:19:30 -0700 From: forvxworks@rediffmail.com (Anand) Organization: http://groups.google.com/ Message-ID: HI All, first, thanks to Bruce,Andray Kaganovsky and John for helping me on Far Pointers. Now, i have a PCI card which has some memory and registers which i want to access and manipulate the contents of the registers depending on the functionality i want to program. Earlier , i was using an ISA card which had switches on it to select the base address and depending on the base address i could get the address of the registers and i could program the registers according to the function i wanted. but this PCI card does not have any switches, so that i can choose the base address. going through earlier articles in this group, i learned that we can use functions like pciDeviceShow() and pciHeaderShow() , we can have the details. but i am not sure whether the base address i get from pciHeaderShow() can be used as the base address of the card or not. I am new to vxworks, and i hope the question i am asking makes some sense. waiting for replies. Thanks in advance. Regards. Anand. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mutual exclusion between same-priority tasks Date: Thu, 02 May 2002 06:28:01 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: <3CCFFB03.BA438CA4@attbi.com> Folks, it seems i misunderstood Michael's question, or other responders understood it differentkly. I read the question as referring to Mutex semaphores behaviour on tasks of the sam epiroority, while others beleive that Michael is trying to rely solely on priority for protecting global resources. Michael, priority is a very TEMPORARY attribute of a task, you specify one priority at task intialization, but the task calls subroutines from libraries using Mutex semaphores, which can invert priorities. Also, at later project stages (code reuse) the system engineer can change the initial relative priority of tasks too. Dont take shortcuts, use Mutex samaphores for mutual exclusion. "Leonid Rosenboim" wrote in message news:newscache$muvfvg$rr2$1@lnews.actcom.co.il... > Mike. > > WindRiver is now full of ex-ISI and otherwise incompetent people, > so do not regard a TSE's answer seriously, just get him to escalate > this TSR to Engineering. > > I can assure you that all current and past versions of VxWorks > will honor Mutex state between any two tasks, i.e. there is no > different how Mutex works if the tasks where same or different > priority. > > Whatever is the state of the documentation (i.e. format product > requirements), if for some reason the Mutex gets broken, e.g. > for equal-riority tasks, the product will fail standard QA tests. > A lot of higher layer VxWorks code relies on Mutexes, so the > test coverage for this module is plenty. > > On many architectures, the lowest level primitives including binary > and mutex semaphores, are re-written in native assembly language, > to precisely immitate the portable "C" version of the same code. > > HTH, - Leonid > > > "Michael Patrick" wrote in message > news:3CCFFB03.BA438CA4@attbi.com... > > How many of you are avoiding the use of semaphores for protecting global > > variables because you think vxworks will schedule (with timeslicing > > disabled) same-priority tasks to always run to completion until they > > voluntarily give up context? > > > > I came across this design technique when reviewing a project in my > > company, and submitted a TSR to ask Windriver about it. I was worried, > > you see, that an interrupt to one task would return through the > > scheduler to a *different* same-priority task, so that same-priority > > tasks would NOT be mutually exclusive. PSOS can do this, for example. > > > > I was surprised by Windriver's response. They said that although > > same-priority task mutual exclusion is implemented now, there was "no > > requirement" for it to operate this way, and it is "not guaranteed" to > > continue to do so in future versions. They said that semaphores were > > required for mutual exclusion even between same-priority tasks. > > > > I'm curious as to how many existing Vxworks customers are counting on > > mutual exclusion between same-priority tasks. Perhaps we should get > > Windriver to formerly add a requirement to provide this in future > > versions? > > > > Regards, > > -mike > > > > > > > > --------------------------- Newsgroups: comp.os.vxworks,gnu.gcc.help Subject: Target Type for GCC Cross Compiler and Binutils: VxSim on Windows NT. Date: 2 May 2002 01:26:25 -0700 From: Giridhar.Nag@ubinetics.co.in (Y Giridhar Appaji Nag) Organization: http://groups.google.com/ Message-ID: <4aea5785.0205020026.6933e49c@posting.google.com> Hi, I wanted to build a cross compiler [from the GCC sources] for compiling my code on a Linux machine. This code has to be run on vxWorks. I managed to build binutils & GCC as cross compiler for the target PowerPC running vxWorks (powepc-wrs-vxworks) after some patching of the sources and searching on the net and the newsgroups. What I now want is to be able to do the same for the VxSim target. My VxSim runs on Windows NT. What would my target description be for building a compiler in this case?. I see that the executable format of the "VxSim binaries" is COFF (as reported by "file a.out"). I mean, in the configure phase of the build, what would the value of $target be in --target=$target? I am using binutils ver: 2.12 and gcc ver: 2.95.3 Are there any known problems with this setup for vxWorks? - -rgds, Giridhar PS: It would be nice if any responses to this are Cc:'ed to me since I do not have a very convenient access to the newsgroups. --------------------------- Newsgroups: comp.os.vxworks,gnu.gcc.help Subject: Re: Target Type for GCC Cross Compiler and Binutils: VxSim on Windows NT. Date: Thu, 2 May 2002 10:14:45 +0100 From: "Martin Dowie" Message-ID: <3cd102d5$1@pull.gecm.com> References: <4aea5785.0205020026.6933e49c@posting.google.com> > I am using binutils ver: 2.12 and gcc ver: 2.95.3 Are there any > known problems with this setup for vxWorks? I dream of using something as 'new' as gcc 2.95.3 for VxWorks but we're still using Tornado 2.0.2 complete with 2.7.2!!!! :-( --------------------------- Newsgroups: comp.os.vxworks Subject: Re: convert vxworks_rom.hex Date: Thu, 2 May 2002 11:37:45 +0200 From: "Werner Schiendl" Message-ID: <3cd108dd$1@brateggebdc5.br-automation.co.at> References: <3CCDD5C0.54DEFA39@bellsouth.net> Hi, the source for _one_ function? Normally you are better of, writing it anew from scratch. The best thing you can get from the built stuff is assembly level code (afaik). For the future, I recommend source code control combined with proper backups. best regards Werner "balendran bala" wrote in message news:fdcfdc67.0205010410.5e72301f@posting.google.com... > Hi Joe, > > I lost the source code for a function. Since I have the > vxworks_rom.hex from last build (includes the function), so I am > trying to findout that I could do reverse-engineering and > recover the function. > > Thank you, > Bala > joe durusau wrote in message news:<3CCDD5C0.54DEFA39@bellsouth.net>... > > balendran bala wrote: > > > > > Hi guys, > > > > > > Is there anyway that I could convert vxworks_rom.hex file into a text file? > > > > > > Thank you, > > > bala > > > > If you look at it, it _is_ a text file. What do you want to do??? > > > > Speaking only for myself, > > > > Joe Durusau --------------------------- Newsgroups: comp.os.vxworks Subject: Re: getting the base address of the PCI card Date: Thu, 2 May 2002 11:44:03 +0200 From: "Werner Schiendl" Message-ID: <3cd10a55$1@brateggebdc5.br-automation.co.at> References: Hi Anand, I assume you use some kind of pc486, pcPentium or similar BSP. Within this BSPs, you find a file called sysEl3c90xEnd.c This does exactly what you ask for for a network board. Study the file to find out how to read the base address and size of the address space as well as IRQ configuration from the PCI board. You can basically go with almost the same procedure, you just need to adapt Vendor and Device IDs and adjust the memory configuration to the proper BARs in the configuration. This is specific to your board, so you need to consult the hardware configuration here. pciConfigShow and pciHeaderShow also help with this. hth Werner "Anand" wrote in message news:f14c07cb.0205012219.284d4f84@posting.google.com... > HI All, > first, thanks to Bruce,Andray Kaganovsky and John for helping me > on Far Pointers. > Now, i have a PCI card which has some memory and registers which > i want to access and manipulate the contents of the registers > depending on the functionality i want to program. > Earlier , i was using an ISA card which had switches on it to > select the base address and depending on the base address i could get > the address of the registers and i could program the registers > according to the function i wanted. > but this PCI card does not have any switches, so that i can choose the > base address. > going through earlier articles in this group, i learned that we > can use functions like pciDeviceShow() and pciHeaderShow() , we can > have the details. but i am not sure whether the base address i get > from pciHeaderShow() can be used as the base address of the card or > not. I am new to vxworks, and i hope the question i am asking makes > some sense. > waiting for replies. > Thanks in advance. > Regards. > Anand. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: resourses for realtime Date: Thu, 2 May 2002 12:02:02 +0200 From: "Werner Schiendl" Message-ID: <3cd10e8d$1@brateggebdc5.br-automation.co.at> References: <57bd77b5.0204302022.28888e8f@posting.google.com> Hi Jim, you can download Tornado Prototyper for free from www.windriver.com. It comes with a simulator running on the development machine. For any 'real' work with VxWorks, you'll need a rather costy licence, however. regards Werner "jim canning" wrote in message news:57bd77b5.0204302022.28888e8f@posting.google.com... > HI ALL, > I'M NEWBIE TO REAL TIME OPERATING SYSTEMS AND I'M STILL A > STUDENT AND I WANT TO WORK ON REALTIME OPERATING SYSTEMS AND WANNA > KNOW ABOUT THAT STUFF > > CAN ANYBODY GIVE INFORMATION ABOUT REALTIME OS THAT CAN BE AVAILABLE > FOR FREE ON THE NET AND CAN BE DOWNLOADED FOR FREE SO THAT I CAN GET > SOME EXPERIENCE > > I REALLY APPRECIATE IT IF YOU CAN SUGGEST ME > > THANX > JIM --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Thu May 2 04:34:45 2002 From: "Sabarivel S" Date: Thu May 2 04:34:47 PDT 2002 Subject: Vxworks: ENOBUFS in setsockopt (MULTICAST_IF) option When does setsockopt call with MULTICAST_IF option will give ENOBUFS error message ? Your valuable input on this will be very helpful. 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 Thu May 2 05:25:13 2002 From: "Ronny Oren" Date: Thu May 2 05:25:15 PDT 2002 Subject: RE: Vxworks: ENOBUFS in setsockopt (MULTICAST_IF) option This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C1F1ED.8684FC50 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: 7bit Hi, Try and find in the following document some ideas. Ronny ------=_NextPart_000_0006_01C1F1ED.8684FC50 Content-Type: text/plain; name="Debugging ENOBUFS.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Debugging ENOBUFS.txt" TITLE: Debugging ENOBUFS DESCRIPTION: How to debug the ENOBUFS Errors ? " sendto: S_errno_ENOBUFS " RESOLUTION: SECTION I : - - - - ENOBUFS occurs mostly because the network stack is running of mbufs: Here are some instances where it is more likely to appear: 1) From setsockopt() setsockopt needs a cluster of size 128 bytes to store the socket options and the ENOBUFS error may indicate that no 128-byte clusters exist. SOLUTION : increase the value of CL_SIZE_128 in ../target/h/netBufLib.h 2) From route_output() The ENOBUFS error may occur when there is a write operation to a routing socket and: a) a mbuf is not available OR b) where the data in the first mbuf is less then the minimum protocol header and it tries to check the second mbuf and try to arrange all the headers in the first mbuf with a call to m_pullup() and this one may need some additional mbufs which are not available. SOLUTION: increase the mbufs(in general) SEE SECTION II 3) From tcp_input() when tcp_template() fails because it can't create a skeletal tcp/ip header because mbufs are not available: SOLUTION : increase the mbufs(in general) SEE SECTION II 4) From tcp_output() when it can't allocate enough mbufs for IP and TCP headers SOLUTION : increase the mbufs(in general) SEE SECTION II 5) From tcp_usrreq() When it is unable to create tcp_template() because it is running out of mbufs which are supposed to be used for transmissions on a particular socket connection. At this stage it starts keepalive timer, create output sequence space and send initial segment on connection. SOLUTION : increase the mbufs(in general) SEE SECTION II 6) From sosend() When it can't find a cluster of hte required size to place the data that has to be sent. SOLUTION : increase the mbufs(in general) SEE SECTION II 7) From sosetopt() When SO_SNDBUF and SO_RCVBUF are full. SOLUTION: increase the size of the SO_SNDBUF /SO_RCVBUF in ../target/h/sys/socket.h 8) From in_pcballoc() When a pcbstructure cannot be malloc'ed because of no mbufs SOLUTION: increase the mbufs(in general) SEE SECTION II 9) From in_control() When a MALLOC fails because of no mbufs while the interface specific fields are filled in by proper SIOCSIF... Calls. SOLUTION : increase the mbufs(in general) SEE SECTION II 10) From rttequest() When there is no mbuf when a routing entry has to be created. SOLUTION : increase the mbufs(in general) SEE SECTION II 11) From raw_attach() When there are no mbufs while trying to allocate a control block and some buffer space for the socket. SOLUTION : increase the mbufs(in general) SEE SECTION II 12) From add_lgrp() When it runs out of mbufs while trying to add an IP to a multicast group. SOLUTION : increase the mbufs(in general) SEE SECTION II 13) From ip_output() When it tries to copy data from the segment and makes a header and try to link in the form of mbuf chain and runs out of mbufs. SOLUTION: ipstatShow() whill increment the drops++. increase the mbufs(in general) SEE SECTION II 14) From ip_setmoptions() a)When a setsockopt is issued by an user with multicast options And there is no multicast option buffer attached to the pcb then an attempt will be made to allocate one. It may fail because of lack of mbufs: b) If it can't allocate a new multicast record when a new Address comes in because of no mbufs. SOLUTION : increase the mbufs(in general) SEE SECTION II 15) From ipOutput() /* in case of END drivers only */ a) If muxAddressForm cannot allocate link level header because of no mbufs we get this error: SOLUTION : increase the mbufs(in general) SEE SECTION II b) If the Interface Queue is Full. SOLUTION: SEE SECTION III. 16) From ether_ouput() a)When there is no space in the first mbufs an attempt is made to fetch another mbuf to place the header. Then it could runout of mbufs: SOLUTION : increase the mbufs(in general) SEE SECTION II b) If the Interface Queue is Full SOLUTION: SEE SECTION III. SECTION II: - - - - - Most ENOBUFF errors can be resolved by increasing the number of mbufs available. However, in some cases the error may be caused by one of the following: a) in the network stack it self OR b) the amount of memory the target has OR c) The CPU speed itself. d) Design & Bugs from the regular BSD stuff itself, It could be a limitation of the RFC itself. In these cases, the error may not be corrected simply adding mbufs, as described in the section above. First, to debug possible problems caused by by insufficient mbufs, use the command netstackSysPoolShow(). >From target do -> netstackSysPoolShow() type number --------- ------ FREE : 1095 DATA : 0 HEADER : 0 SOCKET : 4 PCB : 4 RTABLE : 12 HTABLE : 0 ATABLE : 0 SONAME : 0 ZOMBIE : 0 SOOPTS : 0 FTABLE : 0 RIGHTS : 0 IFADDR : 4 CONTROL : 0 OOBDATA : 0 IPMOPTS : 0 IPMADDR : 1 IFMADDR : 0 MRTABLE : 0 TOTAL : 1120 number of mbufs: 1120 number of times failed to find space: 0 number of times waited for space: 0 number of times drained protocols for space: 0 __________________ CLUSTER POOL TABLE _________________________________________________________________________= ______ size clusters free usage -------------------------------------------------------------------------= ------ 64 160 153 8 128 160 10 23 256 160 4 12 512 80 76 16 -------------------------------------------------------------------------= ------ value =3D 80 =3D 0x50 =3D 'P' ( The Lower values of "free" shows that it is running out of NUM_SYS_128 & NUM_SYS_256 ) and then increase the required values of Example: #define FACTOR 4 #define NUM_SYS_64 FACTOR*40 /* 64 byte system clusters */ #define NUM_SYS_128 FACTOR*40 /* 128 byte system clusters */ #define NUM_SYS_256 FACTOR*40 /* 256 byte system clusters */ #define NUM_SYS_512 FACTOR*20 /* 512 byte system clusters */ AND do similarly with mbufShow ->mbufShow() and increase the required values of #NUM_NET_MBLKS FAC*400 #define NUM_64 FAC*100 /* no. 64 byte clusters */ #define NUM_128 FAC*100 /* no. 128 byte clusters */ #define NUM_256 FAC*40 /* no. 256 byte clusters */ #define NUM_512 FAC*40 /* no. 512 byte clusters */ #define NUM_1024 FAC*25 /* no. 1024 byte clusters */ #define NUM_2048 FAC*25 /* no. 2048 byte clusters */ in the ../target/h/netBufLib.h then bulid vxWorks image and boot the target to take the changes into account. SECTION III: - - - - - - A) For 7) of SECTION I increase the values of SO_SNDBUF/SO_RCVBUF either in the ../target/h/sys/socket.h file or use setsockopt carefully in your application.More explaination on setsockopt() can be found in the vxWorks Reference Manual.. B) Running out of mbufs at the interface Q level. You can see this when you do an ifShow() and it will show a lot of output errors ( oerrors++). So try increasing the maxlen value of the if_snd Q to the appropriate value. By Default it is 50. Try with 100 or so. #include "vxWorks.h" #include "ifLib.h" #include "etherLib.h" /* Run this script each time you boot the target or make it a part of the application */ void ifq_maxLen(char *name, int len) { struct ifnet *ifp; ifp =3D ifunit(name); if (ifp =3D=3D NULL) printf("error:in if unit\n"); ifp->if_snd.ifq_maxlen =3Dlen; printf("set ifq maxlen %d -> %d\n", ifp->if_snd.ifq_maxlen, len); } NOTE : This Summary lists some possible reasons for the ENOBUFS error. It is not meant to be all inclusive. Nor will the resolutions correct all instances of ENOBUF errors. If you require additional information about the routines listed in SECTION I, please refer to TCP/IP Illustrated Volume 2 by Richard Stevens, As these are routines for which the customer will probably not possess. ------=_NextPart_000_0006_01C1F1ED.8684FC50-- From vxwexplo-errs@csg.lbl.gov Thu May 2 08:43:35 2002 From: "VxWorks" Date: Thu May 2 08:43:38 PDT 2002 Subject: Timer Driver Hi I am writing a timer driver for vxWorks. I am having some doubts in calculating sysClkTicks. How is this sysClkTicks calculated. What all factors has to be taken into account for creating this sysClkTicks. Thanking you in advance Regards Anamika From vxwexplo-errs@csg.lbl.gov Thu May 2 08:43:36 2002 From: "VxWorks" Date: Thu May 2 08:43:41 PDT 2002 Subject: Timer Driver Hi I am writing a timer driver for vxWorks. I am having some doubts in calculating sysClkTicks. How is this sysClkTicks calculated. What all factors has to be taken into account for creating this sysClkTicks. Thanking you in advance Regards Anamika From vxwexplo-errs@csg.lbl.gov Thu May 2 13:02:18 2002 From: Shiv Date: Thu May 2 13:02:20 PDT 2002 Subject: Problems with MotFec on the ppc855T. For anyone who has the time to read all this and a relative amount of expertise with the FEC ! I'm a newbie to FEC drivers (and the 8xx in general) and I'm trying to get my motfec up and running on my target board , loosely based (meaning ->not as populated) on the MdpPro8xxT BSP ...the transceiver I'm using is the CTX1170 canary module that connects to an MII interface on both boards, I wired that identically on my target as was done on the Eval Board. To let you know where I currently am with the FEC driver : (I'm downloading the vxworks image via visionprobe and using visionclick to debug it, once again , my target is the 855T , the BSP-template is the MdpPro8xxT and I've configured both boards using the register file download facility of visionclick , not worrying about boot-romming yet) * The Canary on noth boards start up in the isolation mode (On the module , this is configurable by a switch and its purpose is to restrict ethernet activity unless software configuration is performed) This "isolation mode" seems evident from the way the canary module behaves , with the 100MBps and link lights blinking in a wait-state. * The MdpBasicPro8xxT BSP eventually gets the link lights to stabilize in both cases, (at this stage I can see ethernet activity via the Rx Light) though this happens very fast on the Eval board (where I can consequently ping it from my host, observing Tx along with the Rx). This "waking-up" behavior takes a lot longer on the target board. I suspect a few timeouts elapse to account for this delay ? * Now , MOtFecEndLoad() , "THE" critical function on the BSP that loads the driver DOES NOT return an error or null value at any stage during its run. This I confirmed via breakpoints. * What DOES throw a spanner in the works is the MotFecMIIDiag() Diagnostics that follows up on the BSP , This asserts an error after the following code in the test-loop: if (motFecMiiRead (pDrvCtrl, phyAddr, regAddr, &data) != OK) return (ERROR); This is where the motfec fails on my target..as far as I can tell. WRS-Support seems puzzled ! * I also noted that for 860/855T processors , you have to take note of a D4 revision change. I believe the BSP takes into account this ...I'm using a D4 chip, anyhow. Could any one help me isolate the problem further ? Would really appreciate it ! Thanks ! Shiv From vxwexplo-errs@csg.lbl.gov Fri May 3 04:03:18 2002 From: Vxworks Exploder Date: Fri May 3 04:03:20 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Fri May 3 04:03:14 PDT 2002 Subject: Cancelling Write/Read operation to SCSI drive Subject: Re: Difference between RTOS and normal OS Subject: Re: netBufLib questions Subject: Re: PPP header compression Subject: Re: Does windml 2.0 font library support japanese and chinese fonts Subject: Re: Mutual exclusion between same-priority tasks Subject: Re: Mutual exclusion between same-priority tasks Subject: Interrupt Latency Subject: openssl for VxWorks Subject: Re: Target Type for GCC Cross Compiler and Binutils: VxSim on Windows Subject: Re: Interrupt Latency Subject: Re: openssl for VxWorks Subject: Re: Interrupt Latency Subject: Re: No interface UP message(RTM_IFINFO) in routing socket for nt0 Subject: Re: Target Type for GCC Cross Compiler and Binutils: VxSim on Windows NT. Subject: Incorrectly reported floating point exceptions Subject: VxWorks 5.3 Manuals Subject: Re: TCP Stream Socket send buffer in VxWorks v5.4 Subject: about via rhine II network adapter's drivers. Subject: Re: Cancelling Write/Read operation to SCSI drive Subject: diab asm syntax questions... Subject: Re: Booting multiple interfaces Subject: Re: #ifdef question Subject: Re: Difference between RTOS and normal OS Subject: Re: Difference between RTOS and normal OS Subject: m8260FccEnd driver transmit errors Subject: Network Interface Extensions in VxWorks (based on RFC2233) Subject: Default route outside subnet ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Cancelling Write/Read operation to SCSI drive Date: 2 May 2002 06:31:13 -0700 From: Jeffrey.Steinsnyder@L-3Com.com (Jeff Steinsnyder) Organization: http://groups.google.com/ Message-ID: Hello Everyone, We are using VxWorks v5.3.1, SCSI hard drive on MVME2604 Single board computer. After Application performs the System Reset sequence and comes back into the operation it looks like our disk file system (dosFs) gets corrupted. We suspect that the SCSI drive does its write operations at the time the Reset sequence has been initiated. Does any one knows if there is a way to cancel all SCSI drive read(s)/write(s), using the VxWorks API? I'm not sure whether I can use ioctl() with FIOCANCEL function in this situation. Please let me know. Thank you much, Jeff Steinsnyder. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Difference between RTOS and normal OS Date: Thu, 2 May 2002 09:13:28 -0400 From: "Yin, Yong" Organization: Nortel Message-ID: References: <507efed5.0205012037.3e11728f@posting.google.com> priority-based preemptive schedule Vivek wrote in message news:507efed5.0205012037.3e11728f@posting.google.com... > Hi, > > I am looking for some concrete differences between RTOS and normal OS. > Could any body point me to the right direction for this. > > Thanks and in advance > > Vivek --------------------------- Newsgroups: comp.os.vxworks Subject: Re: netBufLib questions Date: Thu, 02 May 2002 14:41:21 +0100 From: Paul Mannion Organization: Silicon and Software Systems Message-ID: <3CD14201.F4C05E0E@s3group.com> References: <2b0e7fc437bdc7ad995977ba48739431.76014@mygate.mailgate.org> This is a multi-part message in MIME format. - --------------BEC970B73FF0C0143818AC5D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Nix, anytime yo have to modify the netpool lists briefly disabling interrupts will prevent task switches. I woudln't recommend using semaphores unless you know the system well as you may be allocating buffers from within ISR context and that blocking could be disastrous. Paul Dexter Nixon wrote: > Hi, > > I am reading the Network Tool kit guide of VxWorks. Here the pool of > clusters we are allocating and managing it by means of mBlk and Clblk > structures right. But it is given that access to these structures are > not semaphore protected. THen how does this will work. Because if am > implementing more than one network protocol using MUX and am > initialising a memory pool, and if both protocols access the same mem > pool, how can we access mutual exclusion is there when the two protocols > acccess the same pool with both are running as different threads. > Without semaphore protection internally within the structures how this > is possible. anybody kindly explain me. > > Thanks, > Nix > > -- > Posted via Mailgate.ORG Server - http://www.Mailgate.ORG - --------------BEC970B73FF0C0143818AC5D 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 - --------------BEC970B73FF0C0143818AC5D-- --------------------------- Newsgroups: comp.os.vxworks Subject: Re: PPP header compression Date: Thu, 02 May 2002 09:59:25 -0400 From: david lindauer Message-ID: <3CD1463D.86F33A3A@notifier-is.net> References: the PPP options are in configall.h. Looks like you want the options: PPP_OPT_NO_ACC PPP_OPT_NO_PC PPP_OPT_NO_VJ (if you don't want VJ compression, technically a TCP/IP header issue) Jason wrote: > Can some one tell me how to change the default PPP header compression under > VxWorks? > > Thanks, > Jason --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Does windml 2.0 font library support japanese and chinese fonts Date: 02 May 2002 11:08:13 -0400 From: Bill Pringlemeir Organization: Factory of the mind Message-ID: References: <32098fec.0204300619.bb7490e@posting.google.com> Sender: bpringlemeir@DeadDuck Avik> Dear all, I need to know whethet windml 2.0 have existing font Avik> libray for japanese and chinese fonts.If japanese and chinese Avik> font libary is there , then how I can get those font Avik> libraries.you can send your reply to shibasis@rebaca.com. Hope Avik> to get reply soon. >> Kanji fonts (etc) do not come with WindML 2.0. There are >> utilities to convert BDF and Windows fonts to the UGL (WindML) >> format. Font licensing would be up to you. ChanSeong> Hi~ I once tried using perl source to convert from BDF to ChanSeong> UGL format. I think you should know some source or ChanSeong> utility support only one byte code. ChanSeong> At that time I converted some bitmap source to UGL format ChanSeong> our own developed convert source. ChanSeong> So, I'd like to know good convert program. There are programs on WindSurf that will allow you to do this. They are ufe.zip (Uterine fibroid embolization), a program for converting windows fonts, and bdf2bmf.zip, a program for converting Unix BDF fonts. "http://web2.windriver.com/cgi-bin/windsurf/downloads/fetch_download.cgi?downloadid=1117&binaryid=253" "http://web2.windriver.com/cgi-bin/windsurf/downloads/fetch_download.cgi?downloadid=1117&binaryid=254" Regards, Bill Pringlemeir. - -- Allowedness is incomprehensible. vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mutual exclusion between same-priority tasks Date: Thu, 2 May 2002 09:34:42 -0700 From: "Hwa Jin Bae" Organization: PSO Systems Inc Message-ID: References: <3CCFFB03.BA438CA4@attbi.com> <488e459a.0205011316.5e33fb21@posting.google.com> I would recommend the use of mutex semaphores. Other schemes (taskLock and intLock) are not really meant to be used for mutex functions. Using taskLock and intLock for mutex can cause unpredictable system behavior in large systems. Use of taskLock can increase preemptive latency especially when used extensively. Use of intLock can increase interrupt latency. I have seen many large embedded systems built with VxWorks which assumes that taskLock and intLock can be used as convenient replacement for mutex semaphores. There are a lot of problems stemming from that assumption. If you need mutex, use mutex semaphores. If you want to disable task switching, use taskLock. If you want to disable interrupts, use intLock. But please do not mix the originally intended purpose. (Read the manual for taskLock, which makes clear statements with respect to what is preferrable for mutex.) - -- Hwa Jin Bae mailto:hjb@pso.com http://www.pso.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mutual exclusion between same-priority tasks Date: Thu, 02 May 2002 16:58:00 GMT From: "doug dotson" Organization: Verio Message-ID: References: <3CCFFB03.BA438CA4@attbi.com> Relying on a side-effect of the scheduler is pretty risky. Probably best to use the mutexes. doug "Michael Patrick" wrote in message news:3CCFFB03.BA438CA4@attbi.com... > How many of you are avoiding the use of semaphores for protecting global > variables because you think vxworks will schedule (with timeslicing > disabled) same-priority tasks to always run to completion until they > voluntarily give up context? > > I came across this design technique when reviewing a project in my > company, and submitted a TSR to ask Windriver about it. I was worried, > you see, that an interrupt to one task would return through the > scheduler to a *different* same-priority task, so that same-priority > tasks would NOT be mutually exclusive. PSOS can do this, for example. > > I was surprised by Windriver's response. They said that although > same-priority task mutual exclusion is implemented now, there was "no > requirement" for it to operate this way, and it is "not guaranteed" to > continue to do so in future versions. They said that semaphores were > required for mutual exclusion even between same-priority tasks. > > I'm curious as to how many existing Vxworks customers are counting on > mutual exclusion between same-priority tasks. Perhaps we should get > Windriver to formerly add a requirement to provide this in future > versions? > > Regards, > -mike > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Interrupt Latency Date: Thu, 02 May 2002 18:57:49 +0200 From: Peter Kannegiesser Organization: SEK Message-ID: Reply-To: peter.kannegiesser@gmx.de Hi all! We are using Tornado 2.02 and the related tools and have written a driver for an D/A, A/D converter PCI card. The driver is implemented using ioctl() calls. The PCI card generates interrupts at the end of conversion. The interrupt handler is connected using pciConnectInt and is definitly the only one for that interrupt line. Now we experience very looong delays from the interrupt signal on the PCI bus until the handler gets called. According to the logic analyzer, it takes between 5 and 15 milliseconds (with a strong tendency to 15ms)-- and this supposed to be an OS for fast hard realtime... We are using the standard Pentium BSP on various PC's, from 166MHz Pentium I to 2GHz Pentium 4. There seems to be no change that depends on the processor speed. Has anybody seen similar problems or could offer at least an explanation? TIA, Peter - -- keine sig --------------------------- Newsgroups: comp.os.vxworks Subject: openssl for VxWorks Date: 2 May 2002 10:38:56 -0700 From: nhoda@agere.com (Nadeem HOda) Organization: http://groups.google.com/ Message-ID: Has anybody successfully ported openssl to VxWorks? Nadeem Hoda --------------------------- Newsgroups: comp.os.vxworks,gnu.gcc.help Subject: Re: Target Type for GCC Cross Compiler and Binutils: VxSim on Windows NT. Date: Thu, 02 May 2002 12:59:00 -0500 From: Andrew Johnson Organization: APS, Argonne National Laboratory Message-ID: <3CD17E64.4E69E0DF@aps.anl.gov> References: <4aea5785.0205020026.6933e49c@posting.google.com> <3cd102d5$1@pull.gecm.com> Martin Dowie wrote: > > I dream of using something as 'new' as gcc 2.95.3 for VxWorks but > we're still using Tornado 2.0.2 complete with 2.7.2!!!! :-( The C++ compiler that comes with Tornado 2.0.2 isn't *quite* that old, it's actually based on EGCS 1.0.2 (see the Tornado 2.0 Release notes, section 7.6 for details). The C compiler is still derived from GCC 2.7.2 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: Re: Interrupt Latency Date: Thu, 2 May 2002 19:59:09 +0200 From: "Werner Schiendl" Message-ID: <3cd17e5f$1@brateggebdc5.br-automation.co.at> References: Hi, how do you meassure that delay? On the box you specified, interrupt latency should be in the range 20 us (_not_ ms) or shorter. There is something wrong, either with your hardware or your test. If you set hardware IOs to do the meassuring, be sure to not be fooled by cached values. (see cacheLib and verify you properly mapped the IO range of the meassure and IO board). hth Werner "Peter Kannegiesser" wrote in message news:aer2dug9ot75urttc2dabeg507f5v44p7t@4ax.com... > Hi all! > > We are using Tornado 2.02 and the related tools and have written a > driver for an D/A, A/D converter PCI card. The driver is implemented > using ioctl() calls. The PCI card generates interrupts at the end of > conversion. > The interrupt handler is connected using pciConnectInt and is > definitly the only one for that interrupt line. > Now we experience very looong delays from the interrupt signal on > the PCI bus until the handler gets called. According to the logic > analyzer, it takes between 5 and 15 milliseconds (with a strong > tendency to 15ms)-- and this supposed to be an OS for fast hard > realtime... > We are using the standard Pentium BSP on various PC's, from 166MHz > Pentium I to 2GHz Pentium 4. There seems to be no change that > depends on the processor speed. > > Has anybody seen similar problems or could offer at least an > explanation? > > TIA, > Peter > -- > keine sig --------------------------- Newsgroups: comp.os.vxworks Subject: Re: openssl for VxWorks Date: 02 May 2002 14:39:25 -0400 From: Bill Pringlemeir Organization: Factory of the mind Message-ID: References: Sender: bpringlemeir@DeadDuck Nadeem> Has anybody successfully ported openssl to VxWorks? "http://groups.google.com/groups?as_q=openssl&as_ugroup=comp.os.vxworks" "http://www.xs4all.nl/~borkhuis/vxworks/vxw_pt6.html#6.9" The network speaks before you are spoken to. hth, Bill Pringlemeir. - -- LLNL Bosnia Ron Brown sniper ASIO Forte Mantis Geraldton Vickie Weaver SCUD missile eternity server ANDVT military mania beanpole vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Interrupt Latency Date: Thu, 02 May 2002 21:50:14 +0200 From: Peter Kannegiesser Organization: SEK Message-ID: References: <3cd17e5f$1@brateggebdc5.br-automation.co.at> Reply-To: peter.kannegiesser@gmx.de On Thu, 2 May 2002 19:59:09 +0200, "Werner Schiendl" wrote: >how do you meassure that delay? The interrupt signal is measured at its creation point, that maens on the A/D module itself. The A/D module also has digital outputs, and one of them is set when the interrupt handler is started, reset after the handler. > >On the box you specified, interrupt latency should be in the range 20 us >(_not_ ms) or shorter. ...that's what I've expected... >There is something wrong, either with your hardware or your test. Right. The test seems not to be wrong: even without measuring hard- and software behaviour of the system is such that we had to suspect large interrupt latencies. The test only confirmed this. Question: Do I have to handle some piece of PC hardware in the interrupt handler? I can't imagine this, but want to be sure. > >If you set hardware IOs to do the meassuring, be sure to not be fooled by >cached values. >(see cacheLib and verify you properly mapped the IO range of the meassure >and IO board). I guess that doesn't apply in my case :-( Best Regards, Peter - -- keine sig --------------------------- Newsgroups: comp.os.vxworks Subject: Re: No interface UP message(RTM_IFINFO) in routing socket for nt0 Date: 2 May 2002 13:12:52 -0700 From: dave.moore@conexant.com (Dave Moore) Organization: http://groups.google.com/ Message-ID: References: <8dff11cd.0204252137.74e1a733@posting.google.com> sai_dattathrani@infy.com (sai) wrote in message news:<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 From the VxWorks Documentation: WARNING: If the driver changes the state of the flags element (for instance, marking itself as "down" by setting the IFF_DOWN flag), the driver should export this change by calling muxError( ) with the errCode member of the END_ERR structure set to END_ERR_FLAGS. --------------------------- Newsgroups: comp.os.vxworks,gnu.gcc.help Subject: Re: Target Type for GCC Cross Compiler and Binutils: VxSim on Windows NT. Date: 2 May 2002 13:35:34 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0205021235.3e26d84b@posting.google.com> References: <4aea5785.0205020026.6933e49c@posting.google.com> <3cd102d5$1@pull.gecm.com> Hello, You could upgrade to VxWorks AE, complete with GCC 2.96. You might also want to check with your local FAE to see if there is a 2.1 release for your CPU that includes a newer compiler. HTH, John... "Martin Dowie" wrote in message news:<3cd102d5$1@pull.gecm.com>... > > I am using binutils ver: 2.12 and gcc ver: 2.95.3 Are there any > > known problems with this setup for vxWorks? > > I dream of using something as 'new' as gcc 2.95.3 for VxWorks but > we're still using Tornado 2.0.2 complete with 2.7.2!!!! :-( --------------------------- Newsgroups: comp.os.vxworks Subject: Incorrectly reported floating point exceptions Date: Thu, 02 May 2002 17:17:17 -0400 From: Stephen Roderick Organization: Space Systems Lab Message-ID: <3CD1ACDC.5512D591@ssl.umd.edu> We've found that VxWorks is reporting the incorrect exception, whether or not an application-level handler is dealing with floating point exceptions. Specifically: Raising SIGFPE and dividing by zero both produce SIGFPE. Overflows and underflows to integers, or to single from double, all produce SIGILL (coprocessor unuseable), should be SIGFPE. Inavlid op (generated by giving sin/cos something really large) causes an address error (!?), should be SIGFPE. Still trying to figure out what's going on here ... Has anyone seen this before, or have any idea what the problem is? We're running Vx5.2 on a Sanders Star II board with a MIPS R4k. THX! --------------------------- Newsgroups: comp.os.vxworks Subject: VxWorks 5.3 Manuals Date: 2 May 2002 16:53:43 -0700 From: go_st8@hotmail.com (Chris) Organization: http://groups.google.com/ Message-ID: <2bb221f7.0205021553.4f7deee4@posting.google.com> Hello, I am looking for a hard copy of a VxWorks 5.3 Reference Manual. Does anyone have one they would be interested in parting with? Thanks, Chris --------------------------- Newsgroups: comp.os.vxworks Subject: Re: TCP Stream Socket send buffer in VxWorks v5.4 Date: Thu, 2 May 2002 17:20:21 -0700 From: "Hwa Jin Bae" Organization: PSO Systems Inc Message-ID: References: It can be done by: 1. use iosFdValue() on socket descriptor to get a pointer of type struct socket. 2. Read socketvar.h for definition of struct socket. 3. so_rcv.sb_cc contains actual bytes consumed per queue at socket level. - -- Hwa Jin Bae mailto:hjb@pso.com http://www.pso.com --------------------------- Newsgroups: comp.os.vxworks Subject: about via rhine II network adapter's drivers. Date: 2 May 2002 17:26:16 -0700 From: zhoushan@371.net (zhoushan) Organization: http://groups.google.com/ Message-ID: hello. does anyone have experince working on via vt6102 chip? --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Cancelling Write/Read operation to SCSI drive Date: Fri, 03 May 2002 10:13:07 +0930 From: Tim Shaw Organization: Defence Science and Technology Organisation Message-ID: <3CD1DD1B.EB11ECC@dsto.defence.gov.au> References: Jeff, When the SCSI device is initialised with ncr810CtrlCreate, the scsi control structure (SCSI_CTRL *) is returned. One of the elements of this struct is the function pointer pScsiCtrl->scsiThreadAbort, so you could try running that. I'm not sure, but it may be the same function that is run when FIOCANCEL is called from ioctl. The arguments to the this function are a pointer to the SIOP (same as to the controller) and to the thread to abort. Both are in the scsi control struct, from memory it would be something like: (*pSysScsiCtrl->scsiThreadAbort)(pSysScsiCtrl, pSysScsiCtrl->pThread) You may also want to check the scsi control struct to see that a thread is in fact active (pSysScsiCtrl->active == TRUE) But is there a reason that you can't wait until the write has finished? One other thing with this BSP and SCSI is that the SCSI bus is not reset properly after a warm reset or a reboot. You need to perform a scsiBusReset(pSysScsiCtrl) before you do any scsi config, somewhere at the top of sysScsiConfig( ) seems to work okay. HTH Tim Jeff Steinsnyder wrote: > Hello Everyone, > We are using VxWorks v5.3.1, SCSI hard drive on MVME2604 Single board > computer. After Application performs the System Reset sequence and > comes back into the operation it looks like our disk file system > (dosFs) gets corrupted. We suspect that the SCSI drive does its write > operations at the time the Reset sequence has been initiated. Does any > one knows if there is a way to cancel all SCSI drive read(s)/write(s), > using the VxWorks API? I'm not sure whether I can use ioctl() with > FIOCANCEL function in this situation. Please let me know. > > Thank you much, > Jeff Steinsnyder. --------------------------- Newsgroups: comp.os.vxworks Subject: diab asm syntax questions... Date: 2 May 2002 18:15:42 -0700 From: jchen@tollbridgetech.com (john c) Organization: http://groups.google.com/ Message-ID: <1f1b48b5.0205021715.7f45e194@posting.google.com> Hi all... I am trying to use DIAB 4.4b compiler on PowerPC. Found out that it is VASTLY different from writing embedded assembly in GNU. Anyone have any experience in writing embedded assembly for DIAB? How would you translate this line from the GNU? In GNU, I write my function like so: unsigned short gt_ld_le16(const volatile unsigned short *addr) { unsigned short val; __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); return val; } I would write it in DIAB like this: asm unsigned short gt_ld_le16(volatile unsigned short *addr) { %reg addr lhbrx r3,0,addr blr } is that correct? Can I insert a '0' like in the example? how are storage mode 'con' used? Windriver's DIAB C/C++ Compiler User Manual gives a really crappy example (an example with little features) on how to write this code.... Just curious. I didn't realize that porting from GNU to DIAB compiler is such a big effort.... yikes. john --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Booting multiple interfaces Date: 2 May 2002 22:07:20 -0700 From: alimohd@logiceastern.com (Ali) Organization: http://groups.google.com/ Message-ID: References: "Dexter Nixon" wrote in message news:... > Hi, > > This was the typical booting example given in the manual. Here we are > configuring a Lance Ethernet card while booting itself with this > bootline > > ln(0, 0) bear:/usr/wpwr/target/config/mz7122/vxworks e=90.0.0.2 > b=91.0.0.2 h=100.0.0.4 g=90.0.0.3 u=papa pw=biggrump f=0x80 tn=goldilox > s=bear:/usr/papa/startup o= > > Suppose, i have multiple ethernet cards like this means, how can i > configure those interfaces. What is the way to do it. > > THanks, > Nix hi Nix look into your configNet.h file there you will find a table endDevTblEntry[] make your entry for multiple interfaces with different unit numbers and load strings.. To bring up other interfaces other than one you booted from look into the usrConfig.c where the line /*Boot from Ethernet is given*/ copy that code in some another function and call it from anywhere in ur bsp this will bring up your other interfaces. There is also a code snippet given in vxworks FAQs ehich does all this you can look into that also. regrds ali --------------------------- Newsgroups: comp.os.vxworks Subject: Re: #ifdef question Date: Fri, 03 May 2002 08:20:09 +0200 From: Leon Gubbels Organization: =?iso-8859-1?Q?Oc=E9?= Technologies B.V. Message-ID: <3CD22C19.B17AD373@oce.nl> References: <3CCFB06C.196EF97B@oce.nl> Leon Gubbels wrote: > > Hi, for compilation for target (VxWorks) we now use #ifndef _WIN32 with > the GCC compiler. But to be more specific this should be something like > #ifdef VXWORKS ... > I cannot find this statement in the manuals. Also the compiler > (cygnus-2.7.2-960126) doesn't recognize some variants I tried: > #ifdef _VXWORKS > #ifdef VXWORKS > #ifdef _vxworks > #ifdef vxworks > #ifdef _VxWorks > #ifdef VxWorks > > does anyone know what it should be? > > Thanx in advance. > > Leon (if you reply to my mail address, remove NOSPAM). Well, I had a lot of reactions and solutions. Thanks you all. At this time there is no #define for VxWorks in vxworks.h, but from what I understood, there probably will be one in the future. For now, I'll have to make my own. Leon (if you reply to my mail address, remove NOSPAM). --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Difference between RTOS and normal OS Date: 2 May 2002 23:54:49 -0700 From: vivekm@dd.nec.com.au (Vivek) Organization: http://groups.google.com/ Message-ID: <507efed5.0205022254.3db92d02@posting.google.com> References: <507efed5.0205012037.3e11728f@posting.google.com> "Yin, Yong" wrote in message news:... > priority-based preemptive schedule but in unix/linux also we can modify the process priority etc, then why arn't these are RTOS. ? Sorry, just a confusion . > > Vivek wrote in message > news:507efed5.0205012037.3e11728f@posting.google.com... > > Hi, > > > > I am looking for some concrete differences between RTOS and normal OS. > > Could any body point me to the right direction for this. > > > > Thanks and in advance > > > > Vivek --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Difference between RTOS and normal OS Date: 03 May 2002 00:26:25 -0700 From: Joe Chung Message-ID: References: <507efed5.0205012037.3e11728f@posting.google.com> <507efed5.0205022254.3db92d02@posting.google.com> You can find this info in lots of places: 1. The comp realtime FAQ http://www.faqs.org/faqs/realtime-computing/faq/ 2. Search for the term "rtos difference" in groups.google.com. - -jc - -- (apply 'concat (reverse (list "com" (char-to-string 46) "yahoo" (char-to-string 64) "joechung"))) --------------------------- Newsgroups: comp.os.vxworks Subject: m8260FccEnd driver transmit errors Date: Fri, 3 May 2002 09:34:04 +0200 From: "Achim Zimmer" Message-ID: I try to use the m6260FccEnd driver, supplied by WRS eith ADS8260 BSP to use with our own board. The connection is equal, but we use a 971 Phy chip instead of 970. The problem we are running in, is: The packets on the LAN the board transmits have in 80 % errors, means, there are 8 bytes repeated in the frame, and theoriginal 8 bytes are lost. Has anyone this problem too and there are any solutions ? Thanks in advance. Any hint is welcome. --------------------------- Newsgroups: comp.os.vxworks Subject: Network Interface Extensions in VxWorks (based on RFC2233) Date: 3 May 2002 01:41:03 -0700 From: ilyasg@yahoo.com (Ilyas G) Organization: http://groups.google.com/ Message-ID: Hi vxworkers, I am trying to add the rfc2233 into the SNMP agent, does anyone experienced this ? --------------------------- Newsgroups: comp.os.vxworks Subject: Default route outside subnet Date: 3 May 2002 09:21:19 GMT From: Johan Borkhuis Organization: Agere Systems Message-ID: I have the following problem. I have a device that gets an IP address and subnetmask, but also a gateway. These are fixed values. This gateway address however is outside of the subnet. So for example: IP address = 202.204.206.208:ffffff00 Gateway = 175.185.195.205 How can I configure the routing to do this? 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 Fri May 3 07:48:16 2002 From: "Sabarivel S" Date: Fri May 3 07:48:18 PDT 2002 Subject: Vxworks command for stack dump Could any of you kindly indicate way in which we can get the following inforamations using VxWorks commands. 1) Is there a way to dump the stack of any particular task after stopping it's execution(knowing what the stack size is). 2) Could we view register contents. 3) Is there a way to view contents of "n" bytes of memory, from a particular starting address. 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 Fri May 3 09:33:48 2002 From: Joel Katz Date: Fri May 3 09:33:50 PDT 2002 Subject: Re: Vxworks command for stack dump You don't specify whether you are looking for this information from a shell or from a program. I have responded for the case of a shell, which is the most common way to access the information you are looking for. If you type help from a vxWorks shell, you will see all of these items listed plus more. >Could any of you kindly indicate way in which we can get the following >inforamations using VxWorks commands. > >1) Is there a way to dump the stack of any particular task after stopping >it's execution(knowing what the stack size is). tt (taskID) dumps the stack for a particular task. You can look at the general state of all tasks using the i command and get additional info using the ti command. >2) Could we view register contents. ti shows the register contents for a task. mRegs lets you interactively query the contents of the registers from a shell. >3) Is there a way to view contents of "n" bytes of memory, from a particular >starting address. > d startAddress, number of bytes will display the contents of a block of memory -- Joel Katz, Staff Engineer --- (781)-280-1753 Affymetrix, 4G Crosby Drive, Bedford, MA 01730 From vxwexplo-errs@csg.lbl.gov Fri May 3 13:49:35 2002 From: Dave Olafson Date: Fri May 3 13:49:38 PDT 2002 Subject: m2Lib howdy we're developing a snmp agent (w/ enterprise specific mibs) for a vxworks platform, and we would like to support mib2 objects ... so we are using the vxworks-supplied m2Lib methods ... these methods work very well for most of the mib2 objects -- sysName, sysDescr, ip / tcp / udp tables, etc ... however, we get some odd behavior from the ifTable if we write the code using the "clean" approach -- with a call to m2*Delete() for every m2*Init() -- we get ifNumber = 2 (one ethernet & one loopback ... but all calls to m2IfTblEntryGet() return an error if we use a "less clean" approach -- removing some/all of the m2IfDelete() calls -- then we get reasonable responses from m2IfTblEntryGet() ... unfortunately, as soon as we reach the end of our "GetIfTableValue()" method (which calls m2IfTblEntryGet()), our task dies ... in the "clean" approach, the task does not die here's a subset of GetIfTableValue() { M2_INTERFACETBL ifTableEntryVar; if (m2IfInit(NULL, NULL) == OK) { ifTableEntryVar.ifIndex = 0; while (1) { if (m2IfTblEntryGet (M2_NEXT_VALUE, &ifTableEntryVar) == ERROR) break; CreateAndAddNewIfTableEntry (ifTableEntryVar.ifIndex, ifTableEntryVar.ifDescr, ... ); } m2IfDelete(); } } the code looks like it should work ... and it looks nearly identical to the code for the other m2Lib tables ... so i have no idea why i can't get data for this table -- or at least, i can't get it w/out killing the task any suggestions/pointers are welcome thanks, dave From vxwexplo-errs@csg.lbl.gov Sat May 4 04:03:13 2002 From: Vxworks Exploder Date: Sat May 4 04:03:15 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Sat May 4 04:03:09 PDT 2002 Subject: Re: Difference between RTOS and normal OS Subject: Bsp Testing Subject: Timer Driver Subject: Re: Bsp Testing Subject: Re: m8260FccEnd driver transmit errors Subject: Mac Address Subject: Re: Mac Address Subject: network statics Subject: Re: Mac Address Subject: Re: Mac Address Subject: Re: Interrupt Latency Subject: Re: Mac Address Subject: Re: Default route outside subnet Subject: Re: Bsp Testing Subject: Re: Mac Address Subject: Re: Mutual exclusion between same-priority tasks Subject: Re: Mac Address Subject: Re: How to reduce the size of ENVOY SNMP module Subject: Re: RTOS project Subject: Re: Difference between RTOS and normal OS Subject: Re: how to use different frequency to run tasks ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: Difference between RTOS and normal OS Date: Fri, 03 May 2002 13:10:21 GMT From: "doug dotson" Organization: Verio Message-ID: <1%vA8.18774$A%3.180066@ord-read.news.verio.net> References: <507efed5.0205012037.3e11728f@posting.google.com> Unix has always had priority-based preemptive scheduling but it doesn't perform well as an RTOS. doug "Yin, Yong" wrote in message news:aardvf$2bp$1@bcarh8ab.ca.nortel.com... > priority-based preemptive schedule > > Vivek wrote in message > news:507efed5.0205012037.3e11728f@posting.google.com... > > Hi, > > > > I am looking for some concrete differences between RTOS and normal OS. > > Could any body point me to the right direction for this. > > > > Thanks and in advance > > > > Vivek > > --------------------------- Newsgroups: comp.os.vxworks Subject: Bsp Testing Date: 3 May 2002 06:38:58 -0700 From: vxworks_research@hotmail.com (Anamika) Organization: http://groups.google.com/ Message-ID: <9e221d1.0205030538.4466b5b1@posting.google.com> Hi I am developing a BSP for PowerPC. I have written all the drivers and taken care about the memory initialization also. On burning the bootrom image to the ROM, I am getting some exceptions. I want to debug the code, which I hv written. Can anyone suggest the ways of debugging for BSP. I dont hv a JTAG. Thanking you in advance Regards Anamika --------------------------- Newsgroups: comp.os.vxworks Subject: Timer Driver Date: 3 May 2002 06:40:34 -0700 From: vxworks_research@hotmail.com (Anamika) Organization: http://groups.google.com/ Message-ID: <9e221d1.0205030540.59b4849a@posting.google.com> Hi I am writing a timer driver for vxWorks. I am having some doubts in calculating sysClkTicks. How is this sysClkTicks calculated. What all factors has to be taken into account for creating this sysClkTicks. Thanking you in advance Regards Anamika --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Bsp Testing Date: Fri, 03 May 2002 14:16:53 GMT From: "doug dotson" Organization: Verio Message-ID: References: <9e221d1.0205030538.4466b5b1@posting.google.com> Trial and error and alot of perseverence. I'm in the middle of debugging one now and it is slow and painful. Fortunately I have a bunch of LEDs I can talk to until I can get it to talk to a terminal. No JTAG debugger or emulator available for this beast either. doug "Anamika" wrote in message news:9e221d1.0205030538.4466b5b1@posting.google.com... > Hi > > I am developing a BSP for PowerPC. I have written all the drivers and > taken care about the memory initialization also. On burning the > bootrom image to the ROM, I am getting some exceptions. I want to > debug the code, which I hv written. Can anyone suggest the ways of > debugging for BSP. I dont hv a JTAG. > > Thanking you in advance > > Regards > Anamika --------------------------- Newsgroups: comp.os.vxworks Subject: Re: m8260FccEnd driver transmit errors Date: Fri, 3 May 2002 19:56:57 +0000 (UTC) From: "Graham Baxter" Organization: Graham Baxter (Software) Limited Message-ID: References: I had the same problem when we connected the transmit and receive clocks the wrong way round. They can be changed with software. My device was exactly oposite to the EST evaluation board. I hope this helps. - -- Regards, Graham Baxter Freelance Software Engineer Graham Baxter (Software) Limited EMAIL: gbaxter@NOSPAMbcs.org.uk "Achim Zimmer" wrote in message news:aatei0$ctprc$1@ID-102608.news.dfncis.de... > I try to use the m6260FccEnd driver, supplied by WRS eith ADS8260 BSP to use > with our own board. > The connection is equal, but we use a 971 Phy chip instead of 970. > > The problem we are running in, is: > The packets on the LAN the board transmits have in 80 % errors, means, there > are 8 bytes repeated in the frame, and theoriginal 8 bytes are lost. > > Has anyone this problem too and there are any solutions ? > > Thanks in advance. > Any hint is welcome. > > --------------------------- Newsgroups: comp.os.vxworks Subject: Mac Address Date: Fri, 3 May 2002 13:32:35 -0700 From: "MK" Organization: mike_texx@mail.ru Message-ID: Reply-To: "MK" > Message 3 in thread > From: gold@sdsu.edu (gold@sdsu.edu) > Subject: RE: MAC address > Newsgroups: comp.os.vxworks > View this article only > Date: 2000-09-15 10:00:05 PST > > In article <8ptasj$7io$1@overload.lbl.gov>, > Jim Way wrote: > Martin, > > > Where does vxWorks get the MAC address from when displaying it in > > the ifShow routine? > > > > Is it possible to modify this MAC address dynamically? > > > > Thanks, > > Martin Mayer > > It gets it from the interface structure it keeps around internally. It > doesn't call the driver everytime you do an ifShow() to get the MAC > address. The MAC address is squirreled away in the struct when the > interface is brought up. If you have the source to an END driver, you > see it gets put in the mib2tbl.ifPhysAddress.phyAddress or something via > the END_MIB_INIT() macro. The upper layer code also makes an ioctl call > with EIOCGADDR to get the MAC address, at which time it saves it. > Apparently you can also make an EIOCSADDR ioctl to set the MAC address > in the MIB, then your code would have to make sure it gets propagated > out to everywhere else. Here is the link to the full discussion of this subject: http://groups.google.com/groups?hl=en&threadm=8ptjtu%2460t%241%40nnrp1.deja. com&rnum=1&prev=/groups%3Fq%3DMac%2Baddress%2Bgroup:comp.os.vxworks%26hl%3De n%26selm%3D8ptjtu%252460t%25241%2540nnrp1.deja.com%26rnum%3D1 My problem is, that when I do an ifShow(), the MAC address that gets displayed is different than the value that I see in my END_DEVICE structure pDrvCtrl->end->mib2Tbl->ifPhysAddress->phyAddress Why is that? --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mac Address Date: 03 May 2002 16:56:29 -0400 From: Bill Pringlemeir Organization: Factory of the mind Message-ID: References: Sender: bpringlemeir@DeadDuck >>>>> "MK" == MK writes: [snip] MK> Here is the link to the full discussion of this subject: MK> http://groups.google.com/groups?hl=en&threadm=8ptjtu%2460t%241%40nnrp1. MK> deja.com&rnum=1&prev=/groups%3Fq%3DMac%2Baddress%2Bgroup:comp.os. MK> vxworks%26hl%3Den%26selm%3D8ptjtu%252460t%25241%2540nnrp1.deja.com%26 MK> rnum%3D1 A saner URL, "http://groups.google.com/groups?th=8d00f083cf27cbc9" MK> My problem is, that when I do an ifShow(), the MAC address that MK> gets displayed is different than the value that I see in my MK> END_DEVICE structure pDrvCtrl-> end->mib2Tbl->ifPhysAddress->phyAddress MK> Why is that? Because they are different. The discussion you sited says that the `ifShow' command call an ioctl() function with "EIOCGADDR" to retrieve the MAC address. I imagine that the MAC will be the same when the original ioctl() is called. The problem with this is that the driver might not know the MAC when the interface comes up. It might take a while to read out a MAC address. Dave Laight also mentioned that the info is in the "if_net[]" array. You could peruse through this to discover things. I have done the same thing with the file system array. It is possible that some bad code overwrites this stuff. You might have other weird effects if this happens. hth, Bill Pringlemeir. - -- Hydraulic pizza oven!! Guided missile! Herring sandwich! Styrofoam! Jayne Mansfield! Aluminum siding! Borax! Pedal pushers! Jukebox! vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: network statics Date: Fri, 03 May 2002 15:36:17 -0700 From: Graham Waters Organization: TRIUMF Message-ID: <3CD310E1.FD9E8C37@triumf.ca> Reply-To: Graham.Waters@triumf.ca I am trying to track down a persistent network communication problem on a system of about 20 mvme162. They all work together as part of a particle accelerator control system (EPICS). From time to time we lose connectivity between one or more of the 162's and a solaris host. We suspect network storms of as yet unknown origin. I am attemping to time correlate the occurences by logging network stats gleaned from "ifShow". I have also looked directly at data in the interface structure pointed to by the function "ifunit". Other than "packets received" none of the values gathered by the two methods seem to agree. As you can see ifShow reveals a number of input errors and no unknown protocol counts. The raw data show quite the reverse sort of. Can anyone tell me what the numbers really mean?. Does ifShow some how juggles the raw data or does it come from some other data source?. Thanks Graham. >ifShow "ei0" ei (unit number 0): Flags: (0x8063) UP BROADCAST MULTICAST ARP RUNNING Type: ETHERNET_CSMACD Internet address: 142.90.132.20 Broadcast address: 142.90.255.255 Netmask 0xffff0000 Subnetmask 0xffff0000 Ethernet address is 00:01:af:02:06:20 Metric is 0 Maximum Transfer Unit size is 1500 0 octets received 0 octets sent 649597 packets received 2028 packets sent 649597 unicast packets received 0 unicast packets sent 0 non-unicast packets received 2028 non-unicast packets sent 0 input discards 0 input unknown protocols 5644 input errors 0 output errors 0 collisions; 0 dropped > raw dta from structure "if_date" packets received on interface 649607 input errors on interface 0 packets sent on interface 6949 output errors on interface 0 collisions on csma interfaces 0 total number of octets received 74396849 total number of octets sent 484530 packets received via multicast 643742 packets sent via multicast 1879 dropped on input, this interface 0 destined for unsupported protocol 272741 +---------------------------------------------------------------------+ |Graham Waters, Control System Eng phone: (604)-222-1047 ext 6531 | |TRIUMF --- University of B.C, Fax: (604)-222-7307 | |Vancouver, BC, Canada e-mail: Graham.Waters@triumf.ca | | | |http://isacwserv.triumf.ca/homepage/graham01.html | +---------------------------------------------------------------------+ For every expert there is an equal and opposite expert - Arthur C Clark --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mac Address Date: Fri, 3 May 2002 15:48:43 -0700 From: "MK" Organization: mike_texx@mail.ru Message-ID: References: Reply-To: "MK" Something doesn't agree here :( For debugging purposes I changegd my ioctl , and now EIOCGADDR returns a pre-set fake MAC 0x050403020100, but the ifShow() still displays a different one. I do see 0x050403020100 in pDrvCtrl-> end->mib2Tbl->ifPhysAddress->phyAddress though... also, tell me please what is an if_net[] array and how do I access it? it doesn't seem to be a symbol in my build.... "Bill Pringlemeir" wrote in message news:uelgtlzlu.fsf@sympatico.ca... > >>>>> "MK" == MK writes: > > [snip] > > MK> Here is the link to the full discussion of this subject: > MK> http://groups.google.com/groups?hl=en&threadm=8ptjtu%2460t%241%40nnrp1. > MK> deja.com&rnum=1&prev=/groups%3Fq%3DMac%2Baddress%2Bgroup:comp.os. > MK> vxworks%26hl%3Den%26selm%3D8ptjtu%252460t%25241%2540nnrp1.deja.com%26 > MK> rnum%3D1 > > A saner URL, > > "http://groups.google.com/groups?th=8d00f083cf27cbc9" > > MK> My problem is, that when I do an ifShow(), the MAC address that > MK> gets displayed is different than the value that I see in my > MK> END_DEVICE structure pDrvCtrl-> end->mib2Tbl->ifPhysAddress->phyAddress > > MK> Why is that? > > Because they are different. The discussion you sited says that the > `ifShow' command call an ioctl() function with "EIOCGADDR" to retrieve > the MAC address. > > I imagine that the MAC will be the same when the original ioctl() is > called. The problem with this is that the driver might not know the > MAC when the interface comes up. It might take a while to read out a > MAC address. > > Dave Laight also mentioned that the info is in the "if_net[]" array. > You could peruse through this to discover things. I have done the > same thing with the file system array. It is possible that some bad > code overwrites this stuff. You might have other weird effects if > this happens. > > hth, > Bill Pringlemeir. > > -- > Hydraulic pizza oven!! Guided missile! Herring sandwich! Styrofoam! > Jayne Mansfield! Aluminum siding! Borax! Pedal pushers! Jukebox! > > vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mac Address Date: 03 May 2002 19:09:40 -0400 From: Bill Pringlemeir Organization: Factory of the mind Message-ID: References: Sender: bpringlemeir@DeadDuck >>>>> "MK" == MK writes: MK> Something doesn't agree here :( For debugging purposes I changegd MK> my ioctl , and now EIOCGADDR returns a pre-set fake MAC MK> 0x050403020100, but the ifShow() still displays a different MK> one. I do see 0x050403020100 in pDrvCtrl-> end-> mib2Tbl->ifPhysAddress->phyAddress though... Can you post the code for the ioctl() ? What is the ifShow MAC? MK> also, tell me please what is an if_net[] array and how do I MK> access it? it doesn't seem to be a symbol in my build.... I believe this will be the same as the "pDrvCtrl" that you are looking at. What version of vxWorks and what BSP/CPU are you using? Regards, Bill Pringlemeir. - -- Yow!! It's LIBERACE and TUESDAY WELD!! High on a HILL... driving a LITTLE CAR... I wanna be in that LITTLE CAR, too!! I wanna drive off with LIBBY and TUESDAY! vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Interrupt Latency Date: Sat, 4 May 2002 00:14:07 +0200 From: "VU Khac Tri \(home\)" Organization: FUNDP, Namur, Belgium Message-ID: References: Hi, I implement a driver for a PCI device, but never got so long delay. You may want to check whether this delay is caused by another ISR or not. Another running ISR may mask the interrupt line. Anyhow, I am surprise that a ISR performs so long operation. You can check the interrupt line using osciloscope. Tri. "Peter Kannegiesser" wrote in message news:aer2dug9ot75urttc2dabeg507f5v44p7t@4ax.com... > Hi all! > > We are using Tornado 2.02 and the related tools and have written a > driver for an D/A, A/D converter PCI card. The driver is implemented > using ioctl() calls. The PCI card generates interrupts at the end of > conversion. > The interrupt handler is connected using pciConnectInt and is > definitly the only one for that interrupt line. > Now we experience very looong delays from the interrupt signal on > the PCI bus until the handler gets called. According to the logic > analyzer, it takes between 5 and 15 milliseconds (with a strong > tendency to 15ms)-- and this supposed to be an OS for fast hard > realtime... > We are using the standard Pentium BSP on various PC's, from 166MHz > Pentium I to 2GHz Pentium 4. There seems to be no change that > depends on the processor speed. > > Has anybody seen similar problems or could offer at least an > explanation? > > TIA, > Peter > -- > keine sig --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mac Address Date: Fri, 3 May 2002 16:44:15 -0700 From: "MK" Organization: mike_texx@mail.ru Message-ID: References: Reply-To: "MK" int cs8900aIoctl ( END_OBJ * pDriverCtrl, /* device receiving command */ int cmd, /* ioctl command code */ caddr_t data /* command argument */ ) { END_DEVICE * pDrvCtrl=(END_DEVICE*)pDriverCtrl; int error = 0; long value; DRV_LOG (DRV_DEBUG_IOCTL, "cs8900aIoctl(%p,0x%x,0x%x)\r\n",pDriverCtrl,cmd,data, 4, 5, 6); switch (cmd) { case EIOCSADDR: DRV_LOG (DRV_DEBUG_IOCTL, "cs8900aIoctl(): EIOCSADDR\r\n", 1, 2, 3, 4, 5, 6); if (data == NULL) return (EINVAL); bcopy ((char *)data, (char *)END_HADDR(&pDrvCtrl->end), END_HADDR_LEN(&pDrvCtrl->end)); break; case EIOCGADDR: DRV_LOG (DRV_DEBUG_IOCTL, "cs8900aIoctl(): EIOCGADDR\r\n", 1, 2, 3, 4, 5, 6); if (data == NULL) return (EINVAL); //taken out 5/2/02. Instead of relying on mib2 structure we'll give it the real MAC // bcopy ((char *)END_HADDR(&pDrvCtrl->end),(char *)data,END_HADDR_LEN(&pDrvCtrl->end)); cs8900aEnd_eepromRd_macAddr(pDrvCtrl,data); //TEST CODE, gives MAC from non-volatile memory break; ..... ..... ...... //here is the code that fakes the retrieval of MAC (in reality this MAC will be stored in the non-volatile memory on the system) void cs8900aEnd_eepromRd_macAddr(END_DEVICE *pDrvCtrl,UINT8 *pBuf) { int count; for (count = 0; count<=5; count++) { *(pBuf+count) = count; } }/*get Ethernet MAC address from EEPROM*/ ifShow() MAC is cc:c5:17:00:ff:ff Actually, I am fighting a greater problem, than the ifShow()-displayed MAC. I just thought that solving this mystery would be a step in the right direction. THE REAL PROBLEM: The problem I'm facing is that I discovered using a network sniffer, that all the packets sent from my system have a source ethernet (MAC) address of ff:ff:ff:ff:ff:ff (broadcast). Obviously my driver is somehow misconfigured, and I am currently trying to find out how and where does it get the MAC address that it uses to build an ethernet frame. This problem is higher priority for me than the ifShow()Mac, but I felt they could be related . Thanks. "Bill Pringlemeir" wrote in message news:u8z70n80b.fsf@sympatico.ca... > >>>>> "MK" == MK writes: > > MK> Something doesn't agree here :( For debugging purposes I changegd > MK> my ioctl , and now EIOCGADDR returns a pre-set fake MAC > MK> 0x050403020100, but the ifShow() still displays a different > MK> one. I do see 0x050403020100 in pDrvCtrl-> > end-> mib2Tbl->ifPhysAddress->phyAddress though... > > Can you post the code for the ioctl() ? > What is the ifShow MAC? > > MK> also, tell me please what is an if_net[] array and how do I > MK> access it? it doesn't seem to be a symbol in my build.... > > I believe this will be the same as the "pDrvCtrl" that you are looking > at. What version of vxWorks and what BSP/CPU are you using? > > Regards, > Bill Pringlemeir. > > -- > Yow!! It's LIBERACE and TUESDAY WELD!! High on a HILL... driving a > LITTLE CAR... I wanna be in that LITTLE CAR, too!! I wanna drive > off with LIBBY and TUESDAY! > > vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Default route outside subnet Date: 3 May 2002 17:20:11 -0700 From: dave.moore@conexant.com (Dave Moore) Organization: http://groups.google.com/ Message-ID: References: Johan Borkhuis wrote in message news:... > I have the following problem. I have a device that gets an IP address and > subnetmask, but also a gateway. These are fixed values. This gateway > address however is outside of the subnet. So for example: > > IP address = 202.204.206.208:ffffff00 > Gateway = 175.185.195.205 > > How can I configure the routing to do this? > > Groeten, > Johan Your details are somewhat "sketchy", but you obviously have a misconfiguration problem. I am not sure what you mean by "fixed values". If they are compiled into the bootline, then fix them! If your "device" gets this information via DHCP then fix the configuration of the DHCP server. Bottom line is that to send an IP datagram off the local subnet you MUST go thru a router that has an interface on the subnet as your device. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Bsp Testing Date: 3 May 2002 17:59:17 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0205031659.6ccd1706@posting.google.com> References: <9e221d1.0205030538.4466b5b1@posting.google.com> Hello, > I am developing a BSP for PowerPC. I have written all the drivers and > taken care about the memory initialization also. On burning the > bootrom image to the ROM, I am getting some exceptions. I want to > debug the code, which I hv written. Can anyone suggest the ways of > debugging for BSP. I dont hv a JTAG. It might be well worth getting a JTAG debugger if there is one available for your board (or could be connected to it). That might save you some time in the long run. If that's not possible, here are some basic tips: 1) Do not use the compressed format image; it makes things more difficult to debug. In fact, I would suggest working not with the bootrom image at all; instead used a ROM version of vxWorks itself, and add the target tools to it (i.e. the target based shell, standalone symbol table etc). 2) Reduce the kernel to an absolute minimum. Take out everything except the serial port support (e.g. no network code, no disk support etc). Burn that image, and get it working. If it crashes at this point, you really are left with only LEDs on the board, or some external hardware assist (e.g. a JTAG solution). 3) Once the serial-only config works, add the network code and one driver. If this crashes, you should at least have an address where the failure was, and with some work you can find where in the code it occurred. If you are running a full kernel, with a bit of luck you'll have the target shell to help you. If the crash is proving difficult to find, leave the network code in the system, but remove the init calls for it. That way it will boot up to the target shell prompt, and you can make the calls from there to see which one fails. You should also be able to get a stack trace which might prove helpful. 4) As long as the code that is crashing is after the serial I/O init, you can use printf() or logMsg() to generate diagnostic messages. This is often useful in tracing calls and checking parameters. 5) For cases where the thing crashes and reboots, but you don't know where it is. Try using LEDs, or other output devices. If none of those are available, you can always add calls to reboot(1) into the init sequence to see how far you get (this is going to be a slow process with ROM though). HTH, John... --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mac Address Date: 03 May 2002 21:27:24 -0400 From: Bill Pringlemeir Organization: Factory of the mind Message-ID: References: Sender: bpringlemeir@DeadDuck >>>>> "MK" == MK writes: int cs8900aIoctl ( [snip...] Ok, so a cirrus logic CS 8900 a. You appear to be using older code? Can you go to the cirrus logic web sight and get a newer version? "http://www.cirrus.com/Drivers/ethernet/ethernet.cfm" Such as, "http://www.cirrus.com/pubs/drivers/ethernet/VxWorksBSD44v208.zip" "http://www.cirrus.com/pubs/drivers/ethernet/VxWorksENDv306.zip" MK> ifShow() MAC is cc:c5:17:00:ff:ff MK> Actually, I am fighting a greater problem, than the MK> ifShow()-displayed MAC. I just thought that solving this mystery MK> would be a step in the right direction. THE REAL PROBLEM: The MK> problem I'm facing is that I discovered using a network sniffer, MK> that all the packets sent from my system have a source ethernet MK> (MAC) address of ff:ff:ff:ff:ff:ff (broadcast). Obviously my You are really messed up! I have this chip-set on a custom ARM board. I can tell you some things about getting it to work. I use the END driver listed above. I think that your function is wrong. Set the value pDevice->enetAddr, in your function `cs8900a_endLoad' or `cs8900aStart'. I don't think that the function you gave will actually set the MAC. It is a rather old version, so I can not be sure... "http://groups.google.com/groups?as_q=cs8900a&as_ugroup=comp.os.vxworks" hth, Bill Pringlemeir. - -- ATTACKED BY CORVETTE. TORPEDOS. SINKING. U-758. - -- vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mutual exclusion between same-priority tasks Date: Sat, 04 May 2002 01:43:14 GMT From: "Dan P." Organization: Road Runner - EC Message-ID: References: <3CCFFB03.BA438CA4@attbi.com> "Dexter Nixon" wrote in message news:e8938175094e4207fdf83a329228f54a.76014@mygate.mailgate.org... > "Michael Patrick" wrote in message > news:3CCFFB03.BA438CA4@attbi.com > > > How many of you are avoiding the use of semaphores for protecting global > > variables because you think vxworks will schedule (with timeslicing > > disabled) same-priority tasks to always run to completion until they > > voluntarily give up context? > > > > I came across this design technique when reviewing a project in my > > company, and submitted a TSR to ask Windriver about it. I was worried, > > you see, that an interrupt to one task would return through the > > scheduler to a *different* same-priority task, so that same-priority > > tasks would NOT be mutually exclusive. PSOS can do this, for example. > > > ======================================================================= > > Hi Mike, > > Why do we need mutual exclusion between same priority tasks. I could not > find what is the relation between priority and mutual exclusion if both > tasks are not accessing a common memory location at their life time. > Kindly explain me on this. > > THanks, > Nix I would consider it a bad design to assume 2 tasks will always have the same priority. What if down the road it is necessary to make Task A a higher priority than Task B. It will now have to be redesigned to add mutual exclusion. That's assuming the developer who made the priority change is aware of the common memory location. Dan --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mac Address Date: Fri, 3 May 2002 18:59:58 -0700 From: "MK" Organization: mike_texx@mail.ru Message-ID: References: Reply-To: "MK" Thanks for the advice. I'll start integrating the new END driver immediately. Anything in particular that you feel I should know before embarking on this journey? "Bill Pringlemeir" wrote in message news:uznzgln2b.fsf@sympatico.ca... > >>>>> "MK" == MK writes: > > int cs8900aIoctl > ( > [snip...] > > Ok, so a cirrus logic CS 8900 a. You appear to be using older code? > Can you go to the cirrus logic web sight and get a newer version? > > "http://www.cirrus.com/Drivers/ethernet/ethernet.cfm" > > Such as, > > "http://www.cirrus.com/pubs/drivers/ethernet/VxWorksBSD44v208.zip" > "http://www.cirrus.com/pubs/drivers/ethernet/VxWorksENDv306.zip" > > MK> ifShow() MAC is cc:c5:17:00:ff:ff > > MK> Actually, I am fighting a greater problem, than the > MK> ifShow()-displayed MAC. I just thought that solving this mystery > MK> would be a step in the right direction. THE REAL PROBLEM: The > MK> problem I'm facing is that I discovered using a network sniffer, > MK> that all the packets sent from my system have a source ethernet > MK> (MAC) address of ff:ff:ff:ff:ff:ff (broadcast). Obviously my > > You are really messed up! I have this chip-set on a custom ARM board. > I can tell you some things about getting it to work. I use the END > driver listed above. > > I think that your function is wrong. Set the value pDevice->enetAddr, > in your function `cs8900a_endLoad' or `cs8900aStart'. I don't think > that the function you gave will actually set the MAC. It is a rather > old version, so I can not be sure... > > "http://groups.google.com/groups?as_q=cs8900a&as_ugroup=comp.os.vxworks" > > > hth, > Bill Pringlemeir. > > -- > ATTACKED BY CORVETTE. TORPEDOS. SINKING. U-758. > > -- > vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: Re: How to reduce the size of ENVOY SNMP module Date: Sat, 04 May 2002 03:15:51 GMT From: Les Cargill Organization: AT&T Worldnet Message-ID: <3CD35445.8123C2F0@worldnet.att.net> References: Jason wrote: > > Hello: > > I have successfully built the ENVOY SNMP module for PPC, but it quite > big (1.5MBytes). I hope to reduce it. Does any one have the idea ? > > One way I want to try is, among the 11 groups of MIB II, only include > a few of them, say the system and ip, exclude the rest 9 groups. But > how to do it exactly? > Use the "-exclude" option when invoking the MIB compiler. > Thanks in advance! - -- http://home.att.net/~lcargill --------------------------- Newsgroups: comp.os.vxworks Subject: Re: RTOS project Date: Sat, 04 May 2002 06:41:20 GMT From: "Gary M" Organization: AT&T Broadband Message-ID: References: Software only? What is the target platform? Any instrumentation involved? "Neena76" wrote in message news:e7fe924.0205010928.6816a190@posting.google.com... > Hello, > > I'm looking for a small embedded RTOS programming project for a class. If > anyone has some interesting ideas or could point me in the right > direction, I would appreciate it. > > Thanks, > Neena --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Difference between RTOS and normal OS Date: Sat, 04 May 2002 06:47:55 GMT From: "Gary M" Organization: AT&T Broadband Message-ID: References: <507efed5.0205012037.3e11728f@posting.google.com> <507efed5.0205022254.3db92d02@posting.google.com> An RTOS provides hard timing guarantees to perform various items of work (interrupt latency, context switches, system services), so that a designer can make a fairly accurate prediction of the system's deterministic behavior over time. A normal OS typically never provides hard timing guarantees, since that is not a requirement of a standard OS. "Vivek" wrote in message news:507efed5.0205022254.3db92d02@posting.google.com... > "Yin, Yong" wrote in message news:... > > priority-based preemptive schedule > but in unix/linux also we can modify the process priority etc, then > why arn't these are RTOS. ? > Sorry, just a confusion . > > > > > Vivek wrote in message > > news:507efed5.0205012037.3e11728f@posting.google.com... > > > Hi, > > > > > > I am looking for some concrete differences between RTOS and normal OS. > > > Could any body point me to the right direction for this. > > > > > > Thanks and in advance > > > > > > Vivek --------------------------- Newsgroups: comp.os.vxworks Subject: Re: how to use different frequency to run tasks Date: Sat, 04 May 2002 01:36:15 GMT From: "Dan P." Organization: Road Runner - EC Message-ID: References: <4U0A8.61867$kq1.2108928@news20.bellglobal.com> "Jianyuan HU" wrote in message news:4U0A8.61867$kq1.2108928@news20.bellglobal.com... > Hi, > > I am newie in VxWorks, but I have a lot of experience with AMX (RTOS) for > real time controller. I want to switch to VxWorks. > > Our robot controller has 5 tasks, different tasks has different priority and > different execution frequncy. > for instance, Task1 needs to run once every 1ms, while task2 run once every > 20ms, and so on. > > taskSpawn can't do this job, Watch Dog Timer can't do either, but I think > there should be some function to do this job, for AMX can do that easily, > only we need to do is to set the timer for each task. > taskDelay() should do the trick. Dan --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Sun May 5 04:03:08 2002 From: Vxworks Exploder Date: Sun May 5 04:03:10 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Sun May 5 04:03:05 PDT 2002 Subject: Re: how to use different frequency to run tasks Subject: FS: Force CPCI-731 LP PIII 500MHz 128MB CPCI Boards in Quantity --NEW-- Subject: semTake() after intLock() Subject: Re: semTake() after intLock() Subject: Re: Pipes and Message Queues....blocking? ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: how to use different frequency to run tasks Date: Sat, 04 May 2002 09:28:34 -0400 From: joe durusau Organization: BELLSOUTH.net Message-ID: <3CD3E202.2CFB329E@bellsouth.net> References: <4U0A8.61867$kq1.2108928@news20.bellglobal.com> "Dan P." wrote: > "Jianyuan HU" wrote in message > news:4U0A8.61867$kq1.2108928@news20.bellglobal.com... > > Hi, > > > > I am newie in VxWorks, but I have a lot of experience with AMX (RTOS) for > > real time controller. I want to switch to VxWorks. > > > > Our robot controller has 5 tasks, different tasks has different priority > and > > different execution frequncy. > > for instance, Task1 needs to run once every 1ms, while task2 run once > every > > 20ms, and so on. > > > > taskSpawn can't do this job, Watch Dog Timer can't do either, but I think > > there should be some function to do this job, for AMX can do that easily, > > only we need to do is to set the timer for each task. > > > > taskDelay() should do the trick. > > Dan If the O.P. wants delays as short as 1 mS, he's probably going to need hardware timers. It is generally not recommende to set the system time tick as short as 1 mS. Also, he needs to make sure he doesn't include networking in the target, because the network task is know to take up to 5mS at a time, and (usually) is unbreakable, so it could seriously screw him up. Speaking only for myself, Joe Durusau --------------------------- Newsgroups: comp.os.vxworks,comp.os.os9,comp.arch.bus.vmebus,comp.arch.embedded Subject: FS: Force CPCI-731 LP PIII 500MHz 128MB CPCI Boards in Quantity --NEW-- Date: 4 May 2002 13:01:05 -0700 From: wmcalpin@ghgcorp.com (Bill) Organization: http://groups.google.com/ Message-ID: Look here for more info on this board: http://www.forcecomputers.com/products/viewDetail.cfm?productTypeID=2&productID=45 Look here to download an Excel file with our inventory listing: http://www.sunharborsales.com/shsvmefs.htm We also have a selection of other CPCI and VME boards. - -Bill Sun Harbor Sales --------------------------- Newsgroups: comp.os.vxworks Subject: semTake() after intLock() Date: Sat, 04 May 2002 20:18:47 -0000 From: Dominique Pelle Organization: Cisco Systems Inc. Keywords: semTake intLock block Message-ID: Hi, I stumbled upon a piece of code which takes a VxWorks mutex semaphore within a intLock()/intUnlock() section: - --- 8< --- cut here --- 8< --- cut here --- 8< --- lockKey = intLock(); /* ... */ rc = semTake(mutexSem, timeout); if (rc == OK) { /* ... */ } else { /* ... */ } /* ... */ intUnlock(lockKey); - --- 8< --- cut here --- 8< --- cut here --- 8< --- I thought we could not block after intLock() (hence taking a semaphore was a no-no). However after looking at it, experimenting and reading the reference manual, I see that blocking after inLock() will schedule another task. Scheduler will unlock interrupts as part of restoration of the new task TCB. When the task that locked interrupts and blocked on semaphore becomes ready again (semaphore was given), it will be rescheduled and interrupts will be locked again. If that's correct, I suppose that the above code is somewhat equivalent to: - --- 8< --- cut here --- 8< --- cut here --- 8< --- lockKey = intLock(); /* ... */ intUnlock(lockKey); rc = semTake(mutexSem, timeout); lockKey = intLock(); if (rc == OK) { /* ... */ } else { /* ... */ } /* ... */ intUnlock(lockKey); - --- 8< --- cut here --- 8< --- cut here --- 8< --- Second piece of code has more overhead and will unlock interrupts even when semTake does not block. However, it does not take the semaphore in intLock. It makes it explicit that interrupts are unlocked. It should be better for interrupt latency as it always unlocks interrupts. I'd like to make sure that this is really what is happening. - -> Is it acceptable to take a mutex semaphore after intLock? (assuming we understand that interrupts might be temporarily unlocked as result) Taking a semaphore in intLock looks like a poor coding technique to me at best and buggy at worse. The piece of code has been running well so far but it does not mean it is correct. Thanks - -- Dominique Pelle He who re-invents the wheel, understands much better how a wheel works. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: semTake() after intLock() Date: Sun, 05 May 2002 05:41:33 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: Mon Ami, your observations are prefectly correct - technically thecode is OK, there is no harm in doing semTake while interrrupts are locked, except that semTake and possible rescheduling is too long an operation to be allowed while interrupts are locked, and will definitely disturb overall system responsiveness. intLock should only be used to protect a variable used by a task and ISR, while Mutex semaphore should be used to protect a variable used by more then one task. Both of those Mutex methods are mutually exclusive ;-)) "Dominique Pelle" wrote in message news:slrnad8gh7.dbe.dpelle@mssbu-build1.cisco.com... > Hi, > > I stumbled upon a piece of code which takes a VxWorks > mutex semaphore within a intLock()/intUnlock() section: > > --- 8< --- cut here --- 8< --- cut here --- 8< --- > lockKey = intLock(); > /* ... */ > > rc = semTake(mutexSem, timeout); > if (rc == OK) { > /* ... */ > } else { > /* ... */ > } > /* ... */ > intUnlock(lockKey); > --- 8< --- cut here --- 8< --- cut here --- 8< --- > > > I thought we could not block after intLock() (hence taking > a semaphore was a no-no). > > However after looking at it, experimenting and reading > the reference manual, I see that blocking after inLock() > will schedule another task. Scheduler will unlock > interrupts as part of restoration of the new task TCB. > > When the task that locked interrupts and blocked on > semaphore becomes ready again (semaphore was given), > it will be rescheduled and interrupts will be locked > again. > > If that's correct, I suppose that the above code is > somewhat equivalent to: > > --- 8< --- cut here --- 8< --- cut here --- 8< --- > lockKey = intLock(); > /* ... */ > > intUnlock(lockKey); > rc = semTake(mutexSem, timeout); > lockKey = intLock(); > if (rc == OK) { > /* ... */ > } else { > /* ... */ > } > > /* ... */ > intUnlock(lockKey); > --- 8< --- cut here --- 8< --- cut here --- 8< --- > > > Second piece of code has more overhead and will unlock > interrupts even when semTake does not block. However, it > does not take the semaphore in intLock. It makes it > explicit that interrupts are unlocked. It should be > better for interrupt latency as it always unlocks > interrupts. > > I'd like to make sure that this is really what is > happening. > > -> Is it acceptable to take a mutex semaphore after > intLock? (assuming we understand that interrupts > might be temporarily unlocked as result) > > Taking a semaphore in intLock looks like a poor coding > technique to me at best and buggy at worse. The piece > of code has been running well so far but it does not > mean it is correct. > > Thanks > > -- > Dominique Pelle > He who re-invents the wheel, understands much better how a wheel works. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Pipes and Message Queues....blocking? Date: Sun, 5 May 2002 10:01:04 +0000 (UTC) From: "Dexter Nixon" Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: References: <6755aee5.0203291212.6c96bd2b@posting.google.com> <6755aee5.0204080843.251faa68@posting.google.com> > 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. > Micheal, It should work, in VxWorks, pipes are implemented on top of message queues and the return value when open a pipe is a "fd". If you can use the fd with select means, what is the problem in using with a ioctl. It will work. status = ioctl (sFd, FIONBIO, &on); This is the right way to set it to Non-blocking mode. Thanks, Nix > Aufeidersehen, > > Whacked - -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Sun May 5 23:01:40 2002 From: Raghavan Date: Sun May 5 23:01:42 PDT 2002 Subject: ICMP Chekcsum error Hi, I have a x86 based board running vxWorks version 5.4. From this board, when I start a ping with odd number of bytes, the receiver complains that the ICMP checksum is wrong. I executed the same test with the loopback address "127.0.0.1". In this case, the vxWorks stack itself complains of checksum error. Has anyone had this problem? I am using Tornado version 2.0 Thanking in advance, Raghavan. From vxwexplo-errs@csg.lbl.gov Mon May 6 00:27:21 2002 From: Goldmann Andreas Date: Mon May 6 00:27:24 PDT 2002 Subject: Qt for 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. --------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1F4CF.69F29E00" ------_=_NextPart_001_01C1F4CF.69F29E00 Content-Type: text/plain; charset="ISO-8859-1" Hi people, Does anybody know, whether there is a Qt-port for VxWorks ? With regards, Andreas ------_=_NextPart_001_01C1F4CF.69F29E00 Content-Type: text/html; charset="ISO-8859-1" Qt for VxWorks

Hi people,
Does anybody know, whether there is a Qt-port for VxWorks ?

With regards, Andreas

------_=_NextPart_001_01C1F4CF.69F29E00-- --------------InterScan_NT_MIME_Boundary-- From vxwexplo-errs@csg.lbl.gov Mon May 6 02:01:16 2002 From: "Pradeepa Venkatswamy" Date: Mon May 6 02:01:18 PDT 2002 Subject: fclose and mempartfree in vxworks This is a multi-part message in MIME format. ------=_NextPartTM-000-dafbcebc-60cb-11d6-af80-0080c8048dde Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit HI, memPartFree reports invalid memory block in fclose call.I did "lkAddr" on the reported invalid block.It is pointing out only one global structure that been used.I don't know how to track this problem and fix it....I am not sure on the usage of "lkAddr" even.........This problem is not occurring frequently but it does occur once in a while...How to track and solve this problem??? Thank you, V.Pradeepa. ------=_NextPartTM-000-dafbcebc-60cb-11d6-af80-0080c8048dde Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-dafbcebc-60cb-11d6-af80-0080c8048dde-- From vxwexplo-errs@csg.lbl.gov Mon May 6 04:03:09 2002 From: Vxworks Exploder Date: Mon May 6 04:03:11 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Mon May 6 04:03:05 PDT 2002 Subject: Re: Mac Address Subject: Re: Pipes and Message Queues....blocking? Subject: Re: m8260FccEnd driver transmit errors Subject: Re: m8260FccEnd driver transmit errors Subject: Re: Bsp Testing Subject: Re: How to make a bootrom for hard disk without using target Subject: Re: Porting code from GNU compiler to DIAB compiler.... ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: Mac Address Date: 05 May 2002 19:15:29 -0400 From: Bill Pringlemeir Organization: Factory of the mind Message-ID: References: Sender: bpringlemeir@DeadDuck MK> Thanks for the advice. I'll start integrating the new END driver MK> immediately. Anything in particular that you feel I should know MK> before embarking on this journey? Read the newsgroup archives, "http://groups.google.com/groups?as_q=cs8900a&as_ugroup=comp.os.vxworks" Many of the problems mentioned have been fixed in the latest driver. I won't say it is the most efficient thing on the planet, but it isn't bad. Other than that, follow the instruction, read the comments. I don't think you need anymore help than that. Regards, Bill Pringlemeir. - -- Stealing a tetrodotoxin should not be done while wearing a girdle. Look for your spouse with one eye. Your programs will start washing clothes. Don't forget to exercise. You'll later be abused. vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Pipes and Message Queues....blocking? Date: 5 May 2002 23:02:07 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0205052202.1c9684bd@posting.google.com> References: <6755aee5.0203291212.6c96bd2b@posting.google.com> <6755aee5.0204080843.251faa68@posting.google.com> "Dexter Nixon" wrote in message news:... > > 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. > > > Micheal, > > It should work, in VxWorks, pipes are implemented on top of message > queues and the return value when open a pipe is a "fd". If you can use > the fd with select means, what is the problem in using with a ioctl. It > will work. Not necessarily. Just because a device implements some ioctl() functions doesn't mean it will do them all. In fact, the pipe driver does not implement FIONBIO so you will not be able to use the line below to get non-blocking behaviour. > status = ioctl (sFd, FIONBIO, &on); Of course, if you need non-blocking pipes they are pretty trivial to implement yourself... you can even do more unix-like stream based pipes if you don't like the standard ones. HTH, John... --------------------------- Newsgroups: comp.os.vxworks Subject: Re: m8260FccEnd driver transmit errors Date: Mon, 6 May 2002 10:21:14 +0200 From: "Achim Zimmer" Message-ID: References: Thats fine -> Thay can be changed with software !! But I dont know why, because this driver is only delivered as Object, no source ! We found that it could be, we have to invert transmit clock, but I dont know how, because the driver always overwrites my register reconfiguration. Thanks "Graham Baxter" schrieb im Newsbeitrag news:aauq28$ahb$1@knossos.btinternet.com... > I had the same problem when we connected the transmit and receive clocks the > wrong way round. > > They can be changed with software. > > My device was exactly oposite to the EST evaluation board. > > I hope this helps. > > -- > > Regards, > > Graham Baxter > Freelance Software Engineer > Graham Baxter (Software) Limited > EMAIL: gbaxter@NOSPAMbcs.org.uk > > > > "Achim Zimmer" wrote in message > news:aatei0$ctprc$1@ID-102608.news.dfncis.de... > > I try to use the m6260FccEnd driver, supplied by WRS eith ADS8260 BSP to > use > > with our own board. > > The connection is equal, but we use a 971 Phy chip instead of 970. > > > > The problem we are running in, is: > > The packets on the LAN the board transmits have in 80 % errors, means, > there > > are 8 bytes repeated in the frame, and theoriginal 8 bytes are lost. > > > > Has anyone this problem too and there are any solutions ? > > > > Thanks in advance. > > Any hint is welcome. > > > > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: m8260FccEnd driver transmit errors Date: Mon, 6 May 2002 10:21:51 +0200 From: "Achim Zimmer" Message-ID: References: sorry, i dont know HOW to change !! "Achim Zimmer" schrieb im Newsbeitrag news:ab5ef3$f68hn$1@ID-102608.news.dfncis.de... > Thats fine -> Thay can be changed with software !! > > But I dont know why, because this driver is only delivered as Object, no > source ! > > We found that it could be, we have to invert transmit clock, but I dont know > how, because the driver always overwrites my register reconfiguration. > > Thanks > > "Graham Baxter" schrieb im Newsbeitrag > news:aauq28$ahb$1@knossos.btinternet.com... > > I had the same problem when we connected the transmit and receive clocks > the > > wrong way round. > > > > They can be changed with software. > > > > My device was exactly oposite to the EST evaluation board. > > > > I hope this helps. > > > > -- > > > > Regards, > > > > Graham Baxter > > Freelance Software Engineer > > Graham Baxter (Software) Limited > > EMAIL: gbaxter@NOSPAMbcs.org.uk > > > > > > > > "Achim Zimmer" wrote in message > > news:aatei0$ctprc$1@ID-102608.news.dfncis.de... > > > I try to use the m6260FccEnd driver, supplied by WRS eith ADS8260 BSP to > > use > > > with our own board. > > > The connection is equal, but we use a 971 Phy chip instead of 970. > > > > > > The problem we are running in, is: > > > The packets on the LAN the board transmits have in 80 % errors, means, > > there > > > are 8 bytes repeated in the frame, and theoriginal 8 bytes are lost. > > > > > > Has anyone this problem too and there are any solutions ? > > > > > > Thanks in advance. > > > Any hint is welcome. > > > > > > > > > > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Bsp Testing Date: Mon, 06 May 2002 10:26:48 +0200 From: Emmanuel Herbreteau Organization: SEPRO Robotique (BEP) Message-ID: <3CD63E48.846B3384@sepro-robotique.com> References: <9e221d1.0205030538.4466b5b1@posting.google.com> Anamika wrote: > I am developing a BSP for PowerPC. .../... > debug the code, which I hv written. Can anyone suggest the ways of > debugging for BSP. I dont hv a JTAG. Hi, Is there a BDM port available on your board ? There are several BDM debugger available for PowerPC nowadays. Except if you are working for free, it's definitively needed to reduce the development costs. Regards Emmanuel --------------------------- Newsgroups: comp.os.vxworks Subject: Re: How to make a bootrom for hard disk without using target Date: 6 May 2002 02:51:21 -0700 From: forbes_bofeng@sohu.com (forbes) Organization: http://groups.google.com/ Message-ID: <7d3efabf.0205060151.5f52e710@posting.google.com> References: <7d3efabf.0204291800.ba00f5a@posting.google.com> <20020429.225027.619290071.18588@socal.rr.com> Hello: Ken Hayber! First, thank your help! Partition g of my target disk is my first partition on the drive. What I want to ask you is my way that make a bootrom for hard disk is right? If my way is wrong, please tell me a right way, thank you very much! _/_/_/_/ _/ _/_/_/_/ _/ forbes_bofeng@sohu.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Porting code from GNU compiler to DIAB compiler.... Date: Tue, 30 Apr 2002 08:23:24 GMT From: "Ofer Goren" Organization: Verio Message-ID: References: <1f1b48b5.0204291841.72d0f7db@posting.google.com> Hi. We had the same problem. First, make sure you are using diab 4.4b, not 4.4a. Then, read the release notes of this patch. In short: here is an example of a define that was changed to support diab: #define MODULE_DEBUG(id,level,format,... ) \ moduleDebug(id, level, "<%s %d>: " ## format, __FILE__ ,\ __LINE__ , __VA_ARGS__) and here is the original, gnu-like line: #define MODULE_DEBUG(id,level,format,args... ) \ moduleDebug(id, level, "<%s %s %d>: " ## format, __FILE__ , \ __FUNCTION__ , __LINE__ , ## args ) as you can see, the magic is in the __VA_ARGS__, which was added only in 4.4b. Pay attention, that the macro __FUNCTION__ is not supported by diab. only by GNU. Again, the question arise, does windriver REALLY support diab compiler, or just saying they do? HTH, Ofer, Israel. "john c" wrote in message news:1f1b48b5.0204291841.72d0f7db@posting.google.com... > Yikes. I'm not big on BSPs or Compilers so I have a quick question. > We are currently using GNU compiler with vxWorks to compile our code > for PPC 750. I'm trying to switch over to the diab compiler and the > diab compiler is complaining about the following lines: > > #define TRACE(a, b, args...) sys_Trace(a,b,__FILE__,__LINE__,## args) > #define V5_TRACE(a, b, args...) V5_Sys_Trace(a,b,## args) > #define TRACEF1(a, b, ig, crv, args...) if(chk_TraceF1(ig, crv)) > sys_Trace(a,b,__FILE__,__LINE__,## args) > #define DTRACE(a, b, args...) > > and the diab compiler is complaining about.... > "/vobs/software/components/inc/sys_ext.h", line 738: error (dcc:2291): > illformed macro parameter list in macro `TRACE' > "/vobs/software/components/inc/sys_ext.h", line 739: error (dcc:2291): > illformed macro parameter list in macro `V5_TRACE' > "/vobs/software/components/inc/sys_ext.h", line 740: error (dcc:2291): > illformed macro parameter list in macro `TRACEF1' > "/vobs/software/components/inc/sys_ext.h", line 745: error (dcc:2291): > illformed macro parameter list in macro `DTRACE' > > any ideas? > john --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Tue May 7 04:03:12 2002 From: Vxworks Exploder Date: Tue May 7 04:03:15 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Tue May 7 04:03:08 PDT 2002 Subject: WindView : Post-Mortem configuration Subject: [AE] boot debug help Subject: 0x770b0f8 (tSnmpd): memPartFree: invalid block 0x7fff1d0 in partition 0x202cfc. Subject: Re: semTake() after intLock() Subject: Re: Bsp Testing Subject: Re: How to make a bootrom for hard disk without using target Subject: Re: Bsp Testing Subject: PMC SPAN Cards Subject: Symbol table error Subject: Re: bootrom not loading kernel Subject: Re: m8260FccEnd driver transmit errors Subject: Re: Symbol table error Subject: Re: Symbol table error Subject: Using The Parallel Port on the MVME2700 for External Interrupts Subject: Re: [AE] boot debug help Subject: Re: 0x770b0f8 (tSnmpd): memPartFree: invalid block 0x7fff1d0 in partition 0x202cfc. Subject: Re: Interrupt Latency ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: WindView : Post-Mortem configuration Date: 6 May 2002 05:03:52 -0700 From: nassim15@aol.com (Nassim Benzerrouk) Organization: http://groups.google.com/ Message-ID: <5cbe966c.0205060403.43a3b446@posting.google.com> Hi VxWorkers, I've some difficulties to configure the Post-Mortem configuration on Tornado2, the help given in the WindView GUI is not clear enough; so I want the steps necessary to configure this mode. Thanks in advance, ___________________________________________ | Nassim Benzerrouk | | OneAccess | /) +33 1 41 87 70 06 (\ / ) Email:nassim.benzerrouk@oneaccess-net.com ( \ _( (|___________________________________________) ) /> (((\ \) /,) / ) / //))/ (\\\\ \_/ / \ \_/ ///// \ / \ / \ _/ \_ / --/ /----------------------------------------\ \---- / / \ \ --------------------------- Newsgroups: comp.os.vxworks Subject: [AE] boot debug help Date: 6 May 2002 05:38:31 -0700 From: strick@hiwaay.net (BS) Organization: http://groups.google.com/ Message-ID: I am currently working on getting on of our new Pentium3 boards to boot with VxWorks AE. We already have several of our legacy P3 boards booting just fine within AE, but for some reason I never get very far in the boot process with this new board. There several differences in this new board and the legacy boards, but I have been told that these should not affect me in any way? (DOS will boot just fine.) I assume that I am not getting to the bootShellInit() part of the boot process because I never see the boot logo. At this point the only know 'problems' with this new board is that we are unable to read from COM1, however we can write with no problem. All I am interested with at this point is to get to the [VxWorks AE Boot] prompt. I am currently just using the Pentium3 base BSP delivered with VxWorks AE until I can get futher in this process to start testing the custom Question: Does anyone have any advise about how I can debug this boot process so that I can detect where I am failing. I am not very familiar with the romInit.s, romStart.c, and sysALib.s files. Thank you for any help. --------------------------- Newsgroups: comp.os.vxworks Subject: 0x770b0f8 (tSnmpd): memPartFree: invalid block 0x7fff1d0 in partition 0x202cfc. Date: 6 May 2002 05:56:12 -0700 From: gowill@ako.net (eunjeong) Organization: http://groups.google.com/ Message-ID: <4c98a82e.0205060456.60969abb@posting.google.com> I'm facing this error code. "0x770b0f8 (tSnmpd): memPartFree: invalid block 0x7fff1d0 in partition 0x202cfc." I didn't alloc(or free) of memory. When return from sub-funtion to main-funtion, this error generated. I have no idea this problem. please help me..... --------------------------- Newsgroups: comp.os.vxworks Subject: Re: semTake() after intLock() Date: Mon, 6 May 2002 10:00:15 -0400 From: Keith Arner Organization: Marconi Message-ID: References: Reply-To: Keith Arner On Sat, 4 May 2002, Dominique Pelle wrote: > I stumbled upon a piece of code which takes a VxWorks > mutex semaphore within a intLock()/intUnlock() section: > > --- 8< --- cut here --- 8< --- cut here --- 8< --- > lockKey = intLock(); > /* ... */ > > rc = semTake(mutexSem, timeout); > if (rc == OK) { > /* ... */ > } else { > /* ... */ > } > /* ... */ > intUnlock(lockKey); > --- 8< --- cut here --- 8< --- cut here --- 8< --- > > I thought we could not block after intLock() (hence taking > a semaphore was a no-no). > > However after looking at it, experimenting and reading > the reference manual, I see that blocking after inLock() > will schedule another task. Scheduler will unlock > interrupts as part of restoration of the new task TCB. Blocking from ISR context is a no-no. Blocking with interrupts locked is possible, and has the semantics that you discovered. The thing to realize is that being in ISR context and having interrupts locked are independant of one another. > When the task that locked interrupts and blocked on > semaphore becomes ready again (semaphore was given), > it will be rescheduled and interrupts will be locked > again. > > If that's correct, I suppose that the above code is > somewhat equivalent to: > > --- 8< --- cut here --- 8< --- cut here --- 8< --- > lockKey = intLock(); > /* ... */ > > intUnlock(lockKey); > rc = semTake(mutexSem, timeout); > lockKey = intLock(); > if (rc == OK) { > /* ... */ > } else { > /* ... */ > } > > /* ... */ > intUnlock(lockKey); > --- 8< --- cut here --- 8< --- cut here --- 8< --- The main difference here is what happens if the semaphore is available on the call to semTake(). In the first case, interrupts never get unlocked. In the second case, interrupts do get unlocked for a short period, which may open up race conditions, depending on what the intLock() is attempting to protect against. If your timeout is non-zero, and the semaphore is unavailable, the same race conditions occur in both the cases. However, if the timeout is zero, and the semaphore is unavailable, the first case will not have race conditions, but the second case will. > -> Is it acceptable to take a mutex semaphore after > intLock? (assuming we understand that interrupts > might be temporarily unlocked as result) > > Taking a semaphore in intLock looks like a poor coding > technique to me at best and buggy at worse. The piece > of code has been running well so far but it does not > mean it is correct. "Poor coding technique" is probably a fair statement. The key is to identify what the intLock() in there for in the first place. What it it attempting to protect against? Can the same protection be gained by using another semaphore, or even taskLock()? Keith --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Bsp Testing Date: Mon, 6 May 2002 16:30:54 +0200 From: "Rene Straub" <_remove_rene.straub@yetnet.ch> Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: References: <9e221d1.0205030538.4466b5b1@posting.google.com> Hey folks, I had the same pleasure some days ago. I helped myself with some LEDs (LEDs are cool for debugging) and by writing debug data to low memory addresses. Using a BDM device I could read the data back after the code run (and crashed). If your code crashes start by placing a end-less loop in the code. If it doesn't crash anymore the problem must be behind the loop. Then find out why it crashed and fix it. Repeat this step until it works... Hope this helps - - Rene "doug dotson" wrote in message news:pZwA8.18788$A%3.180255@ord-read.news.verio.net... > Trial and error and alot of perseverence. I'm in the middle of > debugging one now and it is slow and painful. Fortunately I have > a bunch of LEDs I can talk to until I can get it to talk to a > terminal. No JTAG debugger or emulator available for this > beast either. > > doug > > "Anamika" wrote in message > news:9e221d1.0205030538.4466b5b1@posting.google.com... > > Hi > > > > I am developing a BSP for PowerPC. I have written all the drivers and > > taken care about the memory initialization also. On burning the > > bootrom image to the ROM, I am getting some exceptions. I want to > > debug the code, which I hv written. Can anyone suggest the ways of > > debugging for BSP. I dont hv a JTAG. > > > > Thanking you in advance > > > > Regards > > Anamika > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: How to make a bootrom for hard disk without using target Date: Mon, 6 May 2002 18:33:08 +0200 From: "Werner Schiendl" Message-ID: <3cd6b03c$1@brateggebdc5.br-automation.co.at> References: <7d3efabf.0204291800.ba00f5a@posting.google.com> <20020429.225027.619290071.18588@socal.rr.com> <7d3efabf.0205060151.5f52e710@posting.google.com> Hi, I'm not 100% sure, but IIRC the vxsys utility for DOS encodes the drive letter somehow into the boot sector. We had the problem long time ago, and since then use to boot up with a DOS floppy the first time and write it with that onto the harddisk (vxsys runs from pure DOS, but not Windows 95 - where a additional invocation of the 'lock' command is required before). hth Werner "forbes" wrote in message news:7d3efabf.0205060151.5f52e710@posting.google.com... > Hello: > Ken Hayber! First, thank your help! > Partition g of my target disk is my first partition on the drive. > What I want to ask you is my way that make a bootrom for hard disk is > right? If my way > is wrong, please tell me a right way, thank you very much! > > _/_/_/_/ > _/ > _/_/_/_/ > _/ forbes_bofeng@sohu.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Bsp Testing Date: Mon, 6 May 2002 10:28:35 -0700 From: "Hwa Jin Bae" Organization: PSO Systems Inc Message-ID: References: <9e221d1.0205030538.4466b5b1@posting.google.com> I have used various available mechanisms to debug low level BSP issues. For example, LEDs, PromICE, BDM, JTAG, Logic analyser, scope, Rom emulator, serial port, shared memory (over bus), etc. And of course, a lot of patience and tenacity help. Finally, some good luck. - -- Hwa Jin Bae mailto:hjb@pso.com http://www.pso.com --------------------------- Newsgroups: comp.os.vxworks Subject: PMC SPAN Cards Date: 6 May 2002 10:42:14 -0700 From: vouxx@yahoo.com (vouxx) Organization: http://groups.google.com/ Message-ID: <86d4086f.0205060942.56df994e@posting.google.com> Hi, I am using PMC SPAN Card for first time and am not sure how to proceed. I fixed it. Defined INCLUDE_PMC_SPAN and build a new bootrom. I could not find and PCI_AUTOCONFIG macro (as mentioned in some earlier posts, the we have to define it). All I found was this comment. mv2600.h:02f,17jul98,tm added PCI_ID_PRI_LAN, PCI_ID_SEC_LAN for PCI AutoConfig The PMC Card comes witha driver that detects the card and gives this information: pcifuncno : 0 pcibusno : 0 pcideviceno : 16 pciaddr : 0x02000000 span : 0x01000000 intline : 0x19 what do these figures mean? Do I need to set some other macros like P2P_IO_BASE, P2P_PREF_MEM_BASE (is this pciaddr?), P2P_NONPREF_MEM_BASE etc? Any links documents giving more information will be welcome. a brief paragraph on vxworks and pmc span and addressing will be great!! thanks --------------------------- Newsgroups: comp.os.vxworks Subject: Symbol table error Date: Mon, 6 May 2002 12:05:25 -0600 From: "cervello" Organization: University of Utah Message-ID: Hi all. I hope this isn't too elementary... We are using an MVME 162-20 board (Motorola 68040 processor) running VxWorks 5.4. We develop our applications in ControlShell 7.0d. When attempting to load our applications onto the board, we get the following error (repeated many times, with xxxx replaced by many different symbol names): loadAoutLib error: can't add 'xxxx" to system symbol table - error = 0x110001. We have been loading the applications using: ld 1, 0, "vxw2_slave_IO.INCLUDED_PACKAGED.lo" Can anyone point me in the right direction on this? Any idea what the error number represents? Thanks, Mark --------------------------- Newsgroups: comp.os.vxworks Subject: Re: bootrom not loading kernel Date: Mon, 06 May 2002 13:24:37 -0500 From: Dinker Charak Organization: Fermi National Accelerator Laboratory Message-ID: <3CD6CA65.70B7C2FD@fnal.gov> References: <3CC9DF96.621B2327@fnal.gov> <3CD017DF.8EF3935@fnal.gov> It turn out that I had installed June 2000 driver patch over the T2CP4 patch. There was some confusion about what came first (I had asked about it on comp.os.vxworks earlier). That patch made some bad updates in libPPC604gnuvx.a. Using the libPPC604gnuvx.a from T2CP4 takes care of the problem. Thanks Dinker Dinker Charak wrote: > > Johan Borkhuis 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? > > Yes I have. Actually, I tried this "n dc" on another board that boots up > properly. It also gave the same result. So am not sure what thsi command > does or coveys. > > Dinker --------------------------- Newsgroups: comp.os.vxworks Subject: Re: m8260FccEnd driver transmit errors Date: Mon, 6 May 2002 19:04:27 +0000 (UTC) From: "Graham Baxter" Organization: Graham Baxter (Software) Limited Message-ID: References: Achim, You can do everything in: sysFccEnetEnable() in sysLib.c where you set the correct port pins. The register I changed for clock routes was something like: M8260_CMXFCR - -- Regards, Graham Baxter Freelance Software Engineer Graham Baxter (Software) Limited (VxWorks and pSOS BSP's) EMAIL: gbaxter@NOSPAMbcs.org.uk "Achim Zimmer" wrote in message news:ab5eg7$f3404$1@ID-102608.news.dfncis.de... > sorry, i dont know HOW to change !! > > "Achim Zimmer" schrieb im Newsbeitrag > news:ab5ef3$f68hn$1@ID-102608.news.dfncis.de... > > Thats fine -> Thay can be changed with software !! > > > > But I dont know why, because this driver is only delivered as Object, no > > source ! > > > > We found that it could be, we have to invert transmit clock, but I dont > know > > how, because the driver always overwrites my register reconfiguration. > > > > Thanks > > > > "Graham Baxter" schrieb im Newsbeitrag > > news:aauq28$ahb$1@knossos.btinternet.com... > > > I had the same problem when we connected the transmit and receive clocks > > the > > > wrong way round. > > > > > > They can be changed with software. > > > > > > My device was exactly oposite to the EST evaluation board. > > > > > > I hope this helps. > > > > > > -- > > > > > > Regards, > > > > > > Graham Baxter > > > Freelance Software Engineer > > > Graham Baxter (Software) Limited > > > EMAIL: gbaxter@NOSPAMbcs.org.uk > > > > > > > > > > > > "Achim Zimmer" wrote in message > > > news:aatei0$ctprc$1@ID-102608.news.dfncis.de... > > > > I try to use the m6260FccEnd driver, supplied by WRS eith ADS8260 BSP > to > > > use > > > > with our own board. > > > > The connection is equal, but we use a 971 Phy chip instead of 970. > > > > > > > > The problem we are running in, is: > > > > The packets on the LAN the board transmits have in 80 % errors, means, > > > there > > > > are 8 bytes repeated in the frame, and theoriginal 8 bytes are lost. > > > > > > > > Has anyone this problem too and there are any solutions ? > > > > > > > > Thanks in advance. > > > > Any hint is welcome. > > > > > > > > > > > > > > > > > > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Symbol table error Date: Mon, 6 May 2002 21:35:14 +0200 From: "Werner Schiendl" Message-ID: <3cd6daea$1@brateggebdc5.br-automation.co.at> References: Hi Mark, your friend for all kind of error numbers in VxWorks is printErrno: - -> printErrno 0x110001 0x110001 = S_memLib_NOT_ENOUGH_MEMORY value = 0 = 0x0 So something is running out of memory. If you download from the Tornado shell and believe there must be enough memory free on the target (memShow will clarify), consider that the Target Server has a memory pool on it's on. You can set the size of the target server memory pool in the target server configuration. (select 'Memory Cache Size' in 'Target Server Properties' dropdown list to see the setting). hth Werner "cervello" wrote in message news:ab6glf$t6i$1@coward.ks.cc.utah.edu... > Hi all. I hope this isn't too elementary... > > We are using an MVME 162-20 board (Motorola 68040 processor) running VxWorks > 5.4. We develop our applications in ControlShell 7.0d. When attempting to > load our applications onto the board, we get the following error (repeated > many times, with xxxx replaced by many different symbol names): > > loadAoutLib error: can't add 'xxxx" to system symbol table - error = > 0x110001. > > We have been loading the applications using: > ld 1, 0, "vxw2_slave_IO.INCLUDED_PACKAGED.lo" > > > Can anyone point me in the right direction on this? Any idea what the error > number represents? > > Thanks, > > Mark > > > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Symbol table error Date: Mon, 06 May 2002 20:57:22 GMT From: Minh.Lang@jpl.nasa.gov Organization: Jet Propulsion Laboratory - Pasadena CA Message-ID: <3cd6edbb.15890789@news.jpl.nasa.gov> References: On Mon, 6 May 2002 12:05:25 -0600, "cervello" wrote: >Hi all. I hope this isn't too elementary... > >We are using an MVME 162-20 board (Motorola 68040 processor) running VxWorks >5.4. We develop our applications in ControlShell 7.0d. When attempting to >load our applications onto the board, we get the following error (repeated >many times, with xxxx replaced by many different symbol names): > >loadAoutLib error: can't add 'xxxx" to system symbol table - error = >0x110001. > >We have been loading the applications using: >ld 1, 0, "vxw2_slave_IO.INCLUDED_PACKAGED.lo" > > >Can anyone point me in the right direction on this? Any idea what the error >number represents? > >Thanks, > >Mark 0x110001 is "not enough memory" error. Have you checked your free memory? -Minh- --------------------------- Newsgroups: comp.os.vxworks Subject: Using The Parallel Port on the MVME2700 for External Interrupts Date: Mon, 06 May 2002 17:01:28 -0700 From: Henry Valtier Organization: Jet Propulsion Laboratory - Pasadena CA Message-ID: <3CD71957.FBFD06FD@jpl.nasa.gov> Hello All, Has anyone ever successfully programmed the parallel port on the Motorola MVME2700 to detect and service external interrupts? If you could steer me toward some coding examples (preferably in C), I'd be most appreciative. Thanks in Advance, Henry --------------------------- Newsgroups: comp.os.vxworks Subject: Re: [AE] boot debug help Date: 6 May 2002 22:01:03 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0205062101.7204bfb6@posting.google.com> References: Hello, Don't have much in the way of useful hints for debugging Pentium bootApps, but something you might like to do first is isolate the differences between the working boards and the non-working ones. Obvious places to start are in the BIOS - see what the settings are there, and if any of them could be causing the problem. After that, what is the chipset on the new boards? Perhaps that is causing the problem somehow. After that, try to find something you can use to mark progress (perhaps an LED somewhere, or for a PC type platform you can even write to the video memory - doesn't have to be anything more than just something appearing somewhere on the screen). Look in the bootApp project at the prjConfig.c file - this contains the boot sequence - by adding progress markers to this you can get some idea of progress through the sequence. Finally, since you mentioned that you were having problems with the serial port on the board anyway, you might like to make the changes to the bootApp configuration to use the screen + keyboard console instead of COM1. That might come up if the problem relates somehow to the serial devices and/or PCI/ISA handling on the board (perhaps an unrecognised bridge?). HTH, John... strick@hiwaay.net (BS) wrote in message news:... > I am currently working on getting on of our new Pentium3 boards to > boot with VxWorks AE. We already have several of our legacy P3 boards > booting just fine within AE, but for some reason I never get very far > in the boot process with this new board. There several differences in > this new board and the legacy boards, but I have been told that these > should not affect me in any way? (DOS will boot just fine.) > > I assume that I am not getting to the bootShellInit() part of the boot > process because I never see the boot logo. At this point the only know > 'problems' with this new board is that we are unable to read from > COM1, however we can write with no problem. All I am interested with > at this point is to get to the [VxWorks AE Boot] prompt. > > I am currently just using the Pentium3 base BSP delivered with VxWorks > AE until I can get futher in this process to start testing the custom > > Question: Does anyone have any advise about how I can debug this boot > process so that I can detect where I am failing. I am not very > familiar with the romInit.s, romStart.c, and sysALib.s files. > > Thank you for any help. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: 0x770b0f8 (tSnmpd): memPartFree: invalid block 0x7fff1d0 in partition 0x202cfc. Date: Tue, 07 May 2002 06:27:33 GMT From: "drdiags" Organization: AT&T Broadband Message-ID: References: <4c98a82e.0205060456.60969abb@posting.google.com> Hello Eunjeong, What version of Tornado/vxWorks for what architecture? Are you using Envoy or the WindNet SNMP (if this is a T2.x.x release). Where you doing a SNMP walk when this happened? Try doing a 'tt tSmnpd" ' to see where the daemon crashed. This could be numerous possibilities, so try narrowing it down a little. (FYI, also look on WindSurf for SNMP SPRs.) Good luck... "eunjeong" wrote in message news:4c98a82e.0205060456.60969abb@posting.google.com... > I'm facing this error code. > > "0x770b0f8 (tSnmpd): memPartFree: invalid block 0x7fff1d0 in partition 0x202cfc." > > I didn't alloc(or free) of memory. > When return from sub-funtion to main-funtion, this error generated. > > I have no idea this problem. > please help me..... --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Interrupt Latency Date: Tue, 7 May 2002 08:27:46 +0000 (UTC) From: "Dexter Nixon" Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: <64bc9b8e235f63f48777ddb57d7752ac.76014@mygate.mailgate.org> References: Hi Tri, I have a general doubt. I am studying about the performance of VxWorks with respect to interrupts. While am reading a article, i found like, when the highest priority task is running on a VxWorks target and a interrupt is recieved and the ISR is executed means, will there be rescheduling after the ISR exits. THey have mentioned two cases like with rescheduling and without. Is this a configurable parameter. Kindly clear me. THanks. Nix "VU Khac Tri \(home\)" wrote in message news:aavcvd$f6nn@hermes.fundp.ac.be > Hi, > I implement a driver for a PCI device, but never got so long delay. You may > want to check whether this delay is caused by another ISR or not. Another > running ISR may mask the interrupt line. Anyhow, I am surprise that a ISR > performs so long operation. > You can check the interrupt line using osciloscope. > Tri. > > > - -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Wed May 8 04:03:10 2002 From: Vxworks Exploder Date: Wed May 8 04:03:12 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Wed May 8 04:03:07 PDT 2002 Subject: Re: network statics Subject: ethernet on sandpoint ppc755 Subject: Re: Envoy version in WindNet SNMP Subject: Re: network statics Subject: How can I see the 'target.nr' file? Subject: Re: network statics Subject: Malformed boot sector. Offset 0, value ... beause of dosFsVolFormat fails error 0x16 Subject: Re: How can I see the 'target.nr' file? Subject: Update the 2.0 BSP to 2.1.1 failed! Subject: Re: Envoy version in WindNet SNMP Subject: Re: Malformed boot sector. Offset 0, value ... beause of dosFsVolFormat fails error 0x16 Subject: Re: How can I see the 'target.nr' file? Subject: Anyone using target Intel x86 (not PENTIUM) ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: network statics Date: Tue, 7 May 2002 10:09:48 -0700 From: "Hwa Jin Bae" Organization: PSO Systems Inc Message-ID: References: <3CD310E1.FD9E8C37@triumf.ca> It looks like ifShow() has changed a little over the years. Still, it should be getting the same data from the same "struct ifnet" data structure for a given network interface. A lot of network drivers do not keep track of statistics properly. This is partly caused by the introduction of END driver. Because the END model "hides" the underlying BSD model, a lot of programmers do not pay attention to original BSD structures like "struct ifnet". Each END driver has its own "struct ifnet". It is in "ifnet" the statistics like input, output, error counts are kept. For example, unlike BSD sample drivers, the END sample driver does not illustrate how to account for things like ifp->if_ierror. Input error. Partly it is also due to lack of clear documentation about how statistics are kept. In BSD (and in END) some of the statistic values are kept in "common" routines that are not directly visible to users. Driver writers should be advised so that correct statistics are kept. - -- Hwa Jin Bae mailto:hjb@pso.com http://www.pso.com --------------------------- Newsgroups: comp.os.vxworks Subject: ethernet on sandpoint ppc755 Date: Tue, 07 May 2002 19:05:03 GMT From: "Mike Hanna" Organization: Road Runner - NC Message-ID: Reply-To: "Mike Hanna" I'm having a problem getting the bootrom to use the ethernet card plugged into a Motorola Sandpoint board. I am able to build a bootrom that I can configure via the serial port. I am attempting to boot via Ethernet/TFTP, but am unable to get the ethernet connection working. I have a Kingston KNE100TX board that has a Digital (Intel labeled) 21143 chip on it. When the bootrom attempts to load the file, nothing comes out of the ethernet port and the sandpoint hangs. There are no error messages and the board doesn't reboot. If I remove the board and retry, it reboots after a while and tries it again. I'm wondering if I need a different Ethernet card. The target.nr file for the sp7400 bsp has a list of supported chips followed by a list of ethernet cards. Do I need one of those? Maybe a different one? Any help would be appreciated. - -- Mike Hanna Vapid Software www.vapidsoftware.com --------------------------- Newsgroups: comp.protocols.snmp,comp.os.vxworks Subject: Re: Envoy version in WindNet SNMP Date: Tue, 07 May 2002 20:44:11 GMT From: Pete Flugstad Organization: MediaCom High Speed Internet Message-ID: <3CD83CFD.1060203@nospam.icon-labs.com> References: 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) > ------------------------ > Wind River Systems Emissary SNMP MIB Compiler, version 7.0. > ------------------------ > Host : Windows2000 > Target : VxSim for Windows (VxWorks target simulator) > ========================================================= > > > > How can we know which version of Envoy (8.x, 9.x, etc) is used in WindNet SNMP ? The file envoy/h/version.h should have the Envoy version in it: #define ENVOY_MAJOR_VERSION 9 #define ENVOY_MINOR_VERSION 1 #define ENVOY_BETA_VERSION 0 I would expect it to be the same as the provided emissary version (i.e. 7.0.0). Pete Flugstad Icon Labs --------------------------- Newsgroups: comp.os.vxworks Subject: Re: network statics Date: 7 May 2002 15:19:20 -0700 From: yli@transdimension.com (liyi) Organization: http://groups.google.com/ Message-ID: References: <3CD310E1.FD9E8C37@triumf.ca> "Hwa Jin Bae" wrote in message news:... > It looks like ifShow() has changed a little over the years. Still, it > should be getting the same data from the same "struct ifnet" data structure > for a given network interface. > > A lot of network drivers do not keep track of statistics properly. This is > partly caused by the introduction of END driver. Because the END model > "hides" the underlying BSD model, a lot of programmers do not pay attention > to original BSD structures like "struct ifnet". Each END driver has its own > "struct ifnet". It is in "ifnet" the statistics like input, output, error > counts are kept. For example, unlike BSD sample drivers, the END sample > driver does not illustrate how to account for things like ifp->if_ierror. > Input error. Partly it is also due to lack of clear documentation about > how statistics are kept. In BSD (and in END) some of the statistic values > are kept in "common" routines that are not directly visible to users. > Driver writers should be advised so that correct statistics are kept. Hi, I just tried to compile the template netif code and do the attachment, but the ifShow showed "can't read "interfacesMasksTbl(0x77620c)": no such element in array". Any idea about this? Thanks, - -> ifShow fei (unit number 0): Flags: (0x8063) UP BROADCAST RUNNING ARP MULTICAST Type: ETHERNET_CSMACD Internet address: 192.160.1.46 Broadcast address: 192.160.1.255 Netmask 0xffffff00 Subnetmask 0xffffff00 Ethernet address is 88:cd:18:00:00:02 Metric is 0 Maximum Transfer Unit size is 1500 5556 packets received; 6 packets sent 5556 multicast packets received 5 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 can't read "interfacesMasksTbl(0x77620c)": no such element in array --------------------------- Newsgroups: comp.os.vxworks Subject: How can I see the 'target.nr' file? Date: Tue, 7 May 2002 19:16:20 -0400 From: "Jin-Woo Lee" Organization: Cornell University Message-ID: Sender: jl206@cornell.invalid (on 128.253.249.182) Hi, I'm working on mv2400 target board. There is 'target.nr' file in the BSP directory. What is the way to see it? Thanks, --------------------------- Newsgroups: comp.os.vxworks Subject: Re: network statics Date: 7 May 2002 17:05:40 -0700 From: yli@transdimension.com (liyi) Organization: http://groups.google.com/ Message-ID: References: <3CD310E1.FD9E8C37@triumf.ca> "Hwa Jin Bae" wrote in message news:... > It looks like ifShow() has changed a little over the years. Still, it > should be getting the same data from the same "struct ifnet" data structure > for a given network interface. > > A lot of network drivers do not keep track of statistics properly. This is > partly caused by the introduction of END driver. Because the END model > "hides" the underlying BSD model, a lot of programmers do not pay attention > to original BSD structures like "struct ifnet". Each END driver has its own > "struct ifnet". It is in "ifnet" the statistics like input, output, error > counts are kept. For example, unlike BSD sample drivers, the END sample > driver does not illustrate how to account for things like ifp->if_ierror. > Input error. Partly it is also due to lack of clear documentation about > how statistics are kept. In BSD (and in END) some of the statistic values > are kept in "common" routines that are not directly visible to users. > Driver writers should be advised so that correct statistics are kept. Hi, I just tried to compile the template netif code and do the attachment, but the ifShow showed "can't read "interfacesMasksTbl(0x77620c)":no such element in array". Any idea about this? Somebody told me to set the ip address before doing the ifShow and still not work. :( Thanks, -> ifShow fei (unit number 0): Flags: (0x8063) UP BROADCAST RUNNING ARP MULTICAST Type: ETHERNET_CSMACD Internet address: 192.160.1.46 Broadcast address: 192.160.1.255 Netmask 0xffffff00 Subnetmask 0xffffff00 Ethernet address is 88:cd:18:00:00:02 Metric is 0 Maximum Transfer Unit size is 1500 5556 packets received; 6 packets sent 5556 multicast packets received 5 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 can't read "interfacesMasksTbl(0x77620c)": no such element in array --------------------------- Newsgroups: comp.os.vxworks Subject: Malformed boot sector. Offset 0, value ... beause of dosFsVolFormat fails error 0x16 Date: 7 May 2002 18:15:35 -0700 From: harisha1@hotmail.com (Harish) Organization: http://groups.google.com/ Message-ID: <3b36664c.0205071715.5057dd84@posting.google.com> Can anybody tell me why dosFsVolFormat() fails (error 0x16) and how to solve this?? What does" Malformed boot sector. Offset 0, value 21" means?? sincerely, thanks a lot. I'm using these dos FS 2.0 API's dosFsInit (5); ramDrv (); ramHandle = ramDevCreate(0,512,400,4000,0); dosFsMkfsOptionsSet(DOS_OPT_LONGNAMES); dosFsMkfs("/RamDrive/",ramHandle); I know couple APIS calls are not required. Here is the output on serial port.. RAM DISK drive created OK 81eb9340!, ramHandle 0x81eb9340 Retrieved old volume params with %100 confidence: Volume Parameters: FAT type: FAT16, sectors per cluster 1 10 FAT copies, 0 clusters, 36876 sectors per FAT Sectors reserved 8193, hidden 0, FAT sectors 368760 Root dir entries 224, sysId (null) , serial number a2ce082 Label:" XE$ I " ... Disk with 4000 sectors of 512 bytes will be formatted with: Volume Parameters: FAT type: FAT16, sectors per cluster 2 10 FAT copies, 2147481497 clusters, 8 sectors per FAT Sectors reserved 8193, hidden 0, FAT sectors 80 Root dir entries 224, sysId VXEXT1.1, serial number a2ce082 Label:" XE$ I " ... dosFsVolFormat: format failed, errno=0x16 DOS file system created OK! x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 22, value 36876. 0x81ca2990 (FileTask): dosFsLib.c : Try to accept other boot block copy... 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 248. 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 21. 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 2. 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 96. 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 0. 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 8. 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 24. .. ..... goes on... for a while... --------------------------- Newsgroups: comp.os.vxworks Subject: Re: How can I see the 'target.nr' file? Date: Tue, 07 May 2002 19:23:44 -0700 From: "Michael R. Kesti" Organization: MK Associates Message-ID: <3CD88C30.4E881288@gv.net> References: Reply-To: mkesti@gv.net Jin-Woo Lee wrote: >Hi, > >I'm working on mv2400 target board. >There is 'target.nr' file in the BSP directory. What is the way to see it? > >Thanks, target.nr is a plain text file that can be viewed and edited using any text editor. "nr" stands for "nroff", a page description "language" not unlike HTML. - -- ======================================================================== 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: Update the 2.0 BSP to 2.1.1 failed! Date: 7 May 2002 20:17:49 -0700 From: xiaohua.zhang@163.com (xiaohua) Organization: http://groups.google.com/ Message-ID: I use the Tornado 2.1.1 for Arm now and I use the Tornado 2.0 for Arm. Now I still use the 2.0 bootrom. It is not need to build a new for 2.1.1. But now I meet the problem - ----------------------------------------------------------- ... ... Starting at 0x600 - -------------------------------------------------------------- Then it stop. Anyone can give me some advice about updating the 2.0 to 2.1.1 for Arm? - ------------------------------------- - --------Any post is welcome!--------- - ------------------------------------- - ------------------------------------- - --------Any post is welcome!--------- - ------------------------------------- --------------------------- Newsgroups: comp.protocols.snmp,comp.os.vxworks Subject: Re: Envoy version in WindNet SNMP Date: Wed, 8 May 2002 08:18:19 +0200 From: "Alex Vinokur" Organization: Scopus Message-ID: References: <3CD83CFD.1060203@nospam.icon-labs.com> "Pete Flugstad" wrote in message news:3CD83CFD.1060203@nospam.icon-labs.com... | 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) | > ------------------------ | > Wind River Systems Emissary SNMP MIB Compiler, version 7.0. | > ------------------------ | > Host : Windows2000 | > Target : VxSim for Windows (VxWorks target simulator) | > ========================================================= | > | > | > | > How can we know which version of Envoy (8.x, 9.x, etc) is used in WindNet SNMP ? | | The file envoy/h/version.h should have the Envoy version in it: | | #define ENVOY_MAJOR_VERSION 9 | #define ENVOY_MINOR_VERSION 1 | #define ENVOY_BETA_VERSION 0 | | I would expect it to be the same as the provided emissary | version (i.e. 7.0.0). | | Pete Flugstad | Icon Labs | 1. The envoy directory is missing under $WIND_BASE and its subdirectories. 2. The $WIND_BASE/target/h/snmp/envoy.h file contains no relevant information. The $WIND_BASE/target/h/snmp/install.h file contains the following line : #define INSTALL_ENVOY 1 3. No file contains ENVOY_MAJOR_VERSION, ENVOY_MINOR_VERSION, ENVOY_BETA_VERSION 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: Malformed boot sector. Offset 0, value ... beause of dosFsVolFormat fails error 0x16 Date: Wed, 08 May 2002 07:03:59 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: <3b36664c.0205071715.5057dd84@posting.google.com> Harish, The problem you are facing is that when memory is allocated for the RAMdisk, for some reason contains what seems to be a valid DossFs boot block, and strangely, dosFsVolFormat() accepts the values of this boot block to be valid, but they are obviously invalid, (e.g. 10 FAT copies is much too much), then dosFs fails to mount the drives because of these values. Also, note that some of the calls you are using, e.g. dosFsMkfs() are not native DosFs 2.0 calls, but are backward-copmatibility routines, emulating dosFs 1.0 calls. I suggest that you avoid the backward compatibility calls, and call dosFsVolFormat() directly, and specifically specify the option which wipes the volume blank before formatting, instructing it to disregard any values it may find on the RAMdisk (see manual for details). - - Leonid "Harish" wrote in message news:3b36664c.0205071715.5057dd84@posting.google.com... > Can anybody tell me why dosFsVolFormat() fails (error 0x16) > and how to solve this?? > What does" Malformed boot sector. Offset 0, value 21" means?? > > sincerely, > thanks a lot. > > > I'm using these dos FS 2.0 API's > dosFsInit (5); > ramDrv (); > ramHandle = ramDevCreate(0,512,400,4000,0); > dosFsMkfsOptionsSet(DOS_OPT_LONGNAMES); > dosFsMkfs("/RamDrive/",ramHandle); > > I know couple APIS calls are not required. Here is the output on serial port.. > > RAM DISK drive created OK 81eb9340!, ramHandle 0x81eb9340 > Retrieved old volume params with %100 confidence: > Volume Parameters: FAT type: FAT16, sectors per cluster 1 > 10 FAT copies, 0 clusters, 36876 sectors per FAT > Sectors reserved 8193, hidden 0, FAT sectors 368760 > Root dir entries 224, sysId (null) , serial number a2ce082 > Label:" XE$ I " ... > Disk with 4000 sectors of 512 bytes will be formatted with: > Volume Parameters: FAT type: FAT16, sectors per cluster 2 > 10 FAT copies, 2147481497 clusters, 8 sectors per FAT > Sectors reserved 8193, hidden 0, FAT sectors 80 > Root dir entries 224, sysId VXEXT1.1, serial number a2ce082 > Label:" XE$ I " ... > dosFsVolFormat: format failed, errno=0x16 > DOS file system created OK! > > x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 22, value 36876. > 0x81ca2990 (FileTask): dosFsLib.c : Try to accept other boot block copy... > 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 248. > 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 21. > 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 2. > 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 96. > 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 0. > 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 8. > 0x81ca2990 (FileTask): dosFsLib.c : Malformed boot sector. Offset 0, value 24. > > .. > ..... goes on... for a while... --------------------------- Newsgroups: comp.os.vxworks Subject: Re: How can I see the 'target.nr' file? Date: 8 May 2002 07:20:56 GMT From: Johan Borkhuis Organization: Agere Systems Message-ID: References: <3CD88C30.4E881288@gv.net> "Michael R. Kesti" wrote: > Jin-Woo Lee wrote: > >>Hi, >> >>I'm working on mv2400 target board. >>There is 'target.nr' file in the BSP directory. What is the way to see >>it? >> >>Thanks, > > target.nr is a plain text file that can be viewed and edited using any > text editor. "nr" stands for "nroff", a page description "language" > not unlike HTML. But you can also use the files in docs directory. The target.nr file is converted to HTML. You can find it if you open the docs\books.html, go to BSP reference and then select your BSP. 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: Anyone using target Intel x86 (not PENTIUM) Date: 8 May 2002 02:00:18 -0700 From: heiko_elger@arburg.com (Heiko Elger) Organization: http://groups.google.com/ Message-ID: <97e6274e.0205080100.3e7e1d13@posting.google.com> Hello, who is using a target Intel x86 (386, 486, not Pentium, PcPentium Pro) with Tornado 2.0.x? I'm asking cause in the new Tornado Version 2.2 (VxWorks 5.5) only Intel processors Pentium, Pentium II, Pentium III, Pentium IV will be supported. (the new official roadmap of WRS) For customer with support contract who uses no Pentium or above there will be no ugrade posibbility and only minor bug fixes for Tornado 2.0.x I'm asking cause we have support contract and we are using x86 and we have no possibility to use a Pentium next time. We think that cause of our support contract based on a Intel 80486 processor WRS must support x86 in Tornado 2.2. We want to know whether there are other projects out there which are based on Intel x86 or whether we are the only company using x86. best regards Heiko Elger --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Wed May 8 23:15:03 2002 From: "Jayakara N" Date: Wed May 8 23:15:06 PDT 2002 Subject: How to get route table entries?? This is a multi-part message in MIME format. ------=_NextPart_000_0024_01C1F74C.F20D0800 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I am implementing MIB-II IP group in vxworks. For m2IpRouteTblEntryGet = i need all destination ip address of the route table. How can i read route table entries?=20 Thanks in advance=20 Regard Jaykar N Ionic Microsystem Banglore =20 Note: Unless otherwise noted, the information provided by this mail does not represent the official statements or views of Ionic Microsystems. Privileged/Confidential information may be contained in this message and may be subject to legal privilege. Access to this e-mail by anyone other than the intended is unauthorised. If you are not the intended recipient (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver this message (or any part of its contents ) to anyone or take any action in reliance on it. In such case, you should destroy this message, and notify us immediately. If you have received this email in error, please notify us immediately by e-mail or telephone and delete the e-mail from any computer. If you or your employer does not consent to internet e-mail messages of this kind, please notify us immediately. All reasonable precautions have been taken to ensure no viruses are present in this e-mail. As our company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use. ------=_NextPart_000_0024_01C1F74C.F20D0800 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
 I am implementing MIB-II IP group = in vxworks.=20 For m2IpRouteTblEntryGet  i need all destination ip address of the = route=20 table.
How can i read route table entries? =
Thanks in advance
Regard
Jaykar N
Ionic Microsystem
Banglore
 

Note:
Unless otherwise noted, the information provided by this mail does not represent the official statements or views of Ionic Microsystems.
Privileged/Confidential information may be contained in this message and may be subject to legal privilege. Access to this e-mail by anyone other than the intended is unauthorised. If you are not the intended recipient (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver this message (or any part of its contents ) to anyone or take any action in reliance on it. In such case, you should destroy this message, and notify us immediately. If you have received this email in error, please notify us immediately by e-mail or telephone and delete the e-mail from any computer.
If you or your employer does not consent to internet e-mail messages of this kind, please notify us immediately. All reasonable precautions have been taken to ensure no viruses are present in this e-mail. As our company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use.
------=_NextPart_000_0024_01C1F74C.F20D0800-- From vxwexplo-errs@csg.lbl.gov Thu May 9 01:52:15 2002 From: "srujana R" Date: Thu May 9 01:52:17 PDT 2002 Subject: Re: How to get route table entries?? Hi, m2IpRouteTblEntryGet( ) routine compares routing table entries to the address specified by the ipRouteDest member of the pIpRouteTblEntry structure, and retrieves an entry if a match is found. If the address is not specified, the m2IpRouteTblEntryGet( ) retrives the first entry in the routing table. The remaining entries in the routing table can be retreived by doing a SNMP GetNext request on the recieved entry from m2IpRouteTblEntryGet( ) call. The subsequent GetNext requests will retreive the remaining entries in the routing table sequentially. Regards Srujana On Thu, 09 May 2002 the vxWorks Users Group Exploder wrote : >Submitted-by vxwexplo-errs@csg.lbl.gov Wed May 8 23:15:03 >2002 >Submitted-by: "Jayakara N" > > >This is a multi-part message in MIME format. > >------=_NextPart_000_0024_01C1F74C.F20D0800 >Content-Type: text/plain; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable > >Hi all, > I am implementing MIB-II IP group in vxworks. For >m2IpRouteTblEntryGet = >i need all destination ip address of the route table. >How can i read route table entries?=20 >Thanks in advance=20 >Regard >Jaykar N >Ionic Microsystem >Banglore > >=20 > > >Note: > Unless otherwise noted, the information provided by this mail >does not represent the official statements or views of Ionic >Microsystems. > Privileged/Confidential information may be contained in this >message and may be subject to legal privilege. Access to this >e-mail by anyone other than the intended is unauthorised. If you >are not the intended recipient (or responsible for delivery of >the message to such person), you may not use, copy, distribute or >deliver this message (or any part of its contents ) to anyone or >take any action in reliance on it. In such case, you should >destroy this message, and notify us immediately. If you have >received this email in error, please notify us immediately by >e-mail or telephone and delete the e-mail from any computer. >If you or your employer does not consent to internet e-mail >messages of this kind, please notify us immediately. All >reasonable precautions have been taken to ensure no viruses are >present in this e-mail. As our company cannot accept >responsibility for any loss or damage arising from the use of >this e-mail or attachments we recommend that you subject these to >your virus checking procedures prior to use. > >------=_NextPart_000_0024_01C1F74C.F20D0800 >Content-Type: text/html; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable > > > >http-equiv=3DContent-Type> > > > > >
Hi all,
>
 I am implementing MIB-II IP >group = >in vxworks.=20 >For m2IpRouteTblEntryGet  i need all destination ip address of >the = >route=20 >table.
>
How can i read route table >entries? = >
>
Thanks in advance >
>
Regard
>
Jaykar N
>
Ionic Microsystem
>
Banglore
>
 
>
>Note:
> Unless otherwise noted, the information provided by this mail >does not represent the official statements or views of Ionic >Microsystems.
> Privileged/Confidential information may be contained in this >message and may be subject to legal privilege. Access to this >e-mail by anyone other than the intended is unauthorised. If you >are not the intended recipient (or responsible for delivery of >the message to such person), you may not use, copy, distribute or >deliver this message (or any part of its contents ) to anyone or >take any action in reliance on it. In such case, you should >destroy this message, and notify us immediately. If you have >received this email in error, please notify us immediately by >e-mail or telephone and delete the e-mail from any >computer.
>If you or your employer does not consent to internet e-mail >messages of this kind, please notify us immediately. All >reasonable precautions have been taken to ensure no viruses are >present in this e-mail. As our company cannot accept >responsibility for any loss or damage arising from the use of >this e-mail or attachments we recommend that you subject these to >your virus checking procedures prior to use.
> > >------=_NextPart_000_0024_01C1F74C.F20D0800-- > > > >********** > > This is a user group mailing list for vxWorks related >topics > see http://www-vxw.lbl.gov/vxworks for posting and >subscription info _________________________________________________________ Click below to visit monsterindia.com and review jobs in India or Abroad http://monsterindia.rediff.com/jobs From vxwexplo-errs@csg.lbl.gov Thu May 9 04:03:18 2002 From: Vxworks Exploder Date: Thu May 9 04:03:21 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Thu May 9 04:03:13 PDT 2002 Subject: Exception in dosFsMkfs() Subject: Re: Exception in dosFsMkfs() Subject: Re: On S_iosLib_INVALID_FILE_DESCRIPTOR Subject: Re: Exception in dosFsMkfs() Subject: on "No rule to make" Subject: Re: Exception in dosFsMkfs() Subject: Multiple Kill() executions @ interrupt level. Subject: TrueFFS optional??? Subject: Re: TrueFFS optional??? Subject: Kernel WorkQ Overflow problem. Subject: Re: TrueFFS optional??? Subject: Re: Bsp Testing Subject: Converting Tornado 1.0.1 BSP to Tornado 2 Subject: Re: Kernel WorkQ Overflow problem. Subject: Re: Kernel WorkQ Overflow problem. Subject: Re: Kernel WorkQ Overflow problem. Subject: Re: Anyone using target Intel x86 (not PENTIUM) Subject: Re: Interrupt Latency Subject: Re: How can I see the 'target.nr' file? Subject: Creating a bootable VxWorks image Subject: Re: Envoy version in WindNet SNMP Subject: Re: TrueFFS optional??? Subject: VxMP and POSIX? Subject: Re: on "No rule to make" Subject: Code for unresolved symbols not updated Subject: Re: Code for unresolved symbols not updated Subject: Is it possible to build a simulator myself? Subject: Re: TrueFFS optional??? Subject: Re: Exception in dosFsMkfs() Subject: Advice on TCP/UDP task arrangement Subject: cross compiling gcc - parse error Subject: Compilation log file Subject: Re: Bsp Testing Subject: Re: Advice on TCP/UDP task arrangement Subject: Re: cross compiling gcc - parse error ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Exception in dosFsMkfs() Date: Wed, 8 May 2002 15:11:34 +0200 From: "Alex Vinokur" Organization: Scopus Message-ID: ========================================================= 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 got an exception after calling the dosFsMkfs() function. Something is wrong. What exactly ? Thanks in advance. || ###### C Code : BEGIN ###### // File s2.c #include #include #include #include #include # define RAM_DISK_DEV "rd:" static DOS_VOL_DESC *pVolDesc = NULL ; void usrAppInit (void) { BLK_DEV *pBlkDev = NULL ; #ifdef USER_APPL_INIT USER_APPL_INIT; /* for backwards compatibility */ #endif pBlkDev = ramDevCreate ( NULL, /* where it is in memory (0 = malloc) */ 512, /* number of bytes per block */ 0, /* number of blocks per track */ 600, /* number of blocks on this device */ 0 /* no. of blks to skip at start of device */ ); assert (pBlkDev); printf ("[%s, %d] ### pBlkDev = %p\n", __FILE__, __LINE__, pBlkDev); /* Line#29 */ pVolDesc = dosFsMkfs (RAM_DISK_DEV, pBlkDev); printf ("[%s, %d] ### pVolDesc = %p\n", __FILE__, __LINE__, pVolDesc); if (! pVolDesc) printf ("DOS volume init failed\n"); assert (pVolDesc); } || ###### C Code : END ######## || ====== Target Simulator Window : BEGIN ====== VxWorks Copyright 1984-1998 Wind River Systems, Inc. CPU: VxSim for Windows VxWorks: 5.4.2 BSP version: 1.1/1 Creation date: May 8 2002 WDB: Ready. [D:/projects_MBX/demo1/01/src2/s2.c, 29] ### pBlkDev = 0x4b5cc08 Exception ! Vector 13 : General Protection Fault Program Counter : 0x0040f1db Status Register : 0x00010246 || ====== 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: Exception in dosFsMkfs() Date: Wed, 08 May 2002 12:41:26 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: Sasha, this is a wild guess: Try to set "blocks per track" to a non-zero value, perhaps this causes some zero divide error. Also, your RAmdisk is onloy 300KBytes in size, hope that is your intention. - Leonid "Alex Vinokur" wrote in message news:abb4il$gn9jc$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 got an exception after calling the dosFsMkfs() function. > Something is wrong. What exactly ? > > Thanks in advance. > > || ###### C Code : BEGIN ###### > // File s2.c > #include > #include > > #include > #include > #include > > > # define RAM_DISK_DEV "rd:" > > static DOS_VOL_DESC *pVolDesc = NULL ; > > void usrAppInit (void) > { > BLK_DEV *pBlkDev = NULL ; > > #ifdef USER_APPL_INIT > USER_APPL_INIT; /* for backwards compatibility */ > #endif > > pBlkDev = ramDevCreate ( > NULL, /* where it is in memory (0 = malloc) */ > 512, /* number of bytes per block */ > 0, /* number of blocks per track */ > 600, /* number of blocks on this device */ > 0 /* no. of blks to skip at start of device */ > ); > assert (pBlkDev); > printf ("[%s, %d] ### pBlkDev = %p\n", __FILE__, __LINE__, pBlkDev); /* Line#29 */ > > pVolDesc = dosFsMkfs (RAM_DISK_DEV, pBlkDev); > printf ("[%s, %d] ### pVolDesc = %p\n", __FILE__, __LINE__, pVolDesc); > if (! pVolDesc) printf ("DOS volume init failed\n"); > assert (pVolDesc); > > } > > || ###### C Code : END ######## > > > > > > || ====== Target Simulator Window : BEGIN ====== > > > VxWorks > > Copyright 1984-1998 Wind River Systems, Inc. > > CPU: VxSim for Windows > VxWorks: 5.4.2 > BSP version: 1.1/1 > Creation date: May 8 2002 > WDB: Ready. > > [D:/projects_MBX/demo1/01/src2/s2.c, 29] ### pBlkDev = 0x4b5cc08 > Exception ! > Vector 13 : General Protection Fault > Program Counter : 0x0040f1db > Status Register : 0x00010246 > > > || ====== 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: On S_iosLib_INVALID_FILE_DESCRIPTOR Date: 8 May 2002 05:51:20 -0700 From: cozzy@263.net (yyzhong) Organization: http://groups.google.com/ Message-ID: References: <3ccd1567$1@brateggebdc5.br-automation.co.at> Another time I encountered this kind of error again . It's in the sample given by the 'Tornado getting started '. After I download the lighting.out, and start a windSH: - -> progStart value = 0 = 0x0 - -> i NAME ENTRY TID PRI STATUS PC SP ERRNO DELAY - ---------- ------------ -------- --- ---------- -------- -------- ------- ----- tExcTask _excTask 4af9130 0 PEND 4276be 4af904c d0003 0 tLogTask _logTask 4af4718 0 PEND 4276be 4af4630 d0003 0 tWdbTask 0x417cc4 4af0bc8 3 READY 4276be 4af0aa4 d0003 0 tCosmos _cosmos 4ae5678 200 READY 4276be 4ae55dc d0003 0 tSchlep _schlep 4ade5b0 220 PEND 4276be 4ade4f4 d0003 0 tMonitor _monitor 4ad0420 230 READY 491eee0 4ad03a4 d0003 0 tCrunch _crunch 4ad74e8 240 READY 427554 4ad74a8 0 0 value = 0 = 0x0 - -> I didn't got the expected "Divide Error" after an hour! --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Exception in dosFsMkfs() Date: Wed, 8 May 2002 16:14:37 +0200 From: "Alex Vinokur" Organization: Scopus Message-ID: References: "Leonid Rosenboim" wrote in message news:newscache$egosvg$r5n$1@lnews.actcom.co.il... | Sasha, this is a wild guess: | | Try to set "blocks per track" to a non-zero value, perhaps this causes some | zero divide error. | Also, your RAmdisk is onloy 300KBytes in size, hope that is your intention. [snip] I tried to use : 1. pBlkDev = ramDevCreate (NULL, 512, 100, 100, 0); pVolDesc = dosFsMkfs ("x2:", pBlkDev); ------------------------- Results is Exception 2. pBlkDev = ramDevCreate (NULL, 512, 400, 400, 0); pVolDesc = dosFsMkfs ("x2:", pBlkDev); ------------------------- Results is Exception 3. pBlkDev = ramDevCreate (NULL, 512, 100, 100, 0); pVolDesc = dosFsDevInit (RAM_DISK_DEV, pBlkDev, NULL); ------------------------- Results is Exception 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: on "No rule to make" Date: 8 May 2002 06:29:54 -0700 From: cozzy@263.net (yyzhong) Organization: http://groups.google.com/ Message-ID: When I want to build a project, it prompts "make: *** No rule to make target `clean'. Stop. Done. ". I'm sure I've specified the active build. What can I do ? It mentioned the "target 'clean' ",while I didn't use it in my source! --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Exception in dosFsMkfs() Date: Wed, 08 May 2002 13:31:33 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: Ok, here's another quick idea to try: Perhaps the device name string should not reside in the code segment (which is what happens with constant strings), i.e.: char * devName[20] = "nd:" ; ... dosFsMkfs( devName, pBlkDev) Otherwise, it migth help if you know more specifically WHERE does the exception occur (stack trace, offending address). "Alex Vinokur" wrote in message news:abb88r$g9m53$1@ID-79865.news.dfncis.de... > > "Leonid Rosenboim" wrote in message news:newscache$egosvg$r5n$1@lnews.actcom.co.il... > | Sasha, this is a wild guess: > | > | Try to set "blocks per track" to a non-zero value, perhaps this causes some > | zero divide error. > | Also, your RAmdisk is onloy 300KBytes in size, hope that is your intention. > > > > [snip] > > I tried to use : > > 1. pBlkDev = ramDevCreate (NULL, 512, 100, 100, 0); > pVolDesc = dosFsMkfs ("x2:", pBlkDev); > ------------------------- > Results is Exception > > > 2. pBlkDev = ramDevCreate (NULL, 512, 400, 400, 0); > pVolDesc = dosFsMkfs ("x2:", pBlkDev); > ------------------------- > Results is Exception > > 3. pBlkDev = ramDevCreate (NULL, 512, 100, 100, 0); > pVolDesc = dosFsDevInit (RAM_DISK_DEV, pBlkDev, NULL); > ------------------------- > Results is Exception > > > > 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: Multiple Kill() executions @ interrupt level. Date: 8 May 2002 06:39:04 -0700 From: danielmartinfuchs@yahoo.co.uk (Daniel Fuchs) Organization: http://groups.google.com/ Message-ID: <78cc994f.0205080539.31832cae@posting.google.com> Hello, I have a question(s) regarding using the Kill() command: I have a task that gets awoken/executed/whatever by a Kill() call @ interrupt level. * Would like to know what happens when this get awoken by receiving multiple kills'? * Do they get queued up? * Can a system lock up due to this? Thanks in advance, Daniel --------------------------- Newsgroups: comp.os.vxworks Subject: TrueFFS optional??? Date: Wed, 08 May 2002 10:08:50 -0400 From: John Sestak Organization: Raytheon Company Message-ID: <3CD93172.40621673@fallschurch.esys.com> Hi everyone, Does TrueFFS support come with VxWorks or is it an optional package that you have to buy seperately? I was able to add 'INCLUDE_TFFS' to my kernel (T2) but when I try to build, it keeps complaining that it can't find the definition of 'flIdentifyFlash()'. Thank you. John --------------------------- Newsgroups: comp.os.vxworks Subject: Re: TrueFFS optional??? Date: 8 May 2002 14:21:18 GMT From: Johan Borkhuis Organization: Agere Systems Message-ID: References: <3CD93172.40621673@fallschurch.esys.com> John Sestak wrote: > Hi everyone, > Does TrueFFS support come with VxWorks or is it an optional package > that you have to buy seperately? I was able to add 'INCLUDE_TFFS' to my > kernel (T2) but when I try to build, it keeps complaining that it can't > find the definition of 'flIdentifyFlash()'. Thank you. It is an optional component for most architectures. 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: Kernel WorkQ Overflow problem. Date: Wed, 08 May 2002 14:34:11 GMT From: "doug dotson" Organization: Verio Message-ID: Greetings! I am in the process of porting a BSP to a new target. I get to the point of booting over the network and get a workQ overflow. If I disable the Ethernet interrupts then the problem goes away so it is clearly related to Ethernet interrupts. The wancom driver code is pretty much off the shelf and the ethernet controller is identical to the previous target so interrupt handling should be the same with the exception that ethernet interrupts are coming in on a different vector on this target. Anyone have any general strategies for tracking this down. Is there any way to intercept items put on the queue to determine what is causing the overflow? thanks, doug --------------------------- Newsgroups: comp.os.vxworks Subject: Re: TrueFFS optional??? Date: Wed, 08 May 2002 14:34:55 GMT From: "doug dotson" Organization: Verio Message-ID: References: <3CD93172.40621673@fallschurch.esys.com> Optional package. Costs around $5K if I recall correctly. doug "John Sestak" wrote in message news:3CD93172.40621673@fallschurch.esys.com... > Hi everyone, > Does TrueFFS support come with VxWorks or is it an optional package > that you have to buy seperately? I was able to add 'INCLUDE_TFFS' to my > kernel (T2) but when I try to build, it keeps complaining that it can't > find the definition of 'flIdentifyFlash()'. Thank you. > > John > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Bsp Testing Date: Wed, 08 May 2002 14:37:21 GMT From: "doug dotson" Organization: Verio Message-ID: References: <9e221d1.0205030538.4466b5b1@posting.google.com> That's how I got started. Light up some LEDs followed by an infinite loop. Slowly walked it through the code until I got to the point of getting the serial port working. doug "Rene Straub" <_remove_rene.straub@yetnet.ch> wrote in message news:ab641c$e8v$1@rex.ip-plus.net... > Hey folks, > > I had the same pleasure some days ago. I helped myself with some LEDs (LEDs > are > cool for debugging) and by writing debug data to low memory addresses. Using > a > BDM device I could read the data back after the code run (and crashed). > > If your code crashes start by placing a end-less loop in the code. If it > doesn't crash > anymore the problem must be behind the loop. Then find out why it crashed > and fix > it. Repeat this step until it works... > > Hope this helps > > - Rene > > > "doug dotson" wrote in message > news:pZwA8.18788$A%3.180255@ord-read.news.verio.net... > > Trial and error and alot of perseverence. I'm in the middle of > > debugging one now and it is slow and painful. Fortunately I have > > a bunch of LEDs I can talk to until I can get it to talk to a > > terminal. No JTAG debugger or emulator available for this > > beast either. > > > > doug > > > > "Anamika" wrote in message > > news:9e221d1.0205030538.4466b5b1@posting.google.com... > > > Hi > > > > > > I am developing a BSP for PowerPC. I have written all the drivers and > > > taken care about the memory initialization also. On burning the > > > bootrom image to the ROM, I am getting some exceptions. I want to > > > debug the code, which I hv written. Can anyone suggest the ways of > > > debugging for BSP. I dont hv a JTAG. > > > > > > Thanking you in advance > > > > > > Regards > > > Anamika > > > > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Converting Tornado 1.0.1 BSP to Tornado 2 Date: Wed, 8 May 2002 14:51:10 +0000 (UTC) From: "Arne Henrichsen" Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: <7573be1638199cb11cc921b4defbfc42.8627@mygate.mailgate.org> Hi, we have a Tornado 1.0.1 BSP for a MPC860. We want to start using it in Tornado 2, and using the Tornado 1.0.1 Build compatibility in Tornado 2, the BSP compiles without errors. The problem is that it will not run on our target system. Comparing the build output from Tornado 1.0.1 with that from Tornado 2, I only find a difference right at the end of the output: (we build vxWorks_rom.hex images). It seems that the size of the images are different. I have no idea why. In T1.0.1 the linker seems to be used, while in T2 they use the compiler to link the modules. Any ideas? Thanks Arne T1.0.1 Output: ldppc -Map hss.map -X -N -X -r \ -o ctmp.o usrConfig.o \ sysALib.o sysLib.o hssBit.o hssControlIfc.o hssScc.o hssSmc.o hssProtocol.o hssUart.o hssHdlc.o hssBisync.o version.o D:\Tornado\target/lib/libPPC860gnuvx.a nmppc ctmp.o | munch > ctdt.c make.exe CC_COMPILER="-traditional" ctdt.o make.exe[1]: Entering directory `D:\Tornado\target\config\HSS4' ccppc -BD:\Tornado/host/x86-win32/lib/gcc-lib/ -mcpu=860 -traditional - -O2 -fvolatile -fno- builtin -fno-for-scope -Wall -I/h -I\\noddy\prj\hss4\src\h -I. - -ID:\Tornado\target\confi g\all -ID:\Tornado\target/h -ID:\Tornado\target/src/config - -ID:\Tornado\target/src/drv -DC PU=PPC860 -DHSS_PCB_CCII_SIO_PMC_4P_BP_CC -DHSS_EI_RS485 - -DHSS_CFG_4PORT -O0 -g3 -c ctd t.c make.exe[1]: Leaving directory `D:\Tornado\target\config\HSS4' ldppc -Map hss.map -X -N -e _romInit -Ttext 00008000 \ -o vxWorks_rom romInit.o bootInit_uncmp.o dataSegPad.o \ ctmp.o ctdt.o D:\Tornado\host\x86-win32\bin\romsize PPC -b 000F0000 vxWorks_rom vxWorks_rom: 195832(t) + 13292(d) = 209124 (773916 unused) D:\Tornado\host\x86-win32\bin\elfHex -a 100100 vxWorks_rom \ > vxWorks_rom.hex Done. T2 Output: ccppc -BD:\Tornado2\host\x86-win32\lib\gcc-lib\ -nostdlib -r -Wl,-X \ -o ctmp.o usrConfig.o \ sysALib.o sysLib.o hssBit.o hssControlIfc.o hssScc.o hssSmc.o hssProtocol.o hssUart.o hssHdlc.o hssBisync.o version.o D:\Tornado2\target\lib\libPPC860gnuvx.a nmppc ctmp.o | wtxtcl D:\Tornado2\host\src\hutils\munch.tcl -asm ppc > ctdt.c make.exe CC_COMPILER="-fdollars-in-identifiers" ctdt.o make.exe[1]: Entering directory `D:\Tornado2\target\config\hss4' ccppc -BD:\Tornado2\host\x86-win32\lib\gcc-lib\ -mcpu=860 - -fdollars-in-identifiers -O2 -fv olatile -fno-builtin -fno-for-scope -Wall -I\h -I\\noddy\prj\hss4\src\h - -I. -ID:\Tornado 2\target\config\all -ID:\Tornado2\target\h - -ID:\Tornado2\target\src\config -ID:\Tornado2\t arget\src\drv -DCPU=PPC860 -DHSS_PCB_CCII_SIO_PMC_4P_BP_CC - -DHSS_EI_RS485 -DHSS_CFG_4PORT -O0 -g3 -c ctdt.c make.exe[1]: Leaving directory `D:\Tornado2\target\config\hss4' ldppc -Map hss.map -X -N -e _romInit -Ttext 00008000 \ -o vxWorks_rom romInit.o bootInit_uncmp.o dataSegPad.o \ ctmp.o ctdt.o D:\Tornado2\host\x86-win32\bin\romsize PPC -b 000F0000 vxWorks_rom vxWorks_rom: 263436(t) + 15780(d) = 279216 (703824 unused) D:\Tornado2\host\x86-win32\bin\elfHex -a 100100 vxWorks_rom \ > vxWorks_rom.hex Done. - -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Kernel WorkQ Overflow problem. Date: Wed, 08 May 2002 14:59:54 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: Briefly: the driver ISR fails to deassert the interrupt request, hence the infinite interrupt fenomena. It could have worked on another board if interrupts were set to be edge trigerred there, but yours are evidently level trigerred. I've explained this many times before, so search google groups, and save me the typing. "doug dotson" wrote in message news:DHaC8.19174$A%3.187398@ord-read.news.verio.net... > Greetings! > > I am in the process of porting a BSP to a new target. I get to the > point of booting over the network and get a workQ overflow. If > I disable the Ethernet interrupts then the problem goes away so > it is clearly related to Ethernet interrupts. The wancom driver code > is pretty much off the shelf and the ethernet controller is identical to > the previous target so interrupt handling should be the same with the > exception that ethernet interrupts are coming in on a different vector > on this target. Anyone have any general strategies for tracking this > down. Is there any way to intercept items put on the queue to determine > what is causing the overflow? > > thanks, > doug > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Kernel WorkQ Overflow problem. Date: 8 May 2002 15:05:38 GMT From: Johan Borkhuis Organization: Agere Systems Message-ID: References: "doug dotson" wrote: > Greetings! > > I am in the process of porting a BSP to a new target. I get to the > point of booting over the network and get a workQ overflow. If > I disable the Ethernet interrupts then the problem goes away so > it is clearly related to Ethernet interrupts. The wancom driver code > is pretty much off the shelf and the ethernet controller is identical > to the previous target so interrupt handling should be the same with > the exception that ethernet interrupts are coming in on a different > vector on this target. Anyone have any general strategies for tracking > this down. Is there any way to intercept items put on the queue to > determine what is causing the overflow? Looks like you do not clear the interrupt source, so after you finisch the interrupt routine it jumps right back in it again, because the interrupt is still active. 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: Kernel WorkQ Overflow problem. Date: Wed, 08 May 2002 15:11:46 GMT From: "doug dotson" Organization: Verio Message-ID: References: This is what I suspected but so far have been unable to locate where it happens. I'll check the old target to see if it used edge triggered interrupts. I am definitely using level-sensitive now. doug "Johan Borkhuis" wrote in message news:Xns9208ADE8C5661borkhuisagerecom@135.7.153.102... > "doug dotson" wrote: > > > Greetings! > > > > I am in the process of porting a BSP to a new target. I get to the > > point of booting over the network and get a workQ overflow. If > > I disable the Ethernet interrupts then the problem goes away so > > it is clearly related to Ethernet interrupts. The wancom driver code > > is pretty much off the shelf and the ethernet controller is identical > > to the previous target so interrupt handling should be the same with > > the exception that ethernet interrupts are coming in on a different > > vector on this target. Anyone have any general strategies for tracking > > this down. Is there any way to intercept items put on the queue to > > determine what is causing the overflow? > > Looks like you do not clear the interrupt source, so after you finisch > the interrupt routine it jumps right back in it again, because the > interrupt is still active. > > 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: Anyone using target Intel x86 (not PENTIUM) Date: Wed, 08 May 2002 15:10:26 GMT From: igtorque@yahoo.es (Ignacio Gonzalez T.) Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com Message-ID: <3cd93f65.4871064@news.mhogaming.com> References: <97e6274e.0205080100.3e7e1d13@posting.google.com> On 8 May 2002 02:00:18 -0700, heiko_elger@arburg.com (Heiko Elger) wrote: >Hello, > >who is using a target Intel x86 (386, 486, not Pentium, PcPentium Pro) >with Tornado 2.0.x? > >I'm asking cause in the new Tornado Version 2.2 (VxWorks 5.5) only >Intel processors Pentium, Pentium II, Pentium III, Pentium IV will be >supported. >(the new official roadmap of WRS) > >For customer with support contract who uses no Pentium or above there >will be no ugrade posibbility and only minor bug fixes for Tornado >2.0.x > >I'm asking cause we have support contract and we are using x86 and we >have no possibility to use a Pentium next time. > >We think that cause of our support contract based on a Intel 80486 >processor WRS must support x86 in Tornado 2.2. > >We want to know whether there are other projects out there which are >based on Intel x86 or whether we are the only company using x86. > >best regards > > Heiko Elger Hello, Heiko. We are using Tornado 2.0.2 and VxWorks 5.4.2 with 386EX targets since 2000. After 1 year with support contract, we decided to leave it, because of the percieved low quality/cost ratio (of course, I agree this is a very subjective appreciation.) We will continue to use these targets (and perhaps another ones, mainly 486DX based) instead of Pentium ones, because of cost considerations (we manufacture our own boards, or use cheap standard ones.) So we will have to stick to Tornado 2.0.2, even if someday we decide to upgrade... My condolence. These news are bad news for us too. By the way, do you know if Tornado 2.2 comes with gcc > 2.7.2 ? --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Interrupt Latency Date: Wed, 08 May 2002 16:50:43 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: Since it dont seem like you got an answer, I'll offer my two cents: Interrupt is essentially a hardware mechanism, i.e. all that happens from the time the PCI board raises its IRQ, till the ISR runs, is mostly for the hardware to do, except of course the VxWorks ISR wrapper which should be less the 1 microsec on a Pentium. Unless of course, someone or something has instructed the CPU to block interrupts. (Note: on x86 processors,l the CPU can either block all or allow all interrupts as it has got only one INTR pin). What I am saying is that you need to find that bugger ;-) who put tons of code between intLock() and intUnlock() calls, code that runs for 5-15 milisec. intLock gets used in the kernel a few times, but trust me, the VxWorks kernel or any other subsystem do not do anything THAT STUPID. And when you find that guy, take his picture when he gets his pink slip, you'll enjoy looking at it for years later ... ;-)) "Peter Kannegiesser" wrote in message news:aer2dug9ot75urttc2dabeg507f5v44p7t@4ax.com... > Hi all! > > We are using Tornado 2.02 and the related tools and have written a > driver for an D/A, A/D converter PCI card. The driver is implemented > using ioctl() calls. The PCI card generates interrupts at the end of > conversion. > The interrupt handler is connected using pciConnectInt and is > definitly the only one for that interrupt line. > Now we experience very looong delays from the interrupt signal on > the PCI bus until the handler gets called. According to the logic > analyzer, it takes between 5 and 15 milliseconds (with a strong > tendency to 15ms)-- and this supposed to be an OS for fast hard > realtime... > We are using the standard Pentium BSP on various PC's, from 166MHz > Pentium I to 2GHz Pentium 4. There seems to be no change that > depends on the processor speed. > > Has anybody seen similar problems or could offer at least an > explanation? > > TIA, > Peter > -- > keine sig --------------------------- Newsgroups: comp.os.vxworks Subject: Re: How can I see the 'target.nr' file? Date: Wed, 08 May 2002 11:57:51 -0500 From: Dinker Charak Organization: Fermi National Accelerator Laboratory Message-ID: <3CD9590F.EF7351BE@fnal.gov> References: <3CD88C30.4E881288@gv.net> > > Jin-Woo Lee wrote: > > > >>Hi, > >> > >>I'm working on mv2400 target board. > >>There is 'target.nr' file in the BSP directory. What is the way to see > >>it? > >> I assume you are on a unix host. % cd $WIND_BASE/target/config/mv2400 % man ./target.nr I do it on linux and see the file formatted like a man page HTH Dinker --------------------------- Newsgroups: comp.os.vxworks Subject: Creating a bootable VxWorks image Date: Wed, 8 May 2002 14:22:30 -0400 From: "Jin-Woo Lee" Organization: Cornell University Message-ID: Sender: jl206@cornell.invalid (on 128.253.249.182) Hi, I'm a new user of VxWorks. I'm currently working with Tornado 2.0.2 under Windows environment and the target system is mv2400. When I tried to create a bootable VxWorks image, the following error showed up during building the project. C:\Temp\cca01436.s: Assembler messages: C:\Temp\cca01436.s:4687: Error: Unrecognized opcode: `func_export(_sysInit)' C:\Temp\cca01436.s:4688: Error: Unrecognized opcode: `func_export(sysInByte)' C:\Temp\cca01436.s:4689: Error: Unrecognized opcode: `func_export(sysOutByte)' . . . I just used the application wizard. I chosen an option of 'Create a bootable VxWorks image' at the first page, selected mv2400 at BSP page and then I didn't touch anything. What is wrong with that? Thanks, --------------------------- Newsgroups: comp.protocols.snmp,comp.os.vxworks Subject: Re: Envoy version in WindNet SNMP Date: Wed, 08 May 2002 18:45:13 GMT From: Pete Flugstad Organization: MediaCom High Speed Internet Message-ID: <3CD97299.6070004@nospam.icon-labs.com> References: <3CD83CFD.1060203@nospam.icon-labs.com> Alex Vinokur wrote: > | The file envoy/h/version.h should have the Envoy version in it: > | > | #define ENVOY_MAJOR_VERSION 9 > | #define ENVOY_MINOR_VERSION 1 > | #define ENVOY_BETA_VERSION 0 > | > | I would expect it to be the same as the provided emissary > | version (i.e. 7.0.0). > | > | Pete Flugstad > | Icon Labs > | > > 1. The envoy directory is missing under $WIND_BASE and its subdirectories. > > 2. The $WIND_BASE/target/h/snmp/envoy.h file contains no relevant information. > The $WIND_BASE/target/h/snmp/install.h file contains the following line : > #define INSTALL_ENVOY 1 > > 3. No file contains ENVOY_MAJOR_VERSION, ENVOY_MINOR_VERSION, ENVOY_BETA_VERSION And I don't see those #def's being used in the sources anywhere, at least in the versions I have (9.X), so there seems to be nw way to check for that.... Given that, you probably have to assume it is the same as the version of Emissary (mibcomp). IMO, this is probably a fairly safe assumption, since mibcomp generates code for Envoy is so is tied fairly closely to Envoy's data structures. Sorry, Pete --------------------------- Newsgroups: comp.os.vxworks Subject: Re: TrueFFS optional??? Date: Wed, 08 May 2002 15:30:43 -0400 From: John Sestak Organization: Raytheon Company Message-ID: <3CD97CE2.49A61D7E@fallschurch.esys.com> References: <3CD93172.40621673@fallschurch.esys.com> Thank you both for replying. :) Johan Borkhuis wrote: > John Sestak wrote: > > > Hi everyone, > > Does TrueFFS support come with VxWorks or is it an optional package > > that you have to buy seperately? I was able to add 'INCLUDE_TFFS' to my > > kernel (T2) but when I try to build, it keeps complaining that it can't > > find the definition of 'flIdentifyFlash()'. Thank you. > > It is an optional component for most architectures. > > 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: VxMP and POSIX? Date: 8 May 2002 13:48:30 -0700 From: rwitmer@my-deja.com (Bob Witmer) Organization: http://groups.google.com/ Message-ID: Anyone know if VxMP supports POSIX message queues? I can't tell from reading the sales literature. My guess would be that they implemented only the vendor specific APIs and not the POSIX stuff. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: on "No rule to make" Date: Wed, 8 May 2002 22:56:51 +0100 From: "Michael B." Organization: [Infostrada] Message-ID: <6dgC8.30318$US3.667633@twister1.libero.it> References: Pay much attention to dependancies: you have to update them every time you make some changes to your code (#include and so on) or your built configuration. This is my experience: sometimes (without a good reason!) the builder loses one of my .h files and update dependancies made one or two times fixes the bug. Magic? I don't know but it works. Bye, Mic. "yyzhong" ha scritto nel messaggio news:b35585ab.0205080529.7f5a60a6@posting.google.com... > When I want to build a project, it prompts > "make: *** No rule to make target `clean'. Stop. > Done. > ". > I'm sure I've specified the active build. > What can I do ? > It mentioned the "target 'clean' ",while I didn't use it in my source! --------------------------- Newsgroups: comp.os.vxworks Subject: Code for unresolved symbols not updated Date: 8 May 2002 15:44:28 -0700 From: chris.ouellette@santera.com (ChrisO) Organization: http://groups.google.com/ Message-ID: <72ddcdb.0205081444.107b6999@posting.google.com> I'm loading a COFF file (testB.o) that has function (funcB) that calls funcA. When I load it "ld < testB.o" I get an error message about the unresolved function funcA. If I load a COFF file (testA.o) that has funcA then load testB.o I don't get the error message but looking at the assemble code for funcB shows that the address for funcA was not updated. It still has 0 for the address of funcA. VxWorks is running on a 960 CA. I'm using gcc960 and gld960 not the VxWorks versions. Are the VxWorks versions of the compiler and linker required? Seems to me a COFF file is a COFF file. Any ideas why the addresses aren't updated? Chris --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Code for unresolved symbols not updated Date: 08 May 2002 21:06:21 -0400 From: Bill Pringlemeir Organization: Factory of the mind Message-ID: References: <72ddcdb.0205081444.107b6999@posting.google.com> Sender: bpringlemeir@DeadDuck ChrisO> error message about the unresolved function funcA. If I load ChrisO> a COFF file (testA.o) that has funcA then load testB.o I ChrisO> don't get the error message but looking at the assemble code ChrisO> for funcB shows that the address for funcA was not updated. ChrisO> It still has 0 for the address of funcA. VxWorks is running ChrisO> on a 960 CA. I'm using gcc960 and gld960 not the VxWorks ChrisO> versions. Are the VxWorks versions of the compiler and ChrisO> linker required? Seems to me a COFF file is a COFF file. ChrisO> Any ideas why the addresses aren't updated? Well, the ARM COFF format with T2.1.1 are different than T2.0.1. However, I would suspect that you might have some cache coherency problem. Does the function not work properly if you run it? What does "objdump960 --all-headers testB.o" show for the relocation and symbol records for the functions in question. Likewise for the testA.o file. This information would be most helpful. Also, run `@lkup "funcA"' and `@lkup "funcB"' from the shell. Also try `lkup "funcA"' and `lkup "funcB"'. This will give some clue as to a possible host/target symbol table mismatch. A symbol entry will look like, [ 25](sec 0)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000000 _funcA [ 26](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000000 _funcB .. RELOCATION RECORDS FOR [.text]: OFFSET TYPE VALUE 00000038 DISP32 _funcB etc. Just post the values for the functions in question [the above are ELF, but I think you can get the idea.] Regards, Bill Pringlemeir. - -- Let's stay! vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html" --------------------------- Newsgroups: comp.os.vxworks Subject: Is it possible to build a simulator myself? Date: 8 May 2002 20:09:21 -0700 From: cozzy@263.net (yyzhong) Organization: http://groups.google.com/ Message-ID: I need to use a simulator oriented to a project based on PentiumGNU. But I don't know how to build it. Is it possible? And which disk is necessory? The disks I can use are listed below: CD Title: Tornado 2.0 AP for x86 Part No.: TDK-13127-ZC CD Title: Tornado 2.0 AP for PowerPC Part No.: TDK-13128-ZC CD Title: Tornado 2.0.2 for PowerPC Part No.: TDK-12389-ZC CD Title: Tornado 2.0.2 for All Simulators Part No.: TDK-12840-ZC CD Title: BSP Developer's Kit Part No.: TDK-13234-ZC CD Title: RTI SCOPE TOOLS 2.1 Part No.: STS-14469-zc-00 --------------------------- Newsgroups: comp.os.vxworks Subject: Re: TrueFFS optional??? Date: Thu, 09 May 2002 06:47:38 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: <3CD93172.40621673@fallschurch.esys.com> All previous replies are true, except that I recall that support for M-Systems Disk-on-chip (aka. DOC2K) devices was bundled on x86 and PPC architectures, whereas the unbundled TFFS allows one to use any Flash hardware they fancy, at least in theory. "John Sestak" wrote in message news:3CD93172.40621673@fallschurch.esys.com... > Hi everyone, > Does TrueFFS support come with VxWorks or is it an optional package > that you have to buy seperately? I was able to add 'INCLUDE_TFFS' to my > kernel (T2) but when I try to build, it keeps complaining that it can't > find the definition of 'flIdentifyFlash()'. Thank you. > > John > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Exception in dosFsMkfs() Date: Thu, 9 May 2002 10:20:54 +0200 From: "Alex Vinokur" Organization: Scopus Message-ID: References: "Alex Vinokur" wrote in message news:abb4il$gn9jc$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 got an exception after calling the dosFsMkfs() function. | Something is wrong. What exactly ? | | Thanks in advance. | | || ###### C Code : BEGIN ###### | // File s2.c | #include | #include | | #include | #include | #include | | | # define RAM_DISK_DEV "rd:" | | static DOS_VOL_DESC *pVolDesc = NULL ; | | void usrAppInit (void) | { | BLK_DEV *pBlkDev = NULL ; | | #ifdef USER_APPL_INIT | USER_APPL_INIT; /* for backwards compatibility */ | #endif | | pBlkDev = ramDevCreate ( | NULL, /* where it is in memory (0 = malloc) */ | 512, /* number of bytes per block */ | 0, /* number of blocks per track */ | 600, /* number of blocks on this device */ | 0 /* no. of blks to skip at start of device */ | ); | assert (pBlkDev); | printf ("[%s, %d] ### pBlkDev = %p\n", __FILE__, __LINE__, pBlkDev); /* Line#29 */ | | pVolDesc = dosFsMkfs (RAM_DISK_DEV, pBlkDev); | printf ("[%s, %d] ### pVolDesc = %p\n", __FILE__, __LINE__, pVolDesc); | if (! pVolDesc) printf ("DOS volume init failed\n"); | assert (pVolDesc); | | } | | || ###### C Code : END ######## | | | | | | || ====== Target Simulator Window : BEGIN ====== | | | VxWorks | | Copyright 1984-1998 Wind River Systems, Inc. | | CPU: VxSim for Windows | VxWorks: 5.4.2 | BSP version: 1.1/1 | Creation date: May 8 2002 | WDB: Ready. | | [D:/projects_MBX/demo1/01/src2/s2.c, 29] ### pBlkDev = 0x4b5cc08 | Exception ! | Vector 13 : General Protection Fault | Program Counter : 0x0040f1db | Status Register : 0x00010246 | | | || ====== Target Simulator Window : END ======== | | | | The exception was caused by undefined macro INCLUDE_DOSFS. || ################################################## || ############ VxWorks Reference Manual ############ || ################### Libraries #################### || ### File $WIND_BASE\docs\vxworks\ref\dosFsLib.html || ### ----------------- Fragments ------------------ || ################################################## || ================ dosFsLib : BEGIN ================ NAME dosFsLib - MS-DOS media-compatible file system library ROUTINES dosFsMkfs( ) - initialize a device and create a dosFs file system INITIALIZING DOSFSLIB This initialization is enabled when the configuration macro INCLUDE_DOSFS is defined; dosFsInit( ) is then called from the root task, usrRoot( ), in usrConfig.c. || ================ dosFsLib : END ================== So, the configuration macro INCLUDE_DOSFS must be defined. In order to that we need : || ============ Workspace Window : BEGIN ============ || ------------------ VxWorks view ------------------ + [operating system components] + [IO system components] * DOS filesytem // Must be included || ============ Workspace Window : END ============== After starting 'vxWorks.exe" : || ====== Target Simulator Window : BEGIN ====== Adding 2411 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: May 9 2002 WDB: Ready. [D:/projects_MBX/demo1/01/src2/s2.c, 29] ### pBlkDev = 0x4b7b7c0 [D:/projects_MBX/demo1/01/src2/s2.c, 33] ### pVolDesc = 0x4b90d70 || ====== Target Simulator Window : END ======== Now it is 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: Advice on TCP/UDP task arrangement Date: 9 May 2002 00:54:56 -0700 From: barryrichard@hotmail.com (RichardBarry) Organization: http://groups.google.com/ Message-ID: Hi, I have a general question on using UDP from within a task, any advice would be gratefully received. I have been experimenting with a system where I create a UDP socket then spawn one task that reads from the socket and one that writes to the socket. The writing task blocks on a message queue, and when a message arrives formats it and transmits it. The receiving task blocks on a call to recvfrom(), and when a message arrives, formats it and posts it onto a different message queue. This seems to work, however is this a valid thing to do? i.e. is mutual exclusion around the socket guaranteed by the OS, or must I provide it explicitly? What would happen in the Tx task deleted the socket while the Rx task was blocked on recvfrom()? Regards, Richard. --------------------------- Newsgroups: comp.os.vxworks,gnu.gcc.help Subject: cross compiling gcc - parse error Date: 9 May 2002 01:11:15 -0700 From: demiurg@tau.ac.il (Alexander Sirotkin) Organization: http://groups.google.com/ Message-ID: I'm trying to compile gcc & bintutils for vxworks on Linux, binutils are compiled just fine, but gcc throuws the following error: /root/gnu/gcc-2.95/gcc/config/mips/vxworks.h:3: parse error before `file' Apparently, it does not like embedded comments vxworks.h:3 /* Copyright (C) 1999 Free Software Foundation, Inc. */ This file is part of GNU CC. --------------------------- Newsgroups: comp.os.vxworks Subject: Compilation log file Date: Thu, 9 May 2002 13:08:29 +0200 From: "Alex Vinokur" Organization: Scopus Message-ID: ========================================================= 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) ========================================================= I would like the compilation results to be written not only to Build Output Window, but to some compilation log file as well. Is it possible to do it? - -- ==================== 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: Bsp Testing Date: Thu, 9 May 2002 10:37:54 +0000 (UTC) From: David Laight Organization: BT Openworld Message-ID: <3CDA51DD.4030403@spamm.me.l8s.co.uk> References: <9e221d1.0205030538.4466b5b1@posting.google.com> Hwa Jin Bae wrote: > I have used various available mechanisms to debug low level BSP issues. For > example, LEDs, PromICE, BDM, JTAG, Logic analyser, scope, Rom emulator, > serial port, shared memory (over bus), etc. And of course, a lot of > patience and tenacity help. Finally, some good luck. If your board has a UART, enable it very early on (eg in romInit.s) and write routines to dump single characters, strings and hex numbers to it (looping until the fifo is empty). This ought to let you debug system startup.... David --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Advice on TCP/UDP task arrangement Date: Thu, 09 May 2002 11:43:45 +0100 From: Phil Ashby Organization: IDL Message-ID: <3CDA52E1.F1B752C4@idl.bt.co.uk> References: RichardBarry wrote: > > Hi, > > I have a general question on using UDP from within a task, any advice > would be gratefully received. > > I have been experimenting with a system where I create a UDP socket > then spawn one task that reads from the socket and one that writes to > the socket. The writing task blocks on a message queue, and when a > message arrives formats it and transmits it. The receiving task > blocks on a call to recvfrom(), and when a message arrives, formats it > and posts it onto a different message queue. > > This seems to work, however is this a valid thing to do? i.e. is > mutual exclusion around the socket guaranteed by the OS, or must I > provide it explicitly? What would happen in the Tx task deleted the > socket while the Rx task was blocked on recvfrom()? > > Regards, > Richard. AFAIK there shouldn't be any problems doing this. I've used similar code with TCP sockets (where Tx and Rx state interact) without problems. Since a socket must be some form of waitable object (how does recvfrom() actually block?), then closing it releases waiting tasks, returning an error code to their caller. All seems to work reliably for me ;) - -- Phil "Phlash" Ashby (speaking only for himself) Work: http://www.internet-designers.net/ Home: http://www.ashbysoft.com/ --------------------------- Newsgroups: comp.os.vxworks,gnu.gcc.help Subject: Re: cross compiling gcc - parse error Date: Thu, 09 May 2002 11:46:53 +0100 From: Phil Ashby Organization: IDL Message-ID: <3CDA539D.F483A489@idl.bt.co.uk> References: Alexander Sirotkin wrote: > > I'm trying to compile gcc & bintutils for vxworks on Linux, > binutils are compiled just fine, but gcc throuws the following error: > > /root/gnu/gcc-2.95/gcc/config/mips/vxworks.h:3: parse error before `file' > > Apparently, it does not like embedded comments > > vxworks.h:3 > /* Copyright (C) 1999 Free Software Foundation, Inc. */ > This file is part of GNU CC. That looks wrong. Obviously the text 'This file...' should be in a coment block, but isn't. Why should a cross-compiler need to include a BSP-specific vxworks.h anyway? Surely you just need to create a cross-compiler for the target CPU, not the O/S? - -- Phil "Phlash" Ashby (speaking only for himself) Work: http://www.internet-designers.net/ Home: http://www.ashbysoft.com/ --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Fri May 10 04:03:19 2002 From: Vxworks Exploder Date: Fri May 10 04:03:22 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Fri May 10 04:03:12 PDT 2002 Subject: Re: Advice on TCP/UDP task arrangement Subject: Compilation for MBX860 target failed Subject: Re: Compilation for MBX860 target failed Subject: Two GD82559ER adapters under VxWorks Subject: How to define a Tornado startup script? Subject: Re: Advice on TCP/UDP task arrangement Subject: Inside ISR check? Subject: Non blocking UDP sockets? Subject: Re: Advice on TCP/UDP task arrangement Subject: Re: Two GD82559ER adapters under VxWorks Subject: Re: cross compiling gcc - parse error Subject: Re: Inside ISR check? Subject: Re: Advice on TCP/UDP task arrangement Subject: Re: Two GD82559ER adapters under VxWorks Subject: Re: Two GD82559ER adapters under VxWorks Subject: Re: Inside ISR check? Subject: Re: Inside ISR check? Subject: Memory data integrity preservation Subject: Non-Blocking Socket is Blocking Subject: C++ comments in C file with GNU compiler Subject: We're havin' some fun now! Subject: ENVOY SNMP Subject: Accessing hard disk Subject: Re: Compilation for MBX860 target failed Subject: Re: Memory data integrity preservation Subject: Re: C++ comments in C file with GNU compiler Subject: problem launching the target server on host Subject: Re: Non-Blocking Socket is Blocking Subject: Re: Non blocking UDP sockets? Subject: Re: Non blocking UDP sockets? ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: Advice on TCP/UDP task arrangement Date: Thu, 09 May 2002 12:07:59 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: First the easy questions: VxWorks will take care of mutex on sockets, so in case of a UDP socket, multiple tasks could be reading from the socket (dividing the incoming pakcets between them) and multiple tasks can send packets out, if output order has no particular significance. If a socket is closed while some task is blocked on it, or if a task is using a previously closed socket, the call will return an error, probably "Invalid file descriptor". Now to the architecture of yours: There is one reason to use more tasks - to prioritize work. There is a cost to pay for more tasks - more memory going into stacks and more difficult to debug. My feeling is that you can probably do all this without message queues and with a single task doing reception, processing and transmission, but of course this is hard to tell without knowing your specific application requirements. "RichardBarry" wrote in message news:eec86974.0205082354.23f663cd@posting.google.com... > Hi, > > I have a general question on using UDP from within a task, any advice > would be gratefully received. > > I have been experimenting with a system where I create a UDP socket > then spawn one task that reads from the socket and one that writes to > the socket. The writing task blocks on a message queue, and when a > message arrives formats it and transmits it. The receiving task > blocks on a call to recvfrom(), and when a message arrives, formats it > and posts it onto a different message queue. > > This seems to work, however is this a valid thing to do? i.e. is > mutual exclusion around the socket guaranteed by the OS, or must I > provide it explicitly? What would happen in the Tx task deleted the > socket while the Rx task was blocked on recvfrom()? > > Regards, > Richard. --------------------------- Newsgroups: comp.os.vxworks Subject: Compilation for MBX860 target failed Date: Thu, 9 May 2002 15:14:33 +0200 From: "Alex Vinokur" Organization: Scopus Message-ID: ========================================================= Tornado : Version 2.0.2 VxWorks : Version 5.4.2 BSP : Version 1.1/1 Compiler : ccppc gcc driver version cygnus-2.7.2-960126 egcs-971225 tornado 2.0 executing gcc version cygnus-2.7.2-960126 Linker : ldppc ld version cygnus-2.6 (with BFD cygnus-2.6) Host : Windows2000 Target : MBX860 ToolChain : PPC860gnu ========================================================= Project Type : bootable VxWorks image (custom configured) RAM based VxWorks image, linked to RAM_LOW_ADRS. It is loaded into RAM via some external program such as a bootROM. This is the default development image. ========================================================= I have got the following results of compilations for MBX860 target. I changed no files. What is wrong? Relevant information is below. Thanks. || ######### Compilation Log File : BEGIN ######### vxrm *.o *.rpo ctdt.c symTbl.c vxWorks* vxrm D:\sys2\Tornado\target\proj\dir-mbx-proj-01\prjComps.h D:\sys2\Tornado\target\proj\di r-mbx-proj-01\prjParams.h D:\sys2\Tornado\target\proj\dir-mbx-proj-01\prjConfig.c D:\sys2\ Tornado\target\proj\dir-mbx-proj-01\linkSyms.c vxrm D:\sys2\Tornado\target\proj\dir-mbx-proj-01\libs.nm D:\sys2\Tornado\target\proj\dir-m bx-proj-01\libs.size wtxtcl D:\sys2\Tornado\host\src\hutils\configGen.tcl D:\sys2\Tornado\target\proj\dir-mbx-p roj-01\MBX-Project-01.wpj ccppc -g -mcpu=860 -ansi -nostdinc -fvolatile -fno-builtin -fno-for-scope -P -x assembler - -with-cpp -ID:\sys2\Tornado\target\proj\dir-mbx-proj-01 -ID:\sys2\Tornado\target\config\mb x860 -ID:\sys2\Tornado\target\h -ID:\sys2\Tornado\target\config\comps\src -ID:\sys2\Torn ado\target\src\drv -DCPU=PPC860 -DPRJ_BUILD -c D:\sys2\Tornado\target\config\mbx860\sysA Lib.s -o sysALib.o ccppc -g -mcpu=860 -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -ID:\sys2\Tornado\target\proj\dir-mbx-proj-01 -ID:\sys2\Tornado\target\con fig\mbx860 -ID:\sys2\Tornado\target\h -ID:\sys2\Tornado\target\config\comps\src -ID:\sys 2\Tornado\target\src\drv -DCPU=PPC860 -DPRJ_BUILD -c D:\sys2\Tornado\target\config\mbx86 0\sysLib.c In file included from D:\sys2\Tornado\target\config\mbx860\config.h:349, from D:\sys2\Tornado\target\config\mbx860\sysLib.c:54: D:\sys2\Tornado\target\config\mbx860\mbx800.h:417: conflicting types for `sysInLong' D:\sys2\Tornado\target\h\sysLib.h:220: previous declaration of `sysInLong' D:\sys2\Tornado\target\config\mbx860\mbx800.h:429: conflicting types for `sysOutLong' D:\sys2\Tornado\target\h\sysLib.h:225: previous declaration of `sysOutLong' In file included from D:\sys2\Tornado\target\config\mbx860\sysLib.c:299: D:\sys2\Tornado\target\config\mbx860\w83c553f.c:130: conflicting types for `sysOutByte' D:\sys2\Tornado\target\h\sysLib.h:223: previous declaration of `sysOutByte' D:\sys2\Tornado\target\config\mbx860\w83c553f.c:131: conflicting types for `sysInByte' D:\sys2\Tornado\target\h\sysLib.h:218: previous declaration of `sysInByte' D:\sys2\Tornado\target\config\mbx860\sysLib.c:1307: conflicting types for `sysIntEnablePIC ' D:\sys2\Tornado\target\h\sysLib.h:237: previous declaration of `sysIntEnablePIC' D:\sys2\Tornado\target\config\mbx860\sysLib.c:1607: conflicting types for `sysInWordString ' D:\sys2\Tornado\target\h\sysLib.h:221: previous declaration of `sysInWordString' D:\sys2\Tornado\target\config\mbx860\sysLib.c:1651: conflicting types for `sysOutWordStrin g' D:\sys2\Tornado\target\h\sysLib.h:226: previous declaration of `sysOutWordString' D:\sys2\Tornado\target\config\mbx860\sysLib.c:1673: conflicting types for `sysInLongString ' D:\sys2\Tornado\target\h\sysLib.h:222: previous declaration of `sysInLongString' D:\sys2\Tornado\target\config\mbx860\sysLib.c:1695: conflicting types for `sysOutLongStrin g' D:\sys2\Tornado\target\h\sysLib.h:227: previous declaration of `sysOutLongString' make: *** [sysLib.o] Error 0x1 Done. || ######### Compilation Log File : END ########### Note. sysLib.o: depends on D:\sys2\Tornado\target\h\types\vxTypesOld.h (and another header files). || ######### ========================== ########### || File#1 of 3 || ####### File vxTypesOld.h : BEGIN ####### || Full path : D:\sys2\Tornado\target\h\types\vxTypesOld.h /* vxTypesOld.h - old VxWorks type definition header */ /* Copyright 1984-1997 Wind River Systems, Inc. */ [--- omitted ---] typedef unsigned int UINT32; || Line#84 [--- omitted ---] || ####### File vxTypesOld.h : END ######### || File#2 of 3 || ######### File sysLib.h : BEGIN ######### || Full path : D:\sys2\Tornado\target\h\sysLib.h /* sysLib.h - system dependent routines header */ /* Copyright 1984-1998 Wind River Systems, Inc. */ [--- omitted ---] #if (CPU_FAMILY == I80X86) /* * These prototypes are for the x86 family only. They are incorrect, * but we do not want to change the API for the entire ARCH_FAMILY. * They should be unsigned arguments. */ [--- omitted ---] extern ULONG sysInLong (int port); [--- omitted ---] #else /* For all architectures, except X86, the arguments are unsigned. */ [--- omitted ---] extern ULONG sysInLong (ULONG port); || Line#220 [--- omitted ---] #endif /* (CPU_FAMILY == I80X86) */ [--- omitted ---] || ######### File sysLib.h : END ########### || File#3 of 3 || ######### File mbx800.h : BEGIN ######### || Full path : D:\sys2\Tornado\target\config\mbx860\mbx800.h /* mbx800.h - Motorola MBX800 board header */ /* Copyright 1984-1998 Wind River Systems, Inc. */ /* Copyright 1997,1998 Motorola, Inc., All Rights Reserved */ [--- omitted ---] #ifndef _ASMLANGUAGE /* PCI I/O function defines */ [--- omitted ---] #ifndef PCI_IN_LONG #define PCI_IN_LONG(x) sysInLong (x) #endif IMPORT UINT32 sysInLong (UINT32 address); || Line#417 [--- omitted ---] #endif /* _ASMLANGUAGE */ [--- omitted ---] || ######### File mbx800.h : 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: Compilation for MBX860 target failed Date: Thu, 9 May 2002 15:44:52 +0200 From: "Alex Vinokur" Organization: Scopus Message-ID: References: "Alex Vinokur" wrote in message news:abdp47$h3rj5$1@ID-79865.news.dfncis.de... [snip] | | || File#3 of 3 | || ######### File mbx800.h : BEGIN ######### | || Full path : D:\sys2\Tornado\target\config\mbx860\mbx800.h | | /* mbx800.h - Motorola MBX800 board header */ | | /* Copyright 1984-1998 Wind River Systems, Inc. */ | /* Copyright 1997,1998 Motorola, Inc., All Rights Reserved */ | | | [--- omitted ---] | | #ifndef _ASMLANGUAGE | | /* PCI I/O function defines */ | | [--- omitted ---] | | #ifndef PCI_IN_LONG | #define PCI_IN_LONG(x) sysInLong (x) | #endif ============================================================ | IMPORT UINT32 sysInLong (UINT32 address); || Line#417 I changed the line above to IMPORT ULONG sysInLong (ULONG address); This action helped. However, is it safe ? ============================================================ | | [--- omitted ---] | | #endif /* _ASMLANGUAGE */ | | [--- omitted ---] | | | || ######### File mbx800.h : END ########### | | [snip] --------------------------- Newsgroups: comp.os.vxworks Subject: Two GD82559ER adapters under VxWorks Date: 9 May 2002 06:35:24 -0700 From: voval@compulab.co.il (Vova) Organization: http://groups.google.com/ Message-ID: I have a board with two GD82559ER (both are correctly working). I use Intel END/BSD (same behaviour) driver for VxWorks. When I configure only one adapter everything works fine. However when the driver is configured to work with both Ethernet adapters, the network response sometimes becomes slower. As a test I ping the board from/to other computer (either same board connected via cross cable or another computer). When only one adapter is configured in the driver, each ping always takes exactly 1 ms. However with two adapters about 5% of pings have a response time of 10 to 80 ms. The second adapter is enabled in driver only, no TCP/IP is bond and it is not connected to Ethernet. (I tried to configure IP address of it and connect it to Ethernet as well - the same result). I am confident that it is a problem of software, because I saw with WindView that tNetTask sometimes becomes active (when two adapters are set) and if the ICMP echo request arrives at that time, the response time is higher. Both Ethernet adapters work fine together under Linux. The configuration is: { 0, EEE82559_LOAD_FUNC, EEE82559_LOAD_STRING, EEE82559_BUFF_LOAN, NULL, FALSE}, { 1, EEE82559_LOAD_FUNC, EEE82559_LOAD_STRING, EEE82559_BUFF_LOAN, NULL, FALSE}, where all defines are standard. Does anyone know the phenomenon and what to do with it? --------------------------- Newsgroups: comp.os.vxworks Subject: How to define a Tornado startup script? Date: 9 May 2002 07:13:59 -0700 From: rprewitt@oni.com (Rob Prewitt) Organization: http://groups.google.com/ Message-ID: There are some commands we need to run on our target before starting a debugger/Windview/etc. Specifically, we have a command to unprotect the text section. Is there a way to specify a file with these type of commands that run automatically upon tool startup (or target server connection)? Thanks in advance, Rob Prewitt --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Advice on TCP/UDP task arrangement Date: Thu, 9 May 2002 10:25:04 -0400 From: Keith Arner Organization: Marconi Message-ID: <313680C9A886D511A06000204840E1CF67A17A-100000@whq-msgusr-02.pit.comms.marconi.com> References: Reply-To: Keith Arner On 9 May 2002, RichardBarry wrote: > I have a general question on using UDP from within a task, any advice > would be gratefully received. > > I have been experimenting with a system where I create a UDP socket > then spawn one task that reads from the socket and one that writes to > the socket. The writing task blocks on a message queue, and when a > message arrives formats it and transmits it. The receiving task > blocks on a call to recvfrom(), and when a message arrives, formats it > and posts it onto a different message queue. > > This seems to work, however is this a valid thing to do? i.e. is > mutual exclusion around the socket guaranteed by the OS, or must I > provide it explicitly? What would happen in the Tx task deleted the > socket while the Rx task was blocked on recvfrom()? If one task closes a socket (or any fd, for that matter), while another task is still attempting to operate on it, Bad Things might happen. If the Rx task is *acutally in* recvfrom(), and waiting on the semaphore for that socket, then it will get an good error code from recvfrom(). However, how can you tell this from the Tx task? What if the Rx task is just about to call recvfrom() when the Tx task closes the socket, then another task jumps in and opens another socket? Then, the Rx task does a recvfrom() on another application's socket, which is not what you want at all. You really need to view open()/close() (or socket()/close()) just like malloc()/free(). Both are managing access to a set of dynamically allocatable, globally shared resources. If one task is still operating on a memory region when another task free()'s it Bad Things will happen. The same argument holds for one task operating on a socket or fd when another task close()'s it. Any time you have tasks sharing resources, you need to make sure that all tasks are done operating on the resource before you free it up. Keith --------------------------- Newsgroups: comp.os.vxworks Subject: Inside ISR check? Date: Thu, 09 May 2002 14:45:40 GMT From: "doug dotson" Organization: Verio Message-ID: Is there any way to determine if you are inside an ISR? doug --------------------------- Newsgroups: comp.os.vxworks Subject: Non blocking UDP sockets? Date: 9 May 2002 08:46:38 -0700 From: barryrichard@hotmail.com (RichardBarry) Organization: http://groups.google.com/ Message-ID: Hi, I am setting up a socket to be non-blocking with the follwing call int iValue = 1; ioctl( Socket, FIONBIO, &iValue ); This works fine for one OS, but under VxWorks seems to render all sendto() calls from that point on (even on unreleated sockets) useless - - with errno getting set to EHOSTUNREACH. Any ideas??? --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Advice on TCP/UDP task arrangement Date: 9 May 2002 09:02:38 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0205090802.5b5e4817@posting.google.com> References: <3CDA52E1.F1B752C4@idl.bt.co.uk> Hello, > Since a socket must be some form of waitable object (how does recvfrom() > actually block?), then closing it releases waiting tasks, returning an > error code to their caller. All seems to work reliably for me ;) You can easily tell what it is blocking on... wait for the task to block and then use tt() from a shell to get you a stack trace. I think you'll find there's a semaphore at the bottom of it ;-) HTH, John... --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Two GD82559ER adapters under VxWorks Date: Thu, 9 May 2002 16:32:06 +0000 (UTC) From: David Laight Organization: BT Openworld Message-ID: <3CDAA4E1.8070807@spamm.me.l8s.co.uk> References: > I am confident that it is a problem of software, because I saw with > WindView that tNetTask sometimes becomes active (when two adapters are > set) You MIGHT be able to catch what it is doing by typing "tt tNetTask" into the target shell a lot of times! OTOH you could guess where it might be and set a breakpoint (having removed the VX_UNBREAKABLE flag from tNetTask) - again from the target shell. If the system is actually busy-looping, a statistical code performace moniter would help - ie something that takes a fast timer interrupt and builds a histogram of the interrupted PC. I don't think vxWorks has one..... but very useful for finding out which piece of code to optimise. David --------------------------- Newsgroups: comp.os.vxworks,gnu.gcc.help Subject: Re: cross compiling gcc - parse error Date: 9 May 2002 09:37:27 -0700 From: demiurg@tau.ac.il (Alexander Sirotkin) Organization: http://groups.google.com/ Message-ID: References: <3CDA539D.F483A489@idl.bt.co.uk> I'm trying to build both compiler and linker (binutils) and they obviously need to include vxworks.h... am I wrong ? Phil Ashby wrote in message news:<3CDA539D.F483A489@idl.bt.co.uk>... > Alexander Sirotkin wrote: > > > > I'm trying to compile gcc & bintutils for vxworks on Linux, > > binutils are compiled just fine, but gcc throuws the following error: > > > > /root/gnu/gcc-2.95/gcc/config/mips/vxworks.h:3: parse error before `file' > > > > Apparently, it does not like embedded comments > > > > vxworks.h:3 > > /* Copyright (C) 1999 Free Software Foundation, Inc. */ > > This file is part of GNU CC. > > That looks wrong. Obviously the text 'This file...' should be in a > coment block, but isn't. Why should a cross-compiler need to include > a BSP-specific vxworks.h anyway? > > Surely you just need to create a cross-compiler for the target CPU, > not the O/S? --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Inside ISR check? Date: Thu, 9 May 2002 10:07:21 -0700 From: "Hwa Jin Bae" Organization: PSO Systems Inc Message-ID: References: I think there is a global int variable called intCnt. - -- Hwa Jin Bae mailto:hjb@pso.com http://www.pso.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Advice on TCP/UDP task arrangement Date: Thu, 9 May 2002 10:17:53 -0700 From: "Hwa Jin Bae" Organization: PSO Systems Inc Message-ID: References: There might be a small window where things get out of wack. I personally have not seen such window of confusion but it is theoretically possible in systems with a lot of interrupts and prioritized tasks. I would advise that the application level code coordinates transaction sessions. For example, before writing task closes the datagram socket, it can send a "FINISH" message to receiving side, which then "ACK" that message. Sounds like a TCP? :-) - -- Hwa Jin Bae mailto:hjb@pso.com http://www.pso.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Two GD82559ER adapters under VxWorks Date: Thu, 09 May 2002 13:46:29 -0400 From: George Varndell Organization: Newsfeeds.com http://www.newsfeeds.com 100,000+ UNCENSORED Newsgroups. Message-ID: <3CDAB5F5.916FCC56@ineoquest.com> References: <3CDAA4E1.8070807@spamm.me.l8s.co.uk> David Laight wrote: [snip] > > If the system is actually busy-looping, a statistical code performace > moniter would help - ie something that takes a fast timer interrupt > and builds a histogram of the interrupted PC. I don't think > vxWorks has one..... but very useful for finding out which piece > of code to optimise. Real-Time Innovations, Inc., a Wind partner, has ProfileScope. It is indeed useful for debugging this sort of problem. It is possible that the driver is off polling the PHY. Regards, George Varndell --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Two GD82559ER adapters under VxWorks Date: Thu, 9 May 2002 18:11:26 +0000 (UTC) From: David Laight Organization: BT Openworld Message-ID: <3CDABC27.2030007@spamm.me.l8s.co.uk> References: <3CDAA4E1.8070807@spamm.me.l8s.co.uk> <3CDAB5F5.916FCC56@ineoquest.com> >>If the system is actually busy-looping, a statistical code performace >>moniter would help - ie something that takes a fast timer interrupt >>and builds a histogram of the interrupted PC. I don't think >>vxWorks has one..... but very useful for finding out which piece >>of code to optimise. >> > > Real-Time Innovations, Inc., a Wind partner, has ProfileScope. > It is indeed useful for debugging this sort of problem. And many others... Probably more use than the windview stuff you get for free that just tells you which task is busy. I managed to get time attributed to the caller of certain routines - eg bcopy(), malloc() etc. > It is possible that the driver is off polling the PHY. Or just doesn't support 2 interfaces :-( David --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Inside ISR check? Date: Thu, 09 May 2002 14:18:10 -0500 From: Andrew Johnson Organization: APS, Argonne National Laboratory Message-ID: <3CDACB72.E96D8F45@aps.anl.gov> References: doug dotson wrote: > > Is there any way to determine if you are inside an > ISR? BOOL intContext(void); It's in intLib.h - - 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: Inside ISR check? Date: Thu, 09 May 2002 19:39:59 GMT From: "doug dotson" Organization: Verio Message-ID: References: <3CDACB72.E96D8F45@aps.anl.gov> That'll do it, thanks! doug "Andrew Johnson" wrote in message news:3CDACB72.E96D8F45@aps.anl.gov... > doug dotson wrote: > > > > Is there any way to determine if you are inside an > > ISR? > > BOOL intContext(void); > > It's in intLib.h > > - 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,comp.sys.powerpc.tech,comp.sys.powerpc.misc,comp.sys.powerpc.advocacy Subject: Memory data integrity preservation Date: 9 May 2002 13:40:03 -0700 From: ryeung@earthlink.net (Raymond Yeung) Organization: http://groups.google.com/ Message-ID: This posting concerns the usage of 8260 Memory Controller's - - Write-protect feature - - Error Detection and Correction feature to preserve data integrity in flash and EEPROM. I'm thinking that, unlike DRAM, flash and EEPROM are nonvolatile. Errors would persist. It may make sense to offer some integrity assurance. + Is it common to use either/both of the above for this purpose? + I'm thinking about dynamically changing the write-protect bit in BR to enable/disable this feature. This is so that the memory is not wide open to store trampler at all time. Any catches? + As far as error detection/correction is concerned, there're choices - normal parity - read-modify-write parity - ECC correction and checking when do we use which one? And also when error is detected, would this cause an exception that I'd handle, if I want the S/W to retry, or at least to recover (without resetting the system). How much slower are we talking about? + Would it be inconsistent if I choose not to, say, do the same memory data error checking on DRAM? Presumably the content there could be corrupted before it is stored into the non-volatile store. The data would still be invalid, but the NV-store won't detect it. Thanks, Raymond --------------------------- Newsgroups: comp.os.vxworks Subject: Non-Blocking Socket is Blocking Date: Thu, 9 May 2002 13:58:00 -0700 From: "Tim Ellis" Organization: Verio Message-ID: I have a TCP non-blocking socket, that I am sending data out on. When I unplug the Ethernet cable from my instrument, my send() blocks until the Ethernet cable is plugged back in. Is this an expected behavior? I was hoping that on a failed send(), I could do some further error checking (maybe check error status of tNetTask) to determine if my cable is disconnected. Tim --------------------------- Newsgroups: comp.os.vxworks Subject: C++ comments in C file with GNU compiler Date: Thu, 9 May 2002 14:56:29 -0700 From: "Haim Tebeka" Organization: Posted via Supernews, http://www.supernews.com Message-ID: This is a multi-part message in MIME format. - ------=_NextPart_000_0008_01C1F769.B3902680 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is there any compilation switch that one can use so that the GNU = compiler will not spit a syntax error whenever it sees a C++ (//) style = comment in a C file? I haven't looked into this very deeply yet but if = one of you knows the answer, that would save me some time... Thanks, h - ------=_NextPart_000_0008_01C1F769.B3902680 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is there any compilation switch that = one can use so=20 that the GNU compiler will not spit a syntax error whenever it sees a = C++ (//)=20 style comment in a C file? I haven't looked into this very deeply yet = but if one=20 of you knows the answer, that would save me some time...
 
Thanks,
 
h
 
 
- ------=_NextPart_000_0008_01C1F769.B3902680-- --------------------------- Newsgroups: comp.os.vxworks Subject: We're havin' some fun now! Date: Thu, 09 May 2002 18:07:12 -0700 From: "Michael R. Kesti" Organization: MK Associates Message-ID: <3CDB1D40.F9C93A9@gv.net> Reply-To: mkesti@gv.net After more than six months of unemployment, I've recently been on contract doing BSP and board bring-up for a small company. In the last three days I've written, debugged (initially!), and began testing a vxWorks device driver and I just want to say that I am REALLY LOVING IT! - -- ======================================================================== 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: ENVOY SNMP Date: 9 May 2002 18:11:42 -0700 From: chrismooremobile@yahoo.com (Chris Moore) Organization: http://groups.google.com/ Message-ID: References: <3CD35445.8123C2F0@worldnet.att.net> Les Cargill wrote in message news:<3CD35445.8123C2F0@worldnet.att.net>... > Jason wrote: > > > > Hello: > > > > I have successfully built the ENVOY SNMP module for PPC, but it quite > > big (1.5MBytes). I hope to reduce it. Does any one have the idea ? > > > > One way I want to try is, among the 11 groups of MIB II, only include > > a few of them, say the system and ip, exclude the rest 9 groups. But > > how to do it exactly? > > > > Use the "-exclude" option when invoking the MIB compiler. > > > Thanks in advance! Hi Everyone, We use ENVOY 9.1 SNMP and find that is is REALLLLY slow when working with HP Open view and ...AdventNet SNMP mangers. Using "snmptool" from the win32 CLI its fine and fast.... does anyone know if this is a setting problem on either the client or the manager? Cheers, --------------------------- Newsgroups: comp.os.vxworks Subject: Accessing hard disk Date: 9 May 2002 22:29:55 -0700 From: akjayant@hss.hns.com (Maverick) Organization: http://groups.google.com/ Message-ID: <253a5f89.0205092129.150afb1d@posting.google.com> Hi, I am trying to create a Vxwork image that can support hard disk. I have included IDE hard disk drive but when I tried to build I got an error: undefined reference to ideTypes. What all changes in configuration files do I need to do so that I can use hard disk on pcpentium target? To use hard disk I had followed the following procedure 1) Initialise IDE driver by using ideDrv() 2) Create device for IDE disk ideDevCreate() 3) Initialise the device with dos File system by using dosFsDevInit() 4) Use hard disk. Is this the procedure to use hard disk correct? Any pointers will be greately appreciated. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Compilation for MBX860 target failed Date: Fri, 10 May 2002 05:40:49 GMT From: "Gary M" Organization: AT&T Broadband Message-ID: References: "Alex Vinokur" wrote in message news:abdqt2$hdsib$1@ID-79865.news.dfncis.de... > > | IMPORT UINT32 sysInLong (UINT32 address); || Line#417 > > I changed the line above to > > IMPORT ULONG sysInLong (ULONG address); > > This action helped. > > However, is it safe ? > Yes, but I'm curious as to why the problem developed after you "changed nothing". Something obviously changed. Did you load a Tornado or BSP patch? --------------------------- Newsgroups: comp.os.vxworks,comp.sys.powerpc.tech,comp.sys.powerpc.misc,comp.sys.powerpc.advocacy Subject: Re: Memory data integrity preservation Date: Fri, 10 May 2002 05:52:55 GMT From: "Gary M" Organization: AT&T Broadband Message-ID: References: Comments below: "Raymond Yeung" wrote in message news:d83bb8e3.0205091240.70e6f074@posting.google.com... > This posting concerns the usage of 8260 Memory Controller's > - Write-protect feature > - Error Detection and Correction feature > to preserve data integrity in flash and EEPROM. > > I'm thinking that, unlike DRAM, flash and EEPROM are nonvolatile. > Errors would persist. It may make sense to offer some integrity > assurance. Generally a good idea. > > + Is it common to use either/both of the above for this purpose? Yes, either/both are commonly used, depending on the application. > + I'm thinking about dynamically changing the write-protect bit > in BR to enable/disable this feature. This is so that the memory > is not wide open to store trampler at all time. Any catches? Well, that's really the job of the OS, working in conjuction with the toolset and the loader. Your code would have to be aware of all the possible memory interactions going on (tasks, I/O) to be a true enforcer. You are trusting a piece of the application to do the work of the OS. > + As far as error detection/correction is concerned, there're choices > - normal parity > - read-modify-write parity > - ECC correction and checking > when do we use which one? And also when error is detected, would > this cause an exception that I'd handle, if I want the S/W to retry, > or at least to recover (without resetting the system). > How much slower are we talking about? ECC can recover from single bit and certain double bit errors, depending on the logic being used. Parity can only detect errors, without recovering the data. The time required to calculate either parity or ECC is practically buried in the memory logic; however, error detecting/correcting memory is more expensive. You have to consider the statistical probability of encountering a memory error over the life of the product to justify the use of error-detecting/correcting logic. > + Would it be inconsistent if I choose not to, say, do the same memory > data error checking on DRAM? Presumably the content there could be > corrupted before it is stored into the non-volatile store. The data > would still be invalid, but the NV-store won't detect it. It all depends on when you place guarantees on when the data is "valid". If you apply a suitable CRC check to a block of memory when you can guarantee its correctness, you can always be able to determine if the data is correct later on when you retrieve it or store it somewhere else. The main point is: when is the data guaranteed to be correct? > > Thanks, > Raymond --------------------------- Newsgroups: comp.os.vxworks Subject: Re: C++ comments in C file with GNU compiler Date: Fri, 10 May 2002 05:55:56 GMT From: "Gary M" Organization: AT&T Broadband Message-ID: References: If you remove the -ansi switch from the compiler settings, "//" style comments will be allowed. However, other ANSI rules are also relaxed. Check the compiler documentation. "Haim Tebeka" wrote in message news:udls4hdm5mvh97@corp.supernews.com... Is there any compilation switch that one can use so that the GNU compiler will not spit a syntax error whenever it sees a C++ (//) style comment in a C file? I haven't looked into this very deeply yet but if one of you knows the answer, that would save me some time... Thanks, h --------------------------- Newsgroups: comp.os.vxworks Subject: problem launching the target server on host Date: 9 May 2002 23:54:50 -0700 From: forvxworks@rediffmail.com (Anand) Organization: http://groups.google.com/ Message-ID: Hi All, i am configuring a vxWorks target for PENTIUM CPU using Network as the connection between host and target. I am able to boot the target in vxWorks using the bootable floppy i made by giving the appropriate bootline,IO address and the Interrupt level of the Ethernet Adapter. but while launching the target server on the host machine, with the backend "wdbrpc" , the server logconsole gives the following message.. Connecting to Target agent.... Error:rpccore backend client Timed out failed. On the target machine i am getting the massages as follows... muxDevLoad failed for device entry0! Attached TCP/IP interface to ene unit0 Attaching intarface lo0...done ........ ....... WDB : Ready -> the Ethernet Adapter i am using is .. SURECOM EP-325 PCI Ethernet Adapter. I am unable to the get what the problem is. Can anyone help?? Thanks in advance. Regards. Anand. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Non-Blocking Socket is Blocking Date: Fri, 10 May 2002 06:56:56 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: Tim, I done a lot of non-blocking TCP stuff, and have not seen this kind of behaviour, although I did not try to unplug the ethernet cable, and if I did, it would not matter because the TCP output is the main thing this device is supposed to do. What I can think of as a possible reason to this blocking is the mutex - the net stack has a single mutex (emulation of splnet() and splx() .. ) and any socket or other net function would block if someone else has taken up this mutex. In your case, unplugging the cable may mean that the driver has to go into PHY auto-negotiation phase. We have already dealt with the problem of netTask going into lengthy processing pohase while doing PHY autonegotiation, and surely enough the netTask executing driver code would be taking the splnet mutex. "Tim Ellis" wrote in message news:hqBC8.14075$JZ6.238882@dfw-read.news.verio.net... > I have a TCP non-blocking socket, that I am sending data out on. > > When I unplug the Ethernet cable from my instrument, my send() blocks until > the Ethernet cable is plugged back in. > > Is this an expected behavior? > > > I was hoping that on a failed send(), I could do some further error checking > (maybe check error status of tNetTask) to determine if my cable is > disconnected. > > > Tim > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Non blocking UDP sockets? Date: Fri, 10 May 2002 06:58:59 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: I do not know why this fails, but I very much doubt there is any point in doing NB on UDP socket, cause UDP sockets actually NEVER BLOCK except when receiving, and you can poll the socket for data before going into reception with ioctl FIONREAD. "RichardBarry" wrote in message news:eec86974.0205090746.587b97c3@posting.google.com... > Hi, > > I am setting up a socket to be non-blocking with the follwing call > > int iValue = 1; > ioctl( Socket, FIONBIO, &iValue ); > > This works fine for one OS, but under VxWorks seems to render all > sendto() calls from that point on (even on unreleated sockets) useless > - with errno getting set to EHOSTUNREACH. > > Any ideas??? --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Non blocking UDP sockets? Date: Fri, 10 May 2002 09:04:46 +0000 (UTC) From: David Laight Organization: BT Openworld Message-ID: <3CDB8D86.6090009@spamm.me.l8s.co.uk> References: Leonid Rosenboim wrote: > I do not know why this fails, but I very much doubt > there is any point in doing NB on UDP socket, > cause UDP sockets actually NEVER BLOCK > except when receiving, IMHO this is a bug! I believe UDP sockets should block for (local) flow control reasons. I'm fairly sure the SuS allows send() to block, and probably expects it to. For instance a process level NFS stack will not work if the UDP datagrams are discarded just because the network is busy, or some internal socket send buffer is full.... Clearly UDP traffic CAN be discarded - but it should only be done to relieve a buffer crisis. David --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Fri May 10 05:55:33 2002 From: Diego Novellon Date: Fri May 10 05:55:35 PDT 2002 Subject: Re: C++ comments in C file with GNU compiler > Newsgroups: comp.os.vxworks > Subject: Re: C++ comments in C file with GNU compiler > Date: Fri, 10 May 2002 05:55:56 GMT > From: "Gary M" > Organization: AT&T Broadband > Message-ID: > References: > > If you remove the -ansi switch from the compiler settings, "//" style > comments will be allowed. However, other ANSI rules are also relaxed. > Check > the compiler documentation. > > "Haim Tebeka" wrote in message > news:udls4hdm5mvh97@corp.supernews.com... > Is there any compilation switch that one can use so that the GNU > compiler > will not spit a syntax error whenever it sees a C++ (//) style comment > in a > C file? I haven't looked into this very deeply yet but if one of you > knows > the answer, that would save me some time... > > Thanks, > > h Someone else in this forum recently suggested the flag "-Wp,-lang-c" (w/o the quotes). Works fine for me (VxWorks 5.4.2 / pcPentium). Just my two eurocents. Diego Novellon From vxwexplo-errs@csg.lbl.gov Sat May 11 04:03:14 2002 From: Vxworks Exploder Date: Sat May 11 04:03:16 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Sat May 11 04:03:09 PDT 2002 Subject: Re: problem launching the target server on host Subject: 860 SMC question ... Subject: Re: Non blocking UDP sockets? Subject: Re: Non blocking UDP sockets? Subject: Re: Memory data integrity preservation Subject: Re: cross compiling gcc - parse error Subject: Link error while working with SBC8260 Subject: Re: Bsp Testing Subject: Re: Memory data integrity preservation Subject: A question about cacheDmaMalloc! Subject: Compilation for MBX860 target failed Subject: Re: Compilation log file Subject: ld() error Subject: Re: ld() error Subject: Re: ld() error Subject: implementing clrscr() in vxworks Subject: Re: getting the base address of the PCI card Subject: Re: problem launching the target server on host Subject: How to use AF_ROUTE ? Subject: Re: Link error while working with SBC8260 Subject: How do I do FTP on a non-default port using PORT and PASV ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: problem launching the target server on host Date: Fri, 10 May 2002 13:56:55 GMT From: igtorque@yahoo.es (Ignacio Gonzalez T.) Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com Message-ID: <3cdbcf80.172834242@news.mhogaming.com> References: On 9 May 2002 23:54:50 -0700, forvxworks@rediffmail.com (Anand) wrote: >Hi All, > i am configuring a vxWorks target for PENTIUM CPU using Network as >the connection between host and target. > I am able to boot the target in vxWorks using the bootable floppy >i >made by giving the appropriate bootline,IO address and the Interrupt >level of the Ethernet Adapter. but while launching the target server >on the host machine, with the backend "wdbrpc" , the server logconsole >gives the following message.. > > Connecting to Target agent.... > Error:rpccore backend client Timed out > failed. > > >On the target machine i am getting the massages as follows... > > > > muxDevLoad failed for device entry0! > Attached TCP/IP interface to ene unit0 > Attaching intarface lo0...done > > ........ > ....... > WDB : Ready > -> > > > the Ethernet Adapter i am using is .. > > SURECOM EP-325 PCI Ethernet Adapter. > > I am unable to the get what the problem is. Can anyone help?? > >Thanks in advance. >Regards. >Anand. Maybe your configNet.h is not correct. More precisely, the definition of END_TBL_ENTRY endDevTbl [] may be missing something important related to the Ethernet driver. If it were correct, you should expect, at worst, something like muxDevLoad failed for device sep0! instead of muxDevLoad failed for device entry0! --------------------------- Newsgroups: comp.os.vxworks Subject: 860 SMC question ... Date: Fri, 10 May 2002 14:57:05 GMT From: "Jim" Organization: Magma Communications Ltd. Message-ID: <5dRC8.21403$f5.1728610@news> Hello, I have a question for you MPC860 lovers out there ... I am trying to write a MPC 860 polled UART driver that I can call from romStart.c ... Nothing seems to be printing yet ... and I haven't spent to much time debugging ... but any suggestions would be awesome ... the code is below ... Jim /* SMC 2 Pins Information */ #define portB23_SMSYN1_mask (0x1<<31-23) #define portB24_SMRXD1_mask (0x1<<31-24) #define portB25_SMTXD1_mask (0x1<<31-25) /* Port B Registers */ #define PBPAR_ADDR 0x02200abc #define PDDIR_ADDR 0x02200ab8 #define PBODR_ADDR 0x02200ac0 #define PBDAT_ADDR 0x02200ac4 /*SMC Clocks Registers*/ #define CPU_CLCK 80000000 /*80 Mhz*/ #define BRG1_ADDR 0x22009F0 #define SCCR_ADDR 0x2200280 /*SI Mode Register*/ #define SIMODE_ADDR 0x2200ae0 /*SMS Parameter Ram*/ #define SMC1_PRAM_START_ADDR 0x2203E80 #define SMC1_PRAM_TBASE_ADDR (SMC1_PRAM_START_ADDR + 0x00) #define SMC1_PRAM_RBASE_ADDR (SMC1_PRAM_START_ADDR + 0x02) #define SMC1_PRAM_RFCR_ADDR (SMC1_PRAM_START_ADDR + 0x04) #define SMC1_PRAM_TFCR_ADDR (SMC1_PRAM_START_ADDR + 0x05) #define SMC1_PRAM_MRBLR_ADDR (SMC1_PRAM_START_ADDR + 0x06) #define SMC1_PRAM_MAX_IDL_ADDR (SMC1_PRAM_START_ADDR + 0x28) #define SMC1_PRAM_BRKLN_ADDR (SMC1_PRAM_START_ADDR + 0x2C) #define SMC1_PRAM_BRKEC_ADDR (SMC1_PRAM_START_ADDR + 0x2E) #define SMC1_PRAM_RKCR_ADDR (SMC1_PRAM_START_ADDR + 0x30) /*CPCR Communications Processor Command Register*/ #define CPCR_ADDR 0x022009c0 /*CIMR*/ #define CIMR_ADDR 0x2200948 #define CICR_ADDR 0x2200940 /*SDMA Config Register*/ #define SDCR_ADDR 0x02200030 /*SMC1 Event Register*/ #define SMCE1_ADDR 0x02200a86 /*SMC1 Mask Register*/ #define SMCM1_ADDR 0x02200a8a /*SMC1 Mode Register*/ #define SMCMR1_ADDR 0x02200a82 /**********************************************************************/ void InitSMC2ForUart() { unsigned SCCR_DFBRG; unsigned default_baud_rate; unsigned tager_brg1_rate = 9600 * 16; unsigned BRG1_CD; unsigned BRG1_DIV16; static char rx_buff[10]; #define TX_BUFF "hello\n" static unsigned tmp; /*--------------------------------------------------------------------- * 1.) ConÞgure the port B pins to enable SMTXD1 and SMRXD1. * Set PBPAR[24, 25] then clear PBDIR[24, 25] and PBODR[24, 25]. ---------------------------------------------------------------------*/ *(unsigned *)PBPAR_ADDR = (*(unsigned *)PBODR_ADDR) | ~(portB24_SMRXD1_mask | portB25_SMTXD1_mask); *(unsigned *)PDDIR_ADDR = (*(unsigned *)PBODR_ADDR) & ~(portB24_SMRXD1_mask | portB25_SMTXD1_mask); *(unsigned *)PBODR_ADDR = (*(unsigned *)PBODR_ADDR) & ~(portB24_SMRXD1_mask | portB25_SMTXD1_mask); /*--------------------------------------------------------------------- * 2.) ConÞgure the BRG1. Write BRGC1 with 0x01_0144. * The DIV16 bit is not used and the divider is 162 (decimal). * The resulting BRG1 clock is 16´ the preferred bit rate. ---------------------------------------------------------------------*/ SCCR_DFBRG = ( ( (*(unsigned *)SCCR_ADDR) >> (31-20) )& 0x3 ); if ( SCCR_DFBRG == 0x0 ) { default_baud_rate = CPU_CLCK / 1; } else if ( SCCR_DFBRG == 0x1 ) { default_baud_rate = CPU_CLCK / 4; } else if ( SCCR_DFBRG == 0x2 ) { default_baud_rate = CPU_CLCK / 16; } else { default_baud_rate = CPU_CLCK / 64; } BRG1_CD = default_baud_rate/tager_brg1_rate; if ( BRG1_CD > (0xfff) ) { /*CD is only 12 bits*/ BRG1_CD = (default_baud_rate/16)/tager_brg1_rate; BRG1_DIV16 = 1; } else { BRG1_DIV16 = 0; } *(unsigned *)BRG1_ADDR = (0x00010000 | (BRG1_CD<<1) | BRG1_DIV16); /*--------------------------------------------------------------------- * 3. Connect BRG1 to SMC1 using the SI. Clear SIMODE[SMC1, SMC1CS]. ---------------------------------------------------------------------*/ *(unsigned *)SIMODE_ADDR = (*(unsigned *)SIMODE_ADDR) & ~(0x0000f000); /*--------------------------------------------------------------------- * 4. Assuming one RxBD at the beginning of dual-port RAM * followed by one TxBD, write RBASE with 0x0000 and * TBASE with 0x0008. ---------------------------------------------------------------------*/ * (unsigned short *)SMC1_PRAM_TBASE_ADDR = 0x0008; * (unsigned short *)SMC1_PRAM_RBASE_ADDR = 0x0000; /*--------------------------------------------------------------------- * 5. Write 0x0091 to CPCR to execute the INIT RX AND TX PARAMETERS command. ---------------------------------------------------------------------* / *(unsigned short *)CPCR_ADDR = 0x0091; /*--------------------------------------------------------------------- * 6. Initialize the SDMA conÞguration register (SDCR) to 0x0001. ---------------------------------------------------------------------* / * (unsigned short *)SDCR_ADDR = 0x0001; /*--------------------------------------------------------------------- * 7. Write RFCR and TFCR with 0x10 for normal operation. ---------------------------------------------------------------------* / * (unsigned char *)SMC1_PRAM_RFCR_ADDR = (unsigned char)0x10; * (unsigned char *)SMC1_PRAM_TFCR_ADDR = (unsigned char)0x10; /*--------------------------------------------------------------------- * 8. Write MRBLR with the maximum number of bytes per receive buffer. * Assume 16 bytes, so MRBLR = 0x0010. ---------------------------------------------------------------------* / * (unsigned short *)SMC1_PRAM_MRBLR_ADDR = 0x0010; /*--------------------------------------------------------------------- * 9. Write MAX_IDL with 0x0000 in the SMC UART-speciÞc parameter RAM to * disable the MAX_IDL functionality for this example. ---------------------------------------------------------------------* / * (unsigned short *) SMC1_PRAM_MAX_IDL_ADDR = 0x0000; /*--------------------------------------------------------------------- * 10. Clear BRKLN and BRKEC in the SMC UART-speciÞc parameter RAM. ---------------------------------------------------------------------* / * (unsigned short *)SMC1_PRAM_BRKLN_ADDR = 0x0000; * (unsigned short *)SMC1_PRAM_BRKEC_ADDR = 0x0000; /*--------------------------------------------------------------------- * 11. Set BRKCR to 0x0001; if a STOP TRANSMIT COMMAND is issued, * one break character is sent. ---------------------------------------------------------------------* / * (unsigned short *) SMC1_PRAM_RKCR_ADDR = 0x0001; /*--------------------------------------------------------------------- * 12. Initialize the RxBD. Assume the Rx buffer is at 0x0000_1000 * in main memory. Write 0xB000 to Rx_BD_Status, 0x0000 to Rx_BD_Length * (not required), and 0x0000_1000 to Rx_BD_Pointer. ---------------------------------------------------------------------* / *(unsigned short*)0x2202000= 0xB000; *(unsigned short*)0x2202002= 10; *(unsigned *)0x2202004= (unsigned *)rx_buff; /*--------------------------------------------------------------------- * 13. Assuming the Tx buffer is at 0x00002000 in main memory and * contains Þve 8-bit characters, write 0xB000 to Tx_BD_Status, * 0x0005 to Tx_BD_Length, and 0x00002000 to Tx_BD_Pointer. ---------------------------------------------------------------------* / *(unsigned short*)0x2202008= 0xB000; *(unsigned short*)0x220200a= 6; *(unsigned *)0x220200c= (unsigned *)0x2800130; /*--------------------------------------------------------------------- * 14. Write 0xFF to the SMCE register to clear any previous events. ---------------------------------------------------------------------* / * (unsigned char *) SMCE1_ADDR = 0xff; /*--------------------------------------------------------------------- * 15. Write 0x17 to the SMCM register to enable all possible SMC * interrupts. * Note: I want no interupts enabled so I set this to 0x0 ... like * a good boy ---------------------------------------------------------------------* / * (unsigned char *) SMCM1_ADDR = 0x0; /*--------------------------------------------------------------------- * 16. Write 0x00000010 to the CIMR so the SMC1 can generate a system * interrupt. Initialize the CICR. * Note: I want no interupts enabled so I DO NOT DO THIS! ---------------------------------------------------------------------* / *(unsigned *) CIMR_ADDR = 0x00000010; *(unsigned *) CICR_ADDR = 0x00000000; /*--------------------------------------------------------------------- * 17. Write 0x4820 to SMCMR to conÞgure normal operation (not loopback), * 8-bit characters, no parity, 1 stop bit. * The transmitter and receiver are not yet enabled. ---------------------------------------------------------------------* / * (unsigned short *) SMCMR1_ADDR = 0x4820; /*--------------------------------------------------------------------- * 18. Write 0x4823 to SMCMR to enable the SMC transmitter and * receiver. This additional write ensures that the TEN and * REN bits are enabled last. ---------------------------------------------------------------------* / * (unsigned short *) SMCMR1_ADDR = 0x4823; } /**********************************************************************/ void SMC2_Write(char *str) { int i; for (i=0;i<256 || str[i]!='\0';i+=1); *(unsigned short*)0x2202008= 0xB000; *(unsigned short*)0x220200a= i; *(unsigned *)0x220200c= (unsigned *)0x2800130; } --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Non blocking UDP sockets? Date: Fri, 10 May 2002 15:12:20 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: <3CDB8D86.6090009@spamm.me.l8s.co.uk> Regarding UDP sockets, to the best of my knowledge, the socket does not block on send, if there are no buffers send() will return ENUBUFS error, if the packet was dropped on the network or due to excessive colissions or CRC error, the application is not made aware of that. This holds for VxWorks and Unix derivatives I have used. Regarding NFS, it does block the caller until the request is succesful, through the use of acknowledges and retransmission at the RPC level, as NFS is a protocol defined on top of ONC RPC. "David Laight" wrote in message news:3CDB8D86.6090009@spamm.me.l8s.co.uk... > Leonid Rosenboim wrote: > > > I do not know why this fails, but I very much doubt > > there is any point in doing NB on UDP socket, > > cause UDP sockets actually NEVER BLOCK > > except when receiving, > > > IMHO this is a bug! I believe UDP sockets should block > for (local) flow control reasons. I'm fairly sure the > SuS allows send() to block, and probably expects it to. > > For instance a process level NFS stack will not work if > the UDP datagrams are discarded just because the network > is busy, or some internal socket send buffer is full.... > > Clearly UDP traffic CAN be discarded - but it should only > be done to relieve a buffer crisis. > > David > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Non blocking UDP sockets? Date: 10 May 2002 08:14:07 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0205100714.5c6a4469@posting.google.com> References: <3CDB8D86.6090009@spamm.me.l8s.co.uk> Hello, > IMHO this is a bug! I believe UDP sockets should block > for (local) flow control reasons. I'm fairly sure the > SuS allows send() to block, and probably expects it to. Looking at the source for the network stack, a UDP sendto() call is checking the non-blocking state flag (and will return EWOULDBLOCK if necessary). It also calls sbwait() if the local send buffers are full and non-blocking is not set. I would conclude that it is possible for a UDP socket to block on sends at least. Rgds, John... --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Memory data integrity preservation Date: 10 May 2002 08:27:12 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0205100727.36d1e6de@posting.google.com> References: Hello, > > + I'm thinking about dynamically changing the write-protect bit > > in BR to enable/disable this feature. This is so that the memory > > is not wide open to store trampler at all time. Any catches? > > Well, that's really the job of the OS, working in conjuction with the > toolset and the loader. Your code would have to be aware of all the possible > memory interactions going on (tasks, I/O) to be a true enforcer. You are > trusting a piece of the application to do the work of the OS. Huh? Changing the write protect bit on the flash/PROM is not normally something I'd expect the toolset or loader to be involved in. I would expect the memory description of the OS to flag the area as read-only, and any software that is going to write to it to modify that protection while it writes to the flash and then restore the protection afterwards. > > + As far as error detection/correction is concerned, there're choices > > - normal parity > > - read-modify-write parity > > - ECC correction and checking > > when do we use which one? And also when error is detected, would > > this cause an exception that I'd handle, if I want the S/W to retry, > > or at least to recover (without resetting the system). > > How much slower are we talking about? > > ECC can recover from single bit and certain double bit errors, depending on > the logic being used. Parity can only detect errors, without recovering the > data. The time required to calculate either parity or ECC is practically > buried in the memory logic; however, error detecting/correcting memory is > more expensive. You have to consider the statistical probability of > encountering a memory error over the life of the product to justify the use > of error-detecting/correcting logic. I've never heard of anybody using ECC on flash/ROM. For a start, you need more bits (even the simple parity checking requires at least one extra bit). Secondly, writing to flash is performed using a procedure that requires commands to be presented to the device on the data bus - ECC would "corrupt" these commands, making it impossible to write to the flash from software (you can't disable the ECC to write since the content of the flash needs to be encoded for the ECC to work). Finally, to put the initial image in the devices, you would need something that could generate the ECC inclusive images from the ones produced during your build process. I think you should forget any ideas of doing ECC on Flash (unless you can find flash devices that support it internally). Checksumming (or similar) operations are much more viable for flash/ROM devices. HTH, John... --------------------------- Newsgroups: comp.os.vxworks,gnu.gcc.help Subject: Re: cross compiling gcc - parse error Date: Fri, 10 May 2002 11:42:09 -0700 From: Joe Durusau Organization: Lockheed Martin Corporation Message-ID: <3CDC1481.A1C0711B@lmco.com> References: <3CDA539D.F483A489@idl.bt.co.uk> Alexander Sirotkin wrote: > > I'm trying to build both compiler and linker (binutils) > and they obviously need to include vxworks.h... > am I wrong ? > > Phil Ashby wrote in message news:<3CDA539D.F483A489@idl.bt.co.uk>... > > Alexander Sirotkin wrote: > > > > > > I'm trying to compile gcc & bintutils for vxworks on Linux, > > > binutils are compiled just fine, but gcc throuws the following error: > > > > > > /root/gnu/gcc-2.95/gcc/config/mips/vxworks.h:3: parse error before `file' > > > > > > Apparently, it does not like embedded comments > > > > > > vxworks.h:3 > > > /* Copyright (C) 1999 Free Software Foundation, Inc. */ > > > This file is part of GNU CC. > > > > That looks wrong. Obviously the text 'This file...' should be in a > > coment block, but isn't. Why should a cross-compiler need to include > > a BSP-specific vxworks.h anyway? > > > > Surely you just need to create a cross-compiler for the target CPU, > > not the O/S? I think that you either have a bad copy of vxWorks.h, or maybe you have picked out the wrong line. The compiler doesn't always print correct line numbers for errors. BTW, on my copy of vxWorks.h, the text "this file.." does not appear. I see the line "/* Copy... " followed by a blank line, and a comment block with mod history. May I again suggest you contact WRS and get the source for their modified version of gcc? Even if it's not the revision you want, you would save a huge amount of effort. Speaking only for myself, Joe Durusau --------------------------- Newsgroups: comp.os.vxworks Subject: Link error while working with SBC8260 Date: 10 May 2002 09:16:30 -0700 From: dannyc@harmonic.co.il (Danny Cohen) Organization: http://groups.google.com/ Message-ID: <5288f97d.0205100816.46bf3153@posting.google.com> Hi. I have evaluation board SBC8260. I'm trying to create bootable image and download it to the board. while compiling and linking the BSP i face the following error: "motFccEndLoad undefined at PartialImage.o". My feeling it has something with the BSP configuration. Can anyone help me to overcome this problem? --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Bsp Testing Date: Fri, 10 May 2002 20:16:23 +0200 From: "Rene Straub" <_remove_rene.straub@yetnet.ch> Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: References: <9e221d1.0205030538.4466b5b1@posting.google.com> <3CDA51DD.4030403@spamm.me.l8s.co.uk> You might also want to consider buying a ROM emulator. First it allows you to download code quickly, second some emulators have a debug port that is mapped into memory. When you write a byte to the debug port, the ROM emulator sends it to the debugger software, that can display and/or log it. ROM emulators are rather cheap compared to other debugging tools. - - Rene "David Laight" wrote in message news:3CDA51DD.4030403@spamm.me.l8s.co.uk... > Hwa Jin Bae wrote: > > > I have used various available mechanisms to debug low level BSP issues. For > > example, LEDs, PromICE, BDM, JTAG, Logic analyser, scope, Rom emulator, > > serial port, shared memory (over bus), etc. And of course, a lot of > > patience and tenacity help. Finally, some good luck. > > If your board has a UART, enable it very early on (eg in romInit.s) > and write routines to dump single characters, strings and hex > numbers to it (looping until the fifo is empty). > > This ought to let you debug system startup.... > > David > --------------------------- Newsgroups: comp.os.vxworks,comp.sys.powerpc.tech,comp.sys.powerpc.misc,comp.sys.powerpc.advocacy Subject: Re: Memory data integrity preservation Date: 10 May 2002 11:56:54 -0700 From: ryeung@earthlink.net (Raymond Yeung) Organization: http://groups.google.com/ Message-ID: References: "Gary M" wrote in message news:... > Comments below: > > "Raymond Yeung" wrote in message > news:d83bb8e3.0205091240.70e6f074@posting.google.com... > > This posting concerns the usage of 8260 Memory Controller's > > - Write-protect feature > > - Error Detection and Correction feature > > to preserve data integrity in flash and EEPROM. > > > > I'm thinking that, unlike DRAM, flash and EEPROM are nonvolatile. > > Errors would persist. It may make sense to offer some integrity > > assurance. > > Generally a good idea. > > > > > + Is it common to use either/both of the above for this purpose? > > Yes, either/both are commonly used, depending on the application. Forgot to add. It's generally more involved to change flash content; one has to write a sequence of programming commands before one can write to the memory. So it then wouldn't be as easy to get trampled by strayed access? And so it probably wouldn't need write-protection? > > > + I'm thinking about dynamically changing the write-protect bit > > in BR to enable/disable this feature. This is so that the memory > > is not wide open to store trampler at all time. Any catches? > > Well, that's really the job of the OS, working in conjuction with the > toolset and the loader. Your code would have to be aware of all the possible > memory interactions going on (tasks, I/O) to be a true enforcer. You are > trusting a piece of the application to do the work of the OS. I'm currently working at the RTOS/drivers level. So, yes, I'd be imbedding this dynamic change of BR inside the flash/eeprom access functions, once I determine this is what I want to do. > > > + As far as error detection/correction is concerned, there're choices > > - normal parity > > - read-modify-write parity > > - ECC correction and checking > > when do we use which one? And also when error is detected, would > > this cause an exception that I'd handle, if I want the S/W to retry, > > or at least to recover (without resetting the system). > > How much slower are we talking about? > > ECC can recover from single bit and certain double bit errors, depending on > the logic being used. Parity can only detect errors, without recovering the > data. The time required to calculate either parity or ECC is practically > buried in the memory logic; however, error detecting/correcting memory is > more expensive. You have to consider the statistical probability of > encountering a memory error over the life of the product to justify the use > of error-detecting/correcting logic. This is the 1st time I look into this issue... Sounds like the memory devices I use need to support these detection/correction mechanism, not just 8260 memory controller. > > > + Would it be inconsistent if I choose not to, say, do the same memory > > data error checking on DRAM? Presumably the content there could be > > corrupted before it is stored into the non-volatile store. The data > > would still be invalid, but the NV-store won't detect it. > > It all depends on when you place guarantees on when the data is "valid". If > you apply a suitable CRC check to a block of memory when you can guarantee > its correctness, you can always be able to determine if the data is correct > later on when you retrieve it or store it somewhere else. The main point is: > when is the data guaranteed to be correct? I got a feeling that perhaps it's all just a question of extent of the problem (or exposure). Due to possibility of preemption, data generation and CRC generation may not be made indivisible. > > > > > Thanks, > > Raymond --------------------------- Newsgroups: comp.os.vxworks Subject: A question about cacheDmaMalloc! Date: 10 May 2002 18:12:37 -0700 From: zhoul@blrcsv.china.bell-labs.com (zlybupt) Organization: http://groups.google.com/ Message-ID: <989cdae4.0205101712.2e0d865c@posting.google.com> Hi,all: I am designing a network driver not using end structure.Now I am puzzled by the following questions,I hope someone can give me an answer. Now I use cacheDmaMalloc function to allocate a memory for DMA use,but I wonder how can I inform the network card to know that it should this area for DMA use?? how can I realize it by code?? Thank you all in advance! --------------------------- Newsgroups: comp.os.vxworks Subject: Compilation for MBX860 target failed Date: Sat, 11 May 2002 01:42:13 GMT From: Andray Kaganovsky Organization: Primus Canada Message-ID: References: "Alex Vinokur" wrote in news:abdqt2$hdsib$1@ID- 79865.news.dfncis.de: > > "Alex Vinokur" wrote in message news:abdp47$h3rj5$1 @ID-79865.news.dfncis.de... > > [snip] > >| >| || File#3 of 3 >| || ######### File mbx800.h : BEGIN ######### >| || Full path : D:\sys2\Tornado\target\config\mbx860\mbx800.h >| >| /* mbx800.h - Motorola MBX800 board header */ >| >| /* Copyright 1984-1998 Wind River Systems, Inc. */ >| /* Copyright 1997,1998 Motorola, Inc., All Rights Reserved */ >| >| >| [--- omitted ---] >| >| #ifndef _ASMLANGUAGE >| >| /* PCI I/O function defines */ >| >| [--- omitted ---] >| >| #ifndef PCI_IN_LONG >| #define PCI_IN_LONG(x) sysInLong (x) >| #endif > >============================================================ > >| IMPORT UINT32 sysInLong (UINT32 address); || Line# 417 > > I changed the line above to > > IMPORT ULONG sysInLong (ULONG address); > > This action helped. > > However, is it safe ? > >============================================================ >| >| [--- omitted ---] >| >| #endif /* _ASMLANGUAGE */ >| >| [--- omitted ---] >| >| >| || ######### File mbx800.h : END ########### >| >| > > [snip] > > > [AndrayK]. I suggest to look at the assembly code generated in both cases. This could provide definitive answer (for this particular BSP). Andray --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Compilation log file Date: Sat, 11 May 2002 01:47:39 GMT From: Andray Kaganovsky Organization: Primus Canada Message-ID: References: "Alex Vinokur" wrote in news:abdho1$h4l0l$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) >========================================================= > > I would like the compilation results to be written > not only to Build Output Window, > but to some compilation log file as well. > > Is it possible to do it? > > > -- >==================== > Alex Vinokur > http://up.to/alexvn > http://go.to/alexv_math > mailto:alexvn@bigfoot.com > mailto:alexvn@go.to > ==================== > > > > [AndrayK]. Did you try building from DOS shell ? You'll need to execute /host/x86-win32/bin/torvars.bat before you invoke make .. regards, Andray --------------------------- Newsgroups: comp.os.vxworks Subject: ld() error Date: Sat, 11 May 2002 11:31:18 +0900 From: "bigfire" Organization: Inet Internet Services Message-ID: Hi everyone, when I load my application module using 'ld'command like below, ld< xx.o I got a error message, "Relocation value does not fit in 24 bits" My system is mpc755 VME board and the board boot well with down loaded vxWorks image from my PC. What's wrong with my BSP? thanks Dae-sop --------------------------- Newsgroups: comp.os.vxworks Subject: Re: ld() error Date: Sat, 11 May 2002 05:22:43 GMT From: "Gary M" Organization: AT&T Broadband Message-ID: References: One of your object files, most likely generated from an assembly language source file, has an instruction which is using an embedded 24-bit address parameter within the instruction. You need to find this instruction and convert it to a multi-instruction sequence which loads the address into a register and uses indirection through the register. "bigfire" wrote in message news:abhvjc$qda$1@news.nuri.net... > Hi everyone, > > when I load my application module using 'ld'command like below, > ld< xx.o > I got a error message, "Relocation value does not fit in 24 bits" > > My system is mpc755 VME board and the board boot well with down loaded > vxWorks image from my PC. > What's wrong with my BSP? > > thanks > > Dae-sop > > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: ld() error Date: 10 May 2002 22:57:09 -0700 From: john_94501@yahoo.com (John) Organization: http://groups.google.com/ Message-ID: <488e459a.0205102157.4541f63d@posting.google.com> References: Hello, I would suggest searching the archives for this group - this is probably one the most commonly asked questions (if not the most common). You can search the archives in a number of places, including Wind River's WindSurf site. My preference is http://groups.google.com though. As a hint, the problem relates to your setting of the LOCAL_MEM_SIZE greater than 32MB and a restriction imposed by the PPC EABI. There are a number of solutions to the problem, depending on your needs, including, but probably not limited to, compiling your application with -mlongcall or starting with LOCAL_MEM_SIZE at 32MB and adding the remainder of the memory to the system pool after you've loaded your module(s). HTH, John... "bigfire" wrote in message news:... > Hi everyone, > > when I load my application module using 'ld'command like below, > ld< xx.o > I got a error message, "Relocation value does not fit in 24 bits" > > My system is mpc755 VME board and the board boot well with down loaded > vxWorks image from my PC. > What's wrong with my BSP? > > thanks > > Dae-sop --------------------------- Newsgroups: comp.os.vxworks Subject: implementing clrscr() in vxworks Date: 11 May 2002 00:09:29 -0700 From: forvxworks@rediffmail.com (Anand) Organization: http://groups.google.com/ Message-ID: HI All, anybody knows how to implement clrscr() in vxworks as it seems that conio.h is not supported in vxworks. thanks in advance. regards. anand. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: getting the base address of the PCI card Date: 11 May 2002 00:13:29 -0700 From: forvxworks@rediffmail.com (Anand) Organization: http://groups.google.com/ Message-ID: References: <3cd10a55$1@brateggebdc5.br-automation.co.at> Thank You Mr.Werner Schiendl . Your reply was of a great help to me. regards. anand. "Werner Schiendl" wrote in message news:<3cd10a55$1@brateggebdc5.br-automation.co.at>... > Hi Anand, > > I assume you use some kind of pc486, pcPentium or similar BSP. > Within this BSPs, you find a file called sysEl3c90xEnd.c > This does exactly what you ask for for a network board. > Study the file to find out how to read the base address and size of the > address space as well as IRQ configuration from the PCI board. > > You can basically go with almost the same procedure, you just need to adapt > Vendor and Device IDs and adjust the memory configuration to the proper BARs > in the configuration. This is specific to your board, so you need to consult > the hardware configuration here. pciConfigShow and pciHeaderShow also help > with this. > > hth > Werner > > > "Anand" wrote in message > news:f14c07cb.0205012219.284d4f84@posting.google.com... > > HI All, > > first, thanks to Bruce,Andray Kaganovsky and John for helping me > > on Far Pointers. > > Now, i have a PCI card which has some memory and registers which > > i want to access and manipulate the contents of the registers > > depending on the functionality i want to program. > > Earlier , i was using an ISA card which had switches on it to > > select the base address and depending on the base address i could get > > the address of the registers and i could program the registers > > according to the function i wanted. > > but this PCI card does not have any switches, so that i can choose the > > base address. > > going through earlier articles in this group, i learned that we > > can use functions like pciDeviceShow() and pciHeaderShow() , we can > > have the details. but i am not sure whether the base address i get > > from pciHeaderShow() can be used as the base address of the card or > > not. I am new to vxworks, and i hope the question i am asking makes > > some sense. > > waiting for replies. > > Thanks in advance. > > Regards. > > Anand. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: problem launching the target server on host Date: 11 May 2002 00:19:55 -0700 From: forvxworks@rediffmail.com (Anand) Organization: http://groups.google.com/ Message-ID: References: <3cdbcf80.172834242@news.mhogaming.com> Thanks Mr.Ignacio Gonzalez T. we could solve the problem. Actually the config.h had some problem. we had to include #define INCLUDE_BSD and #undef INCLUDE_END. and also , we were including both END and BSD interfaces, i believe that gives some problem. regards. Anand. igtorque@yahoo.es (Ignacio Gonzalez T.) wrote in message news:<3cdbcf80.172834242@news.mhogaming.com>... > On 9 May 2002 23:54:50 -0700, forvxworks@rediffmail.com (Anand) wrote: > > >Hi All, > > i am configuring a vxWorks target for PENTIUM CPU using Network as > >the connection between host and target. > > I am able to boot the target in vxWorks using the bootable floppy > >i > >made by giving the appropriate bootline,IO address and the Interrupt > >level of the Ethernet Adapter. but while launching the target server > >on the host machine, with the backend "wdbrpc" , the server logconsole > >gives the following message.. > > > > Connecting to Target agent.... > > Error:rpccore backend client Timed out > > failed. > > > > > >On the target machine i am getting the massages as follows... > > > > > > > > muxDevLoad failed for device entry0! > > Attached TCP/IP interface to ene unit0 > > Attaching intarface lo0...done > > > > ........ > > ....... > > WDB : Ready > > -> > > > > > > the Ethernet Adapter i am using is .. > > > > SURECOM EP-325 PCI Ethernet Adapter. > > > > I am unable to the get what the problem is. Can anyone help?? > > > >Thanks in advance. > >Regards. > >Anand. > > Maybe your configNet.h is not correct. More precisely, the definition > of > END_TBL_ENTRY endDevTbl [] > may be missing something important related to the Ethernet driver. If > it were correct, you should expect, at worst, something like > muxDevLoad failed for device sep0! > instead of > muxDevLoad failed for device entry0! --------------------------- Newsgroups: comp.os.vxworks Subject: How to use AF_ROUTE ? Date: 11 May 2002 01:13:14 -0700 From: zw84611@sina.com (zhuwei) Organization: http://groups.google.com/ Message-ID: <2fc4ea3f.0205110013.4654e72f@posting.google.com> Hello,everyone!I have to translate the following Linux source codes to VxWorks: I have some problems: 1. what's the counterpart of AF_NETLINK(in linux) in VxWorks? 2. why I can't bind(),like following: ========================================================== linux source: ============= int rtnl_open() { struct sockaddr_nl rtaddr; int fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); int rtaddr_len; if(fd <0) { perror("rtnl_open"); return -1; } rtaddr.nl_family = AF_NETLINK; rtaddr.nl_groups = 0xFFFFFFFF; if(bind(fd,(struct sockaddr*)&rtaddr,sizeof(rtaddr))<0) { perror("rtnl_open"); return -1; } rtaddr_len = sizeof(rtaddr); getsockname(fd,(struct sockaddr*)&rtaddr,&rtaddr_len); return fd; } =================================================================== I changed the above into following codes in VxWorks: - ------------------------------------------------------------------- #define AF_NETLINK AF_ROUTE int rtnl_open() { struct sockaddr_nl rtaddr; int fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); /* vxWorks bootimage should include BSD Routing Sockets */ int rtaddr_len; if(fd <0) { perror("rtnl_open_error1\n"); return -1; } rtaddr.nl_family = AF_NETLINK; rtaddr.nl_groups = 0xFFFFFFFF; if(bind(fd,&rtaddr,sizeof(rtaddr))<0) { /* here,panic: raw_usrreq */ perror("rtnl_open_error2\n"); return -1; } if(bind(fd,(struct sockaddr*)&rtaddr,sizeof(rtaddr))<0) { /* here,panic: raw_usrreq */ perror("rtnl_open_error2\n"); return -1; } rtaddr_len = sizeof(rtaddr); getsockname(fd,(struct sockaddr*)&rtaddr,&rtaddr_len); return fd; } - ------------------------------------------------------------------- I have include the BSD Routing Sockets(INCLUDE_ROUTE_SOCK) in VxWorks image. But when the programme execute,there is an panic like: 0x1f6ba88 (tDbgTask): panic: raw_usrreq (when step into bind(fd,(struct sockaddr*)&rtaddr,sizeof(rtaddr))) I don't know why,can anyone help me? --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Link error while working with SBC8260 Date: Sat, 11 May 2002 08:20:47 +0000 (UTC) From: "Graham Baxter" Organization: Graham Baxter (Software) Limited Message-ID: References: <5288f97d.0205100816.46bf3153@posting.google.com> Danny, Add the object motfccend.o to your project. It may be supplied as just an object file. I hope this helps. - -- Regards, Graham Baxter Freelance Software Engineer EMAIL: gbaxter@NOSPAMbcs.org.uk "Danny Cohen" wrote in message news:5288f97d.0205100816.46bf3153@posting.google.com... > Hi. > > I have evaluation board SBC8260. > I'm trying to create bootable image and download it to the board. > while compiling and linking the BSP i face the following error: > "motFccEndLoad undefined at PartialImage.o". My feeling it has > something with the BSP configuration. Can anyone help me to overcome > this problem? --------------------------- Newsgroups: comp.os.vxworks Subject: How do I do FTP on a non-default port using PORT and PASV Date: 11 May 2002 02:22:26 -0700 From: mohasin.zaki@wipro.com (Mohasin) Organization: http://groups.google.com/ Message-ID: Hi All, I need to perform FTP on non-default port. I have 2 requirements 1. Doing FTP through PORT command where I will specify the port on which the server can intiate data connection on receiving commands on the control connection. 2. Second is, I want to use PASV command where the server will reply with a IP,PORT number on which I can connect to. So when the remote ftp server receives a ftp command , the data transfer occurs on this server specified port. The problem I am facing is, 1. When I use VxWorks API ftpCommand() for issuing a PORT command I CANNOT intiate a data connection to the port which I have specified, using the ftpDataConnInit() and ftpDataConnGet(). 2. When issue a PASV command using ftpCommand(), all that I get in the reply is number '2' which Stands for FTP_COMPLETE. Bull the actual thing I want is the commplete 3 digit reply and the IP,PORT numbers from the reply. It seems that the vxWorks API somehow restricts the reply to the first digit from the actual reply. So, the vxWorks APIs dont seems to help. 1. Is there anyway I can still use the vxWorks API for acheiving the above. 2. If not, what is the alternative. That does mean that I have to implement my own FTP client in the vxWorks. Thanks for all your replies. Regards, MOhasin. --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Sun May 12 03:33:51 2002 From: "veera" Date: Sun May 12 03:33:53 PDT 2002 Subject: Does VxWorks malloc() on MIPS returns byte aligned block ? This is a multi-part message in MIME format. ------=_NextPart_000_0021_01C1F9CE.BA1B1200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Does VxWorks malloc() on MIPS returns byte aligned block ? ------=_NextPart_000_0021_01C1F9CE.BA1B1200 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Does VxWorks malloc() on MIPS returns byte aligned block=20 ?

------=_NextPart_000_0021_01C1F9CE.BA1B1200-- From vxwexplo-errs@csg.lbl.gov Sun May 12 06:11:39 2002 From: "Sabarivel S" Date: Sun May 12 06:11:41 PDT 2002 Subject: FW: Vxworks: ENOBUFS in setsockopt (MULTICAST_IF) option This is a multi-part message in MIME format. ------=_NextPart_000_0018_01C1F9E4.BEFE96A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit -----Original Message----- From: Sabarivel S [mailto:sabaris@future.futsoft.com] Sent: Sunday, 12 May 2002 1:36 PM To: 'vxgrp' Subject: FW: Vxworks: ENOBUFS in setsockopt (MULTICAST_IF) option hi, I face problem of ENOBUFS from setsockopt call after two hours of running. i went through the cases of the ENOBUFS issues in different cases. I tried out the case of increasing the mbuf size also but still we face the problem of ENOBUFS problem is there any other clue. I am sending output of mBufShow and netStackSysPoolShow along with this mail for your quick reference. and find the snapshot of the code which causes >>------------snapshot of code------------------------ /* Get the Id of the socket in which data needs to be sent out */ i4SocketId = gSockRegister[pParams->u1Proto].i4SocketId; DestAddr.sin_addr.s_addr = OSIX_HTONL(pParams->u4Dest); /* For multicast packet Interface needs to be specified */ if ( IP_IS_ADDR_CLASS_D (pParams->u4Dest) ) { IfAddr.s_addr = OSIX_HTONL(pParams->u4Src); if( setsockopt(i4SocketId, IPPROTO_IP,IP_MULTICAST_IF, (char *)&IfAddr, sizeof(IfAddr)) == -1) { perror("MULTICAST_IF : sockopt failed"); return IP_FAILURE; } } if (sendto (i4SocketId, pu1SendBuf, u2BufLen, 0, (struct sockaddr *) &DestAddr, sizeof (struct sockaddr_in)) < 0) { return IP_FAILURE; } >>------------snapshot of code------------------------ This portion of code sends PIM protocol packets in the RAW socket of PIM. When PIM control packets are sent to a multicast address it sets MULTICAST_IF option and sends. As it sends the control packets in different interfaces it sets this MULTICAST_IF option to send it on each interface It gives ENOBUFS error only after continuous run of 2 hours. Kindly advice me what could be done to solve this issue thanks sabari -----Original Message----- From: the vxWorks Users Group Exploder [mailto:vxwexplo@lbl.gov] Sent: Thursday, 2 May 2002 6:02 PM To: vxworks_users@csg.lbl.gov Subject: RE: Vxworks: ENOBUFS in setsockopt (MULTICAST_IF) option ------=_NextPart_000_0018_01C1F9E4.BEFE96A0 Content-Type: text/plain; name="ENOBUFSLog.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ENOBUFSLog.txt" [09:02:49] VxWorks [09:02:49]=20 [09:02:49] Copyright 1984-1998 Wind River Systems, Inc. [09:02:49]=20 [09:02:49] CPU: Motorola CBTSP ISB 8260 [09:02:50] VxWorks: 5.4 [09:02:50] BSP version: v1.42/dw20 Boot1 [09:02:50] Creation date: Not used [09:02:50] WDB: Ready. [09:02:50]=20 [09:02:50] Setting level trigger for IRQs [09:02:50] Creating filesystem. [09:20:12] -> mbufShow [09:22:53] type number [09:22:53] --------- ------ [09:22:53] FREE : 979 [09:22:53] DATA : 14 [09:22:53] HEADER : 0 [09:22:53] SOCKET : 0 [09:22:53] PCB : 0 [09:22:53] RTABLE : 0 [09:22:53] HTABLE : 0 [09:22:53] ATABLE : 0 [09:22:53] SONAME : 7 [09:22:53] ZOMBIE : 0 [09:22:53] SOOPTS : 0 [09:22:53] FTABLE : 0 [09:22:53] RIGHTS : 0 [09:22:53] IFADDR : 0 [09:22:53] CONTROL : 0 [09:22:53] OOBDATA : 0 [09:22:53] IPMOPTS : 0 [09:22:53] IPMADDR : 0 [09:22:53] IFMADDR : 0 [09:22:53] MRTABLE : 0 [09:22:53] TOTAL : 1000 [09:22:53] number of mbufs: 1000 [09:22:53] number of times failed to find space: 0 [09:22:53] number of times waited for space: 0 [09:22:53] number of times drained protocols for space: 0 [09:22:53] __________________ [09:22:53] CLUSTER POOL TABLE [09:22:53] = _________________________________________________________________________= ______ [09:22:53] size clusters free usage [09:22:53] = -------------------------------------------------------------------------= ------ [09:22:53] 64 100 99 2106 =20 [09:22:53] 128 100 92 30242 =20 [09:22:54] 256 350 350 340 =20 [09:22:54] 512 200 200 3 =20 [09:22:54] 1024 50 50 16 =20 [09:22:54] 2048 100 100 0 =20 [09:22:54] = -------------------------------------------------------------------------= ------ [09:22:54] value =3D 80 =3D 0x50 =3D 'P' [09:22:54] -> netStackSysPoolShow [09:22:59] type number [09:22:59] --------- ------ [09:22:59] FREE : 1597 [09:22:59] DATA : 0 [09:22:59] HEADER : 0 [09:22:59] SOCKET : 22 [09:22:59] PCB : 44 [09:22:59] RTABLE : 79 [09:22:59] HTABLE : 0 [09:23:00] ATABLE : 0 [09:23:00] SONAME : 0 [09:23:00] ZOMBIE : 0 [09:23:00] SOOPTS : 0 [09:23:00] FTABLE : 0 [09:23:00] RIGHTS : 0 [09:23:00] IFADDR : 16 [09:23:00] CONTROL : 0 [09:23:00] OOBDATA : 0 [09:23:00] IPMOPTS : 10 [09:23:00] IPMADDR : 24 [09:23:00] IFMADDR : 0 [09:23:00] MRTABLE : 0 [09:23:00] TOTAL : 1792 [09:23:00] number of mbufs: 1792 [09:23:00] number of times failed to find space: 0 [09:23:00] number of times waited for space: 0 [09:23:00] number of times drained protocols for space: 0 [09:23:00] __________________ [09:23:00] CLUSTER POOL TABLE [09:23:00] = _________________________________________________________________________= ______ [09:23:00] size clusters free usage [09:23:00] = -------------------------------------------------------------------------= ------ [09:23:00] 64 128 53 86 =20 [09:23:00] 128 256 210 465 =20 [09:23:00] 256 128 94 35 =20 [09:23:00] 512 384 362 441 =20 [09:23:00] = -------------------------------------------------------------------------= ------ [09:23:00] value =3D 80 =3D 0x50 =3D 'P' -> mbufShow [10:01:45] type number [10:01:45] --------- ------ [10:01:45] FREE : 1597 [10:01:45] DATA : 0 [10:01:45] HEADER : 0 [10:01:45] SOCKET : 22 [10:01:45] PCB : 44 [10:01:45] RTABLE : 79 [10:01:45] HTABLE : 0 [10:01:45] ATABLE : 0 [10:01:45] SONAME : 0 [10:01:45] ZOMBIE : 0 [10:01:45] SOOPTS : 0 [10:01:45] FTABLE : 0 [10:01:45] RIGHTS : 0 [10:01:45] IFADDR : 16 [10:01:45] CONTROL : 0 [10:01:45] OOBDATA : 0 [10:01:45] IPMOPTS : 10 [10:01:46] IPMADDR : 24 [10:01:46] IFMADDR : 0 [10:01:46] MRTABLE : 0 [10:01:46] TOTAL : 1792 [10:01:46] number of mbufs: 1792 [10:01:46] number of times failed to find space: 0 [10:01:46] number of times waited for space: 0 [10:01:46] number of times drained protocols for space: 0 [10:01:46] __________________ [10:01:46] CLUSTER POOL TABLE [10:01:46] = _________________________________________________________________________= ______ [10:01:46] size clusters free usage [10:01:46] = -------------------------------------------------------------------------= ------ [10:01:46] 64 128 53 86 =20 [10:01:46] 128 256 210 833 =20 [10:01:46] 256 128 94 35 =20 [10:01:46] 512 384 362 809 =20 [10:01:46] = -------------------------------------------------------------------------= ------ [10:01:57] type number [10:01:57] --------- ------ [10:01:57] FREE : 1000 [10:01:57] DATA : 0 [10:01:57] HEADER : 0 [10:01:57] SOCKET : 0 [10:01:57] PCB : 0 [10:01:57] RTABLE : 0 [10:01:57] HTABLE : 0 [10:01:57] ATABLE : 0 [10:01:57] SONAME : 0 [10:01:57] ZOMBIE : 0 [10:01:57] SOOPTS : 0 [10:01:57] FTABLE : 0 [10:01:57] RIGHTS : 0 [10:01:57] IFADDR : 0 [10:01:57] CONTROL : 0 [10:01:57] OOBDATA : 0 [10:01:57] IPMOPTS : 0 [10:01:57] IPMADDR : 0 [10:01:57] IFMADDR : 0 [10:01:57] MRTABLE : 0 [10:01:57] TOTAL : 1000 [10:01:57] number of mbufs: 1000 [10:01:57] number of times failed to find space: 0 [10:01:57] number of times waited for space: 0 [10:01:57] number of times drained protocols for space: 0 [10:01:57] __________________ [10:01:57] CLUSTER POOL TABLE [10:01:57] = _________________________________________________________________________= ______ [10:01:57] size clusters free usage [10:01:57] = -------------------------------------------------------------------------= ------ [10:01:57] 64 100 100 8740 =20 [10:01:58] 128 100 100 122869 =20 [10:01:58] 256 350 350 1022 =20 [10:01:58] 512 200 200 4 =20 [10:01:58] 1024 50 50 16 =20 [10:01:58] 2048 100 100 0 =20 [10:01:58] = -------------------------------------------------------------------------= ------ [10:52:48] type number [10:52:48] --------- ------ [10:52:48] FREE : 1597 [10:52:48] DATA : 0 [10:52:48] HEADER : 0 [10:52:48] SOCKET : 22 [10:52:48] PCB : 44 [10:52:48] RTABLE : 79 [10:52:48] HTABLE : 0 [10:52:48] ATABLE : 0 [10:52:48] SONAME : 0 [10:52:48] ZOMBIE : 0 [10:52:48] SOOPTS : 0 [10:52:48] FTABLE : 0 [10:52:48] RIGHTS : 0 [10:52:48] IFADDR : 16 [10:52:48] CONTROL : 0 [10:52:48] OOBDATA : 0 [10:52:48] IPMOPTS : 10 [10:52:48] IPMADDR : 24 [10:52:48] IFMADDR : 0 [10:52:48] MRTABLE : 0 [10:52:48] TOTAL : 1792 [10:52:48] number of mbufs: 1792 [10:52:48] number of times failed to find space: 0 [10:52:48] number of times waited for space: 0 [10:52:48] number of times drained protocols for space: 0 [10:52:48] __________________ [10:52:48] CLUSTER POOL TABLE [10:52:48] = _________________________________________________________________________= ______ [10:52:48] size clusters free usage [10:52:48] = -------------------------------------------------------------------------= ------ [10:52:49] 64 128 53 86 =20 [10:52:49] 128 256 210 1316 =20 [10:52:49] 256 128 94 35 =20 [10:52:49] 512 384 362 1292 =20 [10:52:49] = -------------------------------------------------------------------------= ------ [10:52:54] type number [10:52:54] --------- ------ [10:52:54] FREE : 1000 [10:52:54] DATA : 0 [10:52:54] HEADER : 0 [10:52:54] SOCKET : 0 [10:52:54] PCB : 0 [10:52:54] RTABLE : 0 [10:52:54] HTABLE : 0 [10:52:54] ATABLE : 0 [10:52:54] SONAME : 0 [10:52:54] ZOMBIE : 0 [10:52:54] SOOPTS : 0 [10:52:54] FTABLE : 0 [10:52:54] RIGHTS : 0 [10:52:54] IFADDR : 0 [10:52:54] CONTROL : 0 [10:52:54] OOBDATA : 0 [10:52:54] IPMOPTS : 0 [10:52:54] IPMADDR : 0 [10:52:54] IFMADDR : 0 [10:52:54] MRTABLE : 0 [10:52:54] TOTAL : 1000 [10:52:54] number of mbufs: 1000 [10:52:54] number of times failed to find space: 0 [10:52:54] number of times waited for space: 0 [10:52:54] number of times drained protocols for space: 0 [10:52:55] __________________ [10:52:55] CLUSTER POOL TABLE [10:52:55] = _________________________________________________________________________= ______ [10:52:55] size clusters free usage [10:52:55] = -------------------------------------------------------------------------= ------ [10:52:55] 64 100 99 17419 =20 [10:52:55] 128 100 92 244148 =20 [10:52:55] 256 350 350 1926 =20 [10:52:55] 512 200 200 6 =20 [10:52:55] 1024 50 50 16 =20 [10:52:55] 2048 100 100 0 =20 [10:52:55] = -------------------------------------------------------------------------= ------ [11:58:51] type number [11:58:51] --------- ------ [11:58:51] FREE : 1597 [11:58:51] DATA : 0 [11:58:51] HEADER : 0 [11:58:51] SOCKET : 22 [11:58:51] PCB : 44 [11:58:51] RTABLE : 79 [11:58:51] HTABLE : 0 [11:58:51] ATABLE : 0 [11:58:51] SONAME : 0 [11:58:51] ZOMBIE : 0 [11:58:51] SOOPTS : 0 [11:58:51] FTABLE : 0 [11:58:51] RIGHTS : 0 [11:58:51] IFADDR : 16 [11:58:51] CONTROL : 0 [11:58:51] OOBDATA : 0 [11:58:51] IPMOPTS : 10 [11:58:51] IPMADDR : 24 [11:58:51] IFMADDR : 0 [11:58:51] MRTABLE : 0 [11:58:51] TOTAL : 1792 [11:58:51] number of mbufs: 1792 [11:58:51] number of times failed to find space: 0 [11:58:52] number of times waited for space: 0 [11:58:52] number of times drained protocols for space: 0 [11:58:52] __________________ [11:58:52] CLUSTER POOL TABLE [11:58:52] = _________________________________________________________________________= ______ [11:58:52] size clusters free usage [11:58:52] = -------------------------------------------------------------------------= ------ [11:58:52] 64 128 53 86 =20 [11:58:52] 128 256 210 1942 =20 [11:58:52] 256 128 94 35 =20 [11:58:52] 512 384 362 1918 =20 [11:58:52] = -------------------------------------------------------------------------= ------ [11:59:02] type number [11:59:02] --------- ------ [11:59:02] FREE : 979 [11:59:02] DATA : 14 [11:59:02] HEADER : 0 [11:59:02] SOCKET : 0 [11:59:02] PCB : 0 [11:59:02] RTABLE : 0 [11:59:02] HTABLE : 0 [11:59:02] ATABLE : 0 [11:59:02] SONAME : 7 [11:59:02] ZOMBIE : 0 [11:59:02] SOOPTS : 0 [11:59:02] FTABLE : 0 [11:59:02] RIGHTS : 0 [11:59:02] IFADDR : 0 [11:59:02] CONTROL : 0 [11:59:02] OOBDATA : 0 [11:59:02] IPMOPTS : 0 [11:59:02] IPMADDR : 0 [11:59:02] IFMADDR : 0 [11:59:03] MRTABLE : 0 [11:59:03] TOTAL : 1000 [11:59:03] number of mbufs: 1000 [11:59:03] number of times failed to find space: 0 [11:59:03] number of times waited for space: 0 [11:59:03] number of times drained protocols for space: 0 [11:59:03] __________________ [11:59:03] CLUSTER POOL TABLE [11:59:03] = _________________________________________________________________________= ______ [11:59:03] size clusters free usage [11:59:03] = -------------------------------------------------------------------------= ------ [11:59:03] 64 100 99 28677 =20 [11:59:03] 128 100 92 401275 =20 [11:59:03] 256 350 350 3090 =20 [11:59:03] 512 200 200 8 =20 [11:59:03] 1024 50 50 16 =20 [11:59:03] 2048 100 100 0 =20 [11:59:03] = -------------------------------------------------------------------------= ------ [12:55:54] type number [12:55:54] --------- ------ [12:55:54] FREE : 1612 [12:55:54] DATA : 0 [12:55:54] HEADER : 0 [12:55:54] SOCKET : 22 [12:55:54] PCB : 44 [12:55:54] RTABLE : 64 [12:55:54] HTABLE : 0 [12:55:54] ATABLE : 0 [12:55:54] SONAME : 0 [12:55:54] ZOMBIE : 0 [12:55:54] SOOPTS : 0 [12:55:54] FTABLE : 0 [12:55:54] RIGHTS : 0 [12:55:54] IFADDR : 16 [12:55:54] CONTROL : 0 [12:55:54] OOBDATA : 0 [12:55:54] IPMOPTS : 10 [12:55:54] IPMADDR : 24 [12:55:54] IFMADDR : 0 [12:55:54] MRTABLE : 0 [12:55:54] TOTAL : 1792 [12:55:54] number of mbufs: 1792 [12:55:54] number of times failed to find space: 0 [12:55:54] number of times waited for space: 0 [12:55:54] number of times drained protocols for space: 0 [12:55:54] __________________ [12:55:54] CLUSTER POOL TABLE [12:55:54] = _________________________________________________________________________= ______ [12:55:55] size clusters free usage [12:55:55] = -------------------------------------------------------------------------= ------ [12:55:55] 64 128 61 92 =20 [12:55:55] 128 256 210 2502 =20 [12:55:55] 256 128 101 41 =20 [12:55:55] 512 384 362 2478 =20 [12:55:55] = -------------------------------------------------------------------------= ------ -> mbufShow [12:56:30] type number [12:56:30] --------- ------ [12:56:30] FREE : 987 [12:56:30] DATA : 6 [12:56:30] HEADER : 0 [12:56:30] SOCKET : 0 [12:56:30] PCB : 0 [12:56:30] RTABLE : 0 [12:56:30] HTABLE : 0 [12:56:30] ATABLE : 0 [12:56:30] SONAME : 7 [12:56:30] ZOMBIE : 0 [12:56:30] SOOPTS : 0 [12:56:30] FTABLE : 0 [12:56:30] RIGHTS : 0 [12:56:30] IFADDR : 0 [12:56:30] CONTROL : 0 [12:56:30] OOBDATA : 0 [12:56:30] IPMOPTS : 0 [12:56:30] IPMADDR : 0 [12:56:30] IFMADDR : 0 [12:56:30] MRTABLE : 0 [12:56:30] TOTAL : 1000 [12:56:30] number of mbufs: 1000 [12:56:31] number of times failed to find space: 4071 [12:56:31] number of times waited for space: 0 [12:56:31] number of times drained protocols for space: 196 [12:56:31] __________________ [12:56:31] CLUSTER POOL TABLE [12:56:31] = _________________________________________________________________________= ______ [12:56:31] size clusters free usage [12:56:31] = -------------------------------------------------------------------------= ------ [12:56:31] 64 100 100 38353 =20 [12:56:31] 128 100 100 538313 =20 [12:56:31] 256 350 350 4382 =20 [12:56:31] 512 200 200 30 =20 [12:56:31] 1024 50 50 17 =20 [12:56:31] 2048 100 100 0 =20 [12:56:31] = -------------------------------------------------------------------------= ------ [12:56:48] MULTICAST_IF : sockopt failed: S_errno_ENOBUFS [12:56:48]=20 [12:56:48] MULTICAST_IF : sockopt failed: S_errno_ENOBUFS [12:56:48]=20 [12:57:48] MULTICAST_IF : sockopt failed: S_errno_ENOBUFS ------=_NextPart_000_0018_01C1F9E4.BEFE96A0-- From vxwexplo-errs@csg.lbl.gov Mon May 13 04:03:11 2002 From: Vxworks Exploder Date: Mon May 13 04:03:14 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Mon May 13 04:03:07 PDT 2002 Subject: Re: Link error while working with SBC8260 Subject: Re: Interrupt Latency Subject: Re: Anyone using target Intel x86 (not PENTIUM) Subject: Does DOSFS 2.0 for PPC supports device whose block size != 512 ???? Subject: Re: implementing clrscr() in vxworks Subject: Re: where can I add the INCLUDE_POSIX_SCHED? Subject: Re: Difference between RTOS and normal OS Subject: Re: C++ comments in C file with GNU compiler Subject: Re: Seeking possible cause of "Can't load boot file" Subject: getting rtentry from SNMP IP Routing Table group ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: Link error while working with SBC8260 Date: 12 May 2002 07:37:49 -0700 From: dannyc@harmonic.co.il (Danny Cohen) Organization: http://groups.google.com/ Message-ID: <5288f97d.0205120637.43a7ac1f@posting.google.com> References: <5288f97d.0205100816.46bf3153@posting.google.com> Thanks Graham. It is supplied as motfccend.obj and motfccend.h files with the BSP. How can you add it manually? which makefile i have to touch? How can yo add it from the Tornado IDE? "Graham Baxter" wrote in message news:... > Danny, > > Add the object motfccend.o to your project. > > It may be supplied as just an object file. > > I hope this helps. > > -- > > Regards, > > Graham Baxter > Freelance Software Engineer > EMAIL: gbaxter@NOSPAMbcs.org.uk > > > "Danny Cohen" wrote in message > news:5288f97d.0205100816.46bf3153@posting.google.com... > > Hi. > > > > I have evaluation board SBC8260. > > I'm trying to create bootable image and download it to the board. > > while compiling and linking the BSP i face the following error: > > "motFccEndLoad undefined at PartialImage.o". My feeling it has > > something with the BSP configuration. Can anyone help me to overcome > > this problem? --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Interrupt Latency Date: Sun, 12 May 2002 21:49:28 +0200 From: Peter Kannegiesser Organization: SEK Message-ID: References: Reply-To: peter.kannegiesser@gmx.de On Wed, 08 May 2002 16:50:43 GMT, "Leonid Rosenboim" wrote: >Since it dont seem like you got an answer, I'll offer my two cents: > >Unless of course, someone or something has instructed the CPU >to block interrupts. (Note: on x86 processors,l the CPU can either >block all or allow all interrupts as it has got only one INTR pin). > ...that's what I suspect. >What I am saying is that you need to find that bugger ;-) who put >tons of code between intLock() and intUnlock() calls, code that >runs for 5-15 milisec. intLock gets used in the kernel a few times, >but trust me, the VxWorks kernel or any other subsystem do not >do anything THAT STUPID. > >And when you find that guy, take his picture when he gets his >pink slip, you'll enjoy looking at it for years later ... ;-)) > You bet! Let's hope that it wasn't me :-) - -Peter - -- keine sig --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Anyone using target Intel x86 (not PENTIUM) Date: 12 May 2002 21:54:48 -0700 From: heiko_elger@arburg.com (Heiko Elger) Organization: http://groups.google.com/ Message-ID: <97e6274e.0205122054.1e9a1799@posting.google.com> References: <97e6274e.0205080100.3e7e1d13@posting.google.com> <3cd93f65.4871064@news.mhogaming.com> Hello, gnu tool chain: 2.95.xx WRS thinks about to support 486 too. Best regards Heiko igtorque@yahoo.es (Ignacio Gonzalez T.) wrote in message news:<3cd93f65.4871064@news.mhogaming.com>... > On 8 May 2002 02:00:18 -0700, heiko_elger@arburg.com (Heiko Elger) > wrote: > > So we will have to stick to Tornado 2.0.2, even if someday we decide > to upgrade... My condolence. These news are bad news for us too. > > By the way, do you know if Tornado 2.2 comes with gcc > 2.7.2 ? --------------------------- Newsgroups: comp.os.vxworks Subject: Does DOSFS 2.0 for PPC supports device whose block size != 512 ???? Date: 12 May 2002 22:34:36 -0700 From: houcheng@ms17.hinet.net (houcheng) Organization: http://groups.google.com/ Message-ID: Dear vxworkers: Here is a question about DOSFS 2.0 for PPC: Is the DOSFS 2.0 support block device whose block size is not 512 bytes per block ? The following is my compact flash's initizliation code: /************************************************************************/ if(cFlashDrv()== OK) { printf("OK]\n"); } else { printf("FAIL]\n"); printf("Error: Pcmcia card is not in slot!\n"); return(ERROR); } pDev = cFlashDevCreate(); /* create a block device object */ pCbio = cbioDevVerify(pDev, FALSE); if(pCbio) printf("\rInitialize CBIO device driver ............................... [OK]\n"); else { printf("\rInitialize CBIO device driver ............................... [FAIL]\n"); return(ERROR); } ret = dosFsDevCreate(filename, pCbio, 30, DOS_CHK_REPAIR | DOS_CHK_VERB_SILENT ); if (ret == OK) printf("\rInitialize DOS File System .................................. [OK]\n"); else { printf("\rInitialize DOS File System .................................. [FAIL]\n"); return(ERROR); } return(OK); For the compact flash with 512-bytes block size, this initialization code runs well. But for the compact flash with 600 bytes block size, the cbioDevVerify(pDev, FALSE) returns NULL! Is the DOSFS 2.0 supports block size other than 512 bytes? I've tried the DOSFS patch SPR73141, which fixed the problem "dosFs2 is not handling boot sectors correctly on devices with sector sizes != 512 bytes." . But the results is still the same, no works on flash with 600 bytes block size. Any suggestion is welcome! Thanks in advanced! Lin Houcheng houcheng@turbonetworks.com.tw_No_SPAM --------------------------- Newsgroups: comp.os.vxworks Subject: Re: implementing clrscr() in vxworks Date: Mon, 13 May 2002 08:46:06 +0200 From: "Michael Lawnick" Organization: Buergernetz Dillingen Message-ID: References: Reply-To: "Michael Lawnick" Sender: mlawnick@p5088eeea.dip.t-dialin.net "Anand" schrieb im Newsbeitrag news:f14c07cb.0205102309.794a06cd@posting.google.com... > HI All, > anybody knows how to implement clrscr() in vxworks as it seems that > conio.h is not supported in vxworks. > thanks in advance. > regards. > anand. Hi Anand, I've used void clrScr(void) { int sfd; sfd=open("/tyCo/0", O_RDWR, 0 ) fdprintf( sfd, "\033[2J" ); /* clear screen */ } for ANSI-compatible output device (Hyperterminal on WinNT) successfully. HTH Michael --------------------------- Newsgroups: comp.os.vxworks Subject: Re: where can I add the INCLUDE_POSIX_SCHED? Date: Mon, 13 May 2002 10:33:57 +0200 From: Alex Vinokur Message-ID: <3CDF7A75.9060002@bigfoot.com> References: Îâ¾ü wrote: > 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. > > > > > In order to add some macro (for instance, INCLUDE_SHELL_BANNER) you should do as following : 1. Open "Workspace Window" 2. Select "VxWorks View" 3. Right Click on your Project-Name Popup menu is to be open. 4. Select "Find Object..." on popup menu "Find Object Window" is to be open. 5. On "Find Object Window" you should select : * Type = Component * Object = your-macro-name (for instance, INCLUDE_SHELL_BANNER) Click on "Find" Relevant component will be selected on 'Workspace Window'. For INCLUDE_SHELL_BANNER the selected component is : + development tool components + target shell components * shell banner 6. Right Click on selected component (for instance, "shell banner") on "Workspace Window". Popup menu is to be open. 7. Select "Include 'component name>'" (for instance "Include 'shell banner'". P.S. You can see all selected macro in generated Makefile. - -- ============================ 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: Difference between RTOS and normal OS Date: Mon, 13 May 2002 09:56:12 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: <507efed5.0205012037.3e11728f@posting.google.com> <507efed5.0205022254.3db92d02@posting.google.com> Ok, Gary, You have a point here, and I agree, I have made a hybrid of embedded and real-time. Although I am quite old too (I use computers since 1980), the entient history and highly specialized areas of critical systems and aero-space where not considered in these thoughts. Regarding the system testing, and the Marsk fiasco, I agree partly - testing does not come instead of good design and code review. Still, the ability to test the system as a whole, and lack of software modifications in teh field, does make the embedded system orders of magnitude more testable then general purpose IY systems. Of course the discussion of how good is a test, is something else .. By the way, I recall that in the old days, a VAX/VMS real-time systems where sort of dedicated to a single application, and and RT did take away some of the inter-application protection measures (i.e. an RT task could easily crash the entire system), so in my mind, they where rather similar to embedded systems, disregarding their physical size. Lastly, I cannot resist noting the PBX case (e.g. DMS) as a very special case, where real-time actually co-exists with multi-application, and software changes are indeed made in the field all the time, ... "Gary M" wrote in message news:wwJD8.39282$RR3.57937@sccrnsc02... > > "Leonid Rosenboim" wrote in message > news:newscache$7lkzvg$uaa$1@lnews.actcom.co.il... > > Let me show you a different point of view: > > > > The design goals of a RTOs are quite different from a Generap Purpose OS > > "GPOS" like Unix, VMS and probably NT. > > > > In RTOS, it is assumed that the end-product is an embedded device, > > including hardware RTOS and higher-level software - all a single > > application, all tested together as a single unit. > > Therefore most safeguards that exist in GPOS are not really necesary, and > > are excluded in order to obtain the best possible performance on a given > > hardware platform, i.e. enable cost savings of the end-product. > > ALso, since all software is made and tested by a single entity, the > > resources (e.g. CPU, memory) is allocated to subsystems (tasks, modules) > as > > per programmer request. If prioritiesa are set wrong, surely enough this > > will be revealed during system testing. > > > > (rest snipped) > > I beg to strongly differ, but your assumption is way off. RTOS were > developed long before "embedded systems" as a concept had been invented, > long before the microprocessor was invented. I will bore you with some > examples, all driven by what we old people refer to as "big iron" machines: > 1. Factory floor automation > 2. Particle physics experiments > 3. Any kind of high speed, high bandwidth data sampling > 3. Nuclear reactors > 4. Radar and sonar systems > 5. Telecommunications infrastructure (PBXs, Central Office switchers, etc.) > 6. Aerospace ground control systems > > Digital Equipment Corporation developed VAX/VMS as a GPOS and an RTOS, and > the system could be tweaked to do either, or both. Many simulators in the > 80's were driven by VAX "minis" (I laugh at the term now), when > microprocessors were struggling with 16-bit limitations and slow I/O busses. > > Furthermore, try telling the Air Force, Boeing, or AirBus that "most > safeguards that exist in GPOS are not really necesary" in the RTOS in their > modern aircraft; in fact, they insist on tighter safeguards on the issues > most important to RTOS: predictability, reliability, redundancy, and > fault-tolerance. The fact that some project might not need some or all of > these is because the project is either trivial or it doesn't bother the > developer if the system is unreliable. Shame on him/her if the latter is > true. > > And don't assume that any problems "surely ... will be revealed during > system testing." I seem to recall a minor priority inversion flaw in a > certain Mars mission that wasn't discovered until the system failed several > million miles away from the lab. Just a straightforward VxWorks application, > was it not? > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: C++ comments in C file with GNU compiler Date: 13 May 2002 07:30:40 GMT From: Johan Borkhuis Organization: Agere Systems Message-ID: References: "Haim Tebeka" wrote: > Is there any compilation switch that one can use so that the GNU > compiler will not spit a syntax error whenever it sees a C++ (//) > style comment in a C file? See http://www.xs4all.nl/~borkhuis/vxworks/vxw_pt1.html#1.1-N 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: Seeking possible cause of "Can't load boot file" Date: 13 May 2002 07:36:53 GMT From: Johan Borkhuis Organization: Agere Systems Message-ID: References: cozzy@263.net (yyzhong) wrote: > I boot a x86 target through network. > It displays: > Attached TCP/IP interface to elt0 > Attaching network interface lo0...done. > Loading... > > After a long period of time, it continues with: > > Error loading file: errno = 0xd0003. > Cannot load boot file! /*The last prompt maynot be the original text*/ I think you are booting using FTP. If this is the case check the logs from your FTP server to see if the connection is made. Otherwise check the boot parameters (IP addresses, netmask, gateway). > I think that if I boot it from floppy disk with the network card > driver included, I can use the network card also. But the result of > "ifShow" is "undefined symbol: ifShow" . You have to include the symbol table and to initialise it to get this to work. This can be done using the Tornado project facility. 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: getting rtentry from SNMP IP Routing Table group Date: 13 May 2002 03:58:31 -0700 From: vijay.peshkar@wipro.com (Vijay Peshkar) Organization: http://groups.google.com/ Message-ID: Hello Friends, Am porting net-snmp to vxworks. m2IpRouteTblEntryGet() gives the elements of struct M2_IPROUTETBL - SNMP IP Routing Table group. I need to get elements of struct rtentry(route.h) from the above table. Any suggestions?. Am unable to find any routine to 'get' the routing table entry based on an index/addr etc., - --------------------- typedef struct { unsigned long ipRouteDest; long ipRouteIfIndex; long ipRouteMetric1; long ipRouteMetric2; long ipRouteMetric3; long ipRouteMetric4; unsigned long ipRouteNextHop; long ipRouteType; long ipRouteProto; long ipRouteAge; unsigned long ipRouteMask; long ipRouteMetric5; M2_OBJECTID ipRouteInfo; } M2_IPROUTETBL; - ------------------------- struct rtentry { struct radix_node rt_nodes[2]; #define rt_key(r) ((struct sockaddr *)((r)->rt_nodes->rn_key)) #define rt_mask(r) ((struct sockaddr *)((r)->rt_nodes->rn_mask)) struct sockaddr *rt_gateway; short rt_flags; short rt_refcnt; u_long rt_use; struct ifnet *rt_ifp; struct ifaddr *rt_ifa; struct sockaddr *rt_genmask; caddr_t rt_llinfo; struct rtentry *rt_gwroute; int rt_mod; struct rt_metrics rt_rmx; u_char rt_level; u_char rt_state; u_long rt_area; }; - -------------------------- Thanks and Regards, Vijay --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Tue May 14 04:03:14 2002 From: Vxworks Exploder Date: Tue May 14 04:03:16 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Tue May 14 04:03:10 PDT 2002 Subject: Re: Polymorphism and Destructor Subject: "target system is not initialized" error message in shell? Subject: RAM_LOW_ADRS parameter in T2 Subject: Raw file system reg Subject: Re: Polymorphism and Destructor Subject: Re: Difference between RTOS and normal OS Subject: Re: Difference between RTOS and normal OS Subject: Block Address Translation Performance Subject: Re: Difference between RTOS and normal OS Subject: Re: Default route outside subnet Subject: Re: Difference between RTOS and normal OS Subject: Re: Difference between RTOS and normal OS Subject: Is there a globally accessable, char **environ, pointer to a list of environment variables on vxworks? Subject: TCP_NODELAY option doesn't work Subject: ioctl problem for VxWorks Subject: equal cost multipath Subject: Re: Block Address Translation Performance Subject: Re: implementing clrscr() in vxworks Subject: process info Subject: Re: Block Address Translation Performance Subject: Re: implementing clrscr() in vxworks Subject: PS2 Port on MVME1604. Subject: Re: Is there a globally accessable, char **environ, pointer to a list of environment variables on vxworks? Subject: Re: Default route outside subnet Subject: Re: Is there a globally accessable, char **environ, pointer to a list of environment variables on vxworks? Subject: Help! a question about etherOutput ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: Polymorphism and Destructor Date: 13 May 2002 05:29:50 -0700 From: pboulay@hotmail.com (Patrick Boulay) Organization: http://groups.google.com/ Message-ID: <8bb5523.0205130429.5b8c4ed7@posting.google.com> References: <8bb5523.0205121836.5b8b1432@posting.google.com> Hello, > try > A *ptr = new B; I'll try, but I cant do that everytime... The example I wrote it's just a little test, but in reallity, I have a big system and I have a class attribut name like: A* ptr; and when I receive a connection from the socket, I use "new B;" or "new ..." a lot of possibility.. so I really need to do: A* ptr; ptr = new B; > > > "Patrick Boulay" wrote in message > news:8bb5523.0205121836.5b8b1432@posting.google.com... > > Hello, > > > > I have a big problem with polymorphism and destructor. See the class > > in example bellow, the vxworks crash after I delete the pointer. > > > > class A > > { > > public: > > A(); > > virtual ~A(); > > }; > > class B:public A > > { > > public: > > B(); > > virtual ~B(); > > }; > > int aFunction() > > { > > A *ptr; > > > > ptr = new B; > > > > delete ptr; > > > > return 0; > > } > > > > > > > > Thanks > > Patrick --------------------------- Newsgroups: comp.os.vxworks Subject: "target system is not initialized" error message in shell? Date: 13 May 2002 06:30:44 -0700 From: burphy@iim.nctu.edu.tw (Burphy) Organization: http://groups.google.com/ Message-ID: <7f6d76f4.0205130530.72d24d88@posting.google.com> I launched the target server and windshell in my PC successfully, but when I type the command like i or w, it shows the following error message: - -> i The target system is not initialized yet. Can't proceed. value = -1 = 0xffffffff Thank you. --------------------------- Newsgroups: comp.os.vxworks Subject: RAM_LOW_ADRS parameter in T2 Date: Mon, 13 May 2002 15:26:10 +0200 From: Sebastien Fauris Organization: Nortel Networks Message-ID: <3CDFBEF2.D70397B@europem01.nt.com> Hi VxWorkers, I try to change the value of the RAM_LOW_ADRS parameter used in the generation of a vxWorks kernel (not a bootrom). When I do a "find object" - "parameter" - "RAM_LOW_ADRS" in the Tornado 2.0 graphical interface, I get an error message saying "item 'RAM_LOW_ADRS' not found" and this in spite of the fact that I could select it in the object parameter list. I set this parameter properly in my config.h file but in the Makefile generated by Tornado, it keeps this parameter to 0x100000. I have to modify by hand the generated Makefile in the following section to set it to 0x10000 as I want: ifeq ($(BUILD_SPEC),common) AR = arppc AS = ccppc CC = ccppc .../... NM = nmppc OPTION_DEFINE_MACRO = -D OPTION_INCLUDE_DIR = -I POST_BUILD_RULE = RAM_HIGH_ADRS = 00500000 # RAM text/data address RAM_LOW_ADRS = 00010000 # RAM text/data address SIZE = sizeppc UPPER_LIMIT = 400000 USR_ENTRY = usrInit endif Where does Tornado find the default value for the RAM_LOW_ADRS parameter when it generates its Makefile ? How can I can make it use the value defined in the config.h file ? Sebastien. --------------------------- Newsgroups: comp.os.vxworks Subject: Raw file system reg Date: 13 May 2002 08:29:34 -0700 From: asmita.joshi@wipro.com (Asmita Joshi) Organization: http://groups.google.com/ Message-ID: Hi Friends, I want to create two ram disk devices one with dosFs & another partition with rawFile system. My problem is that , when I use the rawFsDevInit, it returns a non-null value. However if I try to create any files in that raw fs partition, it returns an error. The following is the log of the stuff which I tried from the shell. WDB: Ready. - -> ramDevCreate(0,1024,1024,1024,0) value = 98555804 = 0x5dfd79c - -> rawFsDevInit("/rawWip",0x5dfd79c) value = 98555744 = 0x5dfd760 - -> devs drv name 0 /null 1 /tyCo/0 1 /tyCo/1 7 : 8 /pty/telnet.S 9 /pty/telnet.M 10 /vio 3 /wip 4 /rawWip value = 25 = 0x19 - -> cd "/rawWip" value = 0 = 0x0 - -> ls Can't open ".". value = -1 = 0xffffffff = _func_taskRegsShowRtn + 0xfbb030eb - -> creat("/rawWip/Hello.txt",2) value = -1 = 0xffffffff = _func_taskRegsShowRtn + 0xfbb030eb - -> Could anyone plz mail the reason for the Raw fs failure. My nect problem is I am working with a flash driver which implements the dosFs on flash. I find that the read & write handlers receives only 2 blocks of data at a time. I have declared the block size as 512 bytes. In one shot I receive only 1024 bytes of data to be written to the flash. This happens independent of the file size which has to be written to flash. This drastically slows down the system. I would like to know if I can dictate the vxWorks dosFs to transfer the file to driver with chunk size much higher than this 1024bytes. Plz mail me regarding the dosFs transfer block size. Thanks Asmitha --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Polymorphism and Destructor Date: 13 May 2002 08:54:56 -0700 From: pboulay@hotmail.com (Patrick Boulay) Organization: http://groups.google.com/ Message-ID: <8bb5523.0205130754.71df76b0@posting.google.com> References: <8bb5523.0205121836.5b8b1432@posting.google.com> I did it, I didn't show you the implementation here because the code would be too long for nothing.. I just put cout in the destructors and constructors. "Alex Vinokur" wrote in message news:... > "Patrick Boulay" wrote in message news:8bb5523.0205121836.5b8b1432@posting.google.com... > | Hello, > | > | I have a big problem with polymorphism and destructor. See the class > | in example bellow, the vxworks crash after I delete the pointer. > | > > You should implement constructors and destructors. > > | class A > | { > | public: > | A(); > | virtual ~A(); > | }; > | class B:public A > | { > | public: > | B(); > | virtual ~B(); > | }; > | int aFunction() > | { > | A *ptr; > | > | ptr = new B; > | > | delete ptr; > | > | return 0; > | } > | > | > | > | Thanks > | Patrick --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Difference between RTOS and normal OS Date: Mon, 13 May 2002 10:06:30 -0700 From: "Hwa Jin Bae" Organization: PSO Systems Inc Message-ID: References: <507efed5.0205012037.3e11728f@posting.google.com> <507efed5.0205022254.3db92d02@posting.google.com> Mars pathfinder scenario was due to priority inversion problem. It is detailed in http://www-2.cs.cmu.edu/afs/cs.cmu.edu/project/art-6/www/mars.html Also, I have never seen someone try to use a VAX machine running VMS to do realtime control. Most of us used PDP-11 running RT11 or other custom OS. VMS was not realtime, at least not to me. But realtime is a relative term. Similarly, one could argue (successfully) that DOS is realtime for a class of problems. :-) - -- Hwa Jin Bae mailto:hjb@pso.com http://www.pso.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Difference between RTOS and normal OS Date: Mon, 13 May 2002 17:31:33 GMT From: "Leonid Rosenboim" Organization: Verio Message-ID: References: <507efed5.0205012037.3e11728f@posting.google.com> <507efed5.0205022254.3db92d02@posting.google.com> I know of VAX/VMS systems doing "sort of" real time work, where deterministic performance in the 2-5 millisecond range is required,, and indeed there are real-time systems, some with less then 10 microsecond response time based on MS-DOS. The good thing about DOS is that it does not interfere if you avoid calling it ;-) "Hwa Jin Bae" wrote in message news:udvsqup2dc1b84@corp.supernews.com... > Mars pathfinder scenario was due to priority inversion problem. It is > detailed in > > http://www-2.cs.cmu.edu/afs/cs.cmu.edu/project/art-6/www/mars.html > > Also, I have never seen someone try to use a VAX machine running VMS to do > realtime control. Most of us used PDP-11 running RT11 or other custom OS. > VMS was not realtime, at least not to me. But realtime is a relative term. > Similarly, one could argue (successfully) that DOS is realtime for a class > of problems. > > :-) > > -- > Hwa Jin Bae > mailto:hjb@pso.com > http://www.pso.com > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Block Address Translation Performance Date: Mon, 13 May 2002 13:47:42 -0500 From: James Organization: Raytheon Company Message-ID: <3CE00A4E.C3A20F72@nospam.com> Hello,

I'm using a MVME2700 single board computer from Motorola.  I have 4gig of VME A32 addressable memory which is mapped using BAT registers.  Has anyone experienced poor performance the first time through a section of code?  For example, the first time through a function may take 118us, whereas future accesses through it only takes 82us.  The code does not dynamically allocate any new memory via malloc.  I'm guessing that the translation look-ahead buffers (TLB) on the MVME2700 PPC are remembering the previously accessed locations, thereby decreasing future VME A32 access times.  If this is so, how can I estimate when the TLB's will forget or lose this information, requiring another performance hit?

If anybody has had similar experiences with the BAT registers and has some ideas on how to increase VME A32 memory performance, please respond.

Thanks,
James --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Difference between RTOS and normal OS Date: Mon, 13 May 2002 19:55:02 GMT From: "doug dotson" Organization: Verio Message-ID: References: <507efed5.0205012037.3e11728f@posting.google.com> <507efed5.0205022254.3db92d02@posting.google.com> I think there was a real-time version of VMS called something like VAXELN or something like that. doug "Leonid Rosenboim" wrote in message news:newscache$l9b2wg$uld$1@lnews.actcom.co.il... > > I know of VAX/VMS systems doing "sort of" real time work, > where deterministic performance in the 2-5 millisecond range > is required,, and indeed there are real-time systems, some with > less then 10 microsecond response time based on MS-DOS. > The good thing about DOS is that it does not interfere if you > avoid calling it ;-) > > "Hwa Jin Bae" wrote in message > news:udvsqup2dc1b84@corp.supernews.com... > > Mars pathfinder scenario was due to priority inversion problem. It is > > detailed in > > > > http://www-2.cs.cmu.edu/afs/cs.cmu.edu/project/art-6/www/mars.html > > > > Also, I have never seen someone try to use a VAX machine running VMS to do > > realtime control. Most of us used PDP-11 running RT11 or other custom OS. > > VMS was not realtime, at least not to me. But realtime is a relative > term. > > Similarly, one could argue (successfully) that DOS is realtime for a class > > of problems. > > > > :-) > > > > -- > > Hwa Jin Bae > > mailto:hjb@pso.com > > http://www.pso.com > > > > > > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Default route outside subnet Date: Mon, 13 May 2002 16:27:37 -0400 From: "RonnoBonno" Message-ID: References: Have you tried, routeAdd "0.0.0.0","IP Addr of the Gateway" the 0.0.0.0 route is the default gateway. Good Luck Ron Naismith Dave Moore wrote in message ... >Johan Borkhuis wrote in message news:... >> I have the following problem. I have a device that gets an IP address and >> subnetmask, but also a gateway. These are fixed values. This gateway >> address however is outside of the subnet. So for example: >> >> IP address = 202.204.206.208:ffffff00 >> Gateway = 175.185.195.205 >> >> How can I configure the routing to do this? >> >> Groeten, >> Johan > >Your details are somewhat "sketchy", but you obviously have a >misconfiguration problem. I am not sure what you mean by "fixed values". >If they are compiled into the bootline, then fix them! If your "device" >gets this information via DHCP then fix the configuration of the DHCP >server. Bottom line is that to send an IP datagram off the local subnet >you MUST go thru a router that has an interface on the subnet as your >device. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Difference between RTOS and normal OS Date: Mon, 13 May 2002 14:35:46 -0700 From: "Hwa Jin Bae" Organization: PSO Systems Inc Message-ID: References: <507efed5.0205012037.3e11728f@posting.google.com> <507efed5.0205022254.3db92d02@posting.google.com> The DEC sales pitch used to be that VAXELN was for realtime on VAX while VMS (and later, Ultrix which is basically a BSD Unix) was general purpose. But then, many people believe (correctly) that it is just fine to use Windows NT for realtime work (of certain kinds). RT-11 (RSX+), TECO, MACRO-11... those were the days. - -- Hwa Jin Bae mailto:hjb@pso.com http://www.pso.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Difference between RTOS and normal OS Date: Mon, 13 May 2002 23:24:58 +0000 (UTC) From: David Laight Organization: BT Openworld Message-ID: <3CE04BA5.3000904@spamm.me.l8s.co.uk> References: <507efed5.0205012037.3e11728f@posting.google.com> <507efed5.0205022254.3db92d02@posting.google.com> > RT-11 (RSX+), TECO, MACRO-11... those were the days. Yes - we though about a basic interpreter written for TECO, we decided not to try because the available arithmetic was unsigned :-) I've still got the printout of the command TECO used to parse it's command line. It fills most of a sheet of compouter paper (66x132)! It had a synonym of 'make' - and if you typed 'make love' came back with 'not war' before starting the editor... (so when did 'make' cange from creating a new file to running the David --------------------------- Newsgroups: comp.os.vxworks Subject: Is there a globally accessable, char **environ, pointer to a list of environment variables on vxworks? Date: 13 May 2002 16:25:20 -0700 From: ctsai@mc.com (Chung Tsai) Organization: http://groups.google.com/ Message-ID: There is char **environ, and char **_environ on solaris or unix and NT respectively. Is there a equivalent one on vxworks? These char **environ or char **_environ is a pointer to a array of pointer to the environment variable. Thanks in advance. Chung --------------------------- Newsgroups: comp.os.vxworks Subject: TCP_NODELAY option doesn't work Date: 13 May 2002 17:03:21 -0700 From: vprashant@illinoisalumni.org (V Prashant) Organization: http://groups.google.com/ Message-ID: <25050bb6.0205131603.1370c268@posting.google.com> I have been trying to disable Nagle's algorithm by turning the TCP_NODELAY option on. However, this seems to have no effect and snooping on the ethernet packets indicates that the sender is waiting for outstanding ack's before sending the packets it has available. Any idea on why this could be happening? All my traffic is Request/Response type. Thanks Prashant --------------------------- Newsgroups: comp.os.vxworks Subject: ioctl problem for VxWorks Date: 13 May 2002 21:30:30 -0700 From: khurana.r@dcmtech.co.in (Rakesh) Organization: http://groups.google.com/ Message-ID: <414bb87b.0205132030.7f452eb8@posting.google.com> Hi all I am facing the problem of firing the ioctl command of FIOSYNC on dos file system. whwnever i open a file using the open command aand try to fire the ioctl on the fd returned i receive an unknown request error. can anybody suggest me the solution. i am using the PcPentium as my target --------------------------- Newsgroups: comp.os.vxworks Subject: equal cost multipath Date: 13 May 2002 22:42:13 -0700 From: sai_dattathrani@infy.com (sai) Organization: http://groups.google.com/ Message-ID: <8dff11cd.0205132142.3cab07c7@posting.google.com> Hi all, Sometime back there was a posting on this group telling that VxWorks does not support equal cost multipath. Is there any way of enabling equal cost multipath in VxWorks? I think this should be possible since many routers use VxWorks. Please let me know the method for enabling equal cost multipath support in VxWorks. rgds sai --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Block Address Translation Performance Date: Tue, 14 May 2002 06:14:46 GMT From: "dgold1" Organization: RoadRunner - West Message-ID: References: <3CE00A4E.C3A20F72@nospam.com> <3CE01AD4.27A9F051@nospam.com> James wrote in message <3CE01AD4.27A9F051@nospam.com>... Only 1GB of VME A32 memory is mapped via the BAT registers... James wrote: I'm using a MVME2700 single board computer from Motorola. I have 4gig of VME A32 addressable memory which is mapped using BAT registers. Has anyone experienced poor performance the first time through a section of code? For example, the first time through a function may take 118us, whereas future accesses through it only takes 82us. The code does not dynamically allocate any new memory via malloc. I'm guessing that the translation look-ahead buffers (TLB) on the MVME2700 PPC are remembering the previously accessed locations, thereby decreasing future VME A32 access times. If this is so, how can I estimate when the TLB's will forget or lose this information, requiring another performance hit? If anybody has had similar experiences with the BAT registers and has some ideas on how to increase VME A32 memory performance, please respond. The TLBs are not consulted (i.e. used) when you use the BATs, for that particular memory region. (See the Green Book for more info). If you map other areas with page table entries, the TLBs will be used for them. But TLBs are never used for areas mapped by BATs. The code may not dynamically allocate new memory, but are there memory locations (i.e. global variables, local vars on the stack) that may not be accessed until you execute the code the first time ? I'm not completely familiar with the MVME2700. Is the 1G of A32 on board or across the VME ? Are there other bus masters that may invalidate your cache ? If it's off-board memory, are you competing with other masters for it ? hth, Dan Gold gold@ensemble.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: implementing clrscr() in vxworks Date: 13 May 2002 23:14:49 -0700 From: forvxworks@rediffmail.com (Anand) Organization: http://groups.google.com/ Message-ID: References: Hi Michael, i have some doubts in the code u have given. Does /tyco refer to the monitor and also what does the string "\033[2J" mean. does it have some particular value?? Thank You, Regards. Anand. "Michael Lawnick" wrote in message news:... > "Anand" schrieb im Newsbeitrag > news:f14c07cb.0205102309.794a06cd@posting.google.com... > > HI All, > > anybody knows how to implement clrscr() in vxworks as it seems that > > conio.h is not supported in vxworks. > > thanks in advance. > > regards. > > anand. > > Hi Anand, > > I've used > > void clrScr(void) > { > int sfd; > > sfd=open("/tyCo/0", O_RDWR, 0 ) > fdprintf( sfd, "\033[2J" ); /* clear screen */ > } > > for ANSI-compatible output device (Hyperterminal on WinNT) successfully. > > HTH > Michael --------------------------- Newsgroups: comp.os.vxworks Subject: process info Date: 14 May 2002 07:36:59 +0100 From: Ole Asbjørn Fadum Message-ID: In Tornado we have the w() function, which tells about all processes and what they are waiting for. This is a tcl script and only works from inside Tornado. Does it exist a similar c-program which could be compiled into my target sw? --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Block Address Translation Performance Date: Tue, 14 May 2002 08:37:40 +0200 From: "Michael Lawnick" Organization: Buergernetz Dillingen Message-ID: References: <3CE00A4E.C3A20F72@nospam.com> Reply-To: "Michael Lawnick" Sender: mlawnick@p5088f641.dip.t-dialin.net Hi James, "James" schrieb im Newsbeitrag news:3CE00A4E.C3A20F72@nospam.com... > Hello, > I'm using a MVME2700 single board computer from Motorola. I have 4gig of VME A32 addressable memory which is mapped using BAT registers. Has anyone experienced poor performance the first time through a section of code? For example, the first time through a function may take 118us, whereas future accesses through it only takes 82us. The code does not dynamically allocate any new memory via malloc. I'm guessing that the translation look-ahead buffers (TLB) on the MVME2700 PPC are remembering the previously accessed locations, thereby decreasing future VME A32 access times. If this is so, how can I estimate when the TLB's will forget or lose this information, requiring another performance hit? > > If anybody has had similar experiences with the BAT registers and has some ideas on how to increase VME A32 memory performance, please respond. > BAT superceeds TLB, i.e. a hit in BAT leads to never consulting TLB (->PPC604 docu). Your 'problem' might be caused by cache: The first time your code is executed, it has to loaded into instruction cache. You may test the delay by commenting out the VME access and messure again. Take care: When writing to VME, you don't get the actual time of VME access, as your PCI2VME (Tundra Universe) does posted writes in basic setup. Try reads to get a feeling of real world. HTH Michael --------------------------- Newsgroups: comp.os.vxworks Subject: Re: implementing clrscr() in vxworks Date: Tue, 14 May 2002 08:52:27 +0200 From: "Michael Lawnick" Organization: Buergernetz Dillingen Message-ID: References: Reply-To: "Michael Lawnick" Sender: mlawnick@p5088f641.dip.t-dialin.net Hi Anand, just read more carefully: - - its /tyCo, not /tyco, your serial line interface in vxWorks. -> I had connected a terminal to my target. - - "\033[2J" is the ANSI-escape-sequence for 'clear screen'. It should work on ANSI compliant console drivers too. HTH Michael "Anand" schrieb im Newsbeitrag news:f14c07cb.0205132214.1d44962a@posting.google.com... > Hi Michael, > i have some doubts in the code u have given. Does /tyco refer to > the monitor and also what does the string "\033[2J" mean. does it have > some particular value?? > Thank You, > Regards. > Anand. > > "Michael Lawnick" wrote in message news:... > > "Anand" schrieb im Newsbeitrag > > news:f14c07cb.0205102309.794a06cd@posting.google.com... > > > HI All, > > > anybody knows how to implement clrscr() in vxworks as it seems that > > > conio.h is not supported in vxworks. > > > thanks in advance. > > > regards. > > > anand. > > > > Hi Anand, > > > > I've used > > > > void clrScr(void) > > { > > int sfd; > > > > sfd=open("/tyCo/0", O_RDWR, 0 ) > > fdprintf( sfd, "\033[2J" ); /* clear screen */ > > } > > > > for ANSI-compatible output device (Hyperterminal on WinNT) successfully. > > > > HTH > > Michael --------------------------- Newsgroups: comp.os.vxworks Subject: PS2 Port on MVME1604. Date: Tue, 14 May 2002 08:49:58 +0100 From: An Engineer Message-ID: <3CE0C1A6.50092F63@here.com> I would like to read the output of a PS2 device attached to the PS2 port of a Power PC (MVME1604). I however, cannot find any information on how to access the PS2 port of the MVME1604. Has anyone had any experiance of reading from the PS2 port of a Power PC? Do I simply need to read from a certain port number as I would do if reading from a serial port? Thanks An Engineer. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Is there a globally accessable, char **environ, pointer to a list of environment variables on vxworks? Date: Tue, 14 May 2002 10:25:13 +0200 From: "Werner Schiendl" Message-ID: <3ce0c9df$1@brateggebdc5.br-automation.co.at> References: Hi, try: #include extern char **ppGlobalEnviron; then you have a macro environ, that you can use like the char **environ on *nix systems. hth Werner "Chung Tsai" wrote in message news:f0b3c85f.0205131525.6975ac28@posting.google.com... > There is char **environ, and char **_environ on solaris or unix and NT > respectively. Is there a equivalent one on vxworks? > > These char **environ or char **_environ is a pointer to a array of > pointer to > the environment variable. > > Thanks in advance. > > Chung --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Default route outside subnet Date: 14 May 2002 08:26:52 GMT From: Johan Borkhuis Organization: Agere Systems Message-ID: References: "RonnoBonno" wrote: > Have you tried, > > routeAdd "0.0.0.0","IP Addr of the Gateway" > > the 0.0.0.0 route is the default gateway. Yes, but the problem is that the address of the gateway is outside the subnet. I managed to get it to work (sort of). After I received the data from the DHCP server I had to implement the following sequence: ifAddrAdd ("dp0",); routeAdd ("0.0.0.0",); arpAdd (,,0); For some reason the ARP does not work correctly on the second IP address, so I had to add the entry manually. This also gives problems with the DNS server. When I ask for an address the query is sent out on the second IP address, as this is the address of the DNS resolver in the box where the DHCP server is also located. But that box sends out an ARP, but this ARP is not answered by the VxWorks box. 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: Is there a globally accessable, char **environ, pointer to a list of environment variables on vxworks? Date: 14 May 2002 08:32:17 GMT From: Johan Borkhuis Organization: Agere Systems Message-ID: References: ctsai@mc.com (Chung Tsai) wrote: > There is char **environ, and char **_environ on solaris or unix and NT > respectively. Is there a equivalent one on vxworks? > > These char **environ or char **_environ is a pointer to a array of > pointer to the environment variable. see the manual page for envLib. 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: Help! a question about etherOutput Date: 14 May 2002 02:12:31 -0700 From: chwin@china.com (Adom) Organization: http://groups.google.com/ Message-ID: <92dbccc1.0205140112.2468ec07@posting.google.com> Hi, i'm developing a test program for a device production. Envirment: Intel Board, PIII CPU, 2 82557 Network Interface(fei0 and fei1) i use etherOutput periodic to send packet with size of 100 from fei0 to fei1 directly in order to test the hardware. At the begining, when the packet number is small, all is ok and i can use sniffer to receive all packet but when i send 300 packets once , the sniffer only receives more 150 packet , then the fei0 is unreachable when i ping it. when i use mbufShow to see the mbuf numbers , the size 128 clusters reduces from 100 to 50. So i ipDetch on fei0 then ipAttach on it ,fei0 resume but the mbuf does not. What happened? Anyone can help me ? Thanks! ========== Attach Source Code: void test (int count) { struct ifnet *pIfNet0, *pIfNet1; struct in_addr srcIp, dstIp; struct ether_header eh; /* ethernet header */ char pSrcIp[18] = {0}; char pDstIp[18] = {0}; char pData[100] = {0}; int i ; i = (count<=0)?1:count; pIfNet0 = ifunit ("fei0"); //get ifnet pointer pIfNet1 = ifunit ("fei1"); ifAddrGet ("fei0", pSrcIp); //get net ip address ifAddrGet ("fei1", pDstIp); inet_aton (pSrcIp, &srcIp); inet_aton (pDstIp, &dstIp); //init a ip header ipHeaderCreate (1, &srcIp, &dstIp, (struct ip*)pData, sizeof (pData)); bzero ((char *) &eh, sizeof (struct ether_header)); //get dest mac addr if (etherAddrResolve (pIfNet1, pDstIp, (char *) eh.ether_dhost, 5, 2 * sysClkRateGet()) == ERROR) return ; eh.ether_type = ETHERTYPE_IP; /* htons is in ether_output */ //send do { if (etherOutput (pIfNet0, &eh, (char *) pData, sizeof (pData)) != OK) { logMsg ("Ether Send Packet Error\n", 0, 0, 0, 0, 0, 0); } } while (--i); } --------------------------- End of New-News digest ********************** From vxwexplo-errs@csg.lbl.gov Wed May 15 00:41:09 2002 From: "Surinder Singh" Date: Wed May 15 00:41:11 PDT 2002 Subject: Embedded Engineer This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C1FBB7.246636F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Please forward the updated resume attached as a word document and also mention the expected salary, availability and employment status (Visa, Green Card, US Citizen). These are FULL TIME positions in Bay Area - California, Japan and Bangalore - India. Please mention the location you are applying for. 1) Sr. Software Engineer / Technical Lead 4 to 10 years Exp. 2) Technical Lead/Manager level 5 to 10 years experience. - Extremely good in C, C++, VC++, COM/DCOM - Good in Real Time Systems - Good in Data Structures/ Algorithms - Motorola 6800 Assembly Language - Java experience is a plus - Preferably Computer Science Engineers Need to be good in Windows NT 4.0 worked in RTOS like VxWorks or pSOS It would be an advantage if you know GEM and SECS (these are inter-tool communication standards in semi conductor manufacturing industry). Thank you so very much for your time and I look forward to hearing and working with you soon. ------=_NextPart_000_0001_01C1FBB7.246636F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Please forward the updated resume attached = as a word=20 document and also mention the = expected=20 salary, availability and employment status (Visa, Green Card, US=20 Citizen). These are = FULL=20 TIME positions in Bay Area - = California,=20 Japan and Bangalore - India. = Please=20 mention the location you are applying=20 for.
 
1) Sr. Software Engineer / = Technical Lead=20 4 to 10 years Exp.
 
2) Technical Lead/Manager level = 5 to 10=20 years experience.
 
- Extremely good = in C, C++, VC++, = COM/DCOM
- Good in Real = Time=20 Systems
- Good in Data = Structures/=20 Algorithms
- Motorola=20 6800 Assembly Language
- Java experience is a = plus
- Preferably = Computer Science=20 Engineers
 
Need to be good in Windows NT=20 4.0
worked in = RTOS like=20 VxWorks or pSOS
It would=20 be an advantage if you know GEM=20 and SECS
(these are=20 inter-tool communication standards in semi conductor manufacturing = industry). 

Thank=20 you so very much for = your time=20 and I look forward to hearing and working with you soon.

=20 =

------=_NextPart_000_0001_01C1FBB7.246636F0-- From vxwexplo-errs@csg.lbl.gov Wed May 15 00:43:12 2002 From: "Surinder Singh" Date: Wed May 15 00:43:14 PDT 2002 Subject: Embedded Engineer This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C1FBB8.739121D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Please forward the updated resume attached as a word document and also mention the expected salary, availability and employment status (Visa, Green Card, US Citizen). These are FULL TIME positions in Bay Area - California, Japan and Bangalore - India. Please mention the location you are applying for. 1) Sr. Software Engineer / Technical Lead 4 to 10 years Exp. 2) Technical Lead/Manager level 5 to 10 years experience. - Extremely good in C, C++, VC++, COM/DCOM - Good in Real Time Systems - Good in Data Structures/ Algorithms - Motorola 6800 Assembly Language - Java experience is a plus - Preferably Computer Science Engineers Need to be good in Windows NT 4.0 worked in RTOS like VxWorks or pSOS It would be an advantage if you know GEM and SECS (these are inter-tool communication standards in semi conductor manufacturing industry). Thank you so very much for your time and I look forward to hearing and working with you soon. ------=_NextPart_000_0000_01C1FBB8.739121D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Please forward the updated resume attached = as a word=20 document and also mention the = expected=20 salary, availability and employment status (Visa, Green Card, US=20 Citizen). These are = FULL=20 TIME positions in Bay Area - = California,=20 Japan and Bangalore - India. = Please=20 mention the location you are applying=20 for.
 
1) Sr. Software Engineer / = Technical Lead=20 4 to 10 years Exp.
 
2) Technical Lead/Manager level = 5 to 10=20 years experience.
 
- Extremely good = in C, C++, VC++, = COM/DCOM
- Good in Real = Time=20 Systems
- Good in Data = Structures/=20 Algorithms
- Motorola 6800 Assembly=20 Language
- Java experience is a = plus
- Preferably = Computer Science=20 Engineers
 
Need to be good in Windows NT=20 4.0
worked in = RTOS like=20 VxWorks or pSOS
It would=20 be an advantage if you know GEM=20 and SECS
(these are=20 inter-tool communication standards in semi conductor manufacturing = industry). 

Thank=20 you so very much for = your time=20 and I look forward to hearing and working with you soon.

=20 =

------=_NextPart_000_0000_01C1FBB8.739121D0-- From vxwexplo-errs@csg.lbl.gov Wed May 15 04:03:16 2002 From: Vxworks Exploder Date: Wed May 15 04:03:19 PDT 2002 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Wed May 15 04:03:11 PDT 2002 Subject: Link to boot multiple ethernet interface Subject: Re: Compilation log file Subject: Re: 860 SMC question ... Subject: Re: Is it possible to build a simulator myself? Subject: Re: Link to boot multiple ethernet interface Subject: Determing the Link status using a Motorola MPC860T and the MII Subject: Re: FTP Site Subject: Re: Non blocking UDP sockets? Subject: Re: Link to boot multiple ethernet interface Subject: Re: ENVOY SNMP Subject: Re: Polymorphism and Destructor Subject: Looking for some HOME BASED PC work Subject: Re: MTD for 28F640J3A Subject: Re: implementing clrscr() in vxworks Subject: Re: routing table Subject: Re: Polymorphism and Destructor Subject: Re: MTD for 28F640J3A Subject: Error: clnttty_rcv: read timed out Subject: [newbie]SIO driver - UART Tx Buffer Full Subject: "RPCExit: extra call" error message Subject: Re: Compilation log file Subject: Re: Compilation for MBX860 target failed Subject: Re: Difference between RTOS and normal OS Subject: Re: Non blocking UDP sockets? Subject: Tornado II - Printing Source Files Subject: Re: Compilation for MBX860 target failed Subject: Re: Link to boot multiple ethernet interface Subject: MPC860/MPC8260 Question ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Link to boot multiple ethernet interface Date: Tue, 14 May 2002 11:16:19 +0000 (UTC) From: "Dexter Nixon" Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: <80b6fd721aa44a76437bc129c318a32e.76014@mygate.mailgate.org> Hi, Can anynody point me to a link which speaks about booting multiple ethernet interfaces in VxWorks. Also which booting the image itself is it possible to boot the interfaces if it is multihomed. Kindly help me. Thanks. Nix - -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Compilation log file Date: Tue, 14 May 2002 13:45:32 +0200 From: "Werner Schiendl" Message-ID: <3ce0f8d2$1@brateggebdc5.br-automation.co.at> References: Hi Alex, you need to invoke the DOS shell with more environment space. I think the parameter to command(.com) was /e: - but not sure about it. AFAIK, this only applies to Gamer's Edition of MS Windows. I strongly recommend using an edition for grown-ups (NT, 2000 or XP). == The next thing that is wrong is, that you need to invoke the build from the command line if you want to follow Andray's suggestion. Change to the directory where your project is located and type: make project-name.out > project-name.log replace project-name with the name of your project (out file). If you have a bootable project, you type make vxWorks > build.log The log file, as you should have seen, can of course have any name you like. Note: Before any of the above will work, you need to build one time from the GUI. Otherwise, changes in the project facility will not make it into the build. hth Werner "Alex Vinokur" wrote in message news:abktvh$j639a$1@ID-79865.news.dfncis.de... > > "Andray Kaganovsky" wrote in message news:Xns920ADE78B662Aandrayk@216.254.136.26... > | "Alex Vinokur" wrote in news:abdho1$h4l0l$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) > | >========================================================= > | > > | > I would like the compilation results to be written > | > not only to Build Output Window, > | > but to some compilation log file as well. > | > > | > Is it possible to do it? > | > > | > > > [snip] > > | > > | > | [AndrayK]. Did you try building from DOS shell ? You'll need to > | execute /host/x86-win32/bin/torvars.bat before you > | invoke make .. > | > | regards, Andray > > > 1. Here is /host/x86-win32/bin/torvars.bat in my system : > > ============ File: torvars.bat ============ > rem Command line build environments > set WIND_HOST_TYPE=x86-win32 > set WIND_BASE=D:\sys2\Tornado > set PATH=%WIND_BASE%\host\%WIND_HOST_TYPE%\bin;%PATH% > ==================================== > > > > 2. Here is results of torvars.bat execution. > > ============ Execution: torvars.bat ============ > %torvars.bat > > D:\SYS2\TORNADO\HOST\X86-WI~1\BIN>rem Command line build environments > > D:\SYS2\TORNADO\HOST\X86-WI~1\BIN>set WIND_HOST_TYPE=x86-win32 > Out of environment space > > D:\SYS2\TORNADO\HOST\X86-WI~1\BIN>set WIND_BASE=D:\sys2\Tornado > Out of environment space > > D:\SYS2\TORNADO\HOST\X86-WI~1\BIN>set PATH=\host\\bin;C:\PROGRA~1\Far;C:\DJGPP\bin; > D:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;D:\app1\araxi > > D:\SYS2\TORNADO\HOST\X86-WI~1\BIN> > ======================================== > > > 3. Compilation is pefrormed via : > Workspace Window > Files View > Right Click > ReBuild All (vxWorks) > > I saw no compilation log file. > > > 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: 860 SMC question ... Date: Tue, 14 May 2002 11:50:22 GMT From: "Jim" Organization: Magma Communications Ltd. Message-ID: <2S6E8.21772$f5.1814320@news> References: <5dRC8.21403$f5.1728610@news> Is this worth trying even? "Jim" wrote in message news:5dRC8.21403$f5.1728610@news... > Hello, > > I have a question for you MPC860 lovers out there ... I am trying to write a > MPC 860 polled UART driver that I can call from romStart.c ... > > Nothing seems to be printing yet ... and I haven't spent to much time > debugging ... but any suggestions would be awesome ... the code is below ... > > Jim > > > /* SMC 2 Pins Information */ > #define portB23_SMSYN1_mask (0x1<<31-23) > #define portB24_SMRXD1_mask (0x1<<31-24) > #define portB25_SMTXD1_mask (0x1<<31-25) > > /* Port B Registers */ > #define PBPAR_ADDR 0x02200abc > #define PDDIR_ADDR 0x02200ab8 > #define PBODR_ADDR 0x02200ac0 > #define PBDAT_ADDR 0x02200ac4 > > /*SMC Clocks Registers*/ > #define CPU_CLCK 80000000 /*80 Mhz*/ > #define BRG1_ADDR 0x22009F0 > #define SCCR_ADDR 0x2200280 > > /*SI Mode Register*/ > #define SIMODE_ADDR 0x2200ae0 > > /*SMS Parameter Ram*/ > #define SMC1_PRAM_START_ADDR 0x2203E80 > > #define SMC1_PRAM_TBASE_ADDR (SMC1_PRAM_START_ADDR + 0x00) > #define SMC1_PRAM_RBASE_ADDR (SMC1_PRAM_START_ADDR + 0x02) > #define SMC1_PRAM_RFCR_ADDR (SMC1_PRAM_START_ADDR + 0x04) > #define SMC1_PRAM_TFCR_ADDR (SMC1_PRAM_START_ADDR + 0x05) > #define SMC1_PRAM_MRBLR_ADDR (SMC1_PRAM_START_ADDR + 0x06) > #define SMC1_PRAM_MAX_IDL_ADDR (SMC1_PRAM_START_ADDR + 0x28) > #define SMC1_PRAM_BRKLN_ADDR (SMC1_PRAM_START_ADDR + 0x2C) > #define SMC1_PRAM_BRKEC_ADDR (SMC1_PRAM_START_ADDR + 0x2E) > #define SMC1_PRAM_RKCR_ADDR (SMC1_PRAM_START_ADDR + 0x30) > > /*CPCR Communications Processor Command Register*/ > #define CPCR_ADDR 0x022009c0 > > /*CIMR*/ > #define CIMR_ADDR 0x2200948 > #define CICR_ADDR 0x2200940 > > /*SDMA Config Register*/ > #define SDCR_ADDR 0x02200030 > > > /*SMC1 Event Register*/ > #define SMCE1_ADDR 0x02200a86 > /*SMC1 Mask Register*/ > #define SMCM1_ADDR 0x02200a8a > > /*SMC1 Mode Register*/ > #define SMCMR1_ADDR 0x02200a82 > > > > > > /**********************************************************************/ > void InitSMC2ForUart() { > unsigned SCCR_DFBRG; > unsigned default_baud_rate; > unsigned tager_brg1_rate = 9600 * 16; > unsigned BRG1_CD; > unsigned BRG1_DIV16; > > static char rx_buff[10]; > #define TX_BUFF "hello\n" > static unsigned tmp; > > > /*--------------------------------------------------------------------- > * 1.) ConÞgure the port B pins to enable SMTXD1 and SMRXD1. > * Set PBPAR[24, 25] then clear PBDIR[24, 25] and PBODR[24, 25]. > ---------------------------------------------------------------------*/ > > *(unsigned *)PBPAR_ADDR = (*(unsigned *)PBODR_ADDR) | > ~(portB24_SMRXD1_mask | portB25_SMTXD1_mask); > *(unsigned *)PDDIR_ADDR = (*(unsigned *)PBODR_ADDR) & > ~(portB24_SMRXD1_mask | portB25_SMTXD1_mask); > *(unsigned *)PBODR_ADDR = (*(unsigned *)PBODR_ADDR) & > ~(portB24_SMRXD1_mask | portB25_SMTXD1_mask); > > > > > /*--------------------------------------------------------------------- > * 2.) ConÞgure the BRG1. Write BRGC1 with 0x01_0144. > * The DIV16 bit is not used and the divider is 162 (decimal). > * The resulting BRG1 clock is 16´ the preferred bit rate. > ---------------------------------------------------------------------* / > SCCR_DFBRG = ( ( (*(unsigned *)SCCR_ADDR) >> (31-20) )& 0x3 ); > if ( SCCR_DFBRG == 0x0 ) { > default_baud_rate = CPU_CLCK / 1; > } else if ( SCCR_DFBRG == 0x1 ) { > default_baud_rate = CPU_CLCK / 4; > } else if ( SCCR_DFBRG == 0x2 ) { > default_baud_rate = CPU_CLCK / 16; > } else { > default_baud_rate = CPU_CLCK / 64; > } > > BRG1_CD = default_baud_rate/tager_brg1_rate; > > if ( BRG1_CD > (0xfff) ) { /*CD is only 12 bits*/ > BRG1_CD = (default_baud_rate/16)/tager_brg1_rate; > BRG1_DIV16 = 1; > } else { > BRG1_DIV16 = 0; > } > > *(unsigned *)BRG1_ADDR = (0x00010000 | (BRG1_CD<<1) | BRG1_DIV16); > > > > > /*--------------------------------------------------------------------- > * 3. Connect BRG1 to SMC1 using the SI. Clear SIMODE[SMC1, SMC1CS]. > --------------------------------------------------------------------- */ > *(unsigned *)SIMODE_ADDR = (*(unsigned *)SIMODE_ADDR) & ~(0x0000f000); > > > > > /*--------------------------------------------------------------------- > * 4. Assuming one RxBD at the beginning of dual-port RAM > * followed by one TxBD, write RBASE with 0x0000 and > * TBASE with 0x0008. > --------------------------------------------------------------------- */ > * (unsigned short *)SMC1_PRAM_TBASE_ADDR = 0x0008; > * (unsigned short *)SMC1_PRAM_RBASE_ADDR = 0x0000; > > > > /*--------------------------------------------------------------------- > * 5. Write 0x0091 to CPCR to execute the INIT RX AND TX PARAMETERS > command. > -------------------------------------------------------------------- - -* > / > *(unsigned short *)CPCR_ADDR = 0x0091; > > > /*--------------------------------------------------------------------- > * 6. Initialize the SDMA conÞguration register (SDCR) to 0x0001. > -------------------------------------------------------------------- - -* > / > * (unsigned short *)SDCR_ADDR = 0x0001; > > > > /*--------------------------------------------------------------------- > * 7. Write RFCR and TFCR with 0x10 for normal operation. > -------------------------------------------------------------------- - -* > / > * (unsigned char *)SMC1_PRAM_RFCR_ADDR = (unsigned char)0x10; > * (unsigned char *)SMC1_PRAM_TFCR_ADDR = (unsigned char)0x10; > > > /*--------------------------------------------------------------------- > * 8. Write MRBLR with the maximum number of bytes per receive buffer. > * Assume 16 bytes, so MRBLR = 0x0010. > -------------------------------------------------------------------- - -* > / > * (unsigned short *)SMC1_PRAM_MRBLR_ADDR = 0x0010; > > > > /*--------------------------------------------------------------------- > * 9. Write MAX_IDL with 0x0000 in the SMC UART-speciÞc parameter RAM > to > * disable the MAX_IDL functionality for this example. > -------------------------------------------------------------------- - -* > / > * (unsigned short *) SMC1_PRAM_MAX_IDL_ADDR = 0x0000; > > /*--------------------------------------------------------------------- > * 10. Clear BRKLN and BRKEC in the SMC UART-speciÞc parameter RAM. > -------------------------------------------------------------------- - -* > / > * (unsigned short *)SMC1_PRAM_BRKLN_ADDR = 0x0000; > * (unsigned short *)SMC1_PRAM_BRKEC_ADDR = 0x0000; > > > > /*--------------------------------------------------------------------- > * 11. Set BRKCR to 0x0001; if a STOP TRANSMIT COMMAND is issued, > * one break character is sent. > -------------------------------------------------------------------- - -* > / > * (unsigned short *) SMC1_PRAM_RKCR_ADDR = 0x0001; > > > > /*--------------------------------------------------------------------- > * 12. Initialize the RxBD. Assume the Rx buffer is at 0x0000_1000 > * in main memory. Write 0xB000 to Rx_BD_Status, 0x0000 to > Rx_BD_Length > * (not required), and 0x0000_1000 to Rx_BD_Pointer. > -------------------------------------------------------------------- - -* > / > *(unsigned short*)0x2202000= 0xB000; > *(unsigned short*)0x2202002= 10; > *(unsigned *)0x2202004= (unsigned *)rx_buff; > > > > /*--------------------------------------------------------------------- > * 13. Assuming the Tx buffer is at 0x00002000 in main memory and > * contains Þve 8-bit characters, write 0xB000 to Tx_BD_Status, > * 0x0005 to Tx_BD_Length, and 0x00002000 to Tx_BD_Pointer. > -------------------------------------------------------------------- - -* > / > *(unsigned short*)0x2202008= 0xB000; > *(unsigned short*)0x220200a= 6; > *(unsigned *)0x220200c= (unsigned *)0x2800130; > > > > /*--------------------------------------------------------------------- > * 14. Write 0xFF to the SMCE register to clear any previous events. > -------------------------------------------------------------------- - -* > / > * (unsigned char *) SMCE1_ADDR = 0xff; > > > > /*--------------------------------------------------------------------- > * 15. Write 0x17 to the SMCM register to enable all possible SMC > * interrupts. > * Note: I want no interupts enabled so I set this to 0x0 ... like > * a good boy > -------------------------------------------------------------------- - -* > / > * (unsigned char *) SMCM1_ADDR = 0x0; > > > > /*--------------------------------------------------------------------- > * 16. Write 0x00000010 to the CIMR so the SMC1 can generate a system > * interrupt. Initialize the CICR. > * Note: I want no interupts enabled so I DO NOT DO THIS! > -------------------------------------------------------------------- - -* > / > *(unsigned *) CIMR_ADDR = 0x00000010; > *(unsigned *) CICR_ADDR = 0x00000000; > > > /*--------------------------------------------------------------------- > * 17. Write 0x4820 to SMCMR to conÞgure normal operation (not > loopback), > * 8-bit characters, no parity, 1 stop bit. > * The transmitter and receiver are not yet enabled. > -------------------------------------------------------------------- - -* > / > * (unsigned short *) SMCMR1_ADDR = 0x4820; > > > /*--------------------------------------------------------------------- > * 18. Write 0x4823 to SMCMR to enable the SMC transmitter and > * receiver. This additional write ensures that the TEN and > * REN bits are enabled last. > -------------------------------------------------------------------- - -* > / > * (unsigned short *) SMCMR1_ADDR = 0x4823; > > } > > > /**********************************************************************/ > void SMC2_Write(char *str) { > int i; > for (i=0;i<256 || str[i]!='\0';i+=1); > > *(unsigned short*)0x2202008= 0xB000; > *(unsigned short*)0x220200a= i; > *(unsigned *)0x220200c= (unsigned *)0x2800130; > > } > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Is it possible to build a simulator myself? Date: Tue, 14 May 2002 13:49:17 +0200 From: "Werner Schiendl" Message-ID: <3ce0f9b3$1@brateggebdc5.br-automation.co.at> References: Hi, you can build your own simulator, but it is not based on the target hardware. How should this work? The simulation runs on your host (Windows or Solaris), so it must be compiled for the host's architecture and file format (e. g. it must be in PE - portable exe - format on Windows). This should not prevent you from testing your application, unless you have some hardware specific stuff used there. In that case, you need to write a simulation for this parts of the project or exclude them from the simulation. If you want to achieve something else, please specify what exactly. hth Werner "yyzhong" wrote in message news:b35585ab.0205081909.64d797e7@posting.google.com... > I need to use a simulator oriented to a project based on PentiumGNU. > But I don't know how to build it. > Is it possible? And which disk is necessory? > The disks I can use are listed below: > CD Title: Tornado 2.0 AP for x86 > Part No.: TDK-13127-ZC > CD Title: Tornado 2.0 AP for PowerPC > Part No.: TDK-13128-ZC > CD Title: Tornado 2.0.2 for PowerPC > Part No.: TDK-12389-ZC > CD Title: Tornado 2.0.2 for All Simulators > Part No.: TDK-12840-ZC > CD Title: BSP Developer's Kit > Part No.: TDK-13234-ZC > CD Title: RTI SCOPE TOOLS 2.1 > Part No.: STS-14469-zc-00 --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Link to boot multiple ethernet interface Date: 14 May 2002 12:13:05 GMT From: Johan Borkhuis Organization: Agere Systems Message-ID: References: <80b6fd721aa44a76437bc129c318a32e.76014@mygate.mailgate.org> "Dexter Nixon" wrote: > Can anynody point me to a link which speaks about booting multiple > ethernet interfaces in VxWorks. Also which booting the image itself is > it possible to boot the interfaces if it is multihomed. Kindly help me. What I expect that you want to do is have multiple ethernet controllers starting up during the boot instead of only one. I don't think this is documented. If you want to do this you have to modify the bootrom code. Also if you want to do this from the application you have to initialise your network yourself. But it is not very difficult: ipAttach (, ); usrNetIfConfig (, , , , ); So for example: ipAttach (1,"fei"); usrNetIfCOnfig("fei", 1, "10.20.30.40","Interface2", 0xffffff00); But you need to configure your interface in configNet.h 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: Determing the Link status using a Motorola MPC860T and the MII Date: 14 May 2002 06:41:10 -0700 From: chris.mycock@tde.alstom.com (Chris Mycock) Organization: http://groups.google.com/ Message-ID: <2e8ae7f.0205140541.3f6322df@posting.google.com> I am trying to write a function to read the current link status as provided by the phy (national semiconductor DP83843BVJE). I have added an extra function to the motfecend driver that uses existing functions to read the status using the MII port on the MPC860. The link status is checked when the device is being configured after the auto-negotiation and this returns the correct status. After the status comes back ok the device works as normal. If I try to call the exact same function with the exact same settings to read the status from the PHY, the return value is always all 1's (0xFFFFFFFF). I am calling the 'get status' function from a timer expiration call and it seems to work as the FEC generates an interrupt to say the message transaction is complete. Any help would be very appreciated. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: FTP Site Date: Tue, 14 May 2002 11:57:02 -0700 From: Joe Durusau Organization: Lockheed Martin Corporation Message-ID: <3CE15DFE.E2434894@lmco.com> References: MURALI wrote: > > Hi, > > I was trying to access the site > > ftp://ftp.ece.ucdavis.edu/pub/snmp/ucd-snmp.tar.gz > > but could not access the same. Can any one of you > help me in letting me know whether the above > ID is correct and if yes and if the site has been > moved to different location, can you pls give me > the new location also. > > Thanks for the help. > > Regards > > Murali Try: http://sourceforge.net/projects/net-snmp Speaking only for myself, Joe Durusau --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Non blocking UDP sockets? Date: Tue, 14 May 2002 09:54:42 -0700 From: "Hwa Jin Bae" Organization: PSO Systems Inc Message-ID: References: <3CDB8D86.6090009@spamm.me.l8s.co.uk> <488e459a.0205100714.5c6a4469@posting.google.com> UDP sockets can block. - -- Hwa Jin Bae mailto:hjb@pso.com http://www.pso.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Link to boot multiple ethernet interface Date: Tue, 14 May 2002 10:07:36 -0700 From: "Dan Gold" Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: References: <80b6fd721aa44a76437bc129c318a32e.76014@mygate.mailgate.org> Sender: gold@ensemble.com "Dexter Nixon" wrote in message news:80b6fd721aa44a76437bc129c318a32e.76014@mygate.mailgate.org... > Hi, > > Can anynody point me to a link which speaks about booting multiple > ethernet interfaces in VxWorks. Also which booting the image itself is > it possible to boot the interfaces if it is multihomed. Kindly help me. The link is Johan's vxWorks FAQ, i.e. http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html. See section 4.1 (network configuration) for the sequence of steps necessary to bring up multiple END devices. As Johan pointed out earlier, you should have all of them already in the END_DEV_TBL defined in configNet.h. And the code in usrNetInit() (whether it's in the application or bootrom) should have run muxDev{Load,Start} on them. Then it's valid to call the code in the link above. hth, Dan Gold gold@ensemble.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: ENVOY SNMP Date: 14 May 2002 11:02:20 -0700 From: jzhang@drs.ca (Jason) Organization: http://groups.google.com/ Message-ID: References: <3CD35445.8123C2F0@worldnet.att.net> Eventually I know what the problem is. HP Openview is designed to lookup DNS server before sending the request, if the target is not configured in the DNS server, cause big delay. One of the simplest way to fix is: 1. edit \winnt\system32\etc\hosts to add ip address of target 2. run "loadhosts -m \WINNT\system32\etc\hosts" in command prompt 3. enjoy the mib browser Cheers jzhang@drs.ca (Jason) wrote in message news:... > Hello Chris: > > We am using ENVOY 9.2 and experiencing the same problem, > I don't have the solution for it yet but have some discovery. > > I tried some commands provided by HP Openview in DOS prompt. > following are the snmpwalk command I run with different options > and it shows the reason why slow: > D:\>snmpwalk -v 1 -c public 10.3.2.95 system > > D:\>snmpwalk -d -v 1 -c public 10.3.2.95 system > > The first one goes very fast and the second one with -d option > (means dump ASN.1 packet trace) goes really really slow. I think > the reason why there is a big delay between agent and manager is > because enable the "dump", and worth to try to disable it . If > you have the solution, pls let me know. > > Thanks > > > > > > chrismooremobile@yahoo.com (Chris Moore) wrote in message news:... > > Les Cargill wrote in message news:<3CD35445.8123C2F0@worldnet.att.net>... > > > Jason wrote: > > > > > > > > Hello: > > > > > > > > I have successfully built the ENVOY SNMP module for PPC, but it quite > > > > big (1.5MBytes). I hope to reduce it. Does any one have the idea ? > > > > > > > > One way I want to try is, among the 11 groups of MIB II, only include > > > > a few of them, say the system and ip, exclude the rest 9 groups. But > > > > how to do it exactly? > > > > > > > > > > Use the "-exclude" option when invoking the MIB compiler. > > > > > > > Thanks in advance! > > > > Hi Everyone, > > > > We use ENVOY 9.1 SNMP and find that is is REALLLLY slow when working > > with HP Open view and ...AdventNet SNMP mangers. Using "snmptool" from > > the win32 CLI its fine and fast.... does anyone know if this is a > > setting problem on either the client or the manager? > > > > Cheers, --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Polymorphism and Destructor Date: 14 May 2002 12:30:53 -0700 From: pboulay@hotmail.com (Patrick Boulay) Organization: http://groups.google.com/ Message-ID: <8bb5523.0205141130.64edc264@posting.google.com> References: <8bb5523.0205121836.5b8b1432@posting.google.com> <8bb5523.0205130754.71df76b0@posting.google.com> Thanks for you answer, but the real problem seems to be in the kernel. My boss contact WindRiver and everything suppose to be ok, so he have to check in the kernel. pboulay@hotmail.com (Patrick Boulay) wrote in message news:<8bb5523.0205130754.71df76b0@posting.google.com>... > I did it, I didn't show you the implementation here because the code > would be too long for nothing.. > I just put cout in the destructors and constructors. > > "Alex Vinokur" wrote in message news:... > > "Patrick Boulay" wrote in message news:8bb5523.0205121836.5b8b1432@posting.google.com... > > | Hello, > > | > > | I have a big problem with polymorphism and destructor. See the class > > | in example bellow, the vxworks crash after I delete the pointer. > > | > > > > You should implement constructors and destructors. > > > > | class A > > | { > > | public: > > | A(); > > | virtual ~A(); > > | }; > > | class B:public A > > | { > > | public: > > | B(); > > | virtual ~B(); > > | }; > > | int aFunction() > > | { > > | A *ptr; > > | > > | ptr = new B; > > | > > | delete ptr; > > | > > | return 0; > > | } > > | > > | > > | > > | Thanks > > | Patrick --------------------------- Newsgroups: comp.os.vxworks Subject: Looking for some HOME BASED PC work Date: Saturday, 11 May 2002 20:45:22 -0600 From: wra-uk-2001@freeuk.com Organization: wra-uk-2001@freeuk.com Message-ID: <11050220.4522@freeuk.com> Reply-To: wra-uk-2001@freeuk.com Hi, Thankyou for reading my advert. I am looking for some work that I can do in the comfort of my own home. I am NOT interested in ANY of the following :- MLM Network Marketing Door-to-Door Sales Pay To EMail Pay To Surf Pay To SMS Selling Of Web Sites Recruiting People Stuffing Envelopes Craft Work Typing I am looking for a Job that I can do using my PC and get paid for it. Do you need a Web Site putting togther? Do you need some special database software writing ? Do you need a Mailing List creating ? Do you need any PC based research done ? I DON'T and WILL NOT pay anthing for kits, tools etc. My main skills are :- Sybase Power Builder Clipper Visual Basic Visual Foxpro HTML ASP Word Access Excel If you have anything that may be of interest to me, then please get in touch. Please reply to me direct and not via the group. Please remember to take out the words 'NOSPAM'. Thanks Wayne UK --------------------------- Newsgroups: comp.os.vxworks Subject: Re: MTD for 28F640J3A Date: Tue, 14 May 2002 17:20:43 -0400 From: "David Masse" Organization: Universite du Quebec Message-ID: References: This is a CFI device, so you can use the cfiscs.c MTD that is provide with vxworks. David "doug dotson" wrote in message news:v0VD8.19689$A%3.194689@ord-read.news.verio.net... > Does anyone know of a TFFS MTD for an Intel StrataFlash > 28F640J3A? > > Thanks, > Doug > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Re: implementing clrscr() in vxworks Date: Sat, 11 May 2002 19:24:46 -0400 From: joe durusau Organization: Bellsouth.Net Message-ID: <3CDDA83E.E7D4A280@bellsouth.net> References: Anand wrote: > HI All, > anybody knows how to implement clrscr() in vxworks as it seems that > conio.h is not supported in vxworks. > thanks in advance. > regards. > anand. Given that vxWorks doesn't have console by default, I would be surprised at any such thing existing. It would depend on what kind of terminal or terminal emulator you want a clear screen on. Speaking only for myself, Joe Durusau --------------------------- Newsgroups: comp.os.vxworks Subject: Re: routing table Date: 14 May 2002 21:03:35 -0700 From: overtones@excite.com (Strawberry) Organization: http://groups.google.com/ Message-ID: <41440750.0205142003.3ecf8af3@posting.google.com> References: <68c7b7f1.0205140554.7fbca9c1@posting.google.com> vrrajesh@intotoinc.com (rajesh vr) wrote in message news:<68c7b7f1.0205140554.7fbca9c1@posting.google.com>... > Hi, > > I have set of question on routing table > > 1.how do get the default route, >> (i)One of the methods of getting any route(incl. default route) is by routing sockets(AF_ROUTE addr family). For more info you can refer Network Programming by Stevens Vol-II. > > 2.Is there any system call for updating the elements of a > route(metrics) >> I dunno. > Is there any way I can add or Delete Route other than the system > calls found in routeLib ? >> (i) Routing sockets also provide means of adding/deleting routes (ii) ioctl calls with SIOCDELRT & SIOCADDRT can also do the job > > 3.How do I access the Routing Table .(like first route ,next route) >> I dunno > 4. How is the routing table maintained. >> By means of a radix tree with the key being destination & mask (think gateway cannot be used as a differentiating factor) > > 5. m2IpLib mentions some system call for setting and retrieving > routing Table entry.By setting > the MIB-2 routing entry ,will the kernel routing entry be set for > the same route? > Can I assume that routes in MIB-2 routing entry and kernel routing > entry are the same. >> Do let me know about this when u find the answer > > Thanking in advance, > rajesh regards, Strawberry (my fav...) --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Polymorphism and Destructor Date: Wed, 15 May 2002 08:09:27 +0200 From: Alex Vinokur Message-ID: <3CE1FB97.9020601@bigfoot.com> References: <8bb5523.0205121836.5b8b1432@posting.google.com> <8bb5523.0205130754.71df76b0@posting.google.com> <8bb5523.0205141130.64edc264@posting.google.com> Patrick Boulay wrote: > Thanks for you answer, but the real problem seems to be in the kernel. > My boss contact WindRiver and everything suppose to be ok, so he have > to check in the kernel. > > pboulay@hotmail.com (Patrick Boulay) wrote in message news:<8bb5523.0205130754.71df76b0@posting.google.com>... > >>I did it, I didn't show you the implementation here because the code >>would be too long for nothing.. >>I just put cout in the destructors and constructors. >> >>"Alex Vinokur" wrote in message news:... >> >>>"Patrick Boulay" wrote in message news:8bb5523.0205121836.5b8b1432@posting.google.com... >>>| Hello, >>>| >>>| I have a big problem with polymorphism and destructor. See the class >>>| in example bellow, the vxworks crash after I delete the pointer. >>>| >>> >>>You should implement constructors and destructors. >>> >>>| class A >>>| { >>>| public: >>>| A(); >>>| virtual ~A(); >>>| }; >>>| class B:public A >>>| { >>>| public: >>>| B(); >>>| virtual ~B(); >>>| }; >>>| int aFunction() >>>| { >>>| A *ptr; >>>| >>>| ptr = new B; >>>| >>>| delete ptr; >>>| >>>| return 0; >>>| } >>>| >>>| >>>| >>>| Thanks >>>| Patrick >>> ========================================================= 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 : Microsoft Windows 2000 [Version 5.00.2195] Target : VxSim for Windows (VxWorks target simulator) ToolChain : SIMNTgnu ========================================================= Project Type : bootable VxWorks image (custom configured) ========================================================= The configuration above has no problem with similar code. || ###### C++ Code : BEGIN ###### // File s1.cpp #include "iostream.h" #define SHOW_IT \ cout << "[" \ << __FILE__ \ << ", #" \ << __LINE__ \ << "] ---> " \ << __PRETTY_FUNCTION__ \ << endl class A { public: A() {SHOW_IT;} virtual ~A() {SHOW_IT;} }; class B : public A { public: B() {SHOW_IT;} ~B() {SHOW_IT;} }; int foo(void) { A *ptr; ptr = new B; delete ptr; return 0; } || ###### C++ Code : END ######## || ====== Tornado Shell Window : BEGIN ====== - -> foo [D:/s1.cpp, #15] ---> A::A() [D:/s1.cpp, #22] ---> B::B() [D:/s1.cpp, #23] ---> B::~B() [D:/s1.cpp, #16] ---> A::~A() value = 0 = 0x0 || ====== Tornado Shell 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: MTD for 28F640J3A Date: 14 May 2002 22:36:34 -0700 From: alimohd@logiceastern.com (Ali) Organization: http://groups.google.com/ Message-ID: References: hi David is correct that this is CFI device but the cfiscs.c provided with vxworks is for 8-bit inteleaving be sure u need 8-bit or 16-bit interleaving .Infact u can ask ur FAE for newer version of cfiscs.c in which they have supported 16-bit interleaving but it supports only little endian modes ..anyway that u can work out to support it for big endian.. ali "David Masse" wrote in message news:... > This is a CFI device, so you can use the cfiscs.c MTD that is provide with > vxworks. > > David > > "doug dotson" wrote in message > news:v0VD8.19689$A%3.194689@ord-read.news.verio.net... > > Does anyone know of a TFFS MTD for an Intel StrataFlash > > 28F640J3A? > > > > Thanks, > > Doug > > > > > > --------------------------- Newsgroups: comp.os.vxworks Subject: Error: clnttty_rcv: read timed out Date: 11 May 2002 19:07:26 -0700 From: Techman@ematic.com (Thoth) Organization: http://groups.google.com/ Message-ID: Greetings, Here's my setup: Environment: Serial connection on machinea to machineb. Tornado shell on machine a (win2k). Host machine( machine b, NT) has a PCI card with a variant of VxWorks running (IxWorks) When I'm executing my code (its a very long path), I'll get this (Serial@machinea): Sat May 11 19:50:55 2002 Error: clnttty_rcv: read timed out Error: rpccore backend client Timed out Warning: tgtEvtGet: cannot get event. Now, I can put in debug statements to send messages to my tornado shell and, in fact, do this. But, the timeout appears to move if I add/change code. Is there any way to track this down during execution? After the timeout occurs, there's really nothing that can be done. Some of the suggestions I've seen/heard for the cause of timeouts are that a pointer is unitialized and a thread is taking too long to finish something. I dont have support, so I can't use the Windriver database. Any suggestions are appreciated. Thanks. T.M. - ---------------------------------------------------------------------- __&__ / \ | | ^^ (o)(o) C ,---_) | |,___| ___ "Mmmmmm....delicious, serial port timeouts" | \__/ /_____\ /_____/ \ --------------------------- Newsgroups: comp.os.vxworks Subject: [newbie]SIO driver - UART Tx Buffer Full Date: 11 May 2002 20:09:42 -0700 From: bat_kar75@yahoo.com (Karpur) Organization: http://groups.google.com/ Message-ID: <11609fa3.0205111909.529826d0@posting.google.com> Hi, I am writing driver for a uart. The uart works only in interrupt mode. It does not have the transmitter ready interrupt. Instead it has the Tx Buffer Full interrupt. All the uart drivers (including vxworks template SIO driver) that I have seen considers only transmitter ready interrupts and not Tx Buffer Full interrupt. I appreciate any pointers on how the driver should handle transmission. Regards, Karpur --------------------------- Newsgroups: comp.os.vxworks Subject: "RPCExit: extra call" error message Date: Wed, 15 May 2002 08:57:27 +0000 (UTC) From: "Tom Almo" Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Message-ID: hi all after install torando 2.0.1 5 windows with this message jump out. each time i open the tornado this messages come back. did any body know how to slove the problem :-> Tom. - -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Compilation log file Date: Sun, 12 May 2002 08:20:22 +0200 From: "Alex Vinokur" Organization: Scopus Message-ID: References: "Andray Kaganovsky" wrote in message news:Xns920ADE78B662Aandrayk@216.254.136.26... | "Alex Vinokur" wrote in news:abdho1$h4l0l$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) | >========================================================= | > | > I would like the compilation results to be written | > not only to Build Output Window, | > but to some compilation log file as well. | > | > Is it possible to do it? | > | > [snip] | > | | [AndrayK]. Did you try building from DOS shell ? You'll need to | execute /host/x86-win32/bin/torvars.bat before you | invoke make .. | | regards, Andray 1. Here is /host/x86-win32/bin/torvars.bat in my system : ============ File: torvars.bat ============ rem Command line build environments set WIND_HOST_TYPE=x86-win32 set WIND_BASE=D:\sys2\Tornado set PATH=%WIND_BASE%\host\%WIND_HOST_TYPE%\bin;%PATH% ==================================== 2. Here is results of torvars.bat execution. ============ Execution: torvars.bat ============ %torvars.bat D:\SYS2\TORNADO\HOST\X86-WI~1\BIN>rem Command line build environments D:\SYS2\TORNADO\HOST\X86-WI~1\BIN>set WIND_HOST_TYPE=x86-win32 Out of environment space D:\SYS2\TORNADO\HOST\X86-WI~1\BIN>set WIND_BASE=D:\sys2\Tornado Out of environment space D:\SYS2\TORNADO\HOST\X86-WI~1\BIN>set PATH=\host\\bin;C:\PROGRA~1\Far;C:\DJGPP\bin; D:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;D:\app1\araxi D:\SYS2\TORNADO\HOST\