Re: [PATCH] ARM: atmel: sama5d4 xplained: correc env path

2015-02-10 Thread Bo Shen
Hi Sascha, I found there is a typo error in subject. "s/correc/correct" Can you help fix it? Thanks. On 02/10/2015 05:36 PM, Sascha Hauer wrote: On Tue, Feb 10, 2015 at 04:04:01PM +0800, Bo Shen wrote: Correct the environment path for sama5d4 xplained board. Signed-off-by: Bo Shen ---

Re: [PATCH 1/2] SAMA5D4EK - Now mostly supports booting Android from NAND.

2015-02-10 Thread Sascha Hauer
On Wed, Feb 11, 2015 at 01:04:54PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote: > Nack > > I use those board everyday on nfs boot > > the boot choice is user specific This file is removed anyway in the next patch, so this patch shouldn't exist at all. Sascha -- Pengutronix e.K.

Re: [PATCH v3: For next 2/2] ARM: am33xx: Add support for reset reason detection

2015-02-10 Thread Sascha Hauer
On Tue, Feb 10, 2015 at 03:13:58PM +0100, Wadim Egorov wrote: > Also activate in defconfig. > > Signed-off-by: Wadim Egorov > + break; > + case (1 << 1): > + reset_source_set(RESET_RST); > + break; > + case (1 << 0): > + reset_source_set(RES

Re: [PATCH] defaultenv: ignore barebox_zero_env

2015-02-10 Thread Sascha Hauer
On Tue, Feb 10, 2015 at 11:06:32PM +0900, Masahiro Yamada wrote: > Since commit c4c2317fe8a2 (defaultenv: generate force-built-in > (zero) environment file), we have this generated file. > > Signed-off-by: Masahiro Yamada Applied, thanks Sascha -- Pengutronix e.K. |

Re: [PATCH: For next 1/2] ARM: phyFLEX-AM335x-SOM: Update NAND partition table

2015-02-10 Thread Sascha Hauer
On Tue, Feb 10, 2015 at 01:29:48PM +0100, Wadim Egorov wrote: > From: Teresa Gámez > > We double the partition size for barebox-env and oftree to be > more robust against bad block issues. > > Signed-off-by: Teresa Gámez > Signed-off-by: Wadim Egorov Applied both, thanks Sascha -- Pengutro

Re: [PATCH 1/2] scripts: dtc: update to new upstream version

2015-02-10 Thread Sascha Hauer
On Tue, Feb 10, 2015 at 10:58:54AM +0100, Lucas Stach wrote: > Taken from Linux kernel 3.19. Some defines needed to get moved in order > to keep fdtget compiling. This gets rid of build failures seen with > some upstream devicetrees. > > Signed-off-by: Lucas Stach Applied, thanks Sascha -- P

Re: [PATCH 2/2] Switched SAMA5D4EK development board to the newer environment method.

2015-02-10 Thread Bo Shen
Hi J, On 02/11/2015 01:06 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: Hi, as state before I use the atmel board for bootp everyday as the defaultenv-2 does not support this Nack until it’s fixed Do you mean the defaultenv-2 doesn't support the bootp feature or do you mean le

Re: [PATCH 1/2] SAMA5D4EK - Now mostly supports booting Android from NAND.

2015-02-10 Thread Bo Shen
Hi Doug, On 02/11/2015 12:02 PM, Doug Brainard wrote: Sorry, this was more me not understanding "git send-email" the first It's OK, won't worry. time and how to keep it only sending the latest commit. We normally do it in steps 1. format patch $ git format-patch -s -n (n is the number o

Re: [PATCH 2/2] Switched SAMA5D4EK development board to the newer environment method.

2015-02-10 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, as state before I use the atmel board for bootp everyday as the defaultenv-2 does not support this Nack until it’s fixed I did send patch for this in the past but they did not hit the mainline Best Regards, J. > On Feb 11, 2015, at 12:00 PM, Doug Brainard > wrote:

Re: [PATCH 1/2] SAMA5D4EK - Now mostly supports booting Android from NAND.

2015-02-10 Thread Jean-Christophe PLAGNIOL-VILLARD
Nack I use those board everyday on nfs boot the boot choice is user specific Best Regards, J. > On Feb 10, 2015, at 10:28 PM, Doug Brainard > wrote: > > --- > arch/arm/boards/sama5d4ek/env/config | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/arch/arm/

Re: [PATCH 1/2] SAMA5D4EK - Now mostly supports booting Android from NAND.

2015-02-10 Thread Doug Brainard
Sorry, this was more me not understanding "git send-email" the first time and how to keep it only sending the latest commit. Doug On Tue, Feb 10, 2015 at 6:30 PM, Bo Shen wrote: > Hi Doug Brainard, > > On 02/10/2015 10:28 PM, Doug Brainard wrote: >> >> --- >> arch/arm/boards/sama5d4ek/env/con

Re: [PATCH 2/2] Switched SAMA5D4EK development board to the newer environment method.

2015-02-10 Thread Doug Brainard
Bo, What error are you seeing? It was booting into Linux for me with what I submitted. However, I was unable to get things working without the "nand0." piece for each partition due to what you are seeing. I based that change on what I saw in mtdparts-nand file in the telit-evk-pro3 board direct

Re: [PATCH 2/2] Switched SAMA5D4EK development board to the newer environment method.

2015-02-10 Thread Bo Shen
Hi Doug Brainard, On 02/10/2015 10:28 PM, Doug Brainard wrote: --- arch/arm/boards/sama5d4ek/env/bin/init_board | 15 arch/arm/boards/sama5d4ek/env/boot/nand-ubi| 8 + arch/arm/boards/sama5d4ek/env/config | 42 -- arch/arm/boards

Re: [PATCH 1/2] SAMA5D4EK - Now mostly supports booting Android from NAND.

2015-02-10 Thread Bo Shen
Hi Doug Brainard, On 02/10/2015 10:28 PM, Doug Brainard wrote: --- arch/arm/boards/sama5d4ek/env/config | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) As this file will be totally discard in patch 2/2. So, I think no need to add this patch. And also it change the defa

Re: openrisc build problem

2015-02-10 Thread Antony Pavlov
On Mon, 9 Feb 2015 20:24:20 +0100 Franck Jullien wrote: > 2015-02-09 12:49 GMT+01:00 Antony Pavlov : > > On Mon, 9 Feb 2015 12:26:05 +0100 > > Franck Jullien wrote: > > > >> 2015-02-09 8:40 GMT+01:00 Sascha Hauer : > >> > Hi, > >> > > >> > On Sun, Feb 08, 2015 at 08:35:40PM +0100, Franck Jullien

[PATCH 1/2] SAMA5D4EK - Now mostly supports booting Android from NAND.

2015-02-10 Thread Doug Brainard
--- arch/arm/boards/sama5d4ek/env/config | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/boards/sama5d4ek/env/config b/arch/arm/boards/sama5d4ek/env/config index 1007345..ee86c07 100644 --- a/arch/arm/boards/sama5d4ek/env/config +++ b/arch/arm/boards/sa

[PATCH 2/2] Switched SAMA5D4EK development board to the newer environment method.

2015-02-10 Thread Doug Brainard
--- arch/arm/boards/sama5d4ek/env/bin/init_board | 15 arch/arm/boards/sama5d4ek/env/boot/nand-ubi| 8 + arch/arm/boards/sama5d4ek/env/config | 42 -- arch/arm/boards/sama5d4ek/env/init/mtdparts-nand | 6 arch/arm/boards/sama5d4

[PATCH v3: For next 2/2] ARM: am33xx: Add support for reset reason detection

2015-02-10 Thread Wadim Egorov
Also activate in defconfig. Signed-off-by: Wadim Egorov --- v3: Remove init wrapper --- arch/arm/configs/am335x_defconfig| 1 + arch/arm/mach-omap/am33xx_generic.c | 39 arch/arm/mach-omap/include/mach/am33xx-silicon.h | 1 + 3 files change

[PATCH v3: For next 1/2] reset_source: Add external reset

2015-02-10 Thread Wadim Egorov
Some SoCs have special device pins for external reset signals. Signed-off-by: Wadim Egorov --- common/reset_source.c | 1 + include/reset_source.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/reset_source.c b/common/reset_source.c index 946670b..ae2f9f3 100644 --- a/common/reset

[PATCH] defaultenv: ignore barebox_zero_env

2015-02-10 Thread Masahiro Yamada
Since commit c4c2317fe8a2 (defaultenv: generate force-built-in (zero) environment file), we have this generated file. Signed-off-by: Masahiro Yamada --- defaultenv/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/defaultenv/.gitignore b/defaultenv/.gitignore index 40e90d7..7c33850

Re: [PATCH v2: For next 2/2] ARM: am33xx: Add support for reset reason detection

2015-02-10 Thread Lucas Stach
Am Dienstag, den 10.02.2015, 13:33 +0100 schrieb Wadim Egorov: > Also activate in defconfig. > > Signed-off-by: Wadim Egorov > --- > v2: Use the existing rest_source framework. > --- > arch/arm/configs/am335x_defconfig| 1 + > arch/arm/mach-omap/am33xx_generic.c | 4

[PATCH v2: For next 1/2] reset_source: Add external reset

2015-02-10 Thread Wadim Egorov
Some SoCs have special device pins for external reset signals. Signed-off-by: Wadim Egorov --- common/reset_source.c | 1 + include/reset_source.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/reset_source.c b/common/reset_source.c index 946670b..ae2f9f3 100644 --- a/common/reset

[PATCH v2: For next 2/2] ARM: am33xx: Add support for reset reason detection

2015-02-10 Thread Wadim Egorov
Also activate in defconfig. Signed-off-by: Wadim Egorov --- v2: Use the existing rest_source framework. --- arch/arm/configs/am335x_defconfig| 1 + arch/arm/mach-omap/am33xx_generic.c | 44 arch/arm/mach-omap/include/mach/am33xx-silicon.h |

[PATCH: For next 1/2] ARM: phyFLEX-AM335x-SOM: Update NAND partition table

2015-02-10 Thread Wadim Egorov
From: Teresa Gámez We double the partition size for barebox-env and oftree to be more robust against bad block issues. Signed-off-by: Teresa Gámez Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phyflex-som.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --

[PATCH: For next 2/2] ARM: phyCORE-AM335x-SOM: Update NAND partition table

2015-02-10 Thread Wadim Egorov
From: Teresa Gámez We double the partition size for barebox-env and oftree to be more robust against bad block issues. Signed-off-by: Teresa Gámez Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --

[PATCH] fixup! arm: hummingboard: fix fallout from upstream DT usage --- This additional include is needed for the PWM and IPU aliases, so those new features also work.

2015-02-10 Thread Lucas Stach
--- arch/arm/dts/imx6dl-hummingboard.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imx6dl-hummingboard.dts b/arch/arm/dts/imx6dl-hummingboard.dts index 7953fc1c34f4..24f6bfa8171c 100644 --- a/arch/arm/dts/imx6dl-hummingboard.dts +++ b/arch/arm/dts/imx6dl-hummingboard.dts @@

[PATCH 1/2] scripts: dtc: update to new upstream version

2015-02-10 Thread Lucas Stach
Taken from Linux kernel 3.19. Some defines needed to get moved in order to keep fdtget compiling. This gets rid of build failures seen with some upstream devicetrees. Signed-off-by: Lucas Stach --- scripts/dtc/dtc-lexer.l | 2 +- scripts/dtc/dtc-lexer.lex.c_shipped | 312 +---

[PATCH 2/2] arm: hummingboard: fix fallout from upstream DT usage

2015-02-10 Thread Lucas Stach
This board was broken since the switch to use upstream DTs with v2014.07. Fix it up by including the right upstream DT and delete some now unneeded files. Signed-off-by: Lucas Stach --- arch/arm/boards/solidrun-microsom/board.c | 4 +-- arch/arm/dts/imx6dl-hummingboard.dts | 5 +-- arch/a

Re: Passing kernel arguments - SAMA5D4EK

2015-02-10 Thread Sascha Hauer
On Mon, Feb 09, 2015 at 10:05:15PM -0700, Doug Brainard wrote: > Sascha, > > Okay this is probably a dumb question because I'm fairly new to git, > but I've got everything working with the new environment and checked > in locally, but now when I try to do a "git push origin master", I get > an acc

Re: [PATCH v2] imd: provide dummy imd_command_setenv

2015-02-10 Thread Sascha Hauer
On Mon, Feb 09, 2015 at 02:14:15PM +0100, Lucas Stach wrote: > Ping. :) Applied now. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phon

