All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xo Wang <xow@google.com>
To: openbmc@lists.ozlabs.org
Subject: Re: AST2500 support questions
Date: Thu, 9 Jun 2016 11:35:26 -0700	[thread overview]
Message-ID: <5759B6EE.3010700@google.com> (raw)
In-Reply-To: <DB4PR05MB0941CA88039CFE2BEEA8ECD9D55D0@DB4PR05MB0941.eurprd05.prod.outlook.com>

Hi Shay,

Aside from confirming that AST2500 support is still a work-in-progress,
I wanted to answer your question about the current device-tree boot 
mechanism.

 > We tried to boot it with uImage and separate DTB image using the
 > command 'bootm <KERNEL_ADDR> - <DTB_ADDR>'

If I understand correctly, the configuration you tried is to load the 
DTB at 0x82000000 and pass that address to a CONFIG_OF_LIBFDT kernel in 
register r2. This should work and is probably considered the 
preferred/idiomatic ARM way, but not how the phosphor build is doing it.

 > Which u-boot command do you suggest for booting with DTB file?
 > How did you guys managed to boot?

The current OpenBMC boot mechanism for AST2400 that we ported to AST2500 
is to append the DTB to the zImage:

   # meta-phosphor/classes/kernel-cuimage.bbclass#L32
   cat linux.bin $dt > linux-dts.bin

The recipe will then run mkimage on this to create a u-boot container 
wrapped zImage+DTB file called cuImage. The kernel knows to look for the 
appended DTB if built with CONFIG_ARM_APPENDED_DTB.

 > ast# bootz 0x83000000

I think this will pass a pointer to ATAGS in r2 and bypass device-tree 
handling completely. ATAGS is considered legacy and isn't usefully 
populated by the OpenBMC u-boot, except to pass kernel boot arguments.

cheers
//xo

  parent reply	other threads:[~2016-06-09 18:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-07 18:43 AST2500 support questions Shay Slobodkin
2016-06-07 21:38 ` Rick Altherr
2016-06-08 12:16 ` Cédric Le Goater
2016-06-09  0:54 ` Patrick Williams
2016-06-09 18:35 ` Xo Wang [this message]
2016-06-10  8:50   ` Joel Stanley

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=5759B6EE.3010700@google.com \
    --to=xow@google.com \
    --cc=openbmc@lists.ozlabs.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.