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