[PATCH 1/6] net/nfs: increase timeout to 15 seconds

2012-01-24 Thread Marc Kleine-Budde
timeout to 15 to work around the problem. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- net/nfs.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/nfs.c b/net/nfs.c index 0a4b787..f6cbc7c 100644 --- a/net/nfs.c +++ b/net/nfs.c @@ -124,7 +124,7 @@ struct rpc_t

[PATCH 3/6] defaultenv: update: add nfs support

2012-01-24 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- defaultenv/bin/_update | 11 --- defaultenv/bin/_update_help | 10 +- defaultenv/bin/update |2 +- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/defaultenv/bin/_update b/defaultenv/bin

[PATCH 4/6] ARM: mx3/mx35_3ds: add missing nand device

2012-01-24 Thread Marc Kleine-Budde
Otherwise the kernel would not register the nand partitions. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/arm/boards/freescale-mx35-3-stack/env/config |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/boards/freescale-mx35-3-stack/env/config b

mx35-3stack 124MiByte RAM

2012-01-27 Thread Marc Kleine-Budde
); + armlinux_add_dram(sdram_dev); imx35_add_fb(ipu_fb_data); - armlinux_add_dram(sdram_dev); armlinux_set_bootparams((void *)0x8100); armlinux_set_architecture(MACH_TYPE_MX35_3DS); Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial

Re: mx35-3stack 124MiByte RAM

