* kexec: Cannot determine the file type of arch/x86/boot/bzImage
@ 2007-10-16 19:51 Thomas Meyer
2007-10-16 20:06 ` Randy Dunlap
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Thomas Meyer @ 2007-10-16 19:51 UTC (permalink / raw)
To: Linux Kernel Mailing List
Hi.
Look at this:
$ file arch/x86/boot/bzImage (tree 821f3eff7cdb9d6c7076effabd46c96c322daed1)
arch/x86/boot/bzImage: Linux kernel x86 boot executable zImage, version
2.6.23 (thomas@hotzenplotz) #39, RO-rootFS, root_dev 0x803, swap_dev
0x1, Prompt for Videomode
$ file /boot/bzImage-2.6.23
/boot/bzImage-2.6.23: Linux kernel x86 boot executable RO-rootFS,
root_dev 0x803, swap_dev 0x1, Normal VGA
and this:
# kexec -l arch/x86/boot/bzImage
Cannot determine the file type of arch/x86/boot/bzImage
How to solve this error?
mfg
thomas
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage 2007-10-16 19:51 kexec: Cannot determine the file type of arch/x86/boot/bzImage Thomas Meyer @ 2007-10-16 20:06 ` Randy Dunlap 2007-10-16 21:43 ` Luca Tettamanti 2007-10-16 23:27 ` Eric W. Biederman 2 siblings, 0 replies; 13+ messages in thread From: Randy Dunlap @ 2007-10-16 20:06 UTC (permalink / raw) To: Thomas Meyer; +Cc: kexec, Linux Kernel Mailing List On Tue, 16 Oct 2007 21:51:13 +0200 Thomas Meyer wrote: [adding kexec mailing list] > Hi. > > Look at this: > > $ file arch/x86/boot/bzImage (tree 821f3eff7cdb9d6c7076effabd46c96c322daed1) > arch/x86/boot/bzImage: Linux kernel x86 boot executable zImage, version > 2.6.23 (thomas@hotzenplotz) #39, RO-rootFS, root_dev 0x803, swap_dev > 0x1, Prompt for Videomode > > $ file /boot/bzImage-2.6.23 > /boot/bzImage-2.6.23: Linux kernel x86 boot executable RO-rootFS, > root_dev 0x803, swap_dev 0x1, Normal VGA > > and this: > > # kexec -l arch/x86/boot/bzImage > Cannot determine the file type of arch/x86/boot/bzImage > > How to solve this error? > > mfg > thomas > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > --- ~Randy _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage @ 2007-10-16 20:06 ` Randy Dunlap 0 siblings, 0 replies; 13+ messages in thread From: Randy Dunlap @ 2007-10-16 20:06 UTC (permalink / raw) To: Thomas Meyer; +Cc: Linux Kernel Mailing List, kexec On Tue, 16 Oct 2007 21:51:13 +0200 Thomas Meyer wrote: [adding kexec mailing list] > Hi. > > Look at this: > > $ file arch/x86/boot/bzImage (tree 821f3eff7cdb9d6c7076effabd46c96c322daed1) > arch/x86/boot/bzImage: Linux kernel x86 boot executable zImage, version > 2.6.23 (thomas@hotzenplotz) #39, RO-rootFS, root_dev 0x803, swap_dev > 0x1, Prompt for Videomode > > $ file /boot/bzImage-2.6.23 > /boot/bzImage-2.6.23: Linux kernel x86 boot executable RO-rootFS, > root_dev 0x803, swap_dev 0x1, Normal VGA > > and this: > > # kexec -l arch/x86/boot/bzImage > Cannot determine the file type of arch/x86/boot/bzImage > > How to solve this error? > > mfg > thomas > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > --- ~Randy ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage 2007-10-16 20:06 ` Randy Dunlap @ 2007-10-16 21:00 ` yhlu -1 siblings, 0 replies; 13+ messages in thread From: yhlu @ 2007-10-16 21:00 UTC (permalink / raw) To: Randy Dunlap; +Cc: kexec, Linux Kernel Mailing List, Thomas Meyer On 10/16/07, Randy Dunlap <randy.dunlap@oracle.com> wrote: > On Tue, 16 Oct 2007 21:51:13 +0200 Thomas Meyer wrote: > > [adding kexec mailing list] > > > > Hi. > > > > Look at this: > > > > $ file arch/x86/boot/bzImage (tree 821f3eff7cdb9d6c7076effabd46c96c322daed1) > > arch/x86/boot/bzImage: Linux kernel x86 boot executable zImage, version > > 2.6.23 (thomas@hotzenplotz) #39, RO-rootFS, root_dev 0x803, swap_dev > > 0x1, Prompt for Videomode > > > > $ file /boot/bzImage-2.6.23 > > /boot/bzImage-2.6.23: Linux kernel x86 boot executable RO-rootFS, > > root_dev 0x803, swap_dev 0x1, Normal VGA > > > > and this: > > > > # kexec -l arch/x86/boot/bzImage > > Cannot determine the file type of arch/x86/boot/bzImage > > > > How to solve this error? #!/bin/bash KERNEL_VER=2.6.24_k8.2 CONSOLE=console=uart8250,io,0x3f8,9600n8 ./kexec -t bzImage -l bzImage_"$KERNEL_VER" --command-line="apic=debug acpi.debug_level=0x0000000F pci=routeirq nmi_watchdog=2 ramdisk_size=65536 root=/dev/ram0 rw ip=dhcp $CONSOLE" --ramdisk=mydisk8_x86_64.gz YH _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage @ 2007-10-16 21:00 ` yhlu 0 siblings, 0 replies; 13+ messages in thread From: yhlu @ 2007-10-16 21:00 UTC (permalink / raw) To: Randy Dunlap; +Cc: Thomas Meyer, kexec, Linux Kernel Mailing List On 10/16/07, Randy Dunlap <randy.dunlap@oracle.com> wrote: > On Tue, 16 Oct 2007 21:51:13 +0200 Thomas Meyer wrote: > > [adding kexec mailing list] > > > > Hi. > > > > Look at this: > > > > $ file arch/x86/boot/bzImage (tree 821f3eff7cdb9d6c7076effabd46c96c322daed1) > > arch/x86/boot/bzImage: Linux kernel x86 boot executable zImage, version > > 2.6.23 (thomas@hotzenplotz) #39, RO-rootFS, root_dev 0x803, swap_dev > > 0x1, Prompt for Videomode > > > > $ file /boot/bzImage-2.6.23 > > /boot/bzImage-2.6.23: Linux kernel x86 boot executable RO-rootFS, > > root_dev 0x803, swap_dev 0x1, Normal VGA > > > > and this: > > > > # kexec -l arch/x86/boot/bzImage > > Cannot determine the file type of arch/x86/boot/bzImage > > > > How to solve this error? #!/bin/bash KERNEL_VER=2.6.24_k8.2 CONSOLE=console=uart8250,io,0x3f8,9600n8 ./kexec -t bzImage -l bzImage_"$KERNEL_VER" --command-line="apic=debug acpi.debug_level=0x0000000F pci=routeirq nmi_watchdog=2 ramdisk_size=65536 root=/dev/ram0 rw ip=dhcp $CONSOLE" --ramdisk=mydisk8_x86_64.gz YH ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage 2007-10-16 20:06 ` Randy Dunlap @ 2007-10-16 21:40 ` Thomas Meyer -1 siblings, 0 replies; 13+ messages in thread From: Thomas Meyer @ 2007-10-16 21:40 UTC (permalink / raw) To: sam; +Cc: Randy Dunlap, kexec, Linux Kernel Mailing List Randy Dunlap schrieb: > On Tue, 16 Oct 2007 21:51:13 +0200 Thomas Meyer wrote: > > [adding kexec mailing list] > > >> Look at this: >> >> $ file arch/x86/boot/bzImage (tree 821f3eff7cdb9d6c7076effabd46c96c322daed1) >> arch/x86/boot/bzImage: Linux kernel x86 boot executable zImage, version >> 2.6.23 (thomas@hotzenplotz) #39, RO-rootFS, root_dev 0x803, swap_dev >> 0x1, Prompt for Videomode >> >> $ file /boot/bzImage-2.6.23 >> /boot/bzImage-2.6.23: Linux kernel x86 boot executable RO-rootFS, >> root_dev 0x803, swap_dev 0x1, Normal VGA >> >> and this: >> >> # kexec -l arch/x86/boot/bzImage >> Cannot determine the file type of arch/x86/boot/bzImage >> >> How to solve this error? >> $ git bisect good f77bf01425b11947eeb3b5b54685212c302741b8 is first bad commit commit f77bf01425b11947eeb3b5b54685212c302741b8 Author: Sam Ravnborg <sam@neptun.(none)> Date: Mon Oct 15 22:25:06 2007 +0200 kbuild: introduce ccflags-y, asflags-y and ldflags-y Introduce ccflags-y, asflags-y and ldflags-y so we soon can deprecate use of EXTRA_CFLAGS, EXTRA_AFLAGS and EXTRA_LDFLAGS. This patch does not touch any in-tree users - thats next round. Lets get this committed first and then fix the users of the soon to be deprecated variants next. The rationale behind this change is to introduce support for makefile fragments like: ccflags-$(CONFIG_WHATEVER_DEBUG) := -DDEBUG As a replacement for the uglier: ifeq ($(CONFIG_WHATEVER_DEBUG),y) EXTRA_CFLAGS := -DDEBUG endif Signed-off-by: Sam Ravnborg <sam@ravnborg.org> :040000 040000 03915c7c738eefa31f2327521130df23b7dfe95e e2a1677df3709813ff793fdfa77d80fff9b838a7 M Documentation :040000 040000 ff4ad149975df39509a18782341f1f8f6a32f07a 663bce3c08a0f2e107cecb0b29edc4fe9d5735a0 M scripts _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage @ 2007-10-16 21:40 ` Thomas Meyer 0 siblings, 0 replies; 13+ messages in thread From: Thomas Meyer @ 2007-10-16 21:40 UTC (permalink / raw) To: sam; +Cc: Randy Dunlap, Linux Kernel Mailing List, kexec Randy Dunlap schrieb: > On Tue, 16 Oct 2007 21:51:13 +0200 Thomas Meyer wrote: > > [adding kexec mailing list] > > >> Look at this: >> >> $ file arch/x86/boot/bzImage (tree 821f3eff7cdb9d6c7076effabd46c96c322daed1) >> arch/x86/boot/bzImage: Linux kernel x86 boot executable zImage, version >> 2.6.23 (thomas@hotzenplotz) #39, RO-rootFS, root_dev 0x803, swap_dev >> 0x1, Prompt for Videomode >> >> $ file /boot/bzImage-2.6.23 >> /boot/bzImage-2.6.23: Linux kernel x86 boot executable RO-rootFS, >> root_dev 0x803, swap_dev 0x1, Normal VGA >> >> and this: >> >> # kexec -l arch/x86/boot/bzImage >> Cannot determine the file type of arch/x86/boot/bzImage >> >> How to solve this error? >> $ git bisect good f77bf01425b11947eeb3b5b54685212c302741b8 is first bad commit commit f77bf01425b11947eeb3b5b54685212c302741b8 Author: Sam Ravnborg <sam@neptun.(none)> Date: Mon Oct 15 22:25:06 2007 +0200 kbuild: introduce ccflags-y, asflags-y and ldflags-y Introduce ccflags-y, asflags-y and ldflags-y so we soon can deprecate use of EXTRA_CFLAGS, EXTRA_AFLAGS and EXTRA_LDFLAGS. This patch does not touch any in-tree users - thats next round. Lets get this committed first and then fix the users of the soon to be deprecated variants next. The rationale behind this change is to introduce support for makefile fragments like: ccflags-$(CONFIG_WHATEVER_DEBUG) := -DDEBUG As a replacement for the uglier: ifeq ($(CONFIG_WHATEVER_DEBUG),y) EXTRA_CFLAGS := -DDEBUG endif Signed-off-by: Sam Ravnborg <sam@ravnborg.org> :040000 040000 03915c7c738eefa31f2327521130df23b7dfe95e e2a1677df3709813ff793fdfa77d80fff9b838a7 M Documentation :040000 040000 ff4ad149975df39509a18782341f1f8f6a32f07a 663bce3c08a0f2e107cecb0b29edc4fe9d5735a0 M scripts ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage 2007-10-16 21:40 ` Thomas Meyer @ 2007-10-16 21:45 ` Randy Dunlap -1 siblings, 0 replies; 13+ messages in thread From: Randy Dunlap @ 2007-10-16 21:45 UTC (permalink / raw) To: Thomas Meyer; +Cc: kexec, torvalds, sam, Linux Kernel Mailing List On Tue, 16 Oct 2007 23:40:54 +0200 Thomas Meyer wrote: > Randy Dunlap schrieb: > > On Tue, 16 Oct 2007 21:51:13 +0200 Thomas Meyer wrote: > > > > [adding kexec mailing list] > > > > > >> Look at this: > >> > >> $ file arch/x86/boot/bzImage (tree 821f3eff7cdb9d6c7076effabd46c96c322daed1) > >> arch/x86/boot/bzImage: Linux kernel x86 boot executable zImage, version > >> 2.6.23 (thomas@hotzenplotz) #39, RO-rootFS, root_dev 0x803, swap_dev > >> 0x1, Prompt for Videomode > >> > >> $ file /boot/bzImage-2.6.23 > >> /boot/bzImage-2.6.23: Linux kernel x86 boot executable RO-rootFS, > >> root_dev 0x803, swap_dev 0x1, Normal VGA > >> > >> and this: > >> > >> # kexec -l arch/x86/boot/bzImage > >> Cannot determine the file type of arch/x86/boot/bzImage > >> > >> How to solve this error? > >> > $ git bisect good > f77bf01425b11947eeb3b5b54685212c302741b8 is first bad commit > commit f77bf01425b11947eeb3b5b54685212c302741b8 > Author: Sam Ravnborg <sam@neptun.(none)> > Date: Mon Oct 15 22:25:06 2007 +0200 > > kbuild: introduce ccflags-y, asflags-y and ldflags-y > > Introduce ccflags-y, asflags-y and ldflags-y so we soon can > deprecate use of EXTRA_CFLAGS, EXTRA_AFLAGS and EXTRA_LDFLAGS. > This patch does not touch any in-tree users - thats next round. > Lets get this committed first and then fix the users of the > soon to be deprecated variants next. > > The rationale behind this change is to introduce support for > makefile fragments like: > > ccflags-$(CONFIG_WHATEVER_DEBUG) := -DDEBUG > > As a replacement for the uglier: > ifeq ($(CONFIG_WHATEVER_DEBUG),y) > EXTRA_CFLAGS := -DDEBUG > endif > > Signed-off-by: Sam Ravnborg <sam@ravnborg.org> > > :040000 040000 03915c7c738eefa31f2327521130df23b7dfe95e > e2a1677df3709813ff793fdfa77d80fff9b838a7 M Documentation > :040000 040000 ff4ad149975df39509a18782341f1f8f6a32f07a > 663bce3c08a0f2e107cecb0b29edc4fe9d5735a0 M scripts This makes 2 big problems with this patch in the last 1 hour. Probably time to revert it... --- ~Randy _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage @ 2007-10-16 21:45 ` Randy Dunlap 0 siblings, 0 replies; 13+ messages in thread From: Randy Dunlap @ 2007-10-16 21:45 UTC (permalink / raw) To: Thomas Meyer; +Cc: sam, Linux Kernel Mailing List, kexec, torvalds On Tue, 16 Oct 2007 23:40:54 +0200 Thomas Meyer wrote: > Randy Dunlap schrieb: > > On Tue, 16 Oct 2007 21:51:13 +0200 Thomas Meyer wrote: > > > > [adding kexec mailing list] > > > > > >> Look at this: > >> > >> $ file arch/x86/boot/bzImage (tree 821f3eff7cdb9d6c7076effabd46c96c322daed1) > >> arch/x86/boot/bzImage: Linux kernel x86 boot executable zImage, version > >> 2.6.23 (thomas@hotzenplotz) #39, RO-rootFS, root_dev 0x803, swap_dev > >> 0x1, Prompt for Videomode > >> > >> $ file /boot/bzImage-2.6.23 > >> /boot/bzImage-2.6.23: Linux kernel x86 boot executable RO-rootFS, > >> root_dev 0x803, swap_dev 0x1, Normal VGA > >> > >> and this: > >> > >> # kexec -l arch/x86/boot/bzImage > >> Cannot determine the file type of arch/x86/boot/bzImage > >> > >> How to solve this error? > >> > $ git bisect good > f77bf01425b11947eeb3b5b54685212c302741b8 is first bad commit > commit f77bf01425b11947eeb3b5b54685212c302741b8 > Author: Sam Ravnborg <sam@neptun.(none)> > Date: Mon Oct 15 22:25:06 2007 +0200 > > kbuild: introduce ccflags-y, asflags-y and ldflags-y > > Introduce ccflags-y, asflags-y and ldflags-y so we soon can > deprecate use of EXTRA_CFLAGS, EXTRA_AFLAGS and EXTRA_LDFLAGS. > This patch does not touch any in-tree users - thats next round. > Lets get this committed first and then fix the users of the > soon to be deprecated variants next. > > The rationale behind this change is to introduce support for > makefile fragments like: > > ccflags-$(CONFIG_WHATEVER_DEBUG) := -DDEBUG > > As a replacement for the uglier: > ifeq ($(CONFIG_WHATEVER_DEBUG),y) > EXTRA_CFLAGS := -DDEBUG > endif > > Signed-off-by: Sam Ravnborg <sam@ravnborg.org> > > :040000 040000 03915c7c738eefa31f2327521130df23b7dfe95e > e2a1677df3709813ff793fdfa77d80fff9b838a7 M Documentation > :040000 040000 ff4ad149975df39509a18782341f1f8f6a32f07a > 663bce3c08a0f2e107cecb0b29edc4fe9d5735a0 M scripts This makes 2 big problems with this patch in the last 1 hour. Probably time to revert it... --- ~Randy ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage 2007-10-16 21:40 ` Thomas Meyer @ 2007-10-16 22:06 ` Sam Ravnborg -1 siblings, 0 replies; 13+ messages in thread From: Sam Ravnborg @ 2007-10-16 22:06 UTC (permalink / raw) To: Thomas Meyer; +Cc: Randy Dunlap, kexec, Linux Kernel Mailing List On Tue, Oct 16, 2007 at 11:40:54PM +0200, Thomas Meyer wrote: > >> How to solve this error? Fixed by following patch. Sorry for the inconvinience. Sam From 7eebb9348655b55553d65fc7cb6cfad292d28dbb Mon Sep 17 00:00:00 2001 From: Sam Ravnborg <sam@neptun.(none)> Date: Tue, 16 Oct 2007 23:50:33 +0200 Subject: [PATCH] x86: fix boot error introduced by kbuild x86 uses target specific assignment of EXTRA_AFLAGS, EXTRA_CFLAGS - this caused troubles with introducing asflags-y, ccflags-y. Fixed the target specific assignments in arch/x86/boot/Makefile and auditted the rest of the kernel for similar usage. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> --- arch/x86/boot/Makefile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile index d6ed8e5..e8756e5 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile @@ -64,10 +64,10 @@ KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ $(obj)/zImage: IMAGE_OFFSET := 0x1000 -$(obj)/zImage: EXTRA_AFLAGS := $(SVGA_MODE) $(RAMDISK) +$(obj)/zImage: asflags-y := $(SVGA_MODE) $(RAMDISK) $(obj)/bzImage: IMAGE_OFFSET := 0x100000 -$(obj)/bzImage: EXTRA_CFLAGS := -D__BIG_KERNEL__ -$(obj)/bzImage: EXTRA_AFLAGS := $(SVGA_MODE) $(RAMDISK) -D__BIG_KERNEL__ +$(obj)/bzImage: ccflags-y := -D__BIG_KERNEL__ +$(obj)/bzImage: asflags-y := $(SVGA_MODE) $(RAMDISK) -D__BIG_KERNEL__ $(obj)/bzImage: BUILDFLAGS := -b quiet_cmd_image = BUILD $@ -- 1.5.2.4 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage @ 2007-10-16 22:06 ` Sam Ravnborg 0 siblings, 0 replies; 13+ messages in thread From: Sam Ravnborg @ 2007-10-16 22:06 UTC (permalink / raw) To: Thomas Meyer; +Cc: Randy Dunlap, Linux Kernel Mailing List, kexec On Tue, Oct 16, 2007 at 11:40:54PM +0200, Thomas Meyer wrote: > >> How to solve this error? Fixed by following patch. Sorry for the inconvinience. Sam >From 7eebb9348655b55553d65fc7cb6cfad292d28dbb Mon Sep 17 00:00:00 2001 From: Sam Ravnborg <sam@neptun.(none)> Date: Tue, 16 Oct 2007 23:50:33 +0200 Subject: [PATCH] x86: fix boot error introduced by kbuild x86 uses target specific assignment of EXTRA_AFLAGS, EXTRA_CFLAGS - this caused troubles with introducing asflags-y, ccflags-y. Fixed the target specific assignments in arch/x86/boot/Makefile and auditted the rest of the kernel for similar usage. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> --- arch/x86/boot/Makefile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile index d6ed8e5..e8756e5 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile @@ -64,10 +64,10 @@ KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ $(obj)/zImage: IMAGE_OFFSET := 0x1000 -$(obj)/zImage: EXTRA_AFLAGS := $(SVGA_MODE) $(RAMDISK) +$(obj)/zImage: asflags-y := $(SVGA_MODE) $(RAMDISK) $(obj)/bzImage: IMAGE_OFFSET := 0x100000 -$(obj)/bzImage: EXTRA_CFLAGS := -D__BIG_KERNEL__ -$(obj)/bzImage: EXTRA_AFLAGS := $(SVGA_MODE) $(RAMDISK) -D__BIG_KERNEL__ +$(obj)/bzImage: ccflags-y := -D__BIG_KERNEL__ +$(obj)/bzImage: asflags-y := $(SVGA_MODE) $(RAMDISK) -D__BIG_KERNEL__ $(obj)/bzImage: BUILDFLAGS := -b quiet_cmd_image = BUILD $@ -- 1.5.2.4 ^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage 2007-10-16 19:51 kexec: Cannot determine the file type of arch/x86/boot/bzImage Thomas Meyer 2007-10-16 20:06 ` Randy Dunlap @ 2007-10-16 21:43 ` Luca Tettamanti 2007-10-16 23:27 ` Eric W. Biederman 2 siblings, 0 replies; 13+ messages in thread From: Luca Tettamanti @ 2007-10-16 21:43 UTC (permalink / raw) To: Thomas Meyer; +Cc: Linux Kernel Mailing List, Sam Ravnborg Sam, please take a look at this: Il Tue, Oct 16, 2007 at 09:51:13PM +0200, Thomas Meyer ha scritto: > Look at this: > > $ file arch/x86/boot/bzImage (tree 821f3eff7cdb9d6c7076effabd46c96c322daed1) > arch/x86/boot/bzImage: Linux kernel x86 boot executable zImage, version > 2.6.23 (thomas@hotzenplotz) #39, RO-rootFS, root_dev 0x803, swap_dev > 0x1, Prompt for Videomode I just noticed the same problem when grub refused to load that thing. The issue is that the build system created a zImage (and not a bzImage); even passing the target explicitly doesn't solve the problem. git bisect says: f77bf01425b11947eeb3b5b54685212c302741b8 is first bad commit commit f77bf01425b11947eeb3b5b54685212c302741b8 Author: Sam Ravnborg <sam@neptun.(none)> --- (Ops, you have a problem on you git setup) Date: Mon Oct 15 22:25:06 2007 +0200 kbuild: introduce ccflags-y, asflags-y and ldflags-y Introduce ccflags-y, asflags-y and ldflags-y so we soon can deprecate use of EXTRA_CFLAGS, EXTRA_AFLAGS and EXTRA_LDFLAGS. This patch does not touch any in-tree users - thats next round. Lets get this committed first and then fix the users of the soon to be deprecated variants next. The rationale behind this change is to introduce support for makefile fragments like: ccflags-$(CONFIG_WHATEVER_DEBUG) := -DDEBUG As a replacement for the uglier: ifeq ($(CONFIG_WHATEVER_DEBUG),y) EXTRA_CFLAGS := -DDEBUG endif Signed-off-by: Sam Ravnborg <sam@ravnborg.org> :040000 040000 03915c7c738eefa31f2327521130df23b7dfe95e e2a1677df3709813ff793fdfa77d80fff9b838a7 M Documentation :040000 040000 ff4ad149975df39509a18782341f1f8f6a32f07a 663bce3c08a0f2e107cecb0b29edc4fe9d5735a0 M scripts I'm building a x86_64 image, using an external directory (O=...) in case it matters. Bisect log: git-bisect start # bad: [821f3eff7cdb9d6c7076effabd46c96c322daed1] Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild git-bisect bad 821f3eff7cdb9d6c7076effabd46c96c322daed1 # good: [bbf25010f1a6b761914430f5fca081ec8c7accd1] Linux 2.6.23 git-bisect good bbf25010f1a6b761914430f5fca081ec8c7accd1 # good: [4d5709a7b7d54fc5882d2943a14988a92d48c00a] Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq git-bisect good 4d5709a7b7d54fc5882d2943a14988a92d48c00a # good: [b5869ce7f68b233ceb81465a7644be0d9a5f3dbb] Merge git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched git-bisect good b5869ce7f68b233ceb81465a7644be0d9a5f3dbb # good: [11370ee2c1c578a704f47d5513d57274c335db43] [ALSA] hda-codec: Add two new systems to ALC883 git-bisect good 11370ee2c1c578a704f47d5513d57274c335db43 # good: [05440dfcfcabde6fcf7297dfa5a29f0355b78ffb] rtc-cmos probe() cleanup git-bisect good 05440dfcfcabde6fcf7297dfa5a29f0355b78ffb # good: [f20bf6125605acbbc7eb8c9420d7221c91aa83eb] time: introduce xtime_seconds git-bisect good f20bf6125605acbbc7eb8c9420d7221c91aa83eb # good: [92d15c2ccbb3e31a3fc71ad28fdb55e1319383c0] Merge branch 'for-linus' of git://git.kernel.dk/data/git/linux-2.6-block git-bisect good 92d15c2ccbb3e31a3fc71ad28fdb55e1319383c0 # good: [fc8a327db6c46de783b1a4276d846841b9abc24c] Merge branch 'linus' of master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa git-bisect good fc8a327db6c46de783b1a4276d846841b9abc24c # good: [3b16cc2d4ccc3949455432241fe378448e77d911] kbuild: move Kai Germaschewski to CREDITS git-bisect good 3b16cc2d4ccc3949455432241fe378448e77d911 # good: [2f7055c5932ecc02159be375ebda1eee64665d17] [MIPS] MIPSsim: Fix booting from NFS root git-bisect good 2f7055c5932ecc02159be375ebda1eee64665d17 # good: [52bcc3308ae3344266f55bf98a22c1ac0201eda7] kbuild: enable use of AFLAGS and CFLAGS on commandline git-bisect good 52bcc3308ae3344266f55bf98a22c1ac0201eda7 # good: [8bb00d83d8fc2de5c0614f5d55780107e0c375fe] [MIPS] Increase cp0 compare clockevent min_delta_ns from 0x30 to 0x300. git-bisect good 8bb00d83d8fc2de5c0614f5d55780107e0c375fe # bad: [f77bf01425b11947eeb3b5b54685212c302741b8] kbuild: introduce ccflags-y, asflags-y and ldflags-y git-bisect bad f77bf01425b11947eeb3b5b54685212c302741b8 # good: [06c5040cdb13d27adad118f2fbfae905a1911b37] kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP git-bisect good 06c5040cdb13d27adad118f2fbfae905a1911b37 Luca -- The trouble with computers is that they do what you tell them, not what you want. D. Cohen ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage 2007-10-16 19:51 kexec: Cannot determine the file type of arch/x86/boot/bzImage Thomas Meyer 2007-10-16 20:06 ` Randy Dunlap 2007-10-16 21:43 ` Luca Tettamanti @ 2007-10-16 23:27 ` Eric W. Biederman 2 siblings, 0 replies; 13+ messages in thread From: Eric W. Biederman @ 2007-10-16 23:27 UTC (permalink / raw) To: Thomas Meyer; +Cc: Linux Kernel Mailing List Thomas Meyer <thomas@m3y3r.de> writes: > Hi. > > Look at this: > > $ file arch/x86/boot/bzImage (tree 821f3eff7cdb9d6c7076effabd46c96c322daed1) > arch/x86/boot/bzImage: Linux kernel x86 boot executable zImage, version > 2.6.23 (thomas@hotzenplotz) #39, RO-rootFS, root_dev 0x803, swap_dev > 0x1, Prompt for Videomode > > $ file /boot/bzImage-2.6.23 > /boot/bzImage-2.6.23: Linux kernel x86 boot executable RO-rootFS, > root_dev 0x803, swap_dev 0x1, Normal VGA > > and this: > > # kexec -l arch/x86/boot/bzImage > Cannot determine the file type of arch/x86/boot/bzImage > > How to solve this error? Looks like a kbuild error was causing us to build zImage kernels instead of bzImage kernels on x86 and thus kexec didn't recognize the format and so refused to boot it. Eric ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2007-10-16 23:28 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-10-16 19:51 kexec: Cannot determine the file type of arch/x86/boot/bzImage Thomas Meyer 2007-10-16 20:06 ` Randy Dunlap 2007-10-16 20:06 ` Randy Dunlap 2007-10-16 21:00 ` yhlu 2007-10-16 21:00 ` yhlu 2007-10-16 21:40 ` Thomas Meyer 2007-10-16 21:40 ` Thomas Meyer 2007-10-16 21:45 ` Randy Dunlap 2007-10-16 21:45 ` Randy Dunlap 2007-10-16 22:06 ` Sam Ravnborg 2007-10-16 22:06 ` Sam Ravnborg 2007-10-16 21:43 ` Luca Tettamanti 2007-10-16 23:27 ` Eric W. Biederman
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.