public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Alison Schofield <amsfield22@gmail.com>
To: courage angeh <courageangeh@gmail.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: [Outreachy kernel] commiting the .git/hooks/pre-commit and testing the changes on the updated e1000_main.c
Date: Tue, 26 Jul 2016 20:40:47 -0700	[thread overview]
Message-ID: <20160727034046.GA32248@d830.WORKGROUP> (raw)
In-Reply-To: <3c9a93d6-25e0-41ee-bb58-2b29a800200c@googlegroups.com>

On Tue, Jul 26, 2016 at 08:19:00PM -0700, courage angeh wrote:
> 
> 
> On Tuesday, July 26, 2016 at 8:46:17 PM UTC+1, Alison Schofield wrote:
> >
> > Hi Courage ? ;) 
> > I'll help you.  I'm an outreachy intern now. 
> >
> > We need to move this thread over to linux-newbie mailing list, since 
> > this outreachy list won't be active until the next application round. 
> > Please 'cc linux-newbie on posts as I've done above. 
> >
> > See comments in line below. 
> > alisons 
> >
> >
> > On Tue, Jul 26, 2016 at 11:06:10AM -0700, courage angeh wrote: 
> > > I am a newbie... just start recently preparing for the out reach program 
> > in 
> > > December.... i started at: https://kernelnewbies.org/Outreachyfirstpatch 
> > > but i have a number of difficulties: 
> > > 1. After editx... ,  recompiling my driver, installing the changes and 
> > > rebooting my linux system . I tested the changes but i didn't find the 
> > > message " I can modify the Linux kernel!".... i contacted the irc 
> > > channel:#kernel-outreachy but i seemed not to exist. 
> >
> > Let's go step by step. 
> >
> > Let's make sure you put in a printk that will get printed. 
> > Let's make sure you've compiled the module. 
> >
> > Confirm you compiled the module...do you see a .ko with new timestamp? 
> >
> > Can you sudo modprobe <drivername> ? 
> > Or sudo insmod drivername.ko ? 
> >
> > (at this point you don't need to keep rebooting the kernel.  We will 
> > modprobe add/remove your driver.) 

OOPS!!!  I just reaquainted myself with the first patch tutorial and
realize that you are on the step that tells you to modify a driver
that is running on your system. So - forget what I said about modprobe
and insmod.  You'll do that in the next step.  (It wouldn't hurt your
system, it just would fail with device busy.)

OK...see more below


> >
> > post what you have on the above items and I'll take a look. 
> >
> 
> Thanks for the reply. 
> I did run the command but no output. i got an idea but i don't know if its 
> right
> i actually edited but the diver file in a folder in my work directory  not 
> the driver file in my OS 
> kernel...:/home/courage/git/kernels/staging/drivers/net/ethernet/intel/e1000
> 
> 
> while the r other instances of this driver in my computer:
> /lib/modules/3.13.0-32-generic/kernel/drivers/net/ethernet/intel/e1000
> /lib/modules/4.7.0-rc6+/kernel/drivers/net/ethernet/intel/e1000
> /usr/src/linux-headers-3.13.0-32/drivers/net/ethernet/intel/e1000
> /usr/src/linux-headers-3.13.0-24/drivers/net/ethernet/intel/e1000

here's what i'd do on my system, see if you can track similar.

Find which ethernet modules sys is using:
$ lsmod | grep e1000
e1000e                233472  0 
ptp                    20480  1 e1000e

Go find it:

amsfield22@d830:~/git/kernels/iio/drivers/net/ethernet/intel$ ls
e1000   e100.c  i40e    igb    ixgb   ixgbevf  Makefile
e1000e  fm10k   i40evf  igbvf  ixgbe  Kconfig
amsfield22@d830:~/git/kernels/iio/drivers/net/ethernet/intel$ cd e1000e
amsfield22@d830:~/git/kernels/iio/drivers/net/ethernet/intel/e1000e$ ls
80003es2lan.c  defines.h  ich8lan.c  Makefile  nvm.c    phy.h
80003es2lan.h  e1000.h    ich8lan.h  manage.c  nvm.h    ptp.c
82571.c        ethtool.c  mac.c      manage.h  param.c  regs.h
82571.h        hw.h       mac.h      netdev.c  phy.c
amsfield22@d830:~/git/kernels/iio/drivers/net/ethernet/intel/e1000e$
grep probe *.c
netdev.c: * e1000_probe - Device Initialization Routine
netdev.c: * e1000_probe initializes an adapter identified by a pci_dev
structure.
netdev.c:static int e1000_probe(struct pci_dev *pdev, const struct
pci_device_id *ent)
netdev.c:	.probe    = e1000_probe,
amsfield22@d830:~/git/kernels/iio/drivers/net/ethernet/intel/e1000e$ 

I'd edit the probe function in netdev.c

Then follow tutorial instructions for rebuild/reboot.
Look in dmesg for your printk message.

Let me know if you get further along...

alisons




> 
>  
> 
> >
> > > 2. i went ahead to creating the .git/hooks/pre-commit but when i try 
> > > staging and commiting the file i get the respective errors: 
> > > 
> > > error: Invalid path '.git/hooks/pre-commit' 
> > > error: unable to add .git/hooks/pre-commit to index 
> > > fatal: adding files failed 
> > > 
> > > and 
> > > 
> > > error: pathspec 'First patch' did not match any file(s) known to git. 
> > > 
> > > please some one help me out??? 
> >
> > You are not submitted that pre-commit hooks file.  It lives in your 
> > git tree to poke you went you make a submittal. 
> >
> > > 
> > > 
> > > -- 
> > > You received this message because you are subscribed to the Google 
> > Groups "outreachy-kernel" group. 
> > > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to outreachy-kern...@googlegroups.com <javascript:>. 
> > > To post to this group, send email to outreach...@googlegroups.com 
> > <javascript:>. 
> > > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/outreachy-kernel/64c3385b-6ee7-44ac-bb17-e265d5f9ade8%40googlegroups.com. 
> >
> > > For more options, visit https://groups.google.com/d/optout. 
> >
> >
> 
> -- 
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/3c9a93d6-25e0-41ee-bb58-2b29a800200c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  parent reply	other threads:[~2016-07-27  3:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <64c3385b-6ee7-44ac-bb17-e265d5f9ade8@googlegroups.com>
2016-07-26 19:46 ` [Outreachy kernel] commiting the .git/hooks/pre-commit and testing the changes on the updated e1000_main.c Alison Schofield
     [not found]   ` <3c9a93d6-25e0-41ee-bb58-2b29a800200c@googlegroups.com>
2016-07-27  3:40     ` Alison Schofield [this message]
2016-07-27  3:49       ` Alison Schofield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160727034046.GA32248@d830.WORKGROUP \
    --to=amsfield22@gmail.com \
    --cc=courageangeh@gmail.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox