summaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/misc'Sascha Hauer2014-01-071-1/+2
|\
| * oftree command: Allow free stored dtb before loadJan Weitzel2014-01-061-1/+2
| | | | | | | | | | | | | | | | Don't return after freeing stored devicetree if also loading ist wanted. Allow "oftree -f -l my.dtb" Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | miitool: drop internal table of known MII, use phy drivers insteadAntony Pavlov2014-01-061-25/+5
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | miitool: add initial GbE supportAntony Pavlov2014-01-061-16/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GbE support based on the patch for generic 'mii-tool', see http://ftp.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-24.2.diff.gz We need to note Jean-Christophe PLAGNIOL-VILLARD for his initial GbE support patch: http://lists.infradead.org/pipermail/barebox/2013-February/012634.html Generic 'mii-tool' GbE support patch has some disadvantages: 1. 1000baseT-HD is prefered to 1000baseT-FD; 2. show GbE-features for 10/100 only phys (e.g. Level One LXT971). This patch fixes this disadvantages. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | miitool: change behaviour closer to linux' mii-toolAntony Pavlov2014-01-061-41/+47
| | | | | | | | | | | | | | miitool without arguments will try to show status for all phys. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | miitool: Add option to scan mii busesSascha Hauer2013-12-111-2/+10
|/ | | | | | | | | With the -s option all mii buses can be scanned for devices so that they are available without doing network operations. Also, now *all* phy devices on a mii bus can be examined, not only the one attached to an ethernet device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2013-12-065-62/+9
|\ | | | | | | | | Conflicts: scripts/Makefile
| * scripts: bareboxcrc32 as host and target userspacetoolMichael Grzeschik2013-12-041-59/+4
| | | | | | | | | | | | | | | | This patch adds the crc32 command to be build as host and optionally as target tool. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * commands: nandtest: Fix signed/unsigned arguments for printfAlexander Shiyan2013-11-111-2/+2
| | | | | | | | | | | | | | "%d" in format string requires a signed integer. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * treewide: Add missing includesSascha Hauer2013-11-083-1/+3
| | | | | | | | | | | | | | | | A lot of files rely on include/driver.h including include/of.h (and this including include/errno.h. include the files explicitly so we can eventually get rid of including of.h from driver.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | commands: of_node fix descripionJan Weitzel2013-11-271-1/+1
| | | | | | | | | | | | | | Remove copy and paste error Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | blspec: Fix another crash with menu disabledUwe Kleine-König2013-11-111-1/+3
|/ | | | | | | | | boot -l crashes with CONFIG_MENU disabled because blspec_alloc returns with blspec->menu being NULL in this case. So guard the usage of blspec->menu accordingly. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* boot command: Add timeout support for menuSascha Hauer2013-11-051-1/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* boot command: make more flexibleSascha Hauer2013-11-051-127/+194
| | | | | | | | | | | | | | | | | | With this we can do 'boot <name>' where name is one of: - a filename under /env/boot/ - a full path to a boot script - a device name - a partition name under /dev/ - a full path to a directory which - contains boot scripts, or - contains a loader/entries/ directory containing bootspec entries Multiple names can be given, they are tried in order. So any mixture between bootspec entries and bootscripts can be given. bootspec entries can now also be given as a path to a directory containing bootspec entries. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* boot: Print boot entries in the order they areSascha Hauer2013-11-051-14/+4
| | | | | | | Instead of first printing the traditional entries and the bootloader spec entries afterwards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* blspec: rename _hwdevice functions to _devicenameSascha Hauer2013-11-051-1/+1
| | | | | | | Since it's not necessarily the hardware device this seems to be a more appropriate name. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* boot: remove incomplete 'title' handling in menuSascha Hauer2013-10-161-13/+2
| | | | | | | | The 'boot -m' command executes the /env/boot/* scripts in order to determine the title of a boot menu entry. This is not complete and depends on changes in the environment, so remove it for now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Implement bootloader spec support for bareboxSascha Hauer2013-10-141-23/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Bootloader Specification describes a way how kernels can be installed on devices and how they can be started by the bootloader. The bootloader spec is currently supported by (x86) gummiboot and by systemd which provides a kernel-install script. With the bootloader spec it's possible for the Operating system to install a new kernel without knowing about the bootloader and for the bootloader it's possible to discover and start Operating Systems on a media without being configured. For more details about the spec see: http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/ This patch adds barebox support for the spec. It enhances the 'boot' command so that not only boot script names can be given, but also devices containing bootloader spec entries. With this it's possible to call the 'boot' command like: 'boot sd emmc net'. It would then first look for bootloader spec entries on the (removable) sd card, then, is nothing is found, on the internal emmc and if still unsuccessful would call the 'net' bootscript. The bootloader Spec currently doesn't specify which entry should be default if multiple entries are found on a single device. Therefore barebox currently has two extensions of the spec. The $BOOT diretory can contain a file named 'default'. If present, the content of the file is treated as a filename under $BOOT/loader/entries/ which is used as default. Similarly if a file named 'once' is present, the entry is started once and the file is removed afterwards. This is useful for testing if a newly installed kernel works before making it the default. As on ARM and other Architectures a devicetree has to be specified for the kernel, the 'devicetree' property is used to specify a devicetree. Like 'kernel' and 'initrd' this also contains a pth relative to $BOOT. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mount'Sascha Hauer2013-10-071-10/+56
|\
| * mount: use standard mountpath if path is ommittedSascha Hauer2013-09-301-1/+26
| | | | | | | | | | | | | | With this a mount <devname> will mount the device to /mnt/<devname>. This directory is created automatically if it doesn't exist already. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mount: Allow to mount all available partitionsSascha Hauer2013-09-301-1/+7
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mount: implement -v option to print available filesystemsSascha Hauer2013-09-291-10/+25
| | | | | | | | | | | | | | It's useful to know which filesystems a barebox binary supports. Add a -v option to the mount command to find it out. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mount: print backingstore instead of dev_nameSascha Hauer2013-09-291-1/+1
| | | | | | | | | | | | | | When printing the devices on which a path is mounted the backingstore is the interesting thing, not dev_name. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-10-074-5/+194
|\ \ | | | | | | | | | | | | Conflicts: commands/Makefile
| * | move devinfo command to its own fileSascha Hauer2013-09-272-0/+159
| | | | | | | | | | | | | | | | | | Just like nearly all other commands are in individual files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | command: crc: add -V option to check the crc store in a fileJean-Christophe PLAGNIOL-VILLARD2013-09-201-1/+19
| | | | | | | | | | | | | | | | | | | | | the format is %08x Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | command: ubiattach: add option to pass VID offsetJean-Christophe PLAGNIOL-VILLARD2013-09-181-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use the same option as linux -O as example due to a bug in already deployed kernel we must for the VID offset at 512 even it should be at 256 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/login'Sascha Hauer2013-10-072-6/+26
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: include/console.h
| * | | login/passwd: add default password supportJean-Christophe PLAGNIOL-VILLARD2013-09-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | even if the env is broken you will have a password Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | login: disable input console if password wrongJean-Christophe PLAGNIOL-VILLARD2013-09-191-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | so we guarantee that barebox is secured again user interaction Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | login: add globalvar timeout supportJean-Christophe PLAGNIOL-VILLARD2013-09-181-1/+17
| |/ / | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/console'Sascha Hauer2013-10-072-43/+3
|\ \ \
| * | | console: factorise function to get the first enabled consoleJean-Christophe PLAGNIOL-VILLARD2013-10-062-43/+3
| |/ / | | | | | | | | | | | | | | | | | | rename it to console_get_first_active Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/bootm'Sascha Hauer2013-10-075-73/+289
|\ \ \ | |_|/ |/| |
| * | bootm: Replace getenv_loadaddr with getenv_ulSascha Hauer2013-10-072-4/+4
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | loads: use getenv_bool for 'loads_echo'Sascha Hauer2013-09-301-6/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | defenv-2: replace boot script with commandSascha Hauer2013-09-303-0/+270
| | | | | | | | | | | | | | | | | | | | | | | | This replaces the 'boot' script in the defaultenv-2 with a command with the same behaviour. A command gives more flexibility for future externsions Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | bootm: Add dryrun supportSascha Hauer2013-09-241-3/+12
| | | | | | | | | | | | | | | | | | This adds support for checking the bootm command without actually booting. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | bootm: separate bootm input data and internal dataSascha Hauer2013-09-241-30/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to use struct image_data as the central data structure for bootm and also as the input data structure. This makes it unclear which of the fields are actually input data. This patch creates a struct bootm_data which is exclusively used for input data to make usage clearer. Also it moves the dispatching of multifile uImage pathnames to the core bootm code so that the core code gets more flexible and the command code simpler. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | bootm: move globalvars from command to commonSascha Hauer2013-09-241-14/+0
| | | | | | | | | | | | | | | | | | | | | The globalvars should be available even if the bootm command is not directly present. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | bootm: move getenv_loadaddr from command to commonSascha Hauer2013-09-241-13/+0
| | | | | | | | | | | | | | | | | | | | | getenv_loadaddr may be used by other code, so move it from command/ to common/ Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | bootm: remove unused defineSascha Hauer2013-09-241-5/+0
| |/ | | | | | | | | | | OFTREE_SIZE_INCREASE isn't used anymore. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / detect command: Add missing help text for -a optionSascha Hauer2013-09-271-0/+1
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/boardinfo'Sascha Hauer2013-09-054-26/+10
|\ | | | | | | | | | | | | Conflicts: arch/mips/boards/qemu-malta/init.c commands/bootm.c drivers/of/base.c
| * remove remaining references of CONFIG_BOARDINFOSascha Hauer2013-08-162-4/+4
| | | | | | | | | | | | | | | | | | | | | | With this all code uses barebox_get_model() and no longer a compile time generated string. Also this renames barebox_boardinfo() to barebox_get_model() since we are going to add the corresponding _set_ function and 'model' corresponds to the devicetree notion. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * globalvar: Allow to set initial valueSascha Hauer2013-08-162-19/+4
| | | | | | | | | | | | | | Calling globalvar_add_simple() and setting a value is more than common. Add a parameter for the initial value. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-09-051-1/+21
|\ \
| * | bootm: add global bootm.{image/initrd}.loadaddr supportJean-Christophe PLAGNIOL-VILLARD2013-09-021-1/+21
| | | | | | | | | | | | | | | | | | | | | To be able to pass the loadaddr of the image and the initrd. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/of'Sascha Hauer2013-09-052-4/+34
|\ \ \
| * | | oftree command: Allow to specify node by aliasSascha Hauer2013-08-141-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>