Re: [u-boot][PATCH 10/14] mtd: rawnand: omap_gpmc: support u-boot driver model

2022-10-12 Thread Ladislav Michl
Hi Adam, On Wed, Oct 12, 2022 at 06:42:22AM -0500, Adam Ford wrote: [snip] > On my board the GPMC runs more than just NAND. I am hoping to get the > GPMC driver working in U-Boot first then in SPL (assuming it fits). I > have LTO enabled on my DM3730, so I am hoping it might help make some >

Re: [PATCH 15/21] igep00x0: Disable networking

2022-09-28 Thread Ladislav Michl
SYS_I2C_LEGACY=y > CONFIG_SPL_SYS_I2C_LEGACY=y > CONFIG_MMC_OMAP_HS=y > @@ -81,9 +81,6 @@ CONFIG_SYS_NAND_PAGE_SIZE=0x800 > CONFIG_SYS_NAND_OOBSIZE=0x40 > CONFIG_SYS_NAND_BUSWIDTH_16BIT=y > CONFIG_MTD_UBI_FASTMAP=y > -CONFIG_SMC911X=y > -CONFIG_SMC911X_BASE=0x2C000000 > -CONFIG

Re: [U-Boot] [PATCH 2/2] mtd: Get rid of board_mtdparts_default()

2018-12-12 Thread Ladislav Michl
Hello Boris, On Wed, Dec 12, 2018 at 10:32:51AM +0100, Boris Brezillon wrote: > Hi Ladislav, > > On Tue, 11 Dec 2018 23:55:26 +0100 > Ladislav Michl wrote: > > > Hi Boris, > > > > On Mon, Dec 10, 2018 at 04:38:50PM +0100, Boris Brezillon wrote: > > >

Re: [U-Boot] [PATCH 2/2] mtd: Get rid of board_mtdparts_default()

2018-12-11 Thread Ladislav Michl
Hi Boris, On Mon, Dec 10, 2018 at 04:38:50PM +0100, Boris Brezillon wrote: > The only implementer of this function has been patched to use > CONFIG_MTD{IDS,PARTS}_DEFAULT instead. Let's get rid of this function > and the associated CONFIG_SYS_MTDPARTS_RUNTIME option. the only implementer of this

Re: [U-Boot] [PATCH v2] gpio: dwapb_gpio: Change to use devm_kcalloc()

2018-09-07 Thread Ladislav Michl
On Fri, Sep 07, 2018 at 10:51:00AM +0200, Marek Vasut wrote: > On 09/07/2018 08:24 AM, Ley Foon Tan wrote: > > Change to use managed resource function devm_kcalloc(), > > so it will auto free memory when driver is removed. > > > > Signed-off-by: Ley Foon Tan > > > > --- > > v2: > > - Remove

Re: [U-Boot] [PATCH v1] ubifs: avoid assert failed in ubifs.c

2018-05-22 Thread Ladislav Michl
On Tue, May 22, 2018 at 01:23:13PM +0200, Richard Weinberger wrote: > Am Dienstag, 22. Mai 2018, 12:56:48 CEST schrieb Marek Vasut: > > On 05/10/2018 10:57 PM, Marek Vasut wrote: > > > On 04/27/2018 03:51 PM, Patrice Chotard wrote: > > >> This patch solves assert failed displayed in the console

Re: [U-Boot] [PATCH 4/4] board: turris_mox: Add gpio command to defconfig

2018-05-16 Thread Ladislav Michl
On Wed, May 16, 2018 at 04:39:42PM +0200, Marek Behún wrote: > This can be used to detect whether the button is pressed or light the > LED diode. Well, I know it is annoying, but as patch is oneliner anyway, let's get at least commit log right. LED stands for Light-Emitting Diode, so

[U-Boot] [PATCH] twister: Let SPL load U-Boot from MMC

2018-05-14 Thread Ladislav Michl
-by: Ladislav Michl <la...@linux-mips.org> --- Stefano, if want this patch to be splitted, just let me know. I didn't want to make it two fewliners... board/technexion/twister/twister.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/board/technexion/t

Re: [U-Boot] UBI / UBIFS booting from NAND support

2017-11-27 Thread Ladislav Michl
On Mon, Nov 27, 2017 at 03:53:27PM +0100, jsanabria wrote: > I could mount ubifs using ubifsmount command but there were a bit of > warnings and then after trying to boot the spl did not find volume at all. SPL is not supposed to load kernel from UBIFS (filesystem), but directly from UBI volume.

Re: [U-Boot] UBI / UBIFS booting from NAND support

2017-11-27 Thread Ladislav Michl
Dear Jose Miguel, On Mon, Nov 27, 2017 at 11:45:11AM +0100, Jose Miguel Sanchez Sanabria wrote: > Hi everyone. > > I was testing the booting process from NAND using an UBI/UBIFS image in an > igepv2 board. I'm happy to see someone from ISEE being interested in mainline support for their own

