From owner-freebsd-mips@freebsd.org Fri Dec 11 08:25:36 2015 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 C997B9D617C for ; Fri, 11 Dec 2015 08:25:36 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (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 6BE6B1CC0 for ; Fri, 11 Dec 2015 08:25:36 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22e.google.com with SMTP id c17so2397611wmd.1 for ; Fri, 11 Dec 2015 00:25:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; bh=aWGBA37VUzkUwVMT5IjByCubdTjmihfhtQqvzqTPpek=; b=jhHBqhVi3lSOVSHfpsQrG7Pq0zbC8iPMfvQzoltCCwpZ0f9po9aZFHVfO+r6DdeGDl gy6EE6czZYEHyJVM+tXoxucckmSSbAe8Pvr96rsroKiJANq0A7RX1oN1xRZyfO62AGM8 16DESq8ytHkcVyZH3U6msfPYq7Q/5i/36EOTHinOo5dnGUnusgn0vs2V9co4LHC3pNLs /igg/MelnGFPrBCn471Gfleo8yoKGPz29YeSviCGwkblFSLTBUaasltfXYU2WZzEbHlZ ecWfwaokirjutGAghJbLuvYeu+xWVVWmtsaSCmyo1N4aURGevmgzf39FmKBnNNpwLHuA RVEQ== X-Received: by 10.28.95.193 with SMTP id t184mr4187567wmb.7.1449822334817; Fri, 11 Dec 2015 00:25:34 -0800 (PST) Received: from macbookpro-894a.hsmt ([193.178.153.131]) by smtp.gmail.com with ESMTPSA id f11sm2334810wmd.7.2015.12.11.00.25.33 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Dec 2015 00:25:34 -0800 (PST) From: Stanislav Galabov Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Interest in support for Mediatek/Ralink SoCs? Date: Fri, 11 Dec 2015 10:25:32 +0200 Message-Id: To: freebsd-mips@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) X-Mailer: Apple Mail (2.3094) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Dec 2015 08:25:36 -0000 Hi all, Is there any interest on bringing support for Ralink/Mediatek more = up-to-date SoCs, such as MT7620, MT7628, MT7688 and, notably, MT7621 to = FreeBSD? The first three are pretty standard in terms of CPU - they=E2=80=99re = all MIPS 24Kc based, so they should =E2=80=98just work=E2=80=99 as far = as booting FreeBSD goes. The last one and, in my opinion, the most interesting one, the MT7621 is = a MIPS 1004Kc - dual core with dual hardware threads per core. It also = introduces new (to FreeBSD/mips) concepts such as the global interrupt = controller (gic) for example and could be interesting from this = perspective as well as it could pave the way for MIPS 1074K support as = well. I am currently able to boot MT7621 single core to multi user. I can = start the rest of the cores and threads as well, but am still having = difficulties figuring out the proper cache and TLB management so it = basically doesn=E2=80=99t support SMP at the moment. I have also done some work on PCI support for the MT7621 and am = currently using userland on a SATA drive, connected to an ASMedia 1061 = on the PCI bus, which seems to be quite stable as well, although the = code is nowhere near ready to show to other people :-) The support for all the peripherals, however, is not something I would = be able to take on all by myself, due to lack of spare time. There is some support in the tree for older Ralink systems (in = sys/mips/rt305x and in sys/dev/rt for the ethernet/switch peripheral), = but it needs work. Also, the WiFi drivers do not seem to support the chipsets embedded in = or used with MT76xx, so this will be a major challenge it seems, = especially given the lack of documentation=E2=80=A6 however, a piece of = good news is that OpenWRT supports most/all of these chipsets, so at = least we would have a frame of reference=E2=80=A6 So, anyone else interested in working on MT76xx support? Best wishes, Stanislav=