Re: [PATCH] ubi: add setting devnum to ubiattach

2014-09-01 Thread Sascha Hauer
On Thu, Aug 28, 2014 at 03:27:11PM +0400, Antony Pavlov wrote: BAREBOX_CMD_START(ubiattach) .cmd= do_ubiattach, BAREBOX_CMD_DESC(attach mtd device to UBI) - BAREBOX_CMD_OPTS([-O] MTDDEV) + BAREBOX_CMD_OPTS([-dO] MTDDEV) Can we use a more accurate variant?

Re: [BUG] readline history

2014-09-01 Thread Sascha Hauer
Hi Teresa, On Thu, Aug 28, 2014 at 09:50:05AM +0200, Teresa Gamez wrote: Hello Sascha, I noticed a bug on the latest master. When no history is present and I hit the arrow up key, I get: unable to handle NULL pointer dereference at address 0x0001 pc : [9fe243ba]lr : [9fe268cf]

Re: [BUG] readline history

2014-09-01 Thread Alexander Aring
Hi Sascha, On Mon, Sep 01, 2014 at 10:30:33AM +0200, Sascha Hauer wrote: Hi Teresa, On Thu, Aug 28, 2014 at 09:50:05AM +0200, Teresa Gamez wrote: Hello Sascha, I noticed a bug on the latest master. When no history is present and I hit the arrow up key, I get: unable to handle

Re: [PATCH] ubiformat: Include missing header

2014-09-01 Thread Sascha Hauer
On Sat, Aug 23, 2014 at 04:23:48PM -0300, Ezequiel Garcia wrote: Currently this warning is found when compiling ubiformat.c CC commands/ubiformat.o commands/ubiformat.c: In function 'flash_image': commands/ubiformat.c:368:3: warning: implicit declaration of function 'read_full'

Re: [PATCH 0/3] misc .gitignore-related fixes

2014-09-01 Thread Sascha Hauer
On Wed, Aug 06, 2014 at 09:44:03AM +0400, Antony Pavlov wrote: Antony Pavlov (3): openrisc: add barebox.lds to .gitignore scripts: add bareboximd{,-target} to .gitignore fixup! dtc: compile fdtget Applied, thanks Sascha arch/openrisc/cpu/.gitignore | 1 + scripts/.gitignore

Re: [PATCH 1/2] nand: Add Marvell Orion NAND driver

2014-09-01 Thread Sascha Hauer
On Tue, Aug 26, 2014 at 04:28:13PM +0200, Alexander Aring wrote: Hi, On Sat, Aug 23, 2014 at 05:19:22PM -0300, Ezequiel Garcia wrote: This commit adds NAND support for the controller present in Kirkwood SoCs. cool! I will test it on my DNS-325 platform, if I find some free time.

Re: [PATCH] scripts: gitignore: update based on Makefile

2014-09-01 Thread Sascha Hauer
On Fri, Aug 15, 2014 at 02:11:32AM +0200, Andreas Pretzsch wrote: Create up-to-date list of hostprogs and targetprogs based on Makefile. Have this list sorted like the targets in the Makefile to ease maintenance. Also move some leftovers from root .gitignore over here. Signed-off-by: Andreas

[RFC] MTD m25p80 3-byte addressing and boot problem

