Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Kernel compiling.

  1. #1
    Junior Member
    Join Date
    Aug 2006
    Location
    Acqui Terme - Piedmont Republic
    Posts
    7

    Kernel compiling.

    I installed knoppix 5.0 on my pc and i thought to compile the kernel cos it doesn't recognize a lot of things of my pc. It doesn't recognize my USB webcam, it doesn't open a new windows for pen drive, it undestand when a CD is inside the reader but don't allow me to see the content and so on. I tried to compile the kernel to solve the problem, but when i try to do it, i receive:

    root@LinuxBox:/usr/src/linux# make menuconfig
    Makefile:266: /usr/src/linux-2.6.17/scripts/Kbuild.include: No such
    file or directory
    Makefile:403: /usr/src/linux-2.6.17/arch/i386/Makefile: No such file or
    directory
    make: *** No rule to make target
    `/usr/src/linux-2.6.17/arch/i386/Makefile'. Stop.

    When i use xconfig, the answer is similar. What can i do to solve my problem with Hardware? what can i do to compile the kernel?

  2. #2
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    100
    From what I can see, knoppix does not come with the kernel source
    (only headerfiles). You can get the source via ftp from
    ftp.kernel.org/pub/linux/kernel/v2.6 or via http from
    www.kernel.org/pub/linux/kernel/v2.6 .

  3. #3
    Junior Member
    Join Date
    Aug 2006
    Location
    Acqui Terme - Piedmont Republic
    Posts
    7
    The 2 links are full and i haven't enought experience to understand what i have to download.
    I want the kernel 2.6.17, what file have i to download?
    Can linux-2.6.17.tar.bz2 be right?

  4. #4
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    100
    You probably want the latest (because of fixed bugs), that would be
    linux-2.6.17.8.tar.bz2 .

    As you mention your inexperience, let me add a few points.
    Make a directory in /opt, e.g. linuxsrc, and download the tar.bz2
    to that directory. "tar xjf linux-2.6.17.8.tar.bz2" there produces
    a further direcory linux-2.6.17.8 . Now make a link to this new
    directory: "ln -s linux-2.6.17.8 linux".

    "cd linux" and "make menuconfig". menuconfig needs libncurses5,
    which you may have to install with apt-get (or similar).

    Now, the next time someone fixes some bugs in the kernel there
    will be a linux-2.6.17.9 which you DON'T want to download - you
    already have 99% of it. Instead you download "patch-2.6.17.9.bz2"
    to linuxsrc. For this one time you also get the patch 2.6.17.8 .
    Then you cd to linux and do this:

    bzip2 -dc ../patch-2.6.17.8.bz2 | patch -Rp1
    bzip2 -dc ../patch-2.6.17.9.bz2 | patch -p1

    Basically, this first strips 2.6.17.8 down to 2.6.17, then upgrades
    to 2.6.17.9. This is because a patch applies to the "basic" kernel
    version.

    Have fun!

  5. #5
    Junior Member
    Join Date
    Aug 2006
    Location
    Acqui Terme - Piedmont Republic
    Posts
    7
    I am sorrow to say u that i don't find in the two links of kernel source the file:
    patch-2.6.17.9.bz2
    have i to replace it with:
    patch-2.6.17.8.bz2 ?

    My teachers at university said me to compile the kernel to solve the problems about hardware. Do u agree with them? here knoppix is blocked with CD/DVR reader/writer, pendrive and so on.
    bye bye.

  6. #6
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    100
    No wonder you can't find 2.6.17.9 - it's not there yet
    I meant this for the (near) future.

    And yes, I agree with your teachers. I'd recommend you to
    ask them to guide you through your first steps - it *can* be
    confusing even for a not-so-beginner.

  7. #7
    Junior Member
    Join Date
    Aug 2006
    Location
    Acqui Terme - Piedmont Republic
    Posts
    7
    Well i'll check the two links to find the patch of kernel 2.6.17.9
    I'll tried to use xconfig, but yesterday it didn't started, menuconfig started but i didn't do changes cos i was very tired, i'll try today.
    My teachers will not help me again cos i ended university 2 mounths ago so u'll find my topics on this Forum.
    Has Linux a great diffusion in Germany? here less people use it. I think the problem is they are lazy to seek to solve the problems.

  8. #8
    Junior Member
    Join Date
    Aug 2006
    Location
    Acqui Terme - Piedmont Republic
    Posts
    7

  9. #9
    Junior Member
    Join Date
    Aug 2006
    Location
    Acqui Terme - Piedmont Republic
    Posts
    7
    I am near the end.
    After "make menuconfig" i did:
    make dep
    make clean
    make bzImage
    make modules
    make modules_install
    cd arch/i386/boot
    cp bzImage /boot
    Now i have to configure the boot loader to load the new kernel. What have i to do?
    Were the instructions before right?

  10. #10
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    N42.41 W73 and change
    Posts
    401
    Hello,

    I hope that you are successful with your kernel rebuild but if it does not solve your problems with hardware recognition I suggest you try Kanotix http://kanotix.com/changelang-ita.html.

    Knoppix is difficult to install to a hard drive because it is really meant for use as a Live CD. Kanotix is a better choice if you plan for hard drive installation.

    Good Luck!

Page 1 of 2 12 LastLast

Similar Threads

  1. compiling a new kernel
    By tbogue in forum Customising & Remastering
    Replies: 10
    Last Post: 03-15-2009, 03:37 AM
  2. Compiling Cloop for kernel 2.6.26-1
    By hal8000 in forum Customising & Remastering
    Replies: 1
    Last Post: 12-26-2008, 02:55 PM
  3. compiling kernel
    By wwhyer in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-08-2005, 06:29 PM
  4. compiling kernel ??? to much stack
    By voldemort in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 08-05-2004, 04:01 PM
  5. Compiling kernel from source
    By guyr in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-14-2004, 04:26 PM

Posting Permissions

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


IBM System X3850-X5 Server w/4x Intel  Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD picture

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD

$1599.99



IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon  E5620 picture

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620

$199.99



IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM

$179.99



Unused IBM 09P0037 MAINBOARD For  RS/6000 7044-170 P-Series picture

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series

$375.00



IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU picture

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU

$999.99



IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1) picture

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)

$150.00



IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES

$110.30



1 X IBM 720 POWER SERVER WITH 32 GB RAM picture

1 X IBM 720 POWER SERVER WITH 32 GB RAM

$344.97



IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012 picture

IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012

$109.99



DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR picture

DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR

$1100.00