Hello,

On Tue, Mar 18, 2014 at 09:22:20PM +0800, 吴若凡 wrote:
> I am now facing a problem that I want to use a specific ram address [0x0,
> 0x2000000), because there is a hareware on board using it, I have to write
> data to this specific ram region and my hareware will read this region to
> work.
> 
> I have moved foc kernel address to 0x2000000, and also used
> Attach_io_mem_dataspace to reflect physical address [0x0, 0x2000000) in my
> driver, but I failed to drive my hareware.
> I guess maybe the data haven't been written to this ram region correctly.
> Is  Attach_io_mem_dataspace suitable for this case? If NOT, how can I do ?

Genode depends on sigma0 to detect RAM regions. Sigma0 itself depends
on bootstrap's information. So, I think you have to figure out how to
configure bootstrap to exclude (or better to _not_ include) [0x0,
0x2000000) from RAM. Afterwards, Attached_io_mem_dataspace should work
as expected. Do you have a serial log of bootstrap's boot messages?

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

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Genode-main mailing list
Genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main

Reply via email to