summaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
* Remove a redundant line.Masaki Muranaka2013-06-031-1/+0
| | | | | Signed-off-by: Masaki Muranaka <monaka@monami-ya.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/of'Sascha Hauer2013-06-021-5/+1
|\
| * bootm: Print internal devicetree information without verboseSascha Hauer2013-05-311-1/+1
| | | | | | | | | | | | | | | | It's a precious information that barebox will boot the kernel with the internal devicetree, so print it even in non verbose mode. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: make sure to print fixed oftreeSascha Hauer2013-05-311-4/+0
| | | | | | | | | | | | | | | | when doing bootm -v -v we dumped the original tree to the console. Make sure to print the fixed tree instead so that the fixups can be examined. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | devices: add detect mechanismSascha Hauer2013-05-313-0/+87
|/ | | | | | | | | | | | | | | We often encounter the situation where slow devices should not be probed during startup since probing is slow and maybe unnecessary for unused devices. With MMC we have the 'probe' device parameter, for ata we have the same, for USB we have the 'usb' command. Overall this is not very consistent. With MMC there is the additional problem that the probe parameter is attached to the logical device when we often have the information which physical device we want to probe. This patch adds a 'detect' callback for devices and adds a command to detect devices and to list the devices which are actually detecable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands/mem.c: drop non used DEVMEMJean-Christophe PLAGNIOL-VILLARD2013-05-081-2/+0
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2013-05-063-9/+4
|\
| * Don't honor initrd load addressSascha Hauer2013-05-041-3/+0
| | | | | | | | | | | | | | | | | | | | U-Boot doesn't honor the load address specified in an initrd. Barebox shouldn't be more strict here. This unbreaks booting an uInitrd generated by Debian's flash-kernel that uses 0 as entry address where there is nothing on the i.MX53 that was used. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: Simplify initrd address handlingUwe Kleine-König2013-05-041-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | data.initrd_address = UIMAGE_SOME_ADDRESS; ... if (-L was given to bootm) data.initrd_address = address_provided_to_-L; ... if (initrd is provided as uInitrd && data.initrd_address == UIMAGE_SOME_ADDRESS) data.initrd_address = load_address_from_uInitrd; ... if (data.initrd_address == UIMAGE_SOME_ADDRESS) data.initrd_address = UIMAGE_INVALID_ADDRESS; can be simplified to: data.initrd_address = UIMAGE_INVALID_ADDRESS; ... if (-L was given to bootm) data.initrd_address = address_provided_to_-L; ... if (initrd is provided as uInitrd && data.initrd_address == UIMAGE_INVALID_ADDRESS) data.initrd_address = load_address_from_uInitrd; ... The only change introduced by this simplification is for cases where the user passes -L UIMAGE_SOME_ADDRESS or -L UIMAGE_INVALID_ADDRESS to bootm. (-L UIMAGE_SOME_ADDRESS is now used literally instead of ignored before. -L UIMAGE_INVALID_ADDRESS used to skip getting the initrd-address from the uInitrd, now the uInitrd address is honored.) Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * commands: the crc command is actually called crc32Jan Luebbe2013-04-161-2/+2
| | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * commands: i2c: change 0X to 0xJan Luebbe2013-04-091-1/+1
| | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/memory-commands'Sascha Hauer2013-05-069-514/+797
|\ \
| * | Add memory modify command (mm)Sascha Hauer2013-04-173-0/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of now we have no way to manipulate individual bits of registers on the command line. This introduces a memory modify command which allows this. It has the syntax: mm [OPTIONS] <adr> <val> <mask> With [OPTIONS] being the usual memory command options (-b, -w, -l, -d <file>). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | memory commands: separate into one file per commandSascha Hauer2013-04-178-433/+660
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Normally in commands we have one file per command which is named like the command itself. The memory commands are an exception to this. This patch changes this by separating the memory commands. This also has the effect that the memory commands can now be selected individually. Along the way we add some Kconfig help text for the commmands. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | memory commands: make rw_buf globalSascha Hauer2013-04-171-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | The rw_buf is used by several memory commands. Make it global since we want to split the memory commands into separate files. Also rename it to mem_rw_buf. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | memory commands: cleanup initializationSascha Hauer2013-04-171-8/+3
| | | | | | | | | | | | | | | | | | | | | - return -ENOMEM instead of -1 - return the result of platform_driver_register Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Use a common define for RW_BUF_SIZESascha Hauer2013-04-171-1/+0
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | memory commands: move memory_display to separate fileSascha Hauer2013-04-171-68/+0
| | | | | | | | | | | | | | | | | | | | | | | | memory_display is a function which should generally be available. Currently it depends on memory command support being compiled in, so move the function to a separate file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | memory commands: export common functionsSascha Hauer2013-04-171-2/+6
| |/ | | | | | | | | | | | | The memory commands all use open_and_lseek and mem_parse_options. Export them to be able to split the memory commands into separate files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | of: property: fix error messageSteffen Trumtrar2013-04-261-2/+2
| | | | | | | | | | | | | | At least in standard oxford english one not is enough. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ubimkvol: Typo fixAlexander Shiyan2013-04-221-1/+1
|/ | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/oftree'Sascha Hauer2013-04-045-53/+78
|\
| * of: remove unused libfdtSascha Hauer2013-03-064-5/+1
| | | | | | | | | | | | | | Now that we are completely independent of libfdt remove the unused code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: Pass unflattened devicetree to handlersSascha Hauer2013-03-061-15/+9
| | | | | | | | | | | | | | | | | | This makes it possible to modify the tree in the handlers. This is necessary because the initrd addresses are only known inside the handlers, but not to the generic bootm code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of_property command: Fix crash with empty property valueSascha Hauer2013-03-061-2/+8
| | | | | | | | | | | | | | | | the of_property command crashes when an empty property value was given. This is because xrealloc is called with a length argument of 0. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of_* commands: print usage when insufficient arguments are givenSascha Hauer2013-03-062-0/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: Use of_print_nodes instead of fdt_printSascha Hauer2013-03-061-3/+3
| | | | | | | | | | | | | | Now that we use the unflattened tree in bootm we can use of_print_nodes instead of printing the flattened tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: Pass barebox internal format devicetree to of_get_fixed_treeSascha Hauer2013-03-061-1/+8
| | | | | | | | | | | | | | With this every devicetree is first converted to the barebox internal format before it's converted back to dtb again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * oftree command: retire CMD_OFTREE_PROBE Kconfig optionSascha Hauer2013-03-062-8/+1
| | | | | | | | | | | | | | | | Whether or not the user wishes devicetree probe support can now be decided indepentently of the oftree command, so retire the CMD_OFTREE_PROBE option and use OFDEVICE in the code instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: make OFDEVICE a user selectable optionSascha Hauer2013-03-061-3/+0
| | | | | | | | | | | | | | | | | | | | OFDEVICE decides whether or not we compile in support for probing devices from the devicetree. Let the user decide this explicitly. This makes the oftree, of_node and of_property commands independent of devicetree device support since being able to manipulate devicetrees has nothing to do with probing devices from the devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * oftree command: Use of_print_nodesSascha Hauer2013-03-061-3/+10
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: Add root node argument to of_find_node_by_pathSascha Hauer2013-03-063-4/+18
| | | | | | | | | | | | This makes of_find_node_by_path usable with multiple trees. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: let of_unflatten_dtb return the unflattened treeSascha Hauer2013-03-061-1/+13
| | | | | | | | | | | | | | | | | | In order to be able to handle multiple devicetrees, do not assume the tree to be unflattened is the barebox internal one. Instead, just return a pointer to it and assign the barebox internal root_node external to the unflatten function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of_node command: use of_create_nodeSascha Hauer2013-03-061-17/+10
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mtd'Sascha Hauer2013-04-041-23/+25
|\ \
| * | nand command: check for <dev> directly after option parsingSascha Hauer2013-03-041-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | Allo subcommands need at least one nonopt arg, so check for it right after parsing the options and drop the check in the MARKBAD command. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | nand command: use enumeration for command instead of bitmaskSascha Hauer2013-03-041-6/+6
| | | | | | | | | | | | | | | | | | | | | A command can only be one of NAND_*, so use an enumeration instead of a bitmask. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | nand command: use loff_t for block offsetSascha Hauer2013-03-041-5/+6
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-04-042-8/+16
|\ \
| * | commands/tftp: use debug() for debug outputHubert Feurstein2013-04-031-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ubiformat: get buffer from mallocJan Weitzel2013-04-031-7/+15
| |/ | | | | | | | | | | | | | | | | There was a erase block sized (here 131072) char buf array on the stack. Changed this to get the space from malloc preventing stack overflows. Also fix a wrong return without clean up. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / splash: fix background color supportJean-Christophe PLAGNIOL-VILLARD2013-03-141-4/+2
|/ | | | | | | the fb info is stored in struct screen by fb_open Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mtd'Sascha Hauer2013-03-041-4/+4
|\ | | | | | | | | | | Conflicts: arch/arm/configs/eukrea_cpuimx27_defconfig drivers/mtd/core.c
| * libmtd: rename functions from mtd_* to libmtd_*Sascha Hauer2013-02-141-4/+4
| | | | | | | | | | | | | | | | | | | | The kernel nowadays has mtd_read/write and other functions. In barebox we also have these functions, but with a different prototype, namely they correspond to the libmtd userspace functions. Rename these functions to libmtd_* to avoid name clashes with future mtd updates. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-03-041-34/+10
|\ \
| * | nandtest: fix length calculationAlexander Aring2013-02-201-4/+4
| | | | | | | | | | | | | | | Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | fs: add pread and pwrite functionsAlexander Aring2013-02-201-30/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add pread and pwrite functions. Split read and write functions to save some space. The functions pread and pwrite saves and sets the file position to a given offset and restore them afterwards. This also makes the nandtest command use these function which is necessary to not break compilation for the nandtest command. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ubiformat: open flash image readonlySascha Hauer2013-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | | ubiformat only needs readonly access to the image to flash, so open it readonly. Opening r/w may fail for example on tftp servers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | commands: automount: Added help string about "-d" optionAlexander Shiyan2013-02-181-0/+1
| |/ |/| | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | oftree: fix probe supportJean-Christophe PLAGNIOL-VILLARD2013-02-111-0/+7
|/ | | | | | | | | | in commit e118761c5f7e8 oftree command: refactor the Kconfig CMD_OFTREE_PROBE was remove Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>