Re: [U-Boot] [PATCH v2 1/1] ubifs: avoid possible NULL dereference

2017-11-22 Thread Ladislav Michl
On Wed, Nov 22, 2017 at 02:37:49PM +0100, Ladislav Michl wrote: > On Wed, Nov 22, 2017 at 01:37:54PM +0100, Heinrich Schuchardt wrote: [snip] > > I agree that there is a memory leak. But we should put fixing that into a > > separate patch so that we can test both modificat

Re: [U-Boot] [PATCH v2 1/1] ubifs: avoid possible NULL dereference

2017-11-22 Thread Ladislav Michl
On Wed, Nov 22, 2017 at 01:37:54PM +0100, Heinrich Schuchardt wrote: > On 11/21/2017 11:40 PM, Ladislav Michl wrote: > > On Tue, Nov 21, 2017 at 11:06:35PM +0100, Heinrich Schuchardt wrote: > > > If 'file' cannot be allocated due to an out of memory > > > situ

Re: [U-Boot] [PATCH 1/1] ubifs: avoid possible NULL dereference

2017-11-22 Thread Ladislav Michl
On Wed, Nov 22, 2017 at 09:09:36AM +0100, Wolfgang Denk wrote: > Dear Ladislav, > > In message <2017112121.ryicwv6tyh5rye2e@lenoch> you wrote: > > > > > > > > diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c > > > > index 4465523d5f..313dee0579 100644 > > > > --- a/fs/ubifs/ubifs.c > > > >

Re: [U-Boot] [PATCH v2 1/1] ubifs: avoid possible NULL dereference

2017-11-21 Thread Ladislav Michl
o avoids a misleading message > "cannot find next direntry, error %d" in case of an out of > memory situation. It is sufficent to write > "%s: Error, no memory for malloc!\n" in this case. > > Reported-by: Ladislav Michl <la...@linux-mips.org> > Reporte

Re: [U-Boot] [PATCH 1/1] ubifs: avoid possible NULL dereference

2017-11-21 Thread Ladislav Michl
On Tue, Nov 21, 2017 at 10:29:51PM +0100, Heinrich Schuchardt wrote: > > > On 11/21/2017 09:23 PM, Ladislav Michl wrote: > > On Tue, Nov 21, 2017 at 07:45:03PM +0100, Heinrich Schuchardt wrote: > > > If 'file' cannot be allocated due to an out of memory > > &

Re: [U-Boot] [PATCH 1/1] ubifs: avoid possible NULL dereference

2017-11-21 Thread Ladislav Michl
On Tue, Nov 21, 2017 at 10:16:40PM +0100, Wolfgang Denk wrote: > Dear Heinrich, > > In message <20171121184503.3193-1-xypron.g...@gmx.de> you wrote: > > If 'file' cannot be allocated due to an out of memory > > situation, do not dereference it. > > > > When debugging this patch also avoids a

Re: [U-Boot] [PATCH 1/1] ubifs: avoid possible NULL dereference

2017-11-21 Thread Ladislav Michl
On Tue, Nov 21, 2017 at 07:45:03PM +0100, Heinrich Schuchardt wrote: > If 'file' cannot be allocated due to an out of memory > situation, do not dereference it. > > When debugging this patch also avoids a misleading message > "cannot find next direntry, error %d" in case of an out of > memory

Re: [U-Boot] [OE-core] [PATCH] u-boot: Upgrade to 2017.11 release

2017-11-16 Thread Ladislav Michl
On Thu, Nov 16, 2017 at 04:34:51PM -0200, Otavio Salvador wrote: > On Thu, Nov 16, 2017 at 4:21 PM, Marek Vasut wrote: > > On 11/16/2017 01:02 PM, Otavio Salvador wrote: > >> On Thu, Nov 16, 2017 at 6:12 AM, Marek Vasut wrote: > >>> On 11/15/2017 05:47 PM, Stefan

Re: [U-Boot] UBI/UBIFS complete integrity check

2017-11-06 Thread Ladislav Michl
On Mon, Nov 06, 2017 at 12:31:32PM -0500, Liam Beguin wrote: > Hi, > > Thanks for taking the time to answer. > > On 11/05/2017 03:37 AM, Ladislav Michl wrote: > > On Tue, Oct 31, 2017 at 11:01:21AM -0400, Liam Beguin wrote: > > > Hi everyone, > > > >

Re: [U-Boot] UBI/UBIFS complete integrity check

