linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* make install problems
@ 2003-09-30 13:16 Kevin Breit
  2003-09-30 15:14 ` Randy.Dunlap
  2003-10-01  8:26 ` [patch] " Rob Landley
  0 siblings, 2 replies; 7+ messages in thread
From: Kevin Breit @ 2003-09-30 13:16 UTC (permalink / raw)
  To: linux-kernel

Hey,
	I setup a test6 kernel without module support.  I did a make install
and got:

Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.0-test6/arch/i386/boot/install.sh 2.6.0-test6
arch/i386/boot/bzImage System.map ""
/lib/modules/2.6.0-test6 is not a directory.
mkinitrd failed

How can I fix this?

Thanks

Kevin Breit


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

* Re: make install problems
  2003-09-30 13:16 make install problems Kevin Breit
@ 2003-09-30 15:14 ` Randy.Dunlap
  2003-09-30 15:29   ` Kevin Breit
  2003-10-01  8:26 ` [patch] " Rob Landley
  1 sibling, 1 reply; 7+ messages in thread
From: Randy.Dunlap @ 2003-09-30 15:14 UTC (permalink / raw)
  To: mrproper; +Cc: linux-kernel

On Tue, 30 Sep 2003 09:16:19 -0400 Kevin Breit <mrproper@ximian.com> wrote:

| Hey,
| 	I setup a test6 kernel without module support.  I did a make install
| and got:
| 
| Kernel: arch/i386/boot/bzImage is ready
| sh /usr/src/linux-2.6.0-test6/arch/i386/boot/install.sh 2.6.0-test6
| arch/i386/boot/bzImage System.map ""
| /lib/modules/2.6.0-test6 is not a directory.
| mkinitrd failed
| 
| How can I fix this?

We've seen this before, and I thought that we had determined that
it was a tools problem.  Is "depmod" in $PATH the depmod from
modutils or the one from module-init-tools?
I.e., what does 'depmod -V' say?

and what execs mkinitrd?  I don't find it with a quick grep.

--
~Randy

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

* Re: make install problems
  2003-09-30 15:14 ` Randy.Dunlap
@ 2003-09-30 15:29   ` Kevin Breit
  2003-09-30 15:34     ` Randy.Dunlap
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin Breit @ 2003-09-30 15:29 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: linux-kernel

On Tue, 2003-09-30 at 11:14, Randy.Dunlap wrote:
> On Tue, 30 Sep 2003 09:16:19 -0400 Kevin Breit <mrproper@ximian.com> wrote:
> 
> | Hey,
> | 	I setup a test6 kernel without module support.  I did a make install
> | and got:
> | 
> | Kernel: arch/i386/boot/bzImage is ready
> | sh /usr/src/linux-2.6.0-test6/arch/i386/boot/install.sh 2.6.0-test6
> | arch/i386/boot/bzImage System.map ""
> | /lib/modules/2.6.0-test6 is not a directory.
> | mkinitrd failed
> | 
> | How can I fix this?
> 
> We've seen this before, and I thought that we had determined that
> it was a tools problem.  Is "depmod" in $PATH the depmod from
> modutils or the one from module-init-tools?
> I.e., what does 'depmod -V' say?

modutils-2.4.22-8

[root@kbreit linux-2.6.0-test6]# depmod -V
depmod version 2.4.22


> and what execs mkinitrd?  I don't find it with a quick grep.

No clue

Thanks

Kevin


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

