Skip navigation.
Home
The QNX Community Portal

View topic - How to use mig4nto tool

How to use mig4nto tool

For discussion of realtime and/or embedded programming.

How to use mig4nto tool

Postby garyritu » Fri Oct 30, 2009 11:56 am

Hi All,
I need to port a QNX 4.0 driver code to QNX Neutrino and i did some googling for this porting work. I have downloaded the migration kit with mig4nto.pdf. Kit includes the source code for migration and documents.
After putting the mig4nto utility in QNX neutrino at path /root and gave following command

mig4nto -o /nto/src *.c
But it prompt mig4nto "/bin/sh: mig4nto: cannot execute - No such file or directory"
How to use the mig4nto utility ???
garyritu
Active Member
 
Posts: 58
Joined: Fri May 22, 2009 7:09 am

RE: How to use mig4nto tool

Postby mario » Fri Oct 30, 2009 2:23 pm

/root is not by default in the path.

Try to invoke it by doing /root/mig4nto.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: How to use mig4nto tool

Postby maschoen » Fri Oct 30, 2009 3:30 pm

You didn't say what kind of driver. I don't think the migration kit will be much help. It may point out some exchangable calls but not much more. Your hardware code should be salvagable. The more separate from the OS code the better. Beyond that you have a few main things to consider.

1) The rules for hardware I/O are different
2) Allocating shared DMA memory is different
3) The OS structure is very similar, but you have much better support in 6, which you will have to learn about
4) Do you want to go multi-threaded? The support is there to make this fairly easy, and there are some advantages.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Migration utility is attached.

Postby garyritu » Mon Nov 02, 2009 3:10 pm

Hi,
I have tried to use the /root/mig4ntos. But result is same. I have attached a sample QNX 4.25 *.c file and migration utility. If possible, please try to migrate at your end.
I am in doubt, mig4nto works only in QNX 4 OS.?? Please clearify. Is it working in QNX neutrino ??

@maschoen: I will use the R. M in QNX neutrino and my h/w don't use DMA and driver is ISA bus based with multi thread support.
Attachments
Migration.zip
QNX 4.25 single file code and mig4nto utility
(30.91 KiB) Downloaded 161 times
garyritu
Active Member
 
Posts: 58
Joined: Fri May 22, 2009 7:09 am

RE: Migration utility is attached.

Postby ianc » Mon Nov 02, 2009 10:56 pm

It is my understanding that the mig4ntos utility is a QNX4 app. It will not run in neutrino.
ianc
Active Member
 
Posts: 80
Joined: Wed Jan 22, 2003 6:04 am
Location: Bendigo, Australia


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 2 guests