From owner-freebsd-mips@freebsd.org Thu Apr 28 14:12:02 2016 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 22D2AB1FBE6 for ; Thu, 28 Apr 2016 14:12:02 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::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 AE21B1ECB for ; Thu, 28 Apr 2016 14:12:01 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22e.google.com with SMTP id g17so43746123wme.1 for ; Thu, 28 Apr 2016 07:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:date:message-id:cc:to:mime-version; bh=9ySDucavKEEHZstcbwonKSoF46yDoAjQd7NEVMzRo5M=; b=Ckeo4fp9273ldCmMjDfWTPOikPtXTVXVupkE4rtZrTuTQuzC34Q1mlzqKTEP9IVjnY So/aVz4zZOztRJgK9t9RPI6FfEO/PVPTi8oj5GuecttonIUWEhm+GvvYG0N1H1H+a5bj V3/5CFd/FVC+NfOojaOgwM+v6Gdm87GTBqmC3bnvXhBNfyK3xjnLXgIXNLeOpkhO1lS+ 3QCsrF/UNQJB7Gt9kPUkJCckQTqqxniXj/FfzFm6AvFbjwQ/TKdrEO67Aok+8dNBZhpJ 4k9VIIdDF19C5UyPInj3+/K9KpqCkmAJyARVoSjp/0BzsuVQwoERKWJN1YD5AlOx7w88 sPYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:date:message-id:cc:to:mime-version; bh=9ySDucavKEEHZstcbwonKSoF46yDoAjQd7NEVMzRo5M=; b=Me8a7H5xpU75dnAhxDHmnTjcWJiiEeF6FB56qxGU7gnGs2hYY9mZhDJVALQ5EdOo+A 4KWHmhBaxxz2xz/u0y/sIfD9JHyec4v+R0BitAKCKo5YomU1yjjZ3IfisTvMAGN/pK44 Fi6yHUgk7gPS0Mno/EBoH1rlqkkosRRMVLlltNkyXSW5mmy13XE3MeeHqaUX2RWFVQLW GI3WUtUZG1R9kL387VieOHk2ZNPWAF8rVdwgqM1d1dLfkTT+A48zTW9e3W7rryLF7iMq 1uqAwSuHK/rYO1VxAFoqUuiQwBKQQ3jDuYnTq9j8nzgjdIauN2MUpMRKfhr1CQSlHtzd FA0g== X-Gm-Message-State: AOPr4FXmELr2k+lKr1NQk1siaIESr+TSz/MZmK3DwyhdG1mZjVbpb28a+aBZqAXjqTsewA== X-Received: by 10.28.94.5 with SMTP id s5mr16980303wmb.26.1461852719412; Thu, 28 Apr 2016 07:11:59 -0700 (PDT) Received: from [192.168.252.71] ([193.178.153.36]) by smtp.gmail.com with ESMTPSA id gt7sm9902382wjc.1.2016.04.28.07.11.58 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Apr 2016 07:11:58 -0700 (PDT) From: Stanislav Galabov X-Pgp-Agent: GPGMail 2.6b2 Content-Type: multipart/signed; boundary="Apple-Mail=_723D04C6-0E9E-49C9-BE6F-99BF9565EE00"; protocol="application/pgp-signature"; micalg=pgp-sha512 Subject: Mediatek / Ralink status Date: Thu, 28 Apr 2016 17:11:56 +0300 Message-Id: <79DA8224-E857-4B86-81EC-D7A9E765E201@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.21 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2016 14:12:02 -0000 --Apple-Mail=_723D04C6-0E9E-49C9-BE6F-99BF9565EE00 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi all, Just to let you know, basic support for the following Mediatek/Ralink = SoCs (with FDT) should now be in -head [1]: RT3050, RT3052, RT3350, = RT3352, RT5350, RT3662, RT3883, RT5350, MT7620 (A and N versions), = MT7621, MT7628 and MT7688. The following are the kernel configurations for the SoCs: RT3050_FDT -> for RT3050, RT3052 and RT3350 SoCs RT3352_FDT -> for RT3352 SoC RT3883_FDT -> for RT3662 and RT3883 SoCs RT5350_FDT -> for RT5350 SoC MT7620A_FDT -> for MT7620A SoC MT7620N_FDT -> for MT7620N SoC MT7621_FDT -> for MT7621 SoC MT7628_FDT -> for MT7628 and MT7688 SoCs The DTS files for the supported SoCs and boards can be found in = sys/gnu/dts/mips. When compiling a kernel for a given board, the following should be taken = into account: 1. Which SoC is the target board using. 2. Which DTS file describes the target board. For example, if we look at the WiTi board, the SoC is MT7621 and the DTS = file name is WITI.dts. So, when building the kernel, we can follow the instructions at [2] = (thanks, ray) and just replace the actual build line (the line after = "Build mipsel toolchain and then kernel:=E2=80=9D) with: bmake KERNCONF=3D FDT_DTS_FILE=3D TARGET=3Dmips = TARGET_ARCH=3Dmipsel kernel-toolchain buildkernel where: - kern_name is the name of the kernel which supports the target SoC from = the above list - dts_name is the name of the DTS file for the target board as found in = sys/gnu/dts/mips. So, again, for the WiTi board, we=E2=80=99d have: bmake KERNCONF=3DMT7621_FDT FDT_DTS_FILE=3DWITI.dts TARGET=3Dmips = TARGET_ARCH=3Dmipsel kernel-toolchain buildkernel Because this question was raised before, where the wiki page [2] refers = to oldlzma or lzma 4.17, I actually have successfully used lzma-4.32.7 = from here (built from source) [3]. At the moment the following things are supposed to be supported, = depending on whether the target SoC has support for them: interrupt = controllers, pinmux, gpio, uart, spi, usb (otg/ehci, ohci/xhci), = ethernet, pci. I would appreciate feedback on all this. I=E2=80=99ve tried to test with = most of the SoCs listed above, but I don=E2=80=99t have RT3350 and = MT7628 and I fried my last RT3052 in another experiment recently, so I = haven=E2=80=99t tested specifically on these. I have, however, tested on = RT3050 (supported by the same kernel as the RT3052 and RT3350) and = MT7688 (supported by the same kernel as MT7628) and things seem fine on = my boards. Who knows, though? I may have missed something.. Best wishes, Stanislav [1] - https://svnweb.freebsd.org/changeset/base/298501 [2] - https://wiki.freebsd.org/FreeBSD/mips/RT3052F [3] - http://tukaani.org/lzma/lzma-4.32.7.tar.gz --Apple-Mail=_723D04C6-0E9E-49C9-BE6F-99BF9565EE00 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJXIhotAAoJEIKmgXSGgsogJtYIAL6nLvn0RwT6aZmLncShVLLc yq1kC8zn6P2eh9tovbYX+Sx2HMhGH8OopUqEG2fPASiA2KO3XuFYO5R+YatMKKLf GSTA7GhCvIhFiP8VcO5/0014s7Ku68lw5ZixdueGJxb7msb5U/4fEWpwAA7UCGDj SWV+//W+LeHEWZLA0kqguLBdBEqVjhchh5ZOBeiO3B//Cbp1MMT0lzWnp9X17D3c 7MK+xlGFv7nXHbBzpwyyv62Hhrra2j49dZJiwM/sGU5NLu3qo8aCopZvoKtXgxiw nobhzjOXL6Ko9egeai2+SSkm2oxN42NOuqDKEzmld/0tGAJIgzwpDRzYXOmvb7Q= =V1ud -----END PGP SIGNATURE----- --Apple-Mail=_723D04C6-0E9E-49C9-BE6F-99BF9565EE00--