Results 1 to 6 of 6

Thread: Small remastering help needed

  1. #1
    Junior Member
    Join Date
    Jul 2004
    Posts
    3

    Small remastering help needed

    Hello!

    I have Knoppix 3.4. I successfully used the knoppix-installer script to install Knoppix 3.4 on my hard drive. For a certain application (LFS 6.0 testing) I need a 2.6.* kernel compiled with GCC 3.*, and a "cat /proc/version" command tells me the K3.4 kernel is 2.6.5 compiled with GCC 2.<whatever>. Now I want to somehoe recompile the same 2.6.5 kernel with a newer GCC; however, the Knoppix remastering / custom kernel HOWTOs are a little above my level of knowledge and understanding... What I want to do is keep the current kernel configuration and just compile it; however I didn't find the kernel source code in /usr/src, and a configuration file only for the 2.4.*.... In short, I'm in need of advice how to proceed to get a working Knoppix with a 2.6.* kernel compiled with GCC 3.*

    Thanks!

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818
    The custom kernel howto should cover what you want to do. You should find the default config for the 2.6 kernel in /boot/

  3. #3
    Junior Member
    Join Date
    Jul 2004
    Posts
    3
    Here's what I figured out myself. I downloaded the kernel source from http://developer.linuxtag.net/knoppix/sources, unpacked it to /usr/src, and ran "make mrproper" on it. Then I copied the .config-2.6.5 file from the /boot folder to the kernel folder, and renamed it to .config. I then ran "make" and "make modules-install". Then, I copied the System.map and arch/i386/boot/bzImage files to /boot, renaming them to System-2.6.5.map and vmlinuz-2.6.5 respectively, overwriting the ones that were already there. When I did that I rebooted the PC, and everything ran as before. Typing "cat /proc/version" however STILL returned a 2.6.5 kernel compiled with GCC 2.whatever. So either:
    1) the /proc/version file (if one exists, I think /proc was some kind of virtual folder, right?) is not updated, or
    2) the system for some reason is nto using my precompiled kernel.
    Any ideas what to do?

    Godji

  4. #4
    Member registered user
    Join Date
    Jul 2003
    Posts
    48

    kernel overwrite

    1 probably ,you have not repointing linux to your kernel
    cd /usr/src && rm linux
    ln -s /your kernel/ linux <----this is the problem
    2 from 2.6.x up you dont need to copy bzimage...
    after make oldconfig , " make install "will do (and make modules_install of course)
    3 look at Makefile and see the version number,addendum...
    at the beginning (you can even put extension_funny_names
    so later uname -a gives "president of virtual USA" )
    4 after make install ,check grub /lilo
    normally with grub the make install modifies for you already
    pointing link to new vmlinuz and systemmap
    just reboot and cross fingers

  5. #5
    Junior Member
    Join Date
    Jul 2004
    Posts
    3
    I fugred out where the problem was. In fact, for some reason the recompilation STILL used gcc 2.whatever, although the default version was 3.3.3. I deleted gcc 2.whatever and symlinked the name of the executable to point to the new gcc. This did it, and now it says what it's supposed to - that it was compiled with GCC 3.3.3. Thanks everyone for the help!

    Godji

    P.S. Now at startup I get a few modules complaining and not being able to start due to the alternative gcc version that has compiled the kernel. I did "make modules-install" of course so I don't know why that happens. But it's not that I care.

  6. #6
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818
    Quote Originally Posted by Godji
    P.S. Now at startup I get a few modules complaining and not being able to start due to the alternative gcc version that has compiled the kernel. I did "make modules-install" of course so I don't know why that happens. But it's not that I care.
    The modules are stored in miniroot.gz.. so you have to put them there.. it's in the custom kernel howto

Similar Threads

  1. small linux without GUI etc needed
    By ottosykora in forum Other Live CDs
    Replies: 14
    Last Post: 10-26-2006, 02:08 PM
  2. Help remastering Knoppix 3.7, KNOPPIX file too small
    By DVknoppix in forum Customising & Remastering
    Replies: 1
    Last Post: 02-12-2005, 09:16 PM
  3. Remastering Suite V1.01 released! Easy Knoppix-Remastering
    By PrOCesSkIlL in forum Customising & Remastering
    Replies: 29
    Last Post: 04-02-2004, 01:32 AM
  4. Damn Small Linux remastering problems
    By TyphoonMentat in forum Customising & Remastering
    Replies: 0
    Last Post: 11-02-2003, 09:24 AM
  5. Remastering Scripts : easy remastering
    By MichielioZ in forum Customising & Remastering
    Replies: 11
    Last Post: 04-15-2003, 12:13 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
  •  


Cisco GLC-FE-100FX-RGD 100BASE-FX SFP Transceiver Module picture

Cisco GLC-FE-100FX-RGD 100BASE-FX SFP Transceiver Module

$17.99



Cisco Meraki MA-SFP-1GB-SX 1000BASE-SX SFP Transceiver Module picture

Cisco Meraki MA-SFP-1GB-SX 1000BASE-SX SFP Transceiver Module

$24.99



Cisco Meraki MA-SFP-10GB-SR 10G SFP+ SR 850nm 300m LC MMF picture

Cisco Meraki MA-SFP-10GB-SR 10G SFP+ SR 850nm 300m LC MMF

$29.99



CISCO SFP GLC-GE-100FX 10-2019-02 100Base-FX SFP GBIC Transceiver Module  1pcs picture

CISCO SFP GLC-GE-100FX 10-2019-02 100Base-FX SFP GBIC Transceiver Module 1pcs

$52.99



Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03  picture

Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03

$8.00



SFP-10G-SR Original Cisco 10GBASE-SR SFP+ V02 Multi mode Transceiver 10-2415-02 picture

SFP-10G-SR Original Cisco 10GBASE-SR SFP+ V02 Multi mode Transceiver 10-2415-02

$5.00



Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC picture

Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC

$13.89



Genuine Cisco ‎SFP-10G-SR Transceiver Module (10-2415-03) picture

Genuine Cisco ‎SFP-10G-SR Transceiver Module (10-2415-03)

$5.85



New HP HPE Aruba J9150D 10G SFP+ LC SR 850nm 300m MMF XCVR Transceiver Module picture

New HP HPE Aruba J9150D 10G SFP+ LC SR 850nm 300m MMF XCVR Transceiver Module

$49.99



10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module picture

10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module

$85.00