[U-Boot] [PATCH v5 05/26] spl: support loading from UBI volumes

2016-07-12 Thread Ladislav Michl
Add support for loading from UBI volumes on the top of NAND and OneNAND. Signed-off-by: Ladislav Michl <la...@linux-mips.org> Reviewed-by: Heiko Schocher <h...@denx.de> --- Changes in v5: - dual license GPL/BSD Changes in v4: None Changes in v3: None Changes in v2: None common/

[U-Boot] [PATCH v5 02/26] nand_spl_simple: Add a simple NAND read function

2016-07-12 Thread Ladislav Michl
From: Thomas Gleixner <t...@linutronix.de> To support UBI in SPL we need a simple NAND read function. Add one to nand_spl_simple and keep it as simple as it goes. Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Ladislav Michl <la...@linux-mips.org> Acked

[U-Boot] [PATCH v5 06/26] spl: zImage support in Falcon mode

2016-07-12 Thread Ladislav Michl
Other payload than uImage is currently considered to be raw U-Boot image. Check also for zImage in Falcon mode. Signed-off-by: Ladislav Michl <la...@linux-mips.org> Reviewed-by: Heiko Schocher <h...@denx.de> --- Changes in v5: None Changes in v4: None Changes in v3: None Changes

[U-Boot] [PATCH v5 00/26] spl: Lightweight UBI and UBI fastmap support

2016-07-12 Thread Ladislav Michl
ize to include also sizeof(struct ubi_fm_sb) - dropped private copy of ubi-media.h - ubi-wrapper.h now contains only needed definitions from ubi.h and ubi-user.h - used return values from errno.h Ladislav Michl (24): mtd: Sort subsystem directories aplhabeticaly in Makefile onenand_spl_simple:

[U-Boot] [PATCH v5 03/26] onenand_spl_simple: Add a simple OneNAND read function

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/mtd/onenand/onenand_spl.c | 48 +++ include/onenand_uboot.h | 1 + 2 files changed, 49 inse

[U-Boot] [PATCH v5 04/26] spl: Lightweight UBI and UBI fastmap support

2016-07-12 Thread Ladislav Michl
share the fastmap code, as UBISPL only utilizes the slightly modified functions ubi_attach_fastmap() and ubi_scan_fastmap() from the original kernel ubi fastmap implementation. Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Ladislav Michl <la...@linux-mips.org&g

[U-Boot] [PATCH v5 01/26] mtd: Sort subsystem directories aplhabeticaly in Makefile

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> Reviewed-by: Tom Rini <tr...@konsulko.com> Reviewed-by: Heiko Schocher <h...@denx.de> --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/Makefile | 4 ++-- 1 file changed, 2 insertio

[U-Boot] [PATCH 6/6] cmd: mtdparts: consolidate mtdparts reading from env

2016-06-20 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> -- diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 995cb87..7860ed9 100644 --- a/cmd/mtdparts.c +++ b/cmd/mtdparts.c @@ -1516,6 +1516,23 @@ static int spread_partitions(void) #endif /* CONFIG_CMD_MTDPARTS_SPREAD */ /** + * The mt

[U-Boot] [PATCH 5/6] cmd: mtdparts: fix null pointer dereference in parse_mtdparts

2016-06-20 Thread Ladislav Michl
-off-by: Ladislav Michl <la...@linux-mips.org> -- diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 3a88a10..995cb87 100644 --- a/cmd/mtdparts.c +++ b/cmd/mtdparts.c @@ -1524,7 +1524,7 @@ static int spread_partitions(void) */ static int parse_mtdparts(const char *const mtdparts) { -

[U-Boot] [PATCH 4/6] cmd: mtdparts: fix mtdparts variable presence confusion in mtdparts_init

2016-06-20 Thread Ladislav Michl
A private buffer is used to read mtdparts variable from non-relocated environment. A pointer to that buffer is returned unconditionally, confusing later test for variable presence in the environment. Fix it by returning NULL when getenv_f fails. Signed-off-by: Ladislav Michl <la...@linux-mips.

[U-Boot] [PATCH 3/6] mtd: OneNAND: initialize mtd->writebufsize to let UBI work

2016-06-20 Thread Ladislav Michl
io_init checks this value and fails with "bad write buffer size 0 for 2048 min. I/O unit" Signed-off-by: Ladislav Michl <la...@linux-mips.org> diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index d194d97..0e35dc5 100644 --- a/dri

[U-Boot] [PATCH 2/6] mtd: OneNAND: add timeout to wait ready loops

2016-06-20 Thread Ladislav Michl
Add timeout to onenand_wait ready loop as it hangs here indefinitely when chip not present. Once there, do the same for onenand_bbt_wait as well (note: recent Linux driver code does the same) Signed-off-by: Ladislav Michl <la...@linux-mips.org> diff --git a/drivers/mtd/onenand/onenand_bas

[U-Boot] [PATCH 1/6] armv7: add reset timeout to identify_nand_chip

2016-06-20 Thread Ladislav Michl
to be a safe timeout. Signed-off-by: Ladislav Michl <la...@linux-mips.org> diff --git a/arch/arm/cpu/armv7/omap3/spl_id_nand.c b/arch/arm/cpu/armv7/omap3/spl_id_nand.c index db6de09..26d3aa4 100644 --- a/arch/arm/cpu/armv7/omap3/spl_id_nand.c +++ b/arch/arm/cpu/armv7/omap3/spl_id_nand.c @@ -20,29

[U-Boot] [PATCH 0/6] mtd fixes for u-boot-2016.07-rc1

2016-06-20 Thread Ladislav Michl
This patch serie contains various bugfixes related to mtd found during converting igep00x0 to use UBI. All patches was sent previously as a part of RFCs, but as noone commented so far, I'm resending them separately. Former versions already sent was marked as "superseded" in patchwork. Best

[U-Boot] [PATCH] mtd: initialize OneNAND mtd->writebufsize to let UBI work

2016-06-18 Thread Ladislav Michl
io_init checks this value and fails with "bad write buffer size 0 for 2048 min. I/O unit" Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/mtd/onenand/onenand_base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/onenand/onenand_base.c b/dri

[U-Boot] [PATCH] igep00x0: runtime flash detection

2016-06-18 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c | 71 +++--- 1 file changed, 53 insertions(+), 18 deletions(-) diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c index 5dfb7d2..b36709c

[U-Boot] [PATCH] armv7: introduce set_gpmc_cs0

2016-06-18 Thread Ladislav Michl
Allow boards to runtime detect flash type. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/cpu/armv7/omap-common/mem-common.c | 148 +--- arch/arm/include/asm/arch-omap3/sys_proto.h | 1 + include/linux/mtd/omap_gpmc.h | 1 + 3

Re: [U-Boot] [RFC] omap3: single binary supporting all flash types

2016-06-18 Thread Ladislav Michl
On Fri, Jun 17, 2016 at 12:00:13PM +0200, Ladislav Michl wrote: [snip] > As we might want to use single binary also to boot from MMC or other > sources, we cannot use boot_device to get a glue about used flash type. > Also U-Boot should not count on being loaded by its own SPL. So

[U-Boot] [PATCH] mtd: OneNAND: allow board init function fail

2016-06-17 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/micronas/vct/ebi_onenand.c | 4 +++- board/samsung/goni/onenand.c | 4 +++- board/samsung/smdkc100/onenand.c | 4 +++- board/samsung/universal_c210/onenand.c | 4 +++- drivers/mtd/onenand/onenand_u

[U-Boot] (no subject)

2016-06-17 Thread Ladislav Michl
Add timeout to onenand_wait ready loop as it hangs here indefinitely when chip not present. Once there, do the same for onenand_bbt_wait as well (note: recent Linux driver code does the same) Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/mtd/onenand/onenand_base.

[U-Boot] (no subject)

2016-06-17 Thread Ladislav Michl
Use newly introduced function. As it depends on previous RFC, lets turn in into proper patch once beforementioned problems are solved --- arch/arm/cpu/armv7/omap3/spl_id_nand.c | 33 ++--- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git

[U-Boot] [RFC] armv7: Introduce enable_gpmc_cs_config

2016-06-17 Thread Ladislav Michl
for now gpmc_init keeps original init logic... Also see FIXME and TODO below --- arch/arm/cpu/armv7/omap-common/mem-common.c | 134 +--- arch/arm/include/asm/arch-omap3/sys_proto.h | 1 + 2 files changed, 84 insertions(+), 51 deletions(-) diff --git

[U-Boot] [PATCH] armv7: make gpmc_cfg const

2016-06-17 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/cpu/armv7/omap-common/mem-common.c | 8 +++- arch/arm/include/asm/arch-omap3/sys_proto.h | 4 ++-- include/linux/mtd/omap_gpmc.h | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/a

[U-Boot] [PATCH] armv7: add reset timeout to identify_nand_chip

2016-06-17 Thread Ladislav Michl
to be a safe timeout. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/cpu/armv7/omap3/spl_id_nand.c | 32 + arch/arm/include/asm/arch-omap3/sys_proto.h | 2 +- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/arch/arm/cpu/armv7

[U-Boot] [RFC] omap3: single binary supporting all flash types

2016-06-17 Thread Ladislav Michl
Hi there! currently it is not possible to build single working OMAP3 binary which enables more than one of these: CONFIG_NOR CONFIG_NAND CONFIG_CMD_ONENAND first problem lies in gpmc_init which configures CS[0] to one flash type determined at compile time. Another is that identify_nand_chip hang

Re: [U-Boot] [PATCH] i.MX6 nand bootupdate

2016-06-16 Thread Ladislav Michl
Hi Stefano, On Wed, Jun 15, 2016 at 12:14:21PM +0200, Stefano Babic wrote: > Hi Sergey, > > > On 14/06/2016 20:32, Sergey Kubushyn wrote: > > Here is the initial support for writing i.MX6 NAND U-Boot into NAND > > with all FCB and DBBT stuff as required. > > > > This is a very interesting

Re: [U-Boot] BOOT_DELAY broken

2016-06-12 Thread Ladislav Michl
On Sun, Jun 12, 2016 at 02:19:50PM -0700, Sergey Kubushyn wrote: > OK, it is broken in last commit. Totally broken. > > I can NOT get my custom board to stop at all. "CONFIG_BOOTDELAY=3" added > to my board defconfig doesn't change anything. Even changing default to > 3 from 0 in common/Kconfig

Re: [U-Boot] [PATCH 5/6] cmd: mtdparts: support runtime generated mtdparts

2016-06-07 Thread Ladislav Michl
On Tue, Jun 07, 2016 at 09:43:20AM +0200, Michal Suchanek wrote: > On 6 June 2016 at 23:21, Ladislav Michl <la...@linux-mips.org> wrote: > > On Mon, Jun 06, 2016 at 08:50:55PM +0200, Michal Suchanek wrote: > > Linux already depends on U-Boot as U-Boot feeds Linu

Re: [U-Boot] [PATCH 5/6] cmd: mtdparts: support runtime generated mtdparts

2016-06-06 Thread Ladislav Michl
On Mon, Jun 06, 2016 at 08:50:55PM +0200, Michal Suchanek wrote: > On 6 June 2016 at 09:48, Ladislav Michl <la...@linux-mips.org> wrote: [snip] > > Okay, specifing size in therms of eraseblock would solve my problem > > and I have to admit I'm not aware such a thin

Re: [U-Boot] [PATCH 5/6] cmd: mtdparts: support runtime generated mtdparts

2016-06-06 Thread Ladislav Michl
On Mon, Jun 06, 2016 at 09:08:47AM +0200, Michal Suchanek wrote: > On 5 June 2016 at 20:23, Ladislav Michl <la...@linux-mips.org> wrote: > > On Sun, Jun 05, 2016 at 07:58:46PM +0200, Michal Suchanek wrote: > >> There is similar problem on sunxi. > >> > >>

Re: [U-Boot] [PATCH 5/6] cmd: mtdparts: support runtime generated mtdparts

2016-06-05 Thread Ladislav Michl
On Sun, Jun 05, 2016 at 07:58:46PM +0200, Michal Suchanek wrote: > Hello, > > On 5 June 2016 at 19:43, Ladislav Michl <la...@linux-mips.org> wrote: > > Some CPUs contains boot ROM code capable reading first few blocks > > (where SPL resides) of NAND flash a

[U-Boot] [PATCH 6/6] igep00x0: generate default mtdparts according NAND chip used

2016-06-05 Thread Ladislav Michl
Just a sample implementation. Eventually become part of of UBI SPL patch series. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c | 16 include/configs/omap3_igep00x0.h | 1 + 2 files changed, 17 insertions(+) diff --git a/boar

[U-Boot] [PATCH 5/6] cmd: mtdparts: support runtime generated mtdparts

2016-06-05 Thread Ladislav Michl
block size. This patch adds support for the latter option. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- cmd/mtdparts.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 53074a1..71c7acb 100644 ---

[U-Boot] [PATCH 4/6] cmd: mtdparts: use defaults by default

2016-06-05 Thread Ladislav Michl
unless explicitely deleted or redefined. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- cmd/mtdparts.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 7860ed9..53074a1 100644 --- a/cmd/mtdparts.c +++

[U-Boot] [PATCH 3/6] cmd: mtdparts: consolidate mtdparts reading from env

2016-06-05 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- cmd/mtdparts.c | 42 -- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 995cb87..7860ed9 100644 --- a/cmd/mtdparts.c +++ b/cmd/mtdp

[U-Boot] [PATCH 2/6] cmd: mtdparts: fix null pointer dereference in parse_mtdparts

2016-06-05 Thread Ladislav Michl
-off-by: Ladislav Michl <la...@linux-mips.org> --- cmd/mtdparts.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 3a88a10..995cb87 100644 --- a/cmd/mtdparts.c +++ b/cmd/mtdparts.c @@ -1524,7 +1524,7 @@ stat

[U-Boot] [PATCH 1/6] cmd: mtdparts: fix mtdparts variable presence confusion in mtdparts_init

2016-06-05 Thread Ladislav Michl
A private buffer is used to read mtdparts variable from non-relocated environment. A pointer to that buffer is returned unconditionally, confusing later test for variable presence in the environment. Fix it by returning NULL when getenv_f fails. Signed-off-by: Ladislav Michl <la...@linux-mips.

[U-Boot] [PATCH 0/6] cmd: mtdparts: Add support for runtime generated defaults

2016-06-05 Thread Ladislav Michl
Greetings, this patch serie is a by-product of UBI SPL patchset, see http://lists.denx.de/pipermail/u-boot/2016-January/242962.html (and earlier) First three patches are just bugfixes. With fourth one, controversy starts, but here can be easily overcome by a config option for a boards wanting to

[U-Boot] [RFC] runtime mtdparts_default; was: igep00x0: UBIize

2016-06-04 Thread Ladislav Michl
Hi Enric and all, On Mon, Jan 25, 2016 at 04:56:51PM +0100, Ladislav Michl wrote: > Hi Enric, > > On Mon, Jan 25, 2016 at 08:26:23AM +0100, Enric Balletbo Serra wrote: > > The ROM boot on OMAP reads the first 4 blocks searching for the SPL, > > in production is a practice

[U-Boot] [PATCH] armv7: fix order of OMAP die ID printing

2016-06-02 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- diff --git a/arch/arm/cpu/armv7/omap-common/utils.c b/arch/arm/cpu/armv7/omap-common/utils.c index 52ea734..2d03ebf 100644 --- a/arch/arm/cpu/armv7/omap-common/utils.c +++ b/arch/arm/cpu/armv7/omap-common/utils.c @@ -108,6 +108,6 @

Re: [U-Boot] [PATCHv7 6/7] igep00x0: UBIize

2016-01-25 Thread Ladislav Michl
Hi Enric, On Mon, Jan 25, 2016 at 08:26:23AM +0100, Enric Balletbo Serra wrote: > The ROM boot on OMAP reads the first 4 blocks searching for the SPL, > in production is a practice flash the SPL 4 times. OneNAND/NAND > devices can have different block sizes and the OMAP ROM boot supports > block

Re: [U-Boot] [PATCHv7 6/7] igep00x0: UBIize

2016-01-24 Thread Ladislav Michl
Hi Enric, On Fri, Jan 22, 2016 at 11:35:49PM +0100, Enric Balletbo Serra wrote: [...] > > Am 17.01.2016 um 04:16 schrieb Ladislav Michl: [...] > >> +#define ENV_MTD_SETTINGS \ > >> + "mtdids=nand0=gpmc-nand.0\0" \ > >> + "mtdparts=mtdpar

[U-Boot] [PATCH] igep00x0: enable CONFIG_CMD_SETEXPR

2016-01-21 Thread Ladislav Michl
Enable CONFIG_CMD_SETEXPR, useful when passing initramfs end address: $ fatload mmc 0:1 $rdaddr root.cpio.gz $ setexpr rdendaddr $rdaddr + $filesize $ fdt chosen $rdaddr $rdendaddr $ bootz $loadaddr - $fdtaddr Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- configs/igep0020_def

[U-Boot] [PATCH] igep00x0: remove #undef CONFIG_BOOTDELAY

2016-01-21 Thread Ladislav Michl
Do not undefine CONFIG_BOOTDELAY, so board can boot without user intervention. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/omap3_igep00x0.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h

Re: [U-Boot] [PATCH] igep00x0: enable CONFIG_CMD_SETEXPR

2016-01-21 Thread Ladislav Michl
On Thu, Jan 21, 2016 at 02:11:13PM -0500, Tom Rini wrote: > On Thu, Jan 21, 2016 at 11:35:01AM +0100, Ladislav Michl wrote: > > > Enable CONFIG_CMD_SETEXPR, useful when passing initramfs end address: > > $ fatload mmc 0:1 $rdaddr root.cpio.gz > > $ setexpr rdendaddr $rdad

Re: [U-Boot] [PATCH] igep00x0: enable CONFIG_CMD_SETEXPR

2016-01-21 Thread Ladislav Michl
On Thu, Jan 21, 2016 at 08:56:15PM +0100, Ladislav Michl wrote: > On Thu, Jan 21, 2016 at 02:11:13PM -0500, Tom Rini wrote: [...] > > OK, but why do that instead of 'bootz $loadaddr $rdaddr $fdtaddr' ? > > => bootz $loadaddr $rdaddr $fdtaddr > Wrong Ramdisk Image Format >

[U-Boot] [PATCHv4 4/7] spl: support loading from UBI volumes

2016-01-16 Thread Ladislav Michl
Add support for loading from UBI volumes on the top of NAND. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- common/spl/Makefile | 3 +++ common/spl/spl.c | 4 common/spl/spl_ubi.c | 68 include/spl.h| 4 +

[U-Boot] [PATCHv4 3/7] spl: Lightweight UBI and UBI fastmap support

2016-01-16 Thread Ladislav Michl
share the fastmap code, as UBISPL only utilizes the slightly modified functions ubi_attach_fastmap() and ubi_scan_fastmap() from the original kernel ubi fastmap implementation. Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Ladislav Michl <la...@linux-mips.org&g

[U-Boot] [PATCHv5 5/7] spl: zImage support in Falcon mode

2016-01-16 Thread Ladislav Michl
Other payload than uImage is currently considered to be raw U-Boot image. Check also for zImage in Falcon mode. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/lib/Makefile | 2 ++ arch/arm/lib/bootm.c | 32 arch/arm/lib/zimage.

[U-Boot] [PATCHv4 2/7] nand_spl_simple: Add a simple NAND read function

2016-01-16 Thread Ladislav Michl
From: Thomas Gleixner <t...@linutronix.de> To support UBI in SPL we need a simple NAND read function. Add one to nand_spl_simple and keep it as simple as it goes. Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Ladislav Michl <la...@linux-mips.org> Acked

[U-Boot] [PATCHv7 6/7] igep00x0: UBIize

2016-01-16 Thread Ladislav Michl
Convert IGEP board to use UBI volumes for U-Boot, its environment and kernel. With exception of first four sectors read by SoC boot ROM whole NAND is UBI managed. As code is too big now, drop CONFIG_SPL_EXT_SUPPORT to make it fit. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- i

[U-Boot] [PATCHv4 7/7] igep00x0: Falcon mode

2016-01-16 Thread Ladislav Michl
Implement spl_start_uboot to let Falcon mode work. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c | 12 1 file changed, 12 insertions(+) diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c index e2fce50..9

[U-Boot] [PATCHv4 0/7] spl: Lightweight UBI and UBI fastmap support

2016-01-16 Thread Ladislav Michl
Hi, yet another update of ubispl support. Please note, that igep00x0 specific part depends on yet unapplied "[PATCHv2 0/5] igep00x0: Minor cleanup" series --- README |4 arch/arm/lib/Makefile |2 arch/arm/lib/bootm.c | 32 -

[U-Boot] [PATCHv4 1/7] mtd: Sort subsystem directories aplhabeticaly in Makefile

2016-01-16 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- drivers/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index 00da40b..1b9f8d6 100644 --- a/drivers/Makefile +

Re: [U-Boot] [PATCH] igep00x0: Falcon mode

2016-01-15 Thread Ladislav Michl
On Thu, Jan 14, 2016 at 12:10:25PM -0500, Tom Rini wrote: > On Thu, Jan 14, 2016 at 01:44:20AM +0100, Ladislav Michl wrote: > > > Implement spl_start_uboot to let Falcon mode work. Also as board comes > > either with 256 or 512MB of memory, fixup fdt before jumping to kernel

[U-Boot] [PATCH] igep00x0: Falcon mode

2016-01-13 Thread Ladislav Michl
Implement spl_start_uboot to let Falcon mode work. Also as board comes either with 256 or 512MB of memory, fixup fdt before jumping to kernel. ATAG support for doing the same is left as an excercise for readers loving legacy stuff. Signed-off-by: Ladislav Michl <la...@linux-mips.org> ---

Re: [U-Boot] [PATCHv3 4/4] igep00x0: UBIize

2016-01-12 Thread Ladislav Michl
Hi Heiko, On Tue, Jan 12, 2016 at 10:08:21AM +0100, Heiko Schocher wrote: > Am 11.01.2016 um 13:58 schrieb Ladislav Michl: > >On Mon, Jan 11, 2016 at 07:20:06AM +0100, Heiko Schocher wrote: > >>Beside of that, this patch does not apply ... > > > >Ah, igep00x0 part is

Re: [U-Boot] [PATCHv3 4/4] igep00x0: UBIize

2016-01-12 Thread Ladislav Michl
Hi Heiko, just one more thing I forgot to mention... On Tue, Jan 12, 2016 at 10:08:21AM +0100, Heiko Schocher wrote: > Am 11.01.2016 um 13:58 schrieb Ladislav Michl: [...] > >All that ubispl_info structure is board specific and there is not much left > >besides initializing it. A

Re: [U-Boot] [PATCHv3 4/4] igep00x0: UBIize

2016-01-11 Thread Ladislav Michl
ce around this part of patch is a bit suspicious ;-) commit f68d017a4d35bfac3cccd7c7f19ab1c2fe76d908 Author: Ladislav Michl <la...@linux-mips.org> Date: Mon Jan 11 13:08:10 2016 +0100 spl: support loading from UBI volumes Add simple support for loading from UBI volumes

