LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-23-2004, 02:05 PM   #1
jza
Member
 
Registered: Jul 2003
Posts: 40

Rep: Reputation: 15
Arrow Trouble with new kernel


Ive been trying to get a new custom kernel configured (2.6.6-1) using the source debian package but naturally have come into some problems. this is my first attempt at a custom kernel. I initially followed the directions at
http://www.debian.org/doc/manuals/re...ernel.ru.html,
but it didn't go all that smooth. It gave me some errors (which I forgot to copy down). It didn't put the entries into the boot loader nor copy the initrd and vmlinuz files (so I did it myself and it booted, but none of my modules were loaded at boot time.
So I ran the utilities for making the modules and that helped a little bit. However, I'm still have some trouble getting my sound to work and I recently tried installing the sources for the ipw2100 (centrino) drivers but haven't been successful with that. I did all the instructions from the debian module for installing source packages and got no errors. But when I try modprobe ipw2100 it tells me that it can't find that module. Here are some logs:
2.6bootLog
2.6 modules 2.4 (old kernel) modules loaded

Also, I changeed my GRUB boot line for the hdc to hdc=ide-cd, I left all the others as hdX=scsi, is this correct?

For reference this is a dell inspiron 600m and I'm running Debian from a knoppix 3.4 hard drive install

tia
 
Old 05-24-2004, 12:48 AM   #2
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
with 2.6, you don't need to put the hdX=ide-scsi lines.

hm. try downloading 2.6.5-1-k7 (or whatever you use)

then
#cp /boot/config-2.6.5-1-k7 /usr/src/linux/.config
#make oldconfig
#make menuconfig

If you are going to use an initrd kernel, make sure to enable (Must say Y;do not say M or N) Compressed Rom File System Support in Miscellaneous Filesystems, and enable RAM Disk Support (as Y, not M), default size 8192, and enable (as Y) Initial Ram Disk Support (initrd).

#make-kpkg clean
#nano Makefile (change extraverision to Fun or test or something)
#make-kpkg --initrd kernel_image modules_image
#dpkg -i ../kernel-image-2.x.x-extraversion*deb (whatever modules packages have been compiled)

what hardware do you have?

Last edited by haimeltjnfg; 05-24-2004 at 12:49 AM.
 
Old 05-24-2004, 08:07 PM   #3
jza
Member
 
Registered: Jul 2003
Posts: 40

Original Poster
Rep: Reputation: 15
I get this error:

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
cc1: Permission denied: opening dependency file scripts/basic/.fixdep.d
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

when I try to make.

I have been getting this ever since after my first successful boot.
I had to do a lot of hacking since the first time I did the kpkg modules_install I had some errors. (i.e. I had to make the initrd and vmlinuz myself, and some other stuff).

Some searching on the internet yeilded that that was a problem caused by having an older version of glibc, but I have the newest version.


As far as hardware, this is a laptop with a Pentium M, ati graphics, centrino wireless, intel sound, nothing else special as far as I know.
 
Old 05-24-2004, 09:05 PM   #4
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
try running #fakeroot make

if that fails, try
#su root
#make
 
Old 05-24-2004, 10:59 PM   #5
jza
Member
 
Registered: Jul 2003
Posts: 40

Original Poster
Rep: Reputation: 15
gives me same error when I try to make-kpkg --initrd kernel_image modules_image
 
Old 05-24-2004, 11:27 PM   #6
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
chmod 777 scripts/basic/.fixdep.d ?
 
Old 05-25-2004, 12:58 PM   #7
jza
Member
 
Registered: Jul 2003
Posts: 40

Original Poster
Rep: Reputation: 15
no luck, same error

i've noticed when i try to build some packages it gives me an error, and its looking for modules specified by some 2.6.6 file (sorry I'm not exacly sure how modules are organized) and this happens even if I boot with the 2.4 kernel
 
Old 05-25-2004, 07:26 PM   #8
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
have you tried to compile with a debian kernel?
 
Old 05-25-2004, 07:40 PM   #9
jza
Member
 
Registered: Jul 2003
Posts: 40

Original Poster
Rep: Reputation: 15
you mean with a prebuilt image?

i've been trying to build using the kernel-source packages from packages.debian.org
 
Old 05-25-2004, 07:57 PM   #10
jza
Member
 
Registered: Jul 2003
Posts: 40

Original Poster
Rep: Reputation: 15
I tried now with a prebuild and it gave me that module error:

/usr/sbin/mkinitrd: add_modules_dep_2_5: modprobe fiailed
FATA: Module jbd not found
FATAL: Module ext3 not found
blah blah blah exit status 9
blah blah blah
 
Old 06-01-2004, 03:58 PM   #11
erdem
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
Comment out ext3 and jbd in /etc/mkinitrd/modules .
 
Old 06-02-2004, 03:42 AM   #12
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
compile it as root the UNIX way, no need to cp the old .config, just don't erase the old kernel directory or the old kernel image in case you mess up stuff. when you know the Unix way, the debian way is just a way and nothing else.
DO IT ALL AS ROOT, INSTALL DEPENDENCIES(make,g++,init-tools,ncurses-dev,etc...)

make menuconfig;
make && make modules_install ;
cp arch/i386/boot/bzImage /boot.vmlinuz-XXX && ln -s /boot/vmlinuz-XXX /;
update-grub/ vi lilo.conf, lilo;
reboot
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel trouble linuxmandrake Debian 2 09-24-2005 06:43 AM
kernel trouble UBERSKiB Linux - Newbie 4 05-21-2005 11:36 PM
New Kernel Trouble matt3333 Slackware 7 12-22-2003 05:28 PM
kernel trouble Calcutec Linux - General 4 03-17-2003 06:04 PM
Kernel Trouble (Not actually trouble though) chem1 Linux - General 4 10-01-2002 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration