From owner-freebsd-mips@freebsd.org Fri Dec 11 16:45:14 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 28B459D71FC for ; Fri, 11 Dec 2015 16:45:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::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 ED06C1C21 for ; Fri, 11 Dec 2015 16:45:13 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iojd73 with SMTP id d73so14119516ioj.3 for ; Fri, 11 Dec 2015 08:45:13 -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=+zQsggcEEK7U4vI3HNVJuS3VxIOyCnYKrECx/WYE8mk=; b=IlPoNEP4/sZin1CQK3nLcM9rIVAn9QhnT4GDzZh6EyiRnHW5KbwX9MW00X22iYGbXL /D0JlM28dy/y938dvKLNr7c6IA6gBkLrqqv9VO0SqUL1R5JueV2TxlJrZMz9wKaWsma7 cEjuAcjZKBFEcC4dkS/wo2cJSv4byOKUUUyLCNezY4NRNOK/7iaF0N1l5IK4O+1r63KY QBRwVHGd/JMkYkHRNUIbLqMF+L8teIgJLoBakQF5wllPo5QqY0vY3TItnrnjhwpDaH8f XxgINTVva9YYaeFQKLeJlQ+2gEpNMiwfxK49pJ9PhMwGds93ue7Bz67XlZwGMJ9j7naP BrVQ== MIME-Version: 1.0 X-Received: by 10.107.10.199 with SMTP id 68mr17316032iok.75.1449852313207; Fri, 11 Dec 2015 08:45:13 -0800 (PST) Received: by 10.36.121.202 with HTTP; Fri, 11 Dec 2015 08:45:11 -0800 (PST) In-Reply-To: References: Date: Fri, 11 Dec 2015 08:45:11 -0800 Message-ID: Subject: Re: Interest in support for Mediatek/Ralink SoCs? 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: Fri, 11 Dec 2015 16:45:14 -0000 yup, it works fine! Send em over. -a On 11 December 2015 at 08: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 initial d= irty 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 tr= ee for now, but in a mt762x directory and there are still a lot of leftover= s 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 wro= te: >>> >>>> On Dec 11, 2015, at 10:25, Stanislav Galabov wrot= e: >>>> >>>> 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 FreeBS= D? >>>> >>>> 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 b= ooting 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 i= ntroduces new (to FreeBSD/mips) concepts such as the global interrupt contr= oller (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 st= art the rest of the cores and threads as well, but am still having difficul= ties 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 curren= tly 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/mip= s/rt305x and in sys/dev/rt for the ethernet/switch peripheral), but it need= s 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, especiall= y 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 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 guys = can download it and see if it starts up on your boards=E2=80=A6 >>> It won=E2=80=99t do too much at the moment, unless you have a SATA disk= with root filesystem (UFS) attached on an ASMedia 1061 on PCIe. :-) >>> >>> Also, for the guys that mentioned they had MT7621 based boards: how muc= h 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.org" >