linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* zImage.embedded
@ 2008-04-11 13:43 Guillaume Dargaud
  2008-04-11 13:55 ` zImage.embedded Grant Likely
  0 siblings, 1 reply; 7+ messages in thread
From: Guillaume Dargaud @ 2008-04-11 13:43 UTC (permalink / raw)
  To: linuxppc-dev

Hello all,

I'm not sure what kind of error this is. I'm trying to generate a kernel 
image suitable for network boot and it seems to fail at the very end (wrong 
target ?)

$ make ARCH=ppc CROSS_COMPILE=powerpc-linux-uclibc-  znetboot

powerpc-linux-uclibc-objcopy -O elf32-powerpc arch/ppc/boot/simple/zvmlinux 
arch/ppc/boot/simple/zvmlinux -R .comment -R .stab \
                -R .stabstr -R .ramdisk
cp -f arch/ppc/boot/simple/zvmlinux arch/ppc/boot/images/zImage.elf
rm -f arch/ppc/boot/simple/zvmlinux
cp arch/ppc/boot/images/zImage.embedded /tftpboot/zImage.embedded
cp: cannot stat `arch/ppc/boot/images/zImage.embedded': No such file or 
directory
make[2]: *** [znetboot] Error 1
make[1]: *** [simple] Error 2
make: *** [znetboot] Error 2

is the file zImage.elf my proper network image ?
-- 
Guillaume Dargaud
http://www.gdargaud.net/

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

* Re: zImage.embedded
  2008-04-11 13:43 zImage.embedded Guillaume Dargaud
@ 2008-04-11 13:55 ` Grant Likely
  2008-04-11 15:51   ` zImage.embedded Guillaume Dargaud
  2008-04-14 16:05   ` zImage.embedded Guillaume Dargaud
  0 siblings, 2 replies; 7+ messages in thread
From: Grant Likely @ 2008-04-11 13:55 UTC (permalink / raw)
  To: Guillaume Dargaud; +Cc: linuxppc-dev

On Fri, Apr 11, 2008 at 7:43 AM, Guillaume Dargaud
<dargaud@lpsc.in2p3.fr> wrote:
> Hello all,
>
>  I'm not sure what kind of error this is. I'm trying to generate a kernel
> image suitable for network boot and it seems to fail at the very end (wrong
> target ?)
>
>  $ make ARCH=ppc CROSS_COMPILE=powerpc-linux-uclibc-  znetboot
>
>  powerpc-linux-uclibc-objcopy -O elf32-powerpc arch/ppc/boot/simple/zvmlinux
> arch/ppc/boot/simple/zvmlinux -R .comment -R .stab \
>                -R .stabstr -R .ramdisk
>  cp -f arch/ppc/boot/simple/zvmlinux arch/ppc/boot/images/zImage.elf
>  rm -f arch/ppc/boot/simple/zvmlinux
>  cp arch/ppc/boot/images/zImage.embedded /tftpboot/zImage.embedded
>  cp: cannot stat `arch/ppc/boot/images/zImage.embedded': No such file or
> directory
>  make[2]: *** [znetboot] Error 1
>  make[1]: *** [simple] Error 2
>  make: *** [znetboot] Error 2
>
>  is the file zImage.elf my proper network image ?

What bootloader is on your board?  zImage.elf *might* be the proper
image.  If you're using u-boot, then you want to build a uImage
instead.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

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

* Re: zImage.embedded
  2008-04-11 13:55 ` zImage.embedded Grant Likely
@ 2008-04-11 15:51   ` Guillaume Dargaud
  2008-04-11 16:04     ` zImage.embedded Grant Likely
  2008-04-14 16:05   ` zImage.embedded Guillaume Dargaud
  1 sibling, 1 reply; 7+ messages in thread
From: Guillaume Dargaud @ 2008-04-11 15:51 UTC (permalink / raw)
  To: linuxppc-dev

>>  is the file zImage.elf my proper network image ?
>
> What bootloader is on your board?  zImage.elf *might* be the proper
> image.  If you're using u-boot, then you want to build a uImage
> instead.

I... ahem... what would you recommand for a ML405 ?
Builroot gives to options of U-Boot or Yaboot. Haven't tried either yet. 
Will do on tuesday.

I don't know if Xilinx has another solution (I remember seeing some boot 
function in the API, usable from a standalone elf file).
-- 
Guillaume Dargaud
http://www.gdargaud.net/

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

* Re: zImage.embedded
  2008-04-11 15:51   ` zImage.embedded Guillaume Dargaud
@ 2008-04-11 16:04     ` Grant Likely
  0 siblings, 0 replies; 7+ messages in thread
From: Grant Likely @ 2008-04-11 16:04 UTC (permalink / raw)
  To: Guillaume Dargaud; +Cc: linuxppc-dev

On Fri, Apr 11, 2008 at 9:51 AM, Guillaume Dargaud
<dargaud@lpsc.in2p3.fr> wrote:
>
> >
> > >  is the file zImage.elf my proper network image ?
> > >
> >
> > What bootloader is on your board?  zImage.elf *might* be the proper
> > image.  If you're using u-boot, then you want to build a uImage
> > instead.
> >
>
>  I... ahem... what would you recommand for a ML405 ?
>  Builroot gives to options of U-Boot or Yaboot. Haven't tried either yet.
> Will do on tuesday.
>
>  I don't know if Xilinx has another solution (I remember seeing some boot
> function in the API, usable from a standalone elf file).

zImage.elf is what you want.  If you *do* get u-boot building on your
board, then you'll want a uImage; but zImage.elf will work for you
now.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

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

* Re: zImage.embedded
  2008-04-11 13:55 ` zImage.embedded Grant Likely
  2008-04-11 15:51   ` zImage.embedded Guillaume Dargaud
@ 2008-04-14 16:05   ` Guillaume Dargaud
  2008-04-14 20:55     ` [Buildroot] zImage.embedded Ulf Samuelsson
  1 sibling, 1 reply; 7+ messages in thread
From: Guillaume Dargaud @ 2008-04-14 16:05 UTC (permalink / raw)
  To: linuxppc-dev, Buildroot Mailinglist, 

[cross posting from one mailing list to another]

>>  is the file zImage.elf my proper network image ?
>
> What bootloader is on your board?  zImage.elf *might* be the proper
> image.  If you're using u-boot, then you want to build a uImage
> instead.

I'm trying to compile u-boot with buildroot, but it fails with:

                /usr/bin/make -j1 -C 
/home/guinevere/Min_UartLite_NetLite_Ace/buildroot/project_build_powerpc/genepy/u-boot-1.3.2 
\
                ""_config
make[1]: Entering directory 
`/home/guinevere/Min_UartLite_NetLite_Ace/buildroot/project_build_powerpc/genepy/u-boot-1.3.2'
make[1]: *** No rule to make target `_config'.  Stop.
make[1]: Leaving directory 
`/home/guinevere/Min_UartLite_NetLite_Ace/buildroot/project_build_powerpc/genepy/u-boot-1.3.2'
make: *** 
[/home/guinevere/Min_UartLite_NetLite_Ace/buildroot/project_build_powerpc/genepy/u-boot-1.3.2/.configured] 
Error 2

Apparently it expects a BOARD_NAME variable, but I don't know what to put in 
it (I looked at the makefile and can't find the ml405 referenced in there).
-- 
Guillaume Dargaud
http://www.gdargaud.net/

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

* Re: [Buildroot] zImage.embedded
  2008-04-14 16:05   ` zImage.embedded Guillaume Dargaud
@ 2008-04-14 20:55     ` Ulf Samuelsson
  2008-04-15  9:33       ` Guillaume Dargaud
  0 siblings, 1 reply; 7+ messages in thread
From: Ulf Samuelsson @ 2008-04-14 20:55 UTC (permalink / raw)
  To: Guillaume Dargaud, linuxppc-dev, Buildroot Mailinglist, 


> [cross posting from one mailing list to another]
>=20
>>>  is the file zImage.elf my proper network image ?
>>
>> What bootloader is on your board?  zImage.elf *might* be the proper
>> image.  If you're using u-boot, then you want to build a uImage
>> instead.
>=20
> I'm trying to compile u-boot with buildroot, but it fails with:
>=20
>                /usr/bin/make -j1 -C=20
> =
/home/guinevere/Min_UartLite_NetLite_Ace/buildroot/project_build_powerpc/=
genepy/u-boot-1.3.2=20
> \
>                ""_config
> make[1]: Entering directory=20
> =
`/home/guinevere/Min_UartLite_NetLite_Ace/buildroot/project_build_powerpc=
/genepy/u-boot-1.3.2'
> make[1]: *** No rule to make target `_config'.  Stop.
> make[1]: Leaving directory=20
> =
`/home/guinevere/Min_UartLite_NetLite_Ace/buildroot/project_build_powerpc=
/genepy/u-boot-1.3.2'
> make: ***=20
> =
[/home/guinevere/Min_UartLite_NetLite_Ace/buildroot/project_build_powerpc=
/genepy/u-boot-1.3.2/.configured]=20
> Error 2
>=20
> Apparently it expects a BOARD_NAME variable, but I don't know what to =
put in=20
> it (I looked at the makefile and can't find the ml405 referenced in =
there).
> --=20
> Guillaume Dargaud
> http://www.gdargaud.net/
>=20


I think you need to figure out how to build u-boot for your board
outside buildroot, before you try to build it inside buildroot.


Best Regards
Ulf Samuelsson

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

* Re: [Buildroot] zImage.embedded
  2008-04-14 20:55     ` [Buildroot] zImage.embedded Ulf Samuelsson
@ 2008-04-15  9:33       ` Guillaume Dargaud
  0 siblings, 0 replies; 7+ messages in thread
From: Guillaume Dargaud @ 2008-04-15  9:33 UTC (permalink / raw)
  To: Ulf Samuelsson, linuxppc-dev, Buildroot Mailinglist, 

> I think you need to figure out how to build u-boot for your board
> outside buildroot, before you try to build it inside buildroot.

Working on it...

While I do that, I have a side question:
is it possible to boot off a first kernel on a local partition, but tell it 
to tftp boot off another kernel instead ?

The rational is that I have a working system on a card in my embedded 
system, but if possible I'd like to have it boot off the latest version 
available on the network.

And if not available, simple boot using fallback parameters.

Makes sense ?
-- 
Guillaume Dargaud
http://www.gdargaud.net/

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

end of thread, other threads:[~2008-04-15  9:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-11 13:43 zImage.embedded Guillaume Dargaud
2008-04-11 13:55 ` zImage.embedded Grant Likely
2008-04-11 15:51   ` zImage.embedded Guillaume Dargaud
2008-04-11 16:04     ` zImage.embedded Grant Likely
2008-04-14 16:05   ` zImage.embedded Guillaume Dargaud
2008-04-14 20:55     ` [Buildroot] zImage.embedded Ulf Samuelsson
2008-04-15  9:33       ` Guillaume Dargaud

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).