* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage
[not found] <47151631.9000307@m3y3r.de>
@ 2007-10-16 20:06 ` Randy Dunlap
2007-10-16 21:00 ` yhlu
2007-10-16 21:40 ` Thomas Meyer
0 siblings, 2 replies; 5+ 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] 5+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage
2007-10-16 20:06 ` kexec: Cannot determine the file type of arch/x86/boot/bzImage Randy Dunlap
@ 2007-10-16 21:00 ` yhlu
2007-10-16 21:40 ` Thomas Meyer
1 sibling, 0 replies; 5+ 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] 5+ messages in thread
* Re: kexec: Cannot determine the file type of arch/x86/boot/bzImage
2007-10-16 20:06 ` kexec: Cannot determine the file type of arch/x86/boot/bzImage Randy Dunlap
2007-10-16 21:00 ` yhlu
@ 2007-10-16 21:40 ` Thomas Meyer
2007-10-16 21:45 ` Randy Dunlap
2007-10-16 22:06 ` Sam Ravnborg
1 sibling, 2 replies; 5+ 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] 5+ 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
2007-10-16 22:06 ` Sam Ravnborg
1 sibling, 0 replies; 5+ 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] 5+ 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
@ 2007-10-16 22:06 ` Sam Ravnborg
1 sibling, 0 replies; 5+ 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] 5+ messages in thread
end of thread, other threads:[~2007-10-16 22:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <47151631.9000307@m3y3r.de>
2007-10-16 20:06 ` kexec: Cannot determine the file type of arch/x86/boot/bzImage Randy Dunlap
2007-10-16 21:00 ` yhlu
2007-10-16 21:40 ` Thomas Meyer
2007-10-16 21:45 ` Randy Dunlap
2007-10-16 22:06 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox