From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Bader Subject: Stuck trying to boot Xen 4.3 on Arm Midway Date: Mon, 02 Dec 2013 15:59:33 +0100 Message-ID: <529CA055.80402@canonical.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5834471010883649315==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel@lists.xen.org Cc: Paolo Pisati , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============5834471010883649315== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2de7pVD0M363V4lmiPigbf8HBs8rmrxL4" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2de7pVD0M363V4lmiPigbf8HBs8rmrxL4 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable I am trying to extract and combine the various pieces of information foun= d in [1] and its sub-pages and the Xen in-tree documentation in order to make = xen boot (potentially non-smp without some later changes). But since I am not= familiar enough with Arm I think I am stuck doing something wrong. I compiled the hypervisor with debug and early printk for midway and use = the xen.bin file (I could get no output at all when trying to create a uboot = image with mkimage from the uncompressed xen.gz). My uboot sequence looks like this: mw.l 800000 0 10000 scsi scan ext2load scsi 0 0x800000 xen.bin ext2load scsi 0 0x1000000 vmlinuz setenv kernsize $filesize ext2load scsi 0 0x2000000 initrd.img setenv initsize $filesize # Tried dtuart=3D/soc/serial@fff36000 as well without setenv bootargs "sync_console console=3Ddtuart dtuart=3Dserial" fdt addr 0x1000 fdt resize fdt set /chosen bootargs \"$bootargs\" fdt mknod /chosen modules # Tried with <1> and <2> for both as I was not sure wnether those numbers= # are related to number of modules fdt set /chosen/modules \#address-cells <1> fdt set /chosen/modules \#size-cells <1> fdt mknod /chosen/modules module@0 fdt set /chosen/modules/module@0 compatible xen,linux-zimage xen,multiboo= t-module fdt set /chosen/modules/module@0 reg <0x1000000 $kernsize> fdt set /chosen/modules/module@0 bootargs "console=3Dhvc0 debug" fdt mknod /chosen/modules module@1 fdt set /chosen/modules/module@1 compatible "xen,linux-initrd" "xen,multiboot-module" fdt set /chosen/modules/module@1 reg <0x2000000 $initsize> bootz 0x800000 - 0x1000 The memory locations are somewhat random (the one for the xen.img is used= for the kernel on normal installs). The boot produces the following: ## Flattened Device Tree blob at 00001000 Booting using the fdt blob at 0x00001000 reserving fdt memory region: addr=3D0 size=3D1000 reserving fdt memory region: addr=3D1000 size=3D2000 Using Device Tree in place at 00001000, end 00005fff Starting kernel ... - UART enabled - - CPU 00000000 booting - - Machine ID 00000000 - - Started in Hyp mode - - Zero BSS - - Setting up control registers - - Turning on paging - - Ready - RAM: 0000000000000000 - 00000000ff7fffff RAM: 0000000200000000 - 00000002ffffffff MODULE[1]: 0000000001000000 - 0000000001471ae0 console=3Dhvc0 debug MODULE[2]: 0000000002000000 - 000000000223f08b Placing Xen at 0x00000002ffe00000-0x0000000300000000 WARNING: Only using first bank of memory Xen heap: 262144 pages Dom heap: 784384 pages After that nothing. Maybe I am doing the bootargs wrong. I tried xen,xen-bootargs and xen,dom0-bootargs and combinations without success. = Maybe the console argument is wrong. Although the full dtb path at least shows = up as that in a booted linux in /proc. What am I doing wrong here? Thanks, Stefan [1] http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions --2de7pVD0M363V4lmiPigbf8HBs8rmrxL4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCgAGBQJSnKBVAAoJEOhnXe7L7s6jdwcQALNgSrM098lb4aGUM95nt1GN WqHJg5mYJtpAL98RIXh2e5OIQOQ49WWt4WHlXJhyPUVlqIMvIZdRZPXLkQ2GcGRL E/+CXh326Ci1TWYsrU2Z7QkioeMplt1tZ1/s8udJIZdTAFjpZOLqkJoy1wO2wdJZ RlFr8f60iydbWh6uQYqANHhxnP7J22Gsze61eaMB9WE28z2eTKkHhOsARAYMm14b rUslWT0DuAiBCxbLtOdGWi5wK31WBx0Z66QiFCEZxA07/GkKpmzQg9kTn2qhZ96S sUNV9qQvtbhDfeYT4NX3JfLnB/lAemT7CyKjjZP4xBjwcdg22IA7m/ecy7aQ1fly pY7gYHnMTZ2P5uCGn7LULZ8a6fyLUy9o233bap2Ebyok8jeQ1Lg4eed/yrF5UnFc CbChtmKiqhVkC4IsRJ/hmxOwQh2ZGdxczTvk2NXDNeH23dLFlAtuBGUNEyHGi2CU dqwCBJhQcIjjDrdVvwwvd9TTkdt2P9elLL4O9O0gCs+l8sWZ+5ZUcTeGW/nVIsdo TyUHoRkk0orH0FkoND+pfPRdD67O1au8LQPfeu0HDJiJD9yPDOzjn9hwY+56EenN VmWV5WQhAYNZU0eI/tO98eH3U/M7+6cJUjktyCb5dZ812snWigiVjJbfdz9w1Y5d 65hMMbFlWPTQzyT4iGD7 =U8tI -----END PGP SIGNATURE----- --2de7pVD0M363V4lmiPigbf8HBs8rmrxL4-- --===============5834471010883649315== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============5834471010883649315==--