From owner-freebsd-mips@freebsd.org Sun Dec 4 14:28:41 2016 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5E76C67092 for ; Sun, 4 Dec 2016 14:28:41 +0000 (UTC) (envelope-from jim@rfc1035.com) Received: from shaun.rfc1035.com (smtp.v6.rfc1035.com [IPv6:2001:4b10:100:7::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 795081854 for ; Sun, 4 Dec 2016 14:28:41 +0000 (UTC) (envelope-from jim@rfc1035.com) Received: from gromit.rfc1035.com (gromit.rfc1035.com [195.54.233.69]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by shaun.rfc1035.com (Postfix) with ESMTPSA id 751552420FFB for ; Sun, 4 Dec 2016 14:28:37 +0000 (UTC) From: Jim Reid Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Support for Ubiquiti PoE Message-Id: <33C2C0BC-B069-4EE8-9072-084B0ED0A6E4@rfc1035.com> Date: Sun, 4 Dec 2016 14:28:37 +0000 To: FreeBSD MIPS Mailing List Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2016 14:28:41 -0000 Hi. Does anyone know if this device is supported? It=E2=80=99s similar to the EdgeRouterLite (ERL) which does run FreeBSD. = The PoE has 2 WAN ethernet ports and 3 LAN ethernet ports. The ERL has 2 = WAN and 1 LAN ethernet ports. I found a bootable image for the ERL (FreeBSD 10.1) on the net and = installed it. Although this boots and runs OK, the kernel doesn=E2=80=99t = see the 3 LAN ports. I suspect they might be hanging off a second switch = (chipset?) on the motherboard and the kernel doesn=E2=80=99t know about = it or how to probe for it at boot time. FWIW Ubiquiti=E2=80=99s firmware is Linux. I=E2=80=99d prefer not to run = that or try to make sense of Linux kernel code and retro-fit that into = FreeBSD. Here=E2=80=99s what=E2=80=99s in dmesg.boot. The kernel =E2=80=9Csees=E2=80= =9D octe2 which presumably is the first of the LAN ethernet ports. But = it fails to do anything with it. Maybe a device driver needs tweaked to = recognise the slightly different chipset(s) for the PoE? Any ideas? octebus0: on ciu0 Interface 0 has 3 ports (RGMII) Warning: Enabling IPD when IPD already enabled. Warning: Enabling PKO when PKO already enabled. octe0: on octebus0 miibus0: on octe0 atphy0: PHY 7 on miibus0 atphy0: OUI 0x00c82e, model 0x0007, rev. 2 atphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, = 1000baseSX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto octe0: bpf attached octe0: Ethernet address: 80:2a:a8:8e:2c:23 octe1: on octebus0 miibus1: on octe1 atphy1: PHY 6 on miibus1 atphy1: OUI 0x00c82e, model 0x0007, rev. 2 atphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, = 1000baseSX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto octe1: bpf attached octe1: Ethernet address: 80:2a:a8:8e:2c:24 octe2: on octebus0 octe2: attaching PHYs failed octe2: bpf attached octe2: Ethernet address: 80:2a:a8:8e:2c:25=