* [U-Boot-Users] how to make a core uboot?
@ 2008-04-28 8:22 loody mil
2008-04-28 9:51 ` Andreas Schweigstill
0 siblings, 1 reply; 4+ messages in thread
From: loody mil @ 2008-04-28 8:22 UTC (permalink / raw)
To: u-boot
Dear all:
I get an arm platform from my friend and it is not in the list of boards in
include folder.
I intend to make a pure uboot, without including any driver but only basic
cpu setting and uboot commands supported. But I cannot see any config option
in Makefile.
I know I may choose any config in boards and truncate those things I don't
need at all.
But I send this mail and want to know is there already a config option or
some fast way I can meet my requirement?
appreciate your help,
miloody
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080428/146fe379/attachment.htm
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] how to make a core uboot?
2008-04-28 8:22 [U-Boot-Users] how to make a core uboot? loody mil
@ 2008-04-28 9:51 ` Andreas Schweigstill
2008-04-28 19:24 ` [U-Boot-Users] how to make a core uboot? (Comments about AT91 BMS) Ken.Fuchs at bench.com
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schweigstill @ 2008-04-28 9:51 UTC (permalink / raw)
To: u-boot
Hello!
loody mil schrieb:
> I intend to make a pure uboot, without including any driver but only
> basic cpu setting and uboot commands supported. But I cannot see any
> config option in Makefile.
If you need a really minimalistic bootloader U-Boot will not be the
first choice. The smallest possible U-Boot will be around 100KByte in
size and contain much more than just basic CPU initialisation.
> I know I may choose any config in boards and truncate those things I
> don't need at all.
That's the right way if you want to use U-Boot.
> But I send this mail and want to know is there already a config option
> or some fast way I can meet my requirement?
Nobody knows what are you requirements. If you need a really
minimalistic bootloader you should take a look at some sample
initialization code from the processor manufacturer.
On certain platforms (e.g. Atmel AT91) even U-Boot will just be used as
a second or third level bootloader. The basic CPU setup has been done
before starting U-Boot.
With best regards
Andreas Schweigstill
--
Dipl.-Phys. Andreas Schweigstill
Schweigstill IT | Embedded Systems
Schauenburgerstra?e 116, D-24118 Kiel, Germany
Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] how to make a core uboot? (Comments about AT91 BMS)
2008-04-28 9:51 ` Andreas Schweigstill
@ 2008-04-28 19:24 ` Ken.Fuchs at bench.com
2008-04-28 21:37 ` Wolfgang Denk
0 siblings, 1 reply; 4+ messages in thread
From: Ken.Fuchs at bench.com @ 2008-04-28 19:24 UTC (permalink / raw)
To: u-boot
Andreas Schweigstill wrote:
> On certain platforms (e.g. Atmel AT91) even U-Boot will just
> be used as a second or third level bootloader. The basic CPU
> setup has been done before starting U-Boot.
Qualification: The following is true for all AT91SAM9 processors.
It probably also applies to AT91CAP9 processors. I'm not sure it
applies to other AT91 processors though.
This is only true of Atmel AT91 processors with BMS set to 1.
Execution starts in the Atmel AT91's internal ROM. The ROM
loads code from a SPI NOR flash (Dataflash) into internal SRAM
or external SDRAM. (If the SRAM step is skipped, U-Boot would
be the second stage bootloader.) With an SRAM bootloader stage
(AT91Bootstrap) as the second stage bootloader, that would
make U-Boot the third stage bootloader.
With BMS=0, execution of AT91 processors will start with the
EBI chip select 0 device, usually (EBI) NOR flash. The AT91's
internal ROM is completely bypassed.
It just happens that official U-Boot for AT91 uses the AT91's
internal ROM to boot via SPI NOR flash. There is a patch by
Rubini to Atmel's U-Boot 1.1.5 version that runs U-Boot from
an AT91SAM9263-EK board with BMS=0. It is technically a two
stage bootloader with AT91Bootstrap code being loaded into
SRAM and U-Boot loaded into SDRAM by AT91Bootstrap.
Does the new AT91 code in U-Boot handle BMS=0 properly?
If so, ignore the following paragraph:
I've not heard of a single stage U-Boot for Atmel AT91, but
it is just as easy to do as any other single stage U-Boot
for any other processor. It should be easier to do than a
U-Boot port to a new architecture.
Sincerely,
Ken Fuchs
> -----Original Message-----
> From: u-boot-users-bounces at lists.sourceforge.net
> [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf
> Of Andreas Schweigstill
> Sent: Monday, April 28, 2008 04:51
> To: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] how to make a core uboot?
>
>
> Hello!
>
> loody mil schrieb:
> > I intend to make a pure uboot, without including any driver
> but only
> > basic cpu setting and uboot commands supported. But I
> cannot see any
> > config option in Makefile.
>
> If you need a really minimalistic bootloader U-Boot will not be the
> first choice. The smallest possible U-Boot will be around 100KByte in
> size and contain much more than just basic CPU initialisation.
>
> > I know I may choose any config in boards and truncate those
> things I
> > don't need at all.
>
> That's the right way if you want to use U-Boot.
>
> > But I send this mail and want to know is there already a
> config option
> > or some fast way I can meet my requirement?
>
> Nobody knows what are you requirements. If you need a really
> minimalistic bootloader you should take a look at some sample
> initialization code from the processor manufacturer.
>
> On certain platforms (e.g. Atmel AT91) even U-Boot will just
> be used as
> a second or third level bootloader. The basic CPU setup has been done
> before starting U-Boot.
>
> With best regards
> Andreas Schweigstill
>
> --
> Dipl.-Phys. Andreas Schweigstill
> Schweigstill IT | Embedded Systems
> Schauenburgerstra?e 116, D-24118 Kiel, Germany
> Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
> Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/
>
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to
> save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java
.sun.com/javaone
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] how to make a core uboot? (Comments about AT91 BMS)
2008-04-28 19:24 ` [U-Boot-Users] how to make a core uboot? (Comments about AT91 BMS) Ken.Fuchs at bench.com
@ 2008-04-28 21:37 ` Wolfgang Denk
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2008-04-28 21:37 UTC (permalink / raw)
To: u-boot
In message <AA28F077645B324881335614E4F7C428034CEF@win-ex01.bench.com> you wrote:
>
> It just happens that official U-Boot for AT91 uses the AT91's
> internal ROM to boot via SPI NOR flash. There is a patch by
Define "official".
To me it means what's in mainline. And here we support booting from
NOR flash.
> I've not heard of a single stage U-Boot for Atmel AT91, but
> it is just as easy to do as any other single stage U-Boot
> for any other processor. It should be easier to do than a
> U-Boot port to a new architecture.
You may just want to use plain standard mainline code.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
As of 1992, they're called European Economic Community fries.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-28 21:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-28 8:22 [U-Boot-Users] how to make a core uboot? loody mil
2008-04-28 9:51 ` Andreas Schweigstill
2008-04-28 19:24 ` [U-Boot-Users] how to make a core uboot? (Comments about AT91 BMS) Ken.Fuchs at bench.com
2008-04-28 21:37 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox