linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* cuImage not building
@ 2008-10-24  2:05 Laxmikant Rashinkar
  2008-10-24  2:26 ` Grant Likely
  0 siblings, 1 reply; 3+ messages in thread
From: Laxmikant Rashinkar @ 2008-10-24  2:05 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1335 bytes --]

Hi,

I have gotten our MPC8347 based board to work under Linux-2.6.27.1.

Since our board is similar to mpc834x_mds, I initially modified files relevant
to mpc834x_mds to get our board working.

Now I'm trying to rename files so that they reflect our board names.

After this renaming, uImage gets built ok, but cuImage build fails. 
I enabled make's verbose flag to see what was going on
and here are the error messages

+ powerpc-unknown-linux-gnu-ld -m elf32ppc -T arch/powerpc/boot/zImage.lds -Ttext 0x400000 --defsym _start=0x400000 -o arch/ppc/boot/cuImage.snsp arch/powerpc/boot/cuboot-snsp.o ./zImage.15886.o arch/powerpc/boot/wrapper.a
powerpc-unknown-linux-gnu-ld: arch/powerpc/boot/cuboot-snsp.o: No such file: No such file or directory

Here is the build invocation with mpc834x_mds files.

+ powerpc-unknown-linux-gnu-ld -m elf32ppc -T arch/powerpc/boot/zImage.lds -Ttext 0x400000 --defsym _start=0x400000 -o arch/ppc/boot/cuImage.mpc834x_mds arch/powerpc/boot/cuboot-83xx.o ./zImage.3158.o arch/powerpc/boot/wrapper.a

>From the two invocations, not working code gets called with arch/powerpc/boot/cuboot-snsp.o
whereas working code gets called with arch/powerpc/boot/cuboot-83xx.o.

I have made relevant changes to appropriate Makefiles, but I still cant get cuImage to build.

can someone help?
thanks a lot
LK


      

[-- Attachment #2: Type: text/html, Size: 1620 bytes --]

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

* Re: cuImage not building
  2008-10-24  2:05 cuImage not building Laxmikant Rashinkar
@ 2008-10-24  2:26 ` Grant Likely
  0 siblings, 0 replies; 3+ messages in thread
From: Grant Likely @ 2008-10-24  2:26 UTC (permalink / raw)
  To: Laxmikant Rashinkar; +Cc: linuxppc-embedded

On Thu, Oct 23, 2008 at 07:05:20PM -0700, Laxmikant Rashinkar wrote:
> Hi,
> 
> I have gotten our MPC8347 based board to work under Linux-2.6.27.1.
> 
> Since our board is similar to mpc834x_mds, I initially modified files relevant
> to mpc834x_mds to get our board working.
> 
> Now I'm trying to rename files so that they reflect our board names.
> 
> After this renaming, uImage gets built ok, but cuImage build fails. 
> I enabled make's verbose flag to see what was going on
> and here are the error messages
> 
> + powerpc-unknown-linux-gnu-ld -m elf32ppc -T arch/powerpc/boot/zImage.lds -Ttext 0x400000 --defsym _start=0x400000 -o arch/ppc/boot/cuImage.snsp arch/powerpc/boot/cuboot-snsp.o ./zImage.15886.o arch/powerpc/boot/wrapper.a
> powerpc-unknown-linux-gnu-ld: arch/powerpc/boot/cuboot-snsp.o: No such file: No such file or directory
> 
> Here is the build invocation with mpc834x_mds files.
> 
> + powerpc-unknown-linux-gnu-ld -m elf32ppc -T arch/powerpc/boot/zImage.lds -Ttext 0x400000 --defsym _start=0x400000 -o arch/ppc/boot/cuImage.mpc834x_mds arch/powerpc/boot/cuboot-83xx.o ./zImage.3158.o arch/powerpc/boot/wrapper.a
> 
> From the two invocations, not working code gets called with arch/powerpc/boot/cuboot-snsp.o
> whereas working code gets called with arch/powerpc/boot/cuboot-83xx.o.
> 
> I have made relevant changes to appropriate Makefiles, but I still cant get cuImage to build.

Look at Documentation/powerpc/bootwrapper.txt and
arch/powerpc/boot/wrapper.  There is some magic stuff in the wrapper
script which translates board names into the correct wrapper bits.  This
is particularly important for cuboot targets.

g.

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

* Re: cuImage not building
@ 2008-10-24 23:55 Laxmikant Rashinkar
  0 siblings, 0 replies; 3+ messages in thread
From: Laxmikant Rashinkar @ 2008-10-24 23:55 UTC (permalink / raw)
  Cc: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 2140 bytes --]



Thanks a lot Grant.
With your pointers I was able to fix the problem.

LK



________________________________
From: Grant Likely <grant.likely@secretlab.ca>
To: Laxmikant Rashinkar <lk.atwork@yahoo.com>
Cc: linuxppc-embedded@ozlabs.org
Sent: Thursday, October 23, 2008 7:26:42 PM
Subject: Re: cuImage not building

On Thu, Oct 23, 2008 at 07:05:20PM -0700, Laxmikant Rashinkar wrote:
> Hi,
> 
> I have gotten our MPC8347 based board to work under Linux-2.6.27.1.
> 
> Since our board is similar to mpc834x_mds, I initially modified files relevant
> to mpc834x_mds to get our board working.
> 
> Now I'm trying to rename files so that they reflect our board names.
> 
> After this renaming, uImage gets built ok, but cuImage build fails. 
> I enabled make's verbose flag to see what was going on
> and here are the error messages
> 
> + powerpc-unknown-linux-gnu-ld -m elf32ppc -T arch/powerpc/boot/zImage.lds -Ttext 0x400000 --defsym _start=0x400000 -o arch/ppc/boot/cuImage.snsp arch/powerpc/boot/cuboot-snsp.o ./zImage.15886.o arch/powerpc/boot/wrapper.a
> powerpc-unknown-linux-gnu-ld: arch/powerpc/boot/cuboot-snsp.o: No such file: No such file or directory
> 
> Here is the build invocation with mpc834x_mds files.
> 
> + powerpc-unknown-linux-gnu-ld -m elf32ppc -T arch/powerpc/boot/zImage.lds -Ttext 0x400000 --defsym _start=0x400000 -o arch/ppc/boot/cuImage.mpc834x_mds arch/powerpc/boot/cuboot-83xx.o ./zImage.3158.o arch/powerpc/boot/wrapper.a
> 
> From the two invocations, not working code gets called with arch/powerpc/boot/cuboot-snsp.o
> whereas working code gets called with arch/powerpc/boot/cuboot-83xx.o.
> 
> I have made relevant changes to appropriate Makefiles, but I still cant get cuImage to build.

Look at Documentation/powerpc/bootwrapper.txt and
arch/powerpc/boot/wrapper.  There is some magic stuff in the wrapper
script which translates board names into the correct wrapper bits.  This
is particularly important for cuboot targets.

g.

_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded



      

[-- Attachment #2: Type: text/html, Size: 3169 bytes --]

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

end of thread, other threads:[~2008-10-25  0:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-24  2:05 cuImage not building Laxmikant Rashinkar
2008-10-24  2:26 ` Grant Likely
  -- strict thread matches above, loose matches on Subject: below --
2008-10-24 23:55 Laxmikant Rashinkar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).