Author Topic: D945GCLF2 Dual-Core Intel Atom motherboard network problem  (Read 6572 times)

amirul

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
D945GCLF2 Dual-Core Intel Atom motherboard network problem
« on: September 18, 2008, 06:34:03 pm »
Set it up as a diskless MD. PXE boot ok, but somewhere along after that I get
r8169: eth0: link down. Google tells me this is a common problem. Found a likely fix at link below:
http://adam.rosi-kessel.org/weblog/2008/06/21/a-much-simpler-fix-for-the-r8169-link-down-problem
Seems to suggest updating to kernel 2.6.26-rc5. What do you think?

rodercot

  • Guest
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #1 on: September 18, 2008, 08:38:56 pm »
SEARCH THE WIKI. THERE WAS A POST ABOUT THIS EXACT ISSUE NOT A WEEK AGO.

 Dave

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4360
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #2 on: September 18, 2008, 10:33:14 pm »
Set it up as a diskless MD. PXE boot ok, but somewhere along after that I get
r8169: eth0: link down. Google tells me this is a common problem. Found a likely fix at link below:
http://adam.rosi-kessel.org/weblog/2008/06/21/a-much-simpler-fix-for-the-r8169-link-down-problem
Seems to suggest updating to kernel 2.6.26-rc5. What do you think?

See http://wiki.linuxmce.org/index.php/Realtek_8168

Andrew
Andy Herron,
Convergent Home Technologies Ltd
United Kingdom

Read My Blog; http://ellipticalcurve.com

Contact me for Smart Home consulting advice here;
@herron on Twitter, totallymaxed+consulting@gmail.com via email or PM me here.

Get a Dianemo S License: http://forum.linuxmce.org/index.php?topic=8880.0
iOS Orbiter: http://wiki.linuxmce.org/index.php/Dianemo_iOS_Orbiter
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

Sales & Info:
http://www.dianemo.co.uk

amirul

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #3 on: September 19, 2008, 03:52:25 am »
Thanks, followed the instructions at
http://wiki.linuxmce.org/index.php/Realtek_8168
still getting link down message. Now my other diskless MD with the single core Atom board, after pxe booting, doesn't get past r8169.
Swapped back in the original r8169.ko, the single core is fine. The only difference I see between the 2 is that the dual-core has gigabit ethernet. Anywhere in the init scripts I can perhaps tell it to do only 100Mps?
Maybe I'll stick a disk with the dual-core and do a MD install to see how that goes

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4360
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #4 on: September 19, 2008, 07:43:54 am »
Thanks, followed the instructions at
http://wiki.linuxmce.org/index.php/Realtek_8168
still getting link down message. Now my other diskless MD with the single core Atom board, after pxe booting, doesn't get past r8169.
Swapped back in the original r8169.ko, the single core is fine. The only difference I see between the 2 is that the dual-core has gigabit ethernet. Anywhere in the init scripts I can perhaps tell it to do only 100Mps?
Maybe I'll stick a disk with the dual-core and do a MD install to see how that goes

Looks like the D945GCLF2 uses the same NIC chip as the D945GCLF so it should work... double check you did the all the steps correctly.

Andrew
Andy Herron,
Convergent Home Technologies Ltd
United Kingdom

Read My Blog; http://ellipticalcurve.com

Contact me for Smart Home consulting advice here;
@herron on Twitter, totallymaxed+consulting@gmail.com via email or PM me here.

Get a Dianemo S License: http://forum.linuxmce.org/index.php?topic=8880.0
iOS Orbiter: http://wiki.linuxmce.org/index.php/Dianemo_iOS_Orbiter
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

Sales & Info:
http://www.dianemo.co.uk