Re: [PATCH] ARM: atmel: sama5d4 xplained: correc env path

2015-02-10 Thread Sascha Hauer
On Tue, Feb 10, 2015 at 04:04:01PM +0800, Bo Shen wrote: > Correct the environment path for sama5d4 xplained board. > > Signed-off-by: Bo Shen > --- > > arch/arm/configs/sama5d4_xplained_defconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks Sascha -- Pengutronix

Re: [PATCH] openrisc: barebox.lds.S: fix BFD format names

2015-02-10 Thread Sascha Hauer
On Tue, Feb 10, 2015 at 10:14:56AM +0300, Antony Pavlov wrote: > Here is Franck Jullien's comment (see > http://lists.infradead.org/pipermail/barebox/2015-February/022259.html): > > > Until now, the official openrisc toolchain was called or32. > > However, the new one (and maintained one) is

Re: saveenv & erase with bad blocks present

2015-02-10 Thread Sascha Hauer
Hi Marc-Andre, I just sent an updated series for the nand issues. With this I tested bootstrapping the board completly from SD card using the nand_bootstrap script. I also tested 'saveenv' successfully. On Mon, Feb 09, 2015 at 01:37:26PM +, Boulais, Marc-Andre wrote: > Hi Sascha, > I start th

[PATCH 5/6] mtd: nand-bb: Fix test for bad block when reading

