Can anyone tell me if it is a bug of the ELDK4.0?

2006-06-28 Thread Denny
Hi,
 
 I failed to compile the uboot on my 440GP platform, I set the compile 
switch as -m440 -mcpu=440,

  But the interest thing is when I change the switch to -m405 -mcpu=440, 
I can compile my uboot successfully, why?
 
  Also I find all the instructions are existed both in user manual of 
PPC_405 and PPC440. 
   
 
make[1]: Leaving directory `/opt/glacier_boot/post/cpu'
ppc_4xx-gcc -Wa,-gstabs -D__ASSEMBLY__ -g  -Os   -fPIC -ffixed-r14 -meabi 
-fno-strict-aliasing -D__KERNEL__ -DTEXT_BASE=0xFFC4 
-I/opt/glacier_boot/include -fno-builtin -ffreestanding -nostdinc -isystem 
/opt/eldk4.0/usr/bin/../lib/gcc/powerpc-linux/4.0.0/include -pipe  -DCONFIG_PPC 
-D__powerpc__ -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -Wa,-m440 -mcpu=440 
-msoft-float -c -o cpu/ppc4xx/start.o /opt/glacier_boot/cpu/ppc4xx/start.S
/opt/glacier_boot/cpu/ppc4xx/start.S: Assembler messages:
/opt/glacier_boot/cpu/ppc4xx/start.S:996: Error: Unrecognized opcode: `mfdccr'
/opt/glacier_boot/cpu/ppc4xx/start.S:998: Error: Unrecognized opcode: `mtdccr'
/opt/glacier_boot/cpu/ppc4xx/start.S:1016: Error: Unrecognized opcode: `mtdccr'
/opt/glacier_boot/cpu/ppc4xx/start.S:1027: Error: Unrecognized opcode: `mticcr'
/opt/glacier_boot/cpu/ppc4xx/start.S:1033: Error: Unrecognized opcode: `mticcr'
/opt/glacier_boot/cpu/ppc4xx/start.S:1039: Error: Unrecognized opcode: `mficcr'
/opt/glacier_boot/cpu/ppc4xx/start.S:1050: Error: Unrecognized opcode: `mtdccr'
/opt/glacier_boot/cpu/ppc4xx/start.S:1059: Error: Unrecognized opcode: `mtdccr'
/opt/glacier_boot/cpu/ppc4xx/start.S:1064: Error: Unrecognized opcode: `mfdccr'
make: *** [cpu/ppc4xx/start.o] Error 1
[root at localhost glacier_boot]# 
 
 
 
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060628/36e1b81d/attachment.htm
 


Can anyone tell me if it is a bug of the ELDK4.0?

2006-06-28 Thread Wolfgang Denk
In message 44A1E115.01.12247 at bj163app13.163.com you wrote:
 
  I failed to compile the uboot on my 440GP platform, I set the compile 
 switch as -m440 -mcpu=440,

Don't do this, then. The  ELDK  will  automatically  set  approproate
compiler  options  as  needed,  depending  on  your  setting  of  the
CROSS_COMPILE variable.

All this is documented in the manual.

Just follow the instructions.


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
Half of the people in the world are below average.