Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DomU I/O and Communication
You need to add the following lines to your config file to tell the toolstack which devices in the device tree to passthrough and the io mappings to create for them.

dtdev = [ "reset_axi@a0000000", "mwmr_controller_test@a0010000", "mwmr_controller_test@a0020000" ]
iomem = [ "a0000,16", "a0010,16", "a0020,16" ]


Thank you for the solution.
There is still one issue in the iomem allocation. So I got the error below:
Quote:Parsing config from /etc/xen/petalinux-guest.cfg
libxl: error: libxl_create.c:1301:domcreate_launch_dm: failed give dom1 access to iomem range a0020-a0035: Operation not permitted
libxl: error: libxl.c:1575:libxl__destroy_domid: non-existant domain 1
libxl: error: libxl.c:1534:domain_destroy_callback: unable to destroy guest with domid 1
libxl: error: libxl.c:1463:domain_destroy_cb: destruction of domain 1 failed
I suppose the address from 0xa0035 is used by xen?
So I did a workaround by changing the address range of my IP to 4KB and it works with
dtdev = [ "reset_axi@a0000000", "mwmr_controller_test@a0001000", "mwmr_controller_test@a0002000" ]
iomem = [ "a0000,1", "a0001,1", "a0002,1" ]

Thank you.


Forum Jump:

Users browsing this thread: 1 Guest(s)