2017-11-05 Thread Ladislav Michl
On Tue, Oct 31, 2017 at 11:01:21AM -0400, Liam Beguin wrote: > Hi everyone, > > I'm currently using a UBIFS root file system (stored on SPI-NOR flash) > and would like to perform a full integrity check before booting it. > The rootfs is read-only and until now, I've been computing an md5sum on >

[U-Boot] [PATCHv2 2/2] igep00x0: merge igep0020 and igep0030 defconfigs to igep00x0_defconfig

2017-08-16 Thread Ladislav Michl
IO_129 - board_name and board_rev environment variables display board and revision informations - Move dtb name selection from code to boot script Signed-off-by: Pau Pajuelo <ppaj...@gmail.com> Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- Changes: -v2: Move dtb name s

[U-Boot] [PATCH 1/2] igep00x0: move SPL routines into separate file

2017-08-16 Thread Ladislav Michl
Avoid cluttering board file with CONFIG_SPL_BUILD ifdefs by moving SPL related functions into separate file. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/Makefile | 6 +- board/isee/igep00x0/common.c | 80 ++ board/isee/ig

[U-Boot] [PATCH 0/2] igep00x0: defconfig merge

2017-08-16 Thread Ladislav Michl
Hi Pau, code with your patch "igep00x0: merge igep0020 and igep0030 defconfigs to igep00x0_defconfig" applied no longer fits to sram (and patch even does not apply anymore), so here's an update: - move spl related functions to separate file - update defconfig merge patch to current git - use

Re: [U-Boot] [PATCH] igep00x0: merge igep0020 and igep0030 defconfigs to igep00x0_defconfig

2017-08-07 Thread Ladislav Michl
Pau Pajuelo <ppaj...@gmail.com> Reviewed-by: Ladislav Michl <la...@linux-mips.org> Btw, once here, it would be nice to detect also CPU family as OMAP3530 devices cannot boot with omap3-igep0020.dtb and patch bellow is needed (unless there is a better solution, I'll provide patch): diff

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

2017-06-25 Thread Ladislav Michl
Implement spl_start_uboot to let Falcon mode work. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep003x/board.c | 8 configs/am335x_igep003x_defconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/board/isee/igep003x/board.c b/board/isee/ig

[U-Boot] [PATCH] igep00x0: Enable UBI fastmap

2017-06-25 Thread Ladislav Michl
Fastmap significantly reduces flash scan time, enable it by default. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- configs/igep0020_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/igep0020_defconfig b/configs/igep0020_defconfig index 3856d3faec..a86a00997f

[U-Boot] [PATCH] spl: Make UBI fastmap support Kconfig selectable

2017-06-25 Thread Ladislav Michl
Fastmap was always enabled in ubispl, make it selectable by CONFIG_MTD_UBI_FASTMAP. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- common/spl/spl_ubi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/spl_ubi.c b/common/spl/spl_ubi.c index 2463

[U-Boot] [PATCH] mtd: OneNAND: Fix onenand_block_markbad

2017-06-20 Thread Ladislav Michl
blocks this function marked bad. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/mtd/onenand/onenand_base.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 2e3d0e5c9a..8282f

[U-Boot] [PATCH 2/2] onenand_spl_simple: Add DDP OneNAND support

2017-06-20 Thread Ladislav Michl
Current implementation is unable to access second half of DDP OneNAND flash (reads first half mirrored). Use block and bufferram address calculations from onenand_base to fix this. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/mtd/onenand/onenand_spl.

[U-Boot] [PATCH 1/2] onenand_spl_simple: Call onenand_spl_get_geometry() only once

2017-06-20 Thread Ladislav Michl
Do not call onenand_spl_get_geometry() for each block read. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/mtd/onenand/onenand_spl.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/onenand/onenand_spl.c b/drivers/mtd/onenand/onenand

[U-Boot] [PATCH v2 3/7] mtd: nand: Consolidate nand spl loaders implementation

2017-04-16 Thread Ladislav Michl
nand_spl_load_image implementation was copied over into three different drivers and now with nand_spl_read_block used for ubispl situation gets even worse. For now use least intrusive solution and #include the same implementation to nand drivers. Signed-off-by: Ladislav Michl <la...@li

[U-Boot] [PATCH 7/7] igep003x: Add netboot support

2017-04-01 Thread Ladislav Michl
From: Pau Pajuelo <ppaju...@iseebcn.com> netboot allows to boot an external image using TFTP and NFS protocols Signed-off-by: Pau Pajuelo <ppaju...@iseebcn.com> Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/am335x_igep003x.h | 13 -

[U-Boot] [PATCH 6/7] igep003x: Add support for IGEP SMARC AM335x

2017-04-01 Thread Ladislav Michl
h v4.0 on-board o Ethernet 10/100/1000 Mbps and 10/100 Mbps controller on-board o JTAG debug connector available o Designed for industrial range purposes Signed-off-by: Pau Pajuelo <ppaju...@iseebcn.com> Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/mach-om

[U-Boot] [PATCH 5/7] igep003x: UBIize

2017-04-01 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 BootROM whole NAND is UBI managed. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep003x/board.c | 17 +++ c

[U-Boot] [PATCH 4/7] igep0033: Rename to igep003x

2017-04-01 Thread Ladislav Michl
Rename igep0033 to igep003x as IGEP SMARC AM335x module (igep0034) can use the same source files. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/Kconfig | 2 +- arch/arm/mach-omap2/am33xx/Kconfig | 4 ++--

[U-Boot] [PATCH 3/7] mtd: nand: Consolidate nand spl loaders implementation

2017-04-01 Thread Ladislav Michl
nand_spl_load_image implementation was copied over into three different drivers and now with nand_spl_read_block used for ubispl situation gets even worse. For now use least intrusive solution and #include the same implementation to nand drivers. Signed-off-by: Ladislav Michl <la...@li

[U-Boot] [PATCH 2/7] ARM: am33xx: define BOOT_DEVICE_ONENAND

2017-04-01 Thread Ladislav Michl
am33xx does not support OneNAND, but we need this define anyway to let UBI SPL code compile. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/include/asm/arch-am33xx/spl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-am33xx/spl.h b/ar

[U-Boot] [PATCH 1/7] ARM: am33xx: fix typo in spl.h

2017-04-01 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/include/asm/arch-am33xx/spl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-am33xx/spl.h b/arch/arm/include/asm/arch-am33xx/spl.h index f744ab0782..9df7b4ac45 100644 --- a/ar

[U-Boot] [PATCH 0/7] Add IGEP SMARC AM335x module support

2017-04-01 Thread Ladislav Michl
Hi there! this series adds support for ISEE's IGEP SMARC AM335x module. Patches 1, 2 and 4 are safe to apply, patch 3 is where a bit of controversy lays. I'm fine with redoing it, whenever better proposal appears, but note I'm not able to test all platforms (that's why I did it this way). Patch 5

