did you run make oldconfig first?

On Tue, Jun 23, 2009 at 10:19 PM, hbajaj <[email protected]> wrote:

>
> Hi Jason,
>
> When I check drivers directory then there are lots of directories for
> different drivers.
> I'm using configuration from current kernel. And when I compile
> current kernel then it is building lots of modules. It almost takes
> 25-30 mins to build.So i'm assuming that configuration contains
> support for kernel modules and many drivers are built as modules only.
>
> Rgds
> Harvinder Bajaj
>
> On Jun 24, 6:12 am, Jason Montoya <[email protected]> wrote:
> > I'm no expert on kernel building though I have done it following the
> Gentoo installation instructions.  It looks to me like you just don't have
> any kernel modules to build - kernel modules are Linux's device drivers - if
> a kernel does not include support for a device in itself, kernel modules are
> used to add support for that device as an extension to the kernel which are
> loaded after the kernel itself.  If your system boots with the built kernels
> and you don't get any panics, then you may be fine.
> >
> > ________________________________
> > From: hbajaj <[email protected]>
> > To: Linux Users Group <[email protected]>
> > Sent: Monday, June 22, 2009 2:40:55 AM
> > Subject: [lug:14655] Linux kernel compilation problem
> >
> > Hi ,
> >
> > I am new to linux kernel compilation.
> > I'm facing problem in building new linux kernel version
> > Current version: 2.4.20
> > New version: 2.4.31
> >
> > Steps followed
> > 1) Downloaded linux src tar fromwww.kernel.org
> > 2) Copied it on machine currently running 2.4.20 RH9
> > 3) untared the src in directory linux-2.4.31
> > 4) cd linux-2.4.31
> > 5) make mrproper
> > 6) cp /boot/confg-2.4.20 .config
> > 7) make oldconfig
> > 8) make clean
> > 9) make depend
> > 10)make bzImage
> > 11) ls -l arch/i386/boot/bzImage -> It shows file bzImage created
> > 12) make modules
> > Problem i'm facing is that it completes this command immediately and
> > output given is as follows
> >
> > make -C  kernel CFLAGS="-D__KERNEL__ -I/home/bscpetlab/linux-2.4.31/
> > include -Wal
> > l -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-
> > common -fomit
> > -frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686  -
> > DMODULE -DMODVER
> > SIONS -include /home/bscpetlab/linux-2.4.31/include/linux/
> > modversions.h" MAKING_
> > MODULES=1 modules
> > make[1]: Entering directory `/home/bscpetlab/linux-2.4.31/kernel'
> > make[1]: Nothing to be done for `modules'.
> > make[1]: Leaving directory `/home/bscpetlab/linux-2.4.31/kernel'
> > make -C  drivers CFLAGS="-D__KERNEL__ -I/home/bscpetlab/linux-2.4.31/
> > include -Wa
> > ll -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-
> > common -fomi
> > t-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686  -
> > DMODULE -DMODVE
> > RSIONS -include /home/bscpetlab/linux-2.4.31/include/linux/
> > modversions.h" MAKING
> > _MODULES=1 modules
> > make[1]: Entering directory `/home/bscpetlab/linux-2.4.31/drivers'
> > make -C acpi modules
> > make[2]: Entering directory `/home/bscpetlab/linux-2.4.31/drivers/
> > acpi'
> > make[2]: Nothing to be done for `modules'.
> > make[2]: Leaving directory `/home/bscpetlab/linux-2.4.31/drivers/acpi'
> > make -C block modules
> > make[2]: Entering directory `/home/bscpetlab/linux-2.4.31/drivers/
> > block'
> > make[2]: Nothing to be done for `modules'.
> > make[2]: Leaving directory `/home/bscpetlab/linux-2.4.31/drivers/
> > block'
> > make -C cdrom modules
> > make[2]: Entering directory `/home/bscpetlab/linux-2.4.31/drivers/
> > cdrom'
> > make[2]: Nothing to be done for `modules'.
> > make[2]: Leaving directory `/home/bscpetlab/linux-2.4.31/drivers/
> > cdrom'
> > make -C char modules
> > make[2]: Entering directory `/home/bscpetlab/linux-2.4.31/drivers/
> > char'
> > make -C drm modules
> > make[3]: Entering directory `/home/bscpetlab/linux-2.4.31/drivers/char/
> > drm'
> > make[3]: Nothing to be done for `modules'.
> > make[3]: Leaving directory `/home/bscpetlab/linux-2.4.31/drivers/char/
> > drm'
> > make -C pcmcia modules
> > make[3]: Entering directory `/home/bscpetlab/linux-2.4.31/drivers/char/
> > pcmcia'
> > make[3]: Nothing to be done for `modules'.
> > make[3]: Leaving directory `/home/bscpetlab/linux-2.4.31/drivers/char/
> > pcmcia'
> > make[2]: Leaving directory `/home/bscpetlab/linux-2.4.31/drivers/char'
> > make -C hotplug modules
> > make[2]: Entering directory `/home/bscpetlab/linux-2.4.31/drivers/
> > hotplug'
> > make[2]: Nothing to be done for `modules'.
> > make[2]: Leaving directory `/home/bscpetlab/linux-2.4.31/drivers/
> > hotplug'
> > ....
> > ....
> > ....
> > ....
> >
> > make[1]: Nothing to be done for `modules'.
> > make[1]: Leaving directory `/home/bscpetlab/linux-2.4.31/ipc'
> > make -C  lib CFLAGS="-D__KERNEL__ -I/home/bscpetlab/linux-2.4.31/
> > include -Wall -
> > Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> > -fomit-fr
> > ame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686  -DMODULE -
> > DMODVERSIO
> > NS -include /home/bscpetlab/linux-2.4.31/include/linux/modversions.h"
> > MAKING_MOD
> > ULES=1 modules
> > make[1]: Entering directory `/home/bscpetlab/linux-2.4.31/lib'
> > make[1]: Nothing to be done for `modules'.
> > make[1]: Leaving directory `/home/bscpetlab/linux-2.4.31/lib'
> > make -C  crypto CFLAGS="-D__KERNEL__ -I/home/bscpetlab/linux-2.4.31/
> > include -Wal
> > l -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-
> > common -fomit
> > -frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686  -
> > DMODULE -DMODVER
> > SIONS -include /home/bscpetlab/linux-2.4.31/include/linux/
> > modversions.h" MAKING_
> > MODULES=1 modules
> > make[1]: Entering directory `/home/bscpetlab/linux-2.4.31/crypto'
> > make[1]: Nothing to be done for `modules'.
> > make[1]: Leaving directory `/home/bscpetlab/linux-2.4.31/crypto'
> > make -C  arch/i386/kernel CFLAGS="-D__KERNEL__ -I/home/bscpetlab/
> > linux-2.4.31/in
> > clude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-
> > aliasing -fno-com
> > mon -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> > march=i686  -DMODUL
> > E -DMODVERSIONS -include /home/bscpetlab/linux-2.4.31/include/linux/
> > modversions.
> > h" MAKING_MODULES=1 modules
> > make[1]: Entering directory `/home/bscpetlab/linux-2.4.31/arch/i386/
> > kernel'
> > make[1]: Nothing to be done for `modules'.
> > make[1]: Leaving directory `/home/bscpetlab/linux-2.4.31/arch/i386/
> > kernel'
> > make -C  arch/i386/mm CFLAGS="-D__KERNEL__ -I/home/bscpetlab/
> > linux-2.4.31/includ
> > e -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -
> > fno-common
> > -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686  -
> > DMODULE -D
> > MODVERSIONS -include /home/bscpetlab/linux-2.4.31/include/linux/
> > modversions.h" M
> > AKING_MODULES=1 modules
> > make[1]: Entering directory `/home/bscpetlab/linux-2.4.31/arch/i386/
> > mm'
> > make[1]: Nothing to be done for `modules'.
> > make[1]: Leaving directory `/home/bscpetlab/linux-2.4.31/arch/i386/mm'
> > make -C  arch/i386/lib CFLAGS="-D__KERNEL__ -I/home/bscpetlab/
> > linux-2.4.31/inclu
> > de -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -
> > fno-common
> > -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686  -
> > DMODULE -
> > DMODVERSIONS -include /home/bscpetlab/linux-2.4.31/include/linux/
> > modversions.h"
> > MAKING_MODULES=1 modules
> > make[1]: Entering directory `/home/bscpetlab/linux-2.4.31/arch/i386/
> > lib'
> > make[1]: Nothing to be done for `modules'.
> > make[1]: Leaving directory `/home/bscpetlab/linux-2.4.31/arch/i386/
> > lib'
> >
> > 13) make modules_install -> This command does not copy anything in /
> > lib/modules/2.4.31 except for
> > /lib/modules/2.4.31/kernel/drivers/net/dummy.o
> >
> > Can anybody help me debugging this issue??????
> >
> > Thanks & Regards
> > Harvinder Bajaj
> >
>


-- 

          Daniel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---

Reply via email to