2012-01-27 Thread Marc Kleine-Budde
On 01/27/2012 01:38 PM, Sascha Hauer wrote: On Fri, Jan 27, 2012 at 01:35:29PM +0100, Marc Kleine-Budde wrote: - register_device(sdram_dev); + sdram_dev = add_mem_device(ram0, IMX_SDRAM_CS0, 124 * 1024 * 1024, ^^^ What happened

Re: flash image through CAN

2012-02-08 Thread Marc Kleine-Budde
can port the CAN stack to barebox. However, if you have the space, I suggest to boot into a minimal Linux-System to run the update there. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West

[PATCH] common: memory: fix off-by-one in tlsf_create

2012-04-24 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- common/memory.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/memory.c b/common/memory.c index faff33b..3b4a5ef 100644 --- a/common/memory.c +++ b/common/memory.c @@ -58,7 +58,7 @@ void mem_malloc_init

[PATCH 2/6] ARM mmu: introduce dma_alloc, dma_free

2012-06-19 Thread Marc Kleine-Budde
dma_alloc() allocates memory aligned to cache lines. We have to use cache line aligned buffers if a driver calls dma_inv_range on the buffer. Add dma_free() for documentation reasons, too. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/arm/include/asm/dma.h |8 arch

[PATCH 6/6] USB gadget: Fix dma memory allocations

2012-06-19 Thread Marc Kleine-Budde
means that a dma_inv_range can corrupt other memory around the buffer. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de [mkl: use dma_alloc] Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/usb/gadget/composite.c |5 +++-- drivers/usb/gadget/dfu.c |5 +++-- 2

[PATCH 4/6] blackfin, mips, openrisc, ppc, sandbox, x86: add transparent dma_alloc, dma_free inlines

2012-06-19 Thread Marc Kleine-Budde
-by: Marc Kleine-Budde m...@pengutronix.de --- arch/blackfin/include/asm/dma.h | 21 + arch/mips/include/asm/dma.h | 21 + arch/openrisc/include/asm/dma.h | 21 + arch/ppc/include/asm/dma.h | 21 + arch

[PATCH 5/6] USB gadget fsl: request cacheline aligned buffer

2012-06-19 Thread Marc Kleine-Budde
Hauer s.ha...@pengutronix.de [mkl: use dma_alloc] Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/usb/gadget/fsl_udc.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/fsl_udc.c b/drivers/usb/gadget/fsl_udc.c index 5b64ec2..2765b41

[PATCH 1/6] ARM mmu: don't use CONFIG_MMU to disable mmu code, there are static inline versions

2012-06-19 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/arm/cpu/mmu.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c index c19f931..55b07a4 100644 --- a/arch/arm/cpu/mmu.c +++ b/arch/arm/cpu/mmu.c @@ -299,11 +299,9 @@ void

[PATCH v2 3/6] nios: add dma_alloc, asm/dma.h

2012-06-20 Thread Marc Kleine-Budde
This patch add dma_alloc to existing dma-mapping.h. On nios the mem is aligned to D_ACHE_LINE_SIZE. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/nios2/include/asm/dma-mapping.h | 10 ++ arch/nios2/include/asm/dma.h |8 2 files changed, 18

[PATCH v2 0/6] fix dma memory allocations, add dma_alloc/dma_free

2012-06-20 Thread Marc Kleine-Budde
on ARM using dfu mode we've seen problems with dma memory allocations. Some drivers use dma_inv_range on allocated buffers, which corrupts memory around the buffer, it it's not aligned to cache lines. This series introduces: dma_alloc() and dma_free() that allocate memory aligned to cache lines.

[PATCH v2 5/6] USB gadget fsl: request cacheline aligned buffer

2012-06-20 Thread Marc Kleine-Budde
Hauer s.ha...@pengutronix.de [mkl: use dma_alloc] Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/usb/gadget/fsl_udc.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/fsl_udc.c b/drivers/usb/gadget/fsl_udc.c index 5b64ec2..627e417

[PATCH v2 4/6] ARM mmu: add dma_alloc

2012-06-20 Thread Marc Kleine-Budde
dma_alloc() allocates memory aligned to cache lines. We have to use cache line aligned buffers if a driver calls dma_inv_range on the buffer. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/arm/include/asm/dma.h |8 arch/arm/include/asm/mmu.h | 13 +++-- 2

Re: [PATCH 1/2] Enable a way to provide the reason for being here

2012-06-20 Thread Marc Kleine-Budde
/* generic ReST */ +#define RESET_WDG 3 /* watchdog */ +#define RESET_WKE 4 /* wake */ +#define RESET_JTAG 5 use enum here + +extern void set_reset_source(unsigned); + +#endif /* __INCLUDE_RESET_SOURCE_H */ -- Pengutronix e.K. | Marc Kleine-Budde | Industrial

Re: [PATCH 4/4] ARM/MXS: add reset cause detection

2012-07-12 Thread Marc Kleine-Budde
*dev) if (rc != 0) goto on_error; +#ifdef CONFIG_GLOBALVAR What about: if (IS_ENABLED(CONFIG_GLOBALVAR)) + imx28_detect_reset_source(priv); +#endif dev-priv = priv; return 0; -- Pengutronix e.K. | Marc Kleine-Budde

[PATCH v2] usb: gadget: enable for MXS

2012-07-16 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- Changes since v1: - enable Arc OTG Driver, too (tnx Sascha) Marc drivers/usb/gadget/Kconfig |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index f7f2697

Re: [PATCH 8/9] ARM: Separate assembler functions into their own section

2012-07-19 Thread Marc Kleine-Budde
+.section .text.__mmu_cache_on ENTRY(__mmu_cache_on) Is it possible to add the section to the ENTRY macro? Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49

Re: [PATCH v2 1/2] mfd: add stmpe-i2c driver

2012-09-04 Thread Marc Kleine-Budde
(struct stmpe *priv, u32 reg, u8 mask, u8 val); + +#endif /* __ASM_ARCH_STMPE_H */ Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-

Re: [PATCH v3 1/2] mfd: add stmpe-i2c driver

2012-09-04 Thread Marc Kleine-Budde
(struct stmpe *priv, u32 reg, u8 mask, u8 val); + +#endif /* __ASM_ARCH_STMPE_H */ Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-

Re: [PATCH 1/2] Add bcm2835/Raspberry-Pi support