[U-Boot] [PATCH v2] arm: OMAP2+: nandecc: propagate error to command return status

2017-03-06 Thread Ladislav Michl
Currently nandecc returns zero even if underlaying omap_nand_switch_ecc function fails. Fix that by propagating error returned to command return value. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- Changes: - v2: Add changelog text. arch/arm/include/asm/arch-am33xx/sys_proto.

[U-Boot] [PATCH] arm: OMAP2+: nandecc: propagate error to command return status

2017-02-20 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/include/asm/arch-am33xx/sys_proto.h | 2 +- arch/arm/include/asm/arch-omap3/sys_proto.h | 2 +- arch/arm/mach-omap2/omap3/board.c| 32 3 files changed, 16 insertions(+), 20 del

[U-Boot] [PATCH 2/2] igep00x0: fixup FDT according to detected flash type

2017-02-20 Thread Ladislav Michl
Leave only detected flash type enabled in FTD as otherwise GPMC CS is claimed (and never freed) by Linux, causing 'concurent' flash type not to be probed. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c | 19 +++ 1 file chang

[U-Boot] [PATCH 1/2] igep00x0: disable environment

2017-02-20 Thread Ladislav Michl
is also printed on console). So, until proper solution is developed, disable environment alltogether. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/omap3_igep00x0.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/omap3_igep00

Re: [U-Boot] [PATCH 2/6] ARM: OMAP2+: define _image_binary_end to fix SPL_OF_CONTROL

2017-02-08 Thread Ladislav Michl
On Wed, Feb 08, 2017 at 06:03:33PM +0530, Lokesh Vutla wrote: > To make SPL_OF_CONTROL work on OAP2+ SoCs, _image_binary_end must be OMAP2+ ---> ^ Just a nitpick, but helps grepping for changes in git log. Thank you, ladis > defined in the linker script along

Re: [U-Boot] [RFC] cmd: fdt: memory fixup

2017-01-31 Thread Ladislav Michl
On Tue, Jan 31, 2017 at 03:35:51AM +0100, Ladislav Michl wrote: > To get Falcon mode working with zImage is currently non trivial as zImages > do not fit into U-Boot's image concept too well. Fortunately at least for > ARM boards it seems getting memory node right is quite sufficient. >

[U-Boot] [RFC] cmd: fdt: memory fixup

2017-01-30 Thread Ladislav Michl
To get Falcon mode working with zImage is currently non trivial as zImages do not fit into U-Boot's image concept too well. Fortunately at least for ARM boards it seems getting memory node right is quite sufficient. What about changing 'fdt memory' command to update memory node according to

[U-Boot] [PATCH v2 2/2] arm: omap3: Update cpuinfo for DM3730, DM3725, AM3715, and AM3703