2015-02-10 Thread Sascha Hauer
in nand_bb_read() 'offset' contains the virtual position on the device, but we have to test for a bad block on the raw physical position, so use bb->offset instead of offset Signed-off-by: Sascha Hauer --- drivers/mtd/nand/nand-bb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH 1/6] mtd: nand: omap: Fix OMAP_ECC_BCH8_CODE_HW ecc mode

2015-02-10 Thread Sascha Hauer
This is broken since: | commit 00f119a29387cfb1b188fcc4daa4aa94186ac7a9 | Author: Sascha Hauer | Date: Fri Aug 1 14:09:48 2014 +0200 | | mtd: omap gpmc: fix ecc bytes/size | | The ecc bytes / size are per subpage, not per page. | | Signed-off-by: Sascha Hauer The ecc code in omap_

[PATCH 3/6] mtd: nand-bb: Fix accesses beyond device

2015-02-10 Thread Sascha Hauer
When a block is marked bad after the bb device has been created the real size of the bb device is smaller than the calculated size on creation. In this case we can't rely on the upper layers anymore that they won't pass read/write sizes in that fit into the device. Signed-off-by: Sascha Hauer ---

[PATCH 4/6] mtd: nand-bb: fix erasing bb devices with bad blocks

2015-02-10 Thread Sascha Hauer
mtd_erase does not skip bad blocks, we must skip them in nand_bb_erase instead. Signed-off-by: Sascha Hauer --- drivers/mtd/nand/nand-bb.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/nand-bb.c b/drivers/mtd/nand/nand-bb.c index e

