From owner-freebsd-mips@freebsd.org Sat Dec 26 05:15:37 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 60BACA52058 for ; Sat, 26 Dec 2015 05:15:37 +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 07E021994 for ; Sat, 26 Dec 2015 05:15:36 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id p187so211837315wmp.0 for ; Fri, 25 Dec 2015 21:15:36 -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=6wmr/0NtgGE7Y6Iv0v3G9n16maNXY1x95x39AM5LamQ=; b=ZeUwMAAvUoWUNEkd7XoYzwTZafgO2FpiBykK0KFNr4Eby70NSJawt4OxULD7wmSlVV NG16EpJyiKW7i2DT0c4oHQ4UM4ndqj9TrFgLyu0WBLNLB4YTOAPMyGwrlC2F4MkHdK62 PUNbW+9Uycgnf0vcROn+/Q9v92SxRZOynZS8eQJTputlcOuouyioQwOMMunshG8oWBe3 lAZKTCgWjiCugd+Mp3dU8fwI4if33weyLBDenjNIot0RcoFYZmW84iNV9F3d5g5zK15/ 0F03cvbVUF8fB9iG79UvcotyZy/+W9zHQn3zjvMHSs2Chai1oepgcFSpQdUbXPW48V1+ 8zEg== X-Received: by 10.28.49.3 with SMTP id x3mr49583034wmx.53.1451106934591; Fri, 25 Dec 2015 21:15:34 -0800 (PST) Received: from [10.0.50.3] ([94.155.70.123]) by smtp.gmail.com with ESMTPSA id z3sm36460385wjx.38.2015.12.25.21.15.33 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Dec 2015 21:15:33 -0800 (PST) References: <201512260057.tBQ0vcVO005566@pdx.rh.CN85.chatusa.com> Mime-Version: 1.0 (1.0) In-Reply-To: <201512260057.tBQ0vcVO005566@pdx.rh.CN85.chatusa.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <10F858B5-2F48-4E23-996A-E6D9663FEB46@gmail.com> Cc: Willem Jan Withagen , "freebsd-mips@freebsd.org" X-Mailer: iPad Mail (12A405) From: Stanislav Galabov Subject: Re: mt7620 works! Date: Sat, 26 Dec 2015 07:15:33 +0200 To: "Rodney W. Grimes" 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, 26 Dec 2015 05:15:37 -0000 > On 26.12.2015 =D0=B3., at 2:57, Rodney W. Grimes wrote: >=20 > ... >>> But if you're trying to build a kernel for the WiTi board (MT7621) you w= on't be able to as the MT7621 bits are still not in -head. >>>=20 >>> The last commits by Adrian only support RT305x and introduce support for= RT5350 (basic support) and MT7620. The MT7620 is substantially different th= an the MT7621, so it's not a straightforward thing to make it work (UART is d= ifferent for one). >>>=20 >>> I'll continue working on Mediatek/Ralink support in the new year, so hop= efully things are going to get easier then. >>=20 >> Sort of informative, but the page refers to 'oldlzma'. >> Which I suspect is needed otherwise Uboot starts complaining about >> during decompressing and aborts. >=20 > Also I see in the page where some of the magic 0x80xxxxxx addresses come f= rom, but where > did the magic number come from for these two commands: >=20 > tftpboot 0x80800000 DIR-620/kernel.oldlzma.uboot > bootm 0x80800000 >=20 >=20 > --=20 > Rod Grimes rgrimes@freebsd= .org 0x80800000 is u-boot's default value for the loadaddr environment variable o= n some Ralink/Mediatek boards. This is the address which is used for loading= stuff via tftp for example. In any case, it could be any valid memory address, which wouldn't cause over= writing u-boot itself while loading a file (kernel image in this case) via t= ftp. U-boot will then properly relocate the loaded file to the address insid= e the image header before booting the kernel as part of executing the bootm c= ommand. I guess the page author didn't think it was necessary to add this informatio= n...=