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
  •  


SanDisk 1TB SSD Plus, Internal Solid State Drive - SDSSDA-1T00-G26 picture

SanDisk 1TB SSD Plus, Internal Solid State Drive - SDSSDA-1T00-G26

$74.99



Samsung 870 EVO Series 500GB 2.5

Samsung 870 EVO Series 500GB 2.5" SATA III Internal SSD MZ-77E500B/AM New Sealed

$59.00



SSDSC2BA800G3P Intel SSD DC S3700 Series 800GB 6Gb/s 2.5'' SATA SSD picture

SSDSC2BA800G3P Intel SSD DC S3700 Series 800GB 6Gb/s 2.5'' SATA SSD

$79.00



WD_BLACK 1TB D30 Game Drive SSD, External Solid State Drive - WDBATL0010BBK-WESN picture

WD_BLACK 1TB D30 Game Drive SSD, External Solid State Drive - WDBATL0010BBK-WESN

$99.99



Western Digital  WDS500G1B0A-00H9H0 500GB 2.5

Western Digital WDS500G1B0A-00H9H0 500GB 2.5" SSD Grade A SKU 5036

$18.99



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$13.99



Crucial BX500 240GB Internal SSD,Micron 3D NAND SATA CT240BX500SSD1 - OEM item picture

Crucial BX500 240GB Internal SSD,Micron 3D NAND SATA CT240BX500SSD1 - OEM item

$16.99



Samsung 512 GB SATA III 2.5

Samsung 512 GB SATA III 2.5" Solid State Drive PM871a / SM841N / OGYG3M *TESTED*

$22.00



Fanxiang SSD 4TB 2TB 1TB 512GB SATA SSD 2.5'' III Internal Solid State Drive lot picture

Fanxiang SSD 4TB 2TB 1TB 512GB SATA SSD 2.5'' III Internal Solid State Drive lot

$198.99



4 TB SSD SATA III Drive 2.5

4 TB SSD SATA III Drive 2.5" Solid State Drive SATAIII 6Gb/s UP to 540MB/s

$149.00