Results 1 to 9 of 9

Thread: kernel upgrade/rebuilt WTF

  1. #1
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929

    kernel upgrade/rebuilt WTF

    I'm desperately trying to rebuild the kernel (which looks to be the only way I can get some kind of dialup without a re-install). As far as I know I have all the tools necessary to do just that, but using the old symlink to the linux-2.4.20-xfs sources I get:

    make xconfig make no rule to make xconfig (I get the same with make menuconfig but I've not checked that I have all the ncurses stuff). OK, I think, lets use the linux-2.4.20 sources. I pop them on, untar them, remove the old symlink, create a new one and try to cd into /usr/src/linux:

    root@rom-box:/usr/src# cd /usr/src/linux
    bash: cd: /usr/src/linux: No such file or directory

    I check and, as you'll see, although the linux-2.4.20 directory is owned by root, the symlink is owned by knoppix! (This isn't, it would seem, the dear old user knoppix as suing to knoppix doesn't get me in either!). I'm completely stumped by this: chown has no effect, and isn't the rule of Linux that root rules all?

    (BTW, why is the makefile outside of the source directory?).


    root@rom-box:/usr/src# ls -l
    total 33228
    -rw-r--r-- 1 knoppix knoppix 80 Oct 5 2002 Makefile
    -rw-r--r-- 1 knoppix knoppix 541 Dec 3 21:06 knoppix-kernel.patch
    lrwxrwxrwx 1 root knoppix 11 Apr 13 23:34 linux -> linux2.4.20
    drwxr-xr-x 14 root root 4096 Nov 29 00:53 linux-2.4.20
    drwxr-xr-x 4 knoppix knoppix 4096 Jan 12 23:51 linux-2.4.20-xfs
    -rw-r--r-- 1 knoppix knoppix 33963814 Feb 21 21:50 linux-2.4.20.tar.gz
    drwxr-xr-x 2 knoppix knoppix 4096 Jan 18 2002 modules

    I'm completely baffled by this: I'm trying to follow the Debian rules for rebuilding kernels and this installation just doesn't seem to want to know.

  2. #2
    Junior Member
    Join Date
    May 2003
    Posts
    3
    First of all i found knoppix 3.2 a very nice distribution...

    ...i've got the same identical problem...

    someone...cane tell me what shuld i've to do?

    I can't recompile the kernel...i can't mostly do anything!...

    Maybe installing changin user like this howto explain?

    http://www.knoppix.net/docs/index.ph...serChangeHowTo


  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    you can always remove the link and recreate it or just cd linux-2.4.20 is also fine.

    You can put the kernel tree wherever you like. The steps involved(at least that is what I do)

    1. cd linux
    2. make mrproper(clean up stuff)
    3. cp /boot/config-2.4.20-xfs ./.config
    4. patch -p1 -N < ../any patch files which I put at the parent directory
    5. make menuconfig
    6. make-dkpg kernel_image
    7. cd ..;dpkg -i the_generated_kernel.deb

  4. #4
    Junior Member
    Join Date
    May 2003
    Posts
    3
    I know...kernel 2.4.20 its ok...but...i can't recompile it!...sob

    I give make config

    ***no rule to make 'config'

    so im trying to do different operations...

    but the answer is always the same

    ***no rule to make 'config'

    moreover if i try to open uder KDE the kernel manager...it opens and say that the kernel cant be read...because it as no the rught options or i discovered a KDE bug...

  5. #5
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    you need to be at the top linux source tree to issue the make. That is if you put the tarball at /usr/src/linux-2.4.20, you would need "cd /usr/src/linux-2.4.20"

  6. #6
    Junior Member
    Join Date
    Apr 2003
    Location
    western new mexico, usa
    Posts
    5

    where's the kernel source??

    when i had to make a kernel, i found that there was no kernel tree in linux-2.4.20-xfs, just the headers, etc.

    i downloaded a fresh copy from kernel.org and started cutting down the zillions of modules, and unneeded stuff.

    you are trying to compile what isn't there.

    dave

  7. #7
    Member registered user
    Join Date
    Mar 2003
    Posts
    95
    Knoppix comes with only the kernel headers, no sources. Get the latest kernel (2.4.21) from kernel.org and mirrors, and have fun building.

  8. #8
    Junior Member
    Join Date
    May 2003
    Posts
    3
    tnx guys...slowly im finding out the problem.

    The headers...these are the key words , there's not kernel source in knoppix..!!

    tnx all

    ok...and know...i wolu like to make of this quite debian installation a normal debian installation...

    How can I install the source ad rebulid complitely the kernel?
    Cleaning dep and modules?

  9. #9
    Junior Member
    Join Date
    Apr 2003
    Posts
    2
    I had no problems with a kernel build (4-28-03 release)

    1. d/l the kernel source (linux-2.4.20.tar.gz)
    2. Extracted it into my home dir.
    3. Logged out and then logged in as root.
    4. Copied src tree to /usr/src, i.e. (/usr/src/linux-2.4.20)
    5. Deleted old symlink to /usr/src/linux
    6. Made new one ln -s /usr/src/linux-2.4.20 /usr/src/linux
    7. Applied patches (I was trying the preemptible kernel patch)
    8. Renamed ../../linux.2.4.20 ../../linux-2.4.20pre
    9. cd /usr/src/linux; cp ../linux-2.4.20-xfs/.config .config
    10. make xconfig - I enabled kernel preemption and included ReiserFS in
    kernel (these are just examples)
    11. edit Makefile and change EXTRAVERSION= to EXTRAVERSION=pre
    11. make dep; make clean
    12. make bzImage
    13. make modules
    14. make modules_install
    15. mv /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage-2.4.20pre
    16. mv /usr/src/linux/System.map /boot/System.map-2.4.20
    17. ln -sf /boot/System.map-2.4.20 /boot/System.map
    18. add image to lilo.conf
    19. Reboot

Similar Threads

  1. Kernel upgrade 2.4 -> 2.6
    By eris_pluvia in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-19-2005, 06:52 PM
  2. Kernel upgrade problem.
    By massai in forum General Support
    Replies: 32
    Last Post: 01-25-2004, 09:08 AM
  3. No CD burner after kernel upgrade
    By balaclavabob in forum Hardware & Booting
    Replies: 1
    Last Post: 09-07-2003, 08:39 PM
  4. kernel upgrade
    By ferreter in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 08-19-2003, 10:23 PM
  5. Kernel Upgrade question
    By bongski55 in forum The Lounge
    Replies: 4
    Last Post: 05-14-2003, 08:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX picture

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX

$59.99



GIGABYTE Z790 AORUS ELITE AX LGA 1700 Intel Z790 ATX Motherboard with DDR5 picture

GIGABYTE Z790 AORUS ELITE AX LGA 1700 Intel Z790 ATX Motherboard with DDR5

$189.99



Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery picture

Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery

$54.99



ASUS PRIME Z890-P WIFI Z890 LGA 1851 ATX motherboard, Intel® Core™ Ultra Series picture

ASUS PRIME Z890-P WIFI Z890 LGA 1851 ATX motherboard, Intel® Core™ Ultra Series

$235.99



ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio picture

ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio

$34.99



GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard picture

GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard

$59.99



MSI B550M PRO-VDH Micro-ATX Motherboard - AMD AM4, Ryzen 5000/4000/3000 Ready, P picture

MSI B550M PRO-VDH Micro-ATX Motherboard - AMD AM4, Ryzen 5000/4000/3000 Ready, P

$71.49



MSI - B550M PRO-VDH WIFI (Socket AM4) AMD B550 MATX DDR4 Wi-Fi 6 Motherboard ... picture

MSI - B550M PRO-VDH WIFI (Socket AM4) AMD B550 MATX DDR4 Wi-Fi 6 Motherboard ...

$89.99



ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield picture

ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield

$84.99



Gigabyte GA-B85M-D3H Motherboard picture

Gigabyte GA-B85M-D3H Motherboard

$54.99