public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Re: environment in flash not loaded...
@ 2003-11-14 19:09 Richard Klingler
  2003-11-14 19:41 ` Nye Liu
  0 siblings, 1 reply; 19+ messages in thread
From: Richard Klingler @ 2003-11-14 19:09 UTC (permalink / raw)
  To: u-boot

> Yup. This is still a problem for many boards.
> 
> Wolfgang this is the one we discussed a long time ago.
> 

So what is actually different on those platforms which work
and those who don't?

Got two different 8260 boards here and on one saving/loading
environment is just fine...


rick

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: environment in flash not loaded...
  2003-11-14 19:09 [U-Boot-Users] Re: environment in flash not loaded Richard Klingler
@ 2003-11-14 19:41 ` Nye Liu
  2003-11-14 20:19   ` Wolfgang Denk
  0 siblings, 1 reply; 19+ messages in thread
From: Nye Liu @ 2003-11-14 19:41 UTC (permalink / raw)
  To: u-boot

here is the thread

http://sourceforge.net/mailarchive/message.php?msg_id=5315855

On Fri, Nov 14, 2003 at 09:09:59PM +0200, Richard Klingler wrote:
> > Yup. This is still a problem for many boards.
> > 
> > Wolfgang this is the one we discussed a long time ago.
> > 
> 
> So what is actually different on those platforms which work
> and those who don't?
> 
> Got two different 8260 boards here and on one saving/loading
> environment is just fine...
> 
> 
> rick

-- 
Nye Liu
nliu at mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: environment in flash not loaded...
  2003-11-14 19:41 ` Nye Liu
@ 2003-11-14 20:19   ` Wolfgang Denk
  2003-11-14 22:02     ` Nye Liu
  2003-11-20  2:10     ` 최광일
  0 siblings, 2 replies; 19+ messages in thread
From: Wolfgang Denk @ 2003-11-14 20:19 UTC (permalink / raw)
  To: u-boot

In message <20031114194131.GA17393@zumanetworks.com> you wrote:
> here is the thread
> 
> http://sourceforge.net/mailarchive/message.php?msg_id=5315855

Can you please check first, before spreading rumors? I think this has
been fixed long ago. I might have missed a thing, though.  So  please
check.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Conscious is when you are aware of something, and conscience is  when
you wish you weren't.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: environment in flash not loaded...
  2003-11-14 20:19   ` Wolfgang Denk
@ 2003-11-14 22:02     ` Nye Liu
  2003-11-20  2:10     ` 최광일
  1 sibling, 0 replies; 19+ messages in thread
From: Nye Liu @ 2003-11-14 22:02 UTC (permalink / raw)
  To: u-boot

Sorry, yes, you are correct, the 8xx/FADS is fixed in CVS.

I was looking at an older CVS tree.

On Fri, Nov 14, 2003 at 09:19:31PM +0100, Wolfgang Denk wrote:
> In message <20031114194131.GA17393@zumanetworks.com> you wrote:
> > here is the thread
> > 
> > http://sourceforge.net/mailarchive/message.php?msg_id=5315855
> 
> Can you please check first, before spreading rumors? I think this has
> been fixed long ago. I might have missed a thing, though.  So  please
> check.
> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
> Conscious is when you are aware of something, and conscience is  when
> you wish you weren't.

-- 
Nye Liu
nliu at mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: environment in flash not loaded...
  2003-11-14 20:19   ` Wolfgang Denk
  2003-11-14 22:02     ` Nye Liu
@ 2003-11-20  2:10     ` 최광일
  2003-11-20  8:12       ` Wolfgang Denk
  1 sibling, 1 reply; 19+ messages in thread
From: 최광일 @ 2003-11-20  2:10 UTC (permalink / raw)
  To: u-boot

Dear All 
I'm using a u-boot 1.0.0 which is released 2003-10-30 for SMDK2410
Board made by Samsung electronics.
I patched u-boot for NAND Booting. It works good.
When I boot and set ipddr, serverip, gatewayip and so on using setenv..
it works good too. 
But save  values such as ipaddr, serverip, gatewayip, ethaddr .. using
saveenv. U-boot return messages like that 
Unknown command 'saveenv' - try 'help' 