2012-09-19 Thread Marc Kleine-Budde
On 09/19/2012 01:10 PM, Carlo Caione wrote: On 19/09/2012 12:49, Marc Kleine-Budde wrote: On 09/19/2012 12:08 PM, Jan Lübbe wrote: Hi, On Wed, 2012-09-19 at 12:00 +0200, Carlo Caione wrote: You need an sd card with a single partition fat32 with inside bootcode.bin, loader.bin and start.elf

Re: [PATCH 1/3] at91: add boot mode detection support

2013-02-05 Thread Marc Kleine-Budde
| 57 ++ what about making this a common bootmode helper, which can be used on other platforms too? Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund

Re: [PATCH 5/6] common: add mem_test routine

2013-02-07 Thread Marc Kleine-Budde
+#define __MEMORY_TEST_H + +#include progress.h +#include common.h +#include memory.h +#include types.h + +int mem_test(vu_long _start, vu_long _end, + int bus_only); + +#endif Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions

Re: [PATCH 6/6] commands: add new memtest command

2013-02-07 Thread Marc Kleine-Budde
, + BAREBOX_CMD_HELP(cmd_memtest_help) +BAREBOX_CMD_END -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917- | Amtsgericht Hildesheim, HRA 2686 | http

Re: [PATCH 1/1] commands/ubi.c: Add support for VID header offset in ubiattach

2013-02-12 Thread Marc Kleine-Budde
with the correct VID header offset? Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917- | Amtsgericht Hildesheim, HRA 2686 | http

Re: [PATCH 1/1] commands/ubi.c: Add support for VID header offset in ubiattach

2013-02-13 Thread Marc Kleine-Budde
On 02/12/2013 11:52 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 23:49 Tue 12 Feb , Marc Kleine-Budde wrote: On 02/11/2013 04:14 PM, Xavier Douville wrote: Hi Sascha Hauer wrote: I don't know exactly, but I suspect something is wrong on your board then. Normally the VID header offset

Re: [PATCH] bareboxenv: Return proper exit code on failure.

2013-02-26 Thread Marc Kleine-Budde
+ printf(saving env failed: %d\n, err); } - exit(0); + exit((err)?1:0); extra spaces, please: err ? 1 : 0 } Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West

[PATCH 2/2] driver/serial: add driver for the mxs application uart

2013-02-26 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/serial/Makefile |1 + drivers/serial/serial_auart.c | 257 + 2 files changed, 258 insertions(+) create mode 100644 drivers/serial/serial_auart.c diff --git a/drivers/serial

[PATCH 0/2] add mxs application uart driver

2013-02-26 Thread Marc Kleine-Budde
Hello, this series adds support for the mxs application uart driver. Lifted from TQS's u-boot patches. regards, Marc ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH 1/2] driver/serial: Kconfig: explicitly state that existing mxs driver is for the debug uart

2013-02-26 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/serial/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index a8be9cd..b23d17e 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -21,7

[PATCH 1/2] driver/serial: Kconfig: explicitly state that existing mxs driver is for the debug uart

2013-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/serial/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index a8be9cd..b23d17e 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -21,7

[PATCH 2/2] driver/serial: add driver for the mxs application uart

2013-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/serial/Kconfig|4 + drivers/serial/Makefile |1 + drivers/serial/serial_auart.c | 238 + 3 files changed, 243 insertions(+) create mode 100644 drivers/serial

[PATCH v2 0/2] add mxs application uart driver

2013-02-28 Thread Marc Kleine-Budde
Hello, this series adds support for the mxs application uart driver. Lifted from TQS's u-boot patches. regards, Marc changes since v1: - fix comments (auart_serial_getc(), auart_serial_setbaudrate()) - use auart_serial_setbaudrate Both suggested by Sascha.

[PATCH 07/10] bootsource: use initcall to export bootsource location to environment

2013-03-14 Thread Marc Kleine-Budde
This way the bootsource is exported to the environment, even if unknown. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- common/bootsource.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/common/bootsource.c b/common/bootsource.c index 2aa0ffa..ebe4407

[PATCH 09/10] bootsource: add definition for usb and eeprom

2013-03-14 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- common/bootsource.c | 2 ++ include/bootsource.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/common/bootsource.c b/common/bootsource.c index fae554d..599bcd2 100644 --- a/common/bootsource.c +++ b/common/bootsource.c @@ -31,6

[PATCH 10/10] ARM: mxs: add bootsource detection

2013-03-14 Thread Marc Kleine-Budde
For now only the v1.2 i.MX28 silicon is supported. The actual information is read from a magic address within the internal SRAM. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/arm/mach-mxs/imx.c | 99 +++ arch/arm/mach-mxs/include/mach

[PATCH 06/10] bootsource: create arch independent bootsource framework

2013-03-14 Thread Marc Kleine-Budde
This patch seperates the imx independent from the arch independent code. The following functions and enums are renamed: - imx_bootsource() - bootsource_get() - imx_set_bootsource() - bootsource_set() - enum imx_bootsource - enum bootsource Signed-off-by: Marc Kleine-Budde m...@pengutronix.de

[PATCH v2 3/7] bootsource: use initcall to export bootsource location to environment

2013-04-03 Thread Marc Kleine-Budde
This way the bootsource is exported to the environment, even if unknown. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/bootsource.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/common

[PATCH v2 5/7] bootsource: add definition for i2c-eeprom, spi-nor, spi-eeprom and usb

2013-04-03 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- common/bootsource.c | 4 include/bootsource.h | 4 2 files changed, 8 insertions(+) diff --git a/common/bootsource.c b/common/bootsource.c index 7367215..7f3d51f 100644 --- a/common/bootsource.c +++ b/common/bootsource.c

[PATCH v2 4/7] bootsource: add support for bootsource instance information

2013-04-03 Thread Marc Kleine-Budde
Add a C interface to set and get the bootsource instance: int bootsource_get_instance(void); void bootsource_set_instance(int instance); Also export the shell variable bootsource_instance. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de Signed-off-by: Sascha Hauer s.ha

[PATCH v2 1/7] ARM: i.MX: rename barebox_loc to bootsource

2013-04-03 Thread Marc Kleine-Budde
be some other first stage loader. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/arm/boards/efika-mx-smartbook/env/init/bootsource | 2 +- arch/arm/mach-imx/boot.c | 8 arch/arm/mach-imx/imx51

[PATCH v2 6/7] ARM: i.MX53: Add bootsource instance information

2013-04-03 Thread Marc Kleine-Budde
From: Sascha Hauer s.ha...@pengutronix.de The i.MX53 has the bootsource instance information stored in SBMR[21:22], expose it to the environment. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/arm/mach-imx/boot.c | 18

Re: [PATCH v2] ARM i.MX28: make chip reset via reset pin work again

2013-04-24 Thread Marc Kleine-Budde
On 04/19/2013 04:36 PM, Marc Kleine-Budde wrote: Since commit: 2ccd451 ARM i.MX28: change default watchdog reset method the external reset via the reset pin is broken. That commit overwrites the HW_CLKCTRL_RESET register with only WDOG_POR_DISABLE set, which results in disabling

Re: [PATCH v2] ARM i.MX28: make chip reset via reset pin work again

2013-04-24 Thread Marc Kleine-Budde
On 04/24/2013 10:35 AM, Sascha Hauer wrote: On Wed, Apr 24, 2013 at 10:28:53AM +0200, Marc Kleine-Budde wrote: On 04/19/2013 04:36 PM, Marc Kleine-Budde wrote: Since commit: 2ccd451 ARM i.MX28: change default watchdog reset method the external reset via the reset pin is broken

Re: [PATCH v2] ARM i.MX28: make chip reset via reset pin work again