2017-01-20 Thread Ladislav Michl
etween the DM3730, DM3725, AM3715, and AM3703 and correctly display their maximum speed. Signed-off-by: Adam Ford <aford...@gmail.com> Tested-by: Ladislav Michl <la...@linux-mips.org> --- Changes: - v2: rebase on top of spelling fix add Tested-by line indent header file ar

[U-Boot] [PATCH 1/2] arm: omap3: Fix cpuinfo frequency spelling

2017-01-20 Thread Ladislav Michl
Frequency is measured in Hz. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/mach-omap2/omap3/sys_info.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-omap2/omap3/sys_info.c b/arch/arm/mach-omap2/omap3/sys_info.c index 6818

[U-Boot] [PATCH] cmd: ubi: allow '-' to specify maximum volume size

2017-01-19 Thread Ladislav Michl
Currently maximum volume size can be specified only if no other arguments are used. Use '-' placeholder as volume size to allow maximum volume size to be specified together with volume id and type. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- cmd/ubi.c | 8 +--- 1 file chan

[U-Boot] [PATCH v2] igep00x0: enable CONFIG_FDT_FIXUP_PARTITIONS

2017-01-15 Thread Ladislav Michl
SPL partition size depends on sector size and we want kernel to use the same layout, so let U-Boot modify FDT accordingly. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- Changes: -v2 rebased against current git as it no longer applies board/isee/igep00x0/igep00x0.

Re: [U-Boot] [PATCH] serial, ns16550: bugfix: ns16550 fifo not enabled

2017-01-10 Thread Ladislav Michl
000.c > ./board/lg/sniper/sniper.c > ./board/ti/beagle/beagle.c > ./drivers/serial/serial_rockchip.c Quick test shows igep00x0 also suffers from this issue. Are you going to collect fixes and apply them as one patch or shall I sent a separate patch? Anyway, here's fix for igep00x0: Signed-off

[U-Boot] [PATCH] lib: gitignore *.elf and *.so generated by efi_loader

2017-01-09 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- lib/efi_loader/.gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efi_loader/.gitignore b/lib/efi_loader/.gitignore new file mode 100644 index 00..634a600f84 --- /dev/null +++ b/lib/efi_loader/.gitignore @

[U-Boot] [PATCH] igep00x0: Remove IGEP0020_NAND BOARD entry from MAINTAINERS

2017-01-09 Thread Ladislav Michl
Boards with NAND and OneNAND are supported by single configuration, thus remove now obsolete IGEP0020_NAND BOARD entry. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/MAINTAINERS | 6 -- 1 file changed, 6 deletions(-) diff --git a/board/isee/ig

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

2017-01-09 Thread Ladislav Michl
SPL partition size depends on sector size and we want kernel to use the same layout, so let U-Boot modify FDT accordingly. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c | 17 + configs/igep0020_defconfig | 2 ++ c

[U-Boot] [PATCH] common: fdt_support: Remove check for mtdparts in fdt_fixup_mtdparts

2017-01-09 Thread Ladislav Michl
fdt_fixup_mtdparts currently does nothing when partitin info is runtime generated or compiled-in defaults are used. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- common/fdt_support.c | 5 - 1 file changed, 5 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_sup

[U-Boot] [PATCH] omap-gpmc: use SECTOR_BYTES instead of hardcoded value

2017-01-09 Thread Ladislav Michl
Replace hardcoded value with defined constant SECTOR_BYTES. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/mtd/nand/omap_gpmc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c

Re: [U-Boot] [PATCH] ARM: omap3_logic: Add scripts to program NAND

2017-01-04 Thread Ladislav Michl
On Wed, Jan 04, 2017 at 12:06:48PM -0600, Adam Ford wrote: > This patch adds scripts to burn the kernel, U-Boot, and MLO to NAND. > The RootFS needs to be added and programmed from the kernel for now. Do you really need this all in environment? What about making this u-boot script and store it on

Re: [U-Boot] [PATCH] tools: mkimage: Call fclose in error path

2016-12-20 Thread Ladislav Michl
at.st_mode)) { > + fclose(fp); > return; > + } > > do { > r = fscanf(fp, "%x %x", , ); what about something like this? Best regards, ladis (bored waiting for the lunch ;-)) Signed-off-by: Ladislav Michl <la...@linu

Re: [U-Boot] [Resend RFC PATCH v1 0/3] GPT over MTD

2016-11-25 Thread Ladislav Michl
Hi Patrick, On Thu, Nov 24, 2016 at 02:14:22PM +, Patrick DELAUNAY wrote: > Hi Ladislav, > > > > > Hi, > > > > On Tue, Nov 22, 2016 at 02:24:39PM +0100, Patrick Delaunay wrote: > > > > > > I have a request to support GPT over MTD to be able to have dynamic > > > MTD informations without

