summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* login/passwd: add default password supportJean-Christophe PLAGNIOL-VILLARD2013-09-193-13/+106
| | | | | | | 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-194-0/+48
| | | | | | | 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>
* globalvar: add globalvar_add_simple_int/bool/enum/ip supportJean-Christophe PLAGNIOL-VILLARD2013-09-181-1/+1
| | | | | | | so we can types var Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/omap'Sascha Hauer2013-09-052-5/+5
|\ | | | | | | | | Conflicts: arch/arm/boards/pcm051/env/config
| * rework debug_llSascha Hauer2013-09-052-5/+5
| | | | | | | | | | | | | | | | | | | | Convert to static inline functions and use lower case letters for function names. Also, include mach/debug_ll.h when an architecture provides support for debug_ll, not only when it's actually enabled. This allows architecures to put some UART initialization code into mach/debug_ll.h which is compiled out when debug_ll is disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/boardinfo'Sascha Hauer2013-09-055-18/+76
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: arch/mips/boards/qemu-malta/init.c commands/bootm.c drivers/of/base.c
| * | export model as globalvarSascha Hauer2013-08-161-2/+9
| | | | | | | | | | | | | | | | | | | | | The model string is valuable information. Make it available to scripts with a globalvar. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Set model and hostname at boardlevelSascha Hauer2013-08-161-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With multiboard support the compiletime generated BOARDINFO string gets more and more meaningless. This removes it from Kconfig and replaces it with a variable that can be set at boardlevel. Also many boards have a standard setting for the hostname in the environment. This patch also moves the standard to C code by calling barebox_set_hostname(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Make hostname available to C CodeSascha Hauer2013-08-161-0/+34
| | | | | | | | | | | | | | | | | | | | | The boards often have a sane default for the hostname. Provide a C function for setting/getting it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | introduce barebox_set_modelSascha Hauer2013-08-161-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | Instead of calling of_get_model() in barebox_get_model() add a barebox_set_model() and use it to set the boardinfo once it's available from the devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | remove remaining references of CONFIG_BOARDINFOSascha Hauer2013-08-163-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: move globalvar init to pure_initcallSascha Hauer2013-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | globalvar has no dependencies. Move it to pure_initcall to make it available earlier. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Add a global.version variableSascha Hauer2013-08-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | So far we only had the version command which is able to print the barebox version. To make the barebox version available for scripts add a globalvar for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | globalvar: Allow to set initial valueSascha Hauer2013-08-162-4/+12
| | | | | | | | | | | | | | | | | | | | | 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/ubifs'Sascha Hauer2013-09-051-0/+2
|\ \ \
| * | | filetype: Add ubifs detectionSascha Hauer2013-08-071-0/+2
| | |/ | |/| | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | console: fix console without CONFIG_PARAMETERJan Luebbe2013-08-261-2/+6
| |/ |/| | | | | | | | | | | If CONFIG_PARAMETER is not set, dev_set_param() does not call the setter function. Call it directly instead in this case. Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
* | uimage: fix: fill size when no compression is usedJean-Christophe PLAGNIOL-VILLARD2013-08-121-0/+1
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | uimage: fix: always support multi image supportJean-Christophe PLAGNIOL-VILLARD2013-08-121-7/+0
|/ | | | | | | drop ifdef CONFIG_UIMAGE_MULTI as the Kconfig option is not present anyway 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-08-052-6/+16
|\ | | | | | | | | | | Conflicts: arch/arm/boards/freescale-mx53-loco/board.c drivers/of/Makefile
| * devfs: let devfs_add_partition return the new partitionSascha Hauer2013-07-152-6/+16
| | | | | | | | | | | | Useful for unregistering later or for adding addional flags. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-08-053-15/+34
|\ \
| * | resurrect CONFIG_PANIC_HANG optionAntony Pavlov2013-08-051-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CONFIG_PANIC_HANG a part of the U-Boot heritage. It is used in the barebox code, but there is no mention of this option in Kconfig files. Sometimes this option is very helpful, so let's resurrect it. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | memory_display: Change address pointer to type const void *Sascha Hauer2013-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | No need to force a width of the pointer, so use void *. Also it's not modified in memory_display, so also add a const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Force set console baudrate at enable timeAlexey Galakhov2013-07-101-2/+11
| | | | | | | | | | | | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | common: console: Fix possible null pointer dereferenceAlexander Shiyan2013-07-091-14/+13
| |/ | | | | | | | | | | | | | | doing a 'cs0.active=' on the command line crashed barebox. Fix this by not dereferencing val when it's NULL. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/lz4'Sascha Hauer2013-08-051-0/+4
|\ \
| * | lib: Add support for LZ4-compressed kernelKyungsik Lee2013-07-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for extracting LZ4-compressed kernel images, as well as LZ4-compressed ramdisk images in the kernel boot process. This depends on the patch below decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imagesize'Sascha Hauer2013-08-051-0/+3
|\ \ \
| * | | block: shortcut writebuffer_flush if writing is disabledSascha Hauer2013-07-221-0/+3
| |/ / | | | | | | | | | | | | | | | Saves a few bytes of binary space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / / of: Use correct devicetree in of_print_cmdlineSascha Hauer2013-07-271-1/+1
|/ / | | | | | | | | | | | | | | of_print_cmdline() is passed a devicetree, so use this one instead of the internal devicetree. This fixes the cmdline printout when bootm on ARM is used with an external devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / ARM: i.MX: Fix i.MX27 debug uart Kconfig entriesSascha Hauer2013-07-151-2/+3
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next-manual/oftree-linux-sync'Sascha Hauer2013-07-021-1/+1
|\
| * OF: base: sync of_find_node_by_path with linux OF APISebastian Hesselbarth2013-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Barebox of_find_node_by_path requires a node to be passed as start node to start searching. Linux OF API does not pass this node and no current user of it in barebox is passing anything else than the root node. Therefore, we rename current function to of_find_node_by_path_from and introduce a Linux OF API compatible of_find_node_by_path that always passes the current root_node. Also, all current users of that function are updated to reflect the API change. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/ppc'Sascha Hauer2013-07-012-0/+40
|\ \
| * | common: DDR2 SPD checksum.Renaud Barbier2013-06-272-0/+40
| |/ | | | | | | | | | | | | | | | | | | | | The code calculates the DDR2 SPD checksum as per JEDEC standard No 21-C Appendix X (revision 1.2) The code is based on the equivalent files from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-07-013-12/+18
|\ \
| * | add function to get boardinfo stringSascha Hauer2013-06-242-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | When using devicetrees the boardinfo (or model) can be obtained from the devicetree. Add a function to get the boardinfo so that we have a chance to add information from the devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | module: remove duplicate ALIGN and __ALIGN_MASK definitionSascha Hauer2013-06-211-3/+0
| | | | | | | | | | | | | | | | | | This is already defined in include/common.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/menu'Sascha Hauer2013-07-011-7/+8
|\ \ \
| * | | menu: Make action callback optionalSascha Hauer2013-06-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Someone calling menu_show might only be interested in the entry the user selected without having something in the action callback. Make it optional. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Fix gotoXY argument orderSascha Hauer2013-06-191-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | gotoXY has the argument order (y, x). Change this so that usage of this function feels more natural. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | menu: Align entriesSascha Hauer2013-06-191-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More than 9 menu entries in are single menu are not aligned anymore, like this: 8 entry8 9 entry9 10 entry10 Use %2d in the printf format specifier to align more than 9 entries. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/memtest'Sascha Hauer2013-07-012-0/+314
|\ \ \
| * | | common: add memtest.c with mem_test routineAlexander Aring2013-06-052-0/+314
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add mem_test routine. Useful to detect timing problems if someone porting a new device to barebox. This test includes a data bus test, address bus test and integrity check of memory. This mem_test routine has as parameter start and end address of testing space. The last parameter can skip the integrity check. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/debug'Sascha Hauer2013-07-012-18/+93
|\ \ \
| * | | startup: Add initcall tracing debug optionSascha Hauer2013-06-252-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Being able to trace initcall is very useful when trying to find out where startup hangs. This adds a kconfig option for it to make it easier to access. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX: Make debug UART selectable from KconfigSascha Hauer2013-06-251-0/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | To make early debugging on i.MX a bit simpler. This uses a similar magic than the kernel does. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | remove unused debug Kconfig optionsSascha Hauer2013-06-231-18/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | ENABLE_DEVICE_NOISE is used only in two network drivers and is otherwise unused. ENABLE_FLASH_NOISE is completely unused. ENABLE_PARTITION_NOISE enables DEBUG in the partition command, but this code has no debug messages at all. Remove all this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/bootm'Sascha Hauer2013-07-013-0/+307
|\ \ \ | |/ / |/| |