From owner-freebsd-embedded@freebsd.org Thu Jun 28 20:46:18 2018 Return-Path: Delivered-To: freebsd-embedded@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 917EB1026D04 for ; Thu, 28 Jun 2018 20:46:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (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 0C17F8D3F6 for ; Thu, 28 Jun 2018 20:46:17 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22d.google.com with SMTP id q4-v6so6502617iob.2 for ; Thu, 28 Jun 2018 13:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=GGkGcbEYf0Ky9VjpIEvVFFehfhzDbhqGj4sa8IzbFUA=; b=rX4WIJB1vZvI1wHh/PpVIH2fIHlAtBsGXGD4pO/LS4SASubq7gK8FPPE2T8WK0THaK zsjFGmg52F+SD9vvS1poBiPxRYlYhHlIC8gz7FXcDwHdXB2lc6h8jC/abPL+RrtYh0Wu GLlBqLiJq4QDqBp7kWVAL8x+i/sCpnM+dnAdc3oHG3F/3oRyVPi0QiYXaASznKfSdmgN CgCS3+CKraHZxnqkisKwwSO2RegdQsa+WhQFCaTDDB7lNqdsRptnAZFiuhRFU3f72NW+ pppwo23y5Y2rZ54aNLdtNYJGs8nIEQ9PHC92AyK9bJb2caTLcRsuIJwPtVKONyzHRwtJ q+Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=GGkGcbEYf0Ky9VjpIEvVFFehfhzDbhqGj4sa8IzbFUA=; b=rUFfwsRfCVV6q8LqzbMvdK2oSAm4ijXGe7YCxqYQ3Nkk95qr1HP6cB3j8dy0REkg/n yQdlYb4ZyYxEkyHwFtnrjE5sublk8jRvm/xAME7bdA4FsbClRiLcskSGGxd+girZjtQE o09pVeDOuMPDMTdiAbmRESIR6uYDInvIThs6MaUX+dy8vOAYhlinbXoiY3Eo5E5nnRzc OL8VxPBpRq+ckDFo7yIgp2o13Jy+oVzuuNj+rpfLUDDeRhygLEhQ0HIYsfTwoBwJogrx hb+VhdWAkxQ/9yRCrg9wxlCyqctZN1Db5eBe5QMk6rnr2Z1x3aUM7dvE9eQ/KsH/5gVC 1TYw== X-Gm-Message-State: APt69E3XTXGzdt08x9W/9HYE6QhqBHa4yFkGlSNSgdPhrcEoxSaCHofx cSNe2ui2+xj6qiZxsV6irCBIJkaUcieEbxJwS4QRnQ== X-Google-Smtp-Source: AAOMgpcuYdOp2BStU0PnSq0pELrfQSpwTd3bIoBxSjrmEpZF37Sh8C120o8+MKReR9Km9UMRKqR2gJXD4phhK+j7t5U= X-Received: by 2002:a6b:29c4:: with SMTP id p187-v6mr9686300iop.299.1530218777101; Thu, 28 Jun 2018 13:46:17 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 2002:a4f:5945:0:0:0:0:0 with HTTP; Thu, 28 Jun 2018 13:46:16 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: References: From: Warner Losh Date: Thu, 28 Jun 2018 14:46:16 -0600 X-Google-Sender-Auth: b0eYe-I9doKcwxS5Gy-u3cw50Qg Message-ID: Subject: Re: Atheros AR93xx NAND support To: Adrian Chadd Cc: Gergely Kiss , "freebsd-embedded@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jun 2018 20:46:18 -0000 If you had good access to datasheets, plus errata, plus vendor support, you might be able to get a quality implementation in 3-4 months time, which would include time to revamp our NAND system. It doesn't include time to revamp NANDFS, though, which would be another 2-3 months to get rock solid. Warner On Thu, Jun 28, 2018 at 2:17 PM, Adrian Chadd wrote: > Hi, > > There's currently no support for the NAND chip. I started a driver, > but i reached a point where I realised we'd have to churn our NAND > layer a bit in order to get it working. The AR934X NAND controller > isn't a dumb latch and wants to actually issue its own JEDEC commands > and do DMA. > > > > -adrian > > On Wed, 9 May 2018 at 07:05, Gergely Kiss wrote: > > > > Hi, > > > > I have a home project about porting FreeBSD to my beloved Netgear > > WNDR4300 V.1 board and would like to ask for a little bit of help. > > > > The board is basically an Atheros DB120 reference board with a few > > minor modifications (eg. it does not have SPI flash on-board, only a > > NAND chip and has custom designed, "patent pending" integrated > > antennas) so I cloned the DB120 kernel configuration and modified to > > match the parameters of the Netgear board. > > > > As the SPI flash chip is absent, I need to boot FreeBSD off the NAND > > chip which works fine up to the point where the kernel is loaded but > > the root filesystem (also residing on the NAND chip) cannot be mounted > > because of the NAND controller not detected. > > > > I'm using FreeBSD CURRENT with the NAND framework and NANDFS support > > enabled in the kernel configuration according to instructions found on > > the NAND wiki page [1] but I still can't see the NAND controller > > detected. > > > > Please advise. > > > > As per this [2] wiki page, the controller should be detected as > > "ar934x_nfc0" but I can't see anything like that in the logs: > > > > "ar934x_nfc0: on apb0" > > > > Your help is much appreciated. > > > > Thanks, > > Gergely > > > > [1] https://wiki.freebsd.org/NAND > > [2] https://github.com/freebsd/freebsd-wifi-build/wiki/ > Atheros-ReferenceDB120 > > _______________________________________________ > > freebsd-embedded@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-embedded > > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@ > freebsd.org" > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org > " >