Skip to contentSkip to conversation

Question to install ELDK

U-Boot-Users 灰色 轨迹 5 participants 7 messages Dec 9, 2004

lore
Share & tools
lore
#0 lore raw

Hi. I had download ELDK3.1 for arm(arm-2004-11-09.iso). And I prepared a host environment with a full installation of Red Hat Linux 9, and mount the iso file in my host OS, to execute #./install -d /ELDK arm without errors. Add ELDK's bin directory to $PATH.
After doing these, can I use this ELDK compile u-boot? Does the Environment variable CROSS_COMPILE MUST be set?

#1 lore raw
Quoted 3 lines

without errors. Add ELDK's bin directory to $PATH. After doing these, can I use this ELDK compile u-boot? Does the Environment variable CROSS_COMPILE MUST be set?

Next to the fact that testing this will take about the same amount of time as figuring it out by yourself by testing this, the answers are:

1. yes
2. no: it's hardcoded in the Makefile

...
ifeq ($(ARCH),ppc)
CROSS_COMPILE = ppc_82xx-
endif
...

Setting the CROSS_COMPILE is does not hurt though.

Signature · 2 lines
ash nazg durbatul?k, ash nazg gimbatul,
ash nazg thrakatul?k agh burzum-ishi krimpatul
#2 lore raw

Mark,

Quoted 4 lines

in message <[email protected]> you wrote:
...

Quoted 2 lines

After doing these, can I use this ELDK compile u-boot? Does the Environment variable CROSS_COMPILE MUST be set?

...

Quoted 1 line

2. no: it's hardcoded in the Makefile

This is wrong. It's not hardcoded. Only a _default_value_ is provided.

Quoted 5 lines

...
ifeq ($(ARCH),ppc)
CROSS_COMPILE = ppc_82xx-
endif
...

And you must be referring to something else, but not to U-Boot.

Quoted 1 line

Setting the CROSS_COMPILE is does not hurt though.

RTFM. Setting CROSS_COMPILE is _required_ when using the ELDK.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Every solution breeds new problems.
#3 lore raw
Quoted 2 lines
Quoted 1 line

2. no: it's hardcoded in the Makefile

This is wrong. It's not hardcoded. Only a _default_value_ is provided.

My fault, wrong choice of words.

Quoted 1 line

And you must be referring to something else, but not to U-Boot.

# (C) Copyright 2000-2004
# Wolfgang Denk, DENX Software Engineering, wd at denx.de.

euhm looks like it...

but I am wrong, I am using a 'touched' file, your makefile says:

ifeq ($(HOSTARCH),ppc)
CROSS_COMPILE =
else

time to delete those changes.

Quoted 1 line

RTFM. Setting CROSS_COMPILE is _required_ when using the ELDK.

I'm always using the CROSS_COMPILE var, so I never noticed the change when switching from ELDK to powerpc-linux-uclibc-gcc. I must have done the RTFM sometime :)

Signature · 2 lines
ash nazg durbatul?k, ash nazg gimbatul,
ash nazg thrakatul?k agh burzum-ishi krimpatul
#4 lore raw
Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 2 lines

And you must be referring to something else, but not to U-Boot.

# (C) Copyright 2000-2004
# Wolfgang Denk, DENX Software Engineering, wd at denx.de.

euhm looks like it...

Looks like it, but is not. Seem someone meddled with the code.

Quoted 5 lines

but I am wrong, I am using a 'touched' file, your makefile says:

ifeq ($(HOSTARCH),ppc)
CROSS_COMPILE =
else

This is not the relevant part...

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Gravitation cannot be held responsible for people falling in  love."
- Albert Einstein
#5 lore raw

[U-Boot-Users] Uncompressing uImage error

In reply to Marc Leeman

Hi all,

I am working on a custom board , I used U-Boot and ported it, U-Boot is working well, and i compiled ELDK to a uImage , with the command >make uImage.

here is the rest of the precedure:

er8260> tftp 10000 uImage
ARP broadcast 1
TFTP from server 10.10.0.187; our IP address is 10.10.0.185
Filename 'uImage'.
Load address: 0x10000
Loading:
#################################################################

#################################################################

         ##################

done
Bytes transferred = 757201 (b8dd1 hex)
er8260> bootm
## Booting image at 00010000 ...

   Image Name:   Linux-2.4.24-pre2
   Created:      2004-12-07  22:25:46 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip

compressed)
Data Size: 757137 Bytes = 739.4 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... Error: inflate()
returned -3
GUNZIP ERROR - must RESET board to recover

can anyone please help me? why is this happening?

(I read the FAQ , and searched mailing list for 200 last mails , by the phrase" GUNZIP uncompressing error", i didn't find anything , hope it not to be a FAQ and sorry if it is.)

Best regards.
sadri

__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

#6 lore raw

[U-Boot-Users] Uncompressing uImage error

Hi Sadri!

Quoted 4 lines · Alireza Sadri

I am working on a custom board , I used U-Boot and ported it, U-Boot is working well, and i compiled ELDK to a uImage , with the command >make uImage.

Quoted 8 lines

here is the rest of the precedure:

er8260> tftp 10000 uImage
ARP broadcast 1
TFTP from server 10.10.0.187; our IP address is 10.10.0.185
Filename 'uImage'.
Load address: 0x10000

                ^^^^^^^

Here is your problem! When using this load-address you will likely overwrite your image upon decompressing it! Choose another load address and everything should work fine (at least 0x200000).

Quoted 1 line

can anyone please help me? why is this happening?

The image will be decompressed to the load address given in the header of the uImage file (here 0x00000000). So there is a good chance that you overwrite the source-image @ 0x100000 (depending on your image-size).

Quoted 4 lines

(I read the FAQ , and searched mailing list for 200 last mails , by the phrase" GUNZIP uncompressing error", i didn't find anything , hope it not to be a FAQ and sorry if it is.)

I am pretty sure that this is well documented. Could be that Wolfgang will point this out... ;-)

Best regards,
Stefan