LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9 (https://www.linuxquestions.org/questions/red-hat-31/red-hat-custom-kernel-compilation-mini-how-to-for-red-hat-8-9-a-91503/)

meeshka 10-05-2003 08:08 PM

Hey Thetargos, just a follow up...

I got ALSA to work for the new kernel by just compiling and installing the alsa-driver tarball. I just compiled it with support for my soundcard and the new drivers worked fine with the already installed libs, utilities, etc.

Thanks again,
meeshka

Thetargos 10-05-2003 09:14 PM

Good to hear you got it right :)

saposmak 10-06-2003 09:47 PM

First of all, Thetargos, thanks for the (amazingly clear) instructions on how to compile the kernel. Apparently I am the only one who has had problems with this, and I hope you can help me with this:

After following your instructions and running the 'make install' command, I got this error:

md5sum: WARNING: 1 of 13 computed checksums did NOT match
md5sum: WARNING: 1 of 13 computed checksums did NOT match
setup.S: Assembler messages:
setup.S:230: Warning: indirect lcall without `*'
Root device is (3, 2)
Boot sector 512 bytes.
Setup is 4767 bytes.
System is 890 kB
+ '[' -x /root/bin/installkernel ']'
+ '[' -x /sbin/installkernel ']'
+ exec /sbin/installkernel 2.4.22 bzImage /root/kernel/linux-2.4.22/System.map ''
/lib/modules/2.4.22 is not a directory.
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2

What does this all mean? Thanks in advance for taking your time to answer a newbie's questions.

meeshka 10-06-2003 09:52 PM

Hey Thetargos,

Just a question, in your original instructions you had:

$ su
password:
# make install
# make modules_install


should make modules_install come before make install?

saposmak 10-06-2003 10:16 PM

I figured make modules_install had to come first too, and I ran that command then, and I got this nifty error (this is the redirected makemodules_install.err file):

md5sum: WARNING: 1 of 13 computed checksums did NOT match
md5sum: WARNING: 1 of 13 computed checksums did NOT match
setup.S: Assembler messages:
setup.S:230: Warning: indirect lcall without `*'
Root device is (3, 2)
Boot sector 512 bytes.
Setup is 4767 bytes.
System is 890 kB
+ '[' -x /root/bin/installkernel ']'
+ '[' -x /sbin/installkernel ']'
+ exec /sbin/installkernel 2.4.22 bzImage /root/kernel/linux-2.4.22/System.map ''
depmod: *** Unresolved symbols in /lib/modules/2.4.22/kernel/crypto/autoload.o
depmod: crypto_alg_lookup
depmod: *** Unresolved symbols in /lib/modules/2.4.22/kernel/crypto/proc.o
depmod: crypto_alg_sem
depmod: crypto_alg_list

I got the same errors with make install afterwards...

So I go back to see if the problem lies within the earlier steps,
I ran make bzImage 2> bzImage.err, whose output was:

md5sum: WARNING: 1 of 13 computed checksums did NOT match
md5sum: WARNING: 1 of 13 computed checksums did NOT match
setup.S: Assembler messages:
setup.S:230: Warning: indirect lcall without `*'
Root device is (3, 2)
Boot sector 512 bytes.
Setup is 4767 bytes.
System is 890 kB

I also ran make modules 2> modules.err, and its output was this:

md5sum: WARNING: 1 of 13 computed checksums did NOT match
make[2]: Circular /root/kernel/linux-2.4.22/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /root/kernel/linux-2.4.22/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped.


So far I can see that this 1 of 13 computed checksums error is consistent within all the error log files I've made... coincidence? I sure wish I wasn't a newbie.

Thetargos 10-06-2003 11:52 PM

Yes, indeed, you are both right. I assumed make install would only make the base bzImage and then install it (but learned latter that it needs /lib/modules/<kernver> to do its job). As I said at the end of the guide, I noramally use the compressed method:
Code:

# make clean dep modules modules_install install
So I just sit back and watch the compile porcess (which is kind of cool with a nice desktop image, the terminal maximized and set its background to transparent :D)

saposmak 10-07-2003 12:37 PM

About what I posted previously, the kernel did compile, in spite of the errors. After running it on my laptop thru grub (I compiled the kernel in my laptop and in my desktop, both got the exact same errors), I was distraught to see that my ethernet card didn't work (but fear not I just made it work... it seemed that since I had compiled the drivers for my previous kernel, it wouldn't work on this one.

The real problem is that it doesn't recognize my mouse. It's a kensington usb pocketmouse, which it recognizes perfectly in my previous kernel installation. The touchpad works fine though. I had both working fine on my 2.4.20-8 kernel. Also, I have a few games installed, and they run terribly slow now... I checked my video card config and it's just fine (the enable 3d hardware acceleration checkbox is checked).

In the kernel configuration (i ran menuconfig), i enabled all the usb devices, as well as mouse and keyboard usb support... I don't know what could be the problem... And if that wasn't enough, at bootup, it still gives me that error that says

*** Unresolved symbols in lib/modules/2.4.22/kernel/crypto/autoload.o
*** Unresolved symbols in /lib/modules/2.4.22/kernel/crypto/proc.o

I truly have no idea what any of it means.

saposmak 10-07-2003 05:44 PM

ok, I tried running insmod manually to install the autoload.o file, and this is the error that I got:

root]# insmod /lib/modules/2.4.22/kernel/crypto/autoload.o
/lib/modules/2.4.22/kernel/crypto/autoload.o: unresolved symbol crypto_alg_lookup
/lib/modules/2.4.22/kernel/crypto/autoload.o:
Hint: You are trying to load a module without a GPL compatible license
and it has unresolved symbols. The module may be trying to access
GPLONLY symbols but the problem is more likely to be a coding or
user error. Contact the module supplier for assistance, only they
can help you.



I assume I am getting closer to the answer, though I dunno who the module supplier is, or what in the world GPL is.

tillyoubreakit 10-07-2003 11:21 PM

Hello,

firstly THANK YOU sooo much for writing this guide. I had no installtion problem. But after I rebootet GRUB showed me 3 Kernels

1.---2-4.20-8smp
2.---2-4.20-8
3.---2-4.22

Which is ok, #1 #2 work fine. But #3 says after a while, Kernel Panic unable to mount "vfs" It cant find the root file system.

Do you have any tips for me :D

Thanks

-Florian

Thetargos 10-08-2003 02:24 PM

Quote:

Originally posted by saposmak
ok, I tried running insmod manually to install the autoload.o file, and this is the error that I got:

root]# insmod /lib/modules/2.4.22/kernel/crypto/autoload.o
/lib/modules/2.4.22/kernel/crypto/autoload.o: unresolved symbol crypto_alg_lookup
/lib/modules/2.4.22/kernel/crypto/autoload.o:
Hint: You are trying to load a module without a GPL compatible license
and it has unresolved symbols. The module may be trying to access
GPLONLY symbols but the problem is more likely to be a coding or
user error. Contact the module supplier for assistance, only they
can help you.



I assume I am getting closer to the answer, though I dunno who the module supplier is, or what in the world GPL is.

GPL: General Public License (by the GNU project) go to www.gnu.org for information about this.

Regarding the problem you [b]did[b] compile with cryptographic support into the kernel. This was one of the reasons I never could re-compile an official Red Hat kernel (and hence decided to go on my own with a plain vanilla kenrel) try to compile [b]without[b] cryptographic support.

Thetargos 10-08-2003 02:27 PM

Quote:

Originally posted by tillyoubreakit
Hello,

firstly THANK YOU sooo much for writing this guide. I had no installtion problem. But after I rebootet GRUB showed me 3 Kernels

1.---2-4.20-8smp
2.---2-4.20-8
3.---2-4.22

Which is ok, #1 #2 work fine. But #3 says after a while, Kernel Panic unable to mount "vfs" It cant find the root file system.

Do you have any tips for me :D

Thanks

-Florian

make sure you did compile with support (either as module or into the kernel) for your local disk format file system. That should do it.

Tip: I usually compile with ext3 support and ext2 (second extended) directly into the kernel. To me it sounds like a network file system problem verify that too..

tillyoubreakit 10-08-2003 02:36 PM

Hello after running in one problem I am now facing the second :p

I finally got it to read the .config file from the original 9.0 kernel. Upon editing some stuff, I get the following error in booting

mount: error 19 mounting ext3 (maybe not a file sys suppport)
umount /initrd/proc failed:2
Kernel Panic= no init found

Thanks

Florian

PS: Altough I am a :newbie: I will not give up :-)

:Pengy: FOREVER

saposmak 10-08-2003 06:16 PM

ok I see what you're telling me... since recompiling a redhat kernel is such a hassle, is there a way i can remove the kernel i just installed?

btw, thanks for your answer.

Thetargos 10-09-2003 05:20 PM

Quote:

Originally posted by tillyoubreakit
Hello after running in one problem I am now facing the second :p

I finally got it to read the .config file from the original 9.0 kernel. Upon editing some stuff, I get the following error in booting

mount: error 19 mounting ext3 (maybe not a file sys suppport)
umount /initrd/proc failed:2
Kernel Panic= no init found

Thanks

Florian

PS: Altough I am a :newbie: I will not give up :-)

:Pengy: FOREVER

Make sure you have support for ext3 filesystem. You have to make sure you have, otherwise the kernel will not be able to mount your partitions :)

Thetargos 10-09-2003 05:22 PM

Quote:

Originally posted by saposmak
ok I see what you're telling me... since recompiling a redhat kernel is such a hassle, is there a way i can remove the kernel i just installed?

btw, thanks for your answer.

Yes, just make sure you delete any reference to the newly compiled kernel from: /boot, /lib/modules, and edit your /etc/grub.conf in order to take out any instance of it.
Code:

$ su
password:
# rm -f /boot/*<customkernelhere>*
# rm -rf /lib/modules/<customkernelversionhere>
# vi /etc/grub.conf

This should do it.


All times are GMT -5. The time now is 09:13 PM.