All of lore.kernel.org
 help / color / mirror / Atom feed
* Powerpc build unhappy in 2.6.20.4?
@ 2007-03-30 21:53 Rob Landley
  2007-04-01 23:14 ` Tony Breeds
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Landley @ 2007-03-30 21:53 UTC (permalink / raw)
  To: linux-kernel

So doing:

  make ARCH=powerpc CROSS=powerpc-

Chugs along fine for a while, but then it ends with:

    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

I.E. it builds vmlinux, then dies because there's no zImage, which it never 
tried to build...

Is there no working default "make" target for powerpc, or did I do something 
wrong?  Could this be a .config issue?

Rob

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

* Re: Powerpc build unhappy in 2.6.20.4?
  2007-03-30 21:53 Powerpc build unhappy in 2.6.20.4? Rob Landley
@ 2007-04-01 23:14 ` Tony Breeds
       [not found]   ` <200704021514.14681.rob@landley.net>
  0 siblings, 1 reply; 5+ messages in thread
From: Tony Breeds @ 2007-04-01 23:14 UTC (permalink / raw)
  To: Rob Landley; +Cc: linux-kernel

On Fri, Mar 30, 2007 at 05:53:26PM -0400, Rob Landley wrote:
> So doing:
> 
>   make ARCH=powerpc CROSS=powerpc-
> 
> Chugs along fine for a while, but then it ends with:
> 
>     MODPOST vmlinux

There should be a lot of activity between this step and the error below.

>   ln: accessing `arch/powerpc/boot/zImage': No such file or directory
>   make[1]: *** [arch/powerpc/boot/zImage] Error 1
>   make: *** [zImage] Error 2
> 
> I.E. it builds vmlinux, then dies because there's no zImage, which it never 
> tried to build...

zImage is built later, AFAICT
 
> Is there no working default "make" target for powerpc, or did I do something 
> wrong?  Could this be a .config issue?

Possibly, can we see your .config?

Yours Tony

  linux.conf.au        http://linux.conf.au/ || http://lca2008.linux.org.au/
  Jan 28 - Feb 02 2008 The Australian Linux Technical Conference!


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

* Re: Powerpc build unhappy in 2.6.20.4?
       [not found]   ` <200704021514.14681.rob@landley.net>
@ 2007-04-03  0:51     ` Tony Breeds
  2007-04-03  3:51       ` Rob Landley
  0 siblings, 1 reply; 5+ messages in thread
From: Tony Breeds @ 2007-04-03  0:51 UTC (permalink / raw)
  To: Rob Landley; +Cc: linux-kernel

On Mon, Apr 02, 2007 at 03:14:14PM -0400, Rob Landley wrote:
 
> Sure, quite easily the source of the trouble.  Attached in both full .config 
> and mini.config formats.

Okay, I have no idea how it happend but you seem to have an invalid
config.  It looks to me like you need to select a platform.

One of the following:
	CONFIG_PPC_PSERIES
	CONFIG_PPC_MAPLE
	CONFIG_PPC_IBM_CELL_BLADE
	CONFIG_PPC_PS3
	CONFIG_PPC_CHRP
	CONFIG_PPC_EFIKA
	CONFIG_PPC_PMAC

When did this config last build a zImage?  I'm guessing either CHRP or
PMAC?

Yours Tony

  linux.conf.au        http://linux.conf.au/ || http://lca2008.linux.org.au/
  Jan 28 - Feb 02 2008 The Australian Linux Technical Conference!


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

* Re: Powerpc build unhappy in 2.6.20.4?
  2007-04-03  0:51     ` Tony Breeds
@ 2007-04-03  3:51       ` Rob Landley
  2007-04-04  6:59         ` Tony Breeds
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Landley @ 2007-04-03  3:51 UTC (permalink / raw)
  To: Tony Breeds; +Cc: linux-kernel

On Monday 02 April 2007 8:51 pm, Tony Breeds wrote:
> On Mon, Apr 02, 2007 at 03:14:14PM -0400, Rob Landley wrote:
>  
> > Sure, quite easily the source of the trouble.  Attached in both 
full .config 
> > and mini.config formats.
> 
> Okay, I have no idea how it happend but you seem to have an invalid
> config.  It looks to me like you need to select a platform.

So "make oldconfig ARCH=powerpc" will accept a config that doesn't have a 
platform selected?

> One of the following:
> 	CONFIG_PPC_PSERIES
> 	CONFIG_PPC_MAPLE
> 	CONFIG_PPC_IBM_CELL_BLADE
> 	CONFIG_PPC_PS3
> 	CONFIG_PPC_CHRP
> 	CONFIG_PPC_EFIKA
> 	CONFIG_PPC_PMAC

Hmmm...  So CONFIG_PPC_MULTIPLATFORM doesn't cover it?  ("There is no help 
available for this kernel option"...  Maybe a website somewhere?)

I just ran "make oldconfig" again and it didn't complain about any of those 
not being set...

> When did this config last build a zImage?  I'm guessing either CHRP or
> PMAC?

Er, never.  I was largely guessing at what I needed via menuconfig.  (I'm 
trying to get something I can boot to a shell prompt under QEMU.)

I'll try this CHRP thing...

Thanks,

Rob
-- 
Penguicon 5.0 Apr 20-22, Linux Expo/SF Convention.  Bruce Schneier, Christine 
Peterson, Steve Jackson, Randy Milholland, Elizabeth Bear, Charlie Stross...

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

* Re: Powerpc build unhappy in 2.6.20.4?
  2007-04-03  3:51       ` Rob Landley
@ 2007-04-04  6:59         ` Tony Breeds
  0 siblings, 0 replies; 5+ messages in thread
From: Tony Breeds @ 2007-04-04  6:59 UTC (permalink / raw)
  To: Rob Landley; +Cc: linux-kernel

On Mon, Apr 02, 2007 at 11:51:09PM -0400, Rob Landley wrote:
 
> So "make oldconfig ARCH=powerpc" will accept a config that doesn't have a 
> platform selected?

It seems so.

I think the patch below will fix that by forcing at least one platform
to be selected.  Can you try it and see if it helps with your current
problem?

> Hmmm...  So CONFIG_PPC_MULTIPLATFORM doesn't cover it?  ("There is no help 
> available for this kernel option"...  Maybe a website somewhere?)

CONFIG_PPC_MULTIPLATFORM Allows you to select from the options, but
isn't a valid platform in itself.
 
> Er, never.  I was largely guessing at what I needed via menuconfig.  (I'm 
> trying to get something I can boot to a shell prompt under QEMU.)

Ahh.
 
> I'll try this CHRP thing...

Perhaps starting with make chrp32_defconfig would be a reasonable
starting point?

---
 arch/powerpc/Kconfig |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index d6abe49..f3f0628 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -360,6 +360,14 @@ endmenu
 
 source "init/Kconfig"
 
+config PPC_PLATFORM_CHOSEN
+	def_bool n
+
+config PPC_DEFAULT_PLATFORM
+	def_bool PPC_MULTIPLATFORM && !PPC_PLATFORM_CHOSEN
+	select PPC_CHRP    if PPC32
+	select PPC_PSERIES if PPC64
+
 menu "Platform support"
 	depends on PPC64 || CLASSIC32
 
@@ -406,12 +414,15 @@ config PPC_PSERIES
 	select RTAS_ERROR_LOGGING
 	select PPC_UDBG_16550
 	select PPC_NATIVE
+# No need to "select PPC_PLATFORM_CHOSEN" for pSeries, as it is the default
+# platform for PPC64, see PPC_DEFAULT_PLATFORM
 	default y
 
 config PPC_ISERIES
 	bool "IBM Legacy iSeries"
 	depends on PPC_MULTIPLATFORM && PPC64
 	select PPC_INDIRECT_IO
+	select PPC_PLATFORM_CHOSEN
 
 config PPC_CHRP
 	bool "Common Hardware Reference Platform (CHRP) based machines"
@@ -423,6 +434,8 @@ config PPC_CHRP
 	select PPC_MPC106
 	select PPC_UDBG_16550
 	select PPC_NATIVE
+# No need to "select PPC_PLATFORM_CHOSEN" here, as it is the default platform 
+# for PPC32, see PPC_DEFAULT_PLATFORM
 	default y
 
 config PPC_MPC52xx
@@ -436,6 +449,7 @@ config PPC_EFIKA
 	select RTAS_PROC
 	select PPC_MPC52xx
 	select PPC_NATIVE
+	select PPC_PLATFORM_CHOSEN
 	default n
 
 config PPC_LITE5200
@@ -451,6 +465,7 @@ config PPC_PMAC
 	select PPC_INDIRECT_PCI if PPC32
 	select PPC_MPC106 if PPC32
 	select PPC_NATIVE
+	select PPC_PLATFORM_CHOSEN
 	default y
 
 config PPC_PMAC64
@@ -461,6 +476,7 @@ config PPC_PMAC64
 	select MPIC_BROKEN_U3
 	select GENERIC_TBSYNC
 	select PPC_970_NAP
+	select PPC_PLATFORM_CHOSEN
 	default y
 
 config PPC_PREP
@@ -471,6 +487,7 @@ config PPC_PREP
 	select PPC_INDIRECT_PCI
 	select PPC_UDBG_16550
 	select PPC_NATIVE
+	select PPC_PLATFORM_CHOSEN
 	default n
 
 config PPC_MAPLE
@@ -485,6 +502,7 @@ config PPC_MAPLE
 	select PPC_NATIVE
 	select PPC_RTAS
 	select ATA_NONSTANDARD if ATA
+	select PPC_PLATFORM_CHOSEN
 	default n
 	help
           This option enables support for the Maple 970FX Evaluation Board.
@@ -498,6 +516,7 @@ config PPC_PASEMI
 	select PPC_UDBG_16550
 	select GENERIC_TBSYNC
 	select PPC_NATIVE
+	select PPC_PLATFORM_CHOSEN
 	help
 	  This option enables support for PA Semi's PWRficient line
 	  of SoC processors, including PA6T-1682M
@@ -524,11 +543,13 @@ config PPC_IBM_CELL_BLADE
 	select MMIO_NVRAM
 	select PPC_UDBG_16550
 	select UDBG_RTAS_CONSOLE
+	select PPC_PLATFORM_CHOSEN
 
 config PPC_PS3
 	bool "Sony PS3 (incomplete)"
 	depends on PPC_MULTIPLATFORM && PPC64
 	select PPC_CELL
+	select PPC_PLATFORM_CHOSEN
 	help
 	  This option enables support for the Sony PS3 game console
 	  and other platforms using the PS3 hypervisor.
-- 
1.5.0.6


Yours Tony

  linux.conf.au        http://linux.conf.au/ || http://lca2008.linux.org.au/
  Jan 28 - Feb 02 2008 The Australian Linux Technical Conference!


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

end of thread, other threads:[~2007-04-04  6:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-30 21:53 Powerpc build unhappy in 2.6.20.4? Rob Landley
2007-04-01 23:14 ` Tony Breeds
     [not found]   ` <200704021514.14681.rob@landley.net>
2007-04-03  0:51     ` Tony Breeds
2007-04-03  3:51       ` Rob Landley
2007-04-04  6:59         ` Tony Breeds

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.