All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH OSSTEST v4 00/13] support for ARM32 arndale and cubietruck platforms
Date: Thu, 29 Jan 2015 09:54:51 +0000	[thread overview]
Message-ID: <1422525291.30641.3.camel@citrix.com> (raw)
In-Reply-To: <1421839070.4899.8.camel@citrix.com>

On Wed, 2015-01-21 at 11:17 +0000, Ian Campbell wrote:

I initially forgot to set the new UBootSetXenAddrR property on the
existing midway systems, as required by 653d0af2fd70 "Osstest/Debian:
Remove hardcoded addresses from boot.scr", so the initial flight failed.

The flight which is currently in progress (33888) has failed
ts-host-reboot on arm with (from the serial log):
        12349569 bytes read in 401 ms (29.4 MiB/s)
        Sorry, I could not convert "xbc7081>"
        Loaded initrd.img-3.16.7-ckt4+ to 0x04000000 (0xbc7081)

The ts-xen-install log shows that the relevant fragment of boot.scr is:
        ext2load scsi 0 \${ramdisk_addr_r} initrd.img-3.16.7-ckt4+
        fdt mknod /chosen module@1
        fdt set /chosen/module@1 compatible "xen,linux-initrd" "xen,multiboot-module"
        fdt set /chosen/module@1 reg <\${ramdisk_addr_r} 0x\${filesize}>
        echo Loaded initrd.img-3.16.7-ckt4+ to \${ramdisk_addr_r} (\${filesize})

I think this is a combination of ee5e442f15eb "Osstest/Debian: Add 0x
prefix to $filesize" from this series and a much older change in
e6e9078c80d6 "Debian: more corrections to arm u-boot rune" which removed
a space from before the ">", probably because I couldn't remember what
it was for...

It turns out that the ext2load command on midway only sets filesize with
the 0x prefix, but e.g. tftp doesn't. This doesn't occur on arndale or
cubietruck which has much newer u-boot which has this bug fixed (not
sure by what but [0] look like candidates).

Based on the email threads referenced by ee5e442f15e[1] I think we
should consider this a quirk/bug on the midway platform.

In theory I could try upgrading the u-boot firmware on these systems
(it's still supported by mainline u-boot), but to be honest with Calxeda
no longer existing I'm reluctant to do anything which might have any
chance of bricking the systems.

I'm not sure how specific to make this quirk and whether it is worth
doing via the hostdb or just directly in Debian.pm. Options:

      * Make the addition of the 0x prefix conditional on !
        platform-midway
      * Add a new host prop e.g. UBootLoadFilesizePrefix, defaulting to
        0x and set to '' on midway machines
      * A similar host flag to control the addition (or, more likely, 
        the omission of) of the 0x

Ian.

[0] http://git.denx.de/?p=u-boot.git;a=commit;h=b770e88a6c2548727f0d57a3e9e8bb0830f977b5
    http://git.denx.de/?p=u-boot.git;a=commit;h=3f83c87ee58d86e9a9d2e50b62f38c728bfb31f6

[1] http://lists.denx.de/pipermail/u-boot/2014-October/193622.html,
    http://lists.denx.de/pipermail/u-boot/2014-November/194150.html and
    http://lists.denx.de/pipermail/u-boot/2014-November/194150.html.

  parent reply	other threads:[~2015-01-29  9:54 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-21 11:17 [PATCH OSSTEST v4 00/13] support for ARM32 arndale and cubietruck platforms Ian Campbell
2015-01-21 11:18 ` [PATCH OSSTEST v4 01/13] make-flight: Run a basic test on each arm platform Ian Campbell
2015-01-21 11:18 ` [PATCH OSSTEST v4 02/13] Osstest/PDU: Add eth008.pm method to control the ARM rack PDU Ian Campbell
2015-01-21 11:43   ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 03/13] Osstest/Debian: Install dtbs into target filesystem in /boot/dtbs Ian Campbell
2015-01-21 11:44   ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 04/13] Osstest/Debian: Support for loading an FDT from u-boot script Ian Campbell
2015-01-21 11:18 ` [PATCH OSSTEST v4 05/13] Osstest/Debian: Refactor setting of dom0 kernel command line Ian Campbell
2015-01-21 11:47   ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 06/13] Osstest/Debian: support adding a rootdelay property to bootargs Ian Campbell
2015-01-21 11:58   ` Ian Jackson
2015-01-21 13:07     ` Ian Campbell
2015-01-21 16:18       ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 07/13] Osstest/Debian: Remove hardcoded addresses from boot.scr Ian Campbell
2015-01-21 12:00   ` Ian Jackson
2015-01-21 12:25     ` Ian Campbell
2015-01-21 11:18 ` [PATCH OSSTEST v4 08/13] Osstest/Debian: Add "clk_ignore_unused" to default command line Ian Campbell
2015-01-21 12:01   ` Ian Jackson
2015-01-21 12:02   ` Ian Jackson
2015-01-21 13:12     ` Ian Campbell
2015-01-21 16:18       ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 09/13] Osstest/Debian: Add 0x prefix to $filesize Ian Campbell
2015-01-21 12:04   ` Ian Jackson
2015-01-21 12:22     ` Ian Campbell
2015-01-21 15:08       ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 10/13] ts-kernel-build: Adjust kernel .config to work on the arndale boards Ian Campbell
2015-01-21 12:05   ` Ian Jackson
2015-01-21 13:20     ` Ian Campbell
2015-01-21 14:04       ` Ian Campbell
2015-01-21 16:20       ` Ian Jackson
2015-01-21 16:31         ` Ian Campbell
2015-01-21 16:36           ` Ian Jackson
2015-01-21 16:50             ` Ian Campbell
2015-01-21 17:01               ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 11/13] Debian: Create boot.scr with a suffix and copy to boot.scr Ian Campbell
2015-01-21 12:08   ` Ian Jackson
2015-01-21 12:27     ` Ian Campbell
2015-01-21 11:18 ` [PATCH OSSTEST v4 12/13] TestSupport: replace power_cycle_timeout with power_cycle_sleep Ian Campbell
2015-01-21 12:09   ` Ian Jackson
2015-01-21 11:18 ` [PATCH OSSTEST v4 13/13] Debian: create boot.scr.nat when installing Xen on u-boot Ian Campbell
2015-01-21 12:12   ` Ian Jackson
2015-01-29  9:54 ` Ian Campbell [this message]
2015-01-29 11:25   ` [PATCH OSSTEST v4 00/13] support for ARM32 arndale and cubietruck platforms Ian Jackson
2015-01-29 11:44     ` Ian Campbell
2015-01-29 11:54       ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1422525291.30641.3.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.