All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] Problems with the port to PPC 405EP ev. board
@ 2003-03-17 15:11 llandre
  2003-03-17 15:23 ` Vladimir Gurevich
       [not found] ` <5.1.1.6.0.20030317171757.00a81480@192.168.2.1>
  0 siblings, 2 replies; 4+ messages in thread
From: llandre @ 2003-03-17 15:11 UTC (permalink / raw)
  To: u-boot

I'm porting U-Boot to this board.
I compared the boot code (start.S) with the OpenBios' startup (entry.S). 
Openbios, in case PLL is not initialized, writes default values into the 
PLLMR0 and PLLMR1 registers. U-Boot, in my understanding, assumes PLL is 
already initialized and read its registers in order to determine the 
frequencies and other information (get_sys_info in file speed.c). Is it 
correct? If yes, why does not it initialize the PLL?
I tried to add some code to start.S in order to do the same thing openbios 
does, but the assembler does not like it:

---------------------------------------------------------------------------
ppc-linux-gcc -Wa,-gstabs -D__ASSEMBLY__ -g  -Os  -mrelocatable -ffixed-r14 
-meabi -mrelocatable -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xFFF80000 
-I/proj/ppc405ep/sw/u-boot/include -fno-builtin -pipe -DCONFIG_PPC 
-D__powerpc__ -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -Wa,-m405 
-mcpu=405 -msoft-float -DCONFIG_PPC -D__powerpc__ -DCONFIG_4xx -ffixed-r2 
-ffixed-r29 -mstring -Wa,-m405 -mcpu=405 -msoft-float -c -o start.o 
/proj/ppc405ep/sw/u-boot/cpu/ppc4xx/start.S
/proj/ppc405ep/sw/u-boot/cpu/ppc4xx/start.S: Assembler messages:
/proj/ppc405ep/sw/u-boot/cpu/ppc4xx/start.S:849: Error: attempt to 
.org/.space backwards? (-8)
/proj/ppc405ep/sw/u-boot/cpu/ppc4xx/start.S:1582: Internal error!
Assertion failure in write_contents at ../../gas/write.c line 1187.
Please report this bug.
make[1]: *** [start.o] Error 1
make[1]: Leaving directory `/proj/ppc405ep/sw/u-boot/cpu/ppc4xx'
make: *** [subdirs] Error 1
---------------------------------------------------------------------------

I never saw an error like that. Anybody can tell me what is wrong?

Thanx in advance.



llandre

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

end of thread, other threads:[~2003-03-18 15:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-17 15:11 [U-Boot-Users] Problems with the port to PPC 405EP ev. board llandre
2003-03-17 15:23 ` Vladimir Gurevich
     [not found] ` <5.1.1.6.0.20030317171757.00a81480@192.168.2.1>
2003-03-17 18:25   ` Vladimir Gurevich
2003-03-18 15:49     ` llandre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.