From: Wolfgang Denk Date: Mon, 06 Mar 2006 12:06:58 +0100 Subject: [U-Boot-Users] Re: IMPORTANT NOTE to all maintainers with NAND flash and DoC In-Reply-To: Your message of "Tue, 28 Feb 2006 10:21:47 +0100." Message-ID: <20060306110658.94C91352606@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, this is a "heads up" note to all maintainers of boards with NAND flash and Disk-on-Chip support: As mentioned before, we merged the "testing-NAND" branch back in to the main tree, with the intention to drop support for the old NAND flash code ASAP. Quote from doc/README.nand: We now use a complete rewrite of the NAND code based on what is in 2.6.12 Linux kernel. The old NAND handling code has been re-factored and is now confined to only board-specific files and - unfortunately - to the DoC code (see below). A new configuration variable has been introduced: CFG_NAND_LEGACY, which has to be defined in the board config file if that board uses legacy code. If CFG_NAND_LEGACY is defined, the board specific config.mk file should also have "BOARDLIBS = drivers/nand_legacy/libnand_legacy.a". For boards using the new NAND approach (PPChameleon and netstar at the moment) no variable is necessary, but the config.mk should have "BOARDLIBS = drivers/nand/libnand.a". The necessary changes have been made to all affected boards, and no build breakage has been introduced, except for NETTA and NETTA_ISDN targets from MAKEALL. This is due to the fact that these two boards use JFFS, which has been adopted to use the new NAND, and at the same time use NAND in legacy mode. The breakage will disappear when the board-specific code is changed to the new NAND. As mentioned above, the legacy code is still used by the DoC subsystem. The consequence of this is that the legacy NAND can't be removed from the tree until the DoC is ported to use the new NAND support (or boards with DoC will break). Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A Chairman was as necessary to a Board planet as the zero was in mathematics, but being a zero had big disadvantages... - Terry Pratchett, _The Dark Side of the Sun_