The custom kernel howto should cover what you want to do. You should find the default config for the 2.6 kernel in /boot/
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!
The custom kernel howto should cover what you want to do. You should find the default config for the 2.6 kernel in /boot/
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
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
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.
The modules are stored in miniroot.gz.. so you have to put them there.. it's in the custom kernel howtoOriginally Posted by Godji
H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W
$2512.18
Dell PowerEdge R630 8SFF 2.6Ghz 20-Core 128GB Mem 4x1G RJ-45 NIC 2x750W PSU
$399.04
CSE-118 Supermicro 1U 3x GPU Server 2.1Ghz 16-C 128GB CX353A 2x1600W PSU Rails
$450.03
R281-3C2 2U 12 Bay GPU Server 2.2Ghz 20-C 64GB 2x10G SFP+ 2x1200W TrueNAS ZFS
$1180.24
Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB
$510.00
DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45
$275.00
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount
$224.99
Dell PowerEdge R430 3.5 1U 2x E5-2690 v3 2.6ghz 24-Cores 256gb 4x Trays 2x 550w
$289.99
HP ProLiant DL380 Gen9 16SFF 2x E5-2680v4 2.4GHz =28 Cores 64GB P840 4xRJ45
$355.00