Re: [U-Boot] [Resend RFC PATCH v1 0/3] GPT over MTD

2016-11-22 Thread Ladislav Michl
Hi, On Tue, Nov 22, 2016 at 02:24:39PM +0100, Patrick Delaunay wrote: > > I have a request to support GPT over MTD to be able to have dynamic > MTD informations without u-Boot environment(CONFIG_ENV_IS_NOWHERE > is a other requirement of my project). I'm just curious, could you provide some

Re: [U-Boot] [PATCHv2 1/3] igep00x0: disable CONFIG_DISPLAY_BOARDINFO

2016-11-04 Thread Ladislav Michl
On Fri, Nov 04, 2016 at 12:42:57PM -0300, Javier Martinez Canillas wrote: > Hello Ladis, > > On 11/04/2016 08:55 AM, Ladislav Michl wrote: > > As a single U-Boot binary can now run on various board modifications, > > drop CONFIG_DISPLAY_BOARDINFO as it prints flash memor

[U-Boot] [PATCHv2 3/3] igep00x0: add Hynix timings

2016-11-04 Thread Ladislav Michl
Tested on IGEPv2 with Micron MT29F4G16ABBDA3W and Hynix H27S4G6F2DKA-BM Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- Changes in v2: - None diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c index 71688cc..669f3dd 100644 --- a/board/isee/igep00x0/igep

[U-Boot] [PATCHv2 2/3] igep00x0: consolidate defconfigs

2016-11-04 Thread Ladislav Michl
Defconfigs should remain the same except CONFIG_SYS_EXTRA_OPTIONS. Drop NAND specific defconfig as flash type is runtime detected. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- Changes in v2: - fix screwup caused by mismerge - update to current git diff --git a/c

[U-Boot] [PATCHv2 1/3] igep00x0: disable CONFIG_DISPLAY_BOARDINFO

2016-11-04 Thread Ladislav Michl
As a single U-Boot binary can now run on various board modifications, drop CONFIG_DISPLAY_BOARDINFO as it prints flash memory information too early to give us chance to easily detect it. Also saves few bytes as a bonus. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- Changes

Re: [U-Boot] [PATCH 1/3] igep00x0: disable CONFIG_DISPLAY_BOARDINFO

2016-11-04 Thread Ladislav Michl
Hi Enric, On Tue, Sep 20, 2016 at 05:41:02PM +0200, Enric Balletbo Serra wrote: [snip] > I must NACK for now these series, meanwhile I don't find time to look > at this deeply. I think this will break lots of things. For example, > will this u-boot boot a non-device tree based kernel without

Re: [U-Boot] Help with spl: zImage support in Falcon mode

2016-10-19 Thread Ladislav Michl
On Wed, Oct 19, 2016 at 04:52:50PM +, Diego Dorta wrote: [snip] > Yes, all these commands works fine with uImage. I understood now. > But, how do I do to use zImage instead of uImage? I've never used spl export as I have fdt prepared during build time. Looking at source, zImage support is

Re: [U-Boot] Help with spl: zImage support in Falcon mode

2016-10-19 Thread Ladislav Michl
Hi, On Tue, Oct 18, 2016 at 04:36:54PM +, Diego Dorta wrote: > Hi all, > > According to commit log: > > commit 431889d6ad9a39846636716478d504aa7ff976fc > Author: Ladislav Michl <la...@linux-mips.org> > Date: Tue Jul 12 20:28:14 2016 +0200 > > s

Re: [U-Boot] [PATCH 2/3] igep00x0: consolidate defconfigs

2016-09-21 Thread Ladislav Michl
> >> Hi, > > >> > > >> 2016-09-21 11:39 GMT+02:00 Ladislav Michl <la...@linux-mips.org>: > > >> > On Tue, Sep 20, 2016 at 08:26:36PM -0400, Tom Rini wrote: > > >> >> On Wed, Sep 21, 2016 at 01:52:21AM +0200, Ladisla

Re: [U-Boot] [PATCH 2/3] igep00x0: consolidate defconfigs

2016-09-21 Thread Ladislav Michl
On Tue, Sep 20, 2016 at 08:26:36PM -0400, Tom Rini wrote: > On Wed, Sep 21, 2016 at 01:52:21AM +0200, Ladislav Michl wrote: > > On Tue, Sep 20, 2016 at 07:45:14PM -0400, Tom Rini wrote: [snip] > > > But why do we even need to set MACH_TYPE these days? > > > > Tha

Re: [U-Boot] [PATCH 2/3] igep00x0: consolidate defconfigs

2016-09-20 Thread Ladislav Michl
On Tue, Sep 20, 2016 at 07:45:14PM -0400, Tom Rini wrote: > On Wed, Sep 21, 2016 at 12:44:17AM +0200, Ladislav Michl wrote: [snip] > > Gah... I have to screw it up while resolving conflicts with upstream > > changes. > > Obviously MACH_TYPE has to remain the same.

Re: [U-Boot] [PATCH 1/3] igep00x0: disable CONFIG_DISPLAY_BOARDINFO

2016-09-20 Thread Ladislav Michl
60385cb2448b9d31 Mon Sep 17 00:00:00 2001 From: Ladislav Michl <la...@linux-mips.org> Date: Tue, 9 Aug 2016 12:46:07 +0200 Subject: [PATCH v2] igep00x0: consolidate defconfigs Update defconfigs and drop NAND specific defconfig as flash type is runtime detected. Signed-off-by: Ladislav Mich

Re: [U-Boot] [PATCH 2/3] igep00x0: consolidate defconfigs

2016-09-20 Thread Ladislav Michl
On Tue, Sep 20, 2016 at 08:52:21AM -0400, Tom Rini wrote: > On Tue, Sep 20, 2016 at 11:07:57AM +0200, Ladislav Michl wrote: > > Update defconfigs and drop NAND specific defconfig as flash type > > is runtime detected. > > > > Signed-off-by: Ladislav

[U-Boot] [PATCH 3/3] igep00x0: add Hynix timings

2016-09-20 Thread Ladislav Michl
Tested on IGEPv2 with Micron MT29F4G16ABBDA3W and Hynix H27S4G6F2DKA-BM Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/board/isee/igep00x0/igep00x0.c b/boar

[U-Boot] [PATCH 2/3] igep00x0: consolidate defconfigs

2016-09-20 Thread Ladislav Michl
Update defconfigs and drop NAND specific defconfig as flash type is runtime detected. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- configs/igep0030_defconfig | 5 - configs/igep0030_nand_defconfig | 30 -- configs/igep0032_defconfig

[U-Boot] [PATCH 1/3] igep00x0: disable CONFIG_DISPLAY_BOARDINFO

2016-09-20 Thread Ladislav Michl
As a single U-Boot binary can now run on various board modifications, drop CONFIG_DISPLAY_BOARDINFO as there's no known way to distinguish between them. Also saves few bytes as a bonus. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c

[U-Boot] [PATCH] cmd: ubi: add option to specify volume id

2016-09-20 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- diff --git a/cmd/ubi.c b/cmd/ubi.c index 4a92d84..b66bc62 100644 --- a/cmd/ubi.c +++ b/cmd/ubi.c @@ -162,7 +162,7 @@ bad: return err; } -static int ubi_create_vol(char *volume, int64_t size, int dynamic) +static int ubi_crea

[U-Boot] [PATCH] cmd/onenand.c: block align warning

2016-09-20 Thread Ladislav Michl
An attempt to write non block aligned data fails silently, add warning and set result. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- cmd/onenand.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/cmd/onenand.c b/cmd/onenand.c index feab01a..090f835 100644 --- a/cmd/one

Re: [U-Boot] [PATCH] TI: Rework SRAM definitions and maximums

2016-09-06 Thread Ladislav Michl
> > Tested on OMAP4 Pandaboard, OMAP3 Beagle xM > > Verified on AM437x-GP EVM. > > Tested-by: Lokesh Vutla <lokeshvu...@ti.com> > Acked-by: Lokesh Vutla <lokeshvu...@ti.com> Verified on IGEPv2. Tested-by: Ladislav Michl <la...@linux-mips.org> Also note, that th

Re: [U-Boot] [PATCH v2 1/2] ARM: Move SYS_CACHELINE_SIZE over to Kconfig

2016-08-22 Thread Ladislav Michl
On Mon, Aug 22, 2016 at 08:22:17AM -0400, Tom Rini wrote: [snip] > diff --git a/include/configs/cm_t3517.h b/include/configs/cm_t3517.h > index ea9983bc7d43..a89ccb73b178 100644 > --- a/include/configs/cm_t3517.h > +++ b/include/configs/cm_t3517.h > @@ -10,8 +10,6 @@ > #ifndef __CONFIG_H >

Re: [U-Boot] Disable command at runtime

2016-08-01 Thread Ladislav Michl
On Fri, Jul 29, 2016 at 05:57:58PM +0200, Petr Kubiz??ák wrote: > Ok, I get it, then I'll have to deal with two defconfigs and reflashing for > now. > > Anyway, at least a user feedback / feature request... I believe it would be > useful for many users to have a manufacturing mode, which they

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

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 board/isee/igep00x0/igep00x0.c | 18 ++ include/configs/omap3_igep00x0.h | 1 + 2 files changed, 19 insertions(+) diff --git a/boar

