Author Topic: Linux Kernel 2.6.14 Breaks Usbnet Xfer From Zaurus  (Read 24576 times)

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
Linux Kernel 2.6.14 Breaks Usbnet Xfer From Zaurus
« Reply #15 on: February 20, 2006, 03:10:06 pm »
pgas,

Thanks for the pointer; I missed those threads.  It works for me also.

It's not permanent though.  I was able to make it permanent by tweaking some of the /etc/hotplug scripts.

These are the changes I made, in case anyone wants to know:

/etc/hotplug/usbdnet.conf: add the line:
Code: [Select]
MTU=576/etc/hotplug/net.agent: Look for the 'ifconfig' line under the "register)" and "usbd0)" cases (line ~74):
Code: [Select]
ifconfig usbd0 $IP netmask $NETMASKChange to:
Code: [Select]
if [ -n "$MTU" ]; then SETMTU="mtu $MTU"; fi
ifconfig usbd0 $IP netmask $NETMASK $SETMTU
If you'd rather just hard-code it, you can just tack "mtu 576" onto the "ifconfig" line in net.agent.

------

This solution begs a couple of questions though:

  1. WHY is this needed?  The Z has worked fine with its default MTU of 1500 for ages.

  2. Will the smaller MTU result in slower transfers?

Perhaps I'll try to dig up the code for the "hard MTU" patch that I wrote about earlier; it seems even more likely to be the culprit now...

~ray

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
Linux Kernel 2.6.14 Breaks Usbnet Xfer From Zaurus
« Reply #16 on: February 20, 2006, 05:08:38 pm »
FYI: The above solution also seems to work if applied on the PC-side.  Apparently, the fix works so long as you apply the MTU=576 to either side of the connection.

Those of us running Fedora/Red Hat or distros derived from them probably have a /etc/sysconfig/network-scripts/ifcfg-usb0 script to set-up the Z's usbnet connection.  I added MTU=576 to mine (after disabling my edits, described above, from the Z) and transfers don't hang.

This strikes me as a "better" solution.  IMO, the problem lies in Linux 2.6.14+ (and sounds like a bug to me) and so the fix should reside there as well.

~ray

hvontres

  • Full Member
  • ***
  • Posts: 118
    • View Profile
    • http://
Linux Kernel 2.6.14 Breaks Usbnet Xfer From Zaurus
« Reply #17 on: March 29, 2006, 11:56:27 am »
Quote
FYI: The above solution also seems to work if applied on the PC-side.  Apparently, the fix works so long as you apply the MTU=576 to either side of the connection.

Those of us running Fedora/Red Hat or distros derived from them probably have a /etc/sysconfig/network-scripts/ifcfg-usb0 script to set-up the Z's usbnet connection.  I added MTU=576 to mine (after disabling my edits, described above, from the Z) and transfers don't hang.

This strikes me as a "better" solution.  IMO, the problem lies in Linux 2.6.14+ (and sounds like a bug to me) and so the fix should reside there as well.

~ray
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115489\"][{POST_SNAPBACK}][/a][/div]

Has anyone heard of a fix for this? I am trying to NAT my Z on FC4 and it seems I also need to set the MTU on my wireless card to 576 to get it to work....


Thanks,

Henry
[span style=\'font-size:10pt;line-height:100%\']Henry von Tresckow[/span]
--------------------------------------
SL-5600, OZ 3.5.4.2 (Hentges), Kernel 2.6.17 :)
1gb Kingston SD (ext2), 5Gb Seagate ST1 (3.03 Fw, fat32)
256 MB Kingston SD (ext2),256MB Viking CF,32MB CF (vfat),
homebuilt GPS unit (Based on RFMD RF 8000)

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
Linux Kernel 2.6.14 Breaks Usbnet Xfer From Zaurus
« Reply #18 on: March 30, 2006, 01:21:53 pm »
Quote
Has anyone heard of a fix for this? I am trying to NAT my Z on FC4 and it seems I also need to set the MTU on my wireless card to 576 to get it to work....

Thanks,

Henry
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120893\"][{POST_SNAPBACK}][/a][/div]
I haven't, but I haven't been looking either.  I haven't had a problem since installing the fix and I haven't had time to research it more.  I recently upgraded to 2.6.15-1.1833_FC4 with no trouble.

I thought this problem only effected usbnet though; I don't know why your wireless card is effected.  (I haven't used mine in a while; perhaps I'll have to check it.)

~ray