printenv, setenv ,saveenv command works good before patching and using
AMD NOR Flash

which is the problem? 

Thank you very much .

Best regards.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: environment in flash not loaded...
  2003-11-20  2:10     ` 최광일
@ 2003-11-20  8:12       ` Wolfgang Denk
  2003-11-20 19:43         ` [U-Boot-Users] Help request, MPC5200 Lite -- i386 cross-compiling Victor Wren
  0 siblings, 1 reply; 19+ messages in thread
From: Wolfgang Denk @ 2003-11-20  8:12 UTC (permalink / raw)
  To: u-boot

In message <000401c3af0b$784673d0$63c1dba8@swcenter.sec.samsung.co.kr> you wrote:
>
> I patched u-boot for NAND Booting. It works good.
...
> Unknown command 'saveenv' - try 'help' 
> 
> printenv, setenv ,saveenv command works good before patching and using
> AMD NOR Flash
> 
> which is the problem? 

There is at least one bug in the patch?


Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Until you walk a mile in another man's moccasins, you  can't  imagine
the smell.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Help request, MPC5200 Lite -- i386 cross-compiling
  2003-11-20  8:12       ` Wolfgang Denk
@ 2003-11-20 19:43         ` Victor Wren
  2003-11-20 19:56           ` Nye Liu
                             ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Victor Wren @ 2003-11-20 19:43 UTC (permalink / raw)
  To: u-boot

I'm trying to get a boot loader running on the 5200, but I'm getting stuck at 
the compilation of the images.  I only have a Pentium2 Redhat 9 environment 
to work from.  I downloaded GCC 3.3.1, bintools 2.11.90 and built them both 
with a target of powerpc-linux.

To build the MPC5200LITE images, I used 'make MPC5200LITE' which in rummaging 
through the configuration files in the "board" directory seems to select the 
correct defaults for flash size and such on the rev 2 board.  My problem 
seems to be in my cross-compiler toolset in any case.

I changed the line CROSS_COMPILE = ppc_8xx-
to CROSS_COMPILE = powerpc-linux- because that seemed to be the architecture 
that it was using (when I didn't change it, I got a goodly pile of ppc_8xx 
related failures).  Now the make largely goes ahead, but when it hits a 
certain point (stubs.c in the 'examples' directory) it errors out with many 
repetitions of "Error: Relocation cannot be done when using -mrelocatable"

This would seem to be something dead-simple that I'm missing in building a 
cross-compiler, because nobody else seems to have this problem.  Any 
suggestions?  I built GCC without changing the prefix, so it built in 
/usr/local/powerpc-linux and /usr/local/lib/gcc-lib/powerpc-linux/  Do I need 
to add something to ld.so.conf?  The Makefile does seem to be finding the 
path.  Sorry about my ignorance.  I'm really a mechanical designer in 
disguise, and I'm definitely new to cross-compiling.

I have one other question:  In the archives for the forum, I noticed a 
contribution to the CVS regarding a low-loading image config.  The assertion 
was that this image would load at 0xFF000000, and that moving the boot jumper 
to the "low" position would boot there.  According to the docs I have from 
Motorola, moving the jumper to the "low" position boots from 0x00000100 
(SDRAM).  High boot is 0xFFF00100 (FLASH)
("Lite5200 Manual.pdf", page 19)

Is there a misprint in the manual?

Thanks,
Victor Wren



Victor Wren
Designer,
Timension Inc.
1350 C Pear Ave
Mountain View CA 94043
(650) 564-9397
Fax: (650) 564-9398
Opinions stated in this letter are not necessarily
those of Timension Inc. or the management.  All
Rights Reserved.  No spitting.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Help request, MPC5200 Lite -- i386 cross-compiling
  2003-11-20 19:43         ` [U-Boot-Users] Help request, MPC5200 Lite -- i386 cross-compiling Victor Wren
@ 2003-11-20 19:56           ` Nye Liu
  2003-11-20 20:44           ` Wolfgang Denk
  2003-12-03 22:03           ` [U-Boot-Users] Re: MPC5200 Lowboot config Victor Wren
  2 siblings, 0 replies; 19+ messages in thread
