From owner-freebsd-mips@freebsd.org Fri Dec 11 15:08:44 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 7E1849D87A4 for ; Fri, 11 Dec 2015 15:08:44 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (220-135-115-6.HINET-IP.hinet.net [220.135.115.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns.kevlo.org", Issuer "ns.kevlo.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BD5BD1C1F for ; Fri, 11 Dec 2015 15:08:42 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (localhost [127.0.0.1]) by ns.kevlo.org (8.14.9/8.14.9) with ESMTP id tBBF8Pjb044484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 11 Dec 2015 23:08:25 +0800 (CST) (envelope-from kevlo@ns.kevlo.org) Received: (from kevlo@localhost) by ns.kevlo.org (8.14.9/8.14.9/Submit) id tBBF8OFo044483; Fri, 11 Dec 2015 23:08:24 +0800 (CST) (envelope-from kevlo) Date: Fri, 11 Dec 2015 23:08:24 +0800 From: Kevin Lo To: Ganbold Tsagaankhuu Cc: Stanislav Galabov , freebsd-mips@freebsd.org Subject: Re: Interest in support for Mediatek/Ralink SoCs? Message-ID: <20151211150824.GA44467@ns.kevlo.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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 15:08:44 -0000 On Fri, Dec 11, 2015 at 05:27:55PM +0800, Ganbold Tsagaankhuu wrote: > Stanislav, > > On Fri, Dec 11, 2015 at 4:25 PM, Stanislav Galabov > wrote: > > > 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’re all MIPS > > 24Kc based, so they should ‘just work’ 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’t > > 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 :-) > > > > Very nice. > > > > > > > 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… 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… > > > > So, anyone else interested in working on MT76xx support? > > > > I think some developers in this list already have MT7621 board so maybe > they have some interest and can test your changes. I have a FireWRT and I'm willing to test Stanislav's changes and give feedback. :) > Ganbold > > > > > > > Best wishes, > > Stanislav Kevin