From owner-freebsd-arm@FreeBSD.ORG Thu Oct 2 21:34:26 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2A3B9529 for ; Thu, 2 Oct 2014 21:34:26 +0000 (UTC) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E85A766D for ; Thu, 2 Oct 2014 21:34:25 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id eu11so3822pac.7 for ; Thu, 02 Oct 2014 14:34:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=7apnc2KC6NmdgnaEDtBq2c/qlJM3ILc+OW1XMStY944=; b=mEjAT7V/vyZs8khKMIe6ciafedGfx562oJ91XZpD7V+eDRd8eu9VfS0COTdT97f56Z Fq1Xxw/DjLe+hCnxYRTEHYb5VMP69bQmXNapIfAMD/tKZcLGSsu41F0eWop5iyIYaxIQ D/F6VIVPI2i6A1CSPibABtg1AYPcBmHBHaWvw2rqNiK1d6aFUzsAXSGxRnj+fpyewp+E bWCvzKxsbLBe2O84+p55SW0gxtHLkWI6RvGSrlMGmVTxgb0G48wFA+1/byL9fs++mnkg 4/9LFl6I/Fxq8O+BZxCmMx3r6lbqfm2fE14BWaf3fbbCK7xrsOQVQNfVzAJ5Tsm++ScN CRNQ== X-Gm-Message-State: ALoCoQmwQja4vTH9MbeivLVex2yzvJPm3qXXfTC+InF11iExyRfz9oJUt0xTVWYykw4cUNHxmLDy X-Received: by 10.66.228.36 with SMTP id sf4mr2300252pac.32.1412285659474; Thu, 02 Oct 2014 14:34:19 -0700 (PDT) Received: from lgwl-kheung.corp.netflix.com (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id qr1sm4739928pbc.50.2014.10.02.14.34.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 Oct 2014 14:34:18 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_FF9DBD8C-C340-49CF-9711-79091376FF5C"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Digi CCWMX53 From: Warner Losh In-Reply-To: Date: Thu, 2 Oct 2014 15:34:15 -0600 Message-Id: <27A69721-D93D-4D4C-883A-718CFFF52B21@bsdimp.com> References: To: Russell Haley X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-arm@freebsd.org, Rui Paulo X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2014 21:34:26 -0000 --Apple-Mail=_FF9DBD8C-C340-49CF-9711-79091376FF5C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Oct 1, 2014, at 12:48 AM, Russell Haley wrote: > Warner,=20 >=20 > First, I was just watching your 2010 talk on supporting FreeBSD in a = commercial environment. Has there been any updates in the process of = maintaining a commercial branch in the last 4 years (not that I have any = commercial ventures yet! lolz)? >=20 > Anyway, I talked to an Engineer about the NAND controller spec and he = chided me for being naive (poor little software developer, in way over = his head. tisk tisk). He mentioned a FIVE THOUSAND page reference = manual, which I have yet to find on the Digi site.=20 URL + section number. 5k pages doesn=92t necessarily mean it will be = useful, though. :( > I have however found this hardware reference: >=20 > http://ftp1.digi.com/support/documentation/90001270_E.pdf >=20 > =46rom Page 41: >=20 > NAND flash memory > The ConnectCore for i.MX53 module provides 8GB of NAND flash memory. = On the module in > the development kits a 512MByte, 2Kbyte page, NAND flash chip is used. = This NAND flash > device is connected to NAND flash Chip Select 0. > The NAND flash controller signals are available on the module = connectors. This basically says nothing more useful than =93There=92s NAND on this = board that=92s 4Gbits on CS0.=94 which is useful, but far from = sufficient. How do I program the DMA so that ECC is added to the OOB = areas of that NAND? How do I set different ECC tables? How do I do ECC = error correction and detection? If you can=92t answer that sort of = question from the docs you have, then they aren=92t helpful enough. > There are pin references to NAND further down in the section "GPIO = multiplexing table in the ConnectCore for i.MX53 module" on page 44 and = 49.=20 >=20 > I fear this is not the information we are looking for.=20 Not really. The GPIO info might be mildly helpful in a few cases=20 > I have found another u-boot fork for the CCWMX53 on github here: = https://github.com/Varcain/uboot-ccwmx53-digi >=20 > With what seems to be the information about booting from NAND here: = https://github.com/Varcain/uboot-ccwmx53-digi/tree/master/nand_spl >=20 > If you can let me know what I am looking for I can both ask a more = directed question at work and also perform a better search.=20 >=20 > I have also started looking over the Architecture handbook as well = because I have a feeling there is going to be lots of driver code in my = future. A good first step would be to get a URL or search string to get the URL = for that big spec. It is of the right size to possibly be useful, but = sometimes really long specs have 1-2 page descriptions of things like = the SD controller or the NAND controller that you need special NDAs + = business arrangements to get, so it is hard to say=85 Warner >=20 > On Sun, Sep 28, 2014 at 12:12 AM, Warner Losh wrote: >=20 > On Sep 27, 2014, at 9:49 PM, Russell Haley = wrote: >=20 > > I will attempt to load the kernel from tftp as soon as I can. I will = need > > to figure out how to get ethernet to the unit. > > > > I know nothing about u-boot so forgive my ignorance but I was hoping = to > > modify the Arndale configuration to work such as: > > > > # mmc read 1 0x70800000 0x800 0x1800; > > #go 0x70800000; > > > > and then point the rootfs to /dev/da1s1 > > > > On another note, do you know where I could find out more about the = missing > > MTD support? >=20 > A spec for the NAND controller is needed to make that work=85 Is one = about? >=20 > Warner >=20 >=20 > > BTW, I thought your wireless mesh stuff was pretty cool. Ah, so many = cool > > projects, so little time... > > > > Thanks, > > > > Russ > > > > On Sat, Sep 27, 2014 at 2:35 PM, Rui Paulo wrote: > > > >> On Sep 27, 2014, at 13:31, Russell Haley = wrote: > >>> > >>> Rui, > >>> > >>> So no MTD means the NAND on the SOM is out, but can I boot the = kernel > >> and load rootfs from the microSD, like in this example: > >>> =95 > >>> ARNDALE5250 # setenv bootcmd "fatload mmc 0:1 0x40f00000 = kernel.bin; go > >> 0x40f00000" > >>> > >>> ARNDALE5250 # saveenv > >>> > >>> ARNDALE5250 # boot > >> > >> You can't use the Arndale config since the load addresses are = different. > >> You should be able to load a kernel from the network. Can you do = that? > >> > >> -- > >> Rui Paulo > >> > >> > >> > >> > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org" >=20 >=20 --Apple-Mail=_FF9DBD8C-C340-49CF-9711-79091376FF5C Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJULcTXAAoJEGwc0Sh9sBEAxykP/0UDuX7ExVELl8GHlFGHrc7R 5BvMUZg4r8/mhVJ77NGYmzKP1FijZXlp1QBUnamUZN192VI1GDSOGT+o2o+rpo/G /Bv66NzlLaPQycKdUUseNauETQeRhNrS8Kj8SmisZRDLMP3xv45zh6CjrQJ9bETZ +BZk1iUrea4ti/17JVLnZtTDJFaW2ghfI/49T/8POyP0VXH16gv3qpfAhVnDpl4+ 8DpiPfets/8CFPtB4aiWIg4bWLZ4BuKoLMLIHvLSTIRp6ySAGtqp/X5Jr0hyOBKY WshFmtHAQxtTjdz9v4Vnh1ygG3zm6+JMY3YjVhFPOMCJyeI8aNqXn2MA2WYOqeMv z9RMtZRtuTEroD6b93YLREZpFBdr4AMxI//TPBfOPemBnKfkapaLJhva0iGhmUGg /Lw3iwvPNkJOKycKlggqbq74VvRHA9fukOUWhtkK+G2HzfJUq7SUidCzEjmrQIxt LMrMQeSWgiQV757s6ZfAt23YqVUeClpIZAUiR6VlF3cPpL5sXLlpj9KOhVXyEQdC F7rhDQWSpBOcZucXtII95OrULDwjV2WCenUDODut2Lc+C22HArr4lJJGN8ux9ZRi AcSAqcxc0yrSLYKQjwnQxzGVrV4y600DzYF4GnpaBWt/Brvui27YDZuulkX1Bld9 ssWF6kh64JPhw2+dO/q1 =Qxg6 -----END PGP SIGNATURE----- --Apple-Mail=_FF9DBD8C-C340-49CF-9711-79091376FF5C--