summaryrefslogtreecommitdiff
path: root/common/cmd_nand.c
Commit message (Collapse)AuthorAgeLines
* cmd_nand.c: fix another 'incompatible pointer type' warning.Wolfgang Denk2008-04-30-1/+1
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* cmd_nand.c: fix "differ in signedness" problemWolfgang Denk2008-04-28-6/+7
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* NAND: fix some strict-aliasing compiler warningsWolfgang Denk2008-04-28-9/+10
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* [new uImage] Use show_boot_progress() for new uImage formatMarian Balakowicz2008-03-12-0/+4
| | | | | | | This patch allocates a set of show_boot_progress() IDs for new uImage format and adds show_boot_progress() calls in new uImage format handling code. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Add new uImage format handling to other bootm related commandsMarian Balakowicz2008-03-12-23/+42
| | | | | | | | | | | | | Updated commands: docboot - cmd_doc.c fdcboot - cmd_fdc.c diskboot - cmd_ide.c nboot - cmd_nand.c scsiboot - cmd_scsi.c usbboot - cmd_usb.c Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Update naming convention for bootm/uImage related codeMarian Balakowicz2008-02-29-2/+2
| | | | | | | | | | | | | | | This patch introduces the following prefix convention for the image format handling and bootm related code: genimg_ - dual format shared code image_ - legacy uImage format specific code fit_ - new uImage format specific code boot_ - booting process related code Related routines are renamed and a few pieces of code are moved around and re-grouped. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Add dual format uImage support frameworkMarian Balakowicz2008-02-25-16/+43
| | | | | | | | | | | | | | This patch adds framework for dual format images. Format detection is added and the bootm controll flow is updated to include cases for new FIT format uImages. When the legacy (image_header based) format is detected appropriate legacy specific handling is invoked. For the new (FIT based) format uImages dual boot framework has a minial support, that will only print out a corresponding debug messages. Implementation of the FIT specific handling will be added in following patches. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Rename and move print_image_hdr() routineMarian Balakowicz2008-02-21-2/+2
| | | | Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* [new uImage] Define a API for image handling operationsMarian Balakowicz2008-02-07-7/+7
| | | | | | | | | - Add inline helper macros for basic header processing - Move common non inline code common/image.c - Replace direct header access with the API routines - Rename IH_CPU_* to IH_ARCH_* Signed-off-by: Marian Balakowicz <m8@semihalf.com>
* cmd_nand : fix compiler warning.Jean-Christophe PLAGNIOL-VILLARD2008-01-13-2/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Re-introduce the 'nand read.oob' and 'nand write.oob' commandsHarald Welte2008-01-09-0/+8
| | | | | | that used to exist with the legacy NAND code Signed-off-by: Harald Welte <laforge@openmoko.org>
* Fix do_div() usage in nand process outputMatthias Fuchs2007-09-15-1/+1
| | | | | | | | | | Fix usage of do_div() in nand erase|read|write process output. The last patch to nand_util.c introduced do_div() instead of libgcc's implementation. But do_div() returns the quotient in its first macro parameter and not as result. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
* NAND: Add CFG_NAND_QUIET optionMatthias Fuchs2007-09-15-0/+4
| | | | | | | | | | | | | | | This config option sets the default for the progress information output behavior that can also be configured through the 'quiet' environment variable. The legacy NAND code does not print the current progress info on the console. So this option is for backward compatibility for units that are in the field and where setting the quiet variable is not an option. With CFG_NAND_QUIET set to '1' the console progress info is turned off. This can still be overwritten through the environment variable. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
* Merge with git://www.denx.de/git/u-boot.gitStefan Roese2007-08-15-32/+38
|\
| * Merge with /home/wd/git/u-boot/custodian/u-boot-testingWolfgang Denk2007-08-06-9/+9
| |\
| | * Merge branch 'testing' into workingAndy Fleming2007-08-03-9/+9
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: CHANGELOG fs/fat/fat.c include/configs/MPC8560ADS.h include/configs/pcs440ep.h net/eth.c
| | | * common/cmd_[i-n]*: Remove obsolete references to CONFIG_COMMANDS.Jon Loeliger2007-07-08-14/+9
| | | | | | | | | | | | | | | | Signed-off-by: Jon Loeliger <jdl@freescale.com>
| | | * common/cmd_[i-z]* : Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).Jon Loeliger2007-07-04-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely. All transformations are of the form: Before: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) After: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT) Signed-off-by: Jon Loeliger <jdl@freescale.com>
| * | | make show_boot_progress () weak.Heiko Schocher2007-07-13-37/+29
| |/ / | | | | | | | | | Signed-off-by: Heiko Schocher <hs@denx.de>
| * | [PCS440EP] upgrade the PCS440EP board:Heiko Schocher2007-06-22-12/+26
| |/ | | | | | | | | | | | | | | | | | | | | | | - Show on the Status LEDs, some States of the board. - Get the MAC addresses from the EEProm - use PREBOOT - use the CF on the board. - check the U-Boot image in the Flash with a SHA1 checksum. - use dynamic TLB entries generation for the SDRAM Signed-off-by: Heiko Schocher <hs@denx.de>
* | [NAND] Bad block skipping for command nbootThomas Knobloch2007-07-06-5/+32
|/ | | | | | | | | | | | The old implementation of command nboot does not support reading the image from NAND flash with skipping of bad blocks. The patch implements a new version of the nboot command: by calling nboot.jffs2 from the u-boot command line the command will load the image from NAND flash with respect to bad blocks (by using nand_read_opts()). This is similar to e.g. the NAND read command: "nand read.jffs2 ...". Signed-off-by: Thomas Knobloch <knobloch@siemens.com> Signed-off-by: Stefan Roese <sr@denx.de>
* Code cleanup.Wolfgang Denk2006-11-30-140/+144
|
* [PATCH] NAND: Partition name support added to NAND subsystemStefan Roese2006-10-28-152/+194
| | | | | | | | chpart, nboot and NAND subsystem related commands now accept also partition name to specify offset. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Stefan Roese <sr@denx.de>
* Add board/cpu specific NAND chip select function to 440 NDFCStefan Roese2006-10-20-0/+8
| | | | | Based on idea and implementation from Jeff Mann Patch by Stefan Roese, 20 Oct 2006
* Fix spelling; minor code cleanup.Wolfgang Denk2006-10-12-1/+1
|
* Cleanup of NAND update patch (remove changelog from cmd_nand.c)Stefan Roese2006-10-11-1/+0
| | | | Patch by Guido Classen, 10 Oct 2006
* * Several improvements to the new NAND subsystem:Stefan Roese2006-10-10-25/+201
| | | | | | | | | - JFFS2 related commands implemented in mtd-utils style - Support for bad blocks - Bad block testing commands - NAND lock commands Please take a look at doc/README.nand for more details Patch by Guido Classen, 10 Oct 2006
* Add loads of ntohl() in image header handlingWolfgang Denk2006-03-12-1/+1
| | | | Patch by Steven Scholz, 10 Jun 2005
* Minor code cleanupWolfgang Denk2006-03-06-2/+0
|
* Re-factoring the legacy NAND code (legacy NAND now only in board-specificBartlomiej Sieka2006-03-05-1547/+412
| | | | | | | code and in SoC code). Boards using the old way have CFG_NAND_LEGACY and BOARDLIBS = drivers/nand_legacy/libnand_legacy.a added. Build breakage for NETTA.ERR and NETTA_ISDN - will go away when the new NAND support is implemented for these boards.
* Merge with /home/wd/git/u-boot/testing-NAND/ to add new NAND handling.Bartlomiej Sieka2006-02-24-1/+1
|\
| * Update of new NAND codeWolfgang Denk2005-09-14-277/+1763
| | | | | | | | Patch by Ladislav Michl, 13 Sep 2005
| * Rewrite of NAND code based on what is in 2.6.12 Linux kernelWolfgang Denk2005-08-17-1762/+277
| | | | | | | | Patch by Ladislav Michl, 29 Jun 2005
* | Cleanup for GCC-4.xWolfgang Denk2005-10-13-9/+9
| |
* | Fix problem in cmd_nand.c (only when defined CFG_NAND_SKIP_BAD_DOT_I)Stefan Roese2005-08-12-1/+2
|/ | | | Patch by Matthias Fuchs, 4 May 2005
* * Fix debug code in omap5912osk flash driverwdenk2005-05-12-3/+4
| | | | * Add support for MPC8247 based "IDS8247" board.
* * Patch by Matthias Fuchs, 03 May 2005:stroese2005-05-03-0/+2
| | | | | Added missing variable declaration in cmd_nand.c Modified CFG_PCI_PTM1MS in configs/PLU405.h to map 128MB ram
* Patches by Josef Wagner, 29 Oct 2004:wdenk2005-04-03-143/+340
| | | | | - Add support for MicroSys CPU87 board - Add support for MicroSys PM854 board
* added ".i" same as ".jffs2s" for compatibility with older units ↵stroese2004-12-16-0/+8
| | | | (CFG_NAND_SKIP_BAD_DOT_I)
* * Patch by Fred Klatt, 25 Jun 2004:wdenk2004-07-10-0/+4
| | | | | | | | | | | | Add support for WindRiver's SBC8560 board * Patch by Nicolas Lacressonniere, 24 Jun 2004 Small Bugs fixes for "at91rm9200dk" board: - Timing modifications for SPI DataFlash access - Fix NAND flash detection bug * Patch by Nicolas Lacressonniere, 24 Jun 2004: Add Support for Flash AT49BV6416 for AT91RM9200DK board
* Patch by Jian Zhang, 20 May 2004:wdenk2004-06-09-4/+4
| | | | add support for environment in NAND flash
* * Configure PPChameleon board to use redundand environment in flashwdenk2004-04-18-1/+14
| | | | | | * Configure PPChameleon board to use JFFS2 NAND support. * Added support for JFFS2 filesystem (read-only) on top of NAND flash
* Patches by Pantelis Antoniou, 30 Mar 2004:wdenk2004-04-15-1/+13
| | | | add networking support for VLANs (802.1q), and CDP (Cisco Discovery Protocol)
* * Patch by Gary Jennejohn, 11 Sep 2003:wdenk2003-09-11-5/+11
| | | | | | | | | | | - allow for longer timeouts for USB mass storage devices * Patch by Denis Peter, 11 Sep 2003: - fix USB data pointer assignment for bulk only transfer. - prevent to display erased directories in FAT filesystem. * Change output format for NAND flash - make it look like for other memory, too
* * Add support for USB Mass Storage Devices (BBB)wdenk2003-09-10-1/+1
| | | | | | (tested with USB memory sticks only) * Avoid flicker on TRAB's VFD
* Adjustments / cleanup for PPChameleon EVB boardwdenk2003-09-03-1/+3
|
* * Add support for PPChameleon Eval Boardwdenk2003-09-02-1/+1
| | | | | | | * Add support for P3G4 board * Fix problem with MGT5100 FEC driver: add "early" MAC address initialization
* * Patch by Scott McNutt, 21 Jul 2003:wdenk2003-07-27-31/+83
| | | | | | | | | | | | | | | | | | | | Add support for LynuxWorks Kernel Downloadable Images (KDIs). Both LynxOS and BlueCat linux KDIs are supported. * Patch by Richard Woodruff, 25 Jul 2003: use more reliable reset for OMAP/925T * Patch by Nye Liu, 25 Jul 2003: fix typo in mpc8xx.h * Patch by Richard Woodruff, 24 Jul 2003: Fixes for cmd_nand.c: - Fixed null dereferece which could result in incorrect ECC values. - Added support for devices with no Ready/Busy signal hooked up. - Added OMAP1510 read/write protect handling. - Fixed nand.h's ECCPOS. A conflict existed with POS5 and badblock for non-JFFS2. - Switched default ECC to be JFFS2.
* Patch by Kenneth Johansson, 30 Jun 2003:wdenk2003-07-01-4/+4
| | | | get rid of MK_CMD_ENTRY macro; update doc/README.command
* Fix some missing commands, cleanup header fileswdenk2003-06-29-0/+21
| | | | (autoscript, bmp, bsp, fat, mmc, nand, portio, ...)