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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-04-2014, 03:35 AM
|
#1
|
LQ Newbie
Registered: Apr 2014
Posts: 13
Rep: 
|
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
|
|
|
04-04-2014, 04:14 AM
|
#2
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,676
|
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
|
|
|
04-04-2014, 05:46 AM
|
#3
|
LQ Newbie
Registered: Apr 2014
Posts: 13
Original Poster
Rep: 
|
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
|
|
|
04-04-2014, 12:34 PM
|
#4
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,676
|
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
|
|
|
|
04-05-2014, 12:12 PM
|
#5
|
LQ Newbie
Registered: Apr 2014
Posts: 13
Original Poster
Rep: 
|
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
|
|
|
04-05-2014, 12:42 PM
|
#6
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,676
|
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
|
|
|
04-06-2014, 10:42 AM
|
#7
|
LQ Newbie
Registered: Apr 2014
Posts: 13
Original Poster
Rep: 
|
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 08:45 AM.
|
|
|
04-09-2014, 08:43 AM
|
#8
|
LQ Newbie
Registered: Apr 2014
Posts: 13
Original Poster
Rep: 
|
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
|
|
|
04-15-2014, 08:55 AM
|
#9
|
LQ Newbie
Registered: Apr 2014
Posts: 13
Original Poster
Rep: 
|
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 ?
|
|
|
08-17-2014, 11:15 PM
|
#10
|
LQ Newbie
Registered: Aug 2014
Posts: 1
Rep: 
|
some support for kernel 2.6.20 on arm
Quote:
Originally Posted by sargurus
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.
|
|
|
All times are GMT -5. The time now is 12:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|