|
Hi,
I'm trying to build a driver that is to be loaded in a Suse 11 SP1 EC2 instance. So far I have been unable to find the EC2 kernel headers in the repositories. Only the headers for the default kernel are available. Does anyone know where or how I can find the EC2 kernel headers? Thanks. TREND MICRO EMAIL NOTICE The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system. |
|
Administrator
|
On 03/01/2012 04:24 PM, [hidden email] wrote:
> Hi, > > I'm trying to build a driver that is to be loaded in a Suse 11 SP1 EC2 instance. So far I have been unable to find the EC2 kernel headers in the repositories. Only the headers for the default kernel are available. > > Does anyone know where or how I can find the EC2 kernel headers? > Hi, have you tried the linux-kernel-headers pkg? I would expect that this one works for all kernel flavours. If not, please let us know. |
|
> > Hi,
> > > > I'm trying to build a driver that is to be loaded in a Suse 11 SP1 > EC2 instance. So far I have been unable to find the EC2 kernel headers > in the repositories. Only the headers for the default kernel are > available. > > > > Does anyone know where or how I can find the EC2 kernel headers? > > > Hi, > have you tried the linux-kernel-headers pkg? I would expect that this > one works for all kernel flavours. If not, please let us know. Yes, but the linux-kernel-headers package is only useful for building user space applications and not modules. To build modules I need access to the EC2 kernel source or a package that provides headers that can be used to build modules akin to the kernel-default-devel but for EC2. I think I found a way to get the EC2 sources. This involves retrieving the source package for kernel-ec2. This source package seems to contain all the patches necessary to make a vanilla kernel into an EC2 kernel. Once the kernel-ec2 source and its dependencies such kernel-source are installed we can then point the module/driver to the new patched kernel source and build against it. I'm still working on this so I don't know if it will work. Thanks for the help. TREND MICRO EMAIL NOTICE The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system. |
|
Hi Christoph,
Thank you for the email. I've added the list to this email's CC since the answer may be useful to somebody else. See below. > -----Original Message----- > > Hi Ricardo, > > On Thu, Mar 08, 2012 at 01:12:24PM +0100, bgeuken wrote: > > -------- Original Message -------- > > Subject: RE: [studio-users] Suse 11 sp1 kernel headers for EC2 > > Date: Wed, 7 Mar 2012 23:05:59 +0000 > > > > > > Hi, > > > > > > > > I'm trying to build a driver that is to be loaded in a Suse 11 > SP1 > > > EC2 instance. So far I have been unable to find the EC2 kernel > headers > > > in the repositories. Only the headers for the default kernel are > > > available. > > > > > > > > Does anyone know where or how I can find the EC2 kernel headers? > > > > > > > Hi, > > > have you tried the linux-kernel-headers pkg? I would expect that > this > > > one works for all kernel flavours. If not, please let us know. > > > > Yes, but the linux-kernel-headers package is only useful for building > user > > space applications and not modules. To build modules I need access to > the EC2 > > kernel source or a package that provides headers that can be used to > build > > modules akin to the kernel-default-devel but for EC2. > > > > I think I found a way to get the EC2 sources. This involves > retrieving the > > source package for kernel-ec2. This source package seems to contain > all the > > patches necessary to make a vanilla kernel into an EC2 kernel. Once > the > > kernel-ec2 source and its dependencies such kernel-source are > installed we > > can then point the module/driver to the new patched kernel source and > build > > against it. I'm still working on this so I don't know if it will > work. > > I guess the package you are looking for is: kernel-ec2-devel? > > > Best > Christoph Yes it is. The issue is that there's no package kernel-ec2-devel available for kernel 2.6.32.49-0.3-ec2 in the Amazon repositories and for that matter in any repository. But I think I found a solution: build my own kernel-ec2-devel package. For that I had to retrieve the kernel-ec2 and kernel-source source RPMs and build those. When all is said and done, a bunch of RPMs will be placed in /usr/src/package/RPMS/<arch> including the kernel-ec2-devel RPM. I've posted the steps in the AWS forum as an answer to someone that had the same problem than me. The link to the thread is: https://forums.aws.amazon.com/thread.jspa?threadID=74947 With kernel-ec2-devel RPM I am now able to build the driver against it. The driver was properly loaded into the EC2 instance and it's now being tested by QA. Note that the built kernel-source RPM is also needed. The one in the repository won't work due to a change in path because of a difference in version used (2.6.32.49-0.3 vs 2.6.32.49-0.3.1). So I think this solves my problem and hopefully it will be useful to someone else. I guess I'll find soon enough if I overlook something and did all this work for nothing. Cheers! /ricardo TREND MICRO EMAIL NOTICE The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system. |
|
Hi Ricardo,
On Mon, Mar 12, 2012 at 04:58:17PM +0000, [hidden email] wrote: > Thank you for the email. I've added the list to this email's CC since > the answer may be useful to somebody else. See below. [...] > > I guess the package you are looking for is: kernel-ec2-devel? > > > > > > Best > > Christoph > > Yes it is. The issue is that there's no package kernel-ec2-devel > available for kernel 2.6.32.49-0.3-ec2 in the Amazon repositories and > for that matter in any repository. kernel-ec2-devel indeed seems to be missing from the SP1 repositories in EC2. It's available from the SP2 repos (kernel-ec2-devel-3.0.13-0.27.1*.rpm) for SP2. Will make sure that the next SP1 kernel update also releases the kernel-ec2-devel to the SP1 channels. > But I think I found a solution: build my own kernel-ec2-devel package. > For that I had to retrieve the kernel-ec2 and kernel-source source > RPMs and build those. When all is said and done, a bunch of RPMs will > be placed in /usr/src/package/RPMS/<arch> including the > kernel-ec2-devel RPM. I've posted the steps in the AWS forum as an > answer to someone that had the same problem than me. The link to the > thread is: > > https://forums.aws.amazon.com/thread.jspa?threadID=74947 > > With kernel-ec2-devel RPM I am now able to build the driver against > it. The driver was properly loaded into the EC2 instance and it's now > being tested by QA. Note that the built kernel-source RPM is also > needed. The one in the repository won't work due to a change in path > because of a difference in version used (2.6.32.49-0.3 vs > 2.6.32.49-0.3.1). > > So I think this solves my problem and hopefully it will be useful to > someone else. I guess I'll find soon enough if I overlook something > and did all this work for nothing. Thanks! Best Christoph -- Christoph Thiel, Project Manager, SUSE Cloud Infrastructure SUSE LINUX Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) |
|
> -----Original Message----- > From: Christoph Thiel [mailto:[hidden email]] > > Hi Ricardo, > > On Mon, Mar 12, 2012 at 04:58:17PM +0000, > [hidden email] wrote: > > [...] > > > > I guess the package you are looking for is: kernel-ec2-devel? > > > > > > > > > Best > > > Christoph > > > > Yes it is. The issue is that there's no package kernel-ec2-devel > > available for kernel 2.6.32.49-0.3-ec2 in the Amazon repositories and > > for that matter in any repository. > > kernel-ec2-devel indeed seems to be missing from the SP1 repositories > in > EC2. It's available from the SP2 repos > (kernel-ec2-devel-3.0.13-0.27.1*.rpm) for SP2. > > Will make sure that the next SP1 kernel update also releases the > kernel-ec2-devel to the SP1 channels. > Thanks a lot Christoph. TREND MICRO EMAIL NOTICE The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system. |
| Powered by Nabble | Edit this page |