amirul

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #5 on: September 19, 2008, 10:30:58 am »
Exactly what I thought Andrew. But the boot process didn't agree. However I've gotten further.
1. Download from Realtek source for r8168 and compile to r8168.ko
2. Rename r8169.ko to r8169.ko.old to get it out of the way
3. Add a line with r8168 into /etc/initramfs-tools-interactor/modules
4. Ran Diskless_BuildDefaultImage.sh to get new default initrd for tftboot
5. Reboot MD - and a new diskless media director is created, 96 in this case (yay!)
Then when the brand new MD is rebooted, get hit by the same r8169 showstopper. So I dig into 96/etc/initramfs-tools/modules and add line with r8168.
Do step 2 in 96/lib/modules/2.6.22-14-generic/kernel/drivers/net/
Next utter the following incantation
cd /usr/pluto/diskless/
chroot 96
cd /boot
mkinitramfs -o initrd.img-`uname -r` `uname -r`
exit
With fingers crossed, reboot
Success? No, greeted by ipconfig: eth0: SIOCGIFINDEX: No such device
I was so close....

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4360
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #6 on: September 19, 2008, 10:40:14 am »
Exactly what I thought Andrew. But the boot process didn't agree. However I've gotten further.
1. Download from Realtek source for r8168 and compile to r8168.ko
2. Rename r8169.ko to r8169.ko.old to get it out of the way
3. Add a line with r8168 into /etc/initramfs-tools-interactor/modules
4. Ran Diskless_BuildDefaultImage.sh to get new default initrd for tftboot
5. Reboot MD - and a new diskless media director is created, 96 in this case (yay!)
Then when the brand new MD is rebooted, get hit by the same r8169 showstopper. So I dig into 96/etc/initramfs-tools/modules and add line with r8168.
Do step 2 in 96/lib/modules/2.6.22-14-generic/kernel/drivers/net/
Next utter the following incantation
cd /usr/pluto/diskless/
chroot 96
cd /boot
mkinitramfs -o initrd.img-`uname -r` `uname -r`
exit
With fingers crossed, reboot
Success? No, greeted by ipconfig: eth0: SIOCGIFINDEX: No such device
I was so close....

Hmmm... ok give me a few hours and I'll check with one of my guys here and see if we can figure this out.

Andrew
Andy Herron,
Convergent Home Technologies Ltd
United Kingdom

Read My Blog; http://ellipticalcurve.com

Contact me for Smart Home consulting advice here;
@herron on Twitter, totallymaxed+consulting@gmail.com via email or PM me here.

Get a Dianemo S License: http://forum.linuxmce.org/index.php?topic=8880.0
iOS Orbiter: http://wiki.linuxmce.org/index.php/Dianemo_iOS_Orbiter
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

Sales & Info:
http://www.dianemo.co.uk

amirul

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #7 on: September 19, 2008, 04:40:24 pm »
Yay, I got it to fully boot! I don't know exactly what I did but it began with messing with update-initramfs -uv. The verbose output didn't seem to list r8168. So I tried depmod -a, fail. Tried depmod /lib/modules/.../net/r8168.ko then update-initramfs, it got it listed but booting still fail. Did depmod -a again, update-initramfs got it listed and boot success!! Going thru the config right now...

cyf4746

  • Veteran
  • ***
  • Posts: 63
    • View Profile
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #8 on: October 08, 2008, 11:49:49 am »
admirul... I got the same netboot problem with the D945GCLF2. Please help.

amirul

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #9 on: October 09, 2008, 02:10:41 pm »
cyf4746,
Did you try what I did in http://forum2.linuxmce.org/index.php?topic=6253.msg37717#msg37717 ?

Good luck,
Amirul

cyf4746

  • Veteran
  • ***
  • Posts: 63
    • View Profile
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #10 on: October 10, 2008, 11:51:34 am »
Dear Admirul.
I did followed your steps:
1. Download from Realtek source for r8168 and compile to r8168.ko
2. Rename r8169.ko to r8169.ko.old to get it out of the way
3. Add a line with r8168 into /etc/initramfs-tools-interactor/modules
4. Ran Diskless_BuildDefaultImage.sh to get new default initrd for tftboot
5. Reboot MD - and a new diskless media director is created, 96 in this case (yay!)

Up to step 5, reboot MD fail. No diskless media is created.
Please help....
 


amirul

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #11 on: October 10, 2008, 04:01:35 pm »
cyf4746,
At what point did the boot process fail?

Amirul

cyf4746

  • Veteran
  • ***
  • Posts: 63
    • View Profile
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #12 on: October 11, 2008, 05:35:03 am »
Dear Admirul,
The process stop at :
r8169: eth0: link down
Same as before I follow your steps.

Do I have to re-install the LMCE and start follow your steps from fresh?

Please help...

cyf4746

amirul

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #13 on: October 11, 2008, 08:23:58 am »
cyf4746,
Your setup is still using the r8169 network driver where it should be r8168. Maybe you can google how to build your default initrd to include r8168 not r8169. I've got another identical md to set up, I'll report how I got on with it.

Amirul
« Last Edit: October 11, 2008, 08:25:37 am by amirul »

cyf4746

  • Veteran
  • ***
  • Posts: 63
    • View Profile
Re: D945GCLF2 Dual-Core Intel Atom motherboard network problem
« Reply #14 on: October 14, 2008, 04:49:04 am »
Thanks Admirul...