U-boot ...... on MPC 823

U-boot ...... on MPC 823

Post by Stephan » Fri, 12 Mar 2004 21:31:03



Hello there,

I am trying to create a new U-boot.... for my board.
1) I have install Uboot v 1.0.2 + ELDK 0.3.0 (both installation seems to be
OK !)
and I did  RTFM..... carefully  ! :-)

*) On the ELDK, I declared
export CROSS_COMPILER=ppc_8xx-
PATH=$PATH:/opt/eldk/usr/bin:/opt/eldk/bin
.......
and I can generate an object file with .... pcc_8xx-gcc -o hello hello.c
Seems to be OK

2) in the U-boot folder
I tried to do something simple...
make TQM823L_config   -> Result OK, configured for the TQM......

but when I make a "make all" => a lot of errors appears like :

ppc_8xx-gcc not found !!
check in different folders in order to find the compiler
.../opt/u-boot-1.0.2/tools or
examples...

AND it s looking for a file called "hello_world" (I made a test with a file
called "hello" =>  means that the script is looking for something specific
!!!

- What should I changed ? - Did I miss out something in the Manual ???

--------------------------------------------------------------
ppc_8xx-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0x40000
000 -I/opt/u-boot-1.0.2/include -fno-builtin -ffreestanding -nostdinc -isyst
em
/opt/eldk/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/include -pipe -DCONFIG_PPC
-D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-
float -Wall -Wstrict-prototypes -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__
 -DTEXT_BASE=0x40000000 -I/opt/u-boot-1.0.2/include -fno-builtin -ffreestand
ing -nostdinc

-isystem
/opt/eldk/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/include -pipe -DCONFIG_PPC
-D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-
float -I.. -Bstatic -T /opt/u-boot-1.0.2/board/tqm8xx/u-boot.lds -Ttext
0x40000000 -n hello_world.c -o hello_world

ppc_8xx-gcc: 0x40000000: No such file or directory

----------------------------------------------------------------------------
---------

Thanks in advance for your help

Stephane

 
 
 

U-boot ...... on MPC 823

Post by Wolfgang Den » Sat, 13 Mar 2004 07:33:01



>I am trying to create a new U-boot.... for my board.
>1) I have install Uboot v 1.0.2 + ELDK 0.3.0 (both installation seems to be

That must be ELDK 3.0 - we never released a 0.x version to the public.

Quote:>*) On the ELDK, I declared
>export CROSS_COMPILER=ppc_8xx-
>PATH=$PATH:/opt/eldk/usr/bin:/opt/eldk/bin
>.......
>and I can generate an object file with .... pcc_8xx-gcc -o hello hello.c
>Seems to be OK
>2) in the U-boot folder
>I tried to do something simple...
>make TQM823L_config   -> Result OK, configured for the TQM......
>but when I make a "make all" => a lot of errors appears like :
>ppc_8xx-gcc not found !!

10 lines above you wrote that "pcc_8xx-gcc -o hello  hello.c"  worked
for  you,  so  ppc_8xx-gcc  must have been in your PATH at this time.
Make sure it is in your PATH when you run "make all", too.

Quote:>check in different folders in order to find the compiler
>.../opt/u-boot-1.0.2/tools or
>examples...

The C compiler is definitely NOT part of the U-Boot source tree.  Did
you  try  a  "which ppc_8xx-gcc" ? This should tell you where to find
the cross compiler - in /opt/eldk/usr/bin/ppc_8xx-gcc

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88   Web: www.denx.de
"The lesser of two evils -- is evil."             - Seymour (Sy) Leon

 
 
 

1. HardHat Linux on PPC 823 with SuSE Linux as host

Hi,

I try to run Hard Hat Linux from Montavista as described in the CDK 1.2
manual on an RPX lite board.
Unfortunately, the installation procedure is only for hosts with Red Hat
Linux, I hoped this would work
for SuSE, too.

The problem has to do with the NFS filesystem. I can successfully download a
precompiled
Hard Hat Linux boot-image via TFTP and monitor this with the serial port.

The following is the output over the serial port...

 target IP address : 824B8932
 target file name  : rpxlite.srec
 address bias      : 0
Starting tftp download:
inetARP(): OK
.1.2.4.8.16.32.64.128.256.512.1024.2048.4096.8192
load_tftp(): OK
1087283 data bytes, 13764 S-records, 2124 tftp blocks, 0 repeated blocks
start address = 00200000
load_tftp_toMem(): OK
Transferring control to downloaded program
loaded at:     00200000 0020B1FC
relocated to:  00180000 0018B1FC
board data at: 001801C8 001801E4
relocated to:  00200100 0020011C
zimage at:     00206000 0026A4C4
avail ram:     0026B000 01000000

Linux/PPC load: root=/dev/nfs rw nfsroot=/opt/hardhat/devkit/ppc/8xx/target
Uncompressing Linux...done.
Now booting the kernel

(2.95.
3 prerelease/franzo)) #1 Tue Aug 8 02:01:27 PDT 2000
Boot arguments: root=/dev/nfs rw nfsroot=/opt/hardhat/devkit/ppc/8xx/target
time_init: decrementer frequency = 240000000/60
Calibrating delay loop... 63.69 BogoMIPS
Memory: 15152k available (740k kernel code, 456k data, 36k init)
[c0000000,c1000
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 16384 bhash 16384)
Initializing RT netlink socket
Starting kswapd v 1.5
CPM UART driver version 0.03
ttyS00 at 0x0280 is a SMC
ttyS01 at 0x0380 is a SMC
pty: 256 Unix98 ptys configured
RAM disk driver initialized:  16 RAM disks of 4096K size
loop: registered device at major 7
eth0: CPM ENET Version 0.2, 00:10:ec:00:1b:fb
PPP: version 2.3.7 (demand dialling)
TCP compression code copyright 1989 Regents of the University of California
PPP line discipline registered.
Sending BOOTP requests.... OK
IP-Config: Got BOOTP answer from 130.75.137.50, my address is 130.75.137.59
Looking up port of RPC 100003/2 on 130.75.137.50
Looking up port of RPC 100005/1 on 130.75.137.50
VFS: Mounted root (NFS filesystem).
Freeing unused kernel memory: 36k init
Kernel panic: No init found.  Try passing init= option to kernel.
Rebooting in 180 seconds..

----snip----

The filesystem seems to be mounted, but it does not find any files in there
although the full "linux tree" is available. I also tried adding
  init=/bin/init   init=bin/init    init=/opt/.../target/bin/init
to the boot arguments, but nothing helped.

Does anyone understand the problem and can help?
Thanks.

Nils

2. Evidence of stack corruption?

3. LM 823 TTL monitor

4. STB Nitro 3D / VX on Red Hat 4.2

5. Linux on PPC 823 ?

6. A sobering thought ... re: Code Red

7. Ogg Vorbis Tremor on 823 platform

8. 3c905c-TX and ATI Rage 128

9. U-BOOT build problem

10. Build U-Boot with soft floating point - help!

11. U-Boot on MPC860.....

12. u-boot and rpx classic

13. u-boot disk support