-
Junior Member
registered user
Kernel compile 2.6.6 - only once?
I have a strange issue - I installed the most recent knoppix today, choosing the knoppix-install-from-web-newest script (or something similar). I chose the Debian way. Knoppix was booted in knoppix26 mode.
It booted fine, but this is a Toshiba Laptop and it seems that kernel support for the fan utilityis missing in the kernel ![Sad](images/smilies/icon_sad.gif)
I did apt-get update;apt-get install kernel-2.6.6
I then went through the process of compiling the kernel, it worked fine, i started from scratch, not using the config file for 2.6.6 in /boot. It wouldn't boot my kernel, the screen went black when it tried. So I rebooted into default 2.6.6 and tried again, but got this error during make xconfig:
make xconfig
CLEAN .config
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
make menuconfig does the same. I finally ended up reinstalling knoppix from the cd and trying again, but I am not able to get past this point - I must be losing my mind? ![Wink](images/smilies/icon_wink.gif)
Even from a completely fresh start, I cannot get the kernel to compile - any ideas? Google gave a few suggestions, I updated binutils and some other packages - same deal.
I can't fathom why it would work once, but not again? Is the install script forgiving of errors? Maybe something didn't install right?
-
It booted fine, but this is a Toshiba Laptop and it seems that kernel support for the fan utilityis missing in the kernel
You can check it with: grep -i toshiba /boot/config-2.6.x....... (check the filename)
I did apt-get update;apt-get install kernel-2.6.6
I then went through the process of compiling the kernel, it worked fine, i started from scratch, not using the config file for 2.6.6 in /boot. It wouldn't boot my kernel, the screen went black when it tried.
Did you get the full kernel source and do first: rm /usr/src/linux, then link the new source with: ln -s /usr/src/kernel-source2.6.xxx /usr/src/linux?
It's also a bit easier to start with:
Code:
cp /boot/config-2.6.6-xxx /usr/src/linux/.config
cd /usr/src/linux
make oldconfig
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
Code:
cd /usr/src/linux/include
ln -s asm-i386 asm
-
Junior Member
registered user
Thanks, I'll give your tips a try. I wasn't aware of "make oldconfig". I did delete and make the "linux" soft link. I also copied the config file in the second time, having read that the new make xconfig loads it automatically if it detects it.
I'm still boggled why I was able to compile it the first time?? My only guess is that the install script must have worked a bit differently the second time through...
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
davros4269
the new make xconfig loads it automatically if it detects it.
Wouldn't know as I've always used menuconfig.
I'm still boggled why I was able to compile it the first time?? My only guess is that the install script must have worked a bit differently the second time through...
Ah, not a clue on this one either, sorry.
-
Junior Member
registered user
Thanks for the fast response. I tried those and got the same error.
"make oldconfig" also gave those errors. I can only assume it's a botched install - perhaps I'll try using the install script that comes on the disk instead of the "new-web..." version.
I've never had any problem before - if you can think of anything else, I'd appreciate it, if not, thanks for your time.
I hope in the next knoppix update, they include Toshiba Utilities support in the kernel - these laptops run extremely hot otherwise.
-
You could always start afresh with a compile. Here's some links for the debian way:
http://www.desktop-linux.net/debkernel.htm
http://newbiedoc.sourceforge.net/tut...ernel-pkg.html
Basically it boils down to:
- apt-cache search kernel-headers-2.6 (pick your flavor)
- apt-cache search kernel-source-2.6
- apt-get install kernel-source-2.6.x kernel-headers-2.6.x (it might install default headers as well)
- cd /usr/src
- rm linux
- tar xvjf kernel-source-version.tar.bz2
- ln -s /usr/src/kernel-source-2.6.x /usr/src/linux
- cp /boot/config-2.6.x-16.04.04 /usr/src/linux/.config (check the /boot/config_filename)
- make oldconfig (to read in the Knoppix config, you can also start with defconfig to get a default conf)
- make menuconfig
- make-kpkg clean
- fakeroot make-kpkg --append-to-version=.120704 kernel_image (use any date)
If you use third party modules it would be:
- fakeroot make-kpkg --append-to-version=.120704 kernel_image modules_image
- cd..
- dpkg -i kernel-image-your_version_name.deb possible_modules_package_you_built.deb
- lilo -v (to make sure it updated)
-
Junior Member
registered user
Thanks for the info.
If I do exactly that, I get the same error. That's what I've always done, btw, up to the Debian package part (the last time I tried the Debian way, it was unable to work with lilo.conf and I found it less confusing to do it myself instead of answering the post-isntall script's questions). Well, that and I used xconfig instead of menuconfig, but both produce the same error.
I've reinstalled knoppix again, this time with the install script included on the cd instead of the new-web-version script.
What gets me is that I was able to do it the first time - but not since...it makes no sense to me, except that maybe that my cd went bad and the install script is forgiving of errors...
I even swapped cd-rom drives and reinstalled!
Btw, I thought that the kernel headers were only needed if you grabbed a binary kernel, in case some app wants to compile and use them? I thought compiling made your own kernel headers - in any case, I tried it both ways, same error.
-
I'm mystified while it works for me, but then again I'm using kanotix instead of knoppix. Kanotix is a bit stabler for a hd install and kano even has scripts for kernels although I haven't used them in a while.
You could of course boot the cd with the cheatcode testcd to see if it's ok.
And why not grab the source from kernel.org.
-
Senior Member
registered user
Problems I see with installing Knoppix to hdd.
No knoppix kernel source easily available and missing too many devel pkgs to compile one anyway.
dist-upgrade immediately hoses the install.
Knoppix is a fantastic LIVE CD but it was never meant to be installed to hdd. Don't believe me? Ask Klaus.
-
Junior Member
registered user
Markus: Thanks again - still no luck. testcd passed ok. Completely clueless at this point.
mzilikazi: Maybe it was never meant for this, but it works great in every other respect in my experience, and of course, there are 2 install scripts included on the disk
I'm writing this on another machine with a 3.2 install.
I've never had any issue compiling it before. According to the how-to's out there, it has everything that's required for the compile, version-wise as well. I've never used "dist-upgrade", never had a reason; I always upgrade app-by-app.
Similar Threads
-
By cfish in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-25-2005, 07:31 AM
-
By davidwahlstedt in forum Customising & Remastering
Replies: 0
Last Post: 03-17-2005, 05:42 PM
-
By msnxsw in forum Hardware & Booting
Replies: 2
Last Post: 11-27-2003, 07:12 AM
-
By Nigel_Tufnel in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 10-20-2003, 01:09 PM
-
By nhoxanh in forum General Support
Replies: 0
Last Post: 07-28-2003, 04:23 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
-
Forum Rules
![New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C picture](/store/img/g/tqEAAOSwkbxmR-l8/s-l225/New-Precision-DWDM-SFP-10G-80km-Tunable-Transceive.jpg)
New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C
$90.00
![NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping* picture](/store/img/g/Tb4AAOSwmeVlqJuU/s-l225/NEW-Sealed-Cisco-SFP-10G-LR-10GBASE-LR-SFP-1310nm-.jpg)
NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping*
$19.20
![LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module picture](/store/img/g/JEEAAOSwzu9ibCFX/s-l225/LOT-OF-20-Genuine-Cisco-SFP-10G-SR-V03-10GBASE-SR-.jpg)
LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module
$90.25
![New Cisco GLC-TE 1G SFP Copper RJ45 100m 1000BASE-T Transceiver Module picture](/store/img/g/UFgAAOSwrw9l1Cbr/s-l225/New-Cisco-GLC-TE-1G-SFP-Copper-RJ45-100m-1000BASE-.jpg)
New Cisco GLC-TE 1G SFP Copper RJ45 100m 1000BASE-T Transceiver Module
$22.32
![🔥🔥🔥 CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi Module 🔥🔥🔥 picture](/store/img/g/KTkAAOSwcmBisISE/s-l225/-CISCO-SFP-10G-SR-V03-10-2415-03-850nm-10GBASE-SR-.jpg)
🔥🔥🔥 CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi Module 🔥🔥🔥
$6.80
![SFP-H10GB-CU3M Cisco 10GB SFP+ Twinax Copper 3M Passive Cable picture](/store/img/g/FssAAOSwsJxl2ME5/s-l225/SFP-H10GB-CU3M-Cisco-10GB-SFP-Twinax-Copper-3M-Pas.jpg)
SFP-H10GB-CU3M Cisco 10GB SFP+ Twinax Copper 3M Passive Cable
$7.99
![GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03 picture](/store/img/g/tAkAAOSwdENkHItI/s-l225/GENUINE-Cisco-SFP-10G-SR-V03-SFP-GBIC-Transceiver-.jpg)
GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03
$6.80
![For Cisco SFP-10G-T, Ubiquiti UF-RJ45-10G Transceiver, SFP+ to RJ45 10GBase-T picture](/store/img/g/H0kAAOSwYRJhQsEA/s-l225/For-Cisco-SFP-10G-T-Ubiquiti-UF-RJ45-10G-Transceiv.jpg)
For Cisco SFP-10G-T, Ubiquiti UF-RJ45-10G Transceiver, SFP+ to RJ45 10GBase-T
$48.99
![New Cisco SFP-10G-LRM 10G SFP+ LRM 1310nm 220m SMF/MMF LC Module picture](/store/img/g/Y-EAAOSw2pVl1CqO/s-l225/New-Cisco-SFP-10G-LRM-10G-SFP-LRM-1310nm-220m-SMF-.jpg)
New Cisco SFP-10G-LRM 10G SFP+ LRM 1310nm 220m SMF/MMF LC Module
$33.24
![LOT OF 10 HPE JD092B X130 10G SFP+ LC SR Transceiver picture](/store/img/g/EMwAAOSwW05l1QTO/s-l225/LOT-OF-10-HPE-JD092B-X130-10G-SFP-LC-SR-Transceive.jpg)
LOT OF 10 HPE JD092B X130 10G SFP+ LC SR Transceiver
$40.00