[U-Boot] [PATCH v5 26/26] igep00x0: Falcon mode

2016-07-12 Thread Ladislav Michl
Implement spl_start_uboot to let Falcon mode work. Signed-off-by: Ladislav Michl <la...@linux-mips.org> Reviewed-by: Heiko Schocher <h...@denx.de> Acked-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes in v5: None Changes in v4: None Changes in v3: None C

[U-Boot] [PATCH v5 24/26] igep00x0: UBIize

2016-07-12 Thread Ladislav Michl
CONFIG_SPL_EXT_SUPPORT to make it fit. 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 in v2: None configs/igep0020_defconfig | 4 +- configs/igep0020_nand_def

[U-Boot] [PATCH v5 23/26] igep00x0: runtime flash detection

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 board/isee/igep00x0/igep00x0.c | 71 +++--- 1 file changed, 53 insertions(+), 18 deletions(-) diff --git a/boar

[U-Boot] [PATCH v5 21/26] igep00x0: remove useless setup_net_chip declaration

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 board/isee/igep00x0/igep00x0.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/isee/igep00x0/igep00x0.h b/board/isee/igep00x0/igep00x0.h

[U-Boot] [PATCH v5 20/26] igep00x0: reorder lan9221 code to remove ifdefs

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 board/isee/igep00x0/igep00x0.c | 41 + 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/boar

[U-Boot] [PATCH v5 22/26] igep00x0: remove unused empty function omap_rev_string()

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 board/isee/igep00x0/igep00x0.c | 8 1 file changed, 8 deletions(-) diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep

[U-Boot] [PATCH v5 17/26] cmd: mtdparts: use defaults by default

2016-07-12 Thread Ladislav Michl
unless explicitely deleted or redefined. 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 cmd/mtdparts.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/cmd/mtdp

[U-Boot] [PATCH v5 18/26] cmd: mtdparts: support runtime generated mtdparts

2016-07-12 Thread Ladislav Michl
block size. This patch adds support for the latter option. 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 cmd/mtdparts.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-)

[U-Boot] [PATCH v5 19/26] igep00x0: move sysinfo into C file

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 board/isee/igep00x0/igep00x0.c | 18 ++ board/isee/igep00x0/igep00x0.h | 18 -- 2 files changed, 18 insertions(

[U-Boot] [PATCH v5 14/26] cmd: mtdparts: fix mtdparts variable presence confusion in mtdparts_init

2016-07-12 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 v5 16/26] cmd: mtdparts: consolidate mtdparts reading from env

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 cmd/mtdparts.c | 42 -- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/cmd/mtdparts.c

[U-Boot] [PATCH v5 15/26] cmd: mtdparts: fix null pointer dereference in parse_mtdparts

2016-07-12 Thread Ladislav Michl
-off-by: Ladislav Michl <la...@linux-mips.org> --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None cmd/mtdparts.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 3a88a10..9

[U-Boot] [PATCH v5 12/26] mtd: OneNAND: allow board init function fail

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 board/micronas/vct/ebi_onenand.c | 4 +++- board/samsung/goni/onenand.c | 4 +++- board/samsung/smdkc100/onenand.c | 4 +++-

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

2016-07-12 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> --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/mtd/onenand/onenand_base.c | 1 + 1

[U-Boot] [PATCH v5 11/26] mtd: OneNAND: add timeout to wait ready loops

2016-07-12 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> --- Changes in v5: None Changes in v4: None C

[U-Boot] [PATCH v5 09/26] armv7: armv7: introduce set_gpmc_cs0

2016-07-12 Thread Ladislav Michl
Allow boards to runtime detect flash type. 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 arch/arm/cpu/armv7/omap-common/mem-common.c | 148 +--- arch/arm/include/asm/arch

[U-Boot] [PATCH v5 10/26] armv7: simplify identify_nand_chip

2016-07-12 Thread Ladislav Michl
Use newly introduced function 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 arch/arm/cpu/armv7/omap3/spl_id_nand.c | 35 +++--- 1 file changed, 11 insertions(+), 24 del

[U-Boot] [PATCH v5 08/26] armv7: make gpmc_cfg const

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 arch/arm/cpu/armv7/omap-common/mem-common.c | 8 +++- arch/arm/include/asm/arch-omap3/sys_proto.h | 4 ++-- drivers/mtd/nand/omap_

[U-Boot] [PATCH v5 07/26] armv7: add reset timeout to identify_nand_chip

2016-07-12 Thread Ladislav Michl
timeout. 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 arch/arm/cpu/armv7/omap3/spl_id_nand.c | 32 + arch/arm/include/asm/arch-omap3/sys_proto.h | 2 +- 2 files c

  1   2   3   >