From: Nye Liu @ 2003-11-20 19:56 UTC (permalink / raw)
  To: u-boot

Use the DENX cross-compiler, unless you are VERY familiar with gcc3.3-isms

Compiling u-boot under gcc3.3 powerpc hosted on x86 is possible, it is
just a HUGE pain getting the environment right unless you have done that
sort of thing before.

On Thu, Nov 20, 2003 at 11:43:38AM -0800, Victor Wren wrote:
> I'm trying to get a boot loader running on the 5200, but I'm getting stuck at 
> the compilation of the images.  I only have a Pentium2 Redhat 9 environment 
> to work from.  I downloaded GCC 3.3.1, bintools 2.11.90 and built them both 
> with a target of powerpc-linux.
> 
> To build the MPC5200LITE images, I used 'make MPC5200LITE' which in rummaging 
> through the configuration files in the "board" directory seems to select the 
> correct defaults for flash size and such on the rev 2 board.  My problem 
> seems to be in my cross-compiler toolset in any case.
> 
> I changed the line CROSS_COMPILE = ppc_8xx-
> to CROSS_COMPILE = powerpc-linux- because that seemed to be the architecture 
> that it was using (when I didn't change it, I got a goodly pile of ppc_8xx 
> related failures).  Now the make largely goes ahead, but when it hits a 
> certain point (stubs.c in the 'examples' directory) it errors out with many 
> repetitions of "Error: Relocation cannot be done when using -mrelocatable"
> 
> This would seem to be something dead-simple that I'm missing in building a 
> cross-compiler, because nobody else seems to have this problem.  Any 
> suggestions?  I built GCC without changing the prefix, so it built in 
> /usr/local/powerpc-linux and /usr/local/lib/gcc-lib/powerpc-linux/  Do I need 
> to add something to ld.so.conf?  The Makefile does seem to be finding the 
> path.  Sorry about my ignorance.  I'm really a mechanical designer in 
> disguise, and I'm definitely new to cross-compiling.
> 
> I have one other question:  In the archives for the forum, I noticed a 
> contribution to the CVS regarding a low-loading image config.  The assertion 
> was that this image would load at 0xFF000000, and that moving the boot jumper 
> to the "low" position would boot there.  According to the docs I have from 
> Motorola, moving the jumper to the "low" position boots from 0x00000100 
> (SDRAM).  High boot is 0xFFF00100 (FLASH)
> ("Lite5200 Manual.pdf", page 19)
> 
> Is there a misprint in the manual?
> 
> Thanks,
> Victor Wren
> 
> 
> 
> Victor Wren
> Designer,
> Timension Inc.
> 1350 C Pear Ave
> Mountain View CA 94043
> (650) 564-9397
> Fax: (650) 564-9398
> Opinions stated in this letter are not necessarily
> those of Timension Inc. or the management.  All
> Rights Reserved.  No spitting.
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users

-- 
Nye Liu
nliu at mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Help request, MPC5200 Lite -- i386 cross-compiling
  2003-11-20 19:43         ` [U-Boot-Users] Help request, MPC5200 Lite -- i386 cross-compiling Victor Wren
  2003-11-20 19:56           ` Nye Liu