Re: [U-Boot] [PATCHv2 0/3] spl: Lightweight UBI and UBI fastmap support

2016-01-10 Thread Ladislav Michl
Dear Heiko Schocher, On Thu, Jan 07, 2016 at 11:47:27AM +0100, Heiko Schocher wrote: [...] > Just seen at my automated builds [1], that your patches break the > smartweb build [2] ... reason is that "git am" for them fail with > current u-boot ... search for "2016-01-07 10:43:30,943" in [2] > >

[U-Boot] [PATCHv3 4/4] igep00x0: UBIize

2016-01-10 Thread Ladislav Michl
people can play with that. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c| 76 +++ common/spl/Makefile | 5 ++- common/spl/spl.c | 13 +++ common/spl/spl_ubi.c

[U-Boot] [PATCHv3 0/4] spl: Lightweight UBI and UBI fastmap support

2016-01-10 Thread Ladislav Michl
This is yet another update of Thomas's patchset: https://patchwork.ozlabs.org/patch/367305/ https://patchwork.ozlabs.org/patch/367306/ First patch is just sorting Makefile mtd entries aplhabeticaly and can be applied any time, fourth is an example how to make it work with a real board and leaves

[U-Boot] [PATCHv3 3/4] spl: Lightweight UBI and UBI fastmap support

