LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel Rebuild Error (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-rebuild-error-4175473968/)

gumeniuc 08-20-2013 02:43 AM

Kernel Rebuild Error
 
Hello,

I installed CentOS 6.4 on VmWare Workstation and decided to add layer7 traffic filter on the kernel level. After patching, configuring, rebuilding and installing kernel I get the following error during the boot process:

Code:

udevd[59]: error getting socket: invalid argument
And get a Kernel Panic as the result.

Can you please explain what is wrong with the new kernel and how to make it work.

Thank you
Regards,
Alex

business_kid 08-20-2013 02:55 AM

Sockets are a means of internal communication in a running linux system.
Nobody can know what's wrong because your post is too cryptic - you need to provide better information when posting.

I would hazard a guess that some modification you made to the standard kernel were unwise. I would review those with this error in mind, and read the help everywhere.

gumeniuc 08-20-2013 03:20 AM

Kernel version is 2.6.26.

After I extracted sources, I patched kernel, made a copy of running config using
Code:

cp /boot/config-`uname -r` ./.config
ran
Code:

make menuconfig
and enabled option
Code:

"Networking → Networking options → Network packet filtering framework(Netfilter) → Core Netfilter Configuration → Layer 7 match support"
that is all. no more changes.
after this I made
Code:

make all
make modules_install
make install
reboot

I also made a copy of the config file.

Please let me know if there is smth else you would like to know or maybe you need any other details.

Thank you,
Alex

business_kid 08-20-2013 06:22 AM

Quote:

make all
make modules_install
make install
reboot
The 'make install' is dangerous, because it makes presumptions: That you use lilo; that your boot & root disks are the ones it has hardcoded in. I use something like
Code:

cp arch/x86/boot/bzImage /boot/vmlinuz-version
cp System.map /boot/System.map-version

Then I update the bootloader (probably grub in a Centos box).

gumeniuc 08-25-2013 05:42 AM

business_kid,

Thank you for the advice, but it did not work. I also tried to build rpm package and then install it and keep getting that error.

I think that the root of the problem might be in reducing kernel version from 2.6.32 to 2.6.26.

Are there any problem with reducing kernel version in Linux ?

thanks

jpollard 08-25-2013 08:05 AM

I would suggest first building the kernel using exactly the same configuration as used earlier.

Then verify it works as the previous kernel did.

Then add the changes.

The reason for this is that you are changing multiple things at once, and identifying where the problem is becomes much harder.

gumeniuc 08-25-2013 12:40 PM

I tried to install old kernel without patching it and used current working configuration. Got the same error with udevd.

gumeniuc 08-26-2013 02:17 PM

Thank you for your replies. Problem was solved by installing newer kernel. Have no idea what was wrong with the older one.
But now I have another problem, started a new post here: http://www.linuxquestions.org/questi...or-4175474798/

regards,
alex


All times are GMT -5. The time now is 03:51 PM.