Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 2015 14:51:48 -0500
From:      Karl Denninger <karl@denninger.net>
To:        freebsd-embedded@freebsd.org
Subject:   RPI ue[x] problems
Message-ID:  <55AEA2D4.8090507@denninger.net>

next in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms090605010306040108050401
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Raspberry Pi (not the "2"); configuration:

KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2015 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.=

FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.2-PRERELEASE #0 r285132: Sun Jul  5 05:23:06 UTC 2015
    root@releng1.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI-B arm=

FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
VT: init without driver.
CPU: ARM1176JZ-S rev 7 (ARM11J core)
 Supported features: ARM_ISA THUMB2 JAZELLE ARMv4 Security_Ext
 WB enabled LABT branch prediction enabled
  16KB/32B 4-way instruction cache
  16KB/32B 4-way write-back-locking-C data cache
real memory  =3D 503312384 (479 MB)
avail memory =3D 483221504 (460 MB)

=2E...


ue0: <USB Ethernet> on smsc0
ue0: Ethernet address: b8:27:eb:59:d3:3d
Starting Network: lo0 ue0.
ue0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
ue1: <USB Ethernet> on axe0
ue1: Ethernet address: 8c:ae:4c:f9:c1:8a
Starting Network: ue1.
ue1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00


Here's the (set of) problems:

root@IPGw:/home/karl # ifconfig ue0
ue0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
        options=3D80001<RXCSUM,LINKSTATE>
        ether b8:27:eb:59:d3:3d
        inet 192.168.1.200 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
root@IPGw:/home/karl #

Ok, so we auto-detected 100BaseTX.  So far so good.  Now set it explicitl=
y:

root@IPGw:/home/karl # ifconfig ue0 media 100BaseTX mediaopt full-duplex

root@IPGw:/home/karl # ifconfig ue0
ue0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
        options=3D80001<RXCSUM,LINKSTATE>
        ether b8:27:eb:59:d3:3d
        inet 192.168.1.200 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet 100baseTX <full-duplex>
        status: no carrier
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
root@IPGw:/home/karl #

Heh, where'd it go?  Hmmmm.... that's not so good; probably a good thing
I have a second interface and I'm on it eh?  Let's turn that back to
"auto"...

root@IPGw:/home/karl # ifconfig ue0
ue0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
        options=3D80001<RXCSUM,LINKSTATE>
        ether b8:27:eb:59:d3:3d
        inet 192.168.1.200 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

And it's ok again.

Well, sort of ok.  It flaps up and down occasionally, which isn't so
good and what got my attention with an attempt to pin it in the first
place.  Maybe once an hour it will flip down and back up, which drives
my SNMP monitor NUTS.

It's worse if you have a second adapter on one of the USB ports (and I do=
=2E)

If you DON'T set that one explicitly it will flap incessantly -- every
few minutes.  And...

ue1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
        options=3D80008<VLAN_MTU,LINKSTATE>
        ether 8c:ae:4c:f9:c1:8a
        inet 70.169.168.97 netmask 0xffffff80 broadcast 70.169.168.127
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
root@IPGw:/home/karl #

OK, so it's full duplex, right?  Yes, if you set it auto.  But if you
set it to 100baseTX and full-duplex on the options, the switch says no,
you got half-duplex.

root@IPGw:/home/karl # ifconfig ue1 media 100baseTX mediaopt full-duplex
root@IPGw:/home/karl #
root@IPGw:/home/karl # ifconfig ue1
ue1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
        options=3D80008<VLAN_MTU,LINKSTATE>
        ether 8c:ae:4c:f9:c1:8a
        inet 70.169.168.97 netmask 0xffffff80 broadcast 70.169.168.127
        media: Ethernet 100baseTX <full-duplex>
        status: active
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

We think it's full duplex but...



The switch says no, you got half-duplex.....

But at least it's stable and doesn't flap on an every-few-minutes basis
if you set the media type manually.... too bad I can't do that with the
ue0 interface without it failing to connect at all (to the same make and
model switch but on a different network, incidentally.)

Other than that this little $35 computer is remarkably stable running
FreeBSD-PRE and for what it is the performance isn't all that bad.  I/O
is slow as molasses but that's what you expect on an SD card. (Lack of a
supported packages repo makes for very long ways in building ports form
source, but thus far what I've built - including SVN so I can track
things -- has worked.)

Build is:

FreeBSD 10.2-PRERELEASE #0 r285132: Sun Jul  5 05:23:06 UTC 2015   =20
root@releng1.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI-B

Any ideas?

--=20
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

--------------ms090605010306040108050401
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSq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UEAxMTQ3VkYSBTeXN0ZW1zIExMQyBDQTEiMCAGCSqG
SIb3DQEJARYTQ3VkYSBTeXN0ZW1zIExMQyBDQQIBKTANBgkqhkiG9w0BAQEFAASCAgCb9KE4
8jrYZsBB+bjfQeUttyfbdvHSUemKo1k1WUT8/V53rRlFuBYMkaE5B2kUYr2Ca5McPomd+Bel
wqWEtYoTsodUfXhgeZ/hUVevQYDsAbUZ0Fe3GVsA7+AnlzUuky6UF3ULZyCsTrIjz4Epse7i
lSb8ep0yXjPIvqF2cwIdjh+dFGTTWkwiRYiH+7CIjCgRryG60tsPhBjK07I6BBRBVQGBcAo1
CM/WK8mVTX3JevuYG9lN1ssxwSTBS1wDOpmgtYAHOKlH+nolhKOT6SoPv8kYxGOzh5nmBRD1
8Dv4uKB1wFN6gnGvQIg1bWS5s2q8cexxfC9XZHDBByPtHoeVnu/SXsnPTdmM68AzT7vp6+HA
WdTVWlGCp8sFY/dyd2eLhZkR8T9J1PGOrBIwOi5cnJC4URc9hP8HN+IuJR7Mtz7XOW3DTdf8
PW6DcZeNUmLQivB7oLCK9fEvLn98W1WoUzWDpe14c0H0wH0MzSf8L4gW4+pORfPlhy6DKvw+
qOtg2GC64+qhJ3zW6O3JQ4RP0UcCW+dtLbEIOlPmbStkWIwPhKcpLtLvZgVP8lDH5lwR79QL
S2QdHTpZ3MW4lmua4T2Ix+VXFRr97Bc1dBrZjEkeZ1UX5AYRsMB3Tamd1KRNB7SGI6YEKt8C
AJLtNpLiEWSH1Jkksm4aA7N9DDvinwAAAAAAAA==
--------------ms090605010306040108050401--





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55AEA2D4.8090507>