2014-09-01 Thread Matteo Fortini
If a Linux/Barebox system is using an SPI flash of size = 16 MB, the driver is switching to 3-byte addressing to be able to use linear access to the whole memory. This leads to the impossibility to boot a board after a warm reset, because all bootloaders use the standard 2-byte addressing (if

Re: [PATCH 1/5] mtd: nand: remove NAND_ATMEL_PMECC

2014-09-01 Thread Sascha Hauer
On Wed, Aug 06, 2014 at 09:21:52AM +0200, Raphaël Poggi wrote: Ok, I did it because we need a structure member to retrieve atmel,has-pmecc from device tree. Is this ok if I add the has_pmecc member (feed by atmel_nand_of_init), let the NAND_ATMEL_PMECC, and the if will be like : if

Re: [PATCH 4/5] board: atmel: initialise ecc_mode

2014-09-01 Thread Sascha Hauer
On Tue, Aug 05, 2014 at 11:14:48AM +0200, Raphaël Poggi wrote: This commit initialise the ecc_mode (NAND_ECC_SOFT) on atmel board init which missing it. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- arch/arm/boards/at91sam9260ek/init.c|1 +

Re: [PATCH 2/2] EFI: handle more boot devices

2014-09-01 Thread Michael Olbrich
On Mon, Sep 01, 2014 at 11:06:19AM +0200, Sascha Hauer wrote: On Tue, Aug 12, 2014 at 11:37:21AM +0200, Michael Olbrich wrote: efi_get_boot() fails for partitions that are not supported, so errors must be ignored to find all supported devices. Signed-off-by: Michael Olbrich

Re: [PATCH v2 1/2] pinctrl: at91: add pinctrl driver

2014-09-01 Thread Sascha Hauer
On Tue, Aug 05, 2014 at 01:09:16PM -0700, Raphaël Poggi wrote: diff --git a/drivers/pinctrl/pinctrl-at91.h b/drivers/pinctrl/pinctrl-at91.h new file mode 100644 index 000..e719fb8 --- /dev/null +++ b/drivers/pinctrl/pinctrl-at91.h @@ -0,0 +1,148 @@ +/* + * Copyright (C) 2011-2012

Re: [PATCH 2/2] EFI: handle more boot devices

2014-09-01 Thread Sascha Hauer
On Mon, Sep 01, 2014 at 12:02:00PM +0200, Michael Olbrich wrote: On Mon, Sep 01, 2014 at 11:06:19AM +0200, Sascha Hauer wrote: On Tue, Aug 12, 2014 at 11:37:21AM +0200, Michael Olbrich wrote: efi_get_boot() fails for partitions that are not supported, so errors must be ignored to find all

Re: [PATCH v3 2/3] at91sam9g45: clock: add i2c clocks

2014-09-01 Thread Sascha Hauer
On Wed, Aug 06, 2014 at 12:17:48PM +0200, Raphaël Poggi wrote: Add the device tree and non device tree at91 i2c clocks. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- arch/arm/mach-at91/at91sam9g45.c |4 1 file changed, 4 insertions(+) diff --git

Re: [PATCH v3] commands: of_dump switch to get fixed devictree

2014-09-01 Thread Sascha Hauer
On Thu, Aug 21, 2014 at 04:15:07PM +0400, Antony Pavlov wrote: On Thu, 21 Aug 2014 13:26:19 +0200 Jan Weitzel j.weit...@phytec.de wrote: Add a switch to get the devicetree processed by the registered fixups. This is also whats the kernel gets. BAREBOX_CMD_START(of_dump) .cmd

Re: [PATCH v3] commands: of_dump switch to get fixed devictree

2014-09-01 Thread Sascha Hauer
On Thu, Aug 21, 2014 at 01:26:19PM +0200, Jan Weitzel wrote: Add a switch to get the devicetree processed by the registered fixups. This is also whats the kernel gets. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v3: create a copy of the internal devicetree before use of_fix_tree

Re: [PATCH] commands: saveenv: Fix comment about directories in help text

2014-09-01 Thread Sascha Hauer
On Fri, Aug 01, 2014 at 08:45:04AM +0200, Alexander Aring wrote: Hi Sascha, On Fri, Aug 01, 2014 at 08:17:10AM +0200, Sascha Hauer wrote: envfs indeed handles directories, at least since 2007: | commit 913691eccd13c1509470eb8b059aa0beecc6d8d8 | Author: Sascha Hauer

Re: [PATCH 0/2] Rockchip: adapt pinctrl driver to new dts

2014-09-01 Thread Sascha Hauer
On Thu, Jul 24, 2014 at 06:54:56PM +0200, Beniamino Galvani wrote: Hi, the dts for Rockchip rk3188 imported in commit 9313920df6d dts: update to v3.16-rc1 contains a change in the bindings for the pinctrl node, which now uses syscons to obtain the address of memory mapped registers. On

Re: [RFC] MTD m25p80 3-byte addressing and boot problem

2014-09-01 Thread Mark Marshall
Hi. We had the same problem here, but luckily our Flash also supported a different read command that took the larger address. I made a (small) modification to the m25p80 driver to use this command when the flash supported it. I've attached the two patches that come from my tree that are

Re: [BUG] readline history

2014-09-01 Thread Sascha Hauer
On Mon, Sep 01, 2014 at 10:44:57AM +0200, Alexander Aring wrote: Hi Sascha, On Mon, Sep 01, 2014 at 10:30:33AM +0200, Sascha Hauer wrote: Hi Teresa, On Thu, Aug 28, 2014 at 09:50:05AM +0200, Teresa Gamez wrote: Hello Sascha, I noticed a bug on the latest master. When no

[PATCH v3 3/3] mtd: atmel_nand: add support for device tree

2014-09-01 Thread Raphaël Poggi
Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- drivers/mtd/nand/atmel_nand.c | 111 - 1 file changed, 110 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 2246602..910ecc3 100644 ---

[PATCH v3 0/3] Add device tree support of Atmel NAND driver

2014-09-01 Thread Raphaël Poggi
Change since v2: * Combine in one patch the creation and initialisation of has_pmecc structure member * Combine patch [PATCH 3/5] mtd: atmel_nand: retrieve ecc_mode from pdata and [PATCH 4/5] board: atmel: initialise ecc_mode * Let NAND_ATMEL_PMECC

[PATCH v3 2/3] mtd: atmel_nand: retrieve ecc_mode from pdata

2014-09-01 Thread Raphaël Poggi
By retrieving the ecc_mode from pdata we can use the same code for device tree and non device tree probing. Which was not possible before, because ecc_mode was arbitrarily set to NAND_ECC_SOFT. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- arch/arm/boards/at91sam9260ek/init.c|1

Re: [PATCH v3] commands: of_dump switch to get fixed devictree

2014-09-01 Thread Jan Weitzel
Am 01.09.2014 um 12:38 schrieb Sascha Hauer: On Thu, Aug 21, 2014 at 01:26:19PM +0200, Jan Weitzel wrote: Add a switch to get the devicetree processed by the registered fixups. This is also whats the kernel gets. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v3: create a copy of the