[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] Regarding Mini-os boot up on xen arm

  • To: "minios-devel@xxxxxxxxxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Misra Pankaj Kumar (RBEI/EEA2)" <Pankaj.Kumar@xxxxxxxxxxxx>
  • Date: Mon, 21 Dec 2015 12:01:53 +0000
  • Accept-language: en-US, en-SG
  • Delivery-date: Mon, 21 Dec 2015 12:02:00 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AdE5j8h9uOCxFxD/QHyLYTbujevIL///igmA//903oCAAJRVgP/67KqA
  • Thread-topic: [Minios-devel] Regarding Mini-os boot up on xen arm

>-----UrsprÃngliche Nachricht-----
>Von: Ian Campbell [mailto:ian.campbell@xxxxxxxxxx] 
>Gesendet: Freitag, 18. Dezember 2015 15:01
>An: Misra Pankaj Kumar (RBEI/EEA2) <Pankaj.Kumar@xxxxxxxxxxxx>; 
>Betreff: Re: [Minios-devel] Regarding Mini-os boot up on xen arm
>On Fri, 2015-12-18 at 13:48 +0000, Misra Pankaj Kumar (RBEI/EEA2) wrote: 
>Please don't top post.
>> Thanks Ian for quick response.
>> My hardware is odroid xu4, so here it should be r2 register populated 
>> by Xen.
>> Can you please point me to the code which passes this address to r2. 
>SeeÂtools/libxc/xc_dom_arm.c (hopefully you tried using grep etc to answer 
>before asking).

Here I found a comment in this file, before updating r2 register, as :

            /* 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.
            ctxt->user_regs.r2_usr = dom->devicetree_blob ?
                dom->devicetree_seg.vstart : 0xffffffff;

Does it mean that DTB pointer is dummy ?

Value loaded in r2 here is 48000000.
If we subtract offset 3fc00000 from it we get 08400000, which is the physical 
address of DTB.
It fails while dereferencing this pointer.
Do we need to add this address in physical memory map before using it?

>> As its failing in my case
>> (d3) Virtual -> physical offset = 3fc00000
>> (d3) Checking DTB at 08400000...
>> (d3) Fault handler at 004081ac called (prefetch_abort)
>Which version of mini-os are you using? IIRC not all of the patches have been 
>applied toÂgit://xenbits.xen.org/mini-os.git. 
I am using following repo :
where are the patches available?
Minios-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.