From owner-freebsd-embedded@freebsd.org Thu Jun 28 20:18:03 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 C0E481026069 for ; Thu, 28 Jun 2018 20:18:03 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 42B758C028 for ; Thu, 28 Jun 2018 20:18:03 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr0-x241.google.com with SMTP id p1-v6so6717723wrs.9 for ; Thu, 28 Jun 2018 13:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pdDzdZI1/Ka2OnXLTw7sKbAATtjN9vntfEnvbQqR7zE=; b=Iy0YWNr1nkgGUgjmYzjK5pyCG7PIdPpfU6uejWwE9t3jDCkQy/03CUC1m6s8u9UwYr V6AW/9ptOAaFQBAacBK4HWip8+KsKcmO6RjDAjjI+4uOICh2uNMNlOdKMGGGY/qaKJ4Q KyzTj7F0qjNPF0CPdrQnc49TFjxN8P3SCnYZz3yyCGy35DYXPXeegrR10ODtLe6Xv6ab /CZCkgEix3Y/BrhtwV1KZueuxDCfu64ApS4ia3SZZGbSxMTZcNuD34S06IV5o3WNIAxy 8i/yTJ9tA4Ws6nFaXWCmiwIm6HE3pEKbLdip/TApfgiRPH5rdYU/ERp+/qsgzqGS5vsm wLxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pdDzdZI1/Ka2OnXLTw7sKbAATtjN9vntfEnvbQqR7zE=; b=dqV4nr5duEjeS6GXIKPczkjJd9+U2DAjQvUHHW85CkLbpuoGKAwT3pPVOR3cMWLeoD dYMOPmZ53nTAaqKgt8Cw9WAAlm/tIYK0Tkc8/75al2rWWU5oKUeQ2knNn/LKsAp9zUIY QueeIHde7S+oF8WjC+WbX5Sq8f2G5UZowoLIzFKBOE6JziL2d83EJ9DA4/D9ybWv17Cy KgPq7x0GU6FQU9a5j8wd7Tlrh5TXEbR35rU09UuAnA8AQ2/OnzQ7HOtzNNFL14Q3vX0h AST3qtzg2C5n5uB/Nj54C1BD/wLFC9iRISoiKrmRO9zyx+oIdkuxLHP71fEHbjE4181z VYMA== X-Gm-Message-State: APt69E2XfElslNAplY+5wWQ3Z3Kebr0eJ6M4/hPUxn948rKwVPNdPndk yEc8cKB4hSrcTTHlflA92a9RRLFgtV5GwKFoH/Y= X-Google-Smtp-Source: AAOMgpfgaMFE7ylgcBjW+2RvyZ9BRYRN1vBHqlS+nUho3H52dUk4xG+k2qWfWU1i6uk56MntnzrvXpPUB44IFtPsu5o= X-Received: by 2002:adf:acc3:: with SMTP id o61-v6mr10331142wrc.34.1530217082147; Thu, 28 Jun 2018 13:18:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Thu, 28 Jun 2018 13:17:49 -0700 Message-ID: Subject: Re: Atheros AR93xx NAND support To: Gergely Kiss Cc: "freebsd-embedded@freebsd.org" Content-Type: text/plain; charset="UTF-8" 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:18:04 -0000 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"