How can I use a specific ram address?

Christian Helmuth christian.helmuth at ...1...
Tue Mar 18 15:54:59 CET 2014


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




More information about the users mailing list