2016-01-10 Thread Ladislav Michl
share the fastmap code, as UBISPL only utilizes the slightly modified functions ubi_attach_fastmap() and ubi_scan_fastmap() from the original kernel ubi fastmap implementation. Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Ladislav Michl <la...@linux-mips.org>

[U-Boot] [PATCHv3 1/4] mtd: Sort subsystem directories aplhabeticaly in Makefile

2016-01-10 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index c9031f2..9c5c6c0 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -18,14 +18,14

[U-Boot] [PATCHv3 2/4] nand_spl_simple: Add a simple NAND read function

2016-01-10 Thread Ladislav Michl
From: Thomas Gleixner <t...@linutronix.de> To support UBI in SPL we need a simple NAND read function. Add one to nand_spl_simple and keep it as simple as it goes. Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Ladislav Michl <la...@linux-mips.org> Acked

Re: [U-Boot] [PATCHv2 2/3] spl: Lightweight UBI and UBI fastmap support

2016-01-06 Thread Ladislav Michl
Hi, I cannot work on ubispl till next week, so just one quick additional patch before v3 in case anyone wants to give it a try. Move vol_id check to ubi_scan_vid_hdr to verify it has meaningfull value before testing ubi->toload (in my case 0x7FFFEFFF was read causing test_bit hang) ladis

