Author Topic: Troubles using R8168 fix to netboot  (Read 1292 times)

ivanp

  • Veteran
  • ***
  • Posts: 94
    • View Profile
Troubles using R8168 fix to netboot
« on: April 19, 2009, 05:02:20 pm »
I am using Intel D945GCLF2 MB for a diskless netboot MD. I know it uses 8111C NIC chipset so i tryied to load modules. I followed all the instrcutions from here http://wiki.linuxmce.org/index.php/R8168 but i cant get to patch it.
After
Code: [Select]
patch < r8168.diff I get error R8168.diff no such file or directory. Has anyone encoutenred this?I am 100% sure i followed the instructions from the wiki.
Thanks in advance for any replies.

Itsik

  • Guru
  • ****
  • Posts: 190
    • View Profile
Re: Troubles using R8168 fix to netboot
« Reply #1 on: April 19, 2009, 05:41:03 pm »
Try to use the instructions on this wiki instead http://wiki.linuxmce.org/index.php/ASUS_eee_box_b202_setup
It is a bit easier to follow and you can download a precompiled driver to make things easier.

Itsik

ivanp

  • Veteran
  • ***
  • Posts: 94
    • View Profile
Re: Troubles using R8168 fix to netboot
« Reply #2 on: April 19, 2009, 08:42:41 pm »
Try to use the instructions on this wiki instead http://wiki.linuxmce.org/index.php/ASUS_eee_box_b202_setup
It is a bit easier to follow and you can download a precompiled driver to make things easier.

Thanks for the info, tryied it also but it fails at the same point. One difference is that once i saw it failed bacuase it tryied using 8169 driver. I will try to re-do it from ht beginning. Its kinda strange it wont work.

Itsik

  • Guru
  • ****
  • Posts: 190
    • View Profile
Re: Troubles using R8168 fix to netboot
« Reply #3 on: April 19, 2009, 11:07:08 pm »
Make sure you rename r8169.ko, otherwise it'll try to use it and fail. One more common problem is forgetting to run depmod on the MD.

Itsik

ivanp

  • Veteran
  • ***
  • Posts: 94
    • View Profile
Re: Troubles using R8168 fix to netboot
« Reply #4 on: April 19, 2009, 11:37:59 pm »
Make sure you rename r8169.ko, otherwise it'll try to use it and fail. One more common problem is forgetting to run depmod on the MD.

I made sure i renamed r8619.ko to r8619.ko.not. After i type
Code: [Select]
update-initramfs -uv
i dont see r8168.ko on the list. should it be there?

Itsik

  • Guru
  • ****
  • Posts: 190
    • View Profile
Re: Troubles using R8168 fix to netboot
« Reply #5 on: April 20, 2009, 08:26:25 am »
Yes, near the top
If it's not there, redo the process. Probably a comma or something missing some where

Itsik

ivanp

  • Veteran
  • ***
  • Posts: 94
    • View Profile
Re: Troubles using R8168 fix to netboot
« Reply #6 on: April 20, 2009, 05:08:25 pm »
Lol, i cant beleive i cant do this, i am so close, just really cant put r8168 driver in diskless image. I tryied all methods but i cant get it into image.
I tryied this:
Code: [Select]
chroot <moon #>
mv /lib/modules/2.6.22-14-generic/kernel/drivers/net/r8169.ko /lib/modules/2.6.22-14-generic/kernel/drivers/net/r8169.ko.not
depmod -a /lib/modules/2.6.22-14-generic/kernel/drivers/net/r8168.ko
cd /boot
update-initramfs -uv
Nothing happened.

Then this:
Code: [Select]
cd /usr/pluto/diskless/
chroot <mediadirector-id>
depmod
cd /boot
mkinitramfs -o initrd.img-`uname -r` `uname -r`
exit

Also nothing happened.
I am going crazy here. I am a Linux newbie, but i know i am doing this the right way.  >:( :( >:( :(

alx9r

  • Guru
  • ****
  • Posts: 187
    • View Profile
Re: Troubles using R8168 fix to netboot
« Reply #7 on: April 23, 2009, 10:31:19 pm »
i dont see r8168.ko on the list. should it be there?

This response might be a little late...

If you're still battling with this, you might want to confirm that "r8168" was added to the modules file.
Code: [Select]
cat /usr/pluto/diskless/<moon #>/etc/initramfs-tools/modules
will output the contents of the modules file.  That file should contain the line
Code: [Select]
r8168

ivanp

  • Veteran
  • ***
  • Posts: 94
    • View Profile
Re: Troubles using R8168 fix to netboot
« Reply #8 on: April 23, 2009, 11:15:13 pm »
This response might be a little late...
If you're still battling with this, you might want to confirm that "r8168" was added to the modules file.
Code: [Select]
cat /usr/pluto/diskless/<moon #>/etc/initramfs-tools/moduleswill output the contents of the modules file.  That file should contain the line
Code: [Select]
r8168

Thanx Alx9r, and it aint too late. I will try it tomorrow and report back progress. I dont ahve that MD with me anymore but i will borrrow it again for testing.

fistfight

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Troubles using R8168 fix to netboot
« Reply #9 on: May 03, 2009, 06:36:51 pm »
I remember having to be in this directory...

Code: [Select]
/usr/src/linux-source-2.6.22/drivers/net
Prior to running

Code: [Select]
patch < r8168.diff

I then had to cd back to

Code: [Select]
/usr/src/linux-source-2.6.22/

To continue the steps in the WIKI
« Last Edit: May 03, 2009, 06:39:12 pm by fistfight »