From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 17:31:26 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CEE1FBF7 for ; Tue, 16 Jun 2015 17:31:26 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 62DC2DEA for ; Tue, 16 Jun 2015 17:31:25 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5GHVBlV035615 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 16 Jun 2015 19:31:11 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5GHV5IK080449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Jun 2015 19:31:06 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5GHV5SB015270; Tue, 16 Jun 2015 19:31:05 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5GHV5PE015269; Tue, 16 Jun 2015 19:31:05 +0200 (CEST) (envelope-from ticso) Date: Tue, 16 Jun 2015 19:31:05 +0200 From: Bernd Walter To: freebsd-mips@freebsd.org Cc: Bernd Walter Subject: Re: TP-Link WDR-4300 Message-ID: <20150616173105.GC14540@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150616162654.GB14540@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150616162654.GB14540@cicely7.cicely.de> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Tue, 16 Jun 2015 17:31:27 -0000 On Tue, Jun 16, 2015 at 06:26:54PM +0200, Bernd Walter wrote: > I've just bought an WDR-4300, after gavin@ mentioned it might work > with FreeBSD. > Headers for console and what looks like an JTAG are already soldered on. > > My 4300 (board rev 1.3 / device rev 1.7) has the following 3 Atheros > chips: > AR9344-BC2A > obviously main SoC, but also has direct connected RF circuit (2.4GHz?) > > AR9580-AR1A > 5GHz WiFi?, but RF from AR9344 circuit seems to be passed through it > > AR8327N-BL1A > obviously ethernet switch maybe with additional PHY for second MAC. > > It also has a 8MB SPI flash and should have 128MB DDR3. > The pictures I've seen of the 4300 and 3600 models make me believe > they are very similar in design and it's at least said they share the > AR9344 SoC. > The chip list on this page about the 3600 also match up: > https://github.com/freebsd/freebsd-wifi-build/wiki/TPLink-TL-WDR3600 > Is it save to just use this guide? Memory layout seems to match the 3600 description: U-Boot 1.1.4 (Jun 17 2013 - 12:31:57) U-boot DB120 DRAM: 128 MB id read 0x100000ff flash size 8MB, sector count = 128 Flash: 8 MB Using default environment PCIe Reset OK!!!!!! In: serial Out: serial Err: serial Net: ag934x_enet_initialize... No valid address in Flash. Using fixed address wasp reset mask:c03300 WASP ----> S17 PHY * : cfg1 0x7 cfg2 0x7114 eth0: ba:be:fa:ce:08:41 athrs17_reg_init: complete eth0 up eth0 Autobooting in 1 seconds db12x> print env ## Error: "env" not defined db12x> printenv bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART) bootcmd=bootm 0x9f020000 bootdelay=1 baudrate=115200 ethaddr=0xba:0xbe:0xfa:0xce:0x08:0x41 ipaddr=192.168.1.111 serverip=192.168.1.100 dir= lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize;cp.b $fileaddr 0x9f000000 $filesize lf=tftp 0x80060000 ${dir}db12x${bc}-jffs2&&erase 0x9f050000 +0x630000;cp.b $fileaddr 0x9f050000 $filesize lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9f680000 +$filesize;cp.b $fileaddr 0x9f680000 $filesize stdin=serial stdout=serial stderr=serial ethact=eth0 Environment size: 686/65532 bytes -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.