From owner-freebsd-mips@freebsd.org Fri Dec 11 09:27:56 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 5ED1A9D8E5D for ; Fri, 11 Dec 2015 09:27:56 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-oi0-x22c.google.com (mail-oi0-x22c.google.com [IPv6:2607:f8b0:4003:c06::22c]) (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 2CBAF1D93; Fri, 11 Dec 2015 09:27:56 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: by oihr132 with SMTP id r132so391229oih.1; Fri, 11 Dec 2015 01:27:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1RzEsvm2A89c77SUCd2DqMtN8hvmAriAhqVyBaukJ+M=; b=wzH9+1am9RwC051uFo4l+akqUwamai0uEBxEbWCRxdxTT2oNRvatuI9hRQFKjF4E0g CxghIOCbCdvr2XWF2aZA5KcX4ucsFR3ZUNy6F/os36I0HTlFh6JDxTWGjUne1nTgJ0K+ aDb7089W/PX5ig0Bjy1T2bGyIjTS/jhCukozOaeYYYa4YsZFrIT2ZWAITDyyMiTZVvK+ 7C/FNazQgrkVYa6Os3gpp3ePOye06yYi9aVaECaaERe91KADy47KaLl019L7MThKHRXA 2iqm5AEDoZhR52HMKtna+84DoH+KDdE0LEzzOgGlL3NUru/dbuDK9YNL+i7GuRckPziA +Tnw== MIME-Version: 1.0 X-Received: by 10.202.208.83 with SMTP id h80mr13132436oig.74.1449826075365; Fri, 11 Dec 2015 01:27:55 -0800 (PST) Received: by 10.182.169.34 with HTTP; Fri, 11 Dec 2015 01:27:55 -0800 (PST) In-Reply-To: References: Date: Fri, 11 Dec 2015 17:27:55 +0800 Message-ID: Subject: Re: Interest in support for Mediatek/Ralink SoCs? From: Ganbold Tsagaankhuu To: Stanislav Galabov Cc: freebsd-mips@freebsd.org, kevlo@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 09:27:56 -0000 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=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 perspecti= ve > 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 difficulti= es > 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 :-) > 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), bu= t > 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? > I think some developers in this list already have MT7621 board so maybe they have some interest and can test your changes. Ganbold > > Best wishes, > Stanislav > _______________________________________________ > 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"