* Re: make install problems
  2003-09-30 15:29   ` Kevin Breit
@ 2003-09-30 15:34     ` Randy.Dunlap
  2003-09-30 16:18       ` Kevin Breit
  0 siblings, 1 reply; 7+ messages in thread
From: Randy.Dunlap @ 2003-09-30 15:34 UTC (permalink / raw)
  To: mrproper; +Cc: linux-kernel

On Tue, 30 Sep 2003 11:29:42 -0400 Kevin Breit <mrproper@ximian.com> wrote:

| On Tue, 2003-09-30 at 11:14, Randy.Dunlap wrote:
| > On Tue, 30 Sep 2003 09:16:19 -0400 Kevin Breit <mrproper@ximian.com> wrote:
| > 
| > | Hey,
| > | 	I setup a test6 kernel without module support.  I did a make install
| > | and got:
| > | 
| > | Kernel: arch/i386/boot/bzImage is ready
| > | sh /usr/src/linux-2.6.0-test6/arch/i386/boot/install.sh 2.6.0-test6
| > | arch/i386/boot/bzImage System.map ""
| > | /lib/modules/2.6.0-test6 is not a directory.
| > | mkinitrd failed
| > | 
| > | How can I fix this?
| > 
| > We've seen this before, and I thought that we had determined that
| > it was a tools problem.  Is "depmod" in $PATH the depmod from
| > modutils or the one from module-init-tools?
| > I.e., what does 'depmod -V' say?
| 
| modutils-2.4.22-8
| 
| [root@kbreit linux-2.6.0-test6]# depmod -V
| depmod version 2.4.22
| 
| 
| > and what execs mkinitrd?  I don't find it with a quick grep.
| 
| No clue

You need to use module-init-tools with 2.6.x, not modutils.
You can find them at
  http://www.kernel.org/pub/linux/kernel/people/rusty/modules/
Just get the latest version.


--
~Randy

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

* Re: make install problems
  2003-09-30 15:34     ` Randy.Dunlap
@ 2003-09-30 16:18       ` Kevin Breit
  2003-09-30 16:25         ` Randy.Dunlap
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin Breit @ 2003-09-30 16:18 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: linux-kernel

On Tue, 2003-09-30 at 11:34, Randy.Dunlap wrote:
> On Tue, 30 Sep 2003 11:29:42 -0400 Kevin Breit <mrproper@ximian.com> wrote:
> 
> | On Tue, 2003-09-30 at 11:14, Randy.Dunlap wrote:
> | > On Tue, 30 Sep 2003 09:16:19 -0400 Kevin Breit <mrproper@ximian.com> wrote:
> | > 
> | > | Hey,
> | > | 	I setup a test6 kernel without module support.  I did a make install
> | > | and got:
> | > | 
> | > | Kernel: arch/i386/boot/bzImage is ready
> | > | sh /usr/src/linux-2.6.0-test6/arch/i386/boot/install.sh 2.6.0-test6
> | > | arch/i386/boot/bzImage System.map ""
> | > | /lib/modules/2.6.0-test6 is not a directory.
> | > | mkinitrd failed
> | > | 
> | > | How can I fix this?
> | > 
> | > We've seen this before, and I thought that we had determined that
> | > it was a tools problem.  Is "depmod" in $PATH the depmod from
> | > modutils or the one from module-init-tools?
> | > I.e., what does 'depmod -V' say?
> | 
> | modutils-2.4.22-8
> | 
> | [root@kbreit linux-2.6.0-test6]# depmod -V
> | depmod version 2.4.22
> | 
> | 
> | > and what execs mkinitrd?  I don't find it with a quick grep.
> | 
> | No clue
> 
> You need to use module-init-tools with 2.6.x, not modutils.
> You can find them at
>   http://www.kernel.org/pub/linux/kernel/people/rusty/modules/
> Just get the latest version.

Why do I need this for a moduleless kernel?

Kevin


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

* Re: make install problems
  2003-09-30 16:18       ` Kevin Breit
@ 2003-09-30 16:25         ` Randy.Dunlap
  0 siblings, 0 replies; 7+ messages in thread
From: Randy.Dunlap @ 2003-09-30 16:25 UTC (permalink / raw)
  To: mrproper; +Cc: linux-kernel

On Tue, 30 Sep 2003 12:18:10 -0400 Kevin Breit <mrproper@ximian.com> wrote:

