Globalscale Dreamplug and 8.3 RELEASE

Ian Lepore freebsd at damnhippie.dyndns.org
Wed Aug 1 18:32:53 UTC 2012


On Thu, 2012-07-19 at 13:48 -0700, Dave Hayes wrote:
> Hello. :) I'm using FreeBSD 8.3 RELEASE and attempting to get this 
> running on my dreamplug. I've successfully gotten it to boot off of a 
> usb stick (after many adventures) but I've run into a problem. It seems 
> that mge1 is not found (the 2nd ethernet interface).
> 
> I really need this to work, so I did some digging on this list but it 
> seems there's a .dts file needed. FreeBSD 8 doesn't use dts files as far 
> as I can tell, though I could be horribly wrong there.
> 
> Can anyone point me to some patches which would get the 2nd ethernet 
> interface to work?

I finally found some time yesterday to play around with this (sorry to
take so long to respond).  I made some small progress towards getting
the second ethernet interface working, but didn't achieve complete
success.

The attached patch (for freebsd 8) gets things to the point where the
mge1 device is created at boot time.  You can manually configure the
interface and packets will be received, but no packets ever go out.  

I did some driver debugging to the point where I see the outgoing packet
buffers being handed to the hardware, and then shortly thereafter
TX-done interrupts happen, as if the packet was sent just fine.  But
either the bits never hit the wire, or the packets are malformed in some
way such that other boxes on my network can't see them arrive (using
tcpdump; I don't have any wire-level debugging tools).

I get the same results with a freshly-sync'd -current, so this isn't
specific to freebsd 8.

I have a feeling there's some simple little thing I'm overlooking
because I don't know the arm/mv code well.  Like the PHY needs to be
powered on or a clock enabled for it or something like that.  I don't
think I've got much more time to play with this right now, so I figured
I should post what I've learned along with the patches that get it this
far; maybe someone else can make some more progress.

-- Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dreamplug_8_mge1.diff
Type: text/x-patch
Size: 2716 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20120801/864bd700/dreamplug_8_mge1.bin


More information about the freebsd-arm mailing list