All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Fainelli <florian@openwrt.org>
To: nagalakshmi veeramallu <lucky.veeramallu@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	"Kevin D. Kissell" <kevink@paralogos.com>,
	"M. Warner Losh" <imp@bsdimp.com>,
	linux-mips@linux-mips.org
Subject: Re: in mips how to change the start address to the new second boot  loader ?
Date: Thu, 23 Apr 2009 11:01:25 +0200	[thread overview]
Message-ID: <200904231101.27780.florian@openwrt.org> (raw)
In-Reply-To: <d77cedf30904210720m1a5862ccx220fea16f3a0f01a@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3004 bytes --]

Hi,

Le Tuesday 21 April 2009 16:20:48 nagalakshmi veeramallu, vous avez écrit :
> Hi,
> will this approach work? if i used "start" environmental variable will it
> go to new boot loader address directly.

Yamon also has a start environnment variable which is used to do something 
without user-intervention. I do not know cmon, but assuming it behaves 
similarly, you might want to set the start variable to something like: "go 
0xdeadbeef". And make sure your code starts at 0xdeadbeef for instance.

That way, you keep cmon on the flash and use it to jump to an arbitrary 
location, which is anyway, what would be done if you used cmon to boot Linux 
for instance.

>
> Regards,
> Lucky
>
> On Tue, Apr 21, 2009 at 7:40 PM, Geert Uytterhoeven 
<geert@linux-m68k.org>wrote:
> > On Tue, Apr 21, 2009 at 15:46, nagalakshmi veeramallu
> >
> > <lucky.veeramallu@gmail.com> wrote:
> > > hi,
> > >          --          if we set environmental variable “start” as “go
> > > new_address”, will it go directly to the new bootloader in the next
> > > power-on.
> > > what about using system environmental "start" ,can you tell me at which
> > > context after power on environmental variables come onto picture.
> >
> > Environment variables are parsed by the boot loader, whose code resides
> > at, guess what, 0x1fc00000...
> >
> > > On Tue, Apr 21, 2009 at 6:55 PM, Kevin D. Kissell
> > > <kevink@paralogos.com>
> > >
> > > wrote:
> > >> nagalakshmi veeramallu wrote:
> > >>
> > >> -           Mips atlas board has jumper  which will redirect accesses
> >
> > from
> >
> > >> “Bootcode” range to either “Monitor flash” (0x1e000000) or the upper
> > >> 4MB
> >
> > of
> >
> > >> “System flash” (0x1dc00000) based on jumper settings. if my kmc board
> >
> > have
> >
> > >> some jumper like this, can I redirect the start address.
> > >>
> > >> Of course, what is really happening there is that the Atlas boot ROM
> > >> has
> >
> > a
> >
> > >> vector at 0x1fc00000 which reads the jumper and jumps to one address
> > >> or
> >
> > the
> >
> > >> other depending on the jumper setting. If you control what is in ROM
> > >> at 0x1fc00000 and you have a software-readable jumper on your KMC
> > >> board,
> >
> > you
> >
> > >> can do the same thing.
> > >>
> > >>           Regards,
> > >>
> > >>           Kevin K.
> >
> > --
> > Gr{oetje,eeting}s,
> >
> >                                                Geert
> >
> > --
> > Geert Uytterhoeven -- There's lots of Linux beyond ia32 --
> > geert@linux-m68k.org
> >
> > In personal conversations with technical people, I call myself a hacker.
> > But
> > when I'm talking to journalists I just say "programmer" or something like
> > that.
> >                                                            -- Linus
> > Torvalds



-- 
Best regards, Florian Fainelli
Email : florian@openwrt.org
http://openwrt.org
-------------------------------

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

      parent reply	other threads:[~2009-04-23 10:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-15  6:09 in mips how to change the start address to the new second boot loader ? nagalakshmi veeramallu
2009-04-15  6:09 ` nagalakshmi veeramallu
2009-04-20  9:00 ` Florian Fainelli
2009-04-20 14:59   ` M. Warner Losh
2009-04-21  6:50     ` nagalakshmi veeramallu
2009-04-21  6:50       ` nagalakshmi veeramallu
2009-04-21 13:25       ` Kevin D. Kissell
2009-04-21 13:46         ` nagalakshmi veeramallu
2009-04-21 13:46           ` nagalakshmi veeramallu
2009-04-21 14:10           ` Geert Uytterhoeven
2009-04-21 14:10             ` Geert Uytterhoeven
2009-04-21 14:20             ` nagalakshmi veeramallu
2009-04-21 14:20               ` nagalakshmi veeramallu
2009-04-21 14:31               ` Kevin D. Kissell
2009-04-23  9:01               ` Florian Fainelli [this message]

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=200904231101.27780.florian@openwrt.org \
    --to=florian@openwrt.org \
    --cc=geert@linux-m68k.org \
    --cc=imp@bsdimp.com \
    --cc=kevink@paralogos.com \
    --cc=linux-mips@linux-mips.org \
    --cc=lucky.veeramallu@gmail.com \
    /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.