From owner-freebsd-mips@freebsd.org Sun Jan 3 02:23: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 D597EA533D2 for ; Sun, 3 Jan 2016 02:23:27 +0000 (UTC) (envelope-from c.jason.browning@gmail.com) Received: from mail-yk0-x232.google.com (mail-yk0-x232.google.com [IPv6:2607:f8b0:4002:c07::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 9DE2C1E55 for ; Sun, 3 Jan 2016 02:23:27 +0000 (UTC) (envelope-from c.jason.browning@gmail.com) Received: by mail-yk0-x232.google.com with SMTP id v14so127216640ykd.3 for ; Sat, 02 Jan 2016 18:23:27 -0800 (PST) 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:content-type :content-transfer-encoding; bh=LFVycJ2/OXaypwOmu6G03RpoSvPjgfCyOM8GQ68nOqE=; b=BIPRTXYg/aazITu1EC+y7dfJzrXBCYpJiC+bbcrMIAHLpB3iZE+79uELqGat/UMNQC 74RatrEwyeTH2APvzD7083ekpjMbval7zRork3kCqbFpJ7zqF+I/nNzIASN07G6HOzSS qKIYeI0qURuVn4zJAGtT5T9aDChgzA/YoJkzGGbcgZteA+H1jFdBLBxidbKonatNpuqq fu2BgHBTybRsdiNxSZ0zMr1yDPReJS7G1gbPZRbAsCHbMLzwuinIgFzcHwx2jARs1bLV lEVfR5/lNrhNuP7SFODJh8n+XaoWFEPWwvR2MSBw5cJfIFLsa5wd7LUn5r21VaFf/zdI ZyEg== MIME-Version: 1.0 X-Received: by 10.129.51.214 with SMTP id z205mr65851667ywz.157.1451787806807; Sat, 02 Jan 2016 18:23:26 -0800 (PST) Sender: c.jason.browning@gmail.com Received: by 10.37.49.65 with HTTP; Sat, 2 Jan 2016 18:23:26 -0800 (PST) Date: Sat, 2 Jan 2016 20:23:26 -0600 X-Google-Sender-Auth: wcib-TNzVDl697oE037_pTW8FEc Message-ID: Subject: [RT5350] Boot from flash --> TLB miss (2) From: Jason Browning To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Sun, 03 Jan 2016 02:23:28 -0000 Hi! I have an RT5350-based board called a =E2=80=98VoCore=E2=80=99 http://vocore.io It=E2=80=99s small - 32M RAM, 16M SPI flash, WiFi, and GPIOs aplenty. I have a software-dev background and am new to embedded-dev, but the FreeBSD documentation and searching this list have brought me a long way. I am now at my limit. I=E2=80=99ve built kernels for (release)RT305X and (current)RT5350, and both work as expected when uploaded as an ELF to RAM and kicked-off with U-Boot=E2=80=99s =E2=80=98go=E2=80=99 command. They both f= ail with the following output when booted from on-board SPI flash: Booting image at bc050000 . Image Name: Created: 2016-01-01 7:14:33 UTC Image Type: MIPS NetBSD Kernel Image (gzip compressed) Data Size: 1580815 Bytes =3D 1.5 MB Load Address: 80000000 Entry Point: 80000100 Load Kernel: ......................... Verifying Checksum ... OK Uncompressing Kernel Image ... OK U-Boot args (from 0 args): None Environment: memsize=3D32 initrd_start=3D0x00000000 initrd_size=3D0x0 flash_start=3D0x00000000 flash_size=3D0x400000 entry: mips_init() Cache info: picache_stride =3D 4096 picache_loopcount =3D 8 pdcache_stride =3D 4096 pdcache_loopcount =3D 4 cpu0: MIPS Technologies processor v76.150 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 128 sets, 32 bytes per line L2 cache: disabled Config1=3D0xbea3319e Config2=3D0x80000000 Config3=3D0x420 Physical memory chunk(s): 0x3e0000 - 0x1ffffff, 29491200 bytes (7200 pages) Maxmem is 0x2000000 GDB: debug ports: uart GDB: current port: uart KDB: debugger backends: ddb gdb KDB: current backend: ddb [ thread pid 0 tid 0 ] Stopped at 0x801f43b4 db> bt Tracing pid 0 tid 0 td 0x803646c0 8027896c+30 (?,?,?,?) ra 1880364268 sp 0 sz 0 8000f1b0+114 (0,?,ffffffff,?) ra 2080364280 sp 1 sz 1 8000e4f4+388 (?,?,?,?) ra a8803642a0 sp 0 sz 0 8000e990+70 (?,?,?,?) ra 1880364348 sp 0 sz 0 800110c8+f4 (?,?,?,?) ra 1a880364360 sp 0 sz 0 800f4590+110 (?,?,?,?) ra 3080364508 sp 0 sz 0 trap+d28 (?,?,?,?) ra c080364538 sp 0 sz 0 MipsKernGenException+134 (803f1e98,80355f1c,aba9500,0) ra c8803645f8 sp 100000001 sz 1 801f432c+88 (?,?,?,?) ra 20803646c0 sp 0 sz 0 pid 0 db> reset Trap cause =3D 2 (TLB miss (load or instr. fetch) - kernel mode) panic: trap Uptime: 1s =3D=3D More info: This board came with U-Boot+OpenWRT installed; per the U-Boot config, the FreeBSD kernels were compiled with makeoption KERNLOADADDR=3D0x80100000 when initiated with =E2=80=98go 80100100=E2=80=99 from RAM, and with makeop= tion KERNLOADADDR=3D0x80000000 when initiated with =E2=80=98bootm bc050000=E2=80=99 from SPI flash. I=E2=80=99m out of my depth here, but I *think* things go wrong from within locore.S ([srcRoot]/sys/mips/mips/locore.S) at ~line:177 where: PTR_L a0, TD_PCB(sp) I say this because the problem-scenario seems to make it out of =E2=80=98platform_start=E2=80=99 ([srcRoot]/sys/mips/rt305x/rt305x_machdep.c), and also seems never to enter =E2=80=98mi_startup=E2=80=99 ([srcRoot]/sys/mips/kern/init_main.c). Additionally, I do not know why the flash_size is reported to be only 4M, it=E2=80=99s 16M - verified. I=E2=80=99ve not delved into the intricacies of U-Boot yet. Am I on the wrong track? I=E2=80=99m at my wit=E2=80=99s end with this pro= blem. Jason From owner-freebsd-mips@freebsd.org Sun Jan 3 06:10:55 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 0CA1FA6015F for ; Sun, 3 Jan 2016 06:10:55 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-vk0-x22a.google.com (mail-vk0-x22a.google.com [IPv6:2607:f8b0:400c:c05::22a]) (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 CAA1114CB for ; Sun, 3 Jan 2016 06:10:54 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-vk0-x22a.google.com with SMTP id k1so109634637vkb.2 for ; Sat, 02 Jan 2016 22:10:54 -0800 (PST) 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:content-type; bh=eRR8FgXh3zUNshMyJ3z+mn64MX8085RtJaSoCzzc2+A=; b=D0HB4ptOczpSGCm3I9B0X8OEFR29WhfP+QXuJ7+LMXKTARlcs5sQSb03F+DOM/DRO8 HZGe2Pa6eCYfYoAKVqEBHmwvrAUKySkU/tBCFcSb5elro0Z55jNibeGyWWp0uye13B/g zRvu4pay7CgHnF2Gy8sik9CRcNuw6pAuZue5NorSLMr3/RpCfPQoXmBbA+BD7WVHryG6 q5K6gMLATtrV6nYdvfnlxOqGPWkXzgLmyj1SUewAefMCLd3RBcOwO5FB0fwvuB++L7LD FKnMET1lk8euaVlZV3OxZK07dH5mekTNi7JlFW5tVS37oBusw9zCcwMQXQqy0sqrLDCI QTsw== MIME-Version: 1.0 X-Received: by 10.31.16.226 with SMTP id 95mr55017110vkq.143.1451801453427; Sat, 02 Jan 2016 22:10:53 -0800 (PST) Received: by 10.31.175.201 with HTTP; Sat, 2 Jan 2016 22:10:53 -0800 (PST) In-Reply-To: References: Date: Sun, 3 Jan 2016 08:10:53 +0200 Message-ID: Subject: Re: [RT5350] Boot from flash --> TLB miss (2) From: Stanislav Galabov To: Jason Browning Cc: freebsd-mips@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Sun, 03 Jan 2016 06:10:55 -0000 Hi Jason, Could you please try with the following kernel image: https://www.dropbox.com/s/nkwzx5omtx3ye7t/kernel.uboot.rt5350?dl=3D0 Also, could you please post the output of booting your image via tftp, together with all the steps you used to boot it? I am also interested to see the steps you took when building the uboot image from the ELF kernel, could you please share those too? Thanks in advance. Best wishes, Stanislav On Sun, Jan 3, 2016 at 4:23 AM, Jason Browning wrote: > Hi! > I have an RT5350-based board called a =E2=80=98VoCore=E2=80=99 > http://vocore.io > It=E2=80=99s small - 32M RAM, 16M SPI flash, WiFi, and GPIOs aplenty. > > I have a software-dev background and am new to embedded-dev, but > the FreeBSD documentation and searching this list have brought me > a long way. I am now at my limit. > > I=E2=80=99ve built kernels for (release)RT305X and (current)RT5350, > and both work as expected when uploaded as an ELF to RAM and > kicked-off with U-Boot=E2=80=99s =E2=80=98go=E2=80=99 command. They both= fail with the > following output when booted from on-board SPI flash: > > Booting image at bc050000 . > Image Name: > Created: 2016-01-01 7:14:33 UTC > Image Type: MIPS NetBSD Kernel Image (gzip compressed) > Data Size: 1580815 Bytes =3D 1.5 MB > Load Address: 80000000 > Entry Point: 80000100 > Load Kernel: ......................... > > Verifying Checksum ... OK > Uncompressing Kernel Image ... OK > > U-Boot args (from 0 args): > None > Environment: > memsize=3D32 > initrd_start=3D0x00000000 > initrd_size=3D0x0 > flash_start=3D0x00000000 > flash_size=3D0x400000 > entry: mips_init() > Cache info: > picache_stride =3D 4096 > picache_loopcount =3D 8 > pdcache_stride =3D 4096 > pdcache_loopcount =3D 4 > cpu0: MIPS Technologies processor v76.150 > 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 128 sets, 32 bytes per line > L2 cache: disabled > Config1=3D0xbea3319e > Config2=3D0x80000000 > Config3=3D0x420 > Physical memory chunk(s): > 0x3e0000 - 0x1ffffff, 29491200 bytes (7200 pages) > Maxmem is 0x2000000 > GDB: debug ports: uart > GDB: current port: uart > KDB: debugger backends: ddb gdb > KDB: current backend: ddb > [ thread pid 0 tid 0 ] > Stopped at 0x801f43b4 > db> bt > Tracing pid 0 tid 0 td 0x803646c0 > 8027896c+30 (?,?,?,?) ra 1880364268 sp 0 sz 0 > 8000f1b0+114 (0,?,ffffffff,?) ra 2080364280 sp 1 sz 1 > 8000e4f4+388 (?,?,?,?) ra a8803642a0 sp 0 sz 0 > 8000e990+70 (?,?,?,?) ra 1880364348 sp 0 sz 0 > 800110c8+f4 (?,?,?,?) ra 1a880364360 sp 0 sz 0 > 800f4590+110 (?,?,?,?) ra 3080364508 sp 0 sz 0 > trap+d28 (?,?,?,?) ra c080364538 sp 0 sz 0 > MipsKernGenException+134 (803f1e98,80355f1c,aba9500,0) ra c8803645f8 > sp 100000001 sz 1 > 801f432c+88 (?,?,?,?) ra 20803646c0 sp 0 sz 0 > pid 0 > db> reset > Trap cause =3D 2 (TLB miss (load or instr. fetch) - kernel mode) > panic: trap > Uptime: 1s > > =3D=3D > More info: This board came with U-Boot+OpenWRT installed; per the > U-Boot config, the FreeBSD kernels were compiled with makeoption > KERNLOADADDR=3D0x80100000 > when initiated with =E2=80=98go 80100100=E2=80=99 from RAM, and with make= option > KERNLOADADDR=3D0x80000000 > when initiated with =E2=80=98bootm bc050000=E2=80=99 from SPI flash. > > I=E2=80=99m out of my depth here, but I *think* things go wrong from with= in > locore.S ([srcRoot]/sys/mips/mips/locore.S) at ~line:177 where: > > PTR_L a0, TD_PCB(sp) > > I say this because the problem-scenario seems to make it out of > =E2=80=98platform_start=E2=80=99 > ([srcRoot]/sys/mips/rt305x/rt305x_machdep.c), > and also seems never to enter =E2=80=98mi_startup=E2=80=99 > ([srcRoot]/sys/mips/kern/init_main.c). > Additionally, I do not know why the flash_size is reported to be only > 4M, it=E2=80=99s 16M - verified. > I=E2=80=99ve not delved into the intricacies of U-Boot yet. > > Am I on the wrong track? I=E2=80=99m at my wit=E2=80=99s end with this p= roblem. > > Jason > _______________________________________________ > 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 Sun Jan 3 22:11: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 112C5A60683 for ; Sun, 3 Jan 2016 22:11:43 +0000 (UTC) (envelope-from c.jason.browning@gmail.com) Received: from mail-yk0-x22a.google.com (mail-yk0-x22a.google.com [IPv6:2607:f8b0:4002:c07::22a]) (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 CBD461464 for ; Sun, 3 Jan 2016 22:11:42 +0000 (UTC) (envelope-from c.jason.browning@gmail.com) Received: by mail-yk0-x22a.google.com with SMTP id k129so209695860yke.0 for ; Sun, 03 Jan 2016 14:11:42 -0800 (PST) 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:content-type:content-transfer-encoding; bh=Z4gMctdHcqCWdm28r5+qMhfaMjt5TqiWz8aqNkbryx8=; b=i/dlG46yQVRvzuH8V6/K171YhQ7v6ek1pAF5Bwzt1gNMsTgZRqzFhlgQ4JH345GKL4 v2Wc1DEHL5D6pLPrTHlpLAbig0dqorP2JrnvtUeSsFOQqK0V1FoG+bcpZLBtwUATA09z oc3oWiC6yhquP6PIJLTNNWAmbIOOzGfPtSUXypGhLKblDW7IN1JOikk1bgaeFpC9LXJb qzuHYcIG1Qp7x7gmLwEhtUJGU7Vk383VUSVt1n43CFzJJexqufQFyEaBJ0WfuBYJVG+m fQYl03rBAR6luwjpRV2D/53cdDl/Rxa3i0CoZgWdU8mnjrpeIpjc/diFHC9o9K8FD0RQ 2+fQ== MIME-Version: 1.0 X-Received: by 10.13.222.70 with SMTP id h67mr68091951ywe.185.1451859101879; Sun, 03 Jan 2016 14:11:41 -0800 (PST) Sender: c.jason.browning@gmail.com Received: by 10.37.49.65 with HTTP; Sun, 3 Jan 2016 14:11:41 -0800 (PST) In-Reply-To: References: Date: Sun, 3 Jan 2016 16:11:41 -0600 X-Google-Sender-Auth: YMn3P6TEwMFUa1899ektwLRfS-s Message-ID: Subject: Re: [RT5350] Boot from flash --> TLB miss (2) From: Jason Browning To: Stanislav Galabov Cc: freebsd-mips@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Sun, 03 Jan 2016 22:11:43 -0000 > Could you please try with the following kernel image: > https://www.dropbox.com/s/nkwzx5omtx3ye7t/kernel.uboot.rt5350?dl=3D0 > Thanks Stanislav =E2=80=93 your image worked! Did I need to use a stripped-binary like you did? > Also, could you please post the output of booting your image via tftp, > together with all the steps you used to boot it? I've been using a serial connection and Kermit to transfer images; there is a critical bug in tftpboot for the version of U-Boot that shipped with this board, but I'll put a cable together and give it a shot if there'= s a clue to be found in doing so... > I am also interested to see > the steps you took when building the uboot image from the ELF kernel, cou= ld > you please share those too? > Sure. =E2=80=A2 gzip --stdout --keep -9 kernel > kernel.gz =E2=80=A2 mkimage -A mips -O netbsd -T kernel -C gzip -a $ADDRLOAD -e $ADDRENTRY -d kernel.gz kernel.gz.uboot From owner-freebsd-mips@freebsd.org Mon Jan 4 04:06:54 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 54D66A60840 for ; Mon, 4 Jan 2016 04:06:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::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 25D2519BC for ; Mon, 4 Jan 2016 04:06:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x232.google.com with SMTP id o67so424461273iof.3 for ; Sun, 03 Jan 2016 20:06:54 -0800 (PST) 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:content-type; bh=V299ZQUF1mhk3rnWOjXgOA7ec7rBUcst5qpJ371ot+4=; b=fUfW+BOh02rw12FEzCwOQhONpJm+wFaFPAKMoV9QY0lwHubAROLcBJdVJIVvrG5/2o cmTvCwSrVlPG5emGiUusR4NyXh2Y1rNNvT0WjpNfSnsrNk4lnOfSVMzoNUjP0TEfOIbN FhTrIaDFdxH6aFYPa+iHaWfOGQ1STQs33LRW8IVs4MHmmJZtE6YBCzFxT/Bj8LxdM4eD VfQlZmvicyqe14k1EoPtTOiJwkwAMSSVkGoplXP9+RE7ICJU7Eh5wQpc8NTZdq6fNa2q h29i7fQdeb+c1/QR0p8HpLIB+yf7LPxDYc2Obsa6nkXDScTgu7OyyTM9NvEOo7mCg+47 76Kw== MIME-Version: 1.0 X-Received: by 10.107.162.146 with SMTP id l140mr22529367ioe.123.1451880413497; Sun, 03 Jan 2016 20:06:53 -0800 (PST) Received: by 10.36.121.202 with HTTP; Sun, 3 Jan 2016 20:06:53 -0800 (PST) In-Reply-To: References: Date: Sun, 3 Jan 2016 20:06:53 -0800 Message-ID: Subject: Re: [RT5350] Boot from flash --> TLB miss (2) From: Adrian Chadd To: Jason Browning 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.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2016 04:06:54 -0000 Hi, Try updating to the latest -head. -a From owner-freebsd-mips@freebsd.org Fri Jan 8 17:03: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 A522CA68F8B for ; Fri, 8 Jan 2016 17:03:17 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::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 5869312F2 for ; Fri, 8 Jan 2016 17:03:17 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id l65so142232298wmf.1 for ; Fri, 08 Jan 2016 09:03:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; bh=rOxif5S/K4NTpE4zBv958dFDtEQa/eK4owmXREG9q3Y=; b=wv8aImjsp8GGtCm0Fx6ybyUxbsZNVarvlDFc33zeMP9BM5FWf//CI5c3jPWvRKXXG6 lYRo3PCF9buw5arlhw4Ztqv2efUNEgMH2RcgmWCswat1ng4Ag/xLDgplTXfWDE9xZAEc 4fBoffvRiXeZBzcouRQ4RftVRiJL2QNAIZ+j71Sm8XJkxSD+R7ZSg3RUjWVSdA4jIQop 6yASYF3boRHRRRBrO2Wu/6/v8ABelnnY4ZqNImw4KOvujCIo6iF0fDxn/UsR2NcAG5iv drnLYJn9xgr0pMCLjIznmww/Pr8hxQyS7JqhtfEVyZgU0yUiK0E7DgH+/BGtCwclCgOW vM1w== X-Received: by 10.194.60.231 with SMTP id k7mr12875054wjr.61.1452272595827; Fri, 08 Jan 2016 09:03:15 -0800 (PST) Received: from macbookpro-894a.hsmt ([193.178.153.131]) by smtp.gmail.com with ESMTPSA id da10sm106692741wjb.22.2016.01.08.09.03.14 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Jan 2016 09:03:14 -0800 (PST) From: Stanislav Galabov Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Ralink/MediaTek support progress Date: Fri, 8 Jan 2016 19:03:13 +0200 Message-Id: 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.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2016 17:03:17 -0000 Hi all, I=E2=80=99ve made quite a bit of progress with support for = Ralink/Mediatek chipsets with FDT. Currently I am able to boot MT7620, RT3050, RT5350 and (since half an = hour, with only UART and interrupts for now) RT3883. I=E2=80=99m working on github and the branch in question is: https://github.com/sgalabov/freebsd/tree/local/sgalabov_mtk I=E2=80=99d appreciate any comments on what I=E2=80=99ve done so far. My = work is currently mostly concentrated in sys/mips/mtk and I=E2=80=99ve = left sys/mips/rt305x intact for now. Going forward, I=E2=80=99m planning on working on unified PCI support = for the different SoCs and unified if_rt (ethernet) support. After that I=E2=80=99ll work on adding other SoCs as well. The target = remains the same: have USB, Ethernet, GPIO, PCI/PCIe (where applicable), = SPI, Switch for the following SoCs: RT3050, RT3052, RT5350, RT3352, RT3662, RT3883, RT6856, MT7620, MT7621, = MT7628, MT7688. Any help in getting my hands on MT7628 and MT7688 boards will be = appreciated, I have the rest. Any help in getting programming manuals and/or datasheets for RT6856 and = MT7688 would be appreciated too. :-) Best wishes, Stanislav=