[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

SUMMARY: Compiling linux kernel 2.4.20 on a originally RH6.2 Box



OK thanks for the few responses, Skylar, Fanie, Rob, Michael and Bob.

They essentially confirmed what I was starting to think:

>From Bob:

My box is too old and I should upgrade - preferably reinstall rather than
upgrade since the newer Redhats will probably have issues with 6.2. I would
do this anyway. It's just that the box is quite heavily customized to do
what I want.

>From Skylar Michael and Rob:

Check my versions of code. They were mostly too old. I had already upgraded
modutils to 2.4.20 though. However everything did actually compile.

o  Gnu C                  2.95.3                  # gcc --version
o  Gnu make               3.77                    # make --version
o  binutils               2.9.1.0.25              # ld -v
o  util-linux             2.10o                   # fdformat --version
o  modutils               2.4.2                   # insmod -V
o  e2fsprogs              1.25                    # tune2fs
o  jfsutils               1.0.12                  # fsck.jfs -V
o  reiserfsprogs          3.6.3                   # reiserfsck -V
2>&1|grep reis
erfsprogs
o  pcmcia-cs              3.1.21                  # cardmgr -V
o  PPP                    2.4.0                   # pppd --version
o  isdn4k-utils           3.1pre1                 # isdnctrl 2>&1|grep
version

Fanie suggested I do a make mrproper after saving my .config. Already tried
that - no go.

So it looks like I'll have to make time to do a complete upgrade/install

Thanks
Christian


> -----Original Message-----
> From: linuxmanagers-bounces@linuxmanagers.org
> [mailto:linuxmanagers-bounces@linuxmanagers.org]On Behalf Of Christian
> Hack
> Sent: Thursday, 6 February 2003 4:14 PM
> To: linuxmanagers@linuxmanagers.org
> Subject: Compiling linux kernel 2.4.20 on a originally RH6.2 Box
>
>
> OK, I'm trying to compile a 2.4.20 kernel and am having a few
> troubles. The
> machine is a RH6.2 box originally although the kernel was previously
> upgraded with no troubles by me to 2.2.20.
>
> Basically I end up with a stack of modules with failed dependencies. Even
> when I compile using a completely default setup I still get the network
> dummy device as failing a dependency.
>
> Here's a log with only the compile etc being cut
>
> /usr/src/linux is linked to linux-2.4.20
>
> [root@smash /root]# cd /usr/src/
> [root@smash src]# tar xf /home/christianh/linux-2.4.20.tar
> [root@smash src]# cd linux
> [root@smash linux]# make oldconfig
> rm -f include/asm
> ( cd include ; ln -sf asm-i386 asm)
> /bin/sh scripts/Configure -d arch/i386/config.in
>
> ... I just selected the defaults for everything it asked...
>
> *** End of Linux kernel configuration.
> *** Check the top-level Makefile for additional configuration.
> *** Next, you must run 'make dep'.
>
> [root@smash linux]# make dep
>
> ... dependencies no problem ...
>
> make[1]: Entering directory `/usr/src/linux-2.4.20'
> /usr/src/linux-2.4.20/include/linux/modversions.h was updated
> make[1]: Leaving directory `/usr/src/linux-2.4.20'
> [root@smash linux]# make clean
>
> ... cut out the clean info. no problems there ...
>
> [root@smash linux]# make bzImage
>
> ... build went OK ...
>
> objcopy -O binary -R .note -R .comment -S compressed/bvmlinux
> compressed/bvmlinux.out
> tools/build -b bbootsect bsetup compressed/bvmlinux.out CURRENT > bzImage
> Root device is (3, 5)
> Boot sector 512 bytes.
> Setup is 2516  ...bytes.
> System is 1064 kB
> warning: kernel is too big for standalone boot from floppy
> make[1]: Leaving directory `/usr/src/linux-2.4.20/arch/i386/boot'
> [root@smash linux]# rm -rf /lib/modules/2.4.20/
> [root@smash linux]# make modules
>
> ... module build went OK ...
>
> [root@smash linux]# make modules_install
>
> ... modules install went OK ...
>
> cd /lib/modules/2.4.20; \
> mkdir -p pcmcia; \
> find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf
> ../{} pcmcia
> if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.4.20; fi
>
> [root@smash linux]# depmod -a 2.4.20
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.20/kernel/drivers/net/dummy.o
>
> I've done this a ton of times before with no problem although not with
> 2.4.20. Also if I start adding in the modules I want, the list of
> unresolved
> symbols just gets bigger.
>
> Am I missing something obvious here?
>
> Thanks guys,
> Christian
> _______________________________________________
> LinuxManagers mailing list - http://www.linuxmanagers.org
> submissions: LinuxManagers@linuxmanagers.org
> subscribe/unsubscribe:
http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers@linuxmanagers.org
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers

[Home]     [Kernel List]     [Linux SCSI]     [Video 4 Linux]     [Linux Admin]     [Yosemite News]     [Motherboards]

Powered by Linux