* [U-Boot-Users] Problem starting u-boot on Xilinx V2P
@ 2005-07-05 15:52 Thorsten Lueck
2005-07-05 16:08 ` Wolfgang Denk
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Thorsten Lueck @ 2005-07-05 15:52 UTC (permalink / raw)
To: u-boot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I have a own board with an Virtex V2Pro (V2P30) an want to boot u-boot
on the PPC.
Starting from the demo-design for the ml300 demo board, I managed to
compile u-boot 1.1.1 (1.1.2 fails when running the tcl-script with EDK
7.1) and could download and run u-boot on my PPC. However, u-boot stops
after printing
U-Boot 1.1.1 (Jul 5 2005 - 16:50:28)
### No HW ID - assuming ML300
DRAM: 128 MB
I get no further output afterwards. Another strange thing is, that I
only have 32MB RAM on board but not 128MB as the ml300 has. However, I
could not find any hardcoded RAM size in the source files for the ml300.
Does anybody has an idea? I found the comment :
/*
* WARNING: this code looks "cleaner" than the PowerPC version, but
* has the disadvantage that you either get nothing, or everything.
* On PowerPC, you might see "DRAM: " before the system hangs - which
* gives a simple yet clear indication which part of the
* initialization if failing.
*/
in the ./lib_i386/board.c, however, there is no appropriate warning in
static int init_func_ram (void)
of ./lib_ppc/board.c
Thanks in advance,
Thorsten L?ck
- --
IfEN - Gesellschaft f?r Satellitennavigation mbH
Dipl. Ing. Thorsten L?ck
Tel.: +49 8121 2238-25
Fax : +49 8121 2238-11
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCyqyuQDwjNlk95KYRAmuIAJsFYHOlYn1+MJzg8tNZ1+sJQYhOFwCg5LnR
2HsWS999Jatd1N8w+3kjArg=
=kltH
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] Problem starting u-boot on Xilinx V2P
2005-07-05 15:52 [U-Boot-Users] Problem starting u-boot on Xilinx V2P Thorsten Lueck
@ 2005-07-05 16:08 ` Wolfgang Denk
2005-07-06 6:46 ` Thorsten Lueck
2005-07-06 6:33 ` Antwort: " andreas_schmidt at ifm-electronic.com
[not found] ` <c8f1005070512292aebd358@mail.gmail.com>
2 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Denk @ 2005-07-05 16:08 UTC (permalink / raw)
To: u-boot
In message <42CAACB0.50101@IfEN.com> you wrote:
>
> I have a own board with an Virtex V2Pro (V2P30) an want to boot u-boot
> on the PPC.
> Starting from the demo-design for the ml300 demo board, I managed to
> compile u-boot 1.1.1 (1.1.2 fails when running the tcl-script with EDK
> 7.1) and could download and run u-boot on my PPC. However, u-boot stops
> after printing
You cannot just use a configuration for one board and expect it to
work on a different board.
Ummm... well, actually you _can_ do that, but you should be prepared
to fail.
> ### No HW ID - assuming ML300
> DRAM: 128 MB
Seems your SDRAM initialization is misconfigured and/or broken.
> I get no further output afterwards. Another strange thing is, that I
> only have 32MB RAM on board but not 128MB as the ml300 has. However, I
> could not find any hardcoded RAM size in the source files for the ml300.
>
> Does anybody has an idea? I found the comment :
You missed to port U-Boot to your hardware. Go back to square 0. Read
the README (porting guide section) and do what needs to be done.
> in the ./lib_i386/board.c, however, there is no appropriate warning in
What has the x86 code to do with that? [Nothing!]
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
That was the thing about deserts. They had their own gravity. They
sucked you into the centre. - Terry Pratchett, _Small Gods_
^ permalink raw reply [flat|nested] 8+ messages in thread
* Antwort: [U-Boot-Users] Problem starting u-boot on Xilinx V2P
2005-07-05 15:52 [U-Boot-Users] Problem starting u-boot on Xilinx V2P Thorsten Lueck
2005-07-05 16:08 ` Wolfgang Denk
@ 2005-07-06 6:33 ` andreas_schmidt at ifm-electronic.com
[not found] ` <c8f1005070512292aebd358@mail.gmail.com>
2 siblings, 0 replies; 8+ messages in thread
From: andreas_schmidt at ifm-electronic.com @ 2005-07-06 6:33 UTC (permalink / raw)
To: u-boot
Hi
How Wolfgang says its the best that you at first read the README file for better
understanding.
But you find the config for RAM
/board/xilinx/ml300/ml300.c
this functions name is initdram(int board_type)
hope could help you
best regards
Thorsten Lueck
<T.Lueck@IfEN.com>
Gesendet von: An
u-boot-users-admin at list u-boot-users at lists.sourceforge.net
s.sourceforge.net Kopie
Thema
05.07.2005 17:52 [U-Boot-Users] Problem starting u-boot on
Xilinx V2P
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I have a own board with an Virtex V2Pro (V2P30) an want to boot u-boot
on the PPC.
Starting from the demo-design for the ml300 demo board, I managed to
compile u-boot 1.1.1 (1.1.2 fails when running the tcl-script with EDK
7.1) and could download and run u-boot on my PPC. However, u-boot stops
after printing
U-Boot 1.1.1 (Jul 5 2005 - 16:50:28)
### No HW ID - assuming ML300
DRAM: 128 MB
I get no further output afterwards. Another strange thing is, that I
only have 32MB RAM on board but not 128MB as the ml300 has. However, I
could not find any hardcoded RAM size in the source files for the ml300.
Does anybody has an idea? I found the comment :
/*
* WARNING: this code looks "cleaner" than the PowerPC version, but
* has the disadvantage that you either get nothing, or everything.
* On PowerPC, you might see "DRAM: " before the system hangs - which
* gives a simple yet clear indication which part of the
* initialization if failing.
*/
in the ./lib_i386/board.c, however, there is no appropriate warning in
static int init_func_ram (void)
of ./lib_ppc/board.c
Thanks in advance,
Thorsten L?ck
- --
IfEN - Gesellschaft f?r Satellitennavigation mbH
Dipl. Ing. Thorsten L?ck
Tel.: +49 8121 2238-25
Fax : +49 8121 2238-11
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCyqyuQDwjNlk95KYRAmuIAJsFYHOlYn1+MJzg8tNZ1+sJQYhOFwCg5LnR
2HsWS999Jatd1N8w+3kjArg=
=kltH
-----END PGP SIGNATURE-----
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&op=click
_______________________________________________
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] 8+ messages in thread
* [U-Boot-Users] Problem starting u-boot on Xilinx V2P
2005-07-05 16:08 ` Wolfgang Denk
@ 2005-07-06 6:46 ` Thorsten Lueck
2005-07-06 8:01 ` Wolfgang Denk
0 siblings, 1 reply; 8+ messages in thread
From: Thorsten Lueck @ 2005-07-06 6:46 UTC (permalink / raw)
To: u-boot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Wolfgang Denk wrote:
> You cannot just use a configuration for one board and expect it to
> work on a different board.
My board is not as different to ml300 as one may think - indeed, it uses
the same Virtex2Pro FPGA with nearly the same configuration (wrt. UART,
I2C, EMAC). Therefore using ml300 as a starting point for my design
really makes sense. Of course I used the BSP compiled for my board using
Xilinx EDK 7.1
> You missed to port U-Boot to your hardware. Go back to square 0. Read
> the README (porting guide section) and do what needs to be done.
Well - I _did_ port it (in the sense of using the appropriate BSP) -
however, I modified ML300 source instead of creating a new
board-directory ...
>
>>in the ./lib_i386/board.c, however, there is no appropriate warning in
>
> What has the x86 code to do with that? [Nothing!]
Well - nothing - your are right - instead of the comment, that the
PowerPC code may hang immediatley _after_ "DRAM:" printout. This led me
to the assumption, that my problem may be well known ...
Best regards,
Thorsten
- --
IfEN - Gesellschaft f?r Satellitennavigation mbH
Dipl. Ing. Thorsten L?ck
Tel.: +49 8121 2238-25
Fax : +49 8121 2238-11
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCy34yQDwjNlk95KYRAm4vAJ0RGmdP6J+fu6hQdno9/FH0wBKwewCg0rIW
roq+pqfElk34fcgcG++bxLw=
=uFWp
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] Problem starting u-boot on Xilinx V2P
[not found] ` <c8f1005070512292aebd358@mail.gmail.com>
@ 2005-07-06 6:52 ` Thorsten Lueck
0 siblings, 0 replies; 8+ messages in thread
From: Thorsten Lueck @ 2005-07-06 6:52 UTC (permalink / raw)
To: u-boot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Cedric VINCENT wrote:
>>Another strange thing is, that I
>>only have 32MB RAM on board but not 128MB as the ml300 has. However, I
>>could not find any hardcoded RAM size in the source files for the ml300.
>
> Take a look into board/xilinx/ml300/ml300.c, it *is* hardcoded !
Indeed - that was the problem - I greped for the size (in hex and dec)
but _not_ for a formular ;-)
> As Wolgang said, "you cannot just use a configuration for one board
> and expect it to work on a different board". But if you change your
> config file and U-Boot still hangs after "Now running in RAM at ....."
> (don't forget to #define DEBUG) it may be a U-Boot incompatibility
> with some (new) version of GCC. If so, please mail me !
Well, probably I can - changing the size to the real size (which is 32MB
instead of 128) - u-boot boots up to the prompt. Probably some memory
test addressed memory above 32MB. So it works now.
Regarding the version of gcc, I use
ppc_405-gcc (GCC) 3.3.1 (MontaVista 3.3.1-3.0.10.0300532 2003-12-24)
Thanks for your helpfull hint!
Best regards,
Thorsten L?ck
- --
IfEN - Gesellschaft f?r Satellitennavigation mbH
Dipl. Ing. Thorsten L?ck
Tel.: +49 8121 2238-25
Fax : +49 8121 2238-11
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCy3+kQDwjNlk95KYRAiMaAKDgp7miMmBTrdYvuQiTmv22J0ChhQCgr2bs
+nJ4OJ7toS1avTRJ8YxkZp4=
=cSLW
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] Problem starting u-boot on Xilinx V2P
2005-07-06 6:46 ` Thorsten Lueck
@ 2005-07-06 8:01 ` Wolfgang Denk
2005-07-06 15:16 ` Thorsten Lueck
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Denk @ 2005-07-06 8:01 UTC (permalink / raw)
To: u-boot
In message <42CB7E35.8090805@IfEN.com> you wrote:
>
> My board is not as different to ml300 as one may think - indeed, it uses
Even minimal diffeences can have significant effects. Feel free to
ignore my advice, but please don't complain if you run into problems
later.
> > You missed to port U-Boot to your hardware. Go back to square 0. Read
> > the README (porting guide section) and do what needs to be done.
> Well - I _did_ port it (in the sense of using the appropriate BSP) -
No, you did not. For example, you missed to adapt the SDRAM initialization.
> PowerPC code may hang immediatley _after_ "DRAM:" printout. This led me
> to the assumption, that my problem may be well known ...
It is. It is actually a FAQ.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Don't put off for tomorrow what you can do today, because if you
enjoy it today you can do it again tomorrow.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] Problem starting u-boot on Xilinx V2P
2005-07-06 8:01 ` Wolfgang Denk
@ 2005-07-06 15:16 ` Thorsten Lueck
2005-07-06 19:58 ` Wolfgang Denk
0 siblings, 1 reply; 8+ messages in thread
From: Thorsten Lueck @ 2005-07-06 15:16 UTC (permalink / raw)
To: u-boot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Wolfgang Denk wrote:
> In message <42CB7E35.8090805@IfEN.com> you wrote:
>>My board is not as different to ml300 as one may think - indeed, it uses
>
> Even minimal diffeences can have significant effects. Feel free to
> ignore my advice, but please don't complain if you run into problems
> later.
>
>>>You missed to port U-Boot to your hardware. Go back to square 0. Read
>>>the README (porting guide section) and do what needs to be done.
>>Well - I _did_ port it (in the sense of using the appropriate BSP) -
>
> No, you did not. For example, you missed to adapt the SDRAM initialization.
>
>>PowerPC code may hang immediatley _after_ "DRAM:" printout. This led me
>>to the assumption, that my problem may be well known ...
>
> It is. It is actually a FAQ.
>
> Best regards,
>
> Wolfgang Denk
>
Whatsoever - I started using Xilinx application note XAPP542, which
advised to start using ml300 design and generate a new BSP using EDK.
Unfortunately the DRAM size was hardcoded in the board driver source
ml300.c instead of using (the available) hash-defines. I fixed this and
can therefore provide a patch if wanted.
I realized, that the uboot-1.1.1 version supplied by Xilinx within the
attachment of XAPP542 is not identical to the original version. Several
patches and improvements has been made by Xilinx, which I cannot find in
the acutal source (even 1.1.2 or cvs; indeed, 1.1.2 and cvs are almost
the same for the xilinx board support package).
One problem when using EDK is, that variables within the tcl-script
uboot_v2_1_0.tcl are declared "global" instead of "variable", which
leads to errors of "unknown variables" in EDK. Xilinx fixed this to
"variable" in their distributed version. Are there any reasons (wrt
ELDK) why to use "global" instead of "variable"?
However, it seems, that the Xilinx version runs almost well (after some
minor adoptations).
Thanks for your help and worthwhile hints,
Thorsten
- --
IfEN - Gesellschaft f?r Satellitennavigation mbH
Dipl. Ing. Thorsten L?ck
Tel.: +49 8121 2238-25
Fax : +49 8121 2238-11
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCy/W4QDwjNlk95KYRAhPZAJwLqJqNJw/qVbBSs6M7x6f0Ycib5QCglMjf
XBlu7e1SmHSzHDH5fYsL76Q=
=FZsE
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] Problem starting u-boot on Xilinx V2P
2005-07-06 15:16 ` Thorsten Lueck
@ 2005-07-06 19:58 ` Wolfgang Denk
0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2005-07-06 19:58 UTC (permalink / raw)
To: u-boot
In message <42CBF5BA.5040409@IfEN.com> you wrote:
>
> Whatsoever - I started using Xilinx application note XAPP542, which
> advised to start using ml300 design and generate a new BSP using EDK.
> Unfortunately the DRAM size was hardcoded in the board driver source
> ml300.c instead of using (the available) hash-defines. I fixed this and
> can therefore provide a patch if wanted.
Please do. But BTW: no matter if your hard-code a number or use a
preprocessor define - both ways are a poor solution and not the
original U-Boot style you should strive for. Normally you shoult
auto-detect the type and size of memory in your system using the
get_ram_size() function [in common/memsize.c].
> I realized, that the uboot-1.1.1 version supplied by Xilinx within the
> attachment of XAPP542 is not identical to the original version. Several
> patches and improvements has been made by Xilinx, which I cannot find in
> the acutal source (even 1.1.2 or cvs; indeed, 1.1.2 and cvs are almost
> the same for the xilinx board support package).
We live with what we get contributed back...
> One problem when using EDK is, that variables within the tcl-script
> uboot_v2_1_0.tcl are declared "global" instead of "variable", which
> leads to errors of "unknown variables" in EDK. Xilinx fixed this to
> "variable" in their distributed version. Are there any reasons (wrt
> ELDK) why to use "global" instead of "variable"?
Is this a typo? Our ELDK has nothing to do with this. From the U-Boot
code point of view (which is ANSI C) I have not the faintest idea
what "variable" or "global" means.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
What about WRITING it first and rationalizing it afterwords? :-)
- Larry Wall in <8162@jpl-devvax.JPL.NASA.GOV>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-07-06 19:58 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-05 15:52 [U-Boot-Users] Problem starting u-boot on Xilinx V2P Thorsten Lueck
2005-07-05 16:08 ` Wolfgang Denk
2005-07-06 6:46 ` Thorsten Lueck
2005-07-06 8:01 ` Wolfgang Denk
2005-07-06 15:16 ` Thorsten Lueck
2005-07-06 19:58 ` Wolfgang Denk
2005-07-06 6:33 ` Antwort: " andreas_schmidt at ifm-electronic.com
[not found] ` <c8f1005070512292aebd358@mail.gmail.com>
2005-07-06 6:52 ` Thorsten Lueck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox