Re: plugin question

2016-06-09 Thread Emery
It could be that it tries to open an IPv6 socket, I believe I've seen this
error in that case.

Emery

On Thu, Jun 09, 2016 at 02:14:21PM -0700, Matt Brown wrote:
> Josef,
> 
> I tried adding the library to the target.mk of my application and it didn't
> work. I noticed that even though I added the library it wasn't addressed in
> the build output. Just to make sure I'm doing this correctly in my target.mk
> I added:
> 
> LIB += libc_lwip_nic_dhcp
> 
> *QT5 stuff*
> 
> I feel like maybe I'm missing a prepare_port call but the make script is
> telling me I am.
> 
> Thanks for the help,
> 
> -Matt
> On Thu, Jun 9, 2016 at 1:44 PM, Josef Söntgen <
> josef.soent...@genode-labs.com> wrote:
> 
> > Hello Matt,
> >
> > * Matt Brown  [2016-06-09 11:19:11 -0700]:
> > > I've been playing around with many of the examples you've provided and I
> > > saw that you guys have included qt support so I played with most of the
> > > examples. I then tried porting over a network messaging app that I wrote
> > a
> > > while ago. I got it to load but when I try to establish a connection the
> > > log says "no plugin found for socket()". I looked at the arora target and
> > > run files to see if there was anything NIC/socket related that I should
> > add
> > > and I found "set feature(NIC) 1" but that didn't work.
> > >
> > > Is there something I'm missing?
> >
> > You have to link your component against a libc plugin that provides the
> > socket API, e.g., libc_lwip_nic_dhcp or libc_lxip. If you take a closer
> > look at Arora's target.mk file you will see that the lwip plugin is
> > indeed added to the LIBS variable.
> >
> >
> > Regards
> > Josef
> >
> > --
> > Josef Söntgen
> > Genode Labs
> >
> > http://www.genode-labs.com/ · http://genode.org/
> >
> >
> > --
> > What NetFlow Analyzer can do for you? Monitors network bandwidth and
> > traffic
> > patterns at an interface-level. Reveals which users, apps, and protocols
> > are
> > consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> > J-Flow, sFlow and other flows. Make informed decisions using capacity
> > planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> > ___
> > genode-main mailing list
> > genode-main@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/genode-main
> >

> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are 
> consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
> J-Flow, sFlow and other flows. Make informed decisions using capacity 
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e

> ___
> genode-main mailing list
> genode-main@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main



signature.asc
Description: PGP signature
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main


Re: plugin question

2016-06-09 Thread Matt Brown
Josef,

I tried adding the library to the target.mk of my application and it didn't
work. I noticed that even though I added the library it wasn't addressed in
the build output. Just to make sure I'm doing this correctly in my target.mk
I added:

LIB += libc_lwip_nic_dhcp

*QT5 stuff*

I feel like maybe I'm missing a prepare_port call but the make script is
telling me I am.

Thanks for the help,

-Matt
On Thu, Jun 9, 2016 at 1:44 PM, Josef Söntgen <
josef.soent...@genode-labs.com> wrote:

> Hello Matt,
>
> * Matt Brown  [2016-06-09 11:19:11 -0700]:
> > I've been playing around with many of the examples you've provided and I
> > saw that you guys have included qt support so I played with most of the
> > examples. I then tried porting over a network messaging app that I wrote
> a
> > while ago. I got it to load but when I try to establish a connection the
> > log says "no plugin found for socket()". I looked at the arora target and
> > run files to see if there was anything NIC/socket related that I should
> add
> > and I found "set feature(NIC) 1" but that didn't work.
> >
> > Is there something I'm missing?
>
> You have to link your component against a libc plugin that provides the
> socket API, e.g., libc_lwip_nic_dhcp or libc_lxip. If you take a closer
> look at Arora's target.mk file you will see that the lwip plugin is
> indeed added to the LIBS variable.
>
>
> Regards
> Josef
>
> --
> Josef Söntgen
> Genode Labs
>
> http://www.genode-labs.com/ · http://genode.org/
>
>
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> ___
> genode-main mailing list
> genode-main@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main


Re: plugin question

2016-06-09 Thread Josef Söntgen
Hello Matt,

* Matt Brown  [2016-06-09 11:19:11 -0700]:
> I've been playing around with many of the examples you've provided and I
> saw that you guys have included qt support so I played with most of the
> examples. I then tried porting over a network messaging app that I wrote a
> while ago. I got it to load but when I try to establish a connection the
> log says "no plugin found for socket()". I looked at the arora target and
> run files to see if there was anything NIC/socket related that I should add
> and I found "set feature(NIC) 1" but that didn't work.
> 
> Is there something I'm missing?

You have to link your component against a libc plugin that provides the
socket API, e.g., libc_lwip_nic_dhcp or libc_lxip. If you take a closer
look at Arora's target.mk file you will see that the lwip plugin is
indeed added to the LIBS variable.


Regards
Josef

