summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release v2013.11.0v2013.11.0Sascha Hauer2013-11-071-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* dlmalloc: fix compiler warningAlexander Aring2013-11-071-1/+2
| | | | | | | | | | | | | | This patch fix a compiler warning while building sandbox barebox with gcc version 4.8.2. common/dlmalloc.c: In function ‘barebox_calloc’: common/dlmalloc.c:1756:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] void *mem = malloc(sz); ^ Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kernel-install: Add missing error messagesSascha Hauer2013-11-051-2/+10
| | | | | | | In some cases kernel-install can fail without printing anything. Add error messages for these cases. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: nand: don't scan bbt if CONFIG_NAND_BBT not set张忠山2013-11-041-0/+3
| | | | | Signed-off-by: 张忠山 <zzs0213@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* blspec: Fix crash with menu disabledSascha Hauer2013-10-301-1/+2
| | | | | | | blspec->menu is only valid when menu support is enabled. Check for it before dereferencing the pointer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bcb: fix compilationEric Bénard2013-10-281-2/+2
| | | | | | | | | | | this fix : arch/arm/mach-mxs/bcb.c:268: error: too few arguments to function 'chip->ecc.read_page_raw' arch/arm/mach-mxs/bcb.c:309: error: too few arguments to function 'chip->write_page' caution : this is NOT runtime tested. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ubifs: Remove redundant assignmentAlexander Shiyan2013-10-222-2/+0
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* gadget: at91: Fix uninitialized variableAlexander Shiyan2013-10-221-2/+2
| | | | | | | Variable udc is used unitialized for DBG(xxx). Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* calloc: Fix possible memory leakAlexander Shiyan2013-10-221-2/+2
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* blspec: Fix once/default bootingSascha Hauer2013-10-211-3/+5
| | | | | | | The default/once files contain the full path to the entries, not only the filename. This fixes booting the once and default entries. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: bpkfs: add missing includeJean-Christophe PLAGNIOL-VILLARD2013-10-211-0/+68
| | | | | | | was not include when applying bpkfs patch Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: ignore O_TRUNC open flag for devicesSascha Hauer2013-10-161-2/+1
| | | | | | | | | | | | | | | | | | The O_TRUNC flag has to be ignored when opening devices. Otherwise cp /somefile /dev/somedev fails. This is broken since: | commit d4f5bb1e011ac653a167031554f0ac9e028e9e36 | Author: Sascha Hauer <s.hauer@pengutronix.de> | Date: Sat Sep 28 13:12:50 2013 +0200 | | copy_file: Add missing O_TRUNC | | Without it, when copying a smaller file over a larger file the | resulting file still has the remaining space from the larger file. | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> 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>
* at91: fix typo in Kconfig descriptionJan Luebbe2013-10-151-1/+1
| | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* common: fix possible build problem without password supportJan Luebbe2013-10-151-0/+2
| | | | | | | | | | In the case where CONFIG_PASSWORD is off, CONFIG_PASSWORD_DEFAULT is undefined. As undefined is not "", this causes make to call find -type f. If there is a filename containing a :, make will complain about having "multiple target patterns" Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/bootloader-spec'Sascha Hauer2013-10-1413-26/+2232
|\
| * add kernel-install tool for bootloader SpecSascha Hauer2013-10-143-0/+1409
| | | | | | | | | | | | | | | | | | | | | | | | This adds a tool for installing kernels according to the bootloader spec. systemd already has a similar tool, but it is limited to installing kernels on the currently running system. The barebox kernel-install tool instead can also be used to install kernels on removable media on a development host for cross development. It is compiled in two variants, as 'kernel-install' for the host and as 'kernel-install-target' using $CROSS_COMPILE. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Implement bootloader spec support for bareboxSascha Hauer2013-10-145-23/+768
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * cdev: store dos partition type in struct cdevSascha Hauer2013-10-144-3/+10
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * add function to read single line filesSascha Hauer2013-10-142-0/+45
| | | | | | | | | | | | | | Often small files are used to store the value od a variable. This adds a function to easily read such a variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | x86: Fix compiler warningsSascha Hauer2013-10-141-2/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX: remove now unused image-y from Makefile.imxSascha Hauer2013-10-141-2/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i2c-omap: fix reported revisonJan Weitzel2013-10-141-1/+1
|/ | | | | | Report correct major and minor revision Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/tegra'Sascha Hauer2013-10-0718-125/+164
|\ | | | | | | | | | | Conflicts: arch/arm/dts/Makefile images/Makefile
| * tegra: switch to multi imageLucas Stach2013-10-0216-76/+137
| | | | | | | | | | | | | | | | | | | | | | To keep things clean I removed all support for the old way to build images. There is now a single tegra_v7 defconfig which builds both supported Tegra boards as images. The new image generation also paves the way for integration of the tegra-cbootimage tool to produce directly flashable images. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: ac100: delete custom KconfigLucas Stach2013-10-022-9/+0
| | | | | | | | | | | | | | | | Now that tegra arch is both DT only and forced relocatable there is nothing interesting left in here. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: don't force to choose between Tegra archesLucas Stach2013-10-021-13/+6
| | | | | | | | | | | | | | | | There is nothing technically preventing a single Tegra 20/30 image to be built. Don't force this split in Kconfig. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: mandate relocatable binaryLucas Stach2013-10-023-11/+6
| | | | | | | | | | | | | | Allows us to drop some silly code workaround. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: fix PBL buildLucas Stach2013-10-023-5/+2
| | | | | | | | | | | | | | | | Drop useless BUG(), we are too early for them to be of any use. Make sure we build the AVP code as ARMv4 even in PBL case. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: start maincomplex execution at correct offsetLucas Stach2013-10-021-8/+3
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: try harder inlining early startup functionsLucas Stach2013-10-021-7/+14
| | | | | | | | | | | | | | | | | | | | It seems GCC 4.8 tries to be clever by not inlining some of those functions. This causes havok, as it's absolutely required to inline the early startup function, otherwise we may end up calling ARMv7 code on the ARMv4 AVP. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/socfpga'Sascha Hauer2013-10-0772-1/+11688
|\ \ | | | | | | | | | | | | Conflicts: scripts/Makefile
| * | ARM: Altera SoCFPGA: Add defconfig filesSascha Hauer2013-09-262-0/+119
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | bootstrap: Add missing includeSascha Hauer2013-09-261-0/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: SoCFPGA: Add EBV SoCrates board supportSascha Hauer2013-09-2316-1/+1063
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: SoCFPGA: Add Terasic SoCkit board supportSascha Hauer2013-09-2316-0/+1117
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: Add Altera SoCFPGA supportSascha Hauer2013-09-2334-1/+8670
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | scripts: Add Altera SoCFPGA mkimage supportSascha Hauer2013-09-233-0/+289
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Altera SoCFPGAs expect a simple header for their first stage loaders. This adds a tool to generate images for the SoCFPGAs. The header is either embedded into the image or optionally prepended to the image. In this case code is added to jump over the image header. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: Add Altera SoCFPGA clk supportSascha Hauer2013-09-233-0/+418
| | | | | | | | | | | | | | | | | | | | | The SoCFPGA currently has all clocks described in the devicetree which makes common clock support a straight forward task. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | serial: ns16550: Add compatible entry for snps,dw-apb-uartSascha Hauer2013-09-231-0/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: partition: Check for valid partition nameSascha Hauer2013-09-231-0/+3
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: of: introduce of_clk_src_simple_getSascha Hauer2013-09-232-0/+8
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: invalidate caches thoroughlySascha Hauer2013-09-234-14/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The data caches should be invalided once during startup. This should also be done when we do not have the MMU enabled in barebox because the Kernel does not invalidate the caches during start. To make this sure this patch enables the arm_early_mmu_cache_invalidate function even if MMU support is disabled. Additionally this patch adds calls to arm_early_mmu_cache_invalidate in start.c and uncompress.c. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER optionDmitry Smagin2013-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes linker error: barebox.c:(.text.environment_probe+0x48): undefined reference to `default_environment_path` Which appears when compiling env-less boards with enabled devicetree. Signed-off-by: Dmitry Smagin <dmitry.s.smagin@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | animeo_ip: fix macb pin mux and set phy interface as MIIJean-Christophe PLAGNIOL-VILLARD2013-09-231-0/+2
| | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Fix lseek on fat filesystems.Fargier Sylvain2013-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | FILE object was not updated properly when seeking. Signed-off-by: Fargier Sylvain <sylvain.fargier@somfy.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | at91: add irq fixupJean-Christophe PLAGNIOL-VILLARD2013-09-238-1/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the irq can still be on after a reset or power on as the IP are powered by the backup power. This could lead to an interrupt dead lock when the kernel boot. So disable them before booting. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/rs485'Sascha Hauer2013-10-077-6/+136
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: common/console_common.c
| * | | Animeo IP: add rs485 crossing detection supportJean-Christophe PLAGNIOL-VILLARD2013-09-242-6/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | this will be used to force the update or the start test mode Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | atmel_serial: add rs485 supportJean-Christophe PLAGNIOL-VILLARD2013-09-241-0/+27
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>