[PATCH v2] nand-bb fixes

2015-02-10 Thread Sascha Hauer
Changes: - in nand_bb_erase we have to use '>' instead of '>=' to test if we must bail out - Add patch to fix testing for a bad block when reading from the device. - Add patch to also print the raw position when debugging. Sascha

[PATCH 2/6] mtd: Fix allowing to erase bad blocks on partitions

2015-02-10 Thread Sascha Hauer
Partitions are mtd devices themselves, but the 'erasebad' parameter is only set to the master mtd device. To allow to erase bad blocks on partitions test the master device instead of the partition devices. Signed-off-by: Sascha Hauer --- drivers/mtd/core.c | 6 +++--- 1 file changed, 3 insertion

[PATCH 6/6] mtd: nand-bb: Also print raw position in debug messages

2015-02-10 Thread Sascha Hauer
When debugging the nand-bb devices also the raw position on the device is interesting, print it. Signed-off-by: Sascha Hauer --- drivers/mtd/nand/nand-bb.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/nand-bb.c b/drivers/mtd/nand/nand-bb.c index c8f6

[PATCH] ARM: Phytec phyCORE OMAP4460: Split xload defconfigs

2015-02-10 Thread Sascha Hauer
The configs grew too big to support both NAND and MMC at the same time, so split them. Signed-off-by: Sascha Hauer --- .../phytec-phycore-omap4460-xload-mmc_defconfig| 27 ++ .../phytec-phycore-omap4460-xload-nand_defconfig | 34 ++ .../phytec-phycore-omap4460-x

[PATCH] ARM: atmel: sama5d4 xplained: correc env path

2015-02-10 Thread Bo Shen
Correct the environment path for sama5d4 xplained board. Signed-off-by: Bo Shen --- arch/arm/configs/sama5d4_xplained_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/sama5d4_xplained_defconfig b/arch/arm/configs/sama5d4_xplained_defconfig index 51