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

Re: [Xen-devel] Debugging Dom0 on OMAP5

On Sun, Oct 20, 2013 at 12:35 PM, Vaibhav Bedia <vaibhav.bedia@xxxxxxxxx> wrote:
> On Sun, Oct 20, 2013 at 12:02 PM, Vaibhav Bedia <vaibhav.bedia@xxxxxxxxx> 
> wrote:
>> Hi Ian,
>> On Sun, Oct 20, 2013 at 11:42 AM, Ian Campbell <ian.campbell@xxxxxxxxxx> 
>> wrote:
>>> On Sun, 2013-10-20 at 10:01 -0400, Vaibhav Bedia wrote:
>>>> MODULE[1]: 00000000a2000000 - 00000000a200b000
>>>> MODULE[2]: 00000000a0000000 - 00000000a0a00000
>>> You don't seem to have given dom0 any kind of command line. Try
>>> "console=hvc0". You have the Xen options, including the hvc console,
>>> enabled in your kernel I hope.
>> I am trying to set xen,dom0-bootargs using the fdt command of U-Boot.
>> I did have to fight
>> the double quotes that fdt set was putting in but i managed to fix that.
>> I did enable the various Xen options including the hvc console in the kernel.
>> Just before invoking xen, here's what fdt list shows:
>> U-Boot# fdt list /chosen
>> chosen {
>>         xen,dom0-bootargs = "console=hvc0,115200n8 vram=16M
>> root=/dev/ram initrd=0x83000000,16M ramdisk_size=65536 rw
>> earlyprintk=xen";
>>         xen,xen-bootargs = "dom0_mem=256M console=dtuart
>> dtuart=serial2 earlyprintk=xen";
>>         modules {
>>         };
>> };
>> U-Boot#
>> Does this look right?
> Argh... i should have not ignored the timer running @ 0Hz message for so long.
> With that fixed in DTB i can see Dom0 crash now. And somehow that change made
> the other Xen keyhandlers work again!


I have managed to get Dom0 reach the point where it tries to mount a filesystem
(ramdisk in my case) and then crashes.

Looking at the logs i noticed that the initrd is located outside the
phys area that kernel
is aware of and hence getting ignored.

[0.000000] INITRD: 0x83000000+0x01000000 is not a memory region -
disabling initrd

In the bootargs i have specified the initrd to be located to
0x83000000 and that obviously
isn't working. What is the right way to specify the initrd location to
Dom0? Does it depend
on where Xen relocates the initrd?

The following is what Xen prints during boot.
(XEN) Loading zImage from 00000000a0000000 to 00000000b7a00000-00000000b7e055e0
(XEN) Loading dom0 initrd from 00000000a4000000 to
(XEN) Loading dom0 DTB to 0x00000000b8000000-0x00000000b800c46b


Xen-devel mailing list



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