Skip to content

Instantly share code, notes, and snippets.

@moul
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moul/0be9da45af38974ac89a to your computer and use it in GitHub Desktop.
Save moul/0be9da45af38974ac89a to your computer and use it in GitHub Desktop.
Scaleway - XEN support

I'm trying to boot xen on Scaleway C1

I don't have any output on console after u-boot jumps on xen

The hardware console is ttyS0,9600n8

I'm using a xen image found in ubuntu's xen-hypervisor-4.5-armhf package (/boot/xen-4.5-armhf) converted to uImage using mkimage


Questions:

  • What is the mapping between bootargs, xen,xen-bootargs, xen,dom0-bootargs and xen, host kernel ?
  • Which console should be set ? where ?

Attached, you will find

  • .dts file
  • u-boot commands
/*
* Device Tree file for Online-Labs C1 Computing
*
* Copyright (C) 2014-2015 Scaleway
*
* Manfred Touron <mtouron@scaleway.com>
* Vincent Auclair <vauclair@online.net>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
/* https://github.com/scaleway/kernel-tools/blob/master/dtbs/scaleway-c1.dts */
#include "scaleway-c1.dts"
/ {
pmodel = "Scaleway - C1 XEN";
compatible = "marvell,axp-db", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp", "xen,xen-4.5", "xen,xen";
chosen {
xen,xen-bootargs = "earlyprintk=ttyS0 nousb console=ttyS0,9600n8 debug guest_loglvl=all loglvl=all dom0_mem=128M,max:128M";
xen,dom0-bootargs = "console=ttyAMA1 debug rw init=/bin/sh";
module@0 {
compatible = "xen,linux-zimage", "xen,multiboot-module";
reg = <0 0x8000000 0 0x355fd8>;
bootargs = "console=hvc0 ro clk_ignore_unused";
};
};
};
setenv bootargs="earlyprintk=ttyS0 nousb console=ttyS0,9600n8 debug guest_loglvl=all loglvl=all dom0_mem=128M,max:128M"
dhcp
tftp 0x5000000 uImage-xen-4.5-armhf
tftp 0x7000000 xen-dtb
tftp 0x8000000 xen-zImage
bootm 0x5000000 - 07000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment