LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2013, 02:43 AM   #1
gumeniuc
LQ Newbie
 
Registered: Aug 2013
Posts: 11

Rep: Reputation: Disabled
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
 
Old 08-20-2013, 02:55 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,837

Rep: Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758
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.
 
Old 08-20-2013, 03:20 AM   #3
gumeniuc
LQ Newbie
 
Registered: Aug 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-20-2013, 06:22 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,837

Rep: Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758
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).
 
Old 08-25-2013, 05:42 AM   #5
gumeniuc
LQ Newbie
 
Registered: Aug 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-25-2013, 08:05 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
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.
 
Old 08-25-2013, 12:40 PM   #7
gumeniuc
LQ Newbie
 
Registered: Aug 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
I tried to install old kernel without patching it and used current working configuration. Got the same error with udevd.
 
Old 08-26-2013, 02:17 PM   #8
gumeniuc
LQ Newbie
 
Registered: Aug 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] rebuild kernel trinityforce Solaris / OpenSolaris 3 10-12-2011 06:13 PM
Rebuild Kernel - How/Why? kelleydv Linux - Newbie 4 07-04-2011 04:23 PM
kernel name after rebuild ekdya Debian 0 09-18-2006 04:59 PM
rebuild kernel error granny Linux - General 2 02-26-2004 08:42 PM
Rebuild kernel And then !!! left-hand Linux - Software 4 02-06-2004 09:59 AM


All times are GMT -5. The time now is 07:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration