Re: [PATCH] mtd: nand: omap: Fix BCH bit correction

2017-06-06 Thread Sascha Hauer
On Wed, Jun 07, 2017 at 08:49:09AM +0200, Sascha Hauer wrote: > On Wed, Jun 07, 2017 at 08:45:08AM +0200, Sascha Hauer wrote: > > +Cc Matt Reimer > > > > On Tue, Jun 06, 2017 at 06:10:25PM +0200, Daniel Schultz wrote: > > > After commit dec7b4d2bf9 was applied our barebox only corrected the > > >

Re: [PATCH] mtd: nand: omap: Fix BCH bit correction

2017-06-06 Thread Sascha Hauer
On Wed, Jun 07, 2017 at 08:45:08AM +0200, Sascha Hauer wrote: > +Cc Matt Reimer > > On Tue, Jun 06, 2017 at 06:10:25PM +0200, Daniel Schultz wrote: > > After commit dec7b4d2bf9 was applied our barebox only corrected the > > first 512 Bytes of NAND pages. > > > > This patch separates between Hamm

Re: [PATCH] mtd: nand: omap: Fix BCH bit correction

2017-06-06 Thread Sascha Hauer
+Cc Matt Reimer On Tue, Jun 06, 2017 at 06:10:25PM +0200, Daniel Schultz wrote: > After commit dec7b4d2bf9 was applied our barebox only corrected the > first 512 Bytes of NAND pages. > > This patch separates between Hamming and BCH when finding out the > eccsteps, because BCH always works with 2

Re: [PATCH] ratp: only allow bidirectional consoles

2017-06-06 Thread Sascha Hauer
On Tue, Jun 06, 2017 at 03:52:10PM +0200, Aleksander Morgado wrote: > Ignore requests to switch to RATP mode in input-only or output-only > consoles. > > This actually also avoids segfaulting later on: > > #0 0x in ?? () > #1 0x0040b2a4 in console_send (r=, > pk

[PATCH] mtd: nand: omap: Fix BCH bit correction

2017-06-06 Thread Daniel Schultz
After commit dec7b4d2bf9 was applied our barebox only corrected the first 512 Bytes of NAND pages. This patch separates between Hamming and BCH when finding out the eccsteps, because BCH always works with 2kB pages. Before this patch: barebox@Phytec phyCORE AM335x:/ nand_bitflip -r -n 5 /dev/nan

[PATCH] mtd: nand: omap: Return corrected bits for BCH

2017-06-06 Thread Daniel Schultz
If using ECC mode OMAP_ECC_HAMMING_CODE_HW_ROMCODE (which is default for all AM335x with DTS support) the page_read function won't return the corrected bitflips. Signed-off-by: Daniel Schultz --- drivers/mtd/nand/nand_omap_gpmc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

[PATCH] ratp: only allow bidirectional consoles

2017-06-06 Thread Aleksander Morgado
Ignore requests to switch to RATP mode in input-only or output-only consoles. This actually also avoids segfaulting later on: #0 0x in ?? () #1 0x0040b2a4 in console_send (r=, pkt=0x7fffd8ec, len=4) at common/ratp.c:102 #2 0x0042ab99 in ratp_beh

Re: [PATCH v2 3/3] ARM: i.MX6: add Technexion Pico Hobbit support

2017-06-06 Thread Michael Grzeschik
On Tue, Jun 06, 2017 at 08:18:40AM +0200, Sascha Hauer wrote: > On Fri, Jun 02, 2017 at 03:18:08PM +0200, Michael Grzeschik wrote: > > This adds support support for the i.MX6UL Technexion Pico Hobbit. > > The board comes with different amounts of RAM. We create one image > > for the 256MB and one f

Re: [PATCH v3 4/4] arm: boards: beaglebone: Delete default env

2017-06-06 Thread Daniel Schultz
Hi Sascha, Am 17.05.2017 um 08:35 schrieb Sascha Hauer: On Fri, May 12, 2017 at 01:07:19PM +0200, Daniel Schultz wrote: The Beaglebone environment should be set from outside with an application specific environment. Signed-off-by: Daniel Schultz --- arch/arm/boards/beaglebone/Makefile

Re: [PATCH v3 3/4] arm: boards: phytec-som-am335x: Update boot scripts

2017-06-06 Thread Daniel Schultz
Hi Sascha, Am 06.06.2017 um 07:46 schrieb Sascha Hauer: Hi Daniel, On Fri, Jun 02, 2017 at 10:07:34AM +0200, Daniel Schultz wrote: Hi, Am 17.05.2017 um 08:30 schrieb Sascha Hauer: On Fri, May 12, 2017 at 01:07:18PM +0200, Daniel Schultz wrote: Expand the boot scripts with EMMC and add a def

Re: [PATCH] sandbox: new --stdinout option to enable a bidirectional console

2017-06-06 Thread Aleksander Morgado
On Tue, Jun 6, 2017 at 8:53 AM, Sascha Hauer wrote: >> In addition to allowing read-only and write-only consoles with --stdin >> and --stdout, we now allow bidirectional read/write consoles with FIFO >> files. This is e.g. to allow doing RATP over the FIFO based consoles. >> >> Signed-off-by: Alek