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

Porting linux to vxworks & vxworks to linux Porting

664 views
Skip to first unread message

karthik bala guru

unread,
Feb 18, 2005, 2:11:05 AM2/18/05
to
Hi ,
Does anyone here have information to help/speed up porting from Linux to
VxWorks and vice versa.

Surely, some should have come across the situation and i would
like to get your tips/links/ideas regarding this.

Thanks & Regards,
karthik bala guru

Bill Pringlemeir

unread,
Feb 18, 2005, 9:48:59 AM2/18/05
to
On 18 Feb 2005, bluek...@yahoo.com wrote:
> Hi , Does anyone here have information to help/speed up porting from
> Linux to VxWorks and vice versa.

> Surely, some should have come across the situation and i would
> like to get your tips/links/ideas regarding this.

Posting once is probably enough...

There is a v2linux package by MontaVista. Googling v2linux currently
turns up, "http://legacy2linux.sourceforge.net/v2linux.html". This is
also useful if you develop/host vxWorks on a *nix machine. Instead of
using the simulator, you can compile a native application using this
compatibility layer.

Not sure so much about going from Linux to vxWorks. There is a lot of
functionality available in the bigger OSs that is not available in
vxWorks. For instance, "fork", "pthreads", "mmap", etc. Genearally,
you can steal routines from Linux (like libraries), but it is
difficult to take an application.

fwiw,
Bill Pringlemeir.

--
My kid had sex with your honor student. - Bumper Sticker

vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"

s.subbarayan

unread,
Feb 21, 2005, 12:06:08 AM2/21/05
to
Hi,
For porting there are 3 approaches which are common in the
industry.


1)Build an abstraction layer above your OS and make your application
sit over this abstraction layer.So your application will be
interacting with the abstraction layer and it will inturn call your OS
layer.The advantage is you can change the OS when ever you feel
like,maintaining the sanity of the application with zero effort
required to port the application.


2)The second way will be to make your application with posix calls
instead of normal OS APIs.Vxworks follows POSIX 1003.1b standard and
if you code linux to this standard you will get portable
application.But,the disadvantage AFAIK with this approach is this does
not guarantee real time performance,though I am not very much sure of
this.


3)Purchase any commercially available porting kit as stated by Bill
and use the kit to port.

Finally if you are looking for tips look into
www.bluedonkey.org-->go into vxworks cookbook site--->check for
porting link.
http://www.bluedonkey.org/cgi-bin/twiki/bin/view/Books/MigratingVxWorksToLinux

This will provide you some tips on porting,though its for moving from
vxworks to linux,I believe you should be able to work out porting from
linux to vxworks in a similar manner.
Hope this helps,
Regards,
s.subbarayan


bluek...@yahoo.com (karthik bala guru) wrote in message news:<af94616b.05021...@posting.google.com>...

bluek...@yahoo.com

unread,
Feb 21, 2005, 2:03:43 AM2/21/05
to
Actually, I am porting a protocol stack from arm-linux-gcc to vxworks.
I knew the work is more w.r.t linux to vxworks and
less when it is from vxworks to linux.
anyhow, thanx for ur ideas,

karthik bala guru

bluek...@yahoo.com

unread,
Feb 21, 2005, 1:54:55 AM2/21/05
to
Hi,
Ideas are nice and fine. :) Thanks to JohnGordon's effort and Subbrayan
for letting me know the link. :) :)

The link bluedonkey.org has good contents section, but the actual
section is found to be empty(that is yet to be developed, only some
part of the sections have been found to be written. Other sections have
to be written ). :(

It would be really very nice and kind of you, if someone could give me
the original link or the 'bluedonkey.org link' in a completed form. :)

http://www.bluedonkey.org/cgi-bin/twiki/bin/view/Books/VxWorksToLinuxGettingStarted
- I cannot find anything in this section - this section could be of
great help to anyone - So, i would like to request JohnGordon to do it
for the opensource community - OR, kindly give me the completed good
link regarding the porting.

I did not get JohnGordon's mail ID, else i would have mailed him for
the completed pdf / doc/ link .

:) :) :)
karthik bala guru

bluek...@yahoo.com

unread,
Feb 21, 2005, 5:15:23 AM2/21/05
to
Hi,
Got his ID,
john_...@yahoo.com is Mr.JohnGordon mail ID.
Anyhow,
could someone give me some good-link to download the VxWorksCookBook
and VxWorksToLinux ??

Thanx and Regards, :)
karthik bala guru

Bill Pringlemeir

unread,
Feb 21, 2005, 11:50:44 AM2/21/05
to

On comp.os.linux.embedded, bluek...@yahoo.com wrote:

> VxWorks-to-Linux migration kits are offered by a number of companies,
> including MapuSoft, LynuxWorks, MontaVista, and TimeSys.

> But, y is there no such thing like,
> Linux-to-VxWorks Migration Kits ????

> What is the difficulty in providing such a migration kit ?
> where is the problem actually ?

> if there is a linux-to-vxworks migration kit available in any website
> or shop, do kindly let me know.

Glad you already knew the answer. Ker-plunk.

--
Life, don't talk to me about life. - Marvin the robot

vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html"

john_...@yahoo.com

unread,
Feb 25, 2005, 4:32:25 AM2/25/05
to
Hello,

> - I cannot find anything in this section - this section could be of
> great help to anyone - So, i would like to request JohnGordon to do
it
> for the opensource community - OR, kindly give me the completed good
> link regarding the porting.

You have the link to all there is at the moment. I am currently swamped
with work for my current day job, so don't have much time to fill in
stuff in either of the two books (or even reply here as often as I used
to). I do have some more raw materials for the Cookbook waiting to be
written, but not so much for the porting guide.

TTFN,
John...

=====
Contribute to the VxWorks Cookbook at: http://books.bluedonkey.org/

bluek...@yahoo.com

unread,
Feb 25, 2005, 10:21:35 PM2/25/05
to
Hello John,
Thanx for ur replly. Hpe, u finish ur works quickly and comeup with
those excellent stuffs.
And finally,dont forget post the link here for that !!

Cheeeeeeeeeers !!
karthik bala guru

0 new messages