Andrew Dyer | 1 Mar 2005 02:27
Picon

[patch] fix ext2load failing on devices other than 0

CHANGELOG:
* Patch by Andrew Dyer, 28 February 2005:
fix where ext2load command passed incorrect pointer to
get_partition_info() resulting in load failure for devices other
than 0

-- 
Hardware, n.:
        The parts of a computer system that can be kicked.
Index: common/cmd_ext2.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/common/cmd_ext2.c,v
retrieving revision 1.2
diff -p -u -r1.2 cmd_ext2.c
--- common/cmd_ext2.c	4 Feb 2005 15:02:08 -0000	1.2
+++ common/cmd_ext2.c	1 Mar 2005 01:19:14 -0000
 <at>  <at>  -223,7 +223,7  <at>  <at>  int do_ext2load (cmd_tbl_t *cmdtp, int f
 	PRINTF("Using device %s%d, partition %d\n", argv[1], dev, part);

 	if (part != 0) {
-		if (get_partition_info (&dev_desc[dev], part, &info)) {
+		if (get_partition_info (dev_desc, part, &info)) {
 			printf ("** Bad partition %d **\n", part);
 			return(1);
 		}

Reinhard Arlt | 1 Mar 2005 03:04
Picon
Favicon

Re: [patch] fix ext2load failing on devices other than 0

Hello,

then the same bug may also be in "cmd_reiser.c".

Reinhard

Andrew Dyer wrote:
> CHANGELOG:
> * Patch by Andrew Dyer, 28 February 2005:
> fix where ext2load command passed incorrect pointer to
> get_partition_info() resulting in load failure for devices other
> than 0
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: common/cmd_ext2.c
> ===================================================================
> RCS file: /cvsroot/u-boot/u-boot/common/cmd_ext2.c,v
> retrieving revision 1.2
> diff -p -u -r1.2 cmd_ext2.c
> --- common/cmd_ext2.c	4 Feb 2005 15:02:08 -0000	1.2
> +++ common/cmd_ext2.c	1 Mar 2005 01:19:14 -0000
>  <at>  <at>  -223,7 +223,7  <at>  <at>  int do_ext2load (cmd_tbl_t *cmdtp, int f
>  	PRINTF("Using device %s%d, partition %d\n", argv[1], dev, part);
>  
>  	if (part != 0) {
> -		if (get_partition_info (&dev_desc[dev], part, &info)) {
> +		if (get_partition_info (dev_desc, part, &info)) {
(Continue reading)

Eckhard Doll | 1 Mar 2005 09:16

Re: das u-boot and disc on chip

Wolfgang Denk schrieb:
> 
> I'm not exactly sure what you mean by "boot device". It is no problem

In this case the part of the board design which appears at address 0x00 
of lh7a404 after reset.

> You would have to write your own separate bootstrap loader then. IMHO
> this is not woth the trouble.

Yes, shouldn't be. Initialise ram, move and jump.

I'm quite new to this arm and embedded linux stuff and played a bit with 
a kev7a400 board and a patched u-boot-0.45 and now I will use das u-boot 
with a 2.6-kernel on a small lh7a404-design with mentioned DoC and some 
sdram and several io's

Any hint or doc-pointer on adaption of das u-boot to this lh7a404 soc? 
As it is a SoC, there shouldn't be much board-specific stuff to be done 
for a boot-loader.

Regards,
--

-- 
Eckhard Doll
Messtechnik / Metrology TE-SM
ESEM Grünau GmbH & Co. KG
D-88677 Markdorf
Germany

Phone +49.7544.9583.27
(Continue reading)

William Yeung | 1 Mar 2005 10:20
Picon
Favicon

MCF5249 support in u-boot

Hello,
 
I just started using u-boot on a Coldfire MCF5249 board. Could anyone let me know how to choose the Ethernet driver in the u-boot configuration?
 
Also, is there anyone who has used the u-boot 1.1.2 successfully in a Coldfire MCF5249 board?
 
Thanks.
Kit.

Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
Stefan Roese | 1 Mar 2005 10:44
Picon
Picon
Favicon

Re: MCF5249 support in u-boot

Hello Kit,

On Tuesday 01 March 2005 10:20, William Yeung wrote:

> I just started using u-boot on a Coldfire MCF5249 board. Could anyone let
> me know how to choose the Ethernet driver in the u-boot configuration?

Please correct me if I am wrong, but I don't think the MCF5249 has ethernet 
build in. So you would have to connect an external ethernet controller.

> Also, is there anyone who has used the u-boot 1.1.2 successfully in a
> Coldfire MCF5249 board?

Yes, I did. You can find the "TASREG" board which uses the MCF5249 in the 
current CVS (please don't use 1.1.2, use current cvs).

Best regards,
Stefan

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
nreddy | 1 Mar 2005 12:13
Favicon

"How to trim the U-boot for IBM PPC 405EP board"

Hi All,
I am newbie to U-boot.
I am planning to use u-boot for my customized IBM PPC 405 EP board.
Which includes spartan3s FPGA,89LPC932 controller,GM2120 Genesis chip,4MB
Flash,32 MB SDRAM.
Can you please help me in trimming the uboot ver 1.0.0.
Which is the first file that gets executed at power on the board.
I am going through the source code,but i am in a bit confusion to figure
out the flow of u-boot files.

Thanks in Advance,
Nag

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Wolfgang Denk | 1 Mar 2005 16:46
Picon
Picon
Favicon

Re: [patch] fix ext2load failing on devices other than 0

In message <c166aa9f0502281727ede4eb <at> mail.gmail.com> you wrote:
>
> * Patch by Andrew Dyer, 28 February 2005:
> fix where ext2load command passed incorrect pointer to
> get_partition_info() resulting in load failure for devices other
> than 0

Thanks for pointing out - checked in.

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
"Get back to your stations!"
"We're beaming down to the planet, sir."
	-- Kirk and Mr. Leslie, "This Side of Paradise",
	   stardate 3417.3

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Eckhard Doll | 1 Mar 2005 16:46

Re: das u-boot and disc on chip

Excuse me if its going OT now. Maybe, you can point me, out of your 
embedded experience, to a better source.

Wolfgang Denk schrieb:
> 
> I didn't mean to say that, but if you feel like it - ok. Anyway:
> please see CanUBootBeConfiguredSuchThatItCanBeStartedInRAM.html
> [Read: don't expect support]
> 
> Ummm... I'm afraid I have to destroy your illusions. This will  be  a
> full port like any other.
no illusions, maybe it sounds like, yes. I'm just thrown into this 
project with an existing design and looking for solutions. The board 
consists of an lh7a404(arm922t-core),2x64MB SDRAM,64MB Flash DoC, 
Ethernet, USB, 2xUART and extension bus, nothing else. My preferred OS 
is, of course, Linux.

If I understood you right, U-Boot is maybe not the best choice for me, 
because there are only 2KB XIP Flash available at address 0x00000000 on 
startup.

Because of the several boot-modes, the lh7a404 offers, I'm thinking in 
the meantime about to ommit the loader completely and copy the kernel 
image directly from DoC to ram and jump there.

Regards,

--

-- 
Eckhard Doll
Messtechnik / Metrology TE-SM
ESEM Grünau GmbH & Co. KG
D-88677 Markdorf
Germany

Phone +49.7544.9583.27
Fax +49.7544.9583.60
mailto: doll <at> esem.com
http://www.esem.com

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
Stefan Roese | 1 Mar 2005 17:02
Picon
Picon
Favicon

Re: MCF5249 support in u-boot

Hi Kit,

On Tuesday 01 March 2005 15:41, William Yeung wrote:

> I used the external ethernet controller RTL8019 in my MCF5249 board. How
> can I choose the Ethernet driver for my board?

What do you mean with choose? You seem to have chosen already: the RTL8019. So 
no choice left. :-(

You probably mean how to integrate the driver for the RTL8019 into your U-Boot 
image. After scanning through the source code I found that a driver for the 
RTL8019 exists (drivers/rtl8019.c). But this driver does not seem to be used 
by any board in the current cvs. So try to integrate the current driver into 
your U-Boot port and fix possible problems.

Best regards,
Stefan

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Wolfgang Denk | 1 Mar 2005 17:15
Picon
Picon
Favicon

Re: das u-boot and disc on chip

In message <42248E52.8070109 <at> esem.com> you wrote:
> 
> If I understood you right, U-Boot is maybe not the best choice for me, 
> because there are only 2KB XIP Flash available at address 0x00000000 on 
> startup.

I wouldn't put it like that. IMO your hardware is not the best choice
for you because it is missing a proper boot ROM (256 kB  flash  would
be  just  perfect)  to  allow  you using a decent boot loader without
jumping in loops.

> Because of the several boot-modes, the lh7a404 offers, I'm thinking in 
> the meantime about to ommit the loader completely and copy the kernel 
> image directly from DoC to ram and jump there.

And who will initialize the hardware for Linux?  Who  will  tell  the
Linux  kernel  how  much  memory you have, and pass all the other bot
arguments to it? And how will you get LInux into the DoC in the first
place?

It's software, so all things are possible. But  not  all  things  are
reasonable.

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
You can do this in a number of ways.     IBM chose to do all of them.
Why do you find that funny?        -- D. Taylor, Computer Science 350

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

Gmane