* building a specific driver in kernel src tree @ 2011-05-09 5:49 sri 2011-05-09 6:02 ` Jeff Kirsher 0 siblings, 1 reply; 6+ messages in thread From: sri @ 2011-05-09 5:49 UTC (permalink / raw) To: kernelnewbies Hi, As part of learning, I have added few debug statements to the code at drivers/net/e1000/e1000_main.c (e1000_probe function). Now to compile this, am doing make -C /lib/modules/2.6.18-194.el5PAE/build M=`pwd` modules under drivers/net/e1000 dir. That is not compiling anything. But the same thing when I do in drivers/net/e1000e, it is compiling and creating e1000e.ko file. Any help on how to get e1000.ko? --Sri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110509/06265e7b/attachment.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* building a specific driver in kernel src tree 2011-05-09 5:49 building a specific driver in kernel src tree sri @ 2011-05-09 6:02 ` Jeff Kirsher 2011-05-09 6:05 ` sri 0 siblings, 1 reply; 6+ messages in thread From: Jeff Kirsher @ 2011-05-09 6:02 UTC (permalink / raw) To: kernelnewbies On Sun, May 8, 2011 at 22:49, sri <bskmohan@gmail.com> wrote: > Hi, > > As part of learning, I have added few debug statements to the code at > drivers/net/e1000/e1000_main.c (e1000_probe function). > Now to compile this, am doing make -C /lib/modules/2.6.18-194.el5PAE/build > M=`pwd` modules under drivers/net/e1000 dir. > > That is not compiling anything. But the same thing when I do in > drivers/net/e1000e, it is compiling and creating e1000e.ko file. > Check your kernel config file (which is .config) to make sure that CONFIG_E1000=m Then you should be able to run ` make drivers/net/e1000` to build the e1000 driver as a module > Any help on how to get e1000.ko? > > --Sri > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > -- Cheers, Jeff ^ permalink raw reply [flat|nested] 6+ messages in thread
* building a specific driver in kernel src tree 2011-05-09 6:02 ` Jeff Kirsher @ 2011-05-09 6:05 ` sri 2011-05-09 6:19 ` Jeff Kirsher [not found] ` <BANLkTim=tbUjLVWaVvnfXxXzJOAXD2epbg@mail.gmail.com> 0 siblings, 2 replies; 6+ messages in thread From: sri @ 2011-05-09 6:05 UTC (permalink / raw) To: kernelnewbies the config had it as CONFIG_E1000=y Does =y or =m make any difference? still not working. On Mon, May 9, 2011 at 11:32 AM, Jeff Kirsher <jeffrey.t.kirsher@intel.com>wrote: > On Sun, May 8, 2011 at 22:49, sri <bskmohan@gmail.com> wrote: > > Hi, > > > > As part of learning, I have added few debug statements to the code at > > drivers/net/e1000/e1000_main.c (e1000_probe function). > > Now to compile this, am doing make -C > /lib/modules/2.6.18-194.el5PAE/build > > M=`pwd` modules under drivers/net/e1000 dir. > > > > That is not compiling anything. But the same thing when I do in > > drivers/net/e1000e, it is compiling and creating e1000e.ko file. > > > > Check your kernel config file (which is .config) to make sure that > CONFIG_E1000=m > > Then you should be able to run ` make drivers/net/e1000` to build the > e1000 driver as a module > > > Any help on how to get e1000.ko? > > > > --Sri > > _______________________________________________ > > Kernelnewbies mailing list > > Kernelnewbies at kernelnewbies.org > > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > > > > > > > -- > Cheers, > Jeff > -- -- Krishna Mohan B -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110509/22e91dd3/attachment.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* building a specific driver in kernel src tree 2011-05-09 6:05 ` sri @ 2011-05-09 6:19 ` Jeff Kirsher 2011-05-09 6:20 ` sri [not found] ` <BANLkTim=tbUjLVWaVvnfXxXzJOAXD2epbg@mail.gmail.com> 1 sibling, 1 reply; 6+ messages in thread From: Jeff Kirsher @ 2011-05-09 6:19 UTC (permalink / raw) To: kernelnewbies On Sun, May 8, 2011 at 23:05, sri <bskmohan@gmail.com> wrote: > the config had it as CONFIG_E1000=y > Does =y or =m make any difference? > > still not working. > If you have CONFIG_E1000=y, it will build the e1000 driver into the kernel binary and not as a separate module. If you want the e1000 driver to build as a module, you will need to have CONFIG_E1000=m. > On Mon, May 9, 2011 at 11:32 AM, Jeff Kirsher <jeffrey.t.kirsher@intel.com> > wrote: >> >> On Sun, May 8, 2011 at 22:49, sri <bskmohan@gmail.com> wrote: >> > Hi, >> > >> > As part of learning, I have added few debug statements to the code at >> > drivers/net/e1000/e1000_main.c (e1000_probe function). >> > Now to compile this, am doing make -C >> > /lib/modules/2.6.18-194.el5PAE/build >> > M=`pwd` modules under drivers/net/e1000 dir. >> > >> > That is not compiling anything. But the same thing when I do in >> > drivers/net/e1000e, it is compiling and creating e1000e.ko file. >> > >> >> Check your kernel config file (which is .config) to make sure that >> CONFIG_E1000=m >> >> Then you should be able to run ` make drivers/net/e1000` to build the >> e1000 driver as a module >> >> > Any help on how to get e1000.ko? >> > >> > --Sri >> > _______________________________________________ >> > Kernelnewbies mailing list >> > Kernelnewbies at kernelnewbies.org >> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies >> > >> > >> >> >> >> -- >> Cheers, >> Jeff > > > > -- > -- > ?Krishna Mohan B > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > -- Cheers, Jeff ^ permalink raw reply [flat|nested] 6+ messages in thread
* building a specific driver in kernel src tree 2011-05-09 6:19 ` Jeff Kirsher @ 2011-05-09 6:20 ` sri 0 siblings, 0 replies; 6+ messages in thread From: sri @ 2011-05-09 6:20 UTC (permalink / raw) To: kernelnewbies Thank you. Am trying to compile the whole kernel again with CONFIG_E1000=m. On Mon, May 9, 2011 at 11:49 AM, Jeff Kirsher <jeffrey.t.kirsher@intel.com>wrote: > On Sun, May 8, 2011 at 23:05, sri <bskmohan@gmail.com> wrote: > > the config had it as CONFIG_E1000=y > > Does =y or =m make any difference? > > > > still not working. > > > > If you have CONFIG_E1000=y, it will build the e1000 driver into the > kernel binary and not as a separate module. If you want the e1000 > driver to build as a module, you will need to have CONFIG_E1000=m. > > > On Mon, May 9, 2011 at 11:32 AM, Jeff Kirsher < > jeffrey.t.kirsher at intel.com> > > wrote: > >> > >> On Sun, May 8, 2011 at 22:49, sri <bskmohan@gmail.com> wrote: > >> > Hi, > >> > > >> > As part of learning, I have added few debug statements to the code at > >> > drivers/net/e1000/e1000_main.c (e1000_probe function). > >> > Now to compile this, am doing make -C > >> > /lib/modules/2.6.18-194.el5PAE/build > >> > M=`pwd` modules under drivers/net/e1000 dir. > >> > > >> > That is not compiling anything. But the same thing when I do in > >> > drivers/net/e1000e, it is compiling and creating e1000e.ko file. > >> > > >> > >> Check your kernel config file (which is .config) to make sure that > >> CONFIG_E1000=m > >> > >> Then you should be able to run ` make drivers/net/e1000` to build the > >> e1000 driver as a module > >> > >> > Any help on how to get e1000.ko? > >> > > >> > --Sri > >> > _______________________________________________ > >> > Kernelnewbies mailing list > >> > Kernelnewbies at kernelnewbies.org > >> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > >> > > >> > > >> > >> > >> > >> -- > >> Cheers, > >> Jeff > > > > > > > > -- > > -- > > Krishna Mohan B > > > > _______________________________________________ > > Kernelnewbies mailing list > > Kernelnewbies at kernelnewbies.org > > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > > > > > > > -- > Cheers, > Jeff > -- -- Krishna Mohan B -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110509/95d898ff/attachment.html ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <BANLkTim=tbUjLVWaVvnfXxXzJOAXD2epbg@mail.gmail.com>]
* building a specific driver in kernel src tree [not found] ` <BANLkTim=tbUjLVWaVvnfXxXzJOAXD2epbg@mail.gmail.com> @ 2011-05-09 7:23 ` sri 0 siblings, 0 replies; 6+ messages in thread From: sri @ 2011-05-09 7:23 UTC (permalink / raw) To: kernelnewbies Actually am using Centos-5.5 (kernel-2.6.18-194.el5) and trying to overwrite the e1000 drives with those in kernel-2.6.22. After resolving few symbols at compile time, when trying to load the kernel with this change, the e1000 probe method is failing with the error e1000: 0000:01:00.0: e1000_probe: The EEPROM Checksum Is Not Valid e1000: probe of 0000:01:00.0 failed with error -5 e1000: 0000:01:00.1: e1000_probe: The EEPROM Checksum Is Not Valid e1000: probe of 0000:01:00.1 failed with error -5 Am trying to debug that. Any help/pointers on why this occurs and how to resolve it? --Sri On Mon, May 9, 2011 at 11:35 AM, sri <bskmohan@gmail.com> wrote: > the config had it as CONFIG_E1000=y > Does =y or =m make any difference? > > still not working. > > > On Mon, May 9, 2011 at 11:32 AM, Jeff Kirsher <jeffrey.t.kirsher@intel.com > > wrote: > >> On Sun, May 8, 2011 at 22:49, sri <bskmohan@gmail.com> wrote: >> > Hi, >> > >> > As part of learning, I have added few debug statements to the code at >> > drivers/net/e1000/e1000_main.c (e1000_probe function). >> > Now to compile this, am doing make -C >> /lib/modules/2.6.18-194.el5PAE/build >> > M=`pwd` modules under drivers/net/e1000 dir. >> > >> > That is not compiling anything. But the same thing when I do in >> > drivers/net/e1000e, it is compiling and creating e1000e.ko file. >> > >> >> Check your kernel config file (which is .config) to make sure that >> CONFIG_E1000=m >> >> Then you should be able to run ` make drivers/net/e1000` to build the >> e1000 driver as a module >> >> > Any help on how to get e1000.ko? >> > >> > --Sri >> > _______________________________________________ >> > Kernelnewbies mailing list >> > Kernelnewbies at kernelnewbies.org >> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies >> > >> > >> >> >> >> -- >> Cheers, >> Jeff >> > > > > -- > -- > Krishna Mohan B > -- -- Krishna Mohan B -- -- Krishna Mohan B -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110509/6ba7daa8/attachment-0001.html ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-05-09 7:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-09 5:49 building a specific driver in kernel src tree sri
2011-05-09 6:02 ` Jeff Kirsher
2011-05-09 6:05 ` sri
2011-05-09 6:19 ` Jeff Kirsher
2011-05-09 6:20 ` sri
[not found] ` <BANLkTim=tbUjLVWaVvnfXxXzJOAXD2epbg@mail.gmail.com>
2011-05-09 7:23 ` sri
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).