@ 2003-11-20 20:44           ` Wolfgang Denk
  2003-11-26 18:34             ` [U-Boot-Users] Help request, MPC5200 Lite, Monitor Victor Wren
  2003-12-03 22:03           ` [U-Boot-Users] Re: MPC5200 Lowboot config Victor Wren
  2 siblings, 1 reply; 19+ messages in thread
From: Wolfgang Denk @ 2003-11-20 20:44 UTC (permalink / raw)
  To: u-boot

In message <3FBCA8EA.14100.319B6E@localhost> you wrote:
> I'm trying to get a boot loader running on the 5200, but I'm getting stuck at 
> the compilation of the images.  I only have a Pentium2 Redhat 9 environment 
> to work from.  I downloaded GCC 3.3.1, bintools 2.11.90 and built them both 
> with a target of powerpc-linux.

If you don't realy want to learn all the pitfalls  and  obstacles  of
building  a  working cross toolchain you can simply download our ELDK
and use this one.

See http://www.denx.de/twiki/bin/view/DULG/ELDK

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Es sind ?berhaupt nur die Dummk?pfe, die sich den Befehlen der  M?ch-
tigen  widersetzen.  Um  sie  zu ruinieren ist es genug, ihre Befehle
treu zu erf?llen.                  - Peter Hacks: "Die sch?ne Helena"

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Help request, MPC5200 Lite, Monitor
  2003-11-20 20:44           ` Wolfgang Denk
@ 2003-11-26 18:34             ` Victor Wren
  2003-11-26 22:41               ` Wolfgang Denk
  0 siblings, 1 reply; 19+ messages in thread
From: Victor Wren @ 2003-11-26 18:34 UTC (permalink / raw)
  To: u-boot

Hey, there.  I am working with the MPC5200 Lite, and thanks to the 
suggestions of using ELDK, I successufully (I think) compiled a boot image 
for the 5200 under RH9_i386.  I used the patch for lowboot (although, because 
patch on RH9 didn't seem to like the diff file regardless of "-p" levels, I 
had to apply it with VIm).  I move the jumper over, hit the reset button, and 
I get this on minicom:
===============================
U-Boot 1.0.1 (Nov 24 2003 - 17:10:38)

CPU:   MPC5200 (JTAG ID 0001101d) at 399.999 MHz
       Bus 133 MHz, IPB 66 MHz, PCI 33 MHz
Board: Motorola MPC5200 (IceCube)
I2C:   86 kHz, ready
DRAM:  64 MB
FLASH: 16 MB
PCI:   Bus Dev VenId DevId Class Int
        00  1a  1057  5803  0680  00
In:    serial
Out:   serial
Err:   serial
Net:   FEC ETHERNET

Type "run flash_nfs" to mount root filesystem over NFS

Hit any key to stop autoboot:  0
## Booting image at 00100000 ...
Bad Magic Number
=>
=============================
The countdown starts at 5, but it doesn't seem to be recognizing 
keystrokes before it plunges into the void of random memory.

