Skip to contentSkip to conversation

Xen On Cubieboard2 is stuck in "Starting kernel ..."

DISCUSSION duqi 4 participants 6 messages Apr 8, 2014

lore
Share & tools
lore

duqi

author
#0 lore raw

Hi,

We will have tested the stand alone dtb load progress according this wiki:http://wiki.xenproject.org/wiki?title=Xen_ARM_with_Virtualization_Extensions/Allwinner.

For simplicity, I compiled ramdisk into kernel image.

The Xen version is xen4.4.0 release.
I typed the below command in u-boot,but the Xen was stuck in "Starting kernel...."

Could you give me some advice? Thank you very much.

(1)Here is the command I typed:

setenv kernel_addr_r  0x7f600000
setenv fdt_addr       0x7ec00000
setenv xen_addr_r     0x7ea00000

fatload mmc 0 ${xen_addr_r} /boot/xen
fatload mmc 0 ${fdt_addr} /boot/sun7i-a20-cubieboard2.dtb fatload mmc 0 ${kernel_addr_r} /boot/zImage

setenv fdt_high 0xffffffff
setenv bootargs "dom0_mem=128M sync_console console=dtuart dtuart=/soc@01c00000/serial@01c28000"

fdt addr ${fdt_addr} 0x40000
fdt resize
fdt chosen
fdt set /chosen \#address-cells <1>
fdt set /chosen \#size-cells <1>
fdt mknod /chosen module@0
fdt set /chosen/module@0 compatible "xen,linux-zimage" "xen,multiboot-module"
fdt set /chosen/module@0 reg <${kernel_addr_r} 0xf00000>
fdt set /chosen/module@0 xen,dom0-bootargs "console=hvc0,115200n8 debug ignore_loglevel rw rootwait earlyprintk=xen clk_ignore_unused init=/init"

bootz ${xen_addr_r} - ${fdt_addr}

(2) Here is the debug information:
Kernel image @ 0x7ea00000 [ 0x000000 - 0x0cf700 ]
## Flattened Device Tree blob at 7ec00000
Booting using the fdt blob at 0x7ec00000
reserving fdt memory region: addr=7ec00000 size=4000 Using Device Tree in place at 7ec00000, end 7ec06fff
WARNING: ignoring attempt to set core boot address 7ff88454 on core -1
WARNING: Not kicking secondary CPUs

Starting kernel ...

duqi.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw

Hi, duqi

Quoted 7 lines
Quoted 1 line
Quoted 1 line

duqi <[email protected]> wrote:

Hi,

We will have tested the stand alone dtb load progress according this wiki:http://wiki.xenproject.org/wiki?title=Xen_ARM_with_Virtualization_Extens ions/Allwinner.

Quoted 5 lines

For simplicity, I compiled ramdisk into kernel image.

The Xen version is xen4.4.0 release.
I typed the below command in u-boot,but the Xen was stuck in "Starting kernel...."

there should be some advise for debugging kernel in mailing list archives. anyway, you could reference:
http://wiki.xenproject.org/wiki?title=Xen_ARM_with_Virtualization_Extensions/Allwinner#DomU_kernel_debug

regards

bamvor

Quoted 38 lines

Could you give me some advice? Thank you very much.

(1)Here is the command I typed:

setenv kernel_addr_r  0x7f600000 
setenv fdt_addr       0x7ec00000 
setenv xen_addr_r     0x7ea00000 

fatload mmc 0 ${xen_addr_r} /boot/xen
fatload mmc 0 ${fdt_addr} /boot/sun7i-a20-cubieboard2.dtb fatload mmc 0 ${kernel_addr_r} /boot/zImage

setenv fdt_high 0xffffffff
setenv bootargs "dom0_mem=128M sync_console console=dtuart dtuart=/soc@01c00000/serial@01c28000"

fdt addr ${fdt_addr} 0x40000
fdt resize
fdt chosen
fdt set /chosen \#address-cells <1>
fdt set /chosen \#size-cells <1>
fdt mknod /chosen module@0
fdt set /chosen/module@0 compatible "xen,linux-zimage" "xen,multiboot-module" fdt set /chosen/module@0 reg <${kernel_addr_r} 0xf00000>
fdt set /chosen/module@0 xen,dom0-bootargs "console=hvc0,115200n8 debug ignore_loglevel rw rootwait earlyprintk=xen clk_ignore_unused init=/init"

bootz ${xen_addr_r} - ${fdt_addr}

(2) Here is the debug information:
Kernel image @ 0x7ea00000 [ 0x000000 - 0x0cf700 ]
## Flattened Device Tree blob at 7ec00000
Booting using the fdt blob at 0x7ec00000
reserving fdt memory region: addr=7ec00000 size=4000 Using Device Tree in place at 7ec00000, end 7ec06fff
WARNING: ignoring attempt to set core boot address 7ff88454 on core -1
WARNING: Not kicking secondary CPUs

Quoted 4 lines

Starting kernel ...

duqi.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw

Hello all,

Quoted 9 lines · Bamvor Jian Zhang

Hi, duqi

Quoted 7 lines
Quoted 1 line
Quoted 1 line

duqi <[email protected]> wrote:

Hi,

We will have tested the stand alone dtb load progress according this wiki:http://wiki.xenproject.org/wiki?title=Xen_ARM_with_Virtualization_Extens ions/Allwinner.

Quoted 8 lines
Quoted 5 lines

For simplicity, I compiled ramdisk into kernel image.

The Xen version is xen4.4.0 release.
I typed the below command in u-boot,but the Xen was stuck in "Starting kernel...."

there should be some advise for debugging kernel in mailing list archives. anyway, you could reference:
http://wiki.xenproject.org/wiki?title=Xen_ARM_with_Virtualization_Extensions/Allwinner#DomU_kernel_debug

This is for debugging the kernel not Xen. His logs show that he can't boot xen.

duqi: Did you add CONFIG_EARLY_PRINTK=suni7 on Xen build commandline?

Regards,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
author
#3 lore raw
Quoted 1 line · At 2014-04-08 16:25:02,"Julien Grall" <[email protected]> wrote:

duqi: Did you add CONFIG_EARLY_PRINTK=suni7 on Xen build commandline?

Yeah,  the xen build commandline  is: make dist-xen XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- CONFIG_EARLY_PRINTK=sun7i

Many thanks.

duqi.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw
Quoted 7 lines · duqi
Quoted 1 line · At 2014-04-08 16:25:02,"Julien Grall" <[email protected]> wrote:

duqi: Did you add CONFIG_EARLY_PRINTK=suni7 on Xen build commandline?

Yeah, the xen build commandline is: make dist-xen XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- CONFIG_EARLY_PRINTK=sun7i

If you only added CONFIG_EARLY_PRINTK after doing an initial build without it then you may need to do a clean for it to actually take affect.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#5 lore raw
In reply to duqi
Quoted 2 lines · duqi

WARNING: ignoring attempt to set core boot address 7ff88454 on core -1
WARNING: Not kicking secondary CPUs

What version of u-boot is this from?

Ian.