| On Tue, 2003-09-30 at 11:34, Randy.Dunlap wrote:
| > On Tue, 30 Sep 2003 11:29:42 -0400 Kevin Breit <mrproper@ximian.com> wrote:
| > 
| > | On Tue, 2003-09-30 at 11:14, Randy.Dunlap wrote:
| > | > On Tue, 30 Sep 2003 09:16:19 -0400 Kevin Breit <mrproper@ximian.com> wrote:
| > | > 
| > | > | Hey,
| > | > | 	I setup a test6 kernel without module support.  I did a make install
| > | > | and got:
| > | > | 
| > | > | Kernel: arch/i386/boot/bzImage is ready
| > | > | sh /usr/src/linux-2.6.0-test6/arch/i386/boot/install.sh 2.6.0-test6
| > | > | arch/i386/boot/bzImage System.map ""
| > | > | /lib/modules/2.6.0-test6 is not a directory.
| > | > | mkinitrd failed
| > | > | 
| > | > | How can I fix this?
| > | > 
| > | > We've seen this before, and I thought that we had determined that
| > | > it was a tools problem.  Is "depmod" in $PATH the depmod from
| > | > modutils or the one from module-init-tools?
| > | > I.e., what does 'depmod -V' say?
| > | 
| > | modutils-2.4.22-8
| > | 
| > | [root@kbreit linux-2.6.0-test6]# depmod -V
| > | depmod version 2.4.22
| > | 
| > | 
| > | > and what execs mkinitrd?  I don't find it with a quick grep.
| > | 
| > | No clue
| > 
| > You need to use module-init-tools with 2.6.x, not modutils.
| > You can find them at
| >   http://www.kernel.org/pub/linux/kernel/people/rusty/modules/
| > Just get the latest version.
| 
| Why do I need this for a moduleless kernel?

arch/i386/boot/Makefile for 'make install' runs arch/i386/boot/install.sh.
This latter script runs /sbin/installkernel or ~/bin/installkernel.
You (user) control the latter one (if present).
Your distro controls the former one, so I can't say what's in your
system's /sbin/installkernel file.
In my /sbin/installkernel, I can see that using it with a "-i"
option tells it not to generated initrd files.
YMMV.

--
~Randy

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

* [patch] Re: make install problems
  2003-09-30 13:16 make install problems Kevin Breit
  2003-09-30 15:14 ` Randy.Dunlap
@ 2003-10-01  8:26 ` Rob Landley
  1 sibling, 0 replies; 7+ messages in thread
From: Rob Landley @ 2003-10-01  8:26 UTC (permalink / raw)
  To: mrproper, linux-kernel

On Tuesday 30 September 2003 08:16, Kevin Breit wrote:
> Hey,
> 	I setup a test6 kernel without module support.  I did a make install
> and got:
>
> Kernel: arch/i386/boot/bzImage is ready
> sh /usr/src/linux-2.6.0-test6/arch/i386/boot/install.sh 2.6.0-test6
> arch/i386/boot/bzImage System.map ""
> /lib/modules/2.6.0-test6 is not a directory.
> mkinitrd failed
>
> How can I fix this?

Make modules_install before make install.

Here's a patch to do that automatically for i386 (untested).

The problem is that Red Hat 9's kernel install script tries to make an
initrd, which includes the modules directory, and barfs if it isn't there...

--- linux-old/Makefile	2003-10-01 02:52:49.000000000 -0500
+++ linux-2.6.0-test6/Makefile	2003-10-01 03:03:09.859448696 -0500
@@ -708,10 +708,7 @@
 modules modules_install: FORCE
 	@echo
 	@echo "The present kernel configuration has modules disabled."
-	@echo "Type 'make config' and enable loadable module support."
-	@echo "Then build a kernel with module support enabled."
-	@echo
-	@exit 1
+	mkdir -p $(MODLIB)  # Needed by some install scripts.
 
 endif # CONFIG_MODULES
 
--- linux-old/arch/i386/boot/Makefile	2003-10-01 02:52:40.000000000 -0500
+++ linux-2.6.0-test6/arch/i386/boot/Makefile	2003-10-01 02:54:49.000000000 -0500
@@ -98,5 +98,5 @@
 	cp System.map $(INSTALL_PATH)/
 	if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
 
-install: $(BOOTIMAGE)
+install: $(BOOTIMAGE) modules_install
 	sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)"


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

end of thread, other threads:[~2003-10-01  8:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-30 13:16 make install problems Kevin Breit
2003-09-30 15:14 ` Randy.Dunlap
2003-09-30 15:29   ` Kevin Breit
2003-09-30 15:34     ` Randy.Dunlap
2003-09-30 16:18       ` Kevin Breit
2003-09-30 16:25         ` Randy.Dunlap
2003-10-01  8:26 ` [patch] " Rob Landley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).