From owner-freebsd-mips@freebsd.org Mon Dec 14 22:43: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 CD825A44B94 for ; Mon, 14 Dec 2015 22:43:56 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-qk0-x236.google.com (mail-qk0-x236.google.com [IPv6:2607:f8b0:400d:c09::236]) (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 8FA1619CF for ; Mon, 14 Dec 2015 22:43:56 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by qkfb125 with SMTP id b125so160187717qkf.2 for ; Mon, 14 Dec 2015 14:43:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ERJA9h6FWmtCq4fPw8SsUWFmeKsr8b5oBMz/1yo2VKE=; b=15jC69usYDAUhcmOvkHZ9txMM7wBGyE3QuYPcKasfHuGAXx1r2+KgktZ5CeScIDMQt yfPsuZlDP3LTUFsEq84rbCFLo/7v8jb5frloL8cKb6iPkXnpjiTyoWzEVnL7H2AXYJCa HV3ZwRM5htgeKjgLuJ21KZdG2UqnC3xlZmGwFEOTLH8VBEEUHJY8L/1k5CLPcSmhB3/v hsYem5gpR6Bl0PqTWtPnewwddUXt7oiUclD8/Zc63R05nop0mjsSmBp52/h1BaAf9jOf JwEpQy927TbZcHUXiFfvYVfdXVhIaN49CshVO2SDV1q72Oih4szOUfW7S7lBjscOYHsp 5sbg== 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:date :message-id:subject:from:to:cc:content-type; bh=ERJA9h6FWmtCq4fPw8SsUWFmeKsr8b5oBMz/1yo2VKE=; b=KjsbHkfiUphJVxRF1eMoLkgx1YwU5i1EgqVKI2y0sOEo3QU3r4r4erVvXCUR4dr57h MPvBnEnVhe36IHshe9ymBMFup2+78lDcwIo38fQ9VY9g1Ebp+YOcl8WD+s34JyI7P7vB Jh8+fF19jxpFSC9MT7ax3V1rCuJoAUtU1WxME1lLaLdyw/9tAljr5O13V/IBkO+Ssg8+ XC053xno+Fuu1oBB/B33fLBO6XQ8qO72Pn67DUosqQFBnItYhQPxvAWWtqF5MraZOnvh 38JdSLmDS/jKFREmFMIaYUlyiDIXC6aP5MTNHdectHlhxndncvyd7YXAF0UrS+Ca0OtI KkkQ== X-Gm-Message-State: ALoCoQlOI1iuhJG2tM+4pLX++jlFE/JuI6vWNvPNzGFLQeeC17zDAaLdjzxD/Pit2JtfCd8q7EeYGiNt0glw93x8m+SWn74IdQ== MIME-Version: 1.0 X-Received: by 10.13.226.137 with SMTP id l131mr7706863ywe.239.1450133035596; Mon, 14 Dec 2015 14:43:55 -0800 (PST) Sender: ray@ddteam.net Received: by 10.37.116.66 with HTTP; Mon, 14 Dec 2015 14:43:55 -0800 (PST) In-Reply-To: <6CE6533C-D7CE-4B17-9530-3559A4F5D0CD@gmail.com> References: <435B59EC-2C17-48FC-AED1-337DBE6829CB@gmail.com> <6CE6533C-D7CE-4B17-9530-3559A4F5D0CD@gmail.com> Date: Tue, 15 Dec 2015 00:43:55 +0200 X-Google-Sender-Auth: 3rK7nIcMg2MtTdsMTHPDOpeGfPU Message-ID: Subject: Re: Interest in support for Mediatek/Ralink SoCs? From: Aleksandr Rybalko To: Stanislav Galabov Cc: "freebsd-mips@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: Mon, 14 Dec 2015 22:43:57 -0000 Hi all! Stanislav, what board are you use? Is it have flash with size to only have uboot in it? Thanks for great work! WBW 2015-12-12 10:14 GMT+02:00 Stanislav Galabov : > Sorry, the previous version was compiled with SMP support, which is far > from working right now=E2=80=A6 please use the following one for now if i= nterested: > https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=3D0 > > Stanislav > > > On Dec 12, 2015, at 09:57, Stanislav Galabov wrote= : > > > > Hi all, > > > > I=E2=80=99ve sent the files to Adrian and will be cleaning things next = week so > we can start off with MT7621 support a little cleaner. > > > > In the meantime, if anyone wants to try to boot a kernel on their MT762= 1 > boards, I=E2=80=99ve put one here: > > https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=3D0 > > > > It=E2=80=99s a uImage, so you=E2=80=99d have to get it on the board in = u-boot via tftp > and do a bootm on it. > > For example (from the u-boot prompt): > > tftp 0x80800000 kernel.uboot; bootm 0x80800000 > > > > There currently is no file system within the kernel. It expects to find > a filesystem on ada0, attached to ASMedia 1061 on the pci bus (in case yo= ur > boards have SATA ports). So if you don=E2=80=99t have SATA you won=E2=80= =99t have a > filesystem, but at least we=E2=80=99ll know whether it boots on your boar= ds or not. > > > > Please let me know if it boots on your boards. > > > > Best wishes, > > Stanislav > > > >> On Dec 11, 2015, at 18:40, Stanislav Galabov > wrote: > >> > >> Now this is something I was hoping for :-) > >> > >> I=E2=80=99ll tidy things up next week and I=E2=80=99ll send the initia= l dirty patches > over to you only (for now) if it=E2=80=99s ok with you? > >> I=E2=80=99ve hacked on top of the rt305x support that=E2=80=99s in the= tree for now, > but in a mt762x directory and there are still a lot of leftovers from > rt305x, but at least the thing boots and goes multiuser albeit on a singl= e > core right now :-) > >> > >> Please let me know if this works for you. > >> > >> Best wishes, > >> Stanislav > >> > >>> On Dec 11, 2015, at 18:36, Adrian Chadd > wrote: > >>> > >>> hi, > >>> > >>> holy hell yes. > >>> > >>> Can you please put all of your patches up online? I acquired some > >>> MT7621 hardware to do a port, and I see you've beaten me to it. I'd > >>> like to get it up and working so I can work on the 11ac wifi support. > >>> > >>> (I don't mind how dirty or what you think the work is - it's going to > >>> be great, and I'll tidy it up and get it into -HEAD.) > >>> > >>> Thanks! > >>> > >>> > >>> -a > >>> > >>> > >>> On 11 December 2015 at 08:06, Stanislav Galabov > wrote: > >>>> > >>>>> On Dec 11, 2015, at 10:25, 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=99= re all > MIPS 24Kc based, so they should =E2=80=98just work=E2=80=99 as far as boo= ting 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 interru= pt > 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 > 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), 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 g= ood 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 > >>>> > >>>> 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 d= isk 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=99ve > currently hard-coded the kernel to use 256MB. > >>>> > >>>> 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" > >> > > > > _______________________________________________ > 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" > --=20 WBW ------- Rybalko Aleksandr aka Alex RAY D-Link.ua