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

Re: [Xen-devel] Trying to boot on Arndale Board.



Hi,

I was wondering if anyone else is facing the same issue. I've copied Anthony's PXE setup as well but without result. Using PXE or just sdcards and fatload both end up freezing at Xen start-up with the same " *- Turning on paging -* " message. Anthony you mentioned you previously had the same problem, maybe you could give me some more pointers on how to fix it?

Thx,
Sander


On 18 February 2013 11:33, Sander Bogaert <sander.bogaert@xxxxxxxxxxxxx> wrote:
On 14 February 2013 18:03, Anthony PERARD <anthony.perard@xxxxxxxxxx> wrote:
On 14/02/13 15:09, Sander Bogaert wrote:
> Hi,
>
> I'm trying to get Xen working on the Arndale Board

Hi, thanks for trying :).
Sorry, this wiki page is probably not complete yet.

> When trying to build the Linux kernel from Linaro,
> http://git.linaro.org/gitweb?p=people/ronynandy/linux_stable.git;a=shortlog;h=refs/heads/lue_arndale_3.7
> (
> configured as specified on the Xen wiki page ) I run into the following
> error while compiling:
>
> *drivers/xen/xenbus/xenbus_client.c: In function
> 'xenbus_map_ring_valloc_hvm':*
> *drivers/xen/xenbus/xenbus_client.c:532:9: error: implicit declaration of
> function 'page_to_section' [-Werror=implicit-function-declaration]*
> *cc1: some warnings being treated as errors*
> *make[3]: *** [drivers/xen/xenbus/xenbus_client.o] Error 1*
>
> I was wondering if anyone else ran into this and if so how best to solve it.

Yes, I've got a patch for it:
diff --git a/drivers/xen/xenbus/xenbus_client.c
b/drivers/xen/xenbus/xenbus_client.c
index bcf3ba4..686142d 100644
--- a/drivers/xen/xenbus/xenbus_client.c
+++ b/drivers/xen/xenbus/xenbus_client.c
@@ -35,6 +35,7 @@
 #include <linux/spinlock.h>
 #include <linux/vmalloc.h>
 #include <linux/export.h>
+#include <linux/mm.h>
 #include <asm/xen/hypervisor.h>
 #include <asm/xen/page.h>
 #include <xen/interface/xen.h>

Thanks, this fixes the compilation problem.
 


> Booting Xen on the board hangs on "Turning on paging", is this related to
> not having a dom0?

Should not be, there is many things printed by Xen before it is trying
to boot dom0, and it would say that it can not find a dom0.

> *...*
> *Startinrrrrrrrrrrrrrrrr- UART enabled -*
> *- CPU 00000000 booting -*
> *- Started in Hyp mode -*
> *- Zero BSS -*
> *- Setting up control registers -*
> *- Turning on paging -*

All right, I've been able to reproduce the behaviour. Are you starting
Xen using the u-boot command "go"? Because this does not work with me.
It gave me some headache sometime ago. The command that works is "bootm
$xen_addr -"
So, I'm curious, how do you start Xen on the board?

Here is what env I have on u-boot:
ipaddr=10.y.y.y
ipconfig=10.y.y.y
kernel_addr_r=0x40007000
serverip=10.x.x.x
tftp_path=10.x.x.x:pxelinux.cfg
usbethaddr=00:40:5c:26:0a:5b
ethaddr=00:40:5c:26:0a:5b
xen_addr_r=0x50000000
bootcmd_load_linux=tftpboot 0x40007000 10.80.3.61:pxelinux.cfg/linux-zImage
boot_xen=run bootcmd_load_linux; tftpboot $xen_addr_r
$tftp_path/xen-uImage; bootm $xen_addr_r -
bootcmd=run boot_xen

with 10.y.y.y the ip addr of the board and 10.x.x.x the ip of a tftp
server (or PXE server).

By the way, I've pushed a new branch: arndale-2013-02-13 which fix few
things.

This is the branch I've been using so far, I have been monitoring the repository for updates too and this still seems to be the latest right?
 

This should make you pass the "turning on paging" step.

I'm still stuck at this step. Here is my environement:

ARNDALE5250 # pri
baudrate=115200
boot_xen=run fatload_cmd; bootm 0x50000000 -
bootargs=root=/dev/mmcblk1p1   rw rootwait console=ttySAC2,115200n8 init --no-log
bootcmd=run boot_xen
bootdelay=3
dt_addr_r=0x42000000
ethact=asx0
fatload_cmd=fatload mmc0 0 40007000 linaroarndalekernel;fatload mmc0 0 42000000 dt.dtb;fatload mmc0 0 50000000 xen_uimage
filesize=88308
kernel_addr_r=0x40007000
preboot=usb start
stderr=serial
stdin=serial
stdout=serial
usbethaddr=00:40:5c:26:0a:5b
xen_addr_r=0x50000000

Environment size: 514/16380 bytes

A big difference is that I'm not trying to boot over PXE, instead I'm using the microSD card to load all the files. It has a FAT partition which I load from ( as you can see in the env ). I'm still stuck at the same stage, any ideas? I just try 'run boot_xen' to boot. I took the 0x50000000 from your environement.

Two other questions; 
* Don't we need to supply a device tree somewhere? 
* I read on the wiki ( http://wiki.xen.org/wiki/Xen_ARMv7_with_Virtualization_Extensions/Arndale ): "So don't expect to have a usable dom0 yet." and was wondering if this is still the case or if someone has a working installation already. If not, can I see the progress somewhere ( notes? ) or can you tell me what the current problems are?
  

After that, you will probably need few patches for Linux. I'll push them
later.

Have fun,

--
Anthony PERARD

Thanks a lot for your help so far!

Sander

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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