The BAUD settings appear to be the same as I've been
successfully using with the Motorola dMon (115200), and it seems to be 
writing to minicom quite legibly, but it doesn't seem
to be reading the serial port.  Any suggestions where I could look to see 
why?  The ethernet is at its default of bootp, but I didn't think that shold 
make any difference to the serial terminal.  I'm also curious about it 
booting the image at 0x100000 (doesn't exist, obviously), but I expect I'll 
figure that out once I see how to set up initrd (or whatever ramdisk is 
needed).

Thanks, 
Victor Wren

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Help request, MPC5200 Lite, Monitor
  2003-11-26 18:34             ` [U-Boot-Users] Help request, MPC5200 Lite, Monitor Victor Wren
@ 2003-11-26 22:41               ` Wolfgang Denk
  0 siblings, 0 replies; 19+ messages in thread
From: Wolfgang Denk @ 2003-11-26 22:41 UTC (permalink / raw)
  To: u-boot

In message <3FC48198.17695.22A29D@localhost> you wrote:
> Hey, there.  I am working with the MPC5200 Lite, and thanks to the 
> suggestions of using ELDK, I successufully (I think) compiled a boot image 
> for the 5200 under RH9_i386.  I used the patch for lowboot (although, because 

Yes, your boot log looks fine.

> patch on RH9 didn't seem to like the diff file regardless of "-p" levels, I 
> had to apply it with VIm).  I move the jumper over, hit the reset button, and 
> I get this on minicom:
...
> The countdown starts at 5, but it doesn't seem to be recognizing 
> keystrokes before it plunges into the void of random memory.

Did you make sure to disable all handshake (software and hardware) in
minicom? Most probably minicom is waiting for  some  modem  handshake
lines which are not set by the MPC5200 serial driver.

Better, avoid minicom. See
http://www.denx.de/twiki/bin/view/DULG/SystemSetup#Section_4.1.

> make any difference to the serial terminal.  I'm also curious about it 
> booting the image at 0x100000 (doesn't exist, obviously), but I expect I'll 

This is just the default boot sequence.

> figure that out once I see how to set up initrd (or whatever ramdisk is 
> needed).

Well, you can also read the output and follow the instructions:
Type "run flash_nfs" to mount root filesystem over NFS

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Respect is a rational process
	-- McCoy, "The Galileo Seven", stardate 2822.3

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: MPC5200 Lowboot config
  2003-11-20 19:43         ` [U-Boot-Users] Help request, MPC5200 Lite -- i386 cross-compiling Victor Wren
  2003-11-20 19:56           ` Nye Liu
  2003-11-20 20:44           ` Wolfgang Denk
@ 2003-12-03 22:03           ` Victor Wren
  2003-12-03 22:47             ` Wolfgang Denk
  2 siblings, 1 reply; 19+ messages in thread
From: Victor Wren @ 2003-12-03 22:03 UTC (permalink / raw)
  To: u-boot

I'm having some trouble with the lowboot config on the MPC5200LITE.

In looking through the configs, I notice, where TEXT_BASE=0xFF000000
#define ENVADDR=CFG_FLASH_BASE+30000

Since the u-boot image goes from FF000000 to FF035250, this would 
appear to drop the environment inside the u-boot code.  This is apparently
confirmed by the fact that when I do saveenv, u-boot will not come up 
anymore.  (this is without setting any environment variables, even).

When I write a virgin copy of u-boot to the flash, the addresses at FF0030000
appear to hold something other than environment values.  After saveenv, they
hold environment variables, and everything after the values is filled with 
zeroes (and u-boot is dead).

Is there a particular reason for having the ENV below the end of the u-boot 
image?  Is there a better place to put it? Possibly the beginning of the next 
sector (0xFF040000)

Victor Wren


Victor Wren
Designer,
Timension Inc.
1350 C Pear Ave
Mountain View CA 94043
(650) 564-9397
Fax: (650) 564-9398
Opinions stated in this letter are not necessarily
those of Timension Inc. or the management.  All
Rights Reserved.  No spitting.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: MPC5200 Lowboot config
  2003-12-03 22:03           ` [U-Boot-Users] Re: MPC5200 Lowboot config Victor Wren
@ 2003-12-03 22:47             ` Wolfgang Denk
  2003-12-04  0:57               ` Victor Wren
  0 siblings, 1 reply; 19+ messages in thread
From: Wolfgang Denk @ 2003-12-03 22:47 UTC (permalink / raw)
  To: u-boot

In message <3FCDED20.12076.98E0C8@localhost> you wrote:
> I'm having some trouble with the lowboot config on the MPC5200LITE.

You are right. There is a bug in this configuration.

> Since the u-boot image goes from FF000000 to FF035250, this would 

This is the problem. The U-Boot image should never get that big. It's a bug.

Please change this:

Index: include/configs/IceCube.h
===================================================================
RCS file: /cvsroot/u-boot/include/configs/IceCube.h,v
retrieving revision 1.15
diff -u -r1.15 IceCube.h
--- include/configs/IceCube.h	6 Nov 2003 23:08:11 -0000	1.15
+++ include/configs/IceCube.h	3 Dec 2003 22:44:09 -0000
@@ -206,7 +206,7 @@
 #   define CFG_RAMBOOT		1
 #endif
 
-#define CFG_MONITOR_LEN		(256 << 10)	/* Reserve 256 kB for Monitor	*/
+#define CFG_MONITOR_LEN		(192 << 10)	/* Reserve 192 kB for Monitor	*/
 #define CFG_MALLOC_LEN		(128 << 10)	/* Reserve 128 kB for malloc()	*/
 #define CFG_BOOTMAPSZ		(8 << 20)	/* Initial Memory map for Linux */
 

> When I write a virgin copy of u-boot to the flash, the addresses at FF0030000
> appear to hold something other than environment values.  After saveenv, they

Yes, there was a configuration error which caused the environment  to
get embedded instead of placed at the intended location.

> Is there a particular reason for having the ENV below the end of the u-boot 
> image?  Is there a better place to put it? Possibly the beginning of the next 
> sector (0xFF040000)

The location at 0x0xFF030000 is OK (as long as  U-Boot  doesn't  grow
much); just the configuration was wrong. Sorry.

Thanks for pointing this out!

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Most legends have their basis in facts.
	-- Kirk, "And The Children Shall Lead", stardate 5029.5

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: MPC5200 Lowboot config
  2003-12-03 22:47             ` Wolfgang Denk
@ 2003-12-04  0:57               ` Victor Wren
  2003-12-04  8:41                 ` Wolfgang Denk
  0 siblings, 1 reply; 19+ messages in thread
From: Victor Wren @ 2003-12-04  0:57 UTC (permalink / raw)
  To: u-boot

> In message <3FCDED20.12076.98E0C8@localhost> you wrote:
> > I'm having some trouble with the lowboot config on the MPC5200LITE.
> 
> You are right. There is a bug in this configuration.

Thanks!  That fixed the problem.  I figured it was something like that when 
the image shrank by one block when I moved the ENV up to FF04000. If I can 
just figure out how to build an initrd when I don't have any of the ppc 
executables, I think I'll be in business.  I think I'm going to have to dust 
off the old Apple 8500 and see if I can figure out the yellowdog install.

Victor Wren

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: MPC5200 Lowboot config
  2003-12-04  0:57               ` Victor Wren
@ 2003-12-04  8:41                 ` Wolfgang Denk
  2003-12-04 23:09                   ` [U-Boot-Users] Re: MPC5200 build Victor Wren
  0 siblings, 1 reply; 19+ messages in thread
From: Wolfgang Denk @ 2003-12-04  8:41 UTC (permalink / raw)
  To: u-boot

Dear Victor,

in message <3FCE15E2.22012.13811A4@localhost> you wrote:
> > 
> > You are right. There is a bug in this configuration.
> 
> Thanks!  That fixed the problem.  I figured it was something like that when 

Excellent. Thanks for the confirmation.

> the image shrank by one block when I moved the ENV up to FF04000. If I can 
> just figure out how to build an initrd when I don't have any of the ppc 
> executables, I think I'll be in business.  I think I'm going to have to dust 

You have all the PPC executables when you install the ELDK :-)
Also you can download a ready-to-run image from our FTP server: see
ftp://ftp.denx.de/pub/LinuxPPC/usr/src/SELF/images/ppc_82xx/

Also see http://www.denx.de/twiki/bin/view/DULG/HowToAddFiles and
http://www.denx.de/twiki/bin/view/DULG/HowToIncreaseSizeOfRamdisk

> off the old Apple 8500 and see if I can figure out the yellowdog install.

There is no real need to do this.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"Though a program be but three lines long,
someday it will have to be maintained."
- The Tao of Programming

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: MPC5200 build
  2003-12-04  8:41                 ` Wolfgang Denk
@ 2003-12-04 23:09                   ` Victor Wren
  2003-12-05  0:30                     ` Wolfgang Denk
  0 siblings, 1 reply; 19+ messages in thread
From: Victor Wren @ 2003-12-04 23:09 UTC (permalink / raw)
  To: u-boot

> You have all the PPC executables when you install the ELDK :-)
> Also you can download a ready-to-run image from our FTP server: see
> ftp://ftp.denx.de/pub/LinuxPPC/usr/src/SELF/images/ppc_82xx/

D'oh!  That works!  I've got it booting BusyBox.  What threw me is I was 
searching all over the ELDK tree for anything that looked like "initrd."  
Once I knew what to look for, I also found another possible in the Metrowerks 
BSP tree.  Didn't think to look for ramdisk.  Next stop:  IDE.  It LOOKS like 
there is support for the internal IDE in the kernel config (MGT 5xxx?)...

I just want to thank you effusively for the vast amount of work you have 
saved me, especially considering that, as a programmer, I'm a total hack.  I 
was wondering, can the other development trees under the ELDK install 
directory be safely deleted?  I only need ppc_82xx-   

Victor Wren



Victor Wren
Designer,
Timension Inc.
1350 C Pear Ave
Mountain View CA 94043
(650) 564-9397
Fax: (650) 564-9398
Opinions stated in this letter are not necessarily
those of Timension Inc. or the management.  All
Rights Reserved.  No spitting.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: MPC5200 build
  2003-12-04 23:09                   ` [U-Boot-Users] Re: MPC5200 build Victor Wren
@ 2003-12-05  0:30                     ` Wolfgang Denk
  2003-12-05 20:29                       ` Victor Wren
  0 siblings, 1 reply; 19+ messages in thread
From: Wolfgang Denk @ 2003-12-05  0:30 UTC (permalink / raw)
  To: u-boot

In message <3FCF4E36.29131.FBD698@localhost> you wrote:
>
> > ftp://ftp.denx.de/pub/LinuxPPC/usr/src/SELF/images/ppc_82xx/
> 
> D'oh!  That works!  I've got it booting BusyBox.  What threw me is I was 

Congrats :-)

