From owner-freebsd-embedded@freebsd.org Wed May 9 14:04:24 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 CD34CFBB471 for ; Wed, 9 May 2018 14:04:24 +0000 (UTC) (envelope-from mail.gery@gmail.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (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 5D98A6BCA7 for ; Wed, 9 May 2018 14:04:24 +0000 (UTC) (envelope-from mail.gery@gmail.com) Received: by mail-io0-x22a.google.com with SMTP id c9-v6so36431659iob.12 for ; Wed, 09 May 2018 07:04:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=JKVrWF2QB8/UB7MubPA0VAwN9D/3Bhyu2xSp3+TJWBU=; b=ex/mtXz78iHMIrimmkq+A6zYzWr9cUK6nmGu3FRWKQ7dDJi4lL6olPVlOyusqHF+pm aW2COOgEIS8FyG3q1/WkkdB90MylG7TN7zC9o6TCyznbB2s3iI9tipfH0zC3BnJ2pb0H 1kNGTCEDOas50q1C/n+LSfJfdq+tjFyEr4/qcxrtWj7hA6v/twM2MIIXi50Bmc/wp2ku 2Cal8rrID1sVmfdHzrgrDaUtDJuG0EVuhUDmIcfib5rI7qR8T6KC+pO/qrH3FyGL2vbc mP60hdVTvs3E+gsqSK9gUxaA1RiT3oczBQ/uBRg+Em5Zy9ge6DC/P26Jb6u4OJm10ZIG kxDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JKVrWF2QB8/UB7MubPA0VAwN9D/3Bhyu2xSp3+TJWBU=; b=k8Y9tZC8QqBq5hslL1pKkWGSYK6rLsZvl3AGCPfiKy3HaUZinb8yyyztUE6tQrhHDm eIUCIzWcHqDDbNuVQ5GCwWlWmLNP1xiVAJ4NGsK94yCPGivKge1sQM+Pgcqyto6wIYd4 TCAMzFM6X3WbCiIX6TtH13iKxnVXpletdLCjtusWLlj4nE+yrMMfUkhP7EoCZXKQvloL O5VqwCC1v9iqyOc7kBf8fQ4sIzzioXtOGP2dpPRoc/KrpItQAN2S0q65ydUnPO+jEHfJ 7YUmMR9HLaytgVdEzoJIEvE9pCMe+ZrzUhk4PSIpa5zAZTEe/XdXpeyzDndA4q3iJxk8 vnmg== X-Gm-Message-State: ALQs6tBhhTx+wvsNkI3U0xfEv8Yzh8ZBeE81k50vS9C/HJXMjvOKcsXK hSZNG7okJp5w7u0w8b46cuczsfeZXJHV1rl7i13CLQ== X-Google-Smtp-Source: AB8JxZpDewsz3sJxVuqjGoUj9qGvlu+iLlnFNDR1mCTlf/2vmj3Uary72msFNnyThtfK9URIwBa7yodMq6kKeoEhqMs= X-Received: by 2002:a6b:83da:: with SMTP id n87-v6mr50427599ioi.268.1525874663232; Wed, 09 May 2018 07:04:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:82c7:0:0:0:0:0 with HTTP; Wed, 9 May 2018 07:04:22 -0700 (PDT) From: Gergely Kiss Date: Wed, 9 May 2018 16:04:22 +0200 Message-ID: Subject: Atheros AR93xx NAND support To: freebsd-embedded@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2018 14:04:25 -0000 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