From owner-freebsd-arm@FreeBSD.ORG Sun Dec 30 21:48:03 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85A1A792 for ; Sun, 30 Dec 2012 21:48:03 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 021258FC0C for ; Sun, 30 Dec 2012 21:48:02 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1TpQjg-0000bX-5w for freebsd-arm@freebsd.org; Sun, 30 Dec 2012 22:48:00 +0100 Received: from h253044.upc-h.chello.nl ([62.194.253.44] helo=pinky) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TpQjg-000398-66 for freebsd-arm@freebsd.org; Sun, 30 Dec 2012 22:48:00 +0100 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-arm@freebsd.org Subject: Re: sheevaplug nand type not recognized? References: <1355353104.87661.468.camel@revolution.hippie.lan> <1355355431.87661.472.camel@revolution.hippie.lan> Date: Sun, 30 Dec 2012 22:47:58 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <1355355431.87661.472.camel@revolution.hippie.lan> User-Agent: Opera Mail/12.12 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: 0.8 X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.1 X-Scan-Signature: d3d6c6694e059b137bd8e4e2c0542d46 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Dec 2012 21:48:03 -0000 On Thu, 13 Dec 2012 00:37:11 +0100, Ian Lepore wrote: > On Thu, 2012-12-13 at 00:16 +0100, Ronald Klop wrote: >> On Wed, 12 Dec 2012 23:58:24 +0100, Ian Lepore >> wrote: >> >> > On Wed, 2012-12-12 at 23:41 +0100, Ronald Klop wrote: >> >> Hello, >> >> >> >> I just compiled a FreeBSD-10-current (src from 22 Nov.) kernel+world >> and >> >> installed it on a usb stick. >> >> It has NAND support compiled in, but I see no nand devices in /dev. >> >> Dmesg does not list a lnand0 device like the example in >> >> http://wiki.freebsd.org/NAND#NAND_Framework. >> >> >> >> Booting Debian finds this: >> >> ... >> >> NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND >> 512MiB >> >> 3,3V 8-bit) >> >> Scanning device for bad blocks >> >> Bad eraseblock 168 at 0x000001500000 >> >> Bad eraseblock 169 at 0x000001520000 >> >> Bad eraseblock 1193 at 0x000009520000 >> >> 2 cmdlinepart partitions found on MTD device orion_nand >> >> Creating 2 MTD partitions on "orion_nand": >> >> 0x000000100000-0x000000500000 : "uImage" >> >> 0x000000500000-0x000020000000 : "rootfs" >> >> UBI: attaching mtd1 to ubi0 >> >> ... >> >> >> >> I don't see this Samsung version in sys/dev/nand/nand_id.c. >> >> Would it be easy to add it? I understand the manufacturer id and chip >> >> id, >> >> but I don't know what I should change more. >> > >> > That looks like the same chip that's in my DreamPlug 1001N, the >> attached >> > diff should fix it for you. >> > >> > -- Ian >> > >> >> Supernice! >> >> nand0: mem 0xf9300000-0xf93fffff on localbus0 >> nandbus0: on nand0 >> lnand0: on nandbus0 >> lnand0: No BBT found. Prescan chip... >> ##lnand0: Bad block(168) >> lnand0: Bad block(169) >> ##########lnand0: Bad block(1193) >> ############################# >> >> >> root@sh10:~ # ls -l /dev/*nand* >> crw-r----- 1 root operator 0x2f Dec 12 23:09 /dev/gnand.raw0 >> crw-r----- 1 root operator 0x33 Dec 12 23:09 /dev/gnand.raw0s.root >> crw-r----- 1 root operator 0x32 Dec 12 23:09 /dev/gnand.raw0s.u-boot >> crw-r----- 1 root operator 0x2e Dec 12 23:09 /dev/gnand0 >> crw-r----- 1 root operator 0x31 Dec 12 23:09 /dev/gnand0s.root >> crw-r----- 1 root operator 0x30 Dec 12 23:09 /dev/gnand0s.u-boot >> crw-rw-rw- 1 root wheel 0x19 Dec 12 23:09 /dev/nand0.0 >> >> Now I can't go to sleep without playing some more with it. :-) >> >> Cheers, >> Ronald. > > Heh. Be careful. My dreamplug 1001N is a brick because I typed a > command in the wrong window and wiped the nand on it, and I haven't had > any success trying to use openocd to flash it (or even get it to boot as > a one-shot). > > -- Ian Hi, What would be needed to get the support for this NAND chip committed? Ronald.