Can't locate module char-major-4

Jim Gifford lfs at
Tue Feb 10 09:45:52 PST 2004

Ok I mis-read your email, I thought you were talking about the 2.6 kernel
and not section 2.6. Ok, I have seen this issue with 2.4, here is a list of

1. run modprobe -c and verify alias major-char-4 serial exists.
2. run depmod -a
    check to see if problem has gone away
next try
1. edit your modules.conf and add

depfile=/lib/modules/`uname -r`/modules.dep
generic_stringfile=/lib/modules/`uname -r`/modules.generic_string
pcimapfile=/lib/modules/`uname -r`/modules.pcimap
isapnpmapfile=/lib/modules/`uname -r`/modules.isapnpmap
usbmapfile=/lib/modules/`uname -r`/modules.usbmap
parportmapfile=/lib/modules/`uname -r`/modules.parportmap
ieee1394mapfile=/lib/modules/`uname -r`/modules.ieee1394map
pnpbiosmapfile=/lib/modules/`uname -r`/modules.pnpbiosmap

path[boot]=/lib/modules/boot path[toplevel]=/lib/modules/`uname -r`
path[toplevel]=/lib/modules/default path[toplevel]=/lib/modules

----- Original Message ----- 
From: "Christian Lescuyer" <cl at>
To: "LFS Support List" <lfs-support at>
Sent: Tuesday, February 10, 2004 9:31 AM
Subject: Re: Can't locate module char-major-4

> Thanks a lot Jim,
> > Chris, you need to add it to /etc/modprobe.conf since the new module
> > utilities don't use modules.conf. Here is a sample modprobe.conf you can
> > download
> I tried, and it still doesn't work.
> *Then* I did my homework, and I seem to understand that modprobe is used
> with kernels 2.5 and 2.6?
> I'm still using kernel 2.4.22. I've built with nALFS from profile 3, so it
> should be quite standard. The trouble began (I think) when I tried to
> my kernel config to get DMA on my hard disk. It worked, but I must have
> broken something else...
> I must admit that, having built LFS 3 and LFS 4 in the past, I've not read
> book 5 in details. But I can't find anything new about modules there.
> serial.o seems to be in the right place:
> root at maske 18:01:54> find /usr -name serial.o
> /usr/src/linux-2.4.22/drivers/char/serial.o
> Cheers
> Xtian
> -- 
> FAQ:
> Unsubscribe: See the above information page

More information about the lfs-support mailing list