* [U-Boot-Users] Flashes that live in more than one place...!
@ 2004-02-06 18:47 Dave Peverley
2004-02-06 19:27 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Dave Peverley @ 2004-02-06 18:47 UTC (permalink / raw)
To: u-boot
Hi all,
This is my first post so hello for the first time :-)
I'm porting (well, 90% done now) u-boot to a new board based on an OMAP
processor. This board happens to have a DIP switch to select whether
you boot from flash (strata) or ram. It does this by juggling CS0 and
CS3 for the flash. This means that at run time, if you're running from
ram you access the flash at 0x0C000000 or if running from flash, you
access it at 0x00000000. I can detect which state we're in no problem,
but I can't see a clean way to integrate this into the u-boot sources.
The implication, is that at run time, I need to set new values for :
PHYS_FLASH_1
CFG_FLASH_BASE
CFG_ENV_ADDR
This is _not_ a nice thing to do without creating a lot of changes in the
code :-/ I've dug about in the existing code (I'm working with the 1.0.0
codebase) to see if anyone else has done similar, but I haven't spotted any
suitable workarounds. Can anyone suggest a neat way to achieve this?
Best Wishes,
Dave Peverley
---------------------------------------------------------------------------
Dave Peverley, Software Engineer, MPC Data Limited.
Phone : [+44] (0) 1225 868 228 Web : http://www.mpc-data.co.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] Flashes that live in more than one place...!
2004-02-06 18:47 [U-Boot-Users] Flashes that live in more than one place...! Dave Peverley
@ 2004-02-06 19:27 ` Wolfgang Denk
2004-02-11 11:15 ` Dave Peverley
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2004-02-06 19:27 UTC (permalink / raw)
To: u-boot
In message <0e2d01c3ece1$baee9320$885c96c0@RIPSNORTERVM> you wrote:
>
> I'm porting (well, 90% done now) u-boot to a new board based on an OMAP
> processor. This board happens to have a DIP switch to select whether
> you boot from flash (strata) or ram. It does this by juggling CS0 and
> CS3 for the flash. This means that at run time, if you're running from
I understand this is just a debugging aid? Or how do you initialize
RAM and load an U-Boot image into it if you're booting from RAM?
> This is _not_ a nice thing to do without creating a lot of changes in the
> code :-/ I've dug about in the existing code (I'm working with the 1.0.0
Can you please explain first what you're trying to do? And why, or
what for?
Best regards,
Wolfgang Denk
--
See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
"He only drinks when he gets depressed." "Why does he get depressed?"
"Sometimes it's because he hasn't had a drink."
- Terry Pratchett, _Men at Arms_
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] Flashes that live in more than one place...!
2004-02-06 19:27 ` Wolfgang Denk
@ 2004-02-11 11:15 ` Dave Peverley
0 siblings, 0 replies; 3+ messages in thread
From: Dave Peverley @ 2004-02-11 11:15 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
> Can you please explain first what you're trying to do? And why, or
> what for?
No big reason, just for convenience during development so as not to need
two built images when running in ram and using to self flash and image
that runs from flash. Not vital, but I was wondering if there was a neat
way to do it...
:-)
Best Wishes,
Dave Peverley
---------------------------------------------------------------------------
Dave Peverley, Software Engineer, MPC Data Limited.
Phone : [+44] (0) 1225 868 228 Web : http://www.mpc-data.co.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-11 11:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-06 18:47 [U-Boot-Users] Flashes that live in more than one place...! Dave Peverley
2004-02-06 19:27 ` Wolfgang Denk
2004-02-11 11:15 ` Dave Peverley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox