All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ray Zhao <ray.zhao.inhand@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: how can I boot u-boot from 0x40000 in flash instead
Date: Fri, 15 Jul 2005 11:09:18 -0400	[thread overview]
Message-ID: <cd490d13050715080936a17fee@mail.gmail.com> (raw)

Thanks for the answers. I apologize that I did not make it clear. 
My board is a PXA270, it will, of cause, boot from 0x0000. But our
customer has a tiny tiny boot loader which just generates some special
data and save it in flash. (So they reserved the flash blocks from the
0x0000 to 0x40000.) Then it make PXA270 jump to the 0x40000 and run
the real boot loader from there. We used blob and it works fine with
kernel 2.4. But I am porting the new Linux 2.6 to the board and I
decide to switch to u-boot. My understanding is that after the u-boot
get the control, ie, the CPU jump to the first instruct of the u-boot
code. u-boot will do some initialization on the CPU's cache to build a
simple C environment and then copy part of itself from the flash into
the cache and run from there to initial the memory controller etc. The
code then will copy all (or the rest) the u-boot from the flash to the
memory. My question is, in default, u-boot will copy itself from the
0x0000 (right?). How could I let it know that the u-boot is actually
locates in the 0x40000.
thanks,
Ray
> Ray Zhao wrote:
> My board need keep the first 0x40000 flash for special purpose. Is it
> easy to modify the u-boot to load itself from 0x40000 instead from the
> 0x0000? Any help is appreciated.
>
> Ray

> If your hardware supports it, probably.  Otherwise no.  Perhaps you
> could tell us what your hardware is?

>gvb

>It's not U-Boot code what  determines  the  boot  address,  but  your
>processor.  So  your  real  question  is if you can teach your CPU to
>start from a different reset vector. But sorry, we cannot answer this
>here.

>Best regards,

>Wolfgang Denk
-- 
---------------------------------------------------------------
Everything that has a beginning has an end.

             reply	other threads:[~2005-07-15 15:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-15 15:09 Ray Zhao [this message]
2005-07-15 16:50 ` [U-Boot-Users] Re: how can I boot u-boot from 0x40000 in flash instead Wolfgang Denk
2005-07-15 18:29   ` Ray Zhao
2005-07-15 20:27     ` Wolfgang Denk

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=cd490d13050715080936a17fee@mail.gmail.com \
    --to=ray.zhao.inhand@gmail.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 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.