Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] USB Ethernet register too late
@ 2010-05-24 22:01 Péter Stósz
  2010-05-25  6:53 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Péter Stósz @ 2010-05-24 22:01 UTC (permalink / raw)
  To: buildroot

Hi!

I have a custom SAM9261 board and USB Ethernet (Davicom  DM9601) adapter.
(Kernels 2.6.30 and 2.6.33.2)
What can I do, to DM9601 register well and state goes up, before the
Ethernet(/IP) configuration started?

...
usbcore: registered new interface driver dm9601
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
i2c /dev entries driver
TCP cubic registered
usb 1-1: new full speed USB device using at91_ohci and address 2
IP-Config: No network devices available.
Looking up port of RPC 100003/2 on 10.11.1.102
eth0: register 'dm9601' at usb-at91-1, Davicom DM9601 USB Ethernet,
00:10:13:50:ae:e6
...

Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100525/e9ce344d/attachment.html>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] USB Ethernet register too late
  2010-05-24 22:01 [Buildroot] USB Ethernet register too late Péter Stósz
@ 2010-05-25  6:53 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2010-05-25  6:53 UTC (permalink / raw)
  To: buildroot

>>>>> "P?ter" == P?ter St?sz <peter.stosz@mentat.hu> writes:

 P?ter> Hi!
 P?ter> I have a custom SAM9261 board and USB Ethernet (Davicom? DM9601) adapter.
 P?ter> (Kernels 2.6.30 and 2.6.33.2)
 P?ter> What can I do, to DM9601 register well and state goes up, before the Ethernet(/
 P?ter> IP) configuration started?

This has nothing to do with buildroot, questions like this belong on
netdev at vger.kernel.org. With that said, there's two things you can do:

- Either do dhcp/nfs mounting yourself in an initramfs
- Or tweak CONF_PRE_OPEN in net/ipv4/ipconfig.c to add a longer delay
  before it tries to open the device. You might need to change the
  msleep to a sslep like CONF_POST_OPEN if you make it too long.

This isn't anything specific to my dm9601 driver, but common for all
devices on async probed busses like USB.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-25  6:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-24 22:01 [Buildroot] USB Ethernet register too late Péter Stósz
2010-05-25  6:53 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox