From owner-freebsd-mips@freebsd.org Sun May 1 14:46:43 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 08E98B2923D for ; Sun, 1 May 2016 14:46:43 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8D2B1141E for ; Sun, 1 May 2016 14:46:42 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id AADE4153402; Sun, 1 May 2016 16:46:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bUdpS4lwpRcz; Sun, 1 May 2016 16:46:18 +0200 (CEST) Received: from [IPv6:2001:4cb8:3:1:9824:6440:b810:5806] (unknown [IPv6:2001:4cb8:3:1:9824:6440:b810:5806]) by smtp.digiware.nl (Postfix) with ESMTP id 6641215340A; Sun, 1 May 2016 16:46:18 +0200 (CEST) Subject: Re: Mediatek / Ralink status To: Stanislav Galabov , freebsd-mips@freebsd.org References: <79DA8224-E857-4B86-81EC-D7A9E765E201@gmail.com> From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <572616AD.4020706@digiware.nl> Date: Sun, 1 May 2016 16:46:05 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <79DA8224-E857-4B86-81EC-D7A9E765E201@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: Sun, 01 May 2016 14:46:43 -0000 On 28-4-2016 16:11, Stanislav Galabov wrote: > 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:”) with: bmake > KERNCONF= FDT_DTS_FILE= TARGET=mips > TARGET_ARCH=mipsel 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’d have: bmake KERNCONF=MT7621_FDT > FDT_DTS_FILE=WITI.dts TARGET=mips TARGET_ARCH=mipsel 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’ve tried to test with most > of the SoCs listed above, but I don’t have RT3350 and MT7628 and I > fried my last RT3052 in another experiment recently, so I haven’t > 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 Hi Stanislav, I'm trying to boot my Witi board with the new -head. On previous occasions I build a MT6720 version that booted. (I even ignored the compression step for the time being, since lzma was giving trouble) And that worked for all things that were available then. (Even mounted a disk) Got ARP REPLY, set server/gtwy eth addr (1c:6f:65:82:ec:12) Got it ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################### done Bytes transferred = 3838128 (3a90b0 hex) NetBootFileXferSize= 003a90b0 Automatic boot of image at addr 0x80A00000 ... ## Booting image at 80a00000 ... Image Name: FreeBSD Kernel Image Image Type: MIPS Linux Kernel Image (uncompressed) Data Size: 3838064 Bytes = 3.7 MB Load Address: 80001100 Entry Point: 80001100 Verifying Checksum ... OK OK No initrd ## Transferring control to Linux (at address 80001100) ... ## Giving linux memsize in MB, 256 Starting kernel ... FDT DTB at: 0x8037f570 CPU clock: 880MHz SYS clock: 220MHz UART clock: 50MHz U-Boot args (from 0 args): None Environment: memsize=256 initrd_start=0x00000000 initrd_size=0x0 flash_start=0x00000000 flash_size=0x1000000 entry: mips_init() RAM size: 256MB (from memsize) Cache info: picache_stride = 4096 picache_loopcount = 8 pdcache_stride = 4096 pdcache_loopcount = 8 cpu0: MIPS Technologies processor v47.153 MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes) L1 i-cache: 4 ways of 256 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line L2 cache: 8 ways of 1024 sets, 32 bytes per line, 256 KiB total size Config1=0xbea3519e Config2=0x80000447 Config3=0x2000242c Physical memory chunk(s): 0x434000 - 0xfffffff, 264028160 bytes (64460 pages) Maxmem is 0x10000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2016 The FreeBSD Project. [And the stuff boots.] Now doing the same with the new kernel, it gets stuck at: Bytes transferred = 5109292 (4df62c hex) NetBootFileXferSize= 004df62c Automatic boot of image at addr 0x80A00000 ... ## Booting image at 80a00000 ... Image Name: FreeBSD Kernel Image Image Type: MIPS Linux Kernel Image (uncompressed) Data Size: 5109228 Bytes = 4.9 MB Load Address: 80001100 Entry Point: 80001100 Verifying Checksum ... OK OK No initrd ## Transferring control to Linux (at address 80001100) ... ## Giving linux memsize in MB, 256 Starting kernel ... [ And then the system freezes ] Any suggestions on how to diagnose this freeze? Thanx, --WjW From owner-freebsd-mips@freebsd.org Sun May 1 15:05:26 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 B18D3B295C5 for ; Sun, 1 May 2016 15:05:26 +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 4AC921D98 for ; Sun, 1 May 2016 15:05:26 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id e201so80355262wme.0 for ; Sun, 01 May 2016 08:05:26 -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=CR5uaJS6zvCf8ikoXw8/7O/uHJIJyUmXYQpcR4Yqvwg=; b=0IGw0ddH3sX+pdeoyx+8qy2Sy2SXuQttXk2p+aiuWLIjT3B4t5wQhAG/BIDE+5eQaq I2FSujmquSfDPhxCRauJCRHwZ9BAR7ACcIDuOZq6wAgNGxhiwldligxzQedyZz4/JVn7 Ae1TqAEV/EoSjX5sBmYLkBEPECtiFe/iOAwskE7H1whTLkUFKY4qIqMYwuK/DtEv0mRb iSRQxxuFLt7dSrfoa2eXpJ1/udBttr3w3ls+ep7++siEnhD4/zzjz20ma4pOQal/KDLG ottgT7VZNifN02XsN0LzI8Q1dpWLCPQaVHpbsKKMmeKYnuM611z4zXAN6tHoChCdpNxb W8dQ== 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=CR5uaJS6zvCf8ikoXw8/7O/uHJIJyUmXYQpcR4Yqvwg=; b=LEW0cycpPm3agEJf+7ZpJJrh72mXtob/clcViGXfn5WnX/vIGmhacaUnykvwjNUUpH gU30uAvd8kwDQntfAqMk91jFXI/9Fm1HJAeRL+LlV2xvIdLyXM1XMc8vKmwwpUifqZuE 3wEZXKIKwzQ77zsnFyGH59kENhQiyOt+SoGRZb9MD5eZkjaAZPmHuUb6DhpBEqu5L6t/ zUtuxXVPFBxyoySVtlhFHX9tO0+ZlMvJKCiCYm+wR8+3G0tPf81gXOa8p+LebqWo+DeB 7EzjuZxNY3PMBwIvg8qBOlHJ7XAXxjjHaBllq7acyY2ETKVEDkQtvFKgmTqHr7n65lJ8 Hq6w== X-Gm-Message-State: AOPr4FUuSyEDthaXtzIJoqthNG50H8buxdWvqoW3d1PRT6aW46LdgScItG+3XQU/HomIJg== X-Received: by 10.28.153.129 with SMTP id b123mr15273313wme.1.1462115124411; Sun, 01 May 2016 08:05:24 -0700 (PDT) Received: from [192.168.1.203] ([94.236.232.190]) by smtp.gmail.com with ESMTPSA id jr8sm25300372wjb.15.2016.05.01.08.05.23 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 01 May 2016 08:05:23 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: Mediatek / Ralink status From: Stanislav Galabov X-Mailer: iPhone Mail (12B440) In-Reply-To: <572616AD.4020706@digiware.nl> Date: Sun, 1 May 2016 18:05:22 +0300 Cc: "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <48872155-C822-4B18-9B00-1689692DD294@gmail.com> References: <79DA8224-E857-4B86-81EC-D7A9E765E201@gmail.com> <572616AD.4020706@digiware.nl> To: Willem Jan Withagen 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: Sun, 01 May 2016 15:05:26 -0000 > Hi Stanislav, >=20 > I'm trying to boot my Witi board with the new -head. > On previous occasions I build a MT6720 version that booted. (I even > ignored the compression step for the time being, since lzma was giving > trouble) > And that worked for all things that were available then. (Even mounted a d= isk) > Got ARP REPLY, set server/gtwy eth addr (1c:6f:65:82:ec:12) > Got it > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################### > done > Bytes transferred =3D 3838128 (3a90b0 hex) > NetBootFileXferSize=3D 003a90b0 > Automatic boot of image at addr 0x80A00000 ... > ## Booting image at 80a00000 ... > Image Name: FreeBSD Kernel Image > Image Type: MIPS Linux Kernel Image (uncompressed) > Data Size: 3838064 Bytes =3D 3.7 MB > Load Address: 80001100 > Entry Point: 80001100 > Verifying Checksum ... OK > OK > No initrd > ## Transferring control to Linux (at address 80001100) ... > ## Giving linux memsize in MB, 256 >=20 > Starting kernel ... >=20 > FDT DTB at: 0x8037f570 > CPU clock: 880MHz > SYS clock: 220MHz > UART clock: 50MHz >=20 > U-Boot args (from 0 args): > None > Environment: > memsize=3D256 > initrd_start=3D0x00000000 > initrd_size=3D0x0 > flash_start=3D0x00000000 > flash_size=3D0x1000000 > entry: mips_init() > RAM size: 256MB (from memsize) > Cache info: > picache_stride =3D 4096 > picache_loopcount =3D 8 > pdcache_stride =3D 4096 > pdcache_loopcount =3D 8 > cpu0: MIPS Technologies processor v47.153 > MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes) > L1 i-cache: 4 ways of 256 sets, 32 bytes per line > L1 d-cache: 4 ways of 256 sets, 32 bytes per line > L2 cache: 8 ways of 1024 sets, 32 bytes per line, 256 KiB total size > Config1=3D0xbea3519e > Config2=3D0x80000447 > Config3=3D0x2000242c > Physical memory chunk(s): > 0x434000 - 0xfffffff, 264028160 bytes (64460 pages) > Maxmem is 0x10000000 > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2016 The FreeBSD Project. > [And the stuff boots.] >=20 > Now doing the same with the new kernel, it gets stuck at: >=20 > Bytes transferred =3D 5109292 (4df62c hex) > NetBootFileXferSize=3D 004df62c > Automatic boot of image at addr 0x80A00000 ... > ## Booting image at 80a00000 ... > Image Name: FreeBSD Kernel Image > Image Type: MIPS Linux Kernel Image (uncompressed) > Data Size: 5109228 Bytes =3D 4.9 MB > Load Address: 80001100 > Entry Point: 80001100 > Verifying Checksum ... OK > OK > No initrd > ## Transferring control to Linux (at address 80001100) ... > ## Giving linux memsize in MB, 256 >=20 > Starting kernel ... > [ And then the system freezes ] >=20 > Any suggestions on how to diagnose this freeze? Can you please post your build line? >=20 > Thanx, > --WjW From owner-freebsd-mips@freebsd.org Sun May 1 15:16:40 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 E78B4B2988A for ; Sun, 1 May 2016 15:16:40 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 98E1B12F4 for ; Sun, 1 May 2016 15:16:40 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 4EA45153430; Sun, 1 May 2016 17:16:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vvX239MHpLE5; Sun, 1 May 2016 17:16:08 +0200 (CEST) Received: from [IPv6:2001:4cb8:3:1:9824:6440:b810:5806] (unknown [IPv6:2001:4cb8:3:1:9824:6440:b810:5806]) by smtp.digiware.nl (Postfix) with ESMTP id D01D4153402; Sun, 1 May 2016 17:16:08 +0200 (CEST) Subject: Re: Mediatek / Ralink status To: Stanislav Galabov References: <79DA8224-E857-4B86-81EC-D7A9E765E201@gmail.com> <572616AD.4020706@digiware.nl> <48872155-C822-4B18-9B00-1689692DD294@gmail.com> Cc: "freebsd-mips@freebsd.org" From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <57261DAB.5010107@digiware.nl> Date: Sun, 1 May 2016 17:15:55 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <48872155-C822-4B18-9B00-1689692DD294@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 01 May 2016 15:16:41 -0000 On 1-5-2016 17:05, Stanislav Galabov wrote: > >> Hi Stanislav, >> >> I'm trying to boot my Witi board with the new -head. >> On previous occasions I build a MT6720 version that booted. (I even >> ignored the compression step for the time being, since lzma was giving >> trouble) >> And that worked for all things that were available then. (Even mounted a disk) >> Got ARP REPLY, set server/gtwy eth addr (1c:6f:65:82:ec:12) >> Got it >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################### >> done >> Bytes transferred = 3838128 (3a90b0 hex) >> NetBootFileXferSize= 003a90b0 >> Automatic boot of image at addr 0x80A00000 ... >> ## Booting image at 80a00000 ... >> Image Name: FreeBSD Kernel Image >> Image Type: MIPS Linux Kernel Image (uncompressed) >> Data Size: 3838064 Bytes = 3.7 MB >> Load Address: 80001100 >> Entry Point: 80001100 >> Verifying Checksum ... OK >> OK >> No initrd >> ## Transferring control to Linux (at address 80001100) ... >> ## Giving linux memsize in MB, 256 >> >> Starting kernel ... >> >> FDT DTB at: 0x8037f570 >> CPU clock: 880MHz >> SYS clock: 220MHz >> UART clock: 50MHz >> >> U-Boot args (from 0 args): >> None >> Environment: >> memsize=256 >> initrd_start=0x00000000 >> initrd_size=0x0 >> flash_start=0x00000000 >> flash_size=0x1000000 >> entry: mips_init() >> RAM size: 256MB (from memsize) >> Cache info: >> picache_stride = 4096 >> picache_loopcount = 8 >> pdcache_stride = 4096 >> pdcache_loopcount = 8 >> cpu0: MIPS Technologies processor v47.153 >> MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes) >> L1 i-cache: 4 ways of 256 sets, 32 bytes per line >> L1 d-cache: 4 ways of 256 sets, 32 bytes per line >> L2 cache: 8 ways of 1024 sets, 32 bytes per line, 256 KiB total size >> Config1=0xbea3519e >> Config2=0x80000447 >> Config3=0x2000242c >> Physical memory chunk(s): >> 0x434000 - 0xfffffff, 264028160 bytes (64460 pages) >> Maxmem is 0x10000000 >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> Copyright (c) 1992-2016 The FreeBSD Project. >> [And the stuff boots.] >> >> Now doing the same with the new kernel, it gets stuck at: >> >> Bytes transferred = 5109292 (4df62c hex) >> NetBootFileXferSize= 004df62c >> Automatic boot of image at addr 0x80A00000 ... >> ## Booting image at 80a00000 ... >> Image Name: FreeBSD Kernel Image >> Image Type: MIPS Linux Kernel Image (uncompressed) >> Data Size: 5109228 Bytes = 4.9 MB >> Load Address: 80001100 >> Entry Point: 80001100 >> Verifying Checksum ... OK >> OK >> No initrd >> ## Transferring control to Linux (at address 80001100) ... >> ## Giving linux memsize in MB, 256 >> >> Starting kernel ... >> [ And then the system freezes ] >> >> Any suggestions on how to diagnose this freeze? > > Can you please post your build line? as per instuctions above sudo make clean sudo bmake KERNCONF=MT7621_FDT FDT_DTS_FILE=WITI.dts TARGET=mips TARGET_ARCH=mipsel kernel-toolchain buildkernel Then: > cd /usr/obj/mips.mipsel/usr/srcs/Mips/src/sys/MT7621_FDT > readelf -h kernel | grep 'Entry point address:' Entry point address: 0x80001100 > mkimage -A mips -O linux -T kernel -C none -a 0x80001100 -e 0x80001100 -n 'FreeBSD Kernel Image' -d kernel kernel.uboot [loading/exec at 0x80001120 as alternative has no success as well. ] Then load it with tftp. --WjW From owner-freebsd-mips@freebsd.org Sun May 1 16:04:12 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 A7DFBB29032 for ; Sun, 1 May 2016 16:04:12 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com [IPv6:2607:f8b0:400c:c05::233]) (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 50D121338 for ; Sun, 1 May 2016 16:04:12 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-vk0-x233.google.com with SMTP id o133so40782118vka.0 for ; Sun, 01 May 2016 09:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=DpyufIKlWIPjXz9rqOujUiSJEnhP83urVZZiMqI15PY=; b=vUDgcOXM3hrwumRgVE+RNlvWFdY1MLwD/uz/+2RLlZQXEF7bDwh7qxcugS/Tvsr4Uw 0Wn6vqFHGpoAtWaHE4GDBWUxYiFNHbZWbUodas+0UmLWQFwmWWAETIh4/6jF5KaROt9r zP+jIcrtNwScsD8olHPP1/3tAkqor4tc1/bpEzYxrtjY/ZF+IvAHF0GqVfTftF0nG0Xd eWYL9tCUSy27m6xIrKod38dVSzuXyoRQ4TwJOwsn53YQ+C1+aNKryUVPXrZE6G5SYEf4 h3iBoFG5oF00bOtyMMV3CsAlKZXUwFEijSyjqVx4fUeuwGbkNtLwfcn0hLjTYClu523u 9eLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=DpyufIKlWIPjXz9rqOujUiSJEnhP83urVZZiMqI15PY=; b=eZ8wQrFo3hbFJi0VKoKwNHFsu40h/QF8/s4A5afgeTI72XHVvaSlHcYqgQdAWT+eK8 U4lxId41BnaS6/W6SHBPbLqtNkV3tG8omQSaCAL4yxhep9p7Rj/wD27xPI5N3RMlkIzL Cn8UF43U2XjTsEdkFSbX9D/L9mRmevYsCEye+6GpI4V7eTxirlJk0oEbUnGeOxxxzZWt Zc3aouoh5AZx8KwP89qqvy7v+oykVVfmV+V9Gi0ZKNKVwr/aIPghHAx1oHDGx8wONa1Y 61D/tOODVaEK59JKCEXkhljqGIWE9FAFnTrCPc19wwzk0oHZKbDmqaL76ktdhVpCatwu XbCg== X-Gm-Message-State: AOPr4FU5lsPH6CCkeps3thKQmfymIOmwp3H9HdPtOn+htwOuv3ujZvuyJj8WWEGVhMQYMNI6nx5zHzMfBSQ4XA== MIME-Version: 1.0 X-Received: by 10.31.190.202 with SMTP id o193mr4215477vkf.50.1462118651298; Sun, 01 May 2016 09:04:11 -0700 (PDT) Received: by 10.31.183.146 with HTTP; Sun, 1 May 2016 09:04:11 -0700 (PDT) In-Reply-To: <57261DAB.5010107@digiware.nl> References: <79DA8224-E857-4B86-81EC-D7A9E765E201@gmail.com> <572616AD.4020706@digiware.nl> <48872155-C822-4B18-9B00-1689692DD294@gmail.com> <57261DAB.5010107@digiware.nl> Date: Sun, 1 May 2016 19:04:11 +0300 Message-ID: Subject: Re: Mediatek / Ralink status From: Stanislav Galabov To: Willem Jan Withagen Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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: Sun, 01 May 2016 16:04:12 -0000 Hi Willem, It seems you've missed the objcopy step to convert kernel to kernel.bin and then run mkimage on the kernel.bin. Please try that and let me know how it goes. Best wishes, Stanislav On Sun, May 1, 2016 at 6:15 PM, Willem Jan Withagen wrote: > On 1-5-2016 17:05, Stanislav Galabov wrote: > >> >> Hi Stanislav, >>> >>> I'm trying to boot my Witi board with the new -head. >>> On previous occasions I build a MT6720 version that booted. (I even >>> ignored the compression step for the time being, since lzma was giving >>> trouble) >>> And that worked for all things that were available then. (Even mounted a >>> disk) >>> Got ARP REPLY, set server/gtwy eth addr (1c:6f:65:82:ec:12) >>> Got it >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> ################################### >>> done >>> Bytes transferred = 3838128 (3a90b0 hex) >>> NetBootFileXferSize= 003a90b0 >>> Automatic boot of image at addr 0x80A00000 ... >>> ## Booting image at 80a00000 ... >>> Image Name: FreeBSD Kernel Image >>> Image Type: MIPS Linux Kernel Image (uncompressed) >>> Data Size: 3838064 Bytes = 3.7 MB >>> Load Address: 80001100 >>> Entry Point: 80001100 >>> Verifying Checksum ... OK >>> OK >>> No initrd >>> ## Transferring control to Linux (at address 80001100) ... >>> ## Giving linux memsize in MB, 256 >>> >>> Starting kernel ... >>> >>> FDT DTB at: 0x8037f570 >>> CPU clock: 880MHz >>> SYS clock: 220MHz >>> UART clock: 50MHz >>> >>> U-Boot args (from 0 args): >>> None >>> Environment: >>> memsize=256 >>> initrd_start=0x00000000 >>> initrd_size=0x0 >>> flash_start=0x00000000 >>> flash_size=0x1000000 >>> entry: mips_init() >>> RAM size: 256MB (from memsize) >>> Cache info: >>> picache_stride = 4096 >>> picache_loopcount = 8 >>> pdcache_stride = 4096 >>> pdcache_loopcount = 8 >>> cpu0: MIPS Technologies processor v47.153 >>> MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg >>> sizes) >>> L1 i-cache: 4 ways of 256 sets, 32 bytes per line >>> L1 d-cache: 4 ways of 256 sets, 32 bytes per line >>> L2 cache: 8 ways of 1024 sets, 32 bytes per line, 256 KiB total size >>> Config1=0xbea3519e >>> Config2=0x80000447 >>> Config3=0x2000242c >>> Physical memory chunk(s): >>> 0x434000 - 0xfffffff, 264028160 bytes (64460 pages) >>> Maxmem is 0x10000000 >>> KDB: debugger backends: ddb >>> KDB: current backend: ddb >>> Copyright (c) 1992-2016 The FreeBSD Project. >>> [And the stuff boots.] >>> >>> Now doing the same with the new kernel, it gets stuck at: >>> >>> Bytes transferred = 5109292 (4df62c hex) >>> NetBootFileXferSize= 004df62c >>> Automatic boot of image at addr 0x80A00000 ... >>> ## Booting image at 80a00000 ... >>> Image Name: FreeBSD Kernel Image >>> Image Type: MIPS Linux Kernel Image (uncompressed) >>> Data Size: 5109228 Bytes = 4.9 MB >>> Load Address: 80001100 >>> Entry Point: 80001100 >>> Verifying Checksum ... OK >>> OK >>> No initrd >>> ## Transferring control to Linux (at address 80001100) ... >>> ## Giving linux memsize in MB, 256 >>> >>> Starting kernel ... >>> [ And then the system freezes ] >>> >>> Any suggestions on how to diagnose this freeze? >>> >> >> Can you please post your build line? >> > > as per instuctions above > > sudo make clean > sudo bmake KERNCONF=MT7621_FDT FDT_DTS_FILE=WITI.dts TARGET=mips > TARGET_ARCH=mipsel kernel-toolchain buildkernel > > Then: > >> cd /usr/obj/mips.mipsel/usr/srcs/Mips/src/sys/MT7621_FDT >> readelf -h kernel | grep 'Entry point address:' >> > Entry point address: 0x80001100 > > mkimage -A mips -O linux -T kernel -C none -a 0x80001100 -e 0x80001100 -n >> 'FreeBSD Kernel Image' -d kernel kernel.uboot >> > [loading/exec at 0x80001120 as alternative has no success as well. ] > > Then load it with tftp. > > --WjW > From owner-freebsd-mips@freebsd.org Sun May 1 21:32:27 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 B61F7B29D98 for ; Sun, 1 May 2016 21:32:27 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 838101886 for ; Sun, 1 May 2016 21:32:27 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id B775A15340A; Sun, 1 May 2016 23:32:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MCmCySGkQ-jj; Sun, 1 May 2016 23:32:04 +0200 (CEST) Received: from [192.168.10.10] (asus [192.168.10.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 6E4DC153416; Sun, 1 May 2016 23:32:04 +0200 (CEST) Subject: Re: Mediatek / Ralink status To: Stanislav Galabov , freebsd-mips@freebsd.org References: <79DA8224-E857-4B86-81EC-D7A9E765E201@gmail.com> From: Willem Jan Withagen Message-ID: <9c56b3d3-a248-eea7-f61c-94a418ad6cbb@digiware.nl> Date: Sun, 1 May 2016 23:32:05 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <79DA8224-E857-4B86-81EC-D7A9E765E201@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: Sun, 01 May 2016 21:32:27 -0000 On 28-4-2016 16:11, Stanislav Galabov wrote: > 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. My WiTiBoard contains 2 WIFI adapters: none0@pci0:1:0:0: class=0x028000 card=0x766214c3 chip=0x766214c3 rev=0x00 hdr=0x00 vendor = 'MEDIATEK Corp.' device = 'MT7662E 802.11ac PCI Express Wireless Network Adapter' class = network none1@pci0:2:0:0: class=0x028000 card=0x766214c3 chip=0x766214c3 rev=0x00 hdr=0x00 vendor = 'MEDIATEK Corp.' device = 'MT7662E 802.11ac PCI Express Wireless Network Adapter' class = network Any chance of these being supported? --WjW From owner-freebsd-mips@freebsd.org Mon May 2 00:35:52 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 F413AAD980F for ; Mon, 2 May 2016 00:35:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (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 C6A051EEC for ; Mon, 2 May 2016 00:35:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x232.google.com with SMTP id u10so71585586igr.1 for ; Sun, 01 May 2016 17:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc; bh=0gIjAjOb/EEoL775x7Hr7JOssZXunX9yEXzkkC2jpBc=; b=dvnZE3ERFs5qCH8XvIe5A7bPGTdTGwDebRUgoojsgs5yERXt/nxRWCh9FLYETuTt1x PGLd8dHpz0MGU9FDT1xDvdMLCxn1L23WDoMH8rODGw37BVB7/F8XguNefqHxS4BAPve5 Lfr6PdRvoHMs5LfwC5U7JVEKZcnhtDuLZoiX0ZUSw+RG6mLLHT8B3pOaZNELbMjL4zrM YQlXWoAfwCmy17j/d+ZYoJ+a3EqyHCfkiL7g51P66NzZ4s0VH6P1jgn7eWvLl8+EWvTF fjgeVMVhlj7Et3tov41H6g4OeEksT0Jl8X+/HmlEa91eKw/XtY3dAIFRIhUmOxXzA4jf ZHQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:cc; bh=0gIjAjOb/EEoL775x7Hr7JOssZXunX9yEXzkkC2jpBc=; b=SuI7zxeuLIGT8jYddcjqXJa8Ws2rQYbaMA1h5Juc4RYITWv4B9Vkj3/wSNHpMqiDla FVU0bnb4LypqjMP8zX8TRRdmsmEQVzaaEFTtfTdusmi28Bs2BdpUIVktg+LNFOnUrzcR HEF7svzZucXzPx2v9Fl7ysqp0tyVDsfdcaC/J+YLLva0kR1HvFZisNjpgmtGqsGs7/ef +GlyTuiBBQQcN9B9DtCJkcn80dMZShJo1gKptev/36r0hVcx23A984mIzrspxTc2Olo5 scl7etxih1a1a1u4gcuDe764hXlRaisdB846uAZIkhxrPOuabaxcZkL6xsf0cP35sa8l MMwg== X-Gm-Message-State: AOPr4FUV3hFywbrxLRA39iTZn18p1d4Z0k6R1sfZ3DBsaa6u9WbbIvJrHIDKx5xR0TNXHv4triti8fPNaKbI1w== MIME-Version: 1.0 X-Received: by 10.50.57.199 with SMTP id k7mr16540759igq.61.1462149351239; Sun, 01 May 2016 17:35:51 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.113.3 with HTTP; Sun, 1 May 2016 17:35:51 -0700 (PDT) Date: Sun, 1 May 2016 17:35:51 -0700 X-Google-Sender-Auth: oxgmQSO9D3jMWIEC3am4E5n3tto Message-ID: Subject: Re: Mediatek / Ralink status From: Adrian Chadd To: Willem Jan Withagen Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Mon, 02 May 2016 00:35:52 -0000 ... eventually. I'm waiting for the driver written by felix fietkau over at openwrt land to settle before I try porting it. (but if someone wants to do a port - please do, but do a /full/ port, not an openbsd style port.) -adrian From owner-freebsd-mips@freebsd.org Mon May 2 00:55:25 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 B0E80B22094 for ; Mon, 2 May 2016 00:55:25 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-oi0-x230.google.com (mail-oi0-x230.google.com [IPv6:2607:f8b0:4003:c06::230]) (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 7657A10FC; Mon, 2 May 2016 00:55:25 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: by mail-oi0-x230.google.com with SMTP id x19so174324069oix.2; Sun, 01 May 2016 17:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8olCSO692jWysy84hBD1NGGmf+x80aY+nQ8ed7j6Grk=; b=dNsNsxx6Joi75JGIyaoqIT8Xjrypo3m+fyWAucy45VDbmAIi+HPG1nMs6zWVvggQow VU+OwqzHqS3IW7PnHwh5dxhZ1/0L0Y4+5Vep5yXuAeu1KeAPvgw7Nl0ohcbnRvUbLUKV h5mWj9aQdMH31j8sgaaatVB3zqnd0Gy/hc/nyX98vNE5EF0ptQbiE4iD1OaDBFYfcUFU EFCs+UmfiA+yvMdw2WFhu9bpHt89iqzCiSRHZ2EgDZ5w9GFSLW/v5CgJxIL7vKFyyJqf Oc6svn7QVpapXQuITj9T6WSZWls/I/eCQ/hK4MjJ1BgQGk2BeVNTkIXPMb3hojNnbr80 ucKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8olCSO692jWysy84hBD1NGGmf+x80aY+nQ8ed7j6Grk=; b=mDHLW+A8t6SslCesFipUBjbylQSQleB7ycy5Iq5laMFEKtifDHQVcfhZ4trsII28ZQ wD3kPdsgkRsmhiF3gWQQJWHx+PhWyMEBWoPVaNy34t/kQnajL8EebX+izCWSH7WxA61t fT9F2DMa/bZaTVjn0jjiyiiiiBktdbIEmmzPFyKljFbBrPzpidsi0+e7w5u7mNw9mOWe HwsCGwwLz5TTD/lOfH/5TD8ADNL744Lf82s/tvF/szJvms3u1/5k/jVm5WuYG4M/8Io4 I3/Ao87Cqmz0OWAirY7a0xdHTfuYC/LB+TxB6U7gq46S+DsSASh9Fizg3nLePNGiCKZe fyVw== X-Gm-Message-State: AOPr4FXSn58U708Kj+nXBRUZQ0NzcpIyEk2U06vciMYRjm8mixHimTlPdjmZmypGmWhLF1MrPJVK1UX3+pzkRA== X-Received: by 10.157.31.91 with SMTP id x27mr8750690otx.153.1462150524816; Sun, 01 May 2016 17:55:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.199.79 with HTTP; Sun, 1 May 2016 17:54:45 -0700 (PDT) In-Reply-To: References: From: Outback Dingo Date: Mon, 2 May 2016 02:54:45 +0200 Message-ID: Subject: Re: Mediatek / Ralink status To: Adrian Chadd Cc: Willem Jan Withagen , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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: Mon, 02 May 2016 00:55:25 -0000 On Mon, May 2, 2016 at 2:35 AM, Adrian Chadd wrote: > ... eventually. I'm waiting for the driver written by felix fietkau > over at openwrt land to settle before I try porting it. > > (but if someone wants to do a port - please do, but do a /full/ port, > not an openbsd style port.) > > > which driver specifically? Ive got the ZBT-WG3526, which is pretty close to the WITIBoard ... right now running OpenWRT trunk as of yesterday, would love to see FreeBSD on it. > > -adrian > _______________________________________________ > 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" > From owner-freebsd-mips@freebsd.org Mon May 2 01:51:07 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 51C67B296CA for ; Mon, 2 May 2016 01:51:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (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 25DF7145A for ; Mon, 2 May 2016 01:51:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x230.google.com with SMTP id c3so14837634igl.0 for ; Sun, 01 May 2016 18:51:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=bO8SornZEByyceOVph4b4HLgkzaWSp6xCa94+krjNsA=; b=B6sbdUTUamr5irlPrXENLXLHK7rYSwu610rTNFb9k/dg6RZaYZJAafmIFLPiO8dY12 RPGdJeJ1fFqwJIj/+K3N9iuTDw2lpOuuEHaH/BPrxnaXftQrwhd/qge6F02fOj8QGYZk GezAp9mhPdekdQrel0wnETKkbrS6VL2lRSKdYNPdHMflVuGdCyJNNjs/YR/fow4KmAAV CNeG6je8B0AwGhXDqvquvUwav1hpuO699eY5JTRcOyXGaoA/tamRIIVoGeJ+bbYPJb6s hqByxVU6uqzIoECK68a3kFf7OOgoJ+HAoDYcZ+yUygyWdzXnkwD2/Dt/4fUA2kQ+yaQg IoXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=bO8SornZEByyceOVph4b4HLgkzaWSp6xCa94+krjNsA=; b=ThX/hb2OCN9n8AK3cBr9eSDvhXR017MdwLvCgrkzncbYPW7toR76xlWE9WSFf1SzBG CL6G4/mh25OraiD/Zsdf24i3Af+i8MvfgEuBfIB6EbOXiwOEzfCrMgReZ6vZ8zmPPz8c 9CL6TY1w+/u4vT7mmLUpJ7hjg3Z9RmXhQM8DeHJzPqWMnTG9OYNC/JB+j4YpV9PhEdOQ Y3syapfhJSrUimm2qTRx8jxQ/A/03MKiWcqsmfcblKKMwZR1OWKkydIPnrbmhk7T5Z+j 3/IfeV7FWzdbrAiiVILL1ScGYN2BlPIznEcx5KGJa6NHYEDXTf8cgBIjS0PWE+cl8k0q gWdw== X-Gm-Message-State: AOPr4FXnqClFCXQ3owXMaD8IidTpuXLNbKmQitMu1NgduXQR3mbp/YOFfz1sjJu5Fdjx4rOKNOpi6Cf8dlJ/Og== MIME-Version: 1.0 X-Received: by 10.50.180.202 with SMTP id dq10mr17597571igc.37.1462153866181; Sun, 01 May 2016 18:51:06 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.113.3 with HTTP; Sun, 1 May 2016 18:51:06 -0700 (PDT) In-Reply-To: References: Date: Sun, 1 May 2016 18:51:06 -0700 X-Google-Sender-Auth: 02uT4MqyOgTJ1DhouM15BTZICdw Message-ID: Subject: Re: Mediatek / Ralink status From: Adrian Chadd To: Outback Dingo Cc: Willem Jan Withagen , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Mon, 02 May 2016 01:51:07 -0000 Whatever the mt76 driver is. Check openwrt. :) -adrian On 1 May 2016 at 17:54, Outback Dingo wrote: > > > On Mon, May 2, 2016 at 2:35 AM, Adrian Chadd wrote: >> >> ... eventually. I'm waiting for the driver written by felix fietkau >> over at openwrt land to settle before I try porting it. >> >> (but if someone wants to do a port - please do, but do a /full/ port, >> not an openbsd style port.) >> >> > > > which driver specifically? Ive got the ZBT-WG3526, which is pretty close to > the WITIBoard ... right now running OpenWRT trunk as of yesterday, would > love to see FreeBSD on it. > >> >> >> -adrian >> _______________________________________________ >> 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" > > From owner-freebsd-mips@freebsd.org Mon May 2 14:25: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 2D808B285C7 for ; Mon, 2 May 2016 14:25:17 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (220-135-115-6.HINET-IP.hinet.net [220.135.115.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns.kevlo.org", Issuer "ns.kevlo.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C1D4C18FE; Mon, 2 May 2016 14:25:16 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (localhost [127.0.0.1]) by ns.kevlo.org (8.15.2/8.15.2) with ESMTPS id u42EOaiK074750 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 2 May 2016 22:24:37 +0800 (CST) (envelope-from kevlo@ns.kevlo.org) Received: (from kevlo@localhost) by ns.kevlo.org (8.15.2/8.15.2/Submit) id u42EOZgC074749; Mon, 2 May 2016 22:24:35 +0800 (CST) (envelope-from kevlo) Date: Mon, 2 May 2016 22:24:34 +0800 From: Kevin Lo To: Adrian Chadd Cc: Willem Jan Withagen , "freebsd-mips@freebsd.org" Subject: Re: Mediatek / Ralink status Message-ID: <20160502142434.GA74740@ns.kevlo.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) 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: Mon, 02 May 2016 14:25:17 -0000 On Sun, May 01, 2016 at 05:35:51PM -0700, Adrian Chadd wrote: > > ... eventually. I'm waiting for the driver written by felix fietkau > over at openwrt land to settle before I try porting it. Felix's mt76 driver works pretty much fine. > (but if someone wants to do a port - please do, but do a /full/ port, > not an openbsd style port.) > > > > -adrian Kevin From owner-freebsd-mips@freebsd.org Mon May 2 15:34:00 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 136C3B2AC39 for ; Mon, 2 May 2016 15:34:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (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 D194E1974; Mon, 2 May 2016 15:33:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x233.google.com with SMTP id bi2so87662749igb.0; Mon, 02 May 2016 08:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=uXzXDE1PgWmDLxB1XFEuj5TGqrFxBwXXJWaZEFWXujY=; b=D3EMWyN0KVgvaflZ3JGMpcrE4G200IXPsPC7rsU4Df/uSuT5MqbXWbJ4JZhIRwQ3vO tK4MWv2d0eVSnMLE/H2r/krdpYlqwizLsPWFkkyCeZ/LmlH+h2SbJmyQkVHR+rpdvttJ 16Mq511tDtJDQJNc1D8VESfOfjavdf3HNkBScFTFOIzVRZ1iSKgEvk5Y3vOPIsqpgn1J h1ZmEdHSF/LXbxOPjlj3Gaj5PPE4bNHCoxkledGL0uo2tsGYq1KFExONB4A8/5LVSFxn XeOLAY+CbN9M4q41wPLQUtNPJ+wdxsvSZxV+hlKVJCmN/MdnkgGn7XGkCXe7l6qfS6EX Mv+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=uXzXDE1PgWmDLxB1XFEuj5TGqrFxBwXXJWaZEFWXujY=; b=YZIa4E2C/49UWcy5/PDFGwOMlOFhJcp6X3WzlEc3gIEAlpIg/RWkEwSnycOqVYVVAy ZRqwqUcBwMfM/XcZ33cHMVuUrlkHwgWHfY7oKG4Stfgxpoj1EukJoz169bIgAqqNxdf9 GP1Iez3DUFadHYxpXuVQuCC/ntqS9FB7D4MKkDZAaMg0z4LQ7AGj4WK6NmrV6bqaOYnO RsCCtkZvcNaCgvQXkj2geJfGFKqJkQK0tImT/kPZJ2qvC5XPwkXFLqey4eqyCFcnaKwA i6gj5xkw4ghV6EPXCMINEC2E9X8d64WE7dou3h4NgS/Og1seUpXEhV+Ogq2o5na7ITVk V7MQ== X-Gm-Message-State: AOPr4FXZ8b8BSWzpYhpfvenuvnLheNQ0b7CgsWEu0ySdcG9bms49e4kRYb4nHQLLnxAc2knp6OJuxJs5wcHY/A== MIME-Version: 1.0 X-Received: by 10.50.3.73 with SMTP id a9mr10595402iga.22.1462203238870; Mon, 02 May 2016 08:33:58 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.113.3 with HTTP; Mon, 2 May 2016 08:33:58 -0700 (PDT) In-Reply-To: <20160502142434.GA74740@ns.kevlo.org> References: <20160502142434.GA74740@ns.kevlo.org> Date: Mon, 2 May 2016 08:33:58 -0700 X-Google-Sender-Auth: rHz--7NTIwDM5h2IXbaGrZZ2P-s Message-ID: Subject: Re: Mediatek / Ralink status From: Adrian Chadd To: Kevin Lo Cc: Willem Jan Withagen , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Mon, 02 May 2016 15:34:00 -0000 On 2 May 2016 at 07:24, Kevin Lo wrote: > On Sun, May 01, 2016 at 05:35:51PM -0700, Adrian Chadd wrote: >> >> ... eventually. I'm waiting for the driver written by felix fietkau >> over at openwrt land to settle before I try porting it. > > Felix's mt76 driver works pretty much fine. Right. Someone should do a complete, full port of it then. Just #if 0 out the 11ac bits but for the love of god don't just cut corners like iwm. -adrian > >> (but if someone wants to do a port - please do, but do a /full/ port, >> not an openbsd style port.) >> >> >> >> -adrian > > Kevin From owner-freebsd-mips@freebsd.org Tue May 3 11:29:39 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 EBA39B2B3A2 for ; Tue, 3 May 2016 11:29:39 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh502-vm9.bullet.mail.kks.yahoo.co.jp (nh502-vm9.bullet.mail.kks.yahoo.co.jp [183.79.56.154]) by mx1.freebsd.org (Postfix) with SMTP id 6A21914A5 for ; Tue, 3 May 2016 11:29:38 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.139] by nh502.bullet.mail.kks.yahoo.co.jp with NNFMP; 03 May 2016 11:26:14 -0000 Received: from [183.79.101.63] by t502.bullet.mail.kks.yahoo.co.jp with NNFMP; 03 May 2016 11:26:14 -0000 Received: from [127.0.0.1] by omp507.mail.kks.yahoo.co.jp with NNFMP; 03 May 2016 11:26:14 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 798847.61017.bm@omp507.mail.kks.yahoo.co.jp Received: (qmail 91873 invoked by uid 60001); 3 May 2016 11:26:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1462274774; bh=z2QetdkasmkdYf4IK5T+i8v+7Q/4zo5K2+tS8vhM/e4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SE+bZCGM1TiqvTT4UGSzBjXRfRWrsa8LsK6pOJ3KXhmy9wz/K83FUYx19wIyCLs6JkWqIL2fa779cquoFatgb0XaeB27b9IVSPlGOsmSG9pLZy7saEkHv70NpG1a+fe3H0pgPkQEns7mgg/Wz8RCcKQqpL4cPgNqBAfOVoqLRhM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=F4va9JmVoJTpeH81QRiKELawd9GbUjq7TbjB5m7BNL7DSvKgozzS0W/JxfaqQth7I4R3+CsaCgXIZhSOTSkCXP6Qtttu4mL/t4eqI+ZZyJe64UvrqAym1vrIBRvZMRMDrMv6GixuuluRGXjVIlNlqpipWbqTMS8LozQmJO8f8Wk=; Message-ID: <338940.84789.qm@web101717.mail.ssk.yahoo.co.jp> X-YMail-OSG: db5w_LAVM1kL49_CuPH6mo4VFNkfchmrU2bXCqdIJKzhPwA.0XGXJaz5tbpYJUCp4eagv1cw89yWxiGYUhe1qJNOpKgSYVxU3U9U.pXYEUvS8t32IEv0AksEH1RvTWv5Ja9ODIJzlKkhke1j4moyGoiWQlWfAHVS6cm2ILslC17Pj9Db3ucZz_sdExyC5Ty9Vka2jK.heoGiOIRYcqKy5_cebYpZMb7GyGYRuIq9u58F3Y81ERzA3TkwMFSRKGYF5KWQyHO7LjqkEiVQsuZUnNQY2BRmtXKDHxil3xX4fffXlC5WbC97PRvGkDP5l4Iq8JFbQszkAJDIGGrcq3TFc3xHbrWl1vO5z5cLVgYGIb03kZWHKf4jvTW.PrExNSMQsA_oC5rnx71FA7XyTHcKUecdxZM2BnAmOLexXxlfNIblRC_0oyAOSa7SJmnU.EjlLXAaAd46.K8T5zvaSXbpQTAnv23epL6ddkIcbFEF9HVUwicub2aCuTWejg_gmsFVJLUvCCjOrTaK610f23I7PDTL5ualZfMrNVuIaTIPXI4f8N7qipn2 Received: from [110.134.196.215] by web101717.mail.ssk.yahoo.co.jp via HTTP; Tue, 03 May 2016 20:26:13 JST X-Mailer: YahooMailWebService/0.8.111_69 X-YMail-JAS: d26FMc8VM1nyPWIObqkLQEeFU1q9Khz2WJCrQEFZYMTl.CX94WZIaDa9sT9kJaWBB5vpOOStaxvSWO0vo..jHxMm7_B3F7BCX1yafkV_POXGWwRXq53s9MzAWoKD52etSZtc Date: Tue, 3 May 2016 20:26:13 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: nvram2env bus error To: "freebsd-mips@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 03 May 2016 11:29:40 -0000 Hi.=0A=0AI fixed=A0nvram2env bus error on BCM5354 with CFE.=0A=0Ahttps://gi= thub.com/yamori813/freebsd/commit/07d804142e6057cbedd4706e6ef8e95945095ad2= =0A=0A=0AI don't know why changed.=0A=0AHiroki Mori From owner-freebsd-mips@freebsd.org Wed May 4 01:22:41 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 36942B2AB04 for ; Wed, 4 May 2016 01:22:41 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qk0-x244.google.com (mail-qk0-x244.google.com [IPv6:2607:f8b0:400d: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 E4F541C98 for ; Wed, 4 May 2016 01:22:40 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by mail-qk0-x244.google.com with SMTP id z3so1993040qkb.2 for ; Tue, 03 May 2016 18:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=6owrqMVrm56Kjfk99Zytn/BrDF5eMBrNR9LZ3g4SHyk=; b=oj5XOKBh3Yij71rtLdVQ+alyoBQf0zG92S/b4JuxaQfmHh1nL/YXl91B0csCLZImDX 75xffKDQ+gL9kG6nX2GyAhlk8cv0S9F8Tu01WHHOvSj19KKnN/D7o2QdpOdk2+f/ntOA VNUDJB9/32JmB+JFzIwDP5wyyen8mR58CDxU6pjsb5AMdbyWHqkF7XfaEeZAiA8W01Ah ksFcAQK6iKerOurlONYbzZgPdpvPdTMsyh9fPVtvRiubom/qZCIdFCwAPEVxaW79WHAH 4H+JrHKLQZzWOXlazEVRwuRtRZcivjTiykr7LT1AARVITZYDBjcLpS0tpkCKt1LU9PxF CiIQ== 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; bh=6owrqMVrm56Kjfk99Zytn/BrDF5eMBrNR9LZ3g4SHyk=; b=TS7umewyRvOdpWT68Scxe6f1VZMKgwsdspwHnSq63nFuLnAjRb2hXLp2yTWl6J9UzY BNSAQBg+m2WYAECfs4Cxxwrj92m9O2KLsit9vnLLUmtKNHBstEiLgARNd3+bMe/f8J2O bm949mZbDNsCUHxCqzqq1111rEDiON9jSJhuUri0678hQ9ULdT0FN/5NSOAxmrIpv260 lxGG6kGpTcYPnMH4udPVrsdy/k4hHK4yiHr0I6Ii8AVMyxcET+xO/mXkA6deVOqS7l1h snMr1e66ghoRvInMVHEvf1Tn341IxbNhpNYfVFZWqi+wito/VIMmBQfwHAp3JiMwYmK6 g98A== X-Gm-Message-State: AOPr4FXQCsv2bW8Xl4t6nT0LUVyEBqoT6O0O0plqPKuvl4HZbH+pMx5YOYhNE47vKGqS9Q== X-Received: by 10.55.71.76 with SMTP id u73mr5941421qka.6.1462324960013; Tue, 03 May 2016 18:22:40 -0700 (PDT) Received: from kan ([2601:18f:802:4680:226:18ff:fe00:232e]) by smtp.gmail.com with ESMTPSA id 13sm422729qgt.8.2016.05.03.18.22.38 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 May 2016 18:22:39 -0700 (PDT) Date: Tue, 3 May 2016 21:22:37 -0400 From: Alexander Kabaev To: Mori Hiroki Cc: "freebsd-mips@freebsd.org" Subject: Re: nvram2env bus error Message-ID: <20160503212237.525f2e34@kan> In-Reply-To: <338940.84789.qm@web101717.mail.ssk.yahoo.co.jp> References: <338940.84789.qm@web101717.mail.ssk.yahoo.co.jp> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/T5QzHhIfYd8VTVeGJFVdA1B"; protocol="application/pgp-signature" 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: Wed, 04 May 2016 01:22:41 -0000 --Sig_/T5QzHhIfYd8VTVeGJFVdA1B Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On Tue, 3 May 2016 20:26:13 +0900 (JST) Mori Hiroki wrote: > Hi. >=20 > I fixed=9Anvram2env bus error on BCM5354 with CFE. >=20 > https://github.com/yamori813/freebsd/commit/07d804142e6057cbedd4706e6ef8e= 95945095ad2 >=20 >=20 > I don't know why changed. >=20 > Hiroki Mori Probably fall-out from fdt bus-space removal. The patch is looking good.=20 --=20 Alexander Kabaev --Sig_/T5QzHhIfYd8VTVeGJFVdA1B Content-Type: application/pgp-signature Content-Description: Цифровая подпись OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJXKU7eXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDNUY3RDk5NTk5QjY0MUUxM0M1MTU2OTEw NzEzMjI5OTkyNzkyRTdFAAoJEAcTIpmSeS5+nrAP/RioZT7iOM8WIaPjUNyr6k4t gg91Sy8x7tB/p2iHJPDDjms9+kD+vORYic3VDDJhmcVY3Nv01EDT7f0mAlmELZ6+ blEALBwzgAVgwnezDh3aruuSJu9xONlouL+i+jWDDwA70IppqT3HalgSh8SBZmjH 1nP/wJ3fYeo8ASYI+rNW+cBqmQn/Bnr0aFYY/gzKZzrgkipKZHxZRUMJW6peh0XG 5BG5Ga5PFuOP/3rz7FHWvIzFJDqMTtoYQl2VY5kydvq6/uvDEc0/MBYWH3SghjOX 30rsCciEkiqBzKJEDpAIMZLIjwTIDjrhFU4+4UhgsNPFklbwGPyEUZQkV/fRFgDw LPAshvuz5sqr8oHAHeGXZlDa1Ec5gbOePVNnwD2isbboWenGd1Y6PlHYf2YlsYfv h0EqPO6FpCSrUCtkow0lrQ6jbVRLi4V4Pindv/okZMKENbCcKsAOVaLYNhYFQFeK 0HjGdbC3TiP09ltG8wiKxmlyuFE6k0U8qHrCiEgza0ObuwAoQ47fgPvQ1RCngTxb m/rKethoJvjL77MMFEMc5xRTfIFAwmOlY/rkIKMH6qnBS7lM+508e2CYkg4oaEVG tdZOb6at5kcOUg+9k9vLhvN57IKl1NfaM4h1f+f+dynp3sV+UJEyyJA4MRLjCVXl o5tCeGvSle/mFoH31iZR =s+cK -----END PGP SIGNATURE----- --Sig_/T5QzHhIfYd8VTVeGJFVdA1B-- From owner-freebsd-mips@freebsd.org Thu May 5 02:27:40 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 097DCB2D00B for ; Thu, 5 May 2016 02:27:40 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (220-135-115-6.HINET-IP.hinet.net [220.135.115.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns.kevlo.org", Issuer "ns.kevlo.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B3E841C6D for ; Thu, 5 May 2016 02:27:39 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (localhost [127.0.0.1]) by ns.kevlo.org (8.15.2/8.15.2) with ESMTPS id u452R64W095059 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 5 May 2016 10:27:07 +0800 (CST) (envelope-from kevlo@ns.kevlo.org) Received: (from kevlo@localhost) by ns.kevlo.org (8.15.2/8.15.2/Submit) id u452R6WM095058; Thu, 5 May 2016 10:27:06 +0800 (CST) (envelope-from kevlo) Date: Thu, 5 May 2016 10:27:05 +0800 From: Kevin Lo To: Stanislav Galabov Cc: freebsd-mips@freebsd.org Subject: Re: Mediatek / Ralink status Message-ID: <20160505022705.GA95034@ns.kevlo.org> References: <79DA8224-E857-4B86-81EC-D7A9E765E201@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <79DA8224-E857-4B86-81EC-D7A9E765E201@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) 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 02:27:40 -0000 On Thu, Apr 28, 2016 at 05:11:56PM +0300, Stanislav Galabov wrote: > Hi all, Hi Stanislav, > 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:”) with: > bmake KERNCONF= FDT_DTS_FILE= TARGET=mips TARGET_ARCH=mipsel 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’d have: > bmake KERNCONF=MT7621_FDT FDT_DTS_FILE=WITI.dts TARGET=mips TARGET_ARCH=mipsel 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’ve tried to test with most of the SoCs listed above, but I don’t have RT3350 and MT7628 and I fried my last RT3052 in another experiment recently, so I haven’t 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.. > 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 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? Index: sys/boot/fdt/dts/mips/fbsd-mt7628an.dtsi =================================================================== --- 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 = "/palmbus@10000000/uart2@e00"; + serial0 = "/palmbus@10000000/uartlite@c00"; }; /* > 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 [1] http://wiki.wrtnode.cc/index.php?title=WRTnode2P%E8%AF%A6%E7%BB%86%E5%8F%82%E6%95%B0/en Kevin 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--