From owner-freebsd-mips@freebsd.org Thu May 5 05:55:17 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 16743B2E195 for ; Thu, 5 May 2016 05:55:17 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (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 9DC2512FF; Thu, 5 May 2016 05:55:16 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x244.google.com with SMTP id n129so1565930wmn.1; Wed, 04 May 2016 22:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=xc5RAcdYUVAFfit8BXMzXB+nVuRNsozRdF8NOqNRrX0=; b=pSgQkc+QFMVUOVYwpNa6Bcsbz5vSCnKVT2ezZFNjfWcbRIzmF1z9rvAIhaIdZyypAY uvoODt+eGBId2nn76lPVShETT8q93+y/t3BQilkNS1o09FlmuSg//Q9kftC74gjjaU3X SwCEwb+Dbj9PZkw+TckQOCwZCN9bl6keDHMkaacUnSWEXsNv+ebxgTYPmGmNFUP21zbW ZnH7oTByCVUVxbA0NT0WvWxQ4vso3mGXC8cXCQ0U02RlaivpRjkQIJa9Y+bnUfUE8PBJ 03QTrgmgzsZVMULeHup2c64/Bwh4VL2Vnbay02yCj6lYIUhBtHjNmU4OGi6vFkLJAJBS fmxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=xc5RAcdYUVAFfit8BXMzXB+nVuRNsozRdF8NOqNRrX0=; b=c8ST8YS2DfpO13vH7l9g8MDtSFBw3x5Hfw+n7csYS1bpIkYc75LfAvM1N1RBVYryVe yu31oOddcVYvDi3bVEq+D+BNMGcmlrRgWyHiS5jlH+FqjqqHjrjGdVw8zAPAGX9PkJvx iRQBxuIiYoZNUjgB3kSYhtr4AJvLtbmD8dMYbeAPa1JGWC8u21CVWFfYaGHntnPTv6KY ufAnCSXnf5xaCMYVLNTCcIsz7hCHLMq7wuF9JI/mX7PnfV9tD0AsRQ7rvN/KxMUCAWVU YUYPlHSCNkDrZmh/jgytU+tYar2wymjTo8u8WF1BuzaAoyVRo0yanLIREC+5iGM0khqH bxXg== X-Gm-Message-State: AOPr4FXB6Pn9AvtO72IlqoLgzaA3nbAGhAzMgSTBJqz1hs/EdGk74MPkZsn4NZ1H8g+v4g== X-Received: by 10.194.134.3 with SMTP id pg3mr12098715wjb.141.1462427714293; Wed, 04 May 2016 22:55:14 -0700 (PDT) Received: from ?IPv6:2001:67c:2154:ffff:a00a:b480:9f77:d9c6? ([2001:67c:2154:ffff:a00a:b480:9f77:d9c6]) by smtp.gmail.com with ESMTPSA id a207sm1354849wma.8.2016.05.04.22.55.13 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 May 2016 22:55:13 -0700 (PDT) Subject: Re: Mediatek / Ralink status Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Content-Type: multipart/signed; boundary="Apple-Mail=_44889277-A946-43CF-933B-AFB2D089A83D"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: Stanislav Galabov In-Reply-To: <20160505022705.GA95034@ns.kevlo.org> Date: Thu, 5 May 2016 08:55:11 +0300 Cc: Stanislav Galabov , freebsd-mips@freebsd.org Message-Id: <97387813-1819-4BF3-819C-98ECF1B855B5@gmail.com> References: <79DA8224-E857-4B86-81EC-D7A9E765E201@gmail.com> <20160505022705.GA95034@ns.kevlo.org> To: Kevin Lo X-Mailer: Apple Mail (2.3094) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2016 05:55:17 -0000 --Apple-Mail=_44889277-A946-43CF-933B-AFB2D089A83D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Thanks so much for all your hard work! I can boot my WRTnode2P [1] = with the > system on the USB stick. Here's the dmesg: = http://www.pastebin.ca/3591253 >=20 > One minor tweak: for consistency it seems that devices use the = mt7628an > serial port lines for use as the console port (uartlite@c00 in the = dts). > Here's the diff, ok? Hi Kevin, You=E2=80=99re right. The reason I left serial0 set to uart2 was that = the LinkIt Smart 7688 board I have uses uart2 as console and I don=E2=80=99= t have any other MT7628/MT7688 boards to test with. This, however, brings me to another issue - the OpenWRT DTS files we use = do not specify the actual console in any FreeBSD supported way (hence = the need to specify serial0 alias in the fbsd dtsi files), so setting = serial0 to uartlite for all MT7628/MT7688 boards will break at least the = LinkIt Smart 7688 console=E2=80=A6 Probably the best way forward would be to talk to the OpenWRT guys and = see if they would be willing to include serial0 aliases in their DTS = files directly, so I can then import these and trim our fbsd dtsi files = further=E2=80=A6 but I won=E2=80=99t have time to work on this until at = least the week after next. In any case, thanks for testing this out and thanks for the patch. If = you have other Mediatek/Ralink boards you could test with I would really = appreciate it. Best wishes, Stanislav > Index: sys/boot/fdt/dts/mips/fbsd-mt7628an.dtsi > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/boot/fdt/dts/mips/fbsd-mt7628an.dtsi (revision 299107) > +++ sys/boot/fdt/dts/mips/fbsd-mt7628an.dtsi (working copy) > @@ -3,7 +3,7 @@ > / { > /* Specify alias for serial0 so we have a working console */ > aliases { > - serial0 =3D "/palmbus@10000000/uart2@e00"; > + serial0 =3D "/palmbus@10000000/uartlite@c00"; > }; >=20 > /* >=20 >> Best wishes, >> Stanislav >>=20 >> [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 >=20 > [1] = http://wiki.wrtnode.cc/index.php?title=3DWRTnode2P%E8%AF%A6%E7%BB%86%E5%8F= %82%E6%95%B0/en >=20 > Kevin --Apple-Mail=_44889277-A946-43CF-933B-AFB2D089A83D 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 iQEcBAEBCgAGBQJXKuBAAAoJEIKmgXSGgsogeysH/AzOtLG19ej3XTMOWOi7B4WP Dyw580t9rv3Bhxf3caFnfA0pVVWsb3yN4s6gtWw2y3GkvsmP+h+eeG05j9BxwkkN E9uWOxT8JhmTIMgjnPzEALihYUwTMeRY3SvEso7sW9FsiDTPGkR6okAzP9MFxtNh sLv8G2vttfcJC3Za8mdAaKzIrpDNqMYpkD2NoPtg/X4ajCRk37ipB44ej1vB1E+c KcLBFcr8vPrvBnHCoqrnEidkU4ax7gUezDIU4SnSO/bUhMUe/H+g+lZXllmnb9Fl 2rNY46LWkSCr8V5zoa1B5p84cstiBonKJZ2Ja37LV8llA4cmZsIOaR1i+WJPhx8= =x5VM -----END PGP SIGNATURE----- --Apple-Mail=_44889277-A946-43CF-933B-AFB2D089A83D--