From owner-freebsd-mips@freebsd.org Tue Nov 1 14:56:34 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 8AFC3C2853F for ; Tue, 1 Nov 2016 14:56:34 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (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 1DE601CEE; Tue, 1 Nov 2016 14:56:34 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x242.google.com with SMTP id 68so16332262wmz.2; Tue, 01 Nov 2016 07:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UasqHyRDgX/uLFrg0Xwqcrx6ovV+/KynbfrkATVenbI=; b=oybPlOW+Ht+zvjoN/HFArycEu/ziuShdujq8iwlUS1iOY84JA/4eegegjuHPeHgVPm aO3+9m+ascWZeOzPesWdxNgWbjb0sJgwdXjzmJXutqj9sFN5G3riKYGFl/2fQ52sgJWh bt4dBfGXHfoDvj0WBjEZJe6gML7tOPtBhr3rJtN1T2zaGhKsHevV1BEpbQVc5qL0np+A 0C1dD9KXYLmrAMNVI+4ExwBpUkdXPYJsbx6f/qKA85fFqaHpwdAcrwHf4ZhIgMI61Zjh KvU0LOIwB5LxrfGHjl3WZZTpF/nwuKx27rIa5uBEztXPkPFykZx2uyy/GYFxjjVXhsC/ TytQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UasqHyRDgX/uLFrg0Xwqcrx6ovV+/KynbfrkATVenbI=; b=ZWx63y1cMKBht0Fc0H+3I/2TisH7aXtQMEbYvIAJGanyg7U4GkYTCtBTydvPkMfJ6K KIlhLYyd5D/OarzOxRUMLTdtx17X2ik8VWdvFYasB4hVUFOPtgi1SIrrrH79kZQtlsRS Dc4Bg7VtMtHWrI7y5hUGJPbDYgmgOivGJPOPbgB6/nkxhustUe9zyFH8OkQ8QAJ/GkEI 7U2AWsrilCSyAlaHuM2hf3qm3ntSFXNk0y30hLv3o3k6pTgSA5HvID1g67lf69vZPBV6 TsD+a0i40I1jlkaiULDd8Y6Skm7cZ/dYKVXs7pkOtAGIKrcNaQqZumNs0TzzCDp0nJLv Gwhw== X-Gm-Message-State: ABUngvcNqEEfhPOM/znctpBnI4IizDK/45ZeUF2cvnFL5DJsQkCsvzfIIjFGOZrgnKE5iQ== X-Received: by 10.194.5.161 with SMTP id t1mr8277314wjt.160.1478012192181; Tue, 01 Nov 2016 07:56:32 -0700 (PDT) Received: from [192.168.252.71] ([193.178.153.36]) by smtp.gmail.com with ESMTPSA id 18sm30847824wmr.5.2016.11.01.07.56.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Nov 2016 07:56:31 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.0 \(3226\)) Subject: Re: nexx wt3020h From: Stanislav Galabov In-Reply-To: Date: Tue, 1 Nov 2016 16:56:30 +0200 Cc: Stanislav Galabov , freebsd-mips@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <880C1E42-48BB-4386-98D2-CFE43F49028F@gmail.com> References: To: Sean Bruno X-Mailer: Apple Mail (2.3226) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2016 14:56:34 -0000 > On Nov 1, 2016, at 16:40, Sean Bruno wrote: >=20 >=20 >=20 > On 11/01/16 02:11, =D0=91=D0=BE=D1=80=D0=B8=D1=81 wrote: >> Hi, is it possible to build FreeBSD image for nexx wt3020h = https://wiki.openwrt.org/toh/nexx/wt3020 >> and where i can find actual step by step howto? Thanks. >>=20 >>=20 > This CPU seems to be supported in sys/mips/mediatek/mtk_soc.c >=20 > It looks like you need to get the TTL serial port setup first, > = https://wiki.openwrt.org/_detail/media/nexx/wt3020/wt3020a_serial_ttl.jpg?= id=3Dtoh%3Anexx%3Awt3020 >=20 > Then you will want to use the freebsd-wifi build tools to get a small > image (USB image as the flash is too small to boot up FreeBSD). >=20 > https://github.com/freebsd/freebsd-wifi-build >=20 > Nobody has booted this device on FreeBSD as far as I can tell. >=20 > You will need to construct a new kernel config (sys/mips/conf) and a = new > freebsd-wifi build configuration to boot from a usb image. Its a fun > project, but you will need to do some work. >=20 > sean >=20 MT7620N based boards should boot just fine. I have tested with one while = developing the mediatek support. It looks like you=E2=80=99ll need the WT3020-8M.dts file found in = sys/gnu/dts/mips and use that when building with freebsd-wifi-build. I am not sure if we=E2=80=99ll detect the full 64MB RAM - this would = depend on U-Boot installed on the board. In case we only detect 32MB = you=E2=80=99ll have to tweak the dts file a little, but let=E2=80=99s = take this one step at a time. I don=E2=80=99t think you=E2=80=99ll have to tweak anything in the = kernel config - just tell freebsd-wifi-build to build you an image for = ralink WT3020-8M.dts: build ralink WT3020-8M.dts This, as far as I remember, should be a good starting point. Best wishes, Stanislav=