* [gentoo-user] Problem with compiling kernel
@ 2009-05-11 19:33 Marc Blumentritt
2009-05-11 19:39 ` Arnau Bria
2009-05-12 19:04 ` Marc Blumentritt
0 siblings, 2 replies; 12+ messages in thread
From: Marc Blumentritt @ 2009-05-11 19:33 UTC (permalink / raw
To: gentoo-user
Hi,
when I try to compile a kernel again (meaning after compiling it and
building the modules), I get this error message:
hive linux # make && make modules_install && make
[...]
INSTALL sound/core/snd-timer.ko
INSTALL sound/core/snd.ko
INSTALL sound/drivers/mpu401/snd-mpu401-uart.ko
INSTALL sound/pci/ac97/snd-ac97-codec.ko
INSTALL sound/pci/snd-via82xx-modem.ko
INSTALL sound/pci/snd-via82xx.ko
INSTALL sound/soc/snd-soc-core.ko
INSTALL sound/soundcore.ko
DEPMOD 2.6.29-gentoo-r3
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
/usr/src/linux-2.6.29-gentoo-r3/usr/Makefile:41: *** mixed implicit and
normal rules. Stop.
make: *** [usr] Error 2
The same happens with stable gentoo-sources and stable vanilla sources.
This thing worked a few weeks again (I first noticed the error
yesterday, but this does not mean, that it was the first time the error
there).
Any ideas, what could be wrong or how to identify the problem?
Marc
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Problem with compiling kernel
2009-05-11 19:33 [gentoo-user] Problem with compiling kernel Marc Blumentritt
@ 2009-05-11 19:39 ` Arnau Bria
2009-05-11 19:56 ` Paul Hartman
2009-05-12 19:01 ` [gentoo-user] " Marc Blumentritt
2009-05-12 19:04 ` Marc Blumentritt
1 sibling, 2 replies; 12+ messages in thread
From: Arnau Bria @ 2009-05-11 19:39 UTC (permalink / raw
To: gentoo-user
On Mon, 11 May 2009 21:33:23 +0200
Marc Blumentritt wrote:
> Hi,
Hi,
> when I try to compile a kernel again (meaning after compiling it and
> building the modules), I get this error message:
>
> hive linux # make && make modules_install && make
just one question about your compiling command, why make && ... && make?
I just do make all && make modules_install ...
cheers,
Arnau
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Problem with compiling kernel
2009-05-11 19:39 ` Arnau Bria
@ 2009-05-11 19:56 ` Paul Hartman
2009-05-11 20:22 ` Dale
2009-05-12 19:01 ` [gentoo-user] " Marc Blumentritt
1 sibling, 1 reply; 12+ messages in thread
From: Paul Hartman @ 2009-05-11 19:56 UTC (permalink / raw
To: gentoo-user
On Mon, May 11, 2009 at 2:39 PM, Arnau Bria <arnau@emergetux.net> wrote:
> On Mon, 11 May 2009 21:33:23 +0200
> Marc Blumentritt wrote:
>
>> Hi,
> Hi,
>
>> when I try to compile a kernel again (meaning after compiling it and
>> building the modules), I get this error message:
>>
>> hive linux # make && make modules_install && make
> just one question about your compiling command, why make && ... && make?
> I just do make all && make modules_install ...
I do:
make all
make install
make modules_install
make firmware_install
seperately :)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Problem with compiling kernel
2009-05-11 19:56 ` Paul Hartman
@ 2009-05-11 20:22 ` Dale
2009-05-11 22:45 ` Paul Hartman
0 siblings, 1 reply; 12+ messages in thread
From: Dale @ 2009-05-11 20:22 UTC (permalink / raw
To: gentoo-user
Paul Hartman wrote:
> On Mon, May 11, 2009 at 2:39 PM, Arnau Bria <arnau@emergetux.net> wrote:
>
>> On Mon, 11 May 2009 21:33:23 +0200
>> Marc Blumentritt wrote:
>>
>>
>>> Hi,
>>>
>> Hi,
>>
>>
>>> when I try to compile a kernel again (meaning after compiling it and
>>> building the modules), I get this error message:
>>>
>>> hive linux # make && make modules_install && make
>>>
>> just one question about your compiling command, why make && ... && make?
>> I just do make all && make modules_install ...
>>
>
> I do:
>
> make all
> make install
> make modules_install
> make firmware_install
>
> seperately :)
>
>
>
I do like Arnau does. It works here. What is that "firmware_install"
part anyway? I haven't ever seen that before.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Problem with compiling kernel
2009-05-11 20:22 ` Dale
@ 2009-05-11 22:45 ` Paul Hartman
2009-05-13 1:03 ` Dale
0 siblings, 1 reply; 12+ messages in thread
From: Paul Hartman @ 2009-05-11 22:45 UTC (permalink / raw
To: gentoo-user
On Mon, May 11, 2009 at 3:22 PM, Dale <rdalek1967@gmail.com> wrote:
> Paul Hartman wrote:
>> On Mon, May 11, 2009 at 2:39 PM, Arnau Bria <arnau@emergetux.net> wrote:
>>
>>> On Mon, 11 May 2009 21:33:23 +0200
>>> Marc Blumentritt wrote:
>>>
>>>
>>>> Hi,
>>>>
>>> Hi,
>>>
>>>
>>>> when I try to compile a kernel again (meaning after compiling it and
>>>> building the modules), I get this error message:
>>>>
>>>> hive linux # make && make modules_install && make
>>>>
>>> just one question about your compiling command, why make && ... && make?
>>> I just do make all && make modules_install ...
>>>
>>
>> I do:
>>
>> make all
>> make install
>> make modules_install
>> make firmware_install
>>
>> seperately :)
>>
>>
>>
>
> I do like Arnau does. It works here. What is that "firmware_install"
> part anyway? I haven't ever seen that before.
Why, it installs firmware of course. :) It looks like it was added
almost a year ago. Here are the patch check-in notes:
From: David Woodhouse <dwmw2@...>
To: <linux-kernel@...>
Subject: [PATCH 03/18] firmware: Add 'firmware_install' make target
Date: Thursday, May 29, 2008 - 4:01 am
This installs all the in-kernel-tree firmware into $(INSTALL_FW_PATH),
which defaults to $(objtree)/usr/lib/firmware and is intended end up
in /lib/firmware for udev to find the files.
This, in conjunction with the builtin-firmware support, makes it simple
for drivers with associated firmware to move over to request_firmware()
and give the user a choice of whether to have it built in to the kernel
image or loaded separately from userspace.
As with kernel header installation for userspace, it intentionally pays
no attention to configuration variables -- it installs _all_ available
firmware blobs, unconditionally.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: Problem with compiling kernel
2009-05-11 19:39 ` Arnau Bria
2009-05-11 19:56 ` Paul Hartman
@ 2009-05-12 19:01 ` Marc Blumentritt
2009-05-16 17:02 ` Mick
1 sibling, 1 reply; 12+ messages in thread
From: Marc Blumentritt @ 2009-05-12 19:01 UTC (permalink / raw
To: gentoo-user
Arnau Bria schrieb:
>> hive linux # make && make modules_install && make
> just one question about your compiling command, why make && ... && make?
> I just do make all && make modules_install ...
>
I used this command only to show the problem I have. I have a special
setup, where I place nearly the complete root file system inside the
kernel image (only /usr is added via a squashfs mount). I use for this
the kernel option "General setup -> (/path/to/my/files) Initramfs source
file(s)". When I change the source files, I have to recompile the kernel
(just running make) to include the changes inside the kernel. This has
worked up until last week.
Now I always get the error I reported in my first email.
Regards,
Marc
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: Problem with compiling kernel
2009-05-11 19:33 [gentoo-user] Problem with compiling kernel Marc Blumentritt
2009-05-11 19:39 ` Arnau Bria
@ 2009-05-12 19:04 ` Marc Blumentritt
1 sibling, 0 replies; 12+ messages in thread
From: Marc Blumentritt @ 2009-05-12 19:04 UTC (permalink / raw
To: gentoo-user
Marc Blumentritt schrieb:
> Hi,
>
> when I try to compile a kernel again (meaning after compiling it and
> building the modules), I get this error message:
>
> hive linux # make && make modules_install && make
> [...]
> INSTALL sound/core/snd-timer.ko
> INSTALL sound/core/snd.ko
> INSTALL sound/drivers/mpu401/snd-mpu401-uart.ko
> INSTALL sound/pci/ac97/snd-ac97-codec.ko
> INSTALL sound/pci/snd-via82xx-modem.ko
> INSTALL sound/pci/snd-via82xx.ko
> INSTALL sound/soc/snd-soc-core.ko
> INSTALL sound/soundcore.ko
> DEPMOD 2.6.29-gentoo-r3
> CHK include/linux/version.h
> CHK include/linux/utsrelease.h
> SYMLINK include/asm -> include/asm-x86
> CALL scripts/checksyscalls.sh
> CHK include/linux/compile.h
> /usr/src/linux-2.6.29-gentoo-r3/usr/Makefile:41: *** mixed implicit and
> normal rules. Stop.
> make: *** [usr] Error 2
>
> The same happens with stable gentoo-sources and stable vanilla sources.
>
> This thing worked a few weeks again (I first noticed the error
> yesterday, but this does not mean, that it was the first time the error
> there).
>
> Any ideas, what could be wrong or how to identify the problem?
>
I forgot to add the following information:
1.) I used fresh kernel sources (meaning fresh download and installation
via portage).
2.) When I try to remove the compiled file by running "make clean" I get
the following error:
hive linux # make clean
CLEAN arch/x86/boot/compressed
CLEAN arch/x86/boot
CLEAN /usr/src/linux-2.6.29-gentoo-r3
CLEAN arch/x86/kernel/acpi/realmode
CLEAN arch/x86/kernel/cpu
CLEAN arch/x86/kernel
CLEAN arch/x86/vdso
CLEAN drivers/char
CLEAN init
CLEAN kernel
CLEAN lib
/usr/src/linux-2.6.29-gentoo-r3/usr/Makefile:41: *** mixed implicit and
normal rules. Stop.
make: *** [_clean_usr] Error 2
Again, this happens with stable gentoo and vanilla sources, too.
Any ideas?
Marc
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Problem with compiling kernel
2009-05-11 22:45 ` Paul Hartman
@ 2009-05-13 1:03 ` Dale
2009-05-13 14:34 ` Paul Hartman
0 siblings, 1 reply; 12+ messages in thread
From: Dale @ 2009-05-13 1:03 UTC (permalink / raw
To: gentoo-user
Paul Hartman wrote:
> On Mon, May 11, 2009 at 3:22 PM, Dale <rdalek1967@gmail.com> wrote:
>
>> Paul Hartman wrote:
>>
>>> On Mon, May 11, 2009 at 2:39 PM, Arnau Bria <arnau@emergetux.net> wrote:
>>>
>>>
>>>> On Mon, 11 May 2009 21:33:23 +0200
>>>> Marc Blumentritt wrote:
>>>>
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>>
>>>> Hi,
>>>>
>>>>
>>>>
>>>>> when I try to compile a kernel again (meaning after compiling it and
>>>>> building the modules), I get this error message:
>>>>>
>>>>> hive linux # make && make modules_install && make
>>>>>
>>>>>
>>>> just one question about your compiling command, why make && ... && make?
>>>> I just do make all && make modules_install ...
>>>>
>>>>
>>> I do:
>>>
>>> make all
>>> make install
>>> make modules_install
>>> make firmware_install
>>>
>>> seperately :)
>>>
>>>
>>>
>>>
>> I do like Arnau does. It works here. What is that "firmware_install"
>> part anyway? I haven't ever seen that before.
>>
>
> Why, it installs firmware of course. :) It looks like it was added
> almost a year ago. Here are the patch check-in notes:
>
> From: David Woodhouse <dwmw2@...>
> To: <linux-kernel@...>
> Subject: [PATCH 03/18] firmware: Add 'firmware_install' make target
> Date: Thursday, May 29, 2008 - 4:01 am
>
> This installs all the in-kernel-tree firmware into $(INSTALL_FW_PATH),
> which defaults to $(objtree)/usr/lib/firmware and is intended end up
> in /lib/firmware for udev to find the files.
>
> This, in conjunction with the builtin-firmware support, makes it simple
> for drivers with associated firmware to move over to request_firmware()
> and give the user a choice of whether to have it built in to the kernel
> image or loaded separately from userspace.
>
> As with kernel header installation for userspace, it intentionally pays
> no attention to configuration variables -- it installs _all_ available
> firmware blobs, unconditionally.
>
>
>
I'm not real sure what "firmware" is so I will have to look into this a
bit more. Maybe that it would be something I, and maybe others, need to
do as well. I'm sure if someone went to the trouble of making it that
it serves a purpose.
Thanks !
Dale
:-) :-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Problem with compiling kernel
2009-05-13 1:03 ` Dale
@ 2009-05-13 14:34 ` Paul Hartman
2009-05-13 20:29 ` Dale
0 siblings, 1 reply; 12+ messages in thread
From: Paul Hartman @ 2009-05-13 14:34 UTC (permalink / raw
To: gentoo-user
On Tue, May 12, 2009 at 8:03 PM, Dale <rdalek1967@gmail.com> wrote:
> Paul Hartman wrote:
>> On Mon, May 11, 2009 at 3:22 PM, Dale <rdalek1967@gmail.com> wrote:
>>
>>> Paul Hartman wrote:
>>>
>>>> On Mon, May 11, 2009 at 2:39 PM, Arnau Bria <arnau@emergetux.net> wrote:
>>>>
>>>>
>>>>> On Mon, 11 May 2009 21:33:23 +0200
>>>>> Marc Blumentritt wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>>> when I try to compile a kernel again (meaning after compiling it and
>>>>>> building the modules), I get this error message:
>>>>>>
>>>>>> hive linux # make && make modules_install && make
>>>>>>
>>>>>>
>>>>> just one question about your compiling command, why make && ... && make?
>>>>> I just do make all && make modules_install ...
>>>>>
>>>>>
>>>> I do:
>>>>
>>>> make all
>>>> make install
>>>> make modules_install
>>>> make firmware_install
>>>>
>>>> seperately :)
>>>>
>>>>
>>>>
>>>>
>>> I do like Arnau does. It works here. What is that "firmware_install"
>>> part anyway? I haven't ever seen that before.
>>>
>>
>> Why, it installs firmware of course. :) It looks like it was added
>> almost a year ago. Here are the patch check-in notes:
>>
>> From: David Woodhouse <dwmw2@...>
>> To: <linux-kernel@...>
>> Subject: [PATCH 03/18] firmware: Add 'firmware_install' make target
>> Date: Thursday, May 29, 2008 - 4:01 am
>>
>> This installs all the in-kernel-tree firmware into $(INSTALL_FW_PATH),
>> which defaults to $(objtree)/usr/lib/firmware and is intended end up
>> in /lib/firmware for udev to find the files.
>>
>> This, in conjunction with the builtin-firmware support, makes it simple
>> for drivers with associated firmware to move over to request_firmware()
>> and give the user a choice of whether to have it built in to the kernel
>> image or loaded separately from userspace.
>>
>> As with kernel header installation for userspace, it intentionally pays
>> no attention to configuration variables -- it installs _all_ available
>> firmware blobs, unconditionally.
>>
>>
>>
>
> I'm not real sure what "firmware" is so I will have to look into this a
> bit more. Maybe that it would be something I, and maybe others, need to
> do as well. I'm sure if someone went to the trouble of making it that
> it serves a purpose.
>
> Thanks !
>
> Dale
Firmware is the software that runs a piece of hardware... usually this
is stored in NVRAM on the device and the OS shouldn't have anything to
do with altering it, but some devices just have the firmware loaded by
drivers at run-time so they can use cheaper hardware (think about
Broadcom network cards, bluetooth dongles, winmodems). Or maybe
sometimes they have both, where the onboard firmware is used but can
be overridden by the driver. Almost everything has firmware, usually
updatable, from cellphones to CD-ROM drives to video cards to RAID
controllers to Playstations. :)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Problem with compiling kernel
2009-05-13 14:34 ` Paul Hartman
@ 2009-05-13 20:29 ` Dale
0 siblings, 0 replies; 12+ messages in thread
From: Dale @ 2009-05-13 20:29 UTC (permalink / raw
To: gentoo-user
Paul Hartman wrote:
> On Tue, May 12, 2009 at 8:03 PM, Dale <rdalek1967@gmail.com> wrote:
>
>> Paul Hartman wrote:
>>
>>> On Mon, May 11, 2009 at 3:22 PM, Dale <rdalek1967@gmail.com> wrote:
>>>
>>>
>>>> Paul Hartman wrote:
>>>>
>>>>
>>>>> On Mon, May 11, 2009 at 2:39 PM, Arnau Bria <arnau@emergetux.net> wrote:
>>>>>
>>>>>
>>>>>
>>>>>> On Mon, 11 May 2009 21:33:23 +0200
>>>>>> Marc Blumentritt wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> when I try to compile a kernel again (meaning after compiling it and
>>>>>>> building the modules), I get this error message:
>>>>>>>
>>>>>>> hive linux # make && make modules_install && make
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> just one question about your compiling command, why make && ... && make?
>>>>>> I just do make all && make modules_install ...
>>>>>>
>>>>>>
>>>>>>
>>>>> I do:
>>>>>
>>>>> make all
>>>>> make install
>>>>> make modules_install
>>>>> make firmware_install
>>>>>
>>>>> seperately :)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> I do like Arnau does. It works here. What is that "firmware_install"
>>>> part anyway? I haven't ever seen that before.
>>>>
>>>>
>>> Why, it installs firmware of course. :) It looks like it was added
>>> almost a year ago. Here are the patch check-in notes:
>>>
>>> From: David Woodhouse <dwmw2@...>
>>> To: <linux-kernel@...>
>>> Subject: [PATCH 03/18] firmware: Add 'firmware_install' make target
>>> Date: Thursday, May 29, 2008 - 4:01 am
>>>
>>> This installs all the in-kernel-tree firmware into $(INSTALL_FW_PATH),
>>> which defaults to $(objtree)/usr/lib/firmware and is intended end up
>>> in /lib/firmware for udev to find the files.
>>>
>>> This, in conjunction with the builtin-firmware support, makes it simple
>>> for drivers with associated firmware to move over to request_firmware()
>>> and give the user a choice of whether to have it built in to the kernel
>>> image or loaded separately from userspace.
>>>
>>> As with kernel header installation for userspace, it intentionally pays
>>> no attention to configuration variables -- it installs _all_ available
>>> firmware blobs, unconditionally.
>>>
>>>
>>>
>>>
>> I'm not real sure what "firmware" is so I will have to look into this a
>> bit more. Maybe that it would be something I, and maybe others, need to
>> do as well. I'm sure if someone went to the trouble of making it that
>> it serves a purpose.
>>
>> Thanks !
>>
>> Dale
>>
>
> Firmware is the software that runs a piece of hardware... usually this
> is stored in NVRAM on the device and the OS shouldn't have anything to
> do with altering it, but some devices just have the firmware loaded by
> drivers at run-time so they can use cheaper hardware (think about
> Broadcom network cards, bluetooth dongles, winmodems). Or maybe
> sometimes they have both, where the onboard firmware is used but can
> be overridden by the driver. Almost everything has firmware, usually
> updatable, from cellphones to CD-ROM drives to video cards to RAID
> controllers to Playstations. :)
>
>
>
Ahhhhh, well since everything works very well here, I better leave all
that alone. LOL Old saying, don't fix it if it ain't broke comes to
mind here.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: Problem with compiling kernel
2009-05-12 19:01 ` [gentoo-user] " Marc Blumentritt
@ 2009-05-16 17:02 ` Mick
2009-05-17 11:12 ` Marc Blumentritt
0 siblings, 1 reply; 12+ messages in thread
From: Mick @ 2009-05-16 17:02 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]
On Tuesday 12 May 2009, Marc Blumentritt wrote:
> Arnau Bria schrieb:
> >> hive linux # make && make modules_install && make
> >
> > just one question about your compiling command, why make && ... && make?
> > I just do make all && make modules_install ...
>
> I used this command only to show the problem I have. I have a special
> setup, where I place nearly the complete root file system inside the
> kernel image (only /usr is added via a squashfs mount). I use for this
> the kernel option "General setup -> (/path/to/my/files) Initramfs source
> file(s)". When I change the source files, I have to recompile the kernel
> (just running make) to include the changes inside the kernel. This has
> worked up until last week.
>
> Now I always get the error I reported in my first email.
Last time this happened to me (more than once), it was because I had selected
something in the kernel that I shouldn't have. I had to retrace my steps,
removed the offending module and then it compiled and installed fine.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: Problem with compiling kernel
2009-05-16 17:02 ` Mick
@ 2009-05-17 11:12 ` Marc Blumentritt
0 siblings, 0 replies; 12+ messages in thread
From: Marc Blumentritt @ 2009-05-17 11:12 UTC (permalink / raw
To: gentoo-user
Mick schrieb:
> Last time this happened to me (more than once), it was because I had selected
> something in the kernel that I shouldn't have. I had to retrace my steps,
> removed the offending module and then it compiled and installed fine.
I think you are right. Yesterday I had some time to look more closely
into this and came to the same conclusion. I will first try to build an
external initrd, which will be loaded during boot. Perhaps I will later
switch back to include the initrd inside the kernel.
Thanks for your help.
Marc
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-05-17 11:13 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-11 19:33 [gentoo-user] Problem with compiling kernel Marc Blumentritt
2009-05-11 19:39 ` Arnau Bria
2009-05-11 19:56 ` Paul Hartman
2009-05-11 20:22 ` Dale
2009-05-11 22:45 ` Paul Hartman
2009-05-13 1:03 ` Dale
2009-05-13 14:34 ` Paul Hartman
2009-05-13 20:29 ` Dale
2009-05-12 19:01 ` [gentoo-user] " Marc Blumentritt
2009-05-16 17:02 ` Mick
2009-05-17 11:12 ` Marc Blumentritt
2009-05-12 19:04 ` Marc Blumentritt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox