Re: how does make-dpkg (and linux/debian) map modules?

2004-03-01 Thread Chris Evans
On 1 Mar 2004 at 12:25, CW Harris wrote:

> What are the errors you are seeing?  
First one comes in the boot up after the line about setting the 
System Cllock and says:
modprobe: modprobe: Can't locate module char-major-10-135
modprobe: modprobe: Can't locate module char-major-10-135

then (I've missed something here as I'm using ^s ^q to pause the boot 
messages as none of this seems to show in dmesg) I get others like:
input modprobe: Can't locate module input
usbkbd modprobe: Can't locate module usbkbd 
...

> IIRC all the module dependency should be handled automatically, 
that was my reading of things too...

> but if something is broken maybe you need to manually do a "depmod -a"?
doesnt' change things unfortunately
 
> > If I rename the old /libmodules back again: no improvement.
> > 
> This is all in changing from a working 2.4.18 kernel to the custom
> 2.4.18 with RAID, correct?  
No, starting from the 2.4.18 source tree, the working install was 
2.4.18-bf2.4 but I can't see a source tree for that and assume it's 
the same as the bf2.4 and the issue is in the modules loaded and 
marked loadable.  OK, inspired by responses from debian-user I've 
tried explicitly adding another module: via-rhine as it happens: 
bingo, still complaints about all the other modules but that one is 
there now so the issue is clearly the basic configuration I started 
with.  I had assumed that the initial make menuconfig from the source 
tree would start with the basic modules in.

Is there a way to take the module list from the bf2.4 install kernel 
image and start from there?  Sorry if I'm looking straight through it 
but I can't see it.

> Did you miss any config differences in rebuilding (The easiest is to
> start with the working system config and then add the changes you
> want.) 
Indeed, I thought that starting with the 2.4.18 source would do that: 
clearly not.
 
> You might also want to look into using kernel flavors (see the
> "--append-to-version" discussion in kernel-package).  
I can see that would have been better than "--version" and I'll go 
over to that if I can get a basic config right now ... 

> This may help you while you are getting things working. 
Sure it will, wish I shared your confidence on "while"

Thanks again,

Chris
PSYCTC: Psychotherapy, Psychology, Psychiatry, Counselling
   and Therapeutic Communities; practice, research, 
   teaching and consultancy.
Chris Evans & Jo-anne Carlyle
http://psyctc.org/ Email: [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: how does make-dpkg (and linux/debian) map modules?

2004-03-01 Thread CW Harris
On Mon, Mar 01, 2004 at 03:59:16PM -, Chris Evans wrote:
> How does Debian (3.0r2 2.4.18 kernel and lilo) find its modules if 
> you compile a tweaked kernel?  I'm not getting it right and hope 
> someone can help.
> 
> TIA,
> 
> Chris
> 
> Long story:
> I've cracked via-rhine problem I had, now all I need is the get RAID-
> 1 mirroring of the two drives on this machine 
> 
> First thing you need is to have RAID1 support compiled into the 
> kernel, not loading from modules.  Seems reasonably simple, I'm using 
> the 2.4.18-bf2.4 default kernel image at present so I've:
> got the kernel source: /usr/src/kernel-source-2.4.18 (bunzipped & tar 
>-xvf etc)
> got the kernel headers which I'd got as kernel-headers-2.4.18-bf2.4 
> when I was working on the via-rhine driver issue
> cd /usr/src/kernel-source-2.4.18
> make menuconfig (and put RAID and RAID1 into the kernel with "Y"s)
> make deps
> make-kpkg clean
> make-kpkg --revision=custom.1.0RAID kernel_image
> dpkp -i ../ ... .deb
> 
> I move /lib/modules/2.4.18 to 2.4.18old as suggested during this 
> process ... do the lilo bit  and reboot ... and linux can't find 
> modules it wants ...

What are the errors you are seeing?  IIRC all the module dependency
should be handled automatically, but if something is broken maybe you
need to manually do a "depmod -a"?

> 
> If I rename the old /libmodules back again: no improvement.
> 
This is all in changing from a working 2.4.18 kernel to the custom
2.4.18 with RAID, correct?  Did you miss any config differences in
rebuilding (The easiest is to start with the working system config and
then add the changes you want.)

You might also want to look into using kernel flavors (see the
"--append-to-version" discussion in kernel-package).  This may help you
while you are getting things working.

HTH

-- 

Chris Harris <[EMAIL PROTECTED]>
---
GNU/Linux --- The best things in life are free.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



how does make-dpkg (and linux/debian) map modules?

2004-03-01 Thread Chris Evans
How does Debian (3.0r2 2.4.18 kernel and lilo) find its modules if 
you compile a tweaked kernel?  I'm not getting it right and hope 
someone can help.

TIA,

Chris

Long story:
I've cracked via-rhine problem I had, now all I need is the get RAID-
1 mirroring of the two drives on this machine 

First thing you need is to have RAID1 support compiled into the 
kernel, not loading from modules.  Seems reasonably simple, I'm using 
the 2.4.18-bf2.4 default kernel image at present so I've:
got the kernel source: /usr/src/kernel-source-2.4.18 (bunzipped & tar 
   -xvf etc)
got the kernel headers which I'd got as kernel-headers-2.4.18-bf2.4 
when I was working on the via-rhine driver issue
cd /usr/src/kernel-source-2.4.18
make menuconfig (and put RAID and RAID1 into the kernel with "Y"s)
make deps
make-kpkg clean
make-kpkg --revision=custom.1.0RAID kernel_image
dpkp -i ../ ... .deb

I move /lib/modules/2.4.18 to 2.4.18old as suggested during this 
process ... do the lilo bit  and reboot ... and linux can't find 
modules it wants ...

If I rename the old /libmodules back again: no improvement.

I've looked through /usr/doc/kernel-package and the README seems to 
me to say that what I've done should have worked, and the 
README.modules talks about /usr/src/modules and doesn't seem to me to 
fit with the Debian directories and I'm baffled again.

PSYCTC: Psychotherapy, Psychology, Psychiatry, Counselling
   and Therapeutic Communities; practice, research, 
   teaching and consultancy.
Chris Evans & Jo-anne Carlyle
http://psyctc.org/ Email: [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]