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 From owner-freebsd-mips@freebsd.org Tue Dec 15 00:15: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 DBC45A44215 for ; Tue, 15 Dec 2015 00:15:55 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 65829132C for ; Tue, 15 Dec 2015 00:15:55 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id n186so142481357wmn.1 for ; Mon, 14 Dec 2015 16:15:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=K4A0a+mGQScIWYfr5+5ajulurvc0tveFOfF7/9bxUZI=; b=jMTb1Z9gk01SoAKE8+f3Jc1sMXvGIUO2ij1IfmuqB5wwR5L9NwxGvcE0/bRnytd4Ho XQIY4QcUAUmquiwgCiartrq7GsYYq8t9dQheNuWIMm97LxHGHay471YPEkN3h+YO6PjP 8CV4Xez6pm3dG0JeZ2hOG31s+rYfueXOF8wbvUsBpy0lhy8OmOH8TBqmvExijotNue07 UqQyET64BsZBxigR9FCpN5gHxPLKSUfAYQqO53b2GdDfuk5MU1Y00a4JqLZn3jqV6nG9 adnfhB/18/JW21LTUImq/KfV/eyFcu/nGS0+SQk0YTG5YwoRPfbe4V1hOjS4oNkFbJmM xYYg== X-Received: by 10.194.88.102 with SMTP id bf6mr45349781wjb.129.1450138553929; Mon, 14 Dec 2015 16:15:53 -0800 (PST) Received: from [10.0.50.3] ([94.155.70.123]) by smtp.gmail.com with ESMTPSA id dc2sm11838356wjc.13.2015.12.14.16.15.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Dec 2015 16:15:53 -0800 (PST) References: <435B59EC-2C17-48FC-AED1-337DBE6829CB@gmail.com> <6CE6533C-D7CE-4B17-9530-3559A4F5D0CD@gmail.com> Mime-Version: 1.0 (1.0) In-Reply-To: Message-Id: Cc: "freebsd-mips@freebsd.org" X-Mailer: iPad Mail (12A405) From: Stanislav Galabov Subject: Re: Interest in support for Mediatek/Ralink SoCs? Date: Tue, 15 Dec 2015 02:15:53 +0200 To: Aleksandr Rybalko 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: Tue, 15 Dec 2015 00:15:56 -0000 Hi Aleksandr, My board is really similar to the WiTi board. Main differences are that mine= only has 1 SATA port wired off of the ASMedia 1061 instead of 2 and has an e= xtra PCIe slot with only USB wired to it for 3G modem support and a SIM card= slot to go with it. It also has 512MB RAM and 16MB SPI flash. Best wishes, Stanislav > On 15.12.2015 =D0=B3., at 0:43, Aleksandr Rybalko wrote: >=20 > Hi all! >=20 > Stanislav, what board are you use? > Is it have flash with size to only have uboot in it? >=20 > Thanks for great work! > WBW >=20 > 2015-12-12 10:14 GMT+02:00 Stanislav Galabov : >> Sorry, the previous version was compiled with SMP support, which is far f= rom working right now=E2=80=A6 please use the following one for now if inter= ested: >> https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=3D0 >>=20 >> Stanislav >>=20 >> > 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 w= eek 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 your= boards have SATA ports). So if you don=E2=80=99t have SATA you won=E2=80=99= t have a filesystem, but at least we=E2=80=99ll know whether it boots on you= r boards or not. >> > >> > Please let me know if it boots on your boards. >> > >> > Best wishes, >> > Stanislav >> > >> >> On Dec 11, 2015, at 18:40, Stanislav Galabov wrot= e: >> >> >> >> 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 leftov= ers from rt305x, but at least the thing boots and goes multiuser albeit on a= single core right now :-) >> >> >> >> Please let me know if this works for you. >> >> >> >> Best wishes, >> >> Stanislav >> >> >> >>> On Dec 11, 2015, at 18:36, Adrian Chadd wrot= e: >> >>> >> >>> 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 w= rote: >> >>>> >> >>>>> On Dec 11, 2015, at 10:25, Stanislav Galabov w= rote: >> >>>>> >> >>>>> Hi all, >> >>>>> >> >>>>> Is there any interest on bringing support for Ralink/Mediatek more u= p-to-date SoCs, such as MT7620, MT7628, MT7688 and, notably, MT7621 to FreeB= SD? >> >>>>> >> >>>>> 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= booting FreeBSD goes. >> >>>>> The last one and, in my opinion, the most interesting one, the MT76= 21 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 cont= roller (gic) for example and could be interesting from this perspective as w= ell 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 diffic= ulties figuring out the proper cache and TLB management so it basically does= n=E2=80=99t support SMP at the moment. >> >>>>> >> >>>>> I have also done some work on PCI support for the MT7621 and am cur= rently using userland on a SATA drive, connected to an ASMedia 1061 on the P= CI 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 wo= uld 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 ne= eds 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, especia= lly given the lack of documentation=E2=80=A6 however, a piece of good news i= s that OpenWRT supports most/all of these chipsets, so at least we would hav= e 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 gu= ys 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 m= uch RAM do you guys have on your boards? I have 512MB on mine, but I=E2=80=99= ve 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.o= rg" >> >> >> > >>=20 >> _______________________________________________ >> 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 >=20 >=20 > --=20 > WBW > ------- > Rybalko Aleksandr > aka Alex RAY > D-Link.ua From owner-freebsd-mips@freebsd.org Tue Dec 15 08:31:38 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 58588A4420C for ; Tue, 15 Dec 2015 08:31:38 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0FD511DF3 for ; Tue, 15 Dec 2015 08:31:38 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id CABB7153416; Tue, 15 Dec 2015 09:31:32 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KfaAs60bWNit; Tue, 15 Dec 2015 09:31:10 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:2db1:e7f6:6a6b:bde2] (unknown [IPv6:2001:4cb8:3:1:2db1:e7f6:6a6b:bde2]) by smtp.digiware.nl (Postfix) with ESMTP id 9A8B715340D; Tue, 15 Dec 2015 09:31:10 +0100 (CET) Subject: Re: Interest in support for Mediatek/Ralink SoCs? To: Stanislav Galabov , Aleksandr Rybalko References: <435B59EC-2C17-48FC-AED1-337DBE6829CB@gmail.com> <6CE6533C-D7CE-4B17-9530-3559A4F5D0CD@gmail.com> Cc: "freebsd-mips@freebsd.org" From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <566FCFCB.90800@digiware.nl> Date: Tue, 15 Dec 2015 09:31:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: Tue, 15 Dec 2015 08:31:38 -0000 On 15-12-2015 01:15, Stanislav Galabov wrote: > Hi Aleksandr, > > My board is really similar to the WiTi board. Main differences are that mine only has 1 SATA port wired off of the ASMedia 1061 instead of 2 and has an extra PCIe slot with only USB wired to it for 3G modem support and a SIM card slot to go with it. It also has 512MB RAM and 16MB SPI flash. Hi Stanislav, Got the WiTi board here... I haven't tried in the expectation that you were going to make a version that runs in 256Mb. But If you'de like me to try the 512 version as well. Just let me know --WjW >> On 15.12.2015 г., at 0:43, Aleksandr Rybalko wrote: >> >> 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… please use the following one for now if interested: >>> https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=0 >>> >>> Stanislav >>> >>>> On Dec 12, 2015, at 09:57, Stanislav Galabov wrote: >>>> >>>> Hi all, >>>> >>>> I’ve 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 MT7621 boards, I’ve put one here: >>>> https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=0 >>>> >>>> It’s a uImage, so you’d 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 your boards have SATA ports). So if you don’t have SATA you won’t have a filesystem, but at least we’ll know whether it boots on your boards 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’ll tidy things up next week and I’ll send the initial dirty patches over to you only (for now) if it’s ok with you? >>>>> I’ve hacked on top of the rt305x support that’s 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 single 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’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 :-) >>>>>>>> >>>>>>>> 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? >>>>>>>> >>>>>>>> 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… >>>>>>> It won’t 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’ve 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" >> >> >> >> -- >> WBW >> ------- >> Rybalko Aleksandr >> aka Alex RAY >> D-Link.ua > _______________________________________________ > 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" > From owner-freebsd-mips@freebsd.org Tue Dec 15 08:33:12 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 4F3F7A443BE for ; Tue, 15 Dec 2015 08:33:12 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 DD9311F94 for ; Tue, 15 Dec 2015 08:33:11 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id n186so153605719wmn.1 for ; Tue, 15 Dec 2015 00:33:11 -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=k0kU2pnuK0STL9DWitu9/Ee16d0MqGztLfzEaz9Dzlc=; b=ZQGfXayMO5iOBDtTyeI5rff5gJI+lic05L0haJHY6rVY9uzBEhnhFaCcRCcKVaMiBu aWoE3/jbNmdEzMyTOsjiJwQ3ZndJahiFFy+teSSEhnoyVp4L9No+pysDs0Zy2wMryI16 FtQkR4LSVHWqwWL3zhheW2HeaZ+g9gNaZFtRPP2aekVwV+Xdn5o6o3aXaLFCoUvl1gB2 Gh1fiq43SU1hIHwn7+foBVnSFLGy13BcfyhuoVrtD0eIKps7IJAiXVLJOUDQNkhppyK2 itmUhYrdChuSym/wx0mwRLtPgW2ZrNSC4YO+vzFun6ZVB82UuPH9rXuCXRTyIOzmjm0R MaqQ== X-Received: by 10.28.227.198 with SMTP id a189mr3041506wmh.74.1450168390396; Tue, 15 Dec 2015 00:33:10 -0800 (PST) Received: from ?IPv6:2001:67c:2154:ffff:81e7:b3d6:b11d:2b20? ([2001:67c:2154:ffff:81e7:b3d6:b11d:2b20]) by smtp.gmail.com with ESMTPSA id i142sm284602wmf.13.2015.12.15.00.33.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Dec 2015 00:33:09 -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: <566FCFCB.90800@digiware.nl> Date: Tue, 15 Dec 2015 10:33:09 +0200 Cc: Stanislav Galabov , Aleksandr Rybalko , "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <435B59EC-2C17-48FC-AED1-337DBE6829CB@gmail.com> <6CE6533C-D7CE-4B17-9530-3559A4F5D0CD@gmail.com> <566FCFCB.90800@digiware.nl> To: Willem Jan Withagen 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: Tue, 15 Dec 2015 08:33:12 -0000 Hi Willem, I have actually limited the RAM to 256MB in the version I published=E2=80=A6= I may have forgotten to let you guys know=E2=80=A6 :-) So you could try with the published version if you wanted=E2=80=A6 Best wishes, Stanislav > On Dec 15, 2015, at 10:31, Willem Jan Withagen = wrote: >=20 > On 15-12-2015 01:15, Stanislav Galabov wrote: >> Hi Aleksandr, >>=20 >> My board is really similar to the WiTi board. Main differences are = that mine only has 1 SATA port wired off of the ASMedia 1061 instead of = 2 and has an extra PCIe slot with only USB wired to it for 3G modem = support and a SIM card slot to go with it. It also has 512MB RAM and = 16MB SPI flash. >=20 > Hi Stanislav, >=20 > Got the WiTi board here... > I haven't tried in the expectation that you were going to make a = version > that runs in 256Mb. But If you'de like me to try the 512 version as = well. > Just let me know >=20 > --WjW >=20 >>> On 15.12.2015 =D0=B3., at 0:43, Aleksandr Rybalko = wrote: >>>=20 >>> Hi all! >>>=20 >>> Stanislav, what board are you use? >>> Is it have flash with size to only have uboot in it? >>>=20 >>> Thanks for great work! >>> WBW >>>=20 >>> 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 interested: >>>> https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=3D0 >>>>=20 >>>> Stanislav >>>>=20 >>>>> On Dec 12, 2015, at 09:57, Stanislav Galabov = wrote: >>>>>=20 >>>>> Hi all, >>>>>=20 >>>>> 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. >>>>>=20 >>>>> In the meantime, if anyone wants to try to boot a kernel on their = MT7621 boards, I=E2=80=99ve put one here: >>>>> https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=3D0 >>>>>=20 >>>>> 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 >>>>>=20 >>>>> 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 your 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 boards or not. >>>>>=20 >>>>> Please let me know if it boots on your boards. >>>>>=20 >>>>> Best wishes, >>>>> Stanislav >>>>>=20 >>>>>> On Dec 11, 2015, at 18:40, Stanislav Galabov = wrote: >>>>>>=20 >>>>>> Now this is something I was hoping for :-) >>>>>>=20 >>>>>> I=E2=80=99ll tidy things up next week and I=E2=80=99ll send the = initial 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 single core right now :-) >>>>>>=20 >>>>>> Please let me know if this works for you. >>>>>>=20 >>>>>> Best wishes, >>>>>> Stanislav >>>>>>=20 >>>>>>> On Dec 11, 2015, at 18:36, Adrian Chadd = wrote: >>>>>>>=20 >>>>>>> hi, >>>>>>>=20 >>>>>>> holy hell yes. >>>>>>>=20 >>>>>>> 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. >>>>>>>=20 >>>>>>> (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.) >>>>>>>=20 >>>>>>> Thanks! >>>>>>>=20 >>>>>>>=20 >>>>>>> -a >>>>>>>=20 >>>>>>>=20 >>>>>>> On 11 December 2015 at 08:06, Stanislav Galabov = wrote: >>>>>>>>=20 >>>>>>>>> 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 >>>>>>>>=20 >>>>>>>> Hi all, >>>>>>>>=20 >>>>>>>> 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. :-) >>>>>>>>=20 >>>>>>>> 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. >>>>>>>>=20 >>>>>>>> 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" >>>>>>=20 >>>>>=20 >>>>=20 >>>> _______________________________________________ >>>> 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 >>>=20 >>>=20 >>> -- >>> WBW >>> ------- >>> Rybalko Aleksandr >>> aka Alex RAY >>> D-Link.ua >> _______________________________________________ >> 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 From owner-freebsd-mips@freebsd.org Tue Dec 15 08:38:01 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 3BA0FA44710 for ; Tue, 15 Dec 2015 08:38:01 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 00F55122E for ; Tue, 15 Dec 2015 08:38:00 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 462D9153413; Tue, 15 Dec 2015 09:37:52 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0d8XVfD1DrgU; Tue, 15 Dec 2015 09:37:51 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:2db1:e7f6:6a6b:bde2] (unknown [IPv6:2001:4cb8:3:1:2db1:e7f6:6a6b:bde2]) by smtp.digiware.nl (Postfix) with ESMTP id 963B7153408; Tue, 15 Dec 2015 09:37:51 +0100 (CET) Subject: Re: Interest in support for Mediatek/Ralink SoCs? To: Stanislav Galabov References: <435B59EC-2C17-48FC-AED1-337DBE6829CB@gmail.com> <6CE6533C-D7CE-4B17-9530-3559A4F5D0CD@gmail.com> <566FCFCB.90800@digiware.nl> Cc: Aleksandr Rybalko , "freebsd-mips@freebsd.org" From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <566FD15D.6090004@digiware.nl> Date: Tue, 15 Dec 2015 09:37:49 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: Tue, 15 Dec 2015 08:38:01 -0000 On 15-12-2015 09:33, Stanislav Galabov wrote: > Hi Willem, > > I have actually limited the RAM to 256MB in the version I published… I may have forgotten to let you guys know… :-) > So you could try with the published version if you wanted… Right, I'll go and dig out the serial attachement stuff. Haven't use them since I blew the serial port on my WR-xxxx device. :( --WjW From owner-freebsd-mips@freebsd.org Tue Dec 15 10:09:32 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 2BE04A444E6 for ; Tue, 15 Dec 2015 10:09:32 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-lf0-x22e.google.com (mail-lf0-x22e.google.com [IPv6:2a00:1450:4010:c07::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 96250181B for ; Tue, 15 Dec 2015 10:09:31 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-lf0-x22e.google.com with SMTP id y184so2773688lfc.1 for ; Tue, 15 Dec 2015 02:09:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=BOAOQL5BxLHSb9MC12d8jAfDMKEwenrl9prSnA5c3Eg=; b=HeTnGFF/4aazKIXJkhbNd7GETSHVF746xCxixSltENS9+xDBUNF4ZoiqsFct4U2d8B njAkTwzPljSe6DEppsu2jKCaQdFAaw0YaorxKlmgSvgWqLRHhI8iohe35P43Vb/6wTem e+/ztcsLY1vg6km6FTtQOUJ2YpSpZz5vYRWdRMxBxYdZs4wzmRRbmjneT/AdBlRyuuld NgJAZirIZ9Cs3WBmjuBXYjn2EDT6EKqSXMdRPYNxi6WS5U0SFNl3fYuvkKLvXAETyabd 38WyTkosoLDx8LQlfGGkJ0yGWXqPVFSyk7QUT9KaZCKlt86rVaiJe5Xa0XQmktaJRScZ ArRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=BOAOQL5BxLHSb9MC12d8jAfDMKEwenrl9prSnA5c3Eg=; b=Gkj34KhHWPcn4uEfI9BUDWWHxb8cHFwG/SYun0RbRWaHynL5PgEBibZqPhjcpTiW2I l493hsQuIAXq1RWyJyf1H8th6WU9UE2pk3z44ga3lv/zuGizZ73iCx/cIRmQt0tQupzu PTnRx+HQmMrkirKty9ARnEQG7tOAcUX7r/2MrHRufC2haolEKYu+VJDxJSneXwqTFXM2 zBlY2jyIBAMlmjr5qQifTAeUfq+OAo+hDcsgscEpaEmRBl/xkeEC47FrcRCjvcYaxIig urzx3Nzq6dLx33k5dwMf66WNhMkuUspB5rHK4HcSg3aXneNFCkmcY6r7kASSpyVl1vO5 iYxA== X-Gm-Message-State: ALoCoQmaTnprBxD9LHbFpmDv0Ta34tqC9ry014wnTIttT+kzHpUbaPi0u0F/KRWpeAUrfhhwHQmAqUhsJie9IMpUAqvZagtSyw== X-Received: by 10.25.138.68 with SMTP id m65mr15203324lfd.69.1450174169635; Tue, 15 Dec 2015 02:09:29 -0800 (PST) Received: from raynote.ddteam.net (0-211-52-37.pool.ukrtel.net. [37.52.211.0]) by smtp.gmail.com with ESMTPSA id xt2sm88302lbb.47.2015.12.15.02.09.28 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Dec 2015 02:09:28 -0800 (PST) Date: Tue, 15 Dec 2015 12:09:00 +0200 From: Aleksandr Rybalko To: Stanislav Galabov Cc: Aleksandr Rybalko , "freebsd-mips@freebsd.org" Subject: Re: Interest in support for Mediatek/Ralink SoCs? Message-Id: <20151215120900.2c71533747f45dd86692b7ca@ddteam.net> In-Reply-To: References: <435B59EC-2C17-48FC-AED1-337DBE6829CB@gmail.com> <6CE6533C-D7CE-4B17-9530-3559A4F5D0CD@gmail.com> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Tue, 15 Dec 2015 10:09:32 -0000 On Tue, 15 Dec 2015 02:15:53 +0200 Stanislav Galabov wrote: > Hi Aleksandr, > > My board is really similar to the WiTi board. Main differences are that mine only has 1 SATA port wired off of the ASMedia 1061 instead of 2 and has an extra PCIe slot with only USB wired to it for 3G modem support and a SIM card slot to go with it. It also has 512MB RAM and 16MB SPI flash. Ohhh, 16MB of flash. You can put everything into it :)))) Thanks for info. > > Best wishes, > Stanislav > > > On 15.12.2015 г., at 0:43, Aleksandr Rybalko wrote: > > > > 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… please use the following one for now if interested: > >> https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=0 > >> > >> Stanislav > >> > >> > On Dec 12, 2015, at 09:57, Stanislav Galabov wrote: > >> > > >> > Hi all, > >> > > >> > I’ve 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 MT7621 boards, I’ve put one here: > >> > https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=0 > >> > > >> > It’s a uImage, so you’d 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 your boards have SATA ports). So if you don’t have SATA you won’t have a filesystem, but at least we’ll know whether it boots on your boards 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’ll tidy things up next week and I’ll send the initial dirty patches over to you only (for now) if it’s ok with you? > >> >> I’ve hacked on top of the rt305x support that’s 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 single 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’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 :-) > >> >>>>> > >> >>>>> 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? > >> >>>>> > >> >>>>> 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… > >> >>>> It won’t 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’ve 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" > > > > > > > > -- > > WBW > > ------- > > Rybalko Aleksandr > > aka Alex RAY > > D-Link.ua -- Aleksandr Rybalko From owner-freebsd-mips@freebsd.org Tue Dec 15 14:58:34 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 E4E3AA4496D for ; Tue, 15 Dec 2015 14:58:34 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 848101636 for ; Tue, 15 Dec 2015 14:58:34 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id p66so114137824wmp.1 for ; Tue, 15 Dec 2015 06:58:34 -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=wjQTOhp1jZbCDRtfk4uyJit7s5qQZBHnkVt3wxhiAVo=; b=QIW9a6NlvUBQGSDfzxZWBpy9xhg4pEGRoUCLE74hM+7OPzFpIt9rpSz6a4L8f2TMto TQ2EIX0w0jHHwPjknGVpCQEA/+t3BCfx25gC9p385sLLMpiVfcbEeEoHeEI6gfshBFdJ rRKdObIBAlhD/nQynZ0HY6H6lxwHfOYbDjE6Q72b2ZAMdZvYJ59mgP9nQkXbnvqiBOQs pz4ntF4c9I5qNi23lDndyEkyx+cYTejiIxAlzU2/cY0s8IO/43QG8IPlN4bBhXkbHtKe 44dAQZNTyRUu18nUwjCsXPzP5ho8X/NIhXaoVVOFKqaGjvflSXhZBxzFGkkou86qqWDi 31vg== X-Received: by 10.28.182.11 with SMTP id g11mr5726313wmf.42.1450191513063; Tue, 15 Dec 2015 06:58:33 -0800 (PST) Received: from ?IPv6:2001:67c:2154:ffff:81e7:b3d6:b11d:2b20? ([2001:67c:2154:ffff:81e7:b3d6:b11d:2b20]) by smtp.gmail.com with ESMTPSA id a63sm21232794wmc.5.2015.12.15.06.58.31 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Dec 2015 06:58:32 -0800 (PST) From: Stanislav Galabov Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Initial support for MT7620 Date: Tue, 15 Dec 2015 16:58:31 +0200 Message-Id: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> 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: Tue, 15 Dec 2015 14:58:35 -0000 Hi all, After talking with Adrian off list we decided to start work on = Mediatek/Ralink more recent SoCs with MT7620 instead of MT7621 = (Adrian=E2=80=99s board has MT7620 so it=E2=80=99s easier for him to = help with the WiFi parts this way). I=E2=80=99ve done a bit today and I got an MT7620A based board to boot = to multi user with root filesystem on USB stick. If anyone is interested in the patch, it can be found here: https://www.dropbox.com/s/e880eutzvlms8h7/mt7620_patch.diff?dl=3D0 For the moment there is no support for sys/dev/rt (the Ethernet = controller) with MT7620. This is going to be left for later. Next I am planning to work on SPI and PCI so that Adrian can start = working on WiFi once I=E2=80=99m done with the SPI part. I would appreciate it if someone would jump in and help with the if_rt = support - this way we=E2=80=99ll have something working quicker = hopefully :-) I would also appreciate feedback for the attached patch... Best wishes, Stanislav= From owner-freebsd-mips@freebsd.org Tue Dec 15 16:11:54 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 818E4A4886B for ; Tue, 15 Dec 2015 16:11:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (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 5398217CC for ; Tue, 15 Dec 2015 16:11:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x235.google.com with SMTP id to18so17160691igc.0 for ; Tue, 15 Dec 2015 08:11:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=2lBEYfYN2KlJmoX4PoTIN1slKIO+VR/bWRH4kl5RCx8=; b=kfR0c8u14ra7Lwa+BZaP64RKg737vs3ORmnQBCG4mW1x21Gp1hTvLNITXQ4+44ztJ7 hXAULk0hjNGXjy6V6vIR6tHNzpkwqz6efGTLOuHFGXXyLcfJnS25yttxqzWMR6f30DD5 M5cK6hHf/n8JNsK2F19dm6DLWCV5bG4y9qBEcBjnWH7Xr3EZQfb1tgANPI92nTErzzPf t8tdU5ZrFv7QEQFHIlVvPZ3naM/z+iaSkOTEEi4fY9eSH0V+n41/k4phmbvGEUZYcpCM f+V5QSNgBXEhI1NAk1uV+Z4tq7r+G+QxlTzrljoOk2knO/vI92Pk0M+hWJo6tkF2hrsw XaCg== MIME-Version: 1.0 X-Received: by 10.50.66.144 with SMTP id f16mr4625500igt.22.1450195913718; Tue, 15 Dec 2015 08:11:53 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.121.202 with HTTP; Tue, 15 Dec 2015 08:11:53 -0800 (PST) In-Reply-To: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> Date: Tue, 15 Dec 2015 08:11:53 -0800 X-Google-Sender-Auth: 0f4YjnRdoS_YVhEFHKCSGPkYLzI Message-ID: Subject: Re: Initial support for MT7620 From: Adrian Chadd To: Stanislav Galabov Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Tue, 15 Dec 2015 16:11:54 -0000 Woo! So my vague-ish plan is to fold the mt7621 support into the rt305x directory and break out the CPU family support into like what we have for the atheros mips family. The diff between MT7621 and RT305x was pretty small and I bet we could roll it all in pretty easily. I don't have any MT7621 hardware yet. What do people suggest I get? -adrian On 15 December 2015 at 06:58, Stanislav Galabov wrote: > Hi all, > > After talking with Adrian off list we decided to start work on Mediatek/R= alink more recent SoCs with MT7620 instead of MT7621 (Adrian=E2=80=99s boar= d has MT7620 so it=E2=80=99s easier for him to help with the WiFi parts thi= s way). > > I=E2=80=99ve done a bit today and I got an MT7620A based board to boot to= multi user with root filesystem on USB stick. > > If anyone is interested in the patch, it can be found here: > https://www.dropbox.com/s/e880eutzvlms8h7/mt7620_patch.diff?dl=3D0 > > For the moment there is no support for sys/dev/rt (the Ethernet controlle= r) with MT7620. This is going to be left for later. > Next I am planning to work on SPI and PCI so that Adrian can start workin= g on WiFi once I=E2=80=99m done with the SPI part. > > I would appreciate it if someone would jump in and help with the if_rt su= pport - this way we=E2=80=99ll have something working quicker hopefully :-) > > I would also appreciate feedback for the attached patch... > > 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" From owner-freebsd-mips@freebsd.org Tue Dec 15 16:16:26 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 B68CAA48CD8 for ; Tue, 15 Dec 2015 16:16:26 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (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 6635619A9; Tue, 15 Dec 2015 16:16:26 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id l126so1091283wml.0; Tue, 15 Dec 2015 08:16:26 -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=afmcJS511Qu+P4micxz6V9m9Lx9oLEdHrZC4wIZLv2I=; b=zy8it+KwE1QALyNq6Ei2c9D5BqjQ3cwVVE7gkg5ovg2cLco8p4MpvxXOTF0+rC+Naq yps/2pKMN5OdQCcmEmbxzokf8eL0mBIAizr/+pyVIBsgKVI5TMXR4dVYbgiG8QayN2C/ TyXX5ptqYMqWsvRESuWLVQGAV7tHSAEXV+sQEI4FOcBdjgsrDR9yIpwnugkOVqpd4uLh LrojDxD8fNIiUdTu8OYF/IyJ4SPCgnooD2hgbTXD8zKWoQBbvlaaIeQ196ZoXwZQp9UD nK5bei0CE5CXQ99qAaTMh4c6ukHEz4a0xmLJJVqmYWOq25d7qNBXuMIeBEFYu0XbrSn3 A1hg== X-Received: by 10.28.136.149 with SMTP id k143mr5621631wmd.57.1450196178566; Tue, 15 Dec 2015 08:16:18 -0800 (PST) Received: from macbookpro-894a.hsmt ([193.178.153.131]) by smtp.gmail.com with ESMTPSA id jo6sm2006461wjb.48.2015.12.15.08.16.17 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Dec 2015 08:16:17 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: Initial support for MT7620 From: Stanislav Galabov In-Reply-To: Date: Tue, 15 Dec 2015 18:16:16 +0200 Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <17D0A04B-7164-48AE-9909-107EEBDF72E5@gmail.com> References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> To: Adrian Chadd 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: Tue, 15 Dec 2015 16:16:26 -0000 WiTi board looks nice, I=E2=80=99d go for it. I have by no means given up on MT7621 support and rolling it in together = with RT305x would probably be best if we manage to do it. I=E2=80=99d actually like to continue after MT7620 and MT7621 and = include support for MT7628 and MT7688 as well :-) Best wishes, Stanislav > On Dec 15, 2015, at 18:11, Adrian Chadd wrote: >=20 > Woo! >=20 > So my vague-ish plan is to fold the mt7621 support into the rt305x > directory and break out the CPU family support into like what we have > for the atheros mips family. The diff between MT7621 and RT305x was > pretty small and I bet we could roll it all in pretty easily. >=20 > I don't have any MT7621 hardware yet. What do people suggest I get? >=20 >=20 > -adrian >=20 >=20 > On 15 December 2015 at 06:58, Stanislav Galabov = wrote: >> Hi all, >>=20 >> After talking with Adrian off list we decided to start work on = Mediatek/Ralink more recent SoCs with MT7620 instead of MT7621 = (Adrian=E2=80=99s board has MT7620 so it=E2=80=99s easier for him to = help with the WiFi parts this way). >>=20 >> I=E2=80=99ve done a bit today and I got an MT7620A based board to = boot to multi user with root filesystem on USB stick. >>=20 >> If anyone is interested in the patch, it can be found here: >> https://www.dropbox.com/s/e880eutzvlms8h7/mt7620_patch.diff?dl=3D0 >>=20 >> For the moment there is no support for sys/dev/rt (the Ethernet = controller) with MT7620. This is going to be left for later. >> Next I am planning to work on SPI and PCI so that Adrian can start = working on WiFi once I=E2=80=99m done with the SPI part. >>=20 >> I would appreciate it if someone would jump in and help with the = if_rt support - this way we=E2=80=99ll have something working quicker = hopefully :-) >>=20 >> I would also appreciate feedback for the attached patch... >>=20 >> 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" From owner-freebsd-mips@freebsd.org Wed Dec 16 13:47: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 65064A49275 for ; Wed, 16 Dec 2015 13:47:36 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 0323C14E5 for ; Wed, 16 Dec 2015 13:47:36 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id p187so1962232wmp.1 for ; Wed, 16 Dec 2015 05:47:35 -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=Bm0dZg41i8wFvgmtOmpAJjorRQDSpPLfnunuEwnpihA=; b=VNIeI+unlkWVBV+uLYVnXNOyR6WufBYAMrhlcKphVkw/8+RjKphTEhNOrx1DjD9Ru8 pTeupEM7TnQBVDT/b04O8JPZJMrPpnHJ9ayviHIOwXKsqCrmZZoWrQph2MZgDyZ0Q95b sS8mC2xPBLW/fo6FEKNcR2drtKROn8YfVs0C7g/0H/GkxJWa4KMZllkgqpi41OiM4V4w vf2W8pVYtxCYBwNo8shh1koOZ9/yc1XjGQMiTZCcuDhWAu/ADYz5d1MdhJKItDrNG3lj iMS12LpMWrFPZEpoqAtnoBS27Veb86MbKuwScbJMTjZeVbB7Vpwj7OAR7TV3LqB6l472 DhuQ== X-Received: by 10.194.117.68 with SMTP id kc4mr50993066wjb.77.1450273654532; Wed, 16 Dec 2015 05:47:34 -0800 (PST) Received: from macbookpro-894a.hsmt ([193.178.153.131]) by smtp.gmail.com with ESMTPSA id l7sm6118461wjx.14.2015.12.16.05.47.33 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Dec 2015 05:47:33 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: Initial support for MT7620 From: Stanislav Galabov In-Reply-To: <20151216140557.54abbafbc1a2093be65099dc@ddteam.net> Date: Wed, 16 Dec 2015 15:47:32 +0200 Cc: Stanislav Galabov , freebsd-mips@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8E7B6604-AAE1-489B-82C1-BD935A7DCBE9@gmail.com> References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> <20151216140557.54abbafbc1a2093be65099dc@ddteam.net> To: Aleksandr Rybalko 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: Wed, 16 Dec 2015 13:47:36 -0000 > On Dec 16, 2015, at 14:05, Aleksandr Rybalko wrote: >=20 > On Tue, 15 Dec 2015 16:58:31 +0200 > Stanislav Galabov wrote: >=20 >> Hi all, >>=20 >> After talking with Adrian off list we decided to start work on = Mediatek/Ralink more recent SoCs with MT7620 instead of MT7621 = (Adrian=E2=80=99s board has MT7620 so it=E2=80=99s easier for him to = help with the WiFi parts this way). >>=20 >> I=E2=80=99ve done a bit today and I got an MT7620A based board to = boot to multi user with root filesystem on USB stick. >>=20 >> If anyone is interested in the patch, it can be found here: >> https://www.dropbox.com/s/e880eutzvlms8h7/mt7620_patch.diff?dl=3D0 >>=20 >> For the moment there is no support for sys/dev/rt (the Ethernet = controller) with MT7620. This is going to be left for later. >> Next I am planning to work on SPI and PCI so that Adrian can start = working on WiFi once I=E2=80=99m done with the SPI part. >>=20 >> I would appreciate it if someone would jump in and help with the = if_rt support - this way we=E2=80=99ll have something working quicker = hopefully :-) >>=20 >> I would also appreciate feedback for the attached patch... >>=20 >> 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" >=20 > Hi Stanislav! >=20 > There is patch #1 that did my friend, Alexander A. Mityaev. > Patch cover to things: > 1. enable support of RT5350 > 2. enable FDT configuration for RTxxxx family >=20 > First thing may help you to bring if_rt up. Second one may help to = work > in right direction, because FDT makes adding new SoC support to looks > like writing config (except some new devices, which will require new > driver for it). >=20 > I'm glad to help, but currently limited in time I can spend. > Anyway, I will try to answer your questions ASAP. >=20 > Thank you! >=20 > [1] http://dev.mt.mk.ua/patch-20150519.diff.gz) >=20 > WBW > --=20 > Aleksandr Rybalko Hi Aleksandr, Thanks for the patch! I=E2=80=99ll have a look at it and will see what I = can do. Also, thanks for your offer to answer my questions, I really = appreciate it. I was thinking of FDT for the Ralink/Mediatek support, but I figured it = would be beneficial to see if there is interest in these platforms at = all in the community or not, so that=E2=80=99s why I first started = working on adding basic support for more SoCs before trying to move to = FDT (although I agree that moving to FDT first may have been wiser :-)). I am willing to work on moving the Ralink/Mediatek family support to FDT = and doing more work on supporting currently unsupported peripherals (as = far as I can be of any use), but I would only do so if the changes I = make would end up committed to FreeBSD - I have no interest in doing = something that will go unused by anyone=E2=80=A6 So if any committer is willing to suffer going through my patches and = getting them in the tree - I=E2=80=99ll do my best, provided I have some = spare cycles to work on this. I am also willing to do the commits myself = (under proper supervision, of course) if my work is considered useful = and of acceptable standards. Best wishes, Stanislav From owner-freebsd-mips@freebsd.org Wed Dec 16 13:57:32 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 8171DA4325A for ; Wed, 16 Dec 2015 13:57:32 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (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 C3B1426B1 for ; Wed, 16 Dec 2015 13:57:31 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-lf0-x232.google.com with SMTP id y184so29656765lfc.1 for ; Wed, 16 Dec 2015 05:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=Iwqj7A0dV2a7NVm8COC0YjvW4ku7oGu+iY42i6s+VgM=; b=r8xDYBZ/kPCskLLbuday3Mj+mDXjlNePt161QPCGD9C39CPnIRBqeMW9T+lhxa+Ed2 Rj4fpnWE9fZ8fzavNw5GRj9lJV7LgqKxbmnoR8S3r229h0lz7mHC/ZS4Uur6DCFUo5P8 0HNBdORrtROyQv4cWYuarupql6sbbwPfGDilME0jFfTpdIJo+bzZG+msesSQPs7FFRsN SIG91948GpSmHewmqnySLiIxni51IrzQPoLSN1sDz2vpdOHoeRkV8bKQ2hROjlzRmm+7 QkEyLXaxW24I4CFtxhBWlL5CQ/IKg+2TbGq191jHCIyLjpSvLNTNLyp1FpjQm+CDIYzf XSpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=Iwqj7A0dV2a7NVm8COC0YjvW4ku7oGu+iY42i6s+VgM=; b=Kbm0mDSJtqGtFdDhuIE0su7xRThTOBCRqMqKhxVBlgoE4CFIHibusBZoAosVSJshyG jmWH2O3yWh06URu8PMNog9TVsDORfnuqxf4PKX5by9bo3XCXB0OJ7l8KBDN4H3G1IId1 K4P9CTREa796CNY/TlJUBze9uCeUldcnd/h1Su8/3i377tW4lEkGrNOAbOx0W1lqlwrS ac4SEI6dCp4Wmm3iK3rhz+5JI5PKPKOI8LJILJPAMsiVjImp9058gYKeZrexGZWNRxVH p056LCSMocfmCbBIQPBcIw9SrPXC5ajx+aW3/RB39hL+g601SORmbrwdsfvOKg2V+EZL M1mQ== X-Gm-Message-State: ALoCoQmtD5EFq2sZWConvj6bGnteQcoeLmJ203C4qizCIuGIDc+mFkiRpJvu5Tvc8HT43poW6pGETTjSpYq9WrW3ST1/9yhcQQ== X-Received: by 10.25.28.70 with SMTP id c67mr15308395lfc.95.1450267588873; Wed, 16 Dec 2015 04:06:28 -0800 (PST) Received: from raynote.ddteam.net (0-211-52-37.pool.ukrtel.net. [37.52.211.0]) by smtp.gmail.com with ESMTPSA id s7sm929811lbo.30.2015.12.16.04.06.27 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Dec 2015 04:06:28 -0800 (PST) Date: Wed, 16 Dec 2015 14:05:57 +0200 From: Aleksandr Rybalko To: Stanislav Galabov Cc: freebsd-mips@freebsd.org Subject: Re: Initial support for MT7620 Message-Id: <20151216140557.54abbafbc1a2093be65099dc@ddteam.net> In-Reply-To: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Wed, 16 Dec 2015 13:57:32 -0000 On Tue, 15 Dec 2015 16:58:31 +0200 Stanislav Galabov wrote: > Hi all, > > After talking with Adrian off list we decided to start work on Mediatek/Ralink more recent SoCs with MT7620 instead of MT7621 (Adrian’s board has MT7620 so it’s easier for him to help with the WiFi parts this way). > > I’ve done a bit today and I got an MT7620A based board to boot to multi user with root filesystem on USB stick. > > If anyone is interested in the patch, it can be found here: > https://www.dropbox.com/s/e880eutzvlms8h7/mt7620_patch.diff?dl=0 > > For the moment there is no support for sys/dev/rt (the Ethernet controller) with MT7620. This is going to be left for later. > Next I am planning to work on SPI and PCI so that Adrian can start working on WiFi once I’m done with the SPI part. > > I would appreciate it if someone would jump in and help with the if_rt support - this way we’ll have something working quicker hopefully :-) > > I would also appreciate feedback for the attached patch... > > 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" Hi Stanislav! There is patch #1 that did my friend, Alexander A. Mityaev. Patch cover to things: 1. enable support of RT5350 2. enable FDT configuration for RTxxxx family First thing may help you to bring if_rt up. Second one may help to work in right direction, because FDT makes adding new SoC support to looks like writing config (except some new devices, which will require new driver for it). I'm glad to help, but currently limited in time I can spend. Anyway, I will try to answer your questions ASAP. Thank you! [1] http://dev.mt.mk.ua/patch-20150519.diff.gz) WBW -- Aleksandr Rybalko From owner-freebsd-mips@freebsd.org Wed Dec 16 14:19: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 4A10EA48FD2 for ; Wed, 16 Dec 2015 14:19:44 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E92311B89; Wed, 16 Dec 2015 14:19:43 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id B01FC153416; Wed, 16 Dec 2015 15:19:40 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ltypBnx8LDx5; Wed, 16 Dec 2015 15:19:13 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:2c1c:46cf:4840:43e6] (unknown [IPv6:2001:4cb8:3:1:2c1c:46cf:4840:43e6]) by smtp.digiware.nl (Postfix) with ESMTP id 37F1915340D; Wed, 16 Dec 2015 14:49:09 +0100 (CET) Subject: Re: Initial support for MT7620 To: Stanislav Galabov , Adrian Chadd References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> <17D0A04B-7164-48AE-9909-107EEBDF72E5@gmail.com> Cc: "freebsd-mips@freebsd.org" From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <56716BD0.1080801@digiware.nl> Date: Wed, 16 Dec 2015 14:49:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <17D0A04B-7164-48AE-9909-107EEBDF72E5@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: Wed, 16 Dec 2015 14:19:44 -0000 On 15-12-2015 17:16, Stanislav Galabov wrote: > WiTi board looks nice, I’d go for it. > > I have by no means given up on MT7621 support and rolling it in together with RT305x would probably be best if we manage to do it. > I’d actually like to continue after MT7620 and MT7621 and include support for MT7628 and MT7688 as well :-) Finally got the time to dig out the board and the serial connector. This is what my WitiBoard spews at me while booting in Uboot..... So now I'm off to finding a suitable system here to put tftp on and go from there. --WjW =================================================================== MT7621 stage1 code 10:33:55 (ASIC) CPU=500000000 HZ BUS=166666666 HZ ================================================================== Change MPLL source from XTAL to CR... do MEMPLL setting.. MEMPLL Config : 0x31100000 3PLL mode + External loopback === XTAL-40Mhz === DDR-800Mhz === PLL3 FB_DL: 0x0, 1/0 = 1024/0 01000000 PLL4 FB_DL: 0x16, 1/0 = 693/331 59000000 PLL2 FB_DL: 0x19, 1/0 = 581/443 65000000 do DDR setting..[01F40000] Apply DDR3 Setting...(use customer AC) 0 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120 -------------------------------------------------------------------------------- 0000:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0001:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0002:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0003:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0004:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0005:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0006:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0007:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0008:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0009:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000E:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 000F:| 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0010:| 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0011:| 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0012:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0013:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0014:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0015:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0016:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0017:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0018:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0019:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001E:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001F:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 rank 0 coarse = 16 rank 0 fine = 56 B:| 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 opt_dle value:9 DRAMC_R0DELDLY[018]=00002C2D ================================================================== RX DQS perbit delay software calibration ================================================================== 1.0-15 bit dq delay value ================================================================== bit| 0 1 2 3 4 5 6 7 8 9 -------------------------------------- 0 | 13 10 11 11 11 9 11 7 7 9 10 | 10 11 8 10 8 11 -------------------------------------- ================================================================== 2.dqs window x=pass dqs delay value (min~max)center y=0-7bit DQ of every group input delay:DQS0 =45 DQS1 = 44 ================================================================== bit DQS0 bit DQS1 0 (2~86)44 8 (1~86)43 1 (1~86)43 9 (2~86)44 2 (1~87)44 10 (1~87)44 3 (1~88)44 11 (2~85)43 4 (1~89)45 12 (1~86)43 5 (1~87)44 13 (1~84)42 6 (1~87)44 14 (1~86)43 7 (1~87)44 15 (2~87)44 ================================================================== 3.dq delay value last ================================================================== bit| 0 1 2 3 4 5 6 7 8 9 -------------------------------------- 0 | 14 12 12 12 11 10 12 8 8 9 10 | 10 12 9 12 9 11 ================================================================== ================================================================== TX perbyte calibration ================================================================== DQS loop = 15, cmp_err_1 = ffff0000 dqs_perbyte_dly.last_dqsdly_pass[0]=15, finish count=1 dqs_perbyte_dly.last_dqsdly_pass[1]=15, finish count=2 DQ loop=15, cmp_err_1 = ffff0000 dqs_perbyte_dly.last_dqdly_pass[0]=15, finish count=1 dqs_perbyte_dly.last_dqdly_pass[1]=15, finish count=2 byte:0, (DQS,DQ)=(8,8) byte:1, (DQS,DQ)=(8,8) 20,data:88 [EMI] DRAMC calibration passed =================================================================== MT7621 stage1 code done CPU=500000000 HZ BUS=166666666 HZ =================================================================== U-Boot 1.1.3 (May 17 2015 - 18:53:31) Board: Ralink APSoC DRAM: 256 MB relocate_code Pointer at: 8ffb8000 Config XHCI 40M PLL flash manufacture id: c8, device id 40 18 find flash: GD25Q128C *** Warning - bad CRC, using default environment ============================================ Ralink UBoot Version: 4.3.0.0 -------------------------------------------- ASIC MT7621A DualCore (MAC to MT7530 Mode) DRAM_CONF_FROM: Auto-Detection DRAM_TYPE: DDR3 DRAM bus: 16 bit Xtal Mode=3 OCP Ratio=1/3 Flash component: SPI Flash Date:May 17 2015 Time:18:53:31 ============================================ icache: sets:256, ways:4, linesz:32 ,total:32768 dcache: sets:256, ways:4, linesz:32 ,total:32768 ##### The CPU freq = 880 MHZ #### estimate memory size =256 Mbytes #Reset_MT7530 Please choose the operation: 1: Load system code to SDRAM via TFTP. 2: Load system code then write to Flash via TFTP. 3: Boot system code via Flash (default). 4: Entr boot command line interface. 7: Load Boot Loader code then write to Flash via Serial. 9: Load Boot Loader code then write to Flash via TFTP. 2 You choosed 1 0 1: System Load Linux to SDRAM via TFTP. Please Input new ones /or Ctrl-C to discard Input device IP (10.10.10.123) ==:10.10.10.123 From owner-freebsd-mips@freebsd.org Wed Dec 16 14:53:51 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 D5073A48DC0 for ; Wed, 16 Dec 2015 14:53:51 +0000 (UTC) (envelope-from alfa-consult@bk.ru) Received: from zemailov.ru (zemailov.ru [185.118.165.49]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 916311C59 for ; Wed, 16 Dec 2015 14:53:51 +0000 (UTC) (envelope-from alfa-consult@bk.ru) Received: by zemailov.ru with esmtpa (Exim 4.80) id 1a99V7-00054Y-So; Wed, 16 Dec 2015 15:40:05 +0500 From: "=?utf-8?B?0JDQvdC00YDQtdC5?=" Subject: =?utf-8?B?0JvQuNGG0LXQvdC30LjRjyDQvdCwINC/0YDQvtC00LDQttGDINCw0LvQutC+0LPQvtC70Y8=?= To: "freebsd-mips@FreeBSD.org" MIME-Version: 1.0 Organization: =?utf-8?B?0JrQkNCg0JDQndCU0JDQqNCa0JjQnQ==?= Date: Wed, 16 Dec 2015 13:40:30 +0300 Message-Id: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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: Wed, 16 Dec 2015 14:53:51 -0000 =20 =D0=9E=D0=9E=D0=9E =C2=AB=D0=90=D0=BB=D1=8C=D1=84=D0=B0-=D0=9A=D0=BE=D0= =BD=D1=81=D0=B0=D0=BB=D1=82=C2=BB =D0=A2=D0=B5=D0=BB: +7 968 498-75-75 +7 968 498-74-74 e-mail: alfa-consult@bk.ru www.alfa-consult.org =20 =20 =D0=BD=D0=B8=D0=B7=D0=BA=D0=B8=D0=B5 =D1=86=D0=B5=D0=BD=D1=8B!!! =D0=9B=D0=B8=D1=86=D0=B5=D0=BD=D0=B7=D0=B8=D1=8F =D0=BD=D0=B0 =D0=BF=D1= =80=D0=BE=D0=B4=D0=B0=D0=B6=D1=83 =D0=B0=D0=BB=D0=BA=D0=BE=D0=B3=D0=BE= =D0=BB=D1=8F =D0=A0=D0=9E=D0=97=D0=9D=D0=98=D0=A7=D0=9D=D0=90=D0=AF =20 =D0=9B=D0=B8=D1=86=D0=B5=D0=BD=D0=B7=D0=B8=D1=8F =D0=BD=D0=B0 =D0=BF=D1= =80=D0=BE=D0=B4=D0=B0=D0=B6=D1=83 =D0=B0=D0=BB=D0=BA=D0=BE=D0=B3=D0=BE= =D0=BB=D1=8F =D0=9E=D0=9F=D0=A2=D0=9E=D0=92=D0=90=D0=AF This email has been protected by YAC (Yet Another Cleaner) http://www.yac.mx From owner-freebsd-mips@freebsd.org Wed Dec 16 17:52:19 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 5AAA7A49247 for ; Wed, 16 Dec 2015 17:52:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::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 33417174B for ; Wed, 16 Dec 2015 17:52:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x22e.google.com with SMTP id mv3so143762847igc.0 for ; Wed, 16 Dec 2015 09:52:19 -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:content-transfer-encoding; bh=nAmejLpdCWFwF3/qizIafCfIOciLrAWl2Jv1tqAKw/c=; b=FiY79wwVSWDfjmxaFZW3VZygIy42AIQNpUHgz+zadmni34uIwhhdCjIiTPuVvZYQqH EEL3a+sm2cFOcmwyvSsSC1wRGlFHHk/VfXrsuAYzzKyhEs/6fmN3uClbnVxKZAzLcWkg OYcNAScFrxwJGN5t8zEPBbyAEo9E9VCPGDWYrtDDwxV0tomnPcRR2Wwf4BgbRQJgmUN3 a/RpF8iLryjh1xD82elGdRwwCC729Y4q8zRKFhGGk0+EFTTVSPHzn04BZYE00LU93jjw XcDmPxG1l/ZWGV/syapxTx5kO2HOTxBPgbB9Hus1AuxIGGcaKTuuiilb8ybAh4C7zBCU CAkA== MIME-Version: 1.0 X-Received: by 10.50.25.169 with SMTP id d9mr10698950igg.61.1450288336830; Wed, 16 Dec 2015 09:52:16 -0800 (PST) Received: by 10.36.121.202 with HTTP; Wed, 16 Dec 2015 09:52:16 -0800 (PST) In-Reply-To: <8E7B6604-AAE1-489B-82C1-BD935A7DCBE9@gmail.com> References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> <20151216140557.54abbafbc1a2093be65099dc@ddteam.net> <8E7B6604-AAE1-489B-82C1-BD935A7DCBE9@gmail.com> Date: Wed, 16 Dec 2015 09:52:16 -0800 Message-ID: Subject: Re: Initial support for MT7620 From: Adrian Chadd To: Stanislav Galabov Cc: Aleksandr Rybalko , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Wed, 16 Dec 2015 17:52:19 -0000 hiya! Yes, I think between ray and I we can get your stuff into -HEAD. The nice thing about the MT7620 change is that it's pretty non-intrusive and if it works, we can start by committing it soon. I have Stanislav's changes so far in a github branch: https://github.com/erikarn/freebsd/tree/local/adrian_mt7620 This includes his mt7620 and mt7621 changes. I haven't fired it up on the 7620 yet (tonight, i hope!) My plan here is to get the 7620 support up enough to do ethernet and then commit it to the rt305x/ tree. Then we can start refactoring out the CPU model specific pieces into chip_xxxx.[ch] files. The biggest change between r305x and mt7620 (and then mt7621) is the memory map stuff, which for now we can easily do with a struct to represent things and then some ifdefs to choose the right one. That way it's nice and clean. The other mt7620 changes are very small and easy. The 7621 changes require some startup path changes and uart/uartlite fiddling. Hang out on #bsdmips in like 10 hours time; I'll start tinkering then. :) Thanks, -adrian On 16 December 2015 at 05:47, Stanislav Galabov wrote: > >> On Dec 16, 2015, at 14:05, Aleksandr Rybalko wrote: >> >> On Tue, 15 Dec 2015 16:58:31 +0200 >> Stanislav Galabov wrote: >> >>> Hi all, >>> >>> After talking with Adrian off list we decided to start work on Mediatek= /Ralink more recent SoCs with MT7620 instead of MT7621 (Adrian=E2=80=99s bo= ard has MT7620 so it=E2=80=99s easier for him to help with the WiFi parts t= his way). >>> >>> I=E2=80=99ve done a bit today and I got an MT7620A based board to boot = to multi user with root filesystem on USB stick. >>> >>> If anyone is interested in the patch, it can be found here: >>> https://www.dropbox.com/s/e880eutzvlms8h7/mt7620_patch.diff?dl=3D0 >>> >>> For the moment there is no support for sys/dev/rt (the Ethernet control= ler) with MT7620. This is going to be left for later. >>> Next I am planning to work on SPI and PCI so that Adrian can start work= ing on WiFi once I=E2=80=99m done with the SPI part. >>> >>> I would appreciate it if someone would jump in and help with the if_rt = support - this way we=E2=80=99ll have something working quicker hopefully := -) >>> >>> I would also appreciate feedback for the attached patch... >>> >>> 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" >> >> Hi Stanislav! >> >> There is patch #1 that did my friend, Alexander A. Mityaev. >> Patch cover to things: >> 1. enable support of RT5350 >> 2. enable FDT configuration for RTxxxx family >> >> First thing may help you to bring if_rt up. Second one may help to work >> in right direction, because FDT makes adding new SoC support to looks >> like writing config (except some new devices, which will require new >> driver for it). >> >> I'm glad to help, but currently limited in time I can spend. >> Anyway, I will try to answer your questions ASAP. >> >> Thank you! >> >> [1] http://dev.mt.mk.ua/patch-20150519.diff.gz) >> >> WBW >> -- >> Aleksandr Rybalko > > Hi Aleksandr, > > Thanks for the patch! I=E2=80=99ll have a look at it and will see what I = can do. Also, thanks for your offer to answer my questions, I really apprec= iate it. > > I was thinking of FDT for the Ralink/Mediatek support, but I figured it w= ould be beneficial to see if there is interest in these platforms at all in= the community or not, so that=E2=80=99s why I first started working on add= ing basic support for more SoCs before trying to move to FDT (although I ag= ree that moving to FDT first may have been wiser :-)). > > I am willing to work on moving the Ralink/Mediatek family support to FDT = and doing more work on supporting currently unsupported peripherals (as far= as I can be of any use), but I would only do so if the changes I make woul= d end up committed to FreeBSD - I have no interest in doing something that = will go unused by anyone=E2=80=A6 > > So if any committer is willing to suffer going through my patches and get= ting them in the tree - I=E2=80=99ll do my best, provided I have some spare= cycles to work on this. I am also willing to do the commits myself (under = proper supervision, of course) if my work is considered useful and of accep= table standards. > > 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" From owner-freebsd-mips@freebsd.org Wed Dec 16 18:01:13 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 C61B9A49852 for ; Wed, 16 Dec 2015 18:01:13 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-lb0-x241.google.com (mail-lb0-x241.google.com [IPv6:2a00:1450:4010:c04::241]) (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 3ECFA1A8F for ; Wed, 16 Dec 2015 18:01:13 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-lb0-x241.google.com with SMTP id yq9so780200lbb.0 for ; Wed, 16 Dec 2015 10:01:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=bs5zWdP1EHa3jg48xHINzJAagA3bvWe+AfDRffjs/HM=; b=i4RocrDiVNUhzSGFaQkLcEmcpFjG2wl0eEsNKyiJABAjosuUSjPofTVcr46CDhUEtC CASFFQGOPkwFro2cbNKMR8+vYzOakm41bkaA8BTU8oEoF7NajPIWK/58PeCdmIz99J+k Xr+rciWepMJkX1dgl0wFL42aS5cTko0VTzXgezNT5QP1yRtovSfp1hitFYLyQRlrHmIm FrGnfzCZ8LFqf+Owd06eI6UcKUZwQhg95+5FjE5X8b+j2ukFZ80NvQoBvFFHsgvRriqv ax+i9QcMCsQfZWe0j3BN/M1muKLM9lfnkjJ0D8Y+49HWamk4k0HEuGxYuf+o9CrxmuUl 0VCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=bs5zWdP1EHa3jg48xHINzJAagA3bvWe+AfDRffjs/HM=; b=ed0CVQXWtwulWKT8+V1YBLAcTNyrm2hxjD07YLdC2luwHaQOrTTtYg6Mop6o1m4/3m udEHRAmO190W3tS1g8+Pr5YwVviKUaipvYCiuXL8juacZwYZWRafNQ+lt998yVnCb20f oF7RIYpmMZPHC+2Y5oB1ZxXUuShun0WqyVc7UXWc8f+TAS5GNo/p7+GfTJvq5W3zEZNP e+D6NSDOAKIIZpisoOcpliDvkmKQDlixhLjCO8sL9goGvknrYr4YHo765brCxxcXVIfe i4ZMUhu6+sHytOJxilx4tNst98w+wYIo2cFV2l76rK2AkqXn9RtQf+lA1yaZgu4vhYOh HlDQ== X-Gm-Message-State: ALoCoQkgYWUvsKbccgUuM+CMc0hqAv2TAUUOEG30EHoCDHpMvp9tyu8zlGKi0qEVcxuOEvXBBTBUyXBCxfZnNVHOvEqW/cyOEw== X-Received: by 10.112.25.40 with SMTP id z8mr19669180lbf.13.1450288870131; Wed, 16 Dec 2015 10:01:10 -0800 (PST) Received: from raynote.ddteam.net (0-211-52-37.pool.ukrtel.net. [37.52.211.0]) by smtp.gmail.com with ESMTPSA id n65sm1214494lfb.43.2015.12.16.10.01.08 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Dec 2015 10:01:09 -0800 (PST) Date: Wed, 16 Dec 2015 20:01:07 +0200 From: Aleksandr Rybalko To: Stanislav Galabov Cc: freebsd-mips@freebsd.org Subject: Re: Initial support for MT7620 Message-Id: <20151216200107.15197a94af0d5f79c5a7c401@ddteam.net> In-Reply-To: <8E7B6604-AAE1-489B-82C1-BD935A7DCBE9@gmail.com> References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> <20151216140557.54abbafbc1a2093be65099dc@ddteam.net> <8E7B6604-AAE1-489B-82C1-BD935A7DCBE9@gmail.com> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Wed, 16 Dec 2015 18:01:14 -0000 On Wed, 16 Dec 2015 15:47:32 +0200 Stanislav Galabov wrote: > > > On Dec 16, 2015, at 14:05, Aleksandr Rybalko wrote: > > > > On Tue, 15 Dec 2015 16:58:31 +0200 > > Stanislav Galabov wrote: > > > >> Hi all, > >> > >> After talking with Adrian off list we decided to start work on Mediatek/Ralink more recent SoCs with MT7620 instead of MT7621 (Adrian’s board has MT7620 so it’s easier for him to help with the WiFi parts this way). > >> > >> I’ve done a bit today and I got an MT7620A based board to boot to multi user with root filesystem on USB stick. > >> > >> If anyone is interested in the patch, it can be found here: > >> https://www.dropbox.com/s/e880eutzvlms8h7/mt7620_patch.diff?dl=0 > >> > >> For the moment there is no support for sys/dev/rt (the Ethernet controller) with MT7620. This is going to be left for later. > >> Next I am planning to work on SPI and PCI so that Adrian can start working on WiFi once I’m done with the SPI part. > >> > >> I would appreciate it if someone would jump in and help with the if_rt support - this way we’ll have something working quicker hopefully :-) > >> > >> I would also appreciate feedback for the attached patch... > >> > >> 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" > > > > Hi Stanislav! > > > > There is patch #1 that did my friend, Alexander A. Mityaev. > > Patch cover to things: > > 1. enable support of RT5350 > > 2. enable FDT configuration for RTxxxx family > > > > First thing may help you to bring if_rt up. Second one may help to work > > in right direction, because FDT makes adding new SoC support to looks > > like writing config (except some new devices, which will require new > > driver for it). > > > > I'm glad to help, but currently limited in time I can spend. > > Anyway, I will try to answer your questions ASAP. > > > > Thank you! > > > > [1] http://dev.mt.mk.ua/patch-20150519.diff.gz) > > > > WBW > > -- > > Aleksandr Rybalko > > Hi Aleksandr, > > Thanks for the patch! I’ll have a look at it and will see what I can do. Also, thanks for your offer to answer my questions, I really appreciate it. Very welcome :) > > I was thinking of FDT for the Ralink/Mediatek support, but I figured it would be beneficial to see if there is interest in these platforms at all in the community or not, so that’s why I first started working on adding basic support for more SoCs before trying to move to FDT (although I agree that moving to FDT first may have been wiser :-)). I asking to use FDT, because it makes device drivers more generic. My experience show, that many devices (so called IP cores) frequently used in very different SoCs. (for example DWC USB OTG, used in RT305x, Cavium Octeon, Broadcom SoC from R-Pi). Unlike Adrian said, I think better to create mips/mediatek dir, but start it with FDT support for RT305x, RT5350, Mediateks you going to cover. And then ask users - are they still need mips/rt305x. If no, just remove it. Because, work Alexander done for making support non-FDT and FDT versions in same place are really hard and take a lot of time. That why it still not committed. > > I am willing to work on moving the Ralink/Mediatek family support to FDT and doing more work on supporting currently unsupported peripherals (as far as I can be of any use), but I would only do so if the changes I make would end up committed to FreeBSD - I have no interest in doing something that will go unused by anyone… > > So if any committer is willing to suffer going through my patches and getting them in the tree - I’ll do my best, provided I have some spare cycles to work on this. I am also willing to do the commits myself (under proper supervision, of course) if my work is considered useful and of acceptable standards. I think we (me and Adrian) will help you with that, so - go-go-go Stanislav!!! :) > > Best wishes, > Stanislav > WBW -- Aleksandr Rybalko From owner-freebsd-mips@freebsd.org Wed Dec 16 20:56:59 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 B4DE4A49DEC for ; Wed, 16 Dec 2015 20:56:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (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 9778C11D9 for ; Wed, 16 Dec 2015 20:56:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x230.google.com with SMTP id mv3so150630449igc.0 for ; Wed, 16 Dec 2015 12:56:59 -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=ODzyJcpmwk7dw8qGYLnH3KkisszEUhh6uivUZdO8lxE=; b=s2EFbbJRRJ3i69R4lGGMKNkZHi8VxAeCOKwYeAy58TpDMeXAJ6Xh8fSZpFKuR720IN G7uqvbBlsuC9rRWAwgu4KwKCs+MrwmGkYOq9SzhELUD7HrFLG/hWW0GfIY4XZO2wQk4I gkqLv5a8txBXVzMKLl0K48EYLe7fpCaPiPIsxUeEv3vQR0MceROB8Rm2ugDdCUkFjG26 QjdqEg6hLPw8VqegSKeEb2GOkEgnrjHVdaQoahPPQk3or4RbcVQn0B2l76c9fu/yrDzi CXC8B67MYK9MIFOzaswzfajFNCcgcQKMi7f4Frs9H+wwTc35wNrMx+Lb9a8aikdzJZaj 52/A== MIME-Version: 1.0 X-Received: by 10.50.28.103 with SMTP id a7mr510418igh.61.1450299419008; Wed, 16 Dec 2015 12:56:59 -0800 (PST) Received: by 10.36.121.202 with HTTP; Wed, 16 Dec 2015 12:56:57 -0800 (PST) In-Reply-To: <20151216200107.15197a94af0d5f79c5a7c401@ddteam.net> References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> <20151216140557.54abbafbc1a2093be65099dc@ddteam.net> <8E7B6604-AAE1-489B-82C1-BD935A7DCBE9@gmail.com> <20151216200107.15197a94af0d5f79c5a7c401@ddteam.net> Date: Wed, 16 Dec 2015 12:56:57 -0800 Message-ID: Subject: Re: Initial support for MT7620 From: Adrian Chadd To: Aleksandr Rybalko Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Wed, 16 Dec 2015 20:56:59 -0000 Hi, either way is fine. We could easily put a transition thing in where those obio bus addresses are just hints, like in mips. That way then the devices are only created if the hint entry exists and they pull the details from there. Then it's easy to migrate it and other code to the FDT path afterwards. -adrian From owner-freebsd-mips@freebsd.org Wed Dec 16 21:59:46 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 D7324A496F9 for ; Wed, 16 Dec 2015 21:59:46 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010:c04::231]) (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 60FE81D86 for ; Wed, 16 Dec 2015 21:59:46 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-lb0-x231.google.com with SMTP id kw15so34418974lbb.0 for ; Wed, 16 Dec 2015 13:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=XcdJuclO4fsk7qMTpE0hDnJEUUWp8mHilkmra12Zwgg=; b=Uw7V6/WVt6hug0swGYLhpsvgN9DNYY4qpD8Y9HOjW1c1TIJv1ik8I95viAAHG5m+CD DR5mnguX8oUYXJ69E1dx0rJKUy/uCPjntFe1BRdrROSgMjbaCXASWCM+1G63n3C2Bz6T bOZ0vGBWyc8t8kIgfnw99OY1BOKztpTiNSxPg8gpvvDlUBBpPbKnPGzfWXaViKewnO0d ob5JaGrMXDilxf0HqpGl6z6Cf7YGmXnFLWNDJoxR3SKVwtVuW54QPvTO1Myb9LlozWL1 Ry4ZzBegdASLyJWEKBkXmANuTAz4+oNRLBwWndE0au8rcn7AX/0b3Car160ZTzXoXpx8 QRDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=XcdJuclO4fsk7qMTpE0hDnJEUUWp8mHilkmra12Zwgg=; b=EG1IbUM3mBf5PfwEk1xK9hlrElKYnYhD9GWrsSUZrIzpW+NhkbBNq7QcC7ADrnGcx3 +9Xrix4azXRWKPjGHIRVLIadMAZ0WB34Qb8uSPMQ18lNpiQYErO8jJU0HuH+s+2yOB/q WV4QDvURSIILF6eG84ZyH7jCtamL5lW06sB2B35A1NL5yEqp2cNwGcp+trQl8WqYB1nR 7BaEb1RXx0SvegRWuoDEJTrFhZZ/lR9vGyDwZZAmje5OSH4AQMArdm17I49rmfH0FDqP iwX4s01eRZq/vgnj8IlegIXxhjjhIBwctqfvyffXvobMr6jfhH7SkK9+PbfAHIsyjYBN +Ztg== X-Gm-Message-State: ALoCoQmoGnrhFC1C/SKYDKSkNjy5PMlLE7tKwQhHCYInTHdR4IDNGeKon8wzwjtyPtrNAkO8S0yKVmoEzNg5OdUofBvtEQFgzQ== X-Received: by 10.112.171.136 with SMTP id au8mr19548735lbc.135.1450303184473; Wed, 16 Dec 2015 13:59:44 -0800 (PST) Received: from raynote.ddteam.net (0-211-52-37.pool.ukrtel.net. [37.52.211.0]) by smtp.gmail.com with ESMTPSA id g6sm208275lfe.23.2015.12.16.13.59.43 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Dec 2015 13:59:43 -0800 (PST) Date: Wed, 16 Dec 2015 23:59:40 +0200 From: Aleksandr Rybalko To: Adrian Chadd Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" Subject: Re: Initial support for MT7620 Message-Id: <20151216235940.a64abad2f956da5dbdacf275@ddteam.net> In-Reply-To: References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> <20151216140557.54abbafbc1a2093be65099dc@ddteam.net> <8E7B6604-AAE1-489B-82C1-BD935A7DCBE9@gmail.com> <20151216200107.15197a94af0d5f79c5a7c401@ddteam.net> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Wed, 16 Dec 2015 21:59:46 -0000 On Wed, 16 Dec 2015 12:56:57 -0800 Adrian Chadd wrote: > Hi, Hi Adri! > > either way is fine. > > We could easily put a transition thing in where those obio bus > addresses are just hints, like in mips. That way then the devices are > only created if the hint entry exists and they pull the details from > there. Yes, it is possible, but FDT is not only resource management. It affect interrupt controller too. So I'm not sure if somebody want to make such work for "tmp folder" :-D > > Then it's easy to migrate it and other code to the FDT path afterwards. > > > > -adrian Thanks! WBW -- Aleksandr Rybalko From owner-freebsd-mips@freebsd.org Wed Dec 16 22:18:00 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 13A6FA4A3AB for ; Wed, 16 Dec 2015 22:18:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::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 D6EE61BB5 for ; Wed, 16 Dec 2015 22:17:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x233.google.com with SMTP id jw2so8881811igc.1 for ; Wed, 16 Dec 2015 14:17:59 -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=Y8Z/uUr4CCRi8Xo55ecFsLEmtO0Zb9XKzf0AyhTGstY=; b=pwujcDpoaQtTeI4+F9HCKUmMtwJBg31wJlbz7Rj5XlYasQ7FL/3lt2H9wzq60OI9OB ICsIwEvjjraq8O1p4a7VBhvHpab1e7jpjIxYIfrEkQwkgIj5NG8WYwSCBUOD2vBWg3Lm zwzaB+QOfAb/dZKRRz5jPZkXfyqrMVWXas6Vgm4uKBy8uLgbA/WbwN+WkwcndQw4Pfsf ZGlHPBW45dv3lnqvMEIh0jlENBdETaFG84/SUAbfQyQcR0h+6zn61UpiPtj7bBy3DMg6 pEw6sbtkK8AIQZudrU3XviLB+b7w0MiaqgN4acFcCCx4W91GXsoUl0rYDecn+SCukEkw f7Cw== MIME-Version: 1.0 X-Received: by 10.107.10.199 with SMTP id 68mr42252305iok.75.1450304279192; Wed, 16 Dec 2015 14:17:59 -0800 (PST) Received: by 10.36.121.202 with HTTP; Wed, 16 Dec 2015 14:17:59 -0800 (PST) In-Reply-To: <20151216235940.a64abad2f956da5dbdacf275@ddteam.net> References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> <20151216140557.54abbafbc1a2093be65099dc@ddteam.net> <8E7B6604-AAE1-489B-82C1-BD935A7DCBE9@gmail.com> <20151216200107.15197a94af0d5f79c5a7c401@ddteam.net> <20151216235940.a64abad2f956da5dbdacf275@ddteam.net> Date: Wed, 16 Dec 2015 14:17:59 -0800 Message-ID: Subject: Re: Initial support for MT7620 From: Adrian Chadd To: Aleksandr Rybalko Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Wed, 16 Dec 2015 22:18:00 -0000 Ok, there's a lot of new work in this patch you sent me. It'd have to be broken into smaller pieces. So yeah, I may end up doing the temporary stuff as part of this work, because it'll at least make it easier to add more derivative chipsets. I also have the intrng mips stuff from kan@ to intergrate into -head. Can you poke the patch author to see if they're willing to work with us to break this patchset out into smaller pieces? -adrian From owner-freebsd-mips@freebsd.org Sat Dec 19 06:31:20 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 CB108A4CBBC for ; Sat, 19 Dec 2015 06:31:20 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-vk0-x236.google.com (mail-vk0-x236.google.com [IPv6:2607:f8b0:400c:c05::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 8CBA0133A for ; Sat, 19 Dec 2015 06:31:20 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-vk0-x236.google.com with SMTP id j66so76999653vkg.1 for ; Fri, 18 Dec 2015 22:31:20 -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 :content-type; bh=mwUM9Ow8Hz02y77w0vKEbj1j8wHszdCWhkRZikr5ge4=; b=eFP7OQLHaAgHTeU51NIB18q6+k+V7cPybau/g61k5boP4DIWLjmgPSn/npfVUh/cuq 1aRdwPUtEbySTM3sIDcuMaMLoaG5IlAFs2Ao3gwA9tKR7U7hmGLnDGlQeIhjhSuMU/t6 zmXbhUCf/ZRbznPxzK/TwdksD9t1HwxmhShSJ6JD6p2rdb3oJK7+VqfqCxYyn5oC/wkF FBhg7YO6JPGKpCVqkIBeW0SwIuhlkIxlXEYZnffS1fFz15AqXhISyayMcyMxgnNDJhG5 J36Y6sjIpEfIG+v2xt4Qp81C27eZCNzGKD+JRiPKpzczkjsBM4Y6k6mpGgmkQ3gfiN0L OGjQ== MIME-Version: 1.0 X-Received: by 10.31.16.226 with SMTP id 95mr4773114vkq.143.1450506679339; Fri, 18 Dec 2015 22:31:19 -0800 (PST) Received: by 10.31.175.201 with HTTP; Fri, 18 Dec 2015 22:31:19 -0800 (PST) In-Reply-To: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> Date: Sat, 19 Dec 2015 08:31:19 +0200 Message-ID: Subject: Re: Initial support for MT7620 From: Stanislav Galabov To: 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: Sat, 19 Dec 2015 06:31:20 -0000 Hi all, Just to give an update: MT7620 now boots to multi user with EHCI, SPI and basic Ethernet support (Ethernet is still a WIP, but at least can be used now). Thanks to Aleksandr Rybalko and Aleksandr Mityaev for RT5350 SPI and ethernet patches they provided - these helped a lot :-) For the interested, the changes are here: https://github.com/sgalabov/freebsd/tree/local/sgalabov_mt7620/sys/mips/rt3= 05x Next is work on MT7620's PCIe support and fixing remaining issues with MT7620 ethernet. Best wishes, Stanislav On Tue, Dec 15, 2015 at 4:58 PM, Stanislav Galabov wrote: > Hi all, > > After talking with Adrian off list we decided to start work on > Mediatek/Ralink more recent SoCs with MT7620 instead of MT7621 (Adrian=E2= =80=99s > board has MT7620 so it=E2=80=99s easier for him to help with the WiFi par= ts this > way). > > I=E2=80=99ve done a bit today and I got an MT7620A based board to boot to= multi > user with root filesystem on USB stick. > > If anyone is interested in the patch, it can be found here: > https://www.dropbox.com/s/e880eutzvlms8h7/mt7620_patch.diff?dl=3D0 > > For the moment there is no support for sys/dev/rt (the Ethernet > controller) with MT7620. This is going to be left for later. > Next I am planning to work on SPI and PCI so that Adrian can start workin= g > on WiFi once I=E2=80=99m done with the SPI part. > > I would appreciate it if someone would jump in and help with the if_rt > support - this way we=E2=80=99ll have something working quicker hopefully= :-) > > I would also appreciate feedback for the attached patch... > > Best wishes, > Stanislav