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
  •  


HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5

HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD

$74.99



Western Digital WD60PURZ 6TB Hard Drive SATA6 Gb/s 64MB Cache 3.5 Inch picture

Western Digital WD60PURZ 6TB Hard Drive SATA6 Gb/s 64MB Cache 3.5 Inch

$109.99



WF12F DELL 1TB 7.2K 6GBPS SATA 2.5'' HDD HARD DRIVE ST91000640NS 0WF12F picture

WF12F DELL 1TB 7.2K 6GBPS SATA 2.5'' HDD HARD DRIVE ST91000640NS 0WF12F

$25.00



Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5

Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive

$157.99



Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5

Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive

$29.99



HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5

HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601

$82.99



2 PACK  Seagate ST1000LM035 Mobile HDD 1TB 2.5

2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive

$27.49



8TB Seagate Archive SATA 3.5

8TB Seagate Archive SATA 3.5" HDD Hard Drive 100% Healthy 200MB/s ST8000AS0002

$36.53



WD HDD Ultrastar DC HC520 HUH721212AL4205 12TB 3.5

WD HDD Ultrastar DC HC520 HUH721212AL4205 12TB 3.5" SAS Server Hard Disk Drive

$45.30



WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN picture

WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN

$174.99