-- 
Josef Söntgen
Genode Labs

http://www.genode-labs.com/ · http://genode.org/

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main


plugin question

2016-06-09 Thread Matt Brown
Hi,

I'm pretty new to Genode so this is probably going to sound like a trivial
question:

I've been playing around with many of the examples you've provided and I
saw that you guys have included qt support so I played with most of the
examples. I then tried porting over a network messaging app that I wrote a
while ago. I got it to load but when I try to establish a connection the
log says "no plugin found for socket()". I looked at the arora target and
run files to see if there was anything NIC/socket related that I should add
and I found "set feature(NIC) 1" but that didn't work.

Is there something I'm missing?

My app is trying to make a connecting using the QTcpSocket library. Any
help would be greatly appreciated.

Thanks

-Matt
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main


[L4 Android - i.MX53 QSB]

2016-06-09 Thread João Rocheteau Ramos
Hi,

I wanted to run the L4 Android version (normal world), alongside Genode (secure 
world) in the i.MX53 QSB board.

I was trying to do something similar to the tz_vmm demo, but following the 
instructions given in [1], but so far have not succeeded.

Is there a way to run this custom version of Android in the i.MX53 QSB?

If not, is it possible to use the Adeneo Android version, for this board, using 
the adapted linux kernel of [2]?

I'm not interested in a secure framebuffer, so I may declare the framebuffer as 
insecure, for this to work.


[1] - https://github.com/genodelabs/genode/tree/master/repos/ports-foc

[2] - https://github.com/skalk/linux/tree/imx53-tz

Best Regards,
João Ramos
  --
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main


Re: a device driver

2016-06-09 Thread Christian Helmuth
Hello John,

On Wed, Jun 08, 2016 at 11:21:57PM +0200, John David wrote:
> I am running Genode on i.mx53 QSB and was wondering to use a fingerprint
> scanner such as Adafruit finger print reader to create a virtual
> fingerprint. Is there any a device driver and library in Genode for a
> fingerprint scanner? Could you please tell me how to use it? Thanks in
> advance.

Please provide more information about the device you like to connect
to the i.MX53 QSB. Is it a USB device or connected by other means? How
does Linux drive the hardware device? Does it just need a low-level
driver or are additional libaries required?

Regards
-- 
Christian Helmuth
Genode Labs

http://www.genode-labs.com/ · http://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main


Re: [i.MX53 QSB] Inter-component Shared Memory

2016-06-09 Thread Christian Helmuth
Hello Tiago,

nice to hear that you follow the component approach.

On Mon, Jun 06, 2016 at 04:54:46PM +0100, Tiago Brito wrote:
> As said in previous posts I have a system call which is responsible for the
> SMC between the normal world and tz_vmm. I can successfully allocate memory
> in the normal world and access it in the secure world. Thus I can send
> images to the secure world (which is what I want). Then in the secure world
> I have a new component which uses the libpng port to process images.

This component runs in its own address space and, thereby, does not
share memory mappings with tz_vmm after its creation.

> TZ_VMM and the libpng component talk using the inter-component RPC. In
> order to access the image inside the libpng component I send Genode::addr_t
> in the RPC function call argument. This Genode::addr_t has the physicall
> address of the image which was loaded to memory from Linux.
> 
> I can verify that the addr_t variable has the correct value inside the
> libpng component, but when I try to access it this is the output:
> 
> [init -> tz_vmm] image addr: 816ac000
> [init -> tz_vmm] RPC call: png_sig_cmp
> [init -> libpng_server] image addr: 816ac000
> no RM attachment (faulter 27213c with IP 700101d4 attempts to read from
> address 816ac000)
> init -> libpng_server -> ep: unresolved pagefault at ip=700101d4
> sp=e01fee30 fault address=816ac000
> core -> pager_ep: cannot submit unknown signal context
> 
> Since this is a memory block which was allocated by Linux, and since I can
> manipulate it fine when inside tz_vmm, shouldn't I be able to manipulate
> this same memory region without problems?

As components use virtual memory (based on page tables) memory is
addressed by virtual addresses. I assume that you use some facility in
tz_vmm to calculate the virtual-memory mapping of 0x816ac000 and
access the PNG in your original implementation. Now, you separated
tz_vmm and your libpng_server into two components and, so, the memory
mappings of tz_vmm are not directly accessible in libpng_server.
Passing the physical address to libpng_server does not help as this
component will not be allowed to create a virtual memory mapping to
this portion of the RAM - it is exclusively accessible in tz_vmm.

I suggest you establish a shared-memory dataspace between
libpng_server and tz_vmm big enough to transfer the PNG images. tz_vmm
can then copy the PNG data from (Linux) guest memory into the shared
dataspace where it is accessible by libpng_server. For an example,
please have a look at Terminal::Session and the Genode Foundations
book Section 3.6.3. and 3.6.5.

Regards
-- 
Christian Helmuth
Genode Labs

http://www.genode-labs.com/ · http://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main