From owner-freebsd-mips@freebsd.org Fri Dec 11 16:06:41 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 05EDD9D7354 for ; Fri, 11 Dec 2015 16:06:41 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 99C451F54 for ; Fri, 11 Dec 2015 16:06:40 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by wmec201 with SMTP id c201so76578274wme.1 for ; Fri, 11 Dec 2015 08:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=e7vcGqe+HSq5RGCiAtvwIfHs9p6iEFqQCJYyeatwd7s=; b=rxkRdQfCER5AGuBfwhNU0Laca3HJrKlbFwfrhYw+ArOHGHh/SHlWEPLqfzG8+1USyA nCXgTYXLm+z+HVJ+iESTVpH/vgbZyJft+3Y9yTsw/K7Z1xrGaiOdjYs0+Nlc7Tn+OCB8 h1mwSv3JfSebqSr9u9Mjx3mIv7Ch9aTDB1RkXCT5Oo/DOpGV5gLCZLOtkghMFNCARhVI GAZ45tZR6DVQVhAgaHvmNt8Kk51r+d66JN9EcdTY8l2UfOkyywz4gl+FsczQRRF4DBDX oCZ15BYAcCWcIMEtyG6dtEAUj4CkfyfdOOmrDPVFfcuo4kaVWLksAP4Q3MCnT2ZdwtV9 y4CQ== X-Received: by 10.28.0.149 with SMTP id 143mr7397608wma.48.1449849999144; Fri, 11 Dec 2015 08:06:39 -0800 (PST) Received: from ?IPv6:2001:67c:2154:ffff:d198:2b0c:9743:90ee? ([2001:67c:2154:ffff:d198:2b0c:9743:90ee]) by smtp.gmail.com with ESMTPSA id z10sm3961165wmg.4.2015.12.11.08.06.38 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Dec 2015 08:06:38 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: Interest in support for Mediatek/Ralink SoCs? From: Stanislav Galabov In-Reply-To: Date: Fri, 11 Dec 2015 18:06:37 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: freebsd-mips@freebsd.org 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 16:06:41 -0000 > On Dec 11, 2015, at 10:25, Stanislav Galabov = wrote: >=20 > Hi all, >=20 > 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? >=20 > 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. >=20 > 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. >=20 > 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 :-) >=20 > 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 >=20 > So, anyone else interested in working on MT76xx support? >=20 > Best wishes, > Stanislav Hi all, I can put a single core kernel (uImage) somewhere (where?) so you guys = can download it and see if it starts up on your boards=E2=80=A6 It won=E2=80=99t do too much at the moment, unless you have a SATA disk = with root filesystem (UFS) attached on an ASMedia 1061 on PCIe. :-) Also, for the guys that mentioned they had MT7621 based boards: how much = RAM do you guys have on your boards? I have 512MB on mine, but I=E2=80=99v= e currently hard-coded the kernel to use 256MB. Best wishes, Stanislav=