> BSP tree.  Didn't think to look for ramdisk.  Next stop:  IDE.  It LOOKS like 
> there is support for the internal IDE in the kernel config (MGT 5xxx?)...

In Linux? yes. But don't try enabling DMA (yet).

> I just want to thank you effusively for the vast amount of work you have 
> saved me, especially considering that, as a programmer, I'm a total hack.  I 
> was wondering, can the other development trees under the ELDK install 
> directory be safely deleted?  I only need ppc_82xx-   

Yes,  of  course  (alternatively  you  can  start   installing   only
ppc_82xx).

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
It seems intuitively obvious to me, which  means  that  it  might  be
wrong.                                                 -- Chris Torek

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: MPC5200 build
  2003-12-05  0:30                     ` Wolfgang Denk
@ 2003-12-05 20:29                       ` Victor Wren
  2003-12-05 20:59                         ` Wolfgang Denk
  0 siblings, 1 reply; 19+ messages in thread
From: Victor Wren @ 2003-12-05 20:29 UTC (permalink / raw)
  To: u-boot

> In message <3FCF4E36.29131.FBD698@localhost> you wrote:
> >
> > > ftp://ftp.denx.de/pub/LinuxPPC/usr/src/SELF/images/ppc_82xx/
> > 
> > D'oh!  That works!  I've got it booting BusyBox.  What threw me is I was 
> 
> Congrats :-)
> 
> > BSP tree.  Didn't think to look for ramdisk.  Next stop:  IDE.  It LOOKS like 
> > there is support for the internal IDE in the kernel config (MGT 5xxx?)...
> 
> In Linux? yes. But don't try enabling DMA (yet).

So far, it looks like it's working good (without DMA :-).  I've been able to 
mount an ext2 partition under a directory in the ramdisk.  One odd thing I've 
had is that I can't seem to use a compressed uImage since I added the IDE 
config.  If I gunzip the vmlinux.gz and use mkimage to create an uncompressed 
uImage, I can upload it to 100000, change kernel_addr to 100000, and run it 
just fine with flash_self (I have the initrd in flash at ff180000).

If I use the SAME vmlinux, and create a gzipped uImage, it starts to boot, 
then has a fatal error while trying to uncompress the image (this happened 
with the image that was created with "make uImage," which is why I started 
monkeying around to begin with.)  Oddly, though, the gzipped uImage file I 
made wasn't exactly the same size as the one "make uImage" made -- different 
gzip versions?  "mkimage -l" seems to like the image, so the header is okay.

I can't help but think that this has something to do with the size, since 
there's not much else that gunzip cares about.  The "stripped" uImage is 
670072 (0xA3978)  bytes compressed (I don't remember the uncompressed size, 
but I think it was about a meg and a half), and the IDE-enabled image is 
785281(0xBFB81) compressed, and 1887000 (0x1CCB18) uncompressed.

Could the gunzipper be running out of allocated space?  I certainly have 
enough flash to store an unzipped kernel image, but I don't like mysteries.  
On this processor, too, it takes only a split second to unzip the kernel, so 
boot speed isn't an issue.

In looking around for memory allocation defs, I did find a typo in 
cmd_bootm.c:
#if defined(CONFIG_MPC5XXXX)

Every other reference I've found refers to "CONFIG_MPC5XXX"

Thanks again!
Victor Wren

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [U-Boot-Users] Re: MPC5200 build
  2003-12-05 20:29                       ` Victor Wren