Re: [U-Boot] [PATCHv2 1/3] nand_spl_simple: Add a simple flash read function

2016-01-04 Thread Ladislav Michl
On Mon, Jan 04, 2016 at 07:38:23PM +0100, Ladislav Michl wrote: > On Mon, Jan 04, 2016 at 12:23:36PM -0600, Scott Wood wrote: > > On Mon, 2016-01-04 at 16:54 +0100, Ladislav Michl wrote: > > > From: Thomas Gleixner <t...@linutronix.de> > > > > > > To supp

Re: [U-Boot] [PATCHv2 1/3] nand_spl_simple: Add a simple flash read function

2016-01-04 Thread Ladislav Michl
On Mon, Jan 04, 2016 at 12:23:36PM -0600, Scott Wood wrote: > On Mon, 2016-01-04 at 16:54 +0100, Ladislav Michl wrote: > > From: Thomas Gleixner <t...@linutronix.de> > > > > To support UBI in SPL we need a simple flash read function. Add one to > > nand_spl_simple

[U-Boot] [PATCHv2 0/3] spl: Lightweight UBI and UBI fastmap support

2016-01-04 Thread Ladislav Michl
This is an update of Thomas's patchset: https://patchwork.ozlabs.org/patch/367305/ https://patchwork.ozlabs.org/patch/367306/ Changes from previous version: - fixes ubi_calc_fm_size to include also sizeof(struct ubi_fm_sb) - dropped private copy of ubi-media.h - ubi-wrapper.h now contains

[U-Boot] [PATCHv2 1/3] nand_spl_simple: Add a simple flash read function

2016-01-04 Thread Ladislav Michl
From: Thomas Gleixner To support UBI in SPL we need a simple flash read function. Add one to nand_spl_simple and keep it as simple as it goes. Signed-off-by: Thomas Gleixner --- drivers/mtd/nand/nand_spl_simple.c | 64

[U-Boot] [PATCHv2 3/3] igep00x0: UBIize

2016-01-04 Thread Ladislav Michl
people can play with that. Thanks to Marek Vasut for pointing me to Thomas' work and arguing so well towards UBI that I had no other choice than giving it a try. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c| 48 +

Re: [U-Boot] [PATCH] SPL: Lightweight UBI and UBI fastmap support

2016-01-04 Thread Ladislav Michl
On Mon, Jan 04, 2016 at 10:30:03AM +0100, Heiko Schocher wrote: > Am 30.12.2015 um 03:12 schrieb Ladislav Michl: > >From: Thomas Gleixner <t...@linutronix.de> > > > >This is an update of Thomas's patch: > >https://patchwork.ozlabs.org/patch/367306/ > >

Re: [U-Boot] [PATCHv2 1/3] nand_spl_simple: Add a simple flash read function

2016-01-04 Thread Ladislav Michl
On Mon, Jan 04, 2016 at 06:19:06PM +0100, Marek Vasut wrote: > On Monday, January 04, 2016 at 04:54:42 PM, Ladislav Michl wrote: > > From: Thomas Gleixner <t...@linutronix.de> > > > > To support UBI in SPL we need a simple flash read function. Add one to > > nand

[U-Boot] [PATCHv2 2/3] spl: Lightweight UBI and UBI fastmap support

2016-01-04 Thread Ladislav Michl
share the fastmap code, as UBISPL only utilizes the slightly modified functions ubi_attach_fastmap() and ubi_scan_fastmap() from the original kernel ubi fastmap implementation. Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Ladislav Michl <la...@linux-mips.o

[U-Boot] [PATCH] UBI: Fix compile error when CONFIG_UBI_SILENCE_MSG defined

2016-01-03 Thread Ladislav Michl
drivers/mtd/ubi/io.c:1354:3: error: 'dump_len' undeclared (first use in this function) dump_len = max_t(int, 128, len - i); Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/mtd/ubi/io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/ubi/io.c b/drivers/m

[U-Boot] [PATCH] armv7: Add missing newline after OMAP die ID

2016-01-03 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/cpu/armv7/omap-common/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/omap-common/utils.c b/arch/arm/cpu/armv7/omap-common/utils.c index 602d993..52ea734 100644 --- a/arch/a

[U-Boot] [PATCH 1/4] igep00x0: Cleanup ethernet support

2016-01-02 Thread Ladislav Michl
- move chip reset to separate function - use CONFIG_SMC911X_BASE instead of hardcoded value - remove unneeded local variable from board_eth_init. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c | 33 +++-- 1 file chang

[U-Boot] [PATCH 0/4] igep00x0: Minor cleanups

2016-01-02 Thread Ladislav Michl
This patch serie was created as a side product while working on UBIizing NAND flash space to improve system reliability. It is safe to apply for current release to start with clean land for adding new features. Ladislav Michl (4): igep00x0: Cleanup ethernet support igep00x0: Do not include

[U-Boot] [PATCH 4/4] igep00x0: Remove no-op macros from config header

2016-01-02 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/omap3_igep00x0.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h index bd1c038..5da6cfd 100644 --- a/include/configs/omap3_igep00x0.h +++ b/i

Re: [U-Boot] [PATCH] igep00x0: Do not include config_distro_defaults.h directly

2016-01-02 Thread Ladislav Michl
Hi Enric Balletbo, On Wed, Dec 30, 2015 at 10:34:28PM +0100, Enric Balletbo Serra wrote: [indentation changes snipped] > again, any reason for this change? I'm sure you know there is no other reason, but to indent constants to the same column with others. I did that in one patch as it is also

[U-Boot] [PATCH 2/4] igep00x0: Do not include config_distro_defaults.h

2016-01-02 Thread Ladislav Michl
File is already included: omap3_igep00x0.h -> ti_omap3_common.h -> ti_armv7_omap.h -> ti_armv7_common.h -> config_distro_defaults.h Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/omap3_igep00x0.h | 2 -- 1 file changed, 2 deletions(-) diff --git

[U-Boot] [PATCH 3/4] igep00x0: Fix config header intentation

2016-01-02 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/omap3_igep00x0.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h index 16775e2..bd1c038 100644 --- a/include/c

[U-Boot] [PATCH] igep00x0: cleanup ethernet support

2015-12-29 Thread Ladislav Michl
Move chip reset to separate function, use CONFIG_SMC911X_BASE instead of hardcoded value, remove unneeded local variable from board_eth_init. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c | 33 +++-- 1 file chang

[U-Boot] [PATCH] SPL: Lightweight UBI and UBI fastmap support

2015-12-29 Thread Ladislav Michl
e also sizeof(struct ubi_fm_sb) - dropped private copy of ubi-media.h - accomodate for actual Makefile As original patch is more that a year old, should we update to current linux fastmap code? Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Ladislav Michl <la...

[U-Boot] [PATCH] Fix compile error when CONFIG_UBI_SILENCE_MSG defined

2015-12-29 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/mtd/ubi/io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c index d1bdec3..0be9c5a 100644 --- a/drivers/mtd/ubi/io.c +++ b/drivers/mtd/ubi/io.c @@ -1351,7 +1351,6 @@ stat

[U-Boot] [PATCH] igep00x0: Do not include config_distro_defaults.h directly

2015-12-29 Thread Ladislav Michl
File is already included: omap3_igep00x0.h -> ti_omap3_common.h -> ti_armv7_omap.h -> ti_armv7_common.h -> config_distro_defaults.h Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/omap3_igep00x0.h | 10 +++--- 1 file changed, 3 insertions(+), 7

[U-Boot] [PATCH] ti_omap3_common: Do not define CONFIG_SPL_NAND_SUPPORT

2015-12-29 Thread Ladislav Michl
Symbol is already defined in ti_armv7_common.h which is included via ti_armv7_omap.h Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/ti_omap3_common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/ti_omap3_common.h b/include/c

[U-Boot] [RFC] igep00x0: UBI everywhere but SPL

2015-12-29 Thread Ladislav Michl
This patch converts IGEP board to use UBI volumes for environment, u-boot, kernel... With exception of first four sectors with SPL loaded by SoC boot ROM whole NAND is UBI managed. I misused BOOT_DEVICE_BOARD, which is probably not briliant idea, but works well enough. Also code it too big, so I

[U-Boot] [PATCH] igep00x0: Use BCH8 ECC

2015-10-12 Thread Ladislav Michl
Used NAND chips requires at least 4-bit error correction, so use BCH8 as it is what kernel uses. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- omap3_igep00x0.h | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/include/configs/omap3_igep

[U-Boot] [PATCH] netstar.h: do not exceed 80 columns

2010-02-09 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org Limit line length to 80 characters mostly by removing obvious and sometimes misleading comments. Fix indentation, too. Signed-off-by: Ladislav Michl la...@linux-mips.org --- netstar.h | 65

[U-Boot] [PATCH] VoiceBlue: fix linker errors

2010-02-09 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org linking eeprom with libgeneric.a is not really needed and causes following error: ../../lib_generic/libgeneric.a(string.o): In function `strcmp': /home/ladis/src/u-boot-ti/lib_generic/string.c:152: multiple definition of `strcmp' ../../examples

[U-Boot] [PATCH] VoiceBlue: limit line lenght to 80 characters

2010-02-09 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org Reindent configuration header to limit line lenght to 80 characters by removing obvious and sometimes misleading comments. Signed-off-by: Ladislav Michl la...@linux-mips.org --- voiceblue.h | 164

Re: [U-Boot] [PATCH 0/5] NetStar updates

2010-02-08 Thread Ladislav Michl
On Mon, Feb 08, 2010 at 10:55:04AM -0600, Paulraj, Sandeep wrote: Patches 1, 4 and 5 returned checkpatch errors. I used scripts/checkpatch.pl from linux-2.6.33-rc5 and for patch 5 it reports patch has no obvious style problems and is ready for submission. For others two it reports lines over 80

Re: [U-Boot] [PATCH 0/5] NetStar updates

2010-02-08 Thread Ladislav Michl
On Mon, Feb 08, 2010 at 01:21:42PM -0600, Paulraj, Sandeep wrote: I fixed all the checkpatch errors myself and pushed the entire series. Thank you for your effort, I really appreciate it. However, the dark side is that now it is pretty unobvious, what actually changed and that's why incremental

Re: [U-Boot] [PATCH] net: Use 0.5 sec timeout in miiphy_reset() instead of counting loop

2010-02-02 Thread Ladislav Michl
On Tue, Feb 02, 2010 at 01:43:48PM +0100, Stefan Roese wrote: This patch fixes a problem I've notived on a buggy PPC4xx system. This system has problems with the PHY MDIO communication and seemed to be stuck/crashed in miiphy_reset(). But degugging revealed, that the CPU didn't crash, but only

[U-Boot] [PATCH] ns16550: kick watchdog while waiting for a character

2010-02-01 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org ns16550 busyloops waiting for incoming byte causing watchdog to reboot while waiting for a key press. A call to WATCHDOG_RESET in NS16550_getc loop fixes it. Signed-off-by: Ladislav Michl la...@linux-mips.org --- diff --git a/drivers/serial/ns16550.c b

Re: [U-Boot] How to use multiple env variables.

2010-01-28 Thread Ladislav Michl
On Thu, Jan 28, 2010 at 12:30:54PM +0530, Shashi Kumar M.S wrote: Is there any option for multiple env variables so that when i upgrade the kernel and rootfile system if not working properly so that i can fall back to the previous kernel and ramdisk considering i have a sufficiently big nand

Re: [U-Boot] How to use multiple env variables.

2010-01-28 Thread Ladislav Michl
On Thu, Jan 28, 2010 at 09:19:37PM +0530, Shashi Kumar M.S wrote: Where should this variable swapos should be. Both 'ospart' and 'swapos' are ordinary u-boot environment variables. 1. should this swapos be in one of the separate partition of the nand flash so that can be set by the kernel.

Re: [U-Boot] [STATUS] Patch status update

2010-01-27 Thread Ladislav Michl
On Tue, Jan 26, 2010 at 11:52:23PM +0100, Wolfgang Denk wrote: Dear Sandeep, In message 0554bef07d437848af01b9c9b5f0bc5d985ee...@dlee01.ent.ti.com you wrote: Sandeep, could you please comment? I have pushed these updates. Thank you. Thanks. Please send a pull request to Tom

[U-Boot] CFI numblocks incorrect?

2010-01-27 Thread Ladislav Michl
it seems CFI flash support is somehow broken. mtd-eraseregions is filled as bellow: erase size blocks correct blocks 400001 01 200001 02 800000 01 00010f 0f 'blocks' is actual numblocks field value while 'correct blocks' is

<    1   2   3   >