2006-12-25 19:46:01

by Mark Glines

[permalink] [raw]
Subject: Re: Linux 2.6.20-rc2: forgot how to make a zImage on powerpc?

Mark Glines wrote:
> Hmm. I'm trying to build 2.6.20-rc2 on a little powerpc box with
> arch/powerpc/configs/linkstation_defconfig, and I get:
...
> MODPOST vmlinux
> ln: accessing `arch/powerpc/boot/zImage': No such file or directory
> make[1]: *** [arch/powerpc/boot/zImage] Error 1
> make: *** [zImage] Error 2
>
> So, uh, are we forgetting to go into the right subdirectory to make the
> actual zImage, or what? If I'm just doing something wrong, I'd love to
> know what it is.
>
> I'll follow up here on lkml if I diagnose this further. Thanks,


Followup: Yeah, it looks like it just doesn't know which format of
zImage to produce for linkstation.

I'm not sure what image should be used by default. I guess it depends
on the bootloader. Maybe default to uImage, as uBoot seems to be fairly
common on these devices?

Mark


2006-12-25 20:31:22

by Guennadi Liakhovetski

[permalink] [raw]
Subject: Re: Linux 2.6.20-rc2: forgot how to make a zImage on powerpc?

On Mon, 25 Dec 2006, Mark Glines wrote:

> Mark Glines wrote:
> > Hmm. I'm trying to build 2.6.20-rc2 on a little powerpc box with
> > arch/powerpc/configs/linkstation_defconfig, and I get:
> ...
> > MODPOST vmlinux
> > ln: accessing `arch/powerpc/boot/zImage': No such file or directory
> > make[1]: *** [arch/powerpc/boot/zImage] Error 1
> > make: *** [zImage] Error 2
> >
> > So, uh, are we forgetting to go into the right subdirectory to make the
> > actual zImage, or what? If I'm just doing something wrong, I'd love to know
> > what it is.
> >
> > I'll follow up here on lkml if I diagnose this further. Thanks,
>
>
> Followup: Yeah, it looks like it just doesn't know which format of zImage to
> produce for linkstation.
>
> I'm not sure what image should be used by default. I guess it depends on the
> bootloader. Maybe default to uImage, as uBoot seems to be fairly common on
> these devices?

Yes, uImage is the format used on linkstation. Is there a way to cleanly
specify this in the kernel sources apart from a comment in Kconfig?

Thanks
Guennadi
---
Guennadi Liakhovetski

2006-12-25 21:47:52

by Mark Glines

[permalink] [raw]
Subject: [PATCH] powerpc: linkstation uses uimage style zImages

--- linux-2.6.20-rc2/arch/powerpc/platforms/embedded6xx/Kconfig.orig 2006-12-24 19:13:49.000000000 -0800
+++ linux-2.6.20-rc2/arch/powerpc/platforms/embedded6xx/Kconfig 2006-12-24 19:14:02.000000000 -0800
@@ -79,6 +79,7 @@
select MPIC
select FSL_SOC
select PPC_UDBG_16550 if SERIAL_8250
+ select DEFAULT_UIMAGE
help
Select LINKSTATION if configuring for one of PPC- (MPC8241)
based NAS systems from Buffalo Technology. So far only


Attachments:
linkstation-uses-uimage.diff (447.00 B)

2006-12-25 22:54:56

by Guennadi Liakhovetski

[permalink] [raw]
Subject: Re: [PATCH] powerpc: linkstation uses uimage style zImages

Mark

Thanks for the patch. Are you actually going to test this kernel on a real
hardware or just testing builds? If it is going to be a real life test,
I'd be interested to know what exactly hardware, U-boot version, dts, and
what results.

BTW, ack-ing your patch would be a bit easier if you sent it inline.

On Mon, 25 Dec 2006, Mark Glines wrote:

> Once I tracked down and installed a "mkimage" command (dependency needed by
> the WRAP line), my "make zImage" succeeded. So, I hope you guys apply this.

...

> Signed-off-by: Mark Glines <[email protected]>
Acked-by: Guennadi Liakhovetski <[email protected]>

> --- linux-2.6.20-rc2/arch/powerpc/platforms/embedded6xx/Kconfig.orig 2006-12-24 19:13:49.000000000 -0800
> +++ linux-2.6.20-rc2/arch/powerpc/platforms/embedded6xx/Kconfig 2006-12-24 19:14:02.000000000 -0800
> @@ -79,6 +79,7 @@
> select MPIC
> select FSL_SOC
> select PPC_UDBG_16550 if SERIAL_8250
> + select DEFAULT_UIMAGE
> help
> Select LINKSTATION if configuring for one of PPC- (MPC8241)
> based NAS systems from Buffalo Technology. So far only

2006-12-25 23:07:10

by Mark Glines

[permalink] [raw]
Subject: Re: [PATCH] powerpc: linkstation uses uimage style zImages

Guennadi Liakhovetski wrote:
> Mark
>
> Thanks for the patch. Are you actually going to test this kernel on a real
> hardware or just testing builds? If it is going to be a real life test,
> I'd be interested to know what exactly hardware, U-boot version, dts, and
> what results.

Yes, I do very much intend to test it on real hardware. I have a couple
of Kurobox HGs which desperately need a 21st century kernel. I still
need to install U-boot on it, but first I'm just going to test the
vmlinux with the loader.o kernel module. (And my rs232 voltage
converters haven't gotten here yet, so I'm being a little conservative
about all of this.)


> BTW, ack-ing your patch would be a bit easier if you sent it inline.

Yeah, thunderbird sucks for this stuff. Keep nagging me and I'll set up
mutt again. :) Thanks!

Mark

2006-12-25 23:23:35

by Guennadi Liakhovetski

[permalink] [raw]
Subject: Re: [PATCH] powerpc: linkstation uses uimage style zImages

On Mon, 25 Dec 2006, Mark Glines wrote:

> Guennadi Liakhovetski wrote:
>
> Yes, I do very much intend to test it on real hardware. I have a couple of
> Kurobox HGs which desperately need a 21st century kernel. I still need to

Ah, what a pity:-) I mean, it is good, but it's exactly the same hardware
I developed this port for and tested on. So, it should be easy. If you
have any problems with your setup, look in linkstation / kurobox mailing
list archives, I posted some instructions there for setting up a suitable
u-boot version. Or just ask me. Or I could even just send you binaries to
start with. Do you have JTag?...

Thanks
Guennadi
---
Guennadi Liakhovetski