- 09 8月, 2010 1 次提交
-
-
由 Frans Meulenbroeks 提交于
Most of the files have U_BOOT_CMD on a separate line, but a few didn't and had the first line on the same line as U_BOOT_CMD. This changes these files by adding a line break and a tab Signed-off-by: NFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
-
- 25 7月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
Lots of code use this construct: cmd_usage(cmdtp); return 1; Change cmd_usage() let it return 1 - then we can replace all these ocurrances by return cmd_usage(cmdtp); This fixes a few places with incorrect return code handling, too. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 13 7月, 2010 2 次提交
-
-
由 Scott Wood 提交于
Change if (ok) { bunch of stuff } else { error } to if (error) { get out } proceed with bunch of stuff Plus a few whitespace cleanups. Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Ben Gardiner 提交于
This is a re-submission of the patch by Harald Welte <laforge@openmoko.org> with minor modifications for rebase and changes as suggested by Scott Wood <scottwood@freescale.com> [1] [2]. This patch enables the environment partition to have a run-time dynamic location (offset) in the NAND flash. The reason for this is simply that all NAND flashes have factory-default bad blocks, and a fixed compile time offset would mean that sometimes the environment partition would live inside factory bad blocks. Since the number of factory default blocks can be quite high (easily 1.3MBytes in current standard components), it is not economic to keep that many spare blocks inside the environment partition. With this patch and CONFIG_ENV_OFFSET_OOB enabled, the location of the environment partition is stored in the out-of-band (OOB) data of the first block in flash. Since the first block is where most systems boot from, the vendors guarantee that the first block is not a factory default block. This patch introduces the 'nand env.oob' command, which can be called from the u-boot command line. 'nand env.oob get' reads the address of the environment partition from the OOB data, 'nand env.oob set {offset,partition-name}' allows the setting of the marker by specifying a numeric offset or a partition name. [1] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/43916 [2] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/79195Signed-off-by: NBen Gardiner <bengardiner@nanometrics.ca> Acked-by: NHarald Welte <laforge@gnumonks.org>
-
- 05 7月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
The hush shell dynamically allocates (and re-allocates) memory for the argument strings in the "char *argv[]" argument vector passed to commands. Any code that modifies these pointers will cause serious corruption of the malloc data structures and crash U-Boot, so make sure the compiler can check that no such modifications are being done by changing the code into "char * const argv[]". This modification is the result of debugging a strange crash caused after adding a new command, which used the following argument processing code which has been working perfectly fine in all Unix systems since version 6 - but not so in U-Boot: int main (int argc, char **argv) { while (--argc > 0 && **++argv == '-') { /* ====> */ while (*++*argv) { switch (**argv) { case 'd': debug++; break; ... default: usage (); } } } ... } The line marked "====>" will corrupt the malloc data structures and usually cause U-Boot to crash when the next command gets executed by the shell. With the modification, the compiler will prevent this with an error: increment of read-only location '*argv' N.B.: The code above can be trivially rewritten like this: while (--argc > 0 && **++argv == '-') { char *arg = *argv; while (*++arg) { switch (*arg) { ... Signed-off-by: NWolfgang Denk <wd@denx.de> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
- 22 5月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 24 3月, 2010 1 次提交
-
-
由 Florian Fainelli 提交于
When issuing a nand scrub command, the entered character is not displayed this may be confusing. This patch makes the input character being displayed if it is a 'y' so that an user knows he is about to scrub his nand. Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
-
- 14 11月, 2009 2 次提交
-
-
由 Peter Tyser 提交于
Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
-
由 Peter Tyser 提交于
Also remove vague, unnecessary comment Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
-
- 17 7月, 2009 1 次提交
-
-
由 Scott Wood 提交于
Legacy NAND had been scheduled for removal. Any boards that use this were already not building in the previous release due to an #error. The disk on chip code in common/cmd_doc.c relies on legacy NAND, and it has also been removed. There is newer disk on chip code in drivers/mtd/nand; someone with access to hardware and sufficient time and motivation can try to get that working, but for now disk on chip is not supported. Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 08 7月, 2009 1 次提交
-
-
由 Wolfgang Denk 提交于
The "nand markbad" and "onenand markbad" commands did not check if an argument was passed; if this was forgotten, no error was raised but block 0 was marked as bad. While fixing this bug, clean up the code a bit and allow to pass more than one block address, thus allowing to mark several blocks as bad in a single command invocation. Signed-off-by: NWolfgang Denk <wd@denx.de> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 13 6月, 2009 1 次提交
-
-
由 Wolfgang Denk 提交于
Many of the help messages were not really helpful; for example, many commands that take no arguments would not print a correct synopsis line, but "No additional help available." which is not exactly wrong, but not helpful either. Commit ``Make "usage" messages more helpful.'' changed this partially. But it also became clear that lots of "Usage" and "Help" messages (fields "usage" and "help" in struct cmd_tbl_s respective) were actually redundant. This patch cleans this up - for example: Before: => help dtt dtt - Digital Thermometer and Thermostat Usage: dtt - Read temperature from digital thermometer and thermostat. After: => help dtt dtt - Read temperature from Digital Thermometer and Thermostat Usage: dtt Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 28 4月, 2009 1 次提交
-
-
由 Ladislav Michl 提交于
On Thu, Mar 19, 2009 at 01:30:36PM +0100, Stefan Roese wrote: > Currently the mtdparts commands are included in the jffs2 command support. > This doesn't make sense anymore since other commands (e.g. UBI) use this > infrastructure as well now. This patch separates the mtdparts commands from > the jffs2 commands making it possible to only select mtdparts when no JFFS2 > support is needed. One more leftover... Let nboot command know about partitions even if JFFS2 support is not enabled. Signed-off-by: NLadislav Michl <ladis@linux-mips.org> Acked-by: NStefan Roese <sr@denx.de>
-
- 17 4月, 2009 1 次提交
-
-
由 Mike Frysinger 提交于
The first if statement checks for NULL ptrs, so there is no need to check it again in later else cases (such as .oob). Signed-off-by: NMike Frysinger <vapier@gentoo.org> CC: Scott Wood <scottwood@freescale.com>
-
- 24 3月, 2009 1 次提交
-
-
由 Wolfgang Grandegger 提交于
This patch adds support for NAND_MAX_CHIPS to the MTD NAND layer. Multi-chips devices are displayed as shown: Device 0: 2x NAND 512MiB 3,3V 8-bit, sector size 128 KiB Signed-off-by: NWolfgang Grandegger <wg@grandegger.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 21 3月, 2009 1 次提交
-
-
由 Stefan Roese 提交于
Currently the mtdparts commands are included in the jffs2 command support. This doesn't make sense anymore since other commands (e.g. UBI) use this infrastructure as well now. This patch separates the mtdparts commands from the jffs2 commands making it possible to only select mtdparts when no JFFS2 support is needed. Signed-off-by: NStefan Roese <sr@denx.de> Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
-
- 18 3月, 2009 2 次提交
-
-
由 Scott Wood 提交于
This was intended to happen before, but a trivial bug prevented it. Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Ladislav Michl 提交于
nboot command currently does not skip bad blocks and gives read error when loading image stored over bad block. With patch applied, nboot works as expected: Device 0 bad blocks: 00780000 014a0000 02000000 02cc0000 04aa0000 Loading from NAND 128MiB 3,3V 8-bit, offset 0x2c00000 Image Name: Linux-2.6.22-omap1 Created: 2008-11-20 23:44:32 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1052520 Bytes = 1 MB Load Address: 10008000 Entry Point: 10008000 Skipping bad block 0x02cc0000 Automatic boot of image at addr 0x10400000 ... ... Signed-off-by: NLadislav Michl <ladis@linux-mips.org> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 28 1月, 2009 2 次提交
-
-
由 Peter Tyser 提交于
Remove command name from all command "usage" fields and update common/command.c to display "name - usage" instead of just "usage". Also remove newlines from command usage fields. Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
-
由 Peter Tyser 提交于
Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
-
- 24 1月, 2009 3 次提交
-
-
由 Mike Frysinger 提交于
Signed-off-by: NMike Frysinger <vapier@gentoo.org> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Schlaegl Manfred jun 提交于
Error with CONFIG_NAND_LEGACY in common/cmd_nand.c: With current code "nand read.jffs2s" (read and skip bad blocks) is always interpreted as "nand read.jffs2" (read and fill bad blocks with 0xff). This is because ".jffs2" is tested before ".jffs2s" and only the first two characters are compared. Correction: Test for ".jffs2s" first and compare the first 7 characters. Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Nishanth Menon 提交于
Enable nand lock, unlock and status of lock feature. Not every device and platform requires this, hence, it is under define for CONFIG_CMD_NAND_LOCK_UNLOCK Nand unlock and status operate on block boundary instead of page boundary. Details in: http://www.micron.com/products/partdetail?part=MT29C2G24MAKLAJG-6%20IT Intial solution provided by Vikram Pandita <vikram.pandita@ti.com> Includes preliminary suggestions from Scott Wood Signed-off-by: NNishanth Menon <nm@ti.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 29 10月, 2008 1 次提交
-
-
由 Scott Wood 提交于
I accidentally broke this in when making consistent the partial alignment of the longhelp. Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 19 10月, 2008 1 次提交
-
-
Signed-off-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- 14 8月, 2008 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 13 8月, 2008 9 次提交
-
-
rename CFG_NAND_LEGACY to CONFIG_NAND_LEGACY Signed-off-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
由 Scott Wood 提交于
Implement block-skipping read/write, based on a patch from Morten Ebbell Hestens <morten.hestnes@tandberg.com>. Signed-off-by: NMorten Ebbell Hestnes <morten.hestnes@tandberg.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Scott Wood 提交于
Use of the non-skipping versions was almost always (if not always) an error, and no valid use case has been identified. Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 Stefan Roese 提交于
Signed-off-by: NStefan Roese <sr@denx.de>
-
由 William Juul 提交于
Signed-off-by: NWilliam Juul <william.juul@tandberg.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 William Juul 提交于
Changes requested by maintainer Stefan Roese after posting patch to U-boot mailing list. Signed-off-by: NWilliam Juul <william.juul@tandberg.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 William Juul 提交于
- Fixing leading white spaces - Fixing indentation where 4 spaces are used instead of tab - Removing C++ comments (//), wherever I introduced them Signed-off-by: NWilliam Juul <william.juul@tandberg.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 William Juul 提交于
Signed-off-by: NWilliam Juul <william.juul@tandberg.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
由 William Juul 提交于
A lot changed in the Linux MTD code, since it was last ported from Linux to U-Boot. This patch takes U-Boot NAND support to the level of Linux 2.6.22.1 and will enable support for very large NAND devices (4KB pages) and ease the compatibility between U-Boot and Linux filesystems. This patch is tested on two custom boards with PPC and ARM processors running YAFFS in U-Boot and Linux using gcc-4.1.2 cross compilers. MAKEALL ppc/arm has some issues: * DOC/OneNand/nand_spl is not building (I have not tried porting these parts, and since I do not have any HW and I am not familiar with this code/HW I think its best left to someone else.) Except for the issues mentioned above, I have ported all drivers necessary to run MAKEALL ppc/arm without errors and warnings. Many drivers were trivial to port, but some were not so trivial. The following drivers must be examined carefully and maybe rewritten to some degree: cpu/ppc4xx/ndfc.c cpu/arm926ejs/davinci/nand.c board/delta/nand.c board/zylonite/nand.c Signed-off-by: NWilliam Juul <william.juul@tandberg.com> Signed-off-by: NStig Olsen <stig.olsen@tandberg.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 11 7月, 2008 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 10 7月, 2008 1 次提交
-
-
由 Stefan Roese 提交于
This patch fixes NAND related printf format warning. Those warnings are now visible since patch dc4b0b38 [Fix printf errors.] by Andrew Klossner has been applied. Thanks, this is really helpful. Signed-off-by: NStefan Roese <sr@denx.de>
-
- 01 7月, 2008 1 次提交
-
-
由 Marian Balakowicz 提交于
Global FIT image operations like format check cannot be performed on a first sector data, defer them to the point when whole FIT image was uploaded to a system RAM. Signed-off-by: NMarian Balakowicz <m8@semihalf.com> Partial ('cmd_nand' case) Acked-by: Grant Erickson <gerickson@nuovations.com> NAND and DOC bits Acked-by: Scott Wood <scottwood@freescale.com>
-
- 29 5月, 2008 1 次提交
-
-
由 Stelian Pop 提交于
The nand_info array is declared as extern in several .c files. Those days, nand.h contains a reference to the array, so there is no need to declare it elsewhere. Signed-off-by: NStelian Pop <stelian@popies.net> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 14 5月, 2008 1 次提交
-
-
由 Stelian Pop 提交于
The nand_info array is declared as extern in several .c files. Those days, nand.h contains a reference to the array, so there is no need to declare it elsewhere. Signed-off-by: NStelian Pop <stelian@popies.net> Signed-off-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-