2013-04-24 Thread Marc Kleine-Budde
On 04/24/2013 04:45 PM, Sascha Hauer wrote: On Wed, Apr 24, 2013 at 10:37:12AM +0200, Marc Kleine-Budde wrote: On 04/24/2013 10:35 AM, Sascha Hauer wrote: On Wed, Apr 24, 2013 at 10:28:53AM +0200, Marc Kleine-Budde wrote: On 04/19/2013 04:36 PM, Marc Kleine-Budde wrote: Since commit

[PATCH] 2048: port to barebox

2014-04-08 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- common/2048/2048.c| 357 ++ common/2048/LICENSE | 21 +++ common/2048/Makefile | 1 + common/2048/README.md | 32 + common/Makefile | 1 + 5 files changed, 412

Re: RFC: barebox-x86 as a coreboot payload

2014-04-08 Thread Marc Kleine-Budde
://www.coreboot.org/Payloads -- Amused: http://www.coreboot.org/File:Coreboot_libpayload_tint.png This is a really missing feature in barebox :) What about 2048? Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231

Re: [PATCH: For next 1/2] ARM: am33xx: Add a function to retrieve the reset reason

2015-02-09 Thread Marc Kleine-Budde
support for reset src detection regards, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917- | Amtsgericht Hildesheim, HRA 2686 | http

Re: [PATCH] paramter: The dev_add_param_*() return ERR_PTR(), change no-ops to return ERR_PTR(-ENOSYS) instead of NULL

2015-03-09 Thread Marc Kleine-Budde
On 03/09/2015 03:45 PM, Marc Kleine-Budde wrote: Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- include/param.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/param.h b/include/param.h index 53bee541100e..bd2c0789968a 100644

[PATCH] paramter: The dev_add_param_*() return ERR_PTR(), change no-ops to return ERR_PTR(-ENOSYS) instead of NULL

2015-03-09 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- include/param.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/param.h b/include/param.h index 53bee541100e..bd2c0789968a 100644 --- a/include/param.h +++ b/include/param.h @@ -97,7 +97,7

Re: [PATCH] paramter: The dev_add_param_*() return ERR_PTR(), change no-ops to return ERR_PTR(-ENOSYS) instead of NULL

2015-03-09 Thread Marc Kleine-Budde
On 03/09/2015 03:45 PM, Marc Kleine-Budde wrote: On 03/09/2015 03:45 PM, Marc Kleine-Budde wrote: Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- include/param.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/param.h b/include/param.h

Re: [PATCH 0/3] sandbox cleanups

2015-03-10 Thread Marc Kleine-Budde
On 03/10/2015 03:24 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:36 Thu 05 Mar , Marc Kleine-Budde wrote: Hey Sascha, three patches for next, please fixup into the for-next/sandbox-of banch. I test the new sanbox on next when you pass -i the file is not present in the /dev now

Re: [PATCH 0/3] sandbox cleanups

2015-03-10 Thread Marc Kleine-Budde
On 03/10/2015 03:24 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: I'm working on secure boot and I use sandbox qemu to test it BTW: what's your target ARCH, as I'm working on secure boot, too. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions

Re: git fetch issue

2015-03-12 Thread Marc Kleine-Budde
git repo is damaged or you having a hardware problem. Make a copy of your git repo (using cp or tar) and try running git fsck on it. I've just cloned from git://git.pengutronix.de/git/barebox.git using git-2.1.4 without problems. Marc -- Pengutronix e.K. | Marc Kleine-Budde

Re: [PATCH 0/3] sandbox cleanups

