From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Fri, 18 May 2012 11:17:38 -0500 Subject: [U-Boot] [PATCH 5/6] cmd_nvedit.c: allow board-specific code before/after saving the environment In-Reply-To: <4FB6752A.5080309@freescale.com> References: <1336170092-22538-1-git-send-email-timur@freescale.com> <1336170092-22538-5-git-send-email-timur@freescale.com> <201205140120.45712.vapier@gentoo.org> <4FB12E88.1050906@freescale.com> <20120517221808.2AEAE206271@gemini.denx.de> <4FB58038.8060004@freescale.com> <4FB58187.2040506@freescale.com> <4FB5B078.4050000@freescale.com> <4FB5B222.6000008@freescale.com> <4FB5B455.1010106@freescale.com> <4FB6720B.2050401@freescale.com> <4FB6752A.5080309@freescale.com> Message-ID: <4FB67622.3030803@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Scott Wood wrote: > That's the equivalent of saying Linux doesn't support something because > nobody bothered to enable it in a certain defconfig. Well, that's exactly what I meant. When you boot an upstream U-boot on a P1022DS, there is no support for NAND chips. The 'nand' command does not exist. You cannot build a u-boot.bin that will boot from NAND. That pretty much means "there is no NAND support". >>>>> However, I just tried the two SDK patches >>>>> that add it, and they apply cleanly, so that's an easy fix. >>> Which patches are those? >> >> powerpc/85xx: add SPI and SD builds for P1022DS >> powerpc/p1022ds: Add support for NAND and NAND boot > > I'm not sure what SPI and SD have to do with it... The 2nd patch applies on top of the first. > Most of the latter patch is concerned with NAND boot, which is a > different issue from NAND support, but still pretty important if you're > going NAND-only. It looks like the patches were actually initially > separate, but Kumar oh-so-helpfully squashed them together. It's a good thing we don't do that any more. > One thing I would like to see fixed in at upstream version of p1022ds > NAND boot support is for it to use SPD like a normal p1022ds boot. This > will likely require reviving the three-stage boot discussion (TPL). I just posted those two patches for upstream. I don't want the TPL work to hold up these patches. -- Timur Tabi Linux kernel developer at Freescale