Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Using mpcsec driver without io-pkt: (6 Items)
   
Using mpcsec driver without io-pkt  
Hello!



I would like to make use of the mpcsec driver, but I'm using QNX 6.3.0SP3 and therefore not the latest io-pkt version.

Is there any possibility to build the driver without building the whole packet?

Thank you very much in advance.



Markus

********************************************
MAN Diesel SE
Sitz der Gesellschaft: Augsburg
Registergericht: Amtsgericht Augsburg, HRB 22056
Vorsitzender des Aufsichtsrats: Håkan Samuelsson
Vorstand: Dr.-Ing. Georg Pachta-Reyhofen (Vorsitzender), Jan Gurander, Dr.-Ing. Stefan Spindler, Dr.-Ing. Stephan 
Timmermann
This e-mail (including any attachments) is confidential and may be privileged. If you have received it by mistake, 
please notify the sender by e-mail and delete it from your system.
Any unauthorised use or dissemination of this e-mail or its contents in whole or in part is strictly prohibited. Please 
note that e-mails are susceptible to change.
MAN Diesel SE (including its group companies) shall not be liable for the improper or incomplete transmission of the 
information contained in this communication nor for any delay in its receipt.
MAN Diesel SE (or its group companies) does not guarantee that the integrity of this communication has been maintained 
nor that this communication is free of viruses, interceptions or interference.
********************************************
Re: Using mpcsec driver without io-pkt  
> Is there any possibility to build the driver without building the whole packet
> ?
> 

Following is just meant as a starting point to try and to adapt , so no warranties ;-) :
 
http://community.qnx.com/sf/go/wiki1653?nav=1

[snip]
How do I build drivers under 6.4.0 without downloading all of the io-pkt source base?

We've changed the driver building under 6.4.1 so that headers that were previously available only as part of the source 
package are now installed as part of the system headers. These headers will be included in an upcoming 6.4.0.1 
maintenance patch. In the interim, the appropriate headers are available in the attachment at the bottom of this page.

Under windows, run bash to get a bash shell first. On linux and self-hosted, make sure that you've got root access

 
cd $(QNX_TARGET)/usr/include

 
gzip -d _path_to_/iopkt_build_headers.tar.gz

tar -xvf _path_to/iopkt_build_headers.tar


(Under bash with windows, if you want to specify the full path including the disk name, use /c/ to prefix the directory 
name)


These headers should be installed under your QNX_TARGET/usr/include directory (you'll end up with a QNX_TARGET/usr/
include/io-pkt subdirectory containing all of the header files).

 

A build directory can be created by placing the Makefile and prodroot.mk files from trunk/sys/dev_qnx into a top level 
directory and adding driver sub-directories below it as follows:

 

top_dir/

    Makefile

    prodroot.mk

    driver_1/

         driver_1 source, Makefile, cpu variants, etc.

    driver_2/

         driver_2 source, Makefile, cpu variants, etc.



Attachments:

iopkt_build_headers.tar.gz [Drivers_wiki_page/iopkt_build_headers.tar.gz]

[snap]


Hope this helps,
Jeevan

Re: Using mpcsec driver without io-pkt  
On Wed, Sep 09, 2009 at 03:43:04AM -0400, Jeevan Mathew wrote:
> 
> > Is there any possibility to build the driver without building the whole packet
> > ?
> > 
> 
> Following is just meant as a starting point to try and to adapt , so no warranties ;-) :
>  
> http://community.qnx.com/sf/go/wiki1653?nav=1
> 

He'll still end up with an io-pkt driver though
that won't work under io-net.

Regards,

-seanb
Re: Using mpcsec driver without io-pkt  
> On Wed, Sep 09, 2009 at 03:43:04AM -0400, Jeevan Mathew wrote:
> > 
> > > Is there any possibility to build the driver without building the whole 
> packet
> > > ?
> > > 
> > 
> > Following is just meant as a starting point to try and to adapt , so no 
> warranties ;-) :
> >  
> > http://community.qnx.com/sf/go/wiki1653?nav=1
> > 
> 
> He'll still end up with an io-pkt driver though
> that won't work under io-net.
> 
> Regards,
> 
> -seanb

Ya, why not running io-pkt under QNX630 unthinkable ?

Jeevan

Re: Using mpcsec driver without io-pkt  
On Wed, Sep 09, 2009 at 09:09:18AM -0400, Jeevan Mathew wrote:
> > On Wed, Sep 09, 2009 at 03:43:04AM -0400, Jeevan Mathew wrote:
> > > 
> > > > Is there any possibility to build the driver without building the whole 
> > packet
> > > > ?
> > > > 
> > > 
> > > Following is just meant as a starting point to try and to adapt , so no 
> > warranties ;-) :
> > >  
> > > http://community.qnx.com/sf/go/wiki1653?nav=1
> > > 
> > 
> > He'll still end up with an io-pkt driver though
> > that won't work under io-net.
> > 
> > Regards,
> > 
> > -seanb
> 
> Ya, why not running io-pkt under QNX630 unthinkable ?
> 
> Jeevan
> 

It's probably possible (I've never tried it); but from
his first post I got the impression he was stuck at
io-net (I could be wrong ...).

-seanb
Re: Using mpcsec driver without io-pkt  
Yes, unfortunately there's currently too much involved in switching to io-pkt.
But nevertheless thanks for all your hints.

My idea was to use the mpcsec hardware encryption for OpenSSL, similar to what a colleague has already tried before, but
 without building the whole packet:
http://community.qnx.com/sf/go/projects.networking/discussion.builds.topc2097
Instead, I would try to build a stand-alone library of OpenSSL which makes direct use of the mpcsec.

But I gradually reckon that adapting the OpenSSL sources and "cutting" the mpcsec out of the io-pkt requires too much 
effort to be realistically feasible if you're not a QNX PPC SEC OpenSSL guru...

Just out of curiousness:
Wouldn't it be in general desirable to have OpenSSL running on ppc hardware with SEC support, doing real hardware 
encryption? Has anyone tried that before?

Markus