LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2014, 02:35 AM   #1
sargurus
LQ Newbie
 
Registered: Apr 2014
Posts: 13

Rep: Reputation: Disabled
Need to upgrade 2.6.32 to 2.6.36


Hi,
How to upgrade cent os kernel version from 2.6.32-431.11.2.el6.i686 to 2.6.36-x.x.x.x.x ?.

Now I have cent os 6.5 version.

Thanks
Saravanan
 
Old 04-04-2014, 03:14 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the current kernel in the updates is
"kernel-2.6.32-431.11.2.el6.x86_64.rpm"

WHY do you NEED a minor version upgrade to 2.6.36

it is best to use what is in the CentOS updates
 
Old 04-04-2014, 04:46 AM   #3
sargurus
LQ Newbie
 
Registered: Apr 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi John,
The driver strips vlan tags by default on kernels < 2.6.36 in order to be able to process 802.1p packets (vlan tag 0).We would like to receive packets with no vlan tagging stripped for our application. I just want to see if this is fixed in later kernel versions.

Kindly see the below link
https://www.mail-archive.com/e1000-d.../msg08931.html

Thanks
Saravanan
 
Old 04-04-2014, 11:34 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
now we are talking about a driver install

that would have been nice to know in the first post !

and from your post
Quote:

If you are using kernel <( LESS THAN ) 2.6.36 edit kcompat.h and make sure you have:
#define HAVE_8021P_SUPPORT
 
Old 04-05-2014, 11:12 AM   #5
sargurus
LQ Newbie
 
Registered: Apr 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
Yes John,
We tryed below code in kcompat.h but its not working.I mean not able to receive vlan tagged packet in our application side from linux(Cent OS).

"If you are using kernel <( LESS THAN ) 2.6.36 edit kcompat.h and make sure you have:
#define HAVE_8021P_SUPPORT"

So we downloaded linux-2.6.36.1.tar and trying to build whole kernel in cent os 6.5 version.
Now i am in stuck with linux building,because i didnt aware of linux build process.

1. I extract the file tar -xvf linux-2.6.36.tar
2. cd linux-2.6.36 (copy the .config file from already present linux to building linux)
3. make all
4. Did make bzimage,got error "No rule to make target".

Can you please Let me know the procedure to build the Linux-kernel 2.6.36.

Thanks a lot.

Regards
Saravanan
 
Old 04-05-2014, 11:42 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you might want to read the instructions on kernel org
building a kernel is A LOT !!! more complicated then just typing in 3 commands

you need to do A LOT !!! of work
you need to also apply the cent bug and security patches
the kernel modules that you need
and set it up for your system

it is a VERY big task

also have a look at the centos wiki
http://wiki.centos.org/HowTos/Custom_Kernel
[it is a year old but still good


-- from fedora
https://fedoraproject.org/wiki/Building_a_custom_kernel
 
Old 04-06-2014, 09:42 AM   #7
sargurus
LQ Newbie
 
Registered: Apr 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi John,
I downloaded e1000e driver and changed the macro(#define HAVE_8021P_SUPPORT )in kcompat.h. I build the e1000e driver code,build was successful.when i execute "modinfo e1000e | grep version" i got updated version and when i execute "ethtool -i eth0" which giving 2.3.2 older version instead of newer version which i patch changes..

Whatever i did e1000e driver building process is correct ? why its not affected?
why ethtool taking older version instead of newer version ?

Note:Samething i tried for ixgbe driver ,this also not helpful.

Thats why we are not able to receive vlan tagged packet in our application from linux(centos),so we thought to build 2.6.36 kernel version.

Thank you .

I Need to learn more on linux & Its interesting

So this post will be closed now.


Thanks
Saravanan

Last edited by sargurus; 04-09-2014 at 07:45 AM.
 
Old 04-09-2014, 07:43 AM   #8
sargurus
LQ Newbie
 
Registered: Apr 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi John,
I got vlan tagged packet in my application.
I edited in kcompat.h
-#if (RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,1))
+#define HAVE_8021P_SUPPORT
-#endif

After build e1000e driver,i missed 3 commands and clearly explained in README file.
I executed like this:
1.make install
2.modprobe e1000e
3.rmmode e1000e
4.modprobe e1000e

I forgot to execute 2-4 commands.so e1000e driver is not updated properly.so vlan tagged packets not came in my application.
after that i execute 4 commands continuously then i got updated in kernel then i can able to get vlan tagged packets.

Thanks a lot.

Thanks
Saravanan
 
Old 04-15-2014, 07:55 AM   #9
sargurus
LQ Newbie
 
Registered: Apr 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi John,
I'm opening the ticket again,for driver clarification.

Vlan tagged packet is coming in our applicaiton,Even i didn't any change in kcompat.h.
Just build the e1000e-3.0.4 driver.
Kindly see the below steps.
1. make install
2. modprobe e1000e
3. rmmod e1000e
4. modprobe e1000e

https://www.mail-archive.com/e1000-d.../msg08931.html

Above link helped us to follow this procedure to get vlan tagged packet

-#if (RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,1))
+#define HAVE_8021P_SUPPORT
-#endif
we are getting vlan tagged packet either above change & not above change.

However didnt change anything in kcompat.h also,vlan tagged packet is coming right.
is the e1000e-3.0.4 driver version fixed this issue ?
 
Old 08-17-2014, 10:15 PM   #10
mayarik
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
Question some support for kernel 2.6.20 on arm

Quote:
Originally Posted by sargurus View Post
I got vlan tagged packet in my application.
I edited in kcompat.h
-#if (RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,1))
+#define HAVE_8021P_SUPPORT
-#endif
Following the question of support on packets being untagged,

On the sender's side, I have a capture of udp packets containing one vlan tag inside them. My system is an P2P RF link. The air interface driver transfers the bits of all packets without a problem, then calls netif_rx() with type 0x8100 (VLAN tag) having 4 more bits before the IP portion. When looking above the interface with a tcpdump, I get virtually nothing out. Of course, it is in comparison to a capture of UDP packets that don't have the vlan tag inside them, they're all good. I don't see any support for 8021P though there is a support for 8021Q, ... and no kcompat.h in this kernel.

Please advise.
 
  


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
Upgrade and dist-upgrade problem reinstall aMule end packare libupnp6 anunix Debian 2 05-12-2012 01:36 PM
Upgrade and dist-upgrade problem reinstall aMule end packare libupnp6 anunix Debian 1 05-12-2012 09:06 AM
How to upgrade kernel in rhel6/centos6 with internet. manually download and upgrade. Gil@LQ Linux - Kernel 3 03-12-2012 05:07 PM
Partial Upgrade of BIG NEW KDE UPGRADE (debsig-verify related?) linuxStudent11 Debian 1 04-27-2011 12:29 PM
Will 'aptitude upgrade or dist-upgrade' downgrade manually installed deb package? Akhran Debian 3 03-14-2006 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:30 AM.

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
Open Source Consulting | Domain Registration