@ 2003-12-05 20:59                         ` Wolfgang Denk
  0 siblings, 0 replies; 19+ messages in thread
From: Wolfgang Denk @ 2003-12-05 20:59 UTC (permalink / raw)
  To: u-boot

Dear Victor,

in message <3FD07A27.30117.5F1305@localhost> you wrote:
> mount an ext2 partition under a directory in the ramdisk.  One odd thing I've 
> had is that I can't seem to use a compressed uImage since I added the IDE 
> config.  If I gunzip the vmlinux.gz and use mkimage to create an uncompressed 
> uImage, I can upload it to 100000, change kernel_addr to 100000, and run it 
> just fine with flash_self (I have the initrd in flash at ff180000).
> 
> If I use the SAME vmlinux, and create a gzipped uImage, it starts to boot, 
> then has a fatal error while trying to uncompress the image (this happened 

This just means that your kernel image  has  become  too  big  to  be
loaded at 1 MB; try downloading to and booting from 0x200000 instead.

> Could the gunzipper be running out of allocated space?  I certainly have 

It's overwriting the image as it uncompresses.

> In looking around for memory allocation defs, I did find a typo in 
> cmd_bootm.c:
> #if defined(CONFIG_MPC5XXXX)
> 
> Every other reference I've found refers to "CONFIG_MPC5XXX"

Fixed. Well spotted!

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Physician: One upon whom we set our hopes when ill and our dogs  when
well.                                                - Ambrose Bierce

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2003-12-05 20:59 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-14 19:09 [U-Boot-Users] Re: environment in flash not loaded Richard Klingler
2003-11-14 19:41 ` Nye Liu
2003-11-14 20:19   ` Wolfgang Denk
2003-11-14 22:02     ` Nye Liu
2003-11-20  2:10     ` 최광일
2003-11-20  8:12       ` Wolfgang Denk
2003-11-20 19:43         ` [U-Boot-Users] Help request, MPC5200 Lite -- i386 cross-compiling Victor Wren
2003-11-20 19:56           ` Nye Liu
2003-11-20 20:44           ` Wolfgang Denk
2003-11-26 18:34             ` [U-Boot-Users] Help request, MPC5200 Lite, Monitor Victor Wren
2003-11-26 22:41               ` Wolfgang Denk
2003-12-03 22:03           ` [U-Boot-Users] Re: MPC5200 Lowboot config Victor Wren
2003-12-03 22:47             ` Wolfgang Denk
2003-12-04  0:57               ` Victor Wren
2003-12-04  8:41                 ` Wolfgang Denk
2003-12-04 23:09                   ` [U-Boot-Users] Re: MPC5200 build Victor Wren
2003-12-05  0:30                     ` Wolfgang Denk
2003-12-05 20:29                       ` Victor Wren
2003-12-05 20:59                         ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox