From owner-freebsd-mips@freebsd.org Sun Dec 11 21:10:20 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 D865EC72E4B for ; Sun, 11 Dec 2016 21:10:20 +0000 (UTC) (envelope-from ndorfman@gmail.com) Received: from mail-vk0-x232.google.com (mail-vk0-x232.google.com [IPv6:2607:f8b0:400c:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 92ECDA5F for ; Sun, 11 Dec 2016 21:10:20 +0000 (UTC) (envelope-from ndorfman@gmail.com) Received: by mail-vk0-x232.google.com with SMTP id p9so32303311vkd.3 for ; Sun, 11 Dec 2016 13:10:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=cdwbFl2aq29YKkPidXqg1pzvNngGgBkQAgGs1h5P9r8=; b=Ojv5sR3fro3Z+6j1Gc91Akx+gNChiSWi19z1loUz/OAMiOnHDw4w3hhhDBRuab0bXd 01MhSJD70ZtZHJwyZyAadnOvPkut+koZ7/3Eoo7a82eR5wD3Rz5uP36hxuoEuuCHGh/n zBy/Uh1nGPckyp4ZakMMtcvo+s5NmZkQ+d2TuCOpXKzkQtnHTwyuJ4I+p7F7aEoa85F1 ETttrITF/GhtFibILGOfqfEpjLF3uqJ+7iIWs3XBLvIk15Nnlq+ZuDotkcSYEg/v2D9D WPC5yT/Ctkr6kDAB3UJe9xt3C73jJ7gYObUvEydr7zmg9P50rM3h0u3GofnZCXVk2DME Kb7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=cdwbFl2aq29YKkPidXqg1pzvNngGgBkQAgGs1h5P9r8=; b=G0qBchNZl1pS/mTjGHdI+Fw+EjvTSdR0gd0bd0vCQiZEFsmbb5aBRvrmTqrA58GWU1 q+4vAhqNtTNWXnR+o2opg4spSgXDuC0v76cxVSZo/Va6w9sKLn5x54PN3W6VQDSLTlAt 8ZbvtbclU0u0UpulJv3vLWXeEmzkMpLR1qPXd2chP6gzm3IdSxh/tAeXQIIe4C7TeZnK ce3+EzGPPuD2mEUjNSdLnxiYxCjDbaj7uEKvA/yH9bwLG5AXPZ5vjI5tGlPTxwebYCh+ 8NudtRqumPcDCns2xmig9nqhmZtOCsxvtZIbiyX/XNJ+KBAW5UW0h7Pmo34xh2A83For J4xw== X-Gm-Message-State: AKaTC01UnpBRxYs7bFaJNHhrcAxkJ3kPVFg+Ltb2NAzgmkKyCc5bTN3TdvYTpZXnQJox31BEWl0dAqe/ABEnhg== X-Received: by 10.31.12.84 with SMTP id 81mr29493432vkm.113.1481490619674; Sun, 11 Dec 2016 13:10:19 -0800 (PST) MIME-Version: 1.0 Sender: ndorfman@gmail.com Received: by 10.103.42.71 with HTTP; Sun, 11 Dec 2016 13:10:19 -0800 (PST) In-Reply-To: <20161204124739.2327ab48@kan> References: <33C2C0BC-B069-4EE8-9072-084B0ED0A6E4@rfc1035.com> <20161204124739.2327ab48@kan> From: Nathan Dorfman Date: Sun, 11 Dec 2016 14:10:19 -0700 X-Google-Sender-Auth: omRdohsz-l3CnXwhDBzd8Hf6bEg Message-ID: Subject: Re: Support for Ubiquiti PoE To: Alexander Kabaev Cc: Jim Reid , FreeBSD MIPS Mailing List Content-Type: text/plain; charset=UTF-8 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, 11 Dec 2016 21:10:20 -0000 I don't know anything about the PoE model, but the ERL also comes with an FPGA and a binary blob, and it's only required for the promised million+ pps forwarding rate. That device works great under FreeBSD aside from missing out on that performance boost, so I would naively hope the PoE could be made to work as well. On Sun, Dec 4, 2016 at 10:47 AM, Alexander Kabaev wrote: > On Sun, 4 Dec 2016 14:28:37 +0000 > Jim Reid wrote: > >> Hi. Does anyone know if this device is supported? >> >> It's 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't see >> the 3 LAN ports. I suspect they might be hanging off a second switch >> (chipset?) on the motherboard and the kernel doesn't know about it or >> how to probe for it at boot time. >> >> FWIW Ubiquiti's firmware is Linux. I'd prefer not to run that or try >> to make sense of Linux kernel code and retro-fit that into FreeBSD. >> >> Here's what's in dmesg.boot. The kernel "sees" 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 >> _______________________________________________ >> freebsd-mips@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-mips >> To unsubscribe, send any mail to >> "freebsd-mips-unsubscribe@freebsd.org" > > IIRC, the switch is an FPGA based proprietary design and even on Linux > (really, EdgeOS), you need a binary blob to support it, so PoE is an > extremely poor choice for anything custom. I'd say stay away from POE > unless you plan to run Ubiquiti software on it. > > -- > Alexander Kabaev