public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Liu, Changcheng <changcheng.liu@intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] u-boot for Galileo board
Date: Sun, 19 Jun 2016 11:02:19 +0800	[thread overview]
Message-ID: <20160619030219.GA3203@shlabacsbb82> (raw)
In-Reply-To: <CAEUhbmVMeDpGOq3iUUHP5gfRbzTRYTFx-b_wYdDuHCkgFrViiQ@mail.gmail.com>

Hi Bin,
    1) It's Galileo gen2 board.
    2) Thx for reminding me of the rom target in Makefile.
       I've got the right building process since it extract the boot section and add it to the end of image.
    3) There's one comment error in tools/ifdtool.c and correct it as below.
    4) I work on Galileo gen2 board in my free time and I'll verify the code later.


commit 6f57cd5467c14bb8dc1de72b814a014fefc94820
Date:   Sun Jun 19 10:21:28 2016 +0800

    corrent comment about x86 ROM address
    
    For 8M ROM, the start address should be 0xff800000
    
    Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>

diff --git a/tools/ifdtool.c b/tools/ifdtool.c
index 48059c0..7b41dba 100644
--- a/tools/ifdtool.c
+++ b/tools/ifdtool.c
@@ -704,7 +704,7 @@ int inject_region(char *image, int size, int region_type, char *region_fname)
  * @size:              Size of image in bytes
  * @addr:              x86 ROM address to put file. The ROM ends at
  *                     0xffffffff so use an address relative to that. For an
- *                     8MB ROM the start address is 0xfff80000.
+ *                     8MB ROM the start address is 0xff800000.
  * @write_fname:       Filename to add to the image
  * @offset_uboot_top:  Offset of the top of U-Boot
  * @offset_uboot_start:        Offset of the start of U-Boot


B.R.
Changcheng

On Fri, Jun 17, 2016 at 09:53:42AM +0800, Bin Meng wrote:
> Hi Changcheng,
> 
> On Thu, Jun 16, 2016 at 7:22 PM, Liu, Changcheng
> <changcheng.liu@intel.com> wrote:
> > Hi all,
> >
> >     I have some questions about the u-boot for Galileo2 board.
> >
> >
> >
> >     1. Code: https://github.com/LeMaker/u-boot (it's for Galileo board which could be ported for Galileo2 board)
> >
> >
> 
> What's Galileo2 board? If you are talking about Galileo gen2 board,
> this is already supported by current U-Boot. In fact, both Galileo
> gen1 and gen2 boards are supported in U-Boot with the same code base.
> 
> >
> >     2. Confusing at the building process.
> >
> >            a. objcopy  --gap-fill=0xff -O binary -R .start16 -R .resetvec u-boot u-boot.bin
> >
> >                Question: Why the ".resetvec" section should be removed since it's placed at "0xffffffff0" section according to arch/x86/cpu/u-boot.lds?
> >
> 
> The bootable image u-boot.rom will have these sections backfilled by
> ifdtool. See Makefile: IFDTOOL_FLAGS += -w
> $(CONFIG_SYS_X86_START16):$(objtree)/u-boot-x86-16bit.bin
> 
> >
> >            b. cat u-boot.bin dts/dt.dtb > u-boot-dtb.bin
> >
> >                Question:
> >
> >                I think ROM is layout at the top of the physical address and quark x1000 SoC will fetch instruction from  FFFF_FFF0H after being power on. If dts/dt.dtb is appended after u-boot.bin, how could the content is effective at FFFF_FFF0H?
> >
> 
> Like you mentioned above, u-boot.bin has the .resetvec removed, so
> itself does not contain anything that occupies FFFF_FFF0h.
> 
> Regards,
> Bin

  reply	other threads:[~2016-06-19  3:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-16 11:22 [U-Boot] u-boot for Galileo board Liu, Changcheng
2016-06-17  1:53 ` Bin Meng
2016-06-19  3:02   ` Liu, Changcheng [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-06-16 11:56 Liu, Changcheng

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=20160619030219.GA3203@shlabacsbb82 \
    --to=changcheng.liu@intel.com \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox