From owner-freebsd-mips@FreeBSD.ORG  Tue Aug 17 18:58:45 2010
Return-Path: <owner-freebsd-mips@FreeBSD.ORG>
Delivered-To: freebsd-mips@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CBB1E106567A
	for <freebsd-mips@freebsd.org>; Tue, 17 Aug 2010 18:58:45 +0000 (UTC)
	(envelope-from vrtuff@yahoo.com)
Received: from web33202.mail.mud.yahoo.com (web33202.mail.mud.yahoo.com
	[209.191.69.150])
	by mx1.freebsd.org (Postfix) with SMTP id 95F898FC20
	for <freebsd-mips@freebsd.org>; Tue, 17 Aug 2010 18:58:45 +0000 (UTC)
Received: (qmail 55463 invoked by uid 60001); 17 Aug 2010 18:58:44 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1282071524; bh=Ab+TKB6F1hL4+lhUKIF4+yVy82mF3MiRUeRRfXVNICo=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=YyjrbbWBeUBZMxZj0Tt7hoWrqtYAHdVA1lsgSFhz2bFUFPn8199eVfBKRmWYEPLOinU3D0R0Fo2X9Ii5Pgx7id7WHYiZmO3/Tjs4MbpYiQeocd9r3crDKzYXz4fUWaEcjy0xAVQwFSzF4AZqAP1u6MqBlK6oBorN3FLmHxm5/sg=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=h040dr8oC4d9/IKXuFIqhm+/QUVMt0cexG9WCNmmvE3MbO8R9ezHkbd1WRiRcDjYxN9A3czs5ovm0zWSHCN+pk9GGx+/QG5vdv1MHXQ/Hssoiv519tStSs1yUhQi65Mv5xUQEpoApN5mZlBEgwc+UgM+c7DZdLGOJQj+CvH4NZk=;
Message-ID: <602890.53459.qm@web33202.mail.mud.yahoo.com>
X-YMail-OSG: iydCj1IVM1lb9OXRYQsT.ZBjKL0tzWaDC7nJ06P25P_Z3LK
	zvCNAI2MD0U_bB399TiZOPswVP.0B5_X1DfESqscYtbRo4QC6uTrsJTa9DQD
	GjPFisYitwCkBxuU_y8Uv79C85Xfa0fgRh9UYai22J5m9T7qaUyQwrz2_gnO
	V.wXe_RrTyMKZqLyYychqcWDxpDXNWFcOUTVkuG9ZKXL7CjbzYb04ndf75eb
	1DiLUp33vBpWEexjdrr1rlvFvW8Pd65jrCGL0.yL6Zbjv9G0n6AiA_kMwri2
	BYwL19b1qr_y_hIM15YS0o3K.uR6QHw.dGEmTgnBjayoJI6SJG0TjYgwG4sq
	0h9TGqfb8YUkGILHQdVOivZZ2yzKw
Received: from [24.189.140.45] by web33202.mail.mud.yahoo.com via HTTP;
	Tue, 17 Aug 2010 11:58:44 PDT
X-Mailer: YahooMailRC/470 YahooMailWebService/0.8.105.279950
References: <AANLkTi=xyR8RVRjHBs-2qU8-WodHVysmmE=H66f7DfEi@mail.gmail.com>
Date: Tue, 17 Aug 2010 11:58:44 -0700 (PDT)
From: Youri Adonis <vrtuff@yahoo.com>
To: Adrian Chadd <adrian.chadd@gmail.com>, freebsd-mips@freebsd.org
In-Reply-To: <AANLkTi=xyR8RVRjHBs-2qU8-WodHVysmmE=H66f7DfEi@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Cc: 
Subject: Re: WIP: AR91XX (and AR724X, maybe) support
X-BeenThere: freebsd-mips@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting FreeBSD to MIPS <freebsd-mips.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-mips>,
	<mailto:freebsd-mips-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-mips>
List-Post: <mailto:freebsd-mips@freebsd.org>
List-Help: <mailto:freebsd-mips-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-mips>,
	<mailto:freebsd-mips-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 18:58:46 -0000

Adrian,

That is great.
That is very similar to AR71XX chipset.
I am digging thru the openwrt code/forum to see how they go around these bogus 
MAC addresses.
This has prevented me so far to set a NFS rootfs on the wndr3700
It is a trial and error  sort of things

Youri




----- Original Message ----
From: Adrian Chadd <adrian.chadd@gmail.com>
To: freebsd-mips@freebsd.org
Sent: Tue, August 17, 2010 12:21:06 PM
Subject: WIP: AR91XX (and AR724X, maybe) support

Hi everyone,

I've purchased a TP-LINK TL-WR1043ND which has an AR9132 SoC (+
on-chip AR9100 11n) in it.

I've begun porting AR91xx and AR724X support over from Linux. Sans USB
support, the kernel boots to mountroot>.

This (currently GPL-tainted, so don't commit it!) patch is against -head:

http://people.freebsd.org/~adrian/rspro/ar91xx-support.1.diff

The patch introduces a set of CPU operations which implement the main
per-chip differences.

The dmesg (without USB; so it doesn't panic early in startup):

http://people.freebsd.org/~adrian/rspro/dmesg-TL-WR1943ND.txt

USB panics shortly after probe:

ehci0: <AR71XX Integrated USB 2.0 controller> at mem
0x1b000000-0x1bffffff irq 1 on nexus0
ehci0: [ITHREAD]
usbus0: set host controller mode
usbus0: EHCI version 0.42
Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 0 tid 100000 ]
Stopped at      generic_bs_w_4+0x4:     sw      a3,0(a1)

I've tested this patch on my AR7161 (in the routerstation pro) and
have booted it to multi-user mode.

Platform stuff that needs doing:

* Need to finish porting the AR91xx related stubs
* Need to finish porting (but not test :/) the AR724X related stubs
* The USB code panics, figure out what is missing there
* Add stubs for USB DDR flushing (which aren't used at the moment, but
I'll get to it)
* Add a stub to control the peripherals currently controlled via GPIO
pins. At least USB differs between the two.
* Modify if_arge to use the cpu op struct to get and set the pll
* Add in the WMAC specifics for the AR91xx
* If I can find an AR724x, find the PCIe specifics

General stuff:

* Go digging through the rest of the Linux headers and figure out what
other differences there are; implement those
* Finish rewriting the GPL chunks that are left

Board stuff:

* Find the flash device details; modify the flash driver to support that
* Find out why arge0/arge1 aren't being correctly probed (arge0 has no
PHY; arge1 has a bogus MAC) and rectify the situation enough so one of
the interfaces is usable



Adrian
_______________________________________________
freebsd-mips@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mips
To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"