xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Question about DTB in Mini-OS on ARM
@ 2013-06-04  3:24 Chen Baozi
  2013-06-04  8:19 ` Ian Campbell
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Baozi @ 2013-06-04  3:24 UTC (permalink / raw)
  To: ian.campbell; +Cc: xen-arm, stefano.stabellini, samuel.thibault, xen-devel

Hi Ian,

I've turned to arm32 porting of Mini-OS as you suggested. Right now, I've
finished most of entry header, which setups an initial page table, saves
DTB pointer (from r2 which arm booting protocol defines), setups the stack
before jumping to start_kernel, and includes the exception's entry.

At this stage, I could get the DTB's address in arch_init(), parse it and
translate it to fill start_info structure Mini-OS used. In order to
implement this logic, I was seeking and reading DTB's related codes of
arm guest creation and found that the DTB used in domU in arm is thought
to be appended with the guest kernel:

	/*
	 * ATAGS/DTB: We currently require that the guest kernel to be
	 * using CONFIG_ARM_APPENDED_DTB. Ensure that r2 does not look
	 * like a valid pointer to a set of ATAGS or a DTB.
	 */

In this case, I cannot get the DTB's phys address to fill start_info from
r2 currently. Does it means we need to wrap the mini-os kernel together with
a DTB?

Any ideas?

Thanks.

	Baozi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-04  8:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-04  3:24 Question about DTB in Mini-OS on ARM Chen Baozi
2013-06-04  8:19 ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).