2015-03-10 Thread Marc Kleine-Budde
On 03/10/2015 03:52 PM, Marc Kleine-Budde wrote: On 03/10/2015 03:26 PM, Marc Kleine-Budde wrote: can we fix it asap please TOO busy to dig into it Can you apply there three patches and check if the problem is solved? Should be fixed on next now. Works here as I expect it: ➜ (pts/2

Re: [PATCH 0/3] sandbox cleanups

2015-03-10 Thread Marc Kleine-Budde
On 03/10/2015 03:26 PM, Marc Kleine-Budde wrote: can we fix it asap please TOO busy to dig into it Can you apply there three patches and check if the problem is solved? Should be fixed on next now. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux

Re: [PATCH 0/3] sandbox cleanups

2015-03-10 Thread Marc Kleine-Budde
On 03/10/2015 03:59 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: IMX6 is one of them HAB4 /me, too I’m sending patch I need one or 2 weeks more and I’ll have a first full implenentation Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions

[PATCH v5] state: add framework for persistent state handling

2015-03-10 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- .../devicetree/bindings/barebox/barebox,state.rst | 107 ++ commands/Kconfig |5 + commands/Makefile |1 + commands/state.c | 77

Re: [RFC 3/4] FIT: add FIT image support

2015-03-13 Thread Marc Kleine-Budde
. As a secure boot is as strong as it's weak link but this will not reduce it either Adding unneeded complexity might not the best move here. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung

Re: [RFC 3/4] FIT: add FIT image support

2015-03-13 Thread Marc Kleine-Budde
-stand/ While sha1 is considered broken. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917- | Amtsgericht Hildesheim, HRA 2686 | http

[PATCH 1/2] images: mxs: remove not used PREP_ definitions

2015-03-31 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- images/Makefile.mxs | 4 1 file changed, 4 deletions(-) diff --git a/images/Makefile.mxs b/images/Makefile.mxs index c93fb571f25f..93d43b352908 100644 --- a/images/Makefile.mxs +++ b/images/Makefile.mxs @@ -22,7 +22,6 @@ mxs23cfg

[PATCH 2/2] commands: dmesg: fi format security warning

2015-03-31 Thread Marc Kleine-Budde
commands/dmesg.c: In function ‘do_dmesg’: commands/dmesg.c:71:3: warning: format not a string literal and no format arguments [-Wformat-security] Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- commands/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 08/10] imx-image: add option to prepare image for HAB signing

2015-04-01 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- scripts/imx/imx-image.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index 1c032a3cb142..b3c77927b555 100644 --- a/scripts/imx/imx-image.c +++ b/scripts

Re: [PATCH 09/10] images: add HABv4 support for i.MX6

2015-04-01 Thread Marc Kleine-Budde
On 04/01/2015 06:14 PM, Marc Kleine-Budde wrote: This patch adds high assurance boot support (HABv4) image generation to barebox, currently tested on i.MX6 only. In order to build a singed barebox image, add a new image target to images/Makefile.imx as illustrated in the diff below

[PATCH 05/10] imx-image: mx35: increase load image size, due to dobule header

2015-04-01 Thread Marc Kleine-Budde
Since commit: 690e39202747 imx-image: handle i.MX35 special case the IVT+DCD header is placed both at 0x0 and 0x1000, this patch reflects this change and increases the load image size accordingly. Cc: Eric Bénard e...@eukrea.com Signed-off-by: Marc Kleine-Budde m...@pengutronix.de

[PATCH 02/10] imx-image: add_header_v2(): replace hardcoded 0x400 by offset parameter

2015-04-01 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- scripts/imx/imx-image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index 2fa84b1a1d53..3d8b604b7cb4 100644 --- a/scripts/imx/imx-image.c +++ b/scripts/imx/imx

[PATCH 06/10] imx-image: main: make use of round_up instead of open coding it

2015-04-01 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- scripts/imx/imx-image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index fd78a86198d6..ec2e8deb015b 100644 --- a/scripts/imx/imx-image.c +++ b/scripts/imx/imx

[PATCH 01/10] imx-image: sort included header files

2015-04-01 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- scripts/imx/imx-image.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index 1f37fe20bcc0..2fa84b1a1d53 100644 --- a/scripts/imx/imx-image.c +++ b

[PATCH 01/10] add habv4 support for i.MX6

2015-04-01 Thread Marc Kleine-Budde
Hello, this series first cleans up the imx-image generation process. Then support for HABv4 signed images is added. The last patch add code to decode HAB events, which is usefull during development. Tested on $CUSTOMER's i.MX6 solo. cheers, Marc ___

[PATCH 07/10] imx-image: pad generated image to 4k

2015-04-01 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- scripts/imx/imx-image.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index ec2e8deb015b..1c032a3cb142 100644 --- a/scripts/imx/imx-image.c +++ b

[PATCH 10/10] habv4: add High Assurance Boot v4

2015-04-01 Thread Marc Kleine-Budde
://community.freescale.com/thread/317254 [3] https://community.freescale.com/docs/DOC-96451 Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/Makefile | 1 + drivers/habv4/Makefile | 1 + drivers/habv4/habv4.c | 237 + include/habv4.h

[PATCH 09/10] images: add HABv4 support for i.MX6

2015-04-01 Thread Marc Kleine-Budde
by Freescale tool is expected in the PATH. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/arm/mach-imx/Kconfig| 39 images/.gitignore| 2 ++ images/Makefile | 1 + images/Makefile.habv4| 48

[PATCH 03/10] imx-image: replace 0x400 by FLASH_HEADER_OFFSET

2015-04-01 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- scripts/imx/imx-image.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index 3d8b604b7cb4..45f97504054e 100644 --- a/scripts/imx/imx-image.c +++ b/scripts/imx/imx

[PATCH 04/10] imx-image: introduce HEADER_LEN and replace several 0x1000 and 4096

2015-04-01 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- scripts/imx/imx-image.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index 45f97504054e..89cb8240e40d 100644 --- a/scripts/imx/imx-image.c +++ b/scripts

[PATCH 06/16] sandbox: fix indention in help text

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/os/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c index 0854fb5d802d..65dc4a1ab75c 100644 --- a/arch/sandbox/os/common.c +++ b/arch/sandbox/os

[PATCH 16/16] sandbox: activate OF support in defconfig

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/configs/sandbox_defconfig | 35 ++ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/arch/sandbox/configs/sandbox_defconfig b/arch/sandbox/configs/sandbox_defconfig index

[PATCH 03/16] of_path: of_find_path(): remove unused variable len

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/of/of_path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/of_path.c b/drivers/of/of_path.c index f0fd917ada56..df63c5782a02 100644 --- a/drivers/of/of_path.c +++ b/drivers/of/of_path.c @@ -132,9

[PATCH 10/16] sandbox: hostfile: remove struct hf_platform_data from hf_priv

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/board/hostfile.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index 6ec3b87efa86..fef9f5cffa89 100644 --- a/arch/sandbox/board/hostfile.c +++ b/arch/sandbox

[PATCH 04/16] of: make first argument of several of_property_*_string functions const

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/of/base.c | 8 include/of.h | 16 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index af10fd1da32c..4b5d4d75f19c 100644 --- a/drivers/of/base.c

general cleanups and sandbox OF integration

2015-02-28 Thread Marc Kleine-Budde
Hello Sascha, the first five patches are several cleanups in barebox, I've found while working on a new feautre. The remaining ones bring OF support to the sandbox so that enables testing of framworks which need the device tree. regards, Marc ___

[PATCH 12/16] sandbox: hostfile: probe driver earlier

2015-02-28 Thread Marc Kleine-Budde
This patch convert from device_platform_driver to coredevice_platform_driver, so that the driver is initialzied before the state framework is probed. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/board/hostfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 02/16] fs: make offset parameter of erase() and protect() 64 bit safe

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- fs/fs.c | 4 ++-- include/fs.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index ffdfa2c0ff39..779f2641b200 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -923,7 +923,7 @@ out: } EXPORT_SYMBOL

[PATCH 08/16] sandbox: hostfile: clarify variable names

2015-02-28 Thread Marc Kleine-Budde
Use filename for the name of the file in the host system, while devname for the device in the sandbox. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/board/hostfile.c | 2 +- arch/sandbox/mach-sandbox/include/mach/hostfile.h | 2 +- arch/sandbox/os

