Best way to patch the build system

Help with using MiniMyth's build system

Moderator: Pablo

Post Reply
jeffborg
Member
Posts: 24
Joined: Sun Sep 02, 2007 12:34 pm

Best way to patch the build system

Post by jeffborg » Wed Nov 03, 2010 4:05 am

Hi,

I bought a new ASUS AT5IONT-I mini itx board which works great, but the network never works after it's been initialised either via reboot or sleep , unless you pull the power cord and cold boot it again,

All the forums etc.. say use the r8168 driver from Realtek. Now there lies the problem, the source code for this driver is so similar to r8169 in the kernel and it's only supplied as a module, that isn't even a problem I worked out how to get it to build into the kernel itself under drivers/net/r8168, and got the kernel to build, I also figured out the gar system enough to get it to patch it and use my kernel config from ~/.minimyth

I will provide an update on this when I get home and try booting this kernel bzImage, it it works then my suspend/resume problem should be fixed.

I was just thinking while writing this email the fix might be as simple as changing the PCI id's in r8169 to not conflict with r8168 and hence this r8168 driver can be permanently patched into mini-myth. The current situation would require me to build minimyth everytime just for this frontend.
If I can trace the kernel bug down which I have been unable to do so as everyone says use the r8168 driver! then fixing in the kernel r8169 would be better.

Regards

Jeff

jeffborg
Member
Posts: 24
Joined: Sun Sep 02, 2007 12:34 pm

Re: Best way to patch the build system

Post by jeffborg » Wed Nov 03, 2010 7:10 am

Just confirming this actually works, I booted the system and it has the r8168 in the kernel now and all problems with the network have gone away. I am actually using the released image and only changed the kernel bzimage.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Best way to patch the build system

Post by Pablo » Thu Nov 04, 2010 1:54 am

Could you try 0.23.1-75b1 and let me now whether or not it fixes the problem?

75b1 includes the 2.6.36 Linux kernel, which claims to include some fixes to the r8169 that fix problems with r8168 hardware.

Like you, I would prefer the upstream kernel to support my hardware. However, if the the 2.6.36 kernel does not solve the problem, then we will need to blacklist hardware IDs that work with the r8168 driver but not the r8169 driver.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

jeffborg
Member
Posts: 24
Joined: Sun Sep 02, 2007 12:34 pm

Re: Best way to patch the build system

Post by jeffborg » Thu Nov 04, 2010 12:25 pm

No luck :cry:

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Best way to patch the build system

Post by Pablo » Thu Nov 04, 2010 6:05 pm

Too bad.

Could you give 0.23.1-75b2 a try? I have patched the kernel to include the r8168 driver, including patching the r8169 driver so that it should not claim 0x8168 realtek devices.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

jeffborg
Member
Posts: 24
Joined: Sun Sep 02, 2007 12:34 pm

Re: Best way to patch the build system

Post by jeffborg » Thu Nov 04, 2010 10:59 pm

Thanks Pablo :o

I am at work now but looking at the gar of it it's exactly the same thing I did, Can I ask did you make the kernel patch yourself or did you find it on the net. Only asking because I couldn't find any information anywhere and just figured it out by looking at other network card drivers in the kernel source, I ended up with the same patch anyway.

Jeff

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Best way to patch the build system

Post by Pablo » Thu Nov 04, 2010 11:20 pm

I did not find a patch on the net. Rather, I made the patch using the r8168 source tarball along with instructions on how to disable the r8169 driver from claiming 0x8168 devices. I used Realtek RTL8168 on LinuxMCE as my primary information source.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

jeffborg
Member
Posts: 24
Joined: Sun Sep 02, 2007 12:34 pm

Re: Best way to patch the build system

Post by jeffborg » Fri Nov 05, 2010 9:41 pm

Thanks, pretty much what I did, except I just removed the r8169 driver for my purposes,

Anyway it's working fine, Thanks

jeffborg
Member
Posts: 24
Joined: Sun Sep 02, 2007 12:34 pm

Minimhyth 76 beta 1

Post by jeffborg » Mon Jan 03, 2011 3:58 am

Hi,

I noticed in the changelog for 76b1 that the r8168 driver has been removed because some r8169 fixes went into the newer kernel. I just tested that version and it dosen't fix the problem with suspend / resume that the realtek sources fix.

Regards

Jeffrey

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Best way to patch the build system

Post by Pablo » Sun Jan 16, 2011 8:19 pm

I have added it back and it will be in 76b2.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply