From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ea0-x235.google.com (mail-ea0-x235.google.com [IPv6:2a00:1450:4013:c01::235]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 01D6621F1CE for ; Mon, 27 May 2013 09:31:13 -0700 (PDT) Received: by mail-ea0-f181.google.com with SMTP id a11so4040271eae.12 for ; Mon, 27 May 2013 09:31:11 -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:content-type; bh=U+1cNhhA5Mx/nGwsBdvoznEBR7M5tD9/myMa3ld9YnA=; b=v5cxA8LGMSr3gM4+ju7SoBI0SYu8XOJO18Me++8bkgHo/zYi963fl4iFFSrOqzuy5z FlpTh4WkLO/AFy112ZnUC8xTQzx1H/GV+GffQewxxuWQ8amd1gtwUlr42aCO8eIZKmDM XvUDtCMIRHxcHRob0lBamhEPXDV6M2TDjL1XaDdvkpAKVvCqEOprV1l7yqYbqi4RM8wQ jv6wiEFvw0/XltRpwj7ptjohpcWHoQreZHekZC1oVwIcJh4lCGW/2eErJXhJ5ozPWaFK B6JaSjC5ai4Hc9VbXnomVPcu9o8X8l4aO5tXRydTybEsj4pJAgqksP/ZSEqqKFjzD9TM xAiQ== X-Received: by 10.14.204.132 with SMTP id h4mr10711426eeo.50.1369672271275; Mon, 27 May 2013 09:31:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.13.217 with HTTP; Mon, 27 May 2013 09:30:31 -0700 (PDT) In-Reply-To: References: From: Lance Hepler Date: Mon, 27 May 2013 09:30:31 -0700 Message-ID: To: David Lang Content-Type: multipart/alternative; boundary=047d7b343f0c304cdc04ddb5adfb Cc: cerowrt-devel@lists.bufferbloat.net Subject: Re: [Cerowrt-devel] tp-link 4300 evaluation X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 May 2013 16:31:14 -0000 --047d7b343f0c304cdc04ddb5adfb Content-Type: text/plain; charset=UTF-8 On Mon, May 27, 2013 at 6:33 AM, David Lang wrote: > On Mon, 27 May 2013, Dave Taht wrote: > > >>> That's tragic. I just picked up a Netgear WNDR4300 (openbox on sale at >>> the >>> >>>> local Fry's) to see if I could hack up a CeroWrt clone on it. It seems >>>> to >>>> be mostly the same hardware as the WNDR3700v4 and the TP-Link >>>> WDR43[01]0, >>>> with things just wired up slightly differently. >>>> >>>> >>> As I understnad it, the difference between the WNDR3700v4 and WNDR4300 is >>> that the 4300 has a slightly better wireless chip. >>> >>> Unfortunantly from what I've seen so far, they did something wierd with >>> the storage and as a result the stock openwrt can't access it. I've seen >>> reports of people getting it to run from an initramfs, but this means >>> that >>> no settings can be preserved across reboot. >>> >>> If you've seen anything different, I'd be very interested to hear about >>> it >>> (I picked up a 3700v4 and a couple 4300's for testing) >>> >>> >> according to a birdie, "it looks like it's an ONFI with quirks, or nobody >> has realised that it's ONFI at all.". Perhaps that's enough clue to get >> someone started? but I fear jtag debugging will be needed. Flash chips >> tend >> to have interesting race conditions.... >> > > Given that we have the GPL source for the kernel available from Netgear, > I'm a little puzzled that we are having to reverse engineer this instead of > working from the source. > > Even if the first version was little more than a cut-n-paste of the > netgear butchered driver until people have time to analyse it fully. Found the original NAND driver. If you download the original fw source it's in wndr4300-GPL.git/git_home/linux.git/drivers/mtd/nand/ath_nand.c. It also borrows a few things from wndr4300-GPL.git/git_home/linux.git/arch/mips/include/asm/mach-atheros/atheros.h. I'm already seeing lots of similarities to the ar934x_nfc.c flash controller driver in upstream openwrt. That one seems to be missing some of the ECC features of the original ... and all of the ONFI bits... I'll poke at it some this week, see if I can bring something up. Lance --047d7b343f0c304cdc04ddb5adfb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Mon, May 27, 2013 at 6:33 AM, David Lang <david@lang.hm> wrote:
On Mon, 27 May 2013, Dave Taht wrote:


=C2=A0That's tragic. I just picked up a Netgear WNDR4300 (openbox on sa= le at the
local Fry's) to see if I could hack up a CeroWrt clone on it. It seems = to
be mostly the same hardware as the WNDR3700v4 and the TP-Link WDR43[01]0, with things just wired up slightly differently.


As I understnad it, the difference between the WNDR3700v4 and WNDR4300 is that the 4300 has a slightly better wireless chip.

Unfortunantly from what I've seen so far, they did something wierd with=
the storage and as a result the stock openwrt can't access it. I've= seen
reports of people getting it to run from an initramfs, but this means that<= br> no settings can be preserved across reboot.

If you've seen anything different, I'd be very interested to hear a= bout it
(I picked up a 3700v4 and a couple 4300's for testing)


according to a birdie, "it looks like it's an ONFI with quirks, or= nobody
has realised that it's ONFI at all.". Perhaps that's enough cl= ue to get
someone started? but I fear jtag debugging will be needed. Flash chips tend=
to have interesting race conditions....

Given that we have the GPL source for the kernel available from Netgear, I&= #39;m a little puzzled that we are having to reverse engineer this instead = of working from the source.

Even if the first version was little more than a cut-n-paste of the netgear= butchered driver until people have time to analyse it fully.
<= div>
Found the original NAND driver. If you download the original = fw source it's in wndr4300-GPL.git/git_home/linux.git/drivers/mtd/nand/= ath_nand.c. It also borrows a few things from wndr4300-GPL.git/git_home/lin= ux.git/arch/mips/include/asm/mach-atheros/atheros.h.

I'm already seeing lots of similarities to the ar934x_nf= c.c flash controller driver in upstream openwrt. That one seems to be missi= ng some of the ECC features of the original ... and all of the ONFI bits...=

I'll poke at it some this week, see if I can bring = something up.

Lance
--047d7b343f0c304cdc04ddb5adfb--