[PATCH 11/16] sandbox: hostfile: move fd from platform data to priv

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/board/hostfile.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index fef9f5cffa89..103bcd9badc7 100644 --- a/arch/sandbox/board

[PATCH 14/16] sandbox: hostfile: add support for OF

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/board/hostfile.c | 59 +-- arch/sandbox/mach-sandbox/include/mach/hostfile.h | 1 + arch/sandbox/os/common.c | 31 +--- 3 files changed, 82 insertions

[PATCH 05/16] of/base: fix sparse warning, don't use interger 0 as NULL pointer

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/of/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 4b5d4d75f19c..0cffb962e637 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -184,7 +184,7 @@ void

[PATCH 13/16] sandbox: hostfile: use the memory resource to determine the size not the platform_data

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/board/hostfile.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index 42ade6bec8a4..d9ca1a423acf 100644 --- a/arch/sandbox/board

[PATCH 09/16] sandbox: hostfile: probe(): add missing pointer from cdev.dev to dev

2015-02-28 Thread Marc Kleine-Budde
Without this pointer the cdev will not be associated with the dev, of_find_path() relies on this. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/board/hostfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board

[PATCH 01/16] drivers: remove unused function dev_protect()

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/base/driver.c | 6 -- include/driver.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 81b35031a111..3363b56675ee 100644 --- a/drivers/base/driver.c +++ b/drivers

[PATCH 15/16] sandbox: add sample dts

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/Makefile | 2 ++ arch/sandbox/dts/.gitignore| 1 + arch/sandbox/dts/Makefile | 11 +++ arch/sandbox/dts/sandbox.dts | 13 + arch/sandbox/dts/skeleton.dtsi | 13 + 5 files

[PATCH 07/16] sandbox: add support to pass dtb to barebox

2015-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/board/Makefile| 1 + arch/sandbox/board/dtb.c | 57 ++ arch/sandbox/mach-sandbox/include/mach/linux.h | 1 + arch/sandbox/os/common.c

Re: [PATCH v3 01/13] sandbox: add support to pass dtb to barebox

2015-03-03 Thread Marc Kleine-Budde
On 03/03/2015 09:43 PM, Sascha Hauer wrote: On Tue, Mar 03, 2015 at 01:14:47PM +0100, Marc Kleine-Budde wrote: Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/Kconfig | 1 + arch/sandbox/board/Makefile| 1 + arch/sandbox

Re: [PATCH 04/16] of: make first argument of several of_property_*_string functions const

2015-03-01 Thread Marc Kleine-Budde
or just a nice to have? The functions are takes from the kernel and the device_node arguments cannot be const there because the functions take a reference on the node. I see, I'll remove the patch and adopt my code. Marc -- Pengutronix e.K. | Marc Kleine-Budde

Re: [PATCH 07/16] sandbox: add support to pass dtb to barebox

2015-03-01 Thread Marc Kleine-Budde
Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917- | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | signature.asc Description: OpenPGP digital signature

[PATCH v2 01/17] drivers: remove unused function dev_protect()

2015-03-01 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- drivers/base/driver.c | 6 -- include/driver.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 81b35031a111..3363b56675ee 100644 --- a/drivers/base/driver.c +++ b/drivers

[PATCH v2 17/17] sandbox: activate OF support in defconfig

2015-03-01 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/configs/sandbox_defconfig | 35 ++ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/arch/sandbox/configs/sandbox_defconfig b/arch/sandbox/configs/sandbox_defconfig index

[PATCH v2 13/17] sandbox: hostfile: probe driver earlier

2015-03-01 Thread Marc Kleine-Budde
This patch convert from device_platform_driver to coredevice_platform_driver, so that the driver is initialzied before the state framework is probed. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/board/hostfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 08/17] sandbox: add support to pass dtb to barebox

2015-03-01 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/sandbox/board/Makefile| 1 + arch/sandbox/board/dtb.c | 57 ++ arch/sandbox/mach-sandbox/include/mach/linux.h | 10 + arch/sandbox/os/Makefile

  1   2   3   4   >