Re: [PATCH 1/2] cmd: exit: Fix return value propagation out of environment scripts

2022-12-19 Thread Hector Palacios
; exit ; echo fail'; run foo; echo $? bar 0 " Fixes: 8c4e3b79bd0 ("cmd: exit: Fix return value") Signed-off-by: Marek Vasut --- Cc: Adrian Vovk Cc: Hector Palacios Cc: Pantelis Antoniou Cc: Simon Glass Cc: Tom Rini --- cmd/exit.c| 7 +-- common/cli.c | 7 +

Re: cmd: exit: Exit functionality broken

2022-12-13 Thread Hector Palacios
Hi Max, On 12/13/22 13:24, Max van den Biggelaar wrote: Hi, I have a question regarding the U-Boot exit command. We are currently using mainline U-Boot 2022.04 version to provide our embedded systems with a bootloader image. To start our firmware via U-Boot environment, we use a bootscript

Re: [PATCH] cli_hush: fix 'exit' cmd that was not exiting scripts

2022-11-21 Thread Hector Palacios
On 11/21/22 09:55, Hector Palacios wrote: Hi Marek, On 11/19/22 15:12, Marek Vasut wrote: On 11/18/22 12:19, Hector Palacios wrote: Commit 8c4e3b79bd0bb76eea16869e9666e19047c0d005 supposedly passed one-level up the argument passed to 'exit' but it also broke 'exit' purpose of stopping

Re: [PATCH] cli_hush: fix 'exit' cmd that was not exiting scripts

2022-11-21 Thread Hector Palacios
Hi Marek, On 11/19/22 15:12, Marek Vasut wrote: On 11/18/22 12:19, Hector Palacios wrote: Commit 8c4e3b79bd0bb76eea16869e9666e19047c0d005 supposedly passed one-level up the argument passed to 'exit' but it also broke 'exit' purpose of stopping a script. In reality, even if 'do_exit

[PATCH] cli_hush: fix 'exit' cmd that was not exiting scripts

2022-11-18 Thread Hector Palacios
'echo bar ; exit -2 ; echo should not see this'; run foo; echo $? bar 0 => setenv foo 'echo bar ; exit ; echo should not see this'; run foo; echo $? bar 0 Reported-by: Adrian Vovk Signed-off-by: Hector Palacios --- common/cli_hush.c | 4 1 file

[U-Boot] [PATCH] cmd: mii: don't check address for 'device' subcommand

2018-08-17 Thread Hector Palacios
All mii operations require a valid PHY address except the 'device' command, which expects the PHY name rather than the address. Signed-off-by: Hector Palacios --- cmd/mii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mii.c b/cmd/mii.c index ce7b393eeaae..c0c42a851f90

Re: [U-Boot] Very slow mtest on i.MX6UL over dual-die DDR3 (two chip selects)

2017-05-18 Thread Hector Palacios
ze), does not help. This DDR is still performing slowly in U-Boot, but I can't find the reason why. Thanks for your help, anyway. -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 1/1] mtd: nand-base: fix bug writing 1 byte less than page size

2016-07-18 Thread Hector Palacios
On 07/18/2016 09:18 AM, Hector Palacios wrote: > nand_do_write_ops() determines if it is writing a partial page with the > formula: > if (column || (writelen < mtd->writesize - 1)) > > When 'writelen' is exactly 1 byte less than the NAND page size the formula > equa

[U-Boot] [PATCH v2 1/1] mtd: nand: fix bug writing 1 byte less than page size

2016-07-18 Thread Hector Palacios
Signed-off-by: Hector Palacios <hector.palac...@digi.com> --- Changes in v2 - v1 was wronly generated over U-Boot v2015.04 drivers/mtd/nand/nand_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 68971675

[U-Boot] [PATCH 1/1] mtd: nand-base: fix bug writing 1 byte less than page size

2016-07-18 Thread Hector Palacios
should. As a consequence the function remains in the while(1) loop with 'writelen' becoming 0x and iterating until the watchdog timeout triggers. To reproduce the issue on a NAND with 2K page (0x800): => nand erase.part => nand write $loadaddr 7ff Signed-off-by: Hec

Re: [U-Boot] [RFC PATCH 1/1] mtd: nand: fix bug writing 1 byte less than page size

2016-07-18 Thread Hector Palacios
On 07/15/2016 08:49 PM, Scott Wood wrote: > On Fri, 2016-07-15 at 09:45 +0200, Hector Palacios wrote: >> nand_do_write_ops() determines if it is writing a partial page with the >> formula: >> part_pagewr = (column || writelen < (mtd->writesize - 1)) >> >

[U-Boot] [RFC PATCH 1/1] mtd: nand: fix bug writing 1 byte less than page size

2016-07-15 Thread Hector Palacios
Signed-off-by: Hector Palacios <hector.palac...@digi.com> --- drivers/mtd/nand/nand_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 689716753ae6..c8be74849e56 100644 --- a/drivers/mtd/nand/nand_base.c

[U-Boot] [RFC PATCH 0/1] bug writing to NAND 1 byte less than page size

2016-07-15 Thread Hector Palacios
byte. Thanks in advance for your comments. Hector Palacios (1): mtd: nand: fix bug writing 1 byte less than page size drivers/mtd/nand/nand_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH v2] bootm: fixup silent Linux out of BOOTM_STATE_LOADOS state

2016-07-13 Thread Hector Palacios
with these commands. This patch moves the fixup_silent_linux() call out of the BOOTM_STATE_LOADOS state and into BOOTM_STATE_OS_PREP, to silence Linux independently of the used command (booti, bootm or bootz). Signed-off-by: Hector Palacios <hector.palac...@digi.com> Reviewed-by: Simon Gl

[U-Boot] [PATCH] bootm: fixup silent Linux out of BOOTM_STATE_LOADOS state

2016-07-11 Thread Hector Palacios
with these commands. This patch moves the fixup_silent_linux() call out of the BOOTM_STATE_LOADOS state and into BOOTM_STATE_OS_PREP, to silence Linux independently of the used command (booti, bootm or bootz). Signed-off-by: Hector Palacios <hector.palac...@digi.com> --- common/bootm.c | 12 +++--

[U-Boot] [PATCH] mx6: support i.MX6UL speed grading reading from OTP bits

2016-06-20 Thread Hector Palacios
i.MX6UL defines speed grading in OCOTP register 0x440[17:16] as follows: 00 reserved 01 528MHz 10 700MHz 11 reserved This commit removes the constants (which had the speed hardcoded in their names) and uses values instead. Signed-off-by: Hector Palacios

Re: [U-Boot] [PATCH V2] ARM: imx: fsl_esdhc: fix usage of low 4 bits of sysctl register

2015-12-09 Thread Hector Palacios
en changing clock divisor value(SDCLKFS > or DVS in System Control Register) or setting RSTA bit. > > Signed-off-by: Eric Nelson <e...@nelint.com> Reviewed-by: Hector Palacios <hector.palac...@digi.com> ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] mmc: update MMC_ERASE argument to match Linux kernel.

2015-12-09 Thread Hector Palacios
#define MMC_ERASE_ARG0x > +#define MMC_SECURE_ERASE_ARG 0x8000 > +#define MMC_TRIM_ARG 0x0001 > +#define MMC_DISCARD_ARG 0x0003 > +#define MMC_SECURE_TRIM1_ARG 0x8001 > +#define MMC_SECURE_TRIM2_ARG 0x80008000 > > #define MMC_S

Re: [U-Boot] [PATCH] ARM: imx: fsl_esdhc: fix usage of low 4 bits of sysctl register

2015-12-04 Thread Hector Palacios
produce the "mmc erase/ENGcm03648" > issue (with or without a code change) for a couple of hours now. > > Can you give this a spin? > > It seems unlikely to address the issue unless what we're seeing is a > side effect of a glitch while switching clocks. As Fabio, I can reproduce this 100% of the times. The patch does not fix it, though. -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] ARM: imx: fsl_esdhc: fix usage of low 4 bits of sysctl register

2015-12-04 Thread Hector Palacios
Hi Eric, On 12/04/2015 07:33 PM, Eric Nelson wrote: > Hi Fabio and Hector, > > On 12/04/2015 10:43 AM, Eric Nelson wrote: >> On 12/04/2015 10:38 AM, Eric Nelson wrote: >>> On 12/04/2015 10:32 AM, Eric Nelson wrote: The low four bits of the SYSCTL register are reserved on the USDHC

Re: [U-Boot] [PATCH] ARM: imx: fsl_esdhc: fix usage of low 4 bits of sysctl register

2015-12-04 Thread Hector Palacios
if !defined(CONFIG_MX6) Per your commit message should this be #if (!defined(CONFIG_MX6) && !defined(CONFIG_MX7)) > #define SYSCTL_CKEN 0x0008 > #define SYSCTL_PEREN 0x0004 > #define SYSCTL_HCKEN 0x0002 > #define SYSCTL_IPGEN 0x0001 > +#endif > #define SYSCTL_RSTA 0x0100 > #define SYSCTL_RSTC 0x0200 > #define SYSCTL_RSTD 0x0400 > -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] mmc erase fails from U-Boot command line

2015-10-19 Thread Hector Palacios
SABRESD on both SD card and eMMC with v2015.04. The issue has been there always, I believe. Apparently the command erases the first block, but the operation returns an error, so it aborts and it doesn't continue erasing futher blocks. I opened a similar thread a while ago: http://lists.denx.

Re: [U-Boot] [PATCH v2] ubi: enable error reporting in initialization

2014-12-18 Thread Hector Palacios
: = ubi part MyPart = ubi part MyPart In my case, after calling this three times, the target hangs. I think the exit path in ubi_init() does not properly free every allocated memory. I was not able to find the root cause, though. Regards -- Hector Palacios

Re: [U-Boot] [PATCH v2] ubi: enable error reporting in initialization

2014-12-17 Thread Hector Palacios
: = ubi part MyPart = ubi part MyPart In my case, after calling this three times, the target hangs. I think the exit path in ubi_init() does not properly free every allocated memory. I was not able to find the root cause, though. Regards -- Hector Palacios

[U-Boot] [PATCH 3/3] mxs_ocotp: clear the error flag before initiating write operation

2014-11-21 Thread Hector Palacios
A previous operation may have set the error flag, which must be cleared before a new write operation can be issued. Signed-off-by: Hector Palacios hector.palac...@digi.com --- drivers/misc/mxs_ocotp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/mxs_ocotp.c b/drivers/misc

[U-Boot] [PATCH 2/3] mxs_ocotp: check for errors from the OTP controller after writing

2014-11-21 Thread Hector Palacios
The write operation may fail when trying to write to a locked area. In this case the ERROR bit is set in the CTRL register. Check for that condition and return an error. Signed-off-by: Hector Palacios hector.palac...@digi.com --- drivers/misc/mxs_ocotp.c | 7 +++ 1 file changed, 7 insertions

[U-Boot] [PATCH 1/3] mxs_ocotp: prevent error path from returning success

2014-11-21 Thread Hector Palacios
success even if the final preparation function fails, but it's probably enough to print a message because (if successful) the real programming of the fuses has already completed. Signed-off-by: Hector Palacios hector.palac...@digi.com --- drivers/misc/mxs_ocotp.c | 5 + 1 file changed, 1

Re: [U-Boot] [PATCH 2/3] mxs_ocotp: check for errors from the OTP controller after writing

2014-11-21 Thread Hector Palacios
Hi Fabio, On 11/21/2014 06:10 PM, Fabio Estevam wrote: Hi Hector, On Fri, Nov 21, 2014 at 2:54 PM, Hector Palacios hector.palac...@digi.com wrote: The write operation may fail when trying to write to a locked area. In this case the ERROR bit is set in the CTRL register. Check

[U-Boot] [PATCH v2] cmd_fuse: return CMD_RET_FAILURE on error

2014-11-20 Thread Hector Palacios
Fuse drivers, like the mxs_ocotp.c, may return negative error codes but the commands are only allowed to return CMD_RET_* enum values to the shell, otherwise the following error appears: exit not allowed from main input shell. Signed-off-by: Hector Palacios hector.palac...@digi.com

[U-Boot] [PATCH] cmd_fuse: return CMD_RET_FAILURE on error

2014-11-19 Thread Hector Palacios
Fuse drivers, like the mxs_ocotp.c, may return negative error codes but the commands are not allowed to return negative error codes to the shell, otherwise the following error appears: exit not allowed from main input shell. Signed-off-by: Hector Palacios hector.palac...@digi.com

[U-Boot] Protected variable 'ethaddr' can be reset to default value (or deleted)

2014-05-28 Thread Hector Palacios
this? Best regards, -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCHv5 09/14] mmc: support the DDR mode for eMMC

2014-05-21 Thread Hector Palacios
On 05/21/2014 04:20 AM, Jaehoon Chung wrote: Hi, Hector. On 05/21/2014 01:37 AM, Hector Palacios wrote: Hi, On 05/16/2014 06:59 AM, Jaehoon Chung wrote: Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com Tested-by: Lukasz Majewski l.majew...@samsung.com Acked-by: Lukasz Majewski l.majew

Re: [U-Boot] [PATCHv5 09/14] mmc: support the DDR mode for eMMC

2014-05-20 Thread Hector Palacios
but the driver returned error code COM_ERR (-18) when trying to switch to any of the DDR modes. I guess the fsl_esdhc.c driver needs some adaptation for DDR to work. Best regards, -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http

Re: [U-Boot] [PATCH] fs: fat: Fix cache align error message in fatwrite to use USB media

2014-04-07 Thread Hector Palacios
-fatbuf = memalign(ARCH_DMA_MINALIGN, FATBUFSIZE); if (mydata-fatbuf == NULL) { debug(Error: allocating memory\n); return -1; Tested on an i.MX6 custom platform. Tested-by: Hector Palacios hector.palac...@digi.com Thanks, -- Héctor Palacios

Re: [U-Boot] [PATCH RFC] fsl_esdhc: flush cache after non-read operation

2014-03-31 Thread Hector Palacios
Hi, On 03/28/2014 03:36 PM, Eric Nelson wrote: Hi Hector, On 03/28/2014 06:49 AM, Fabio Estevam wrote: On Fri, Mar 28, 2014 at 7:15 AM, Hector Palacios hector.palac...@digi.com wrote: Cache was invalidated on the read operation, but it should also be flushed otherwise. Signed-off-by: Hector

[U-Boot] [PATCH RFC] fsl_esdhc: flush cache after non-read operation

2014-03-28 Thread Hector Palacios
Cache was invalidated on the read operation, but it should also be flushed otherwise. Signed-off-by: Hector Palacios hector.palac...@digi.com --- Notes: After enabling L2 cache on i.MX6 I found out that many times when running the 'gpt' command to partition a uSD card, the data

Re: [U-Boot] [PATCH V2] disk:efi: avoid unaligned access on efi partition

2014-02-19 Thread Hector Palacios
fields is justified. [1] http://en.wikipedia.org/wiki/Master_boot_record#Sector_layout Best regards, -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v2] part_efi: fix protective mbr struct allocation

2014-02-13 Thread Hector Palacios
The calloc() call was allocating space for the sizeof the struct pointer rather than for the struct contents. Besides, since this buffer is passed to mmc for writing and some platforms may use cache, the legacy_mbr struct should be cache-aligned. Signed-off-by: Hector Palacios hector.palac

[U-Boot] [PATCH] part_efi: fix protective_mbr struct allocation

2014-02-12 Thread Hector Palacios
The calloc() call was allocating space for the sizeof the struct pointer rather than for the struct contents. Signed-off-by: Hector Palacios hector.palac...@digi.com --- disk/part_efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/part_efi.c b/disk/part_efi.c index

[U-Boot] [PATCH v3 1/2] env_mmc: make board configurable the partition for the environment

2014-01-23 Thread Hector Palacios
to store the environment in a different partition. The __weak function also allows to remove some ifdefs from the code. If CONFIG_SYS_MMC_ENV_PART is not defined, partition 0 is assumed (default value for U-Boot when a partition is not provided). Signed-off-by: Hector Palacios hector.palac

[U-Boot] [PATCH v3 2/2] config_fallbacks: default CONFIG_SYS_MMC_ENV_DEV to 0

2014-01-23 Thread Hector Palacios
Since function mmc_get_env_devno is __weak and can be overridden by board code, boards do not need to mandatory define CONFIG_SYS_MMC_ENV_DEV. If the constant is not defined, define it to 0 by default. Signed-off-by: Hector Palacios hector.palac...@digi.com Reviewed-by: Stephen Warren swar

[U-Boot] [PATCH v2 2/2] env_mmc: default to 0 if CONFIG_SYS_MMC_ENV_DEV not defined

2014-01-17 Thread Hector Palacios
Since function mmc_get_env_devno is __weak and can be overridden by board code, boards do not need to mandatory define CONFIG_SYS_MMC_ENV_DEV. If the constant is not defined, define it to 0 by default. Signed-off-by: Hector Palacios hector.palac...@digi.com --- Notes: Changes since v1

[U-Boot] [PATCH v2 1/2] env_mmc: make board configurable the partition for the environment

2014-01-17 Thread Hector Palacios
to store the environment in a different partition. The __weak function also allows to remove some ifdefs from the code. If CONFIG_SYS_MMC_ENV_PART is not defined, partition 0 is assumed (default value for U-Boot when a partition is not provided). Signed-off-by: Hector Palacios hector.palac

Re: [U-Boot] [PATCH 2/2] env_mmc: default to 0 if CONFIG_SYS_MMC_ENV_DEV not defined

2014-01-16 Thread Hector Palacios
Hi Stephen, On 01/15/2014 06:40 PM, Stephen Warren wrote: On 01/15/2014 03:53 AM, Hector Palacios wrote: Since function mmc_get_env_devno is __weak and can be overridden by board code, boards do not necessarily need to define CONFIG_SYS_MMC_ENV_DEV. If the constant is not defined, return 0

[U-Boot] [PATCH 1/2] env_mmc: make board configurable the partition for the environment

2014-01-15 Thread Hector Palacios
to store the environment in a different partition. The __weak function also allows to remove some ifdefs from the code. If CONFIG_SYS_MMC_ENV_PART is not defined, partition 0 is assumed (default value for U-Boot when a partition is not provided). Signed-off-by: Hector Palacios hector.palac

[U-Boot] [PATCH 2/2] env_mmc: default to 0 if CONFIG_SYS_MMC_ENV_DEV not defined

2014-01-15 Thread Hector Palacios
Since function mmc_get_env_devno is __weak and can be overridden by board code, boards do not necessarily need to define CONFIG_SYS_MMC_ENV_DEV. If the constant is not defined, return 0 by default. Signed-off-by: Hector Palacios hector.palac...@digi.com --- common/env_mmc.c | 4 1 file

[U-Boot] [PATCH] i.MX6DQ/DLS: rename and fix pad MX6_PAD_RGMII_TX_CTL__ENET_REF_CLK

2014-01-15 Thread Hector Palacios
Fix incorrect name for iomux 0x7 of MX6_PAD_RGMII_TX_CTL which really has function ENET_REF_CLK and not ANATOP_REF_OUT. On imx6q also fix select input value to 1. Signed-off-by: Hector Palacios hector.palac...@digi.com --- arch/arm/include/asm/arch-mx6/mx6dl_pins.h | 2 +- arch/arm/include/asm

Re: [U-Boot] [PATCH 1/2] env_mmc: make board configurable the partition for the environment

2014-01-15 Thread Hector Palacios
Hello Otavio, On 01/15/2014 12:09 PM, Otavio Salvador wrote: Hello Hector, On Wed, Jan 15, 2014 at 8:53 AM, Hector Palacios hector.palac...@digi.com mailto:hector.palac...@digi.com wrote: This complements commit 9404a5fc7cb58 env_mmc: allow environment to be in an eMMC partition

Re: [U-Boot] Are mmc open/close subcommands needed?

2014-01-06 Thread Hector Palacios
Dear Otavio, On 01/03/2014 06:35 PM, Otavio Salvador wrote: On Thu, Jan 2, 2014 at 9:36 PM, Marek Vasut ma...@denx.de wrote: On Thursday, January 02, 2014 at 05:53:00 PM, Hector Palacios wrote: Hi, I saw commit 2a91c9134675140853577b565210458b5774e6cf that introduces mmc subcommands 'open

[U-Boot] Are mmc open/close subcommands needed?

2014-01-02 Thread Hector Palacios
boot_partition is the same as mmc dev dev part where part is the boot partition mmc close dev boot_partition is the same as mmc dev dev 0 as a 0 will switch to partition 0 (user data). Best regards, -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] fatls shows duplicated entries with long and short names

2013-10-15 Thread Hector Palacios
Dear Jagan, On 10/14/2013 06:57 PM, Jagan Teki wrote: On Mon, Oct 14, 2013 at 9:37 PM, Tom Rini tr...@ti.com wrote: On Mon, Oct 14, 2013 at 06:00:20PM +0200, Hector Palacios wrote: Dear Marek, I noticed that 'fatls' displays duplicated filenames (short and long) for every file in the media

Re: [U-Boot] [PATCH] ARM: mxs: Do not reconfigure FEC clock in FEC init

2013-10-14 Thread Hector Palacios
mxs_clkctrl_regs *)MXS_CLKCTRL_BASE; + And the same here. It works ok, but I can't say if it fixes exactly those seldom initialization problems because I don't have a reliable way to reproduce them. Tested-by: Hector Palacios hector.palac...@digi.com Best regards, -- Hector Palacios

Re: [U-Boot] [PATCH] ARM: mxs: Do not reconfigure FEC clock in FEC init

2013-10-14 Thread Hector Palacios
init to board_early_init_f(), where all the other upstream clock are initialized and also make sure there is proper stabilization delay. Signed-off-by: Marek Vasut ma...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com Cc: Hector Palacios hector.palac...@digi.com Cc: Oliver Metz oli

[U-Boot] fatls shows duplicated entries with long and short names

2013-10-14 Thread Hector Palacios
; dentptr++; continue; } #endif Could you please check? Best regards, -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] gpmi-nand driver and jffs2 support

2013-09-19 Thread Hector Palacios
() d855bd95ad35568b109f1b4587b68f0c950011f5 mtd: omap2: allow bulding as a module Best regards, -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] gpmi-nand driver and jffs2 support

2013-09-19 Thread Hector Palacios
yet. Oops, sorry, did you mean you were trying to backport them into U-Boot? Then please disregards my previous message. Best regards, -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] net: fec_mxc: Fix timeouts during tftp transfer

2013-09-16 Thread Hector Palacios
On 09/16/2013 03:10 AM, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Performing tftp transfers on mx28 results in random timeouts. Hector Palacios and Robert Hodaszi analyzed the root cause being related to the alignment of the 'buff' buffer inside fec_recv(). GCC

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-09-12 Thread Hector Palacios
Hello, Going back to this old thread I have some news regarding the problem with TFTP transmissions blocking (timed out) after 10 seconds on the FEC of the MX28. See below: On 07/17/2013 05:55 PM, Hector Palacios wrote: Dear Marek, On 07/16/2013 06:44 AM, Marek Vasut wrote: Dear Fabio

Re: [U-Boot] gpmi-nand driver and jffs2 support

2013-09-04 Thread Hector Palacios
regards, -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] gpmi-nand driver and jffs2 support

2013-09-02 Thread Hector Palacios
Dear Huang, On 09/02/2013 10:50 AM, Huang Shijie wrote: 于 2013年09月02日 16:42, Hector Palacios 写道: I am writing the JFFS2 partition from my custom U-Boot. Do you mean that they way it writes it could not be compatible with what the new driver expects? That sounds really bad. The mtd code

[U-Boot] i.MX28 AUTO_RESTART, watchdog, battery and poweroff

2013-07-24 Thread Hector Palacios
to mxs_power_set_auto_restart(). Best regards, -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] ARM: mxs: rename function that sets AUTO_RESTART flag

2013-07-24 Thread Hector Palacios
-by: Hector Palacios hector.palac...@digi.com --- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c index 5ee2d88..285ac79 100644 --- a/arch

Re: [U-Boot] [PATCH] ARM: mxs: rename function that sets AUTO_RESTART flag

2013-07-24 Thread Hector Palacios
Dear Marek, On 07/24/2013 05:54 PM, Marek Vasut wrote: Dear Hector Palacios, The AUTO_RESTART flag of HW_RTC_PERSISTENT0 register will power up the chip automatically 180ms after power down. This bit must be enabled by the boot loader to ensure the target can start upon hardware reset

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-17 Thread Hector Palacios
Dear Marek, On 07/16/2013 06:44 AM, Marek Vasut wrote: Dear Fabio Estevam, On Tue, Jul 16, 2013 at 12:51 AM, Fabio Estevam feste...@gmail.com wrote: On Mon, Jul 15, 2013 at 12:09 PM, Hector Palacios hector.palac...@digi.com wrote: @Fabio: could you manually run the command 'tftp ${loadaddr

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Hector Palacios
the tftp command again, and then the file downloads completely. The PHY is my usual suspect... Best regards, -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Hector Palacios
Hi Marek, On 07/15/2013 02:30 PM, Marek Vasut wrote: Dear Hector Palacios, Hi Marek, On 07/12/2013 06:48 PM, Marek Vasut wrote: [...] but I found something: It is very strange that the timeouts appear always after transferring between 20 and 24 MiB. So I thought maybe it was not an issue

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-15 Thread Hector Palacios
On 07/15/2013 05:12 PM, Marek Vasut wrote: Hi Hector, Hi Marek, On 07/15/2013 02:30 PM, Marek Vasut wrote: Dear Hector Palacios, Hi Marek, On 07/12/2013 06:48 PM, Marek Vasut wrote: [...] but I found something: It is very strange that the timeouts appear always after transferring

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-12 Thread Hector Palacios
to my board. I'm using a Micrel KSZ8031RNLI at 50MHz. I always suspect from the PHY. I'm disconcerted because usually the timeouts occur after having successfully downloaded 22 or 24 MiB. Other times it just downloads completely. In any case, good job! Best regards, -- Hector Palacios

Re: [U-Boot] [PATCH] net: fec: Avoid MX28 bus sync issue

2013-07-12 Thread Hector Palacios
the issue happens after 10s. It's like if, after these 10 seconds, the PHY lost the link or something. Really odd. Does it tell you anything? Best regards, -- Hector Palacios ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo

Re: [U-Boot] TFTP pause and timeout on MX28 platforms

2013-03-14 Thread Hector Palacios
Dear Marek Vasut, On 03/13/2013 07:10 PM, Marek Vasut wrote: Dear Hector Palacios, Dear Marek Vasut, On 03/13/2013 05:52 PM, Marek Vasut wrote: Dear Hector Palacios, Dear Marek Vasut, On 03/13/2013 05:19 PM, Marek Vasut wrote: Dear Hector Palacios, Dear Marek Vasut, On 03/13/2013 11

[U-Boot] TFTP pause and timeout on MX28 platforms

2013-03-13 Thread Hector Palacios
Hello, When doing large TFTP downloads (files bigger than 10MiB) on my MX28 platform I'm sometimes experiencing pauses and timeouts. U-Boot will eventually restart the transmission and sometimes may successfully complete the download, but other times it won't. On my platform it was somewhat

Re: [U-Boot] TFTP pause and timeout on MX28 platforms

2013-03-13 Thread Hector Palacios
Dear Marek Vasut, On 03/13/2013 11:58 AM, Marek Vasut wrote: Dear Hector Palacios, Hello, When doing large TFTP downloads (files bigger than 10MiB) on my MX28 platform I'm sometimes experiencing pauses and timeouts. U-Boot will eventually restart the transmission and sometimes may

Re: [U-Boot] TFTP pause and timeout on MX28 platforms

2013-03-13 Thread Hector Palacios
Dear Marek Vasut, On 03/13/2013 05:19 PM, Marek Vasut wrote: Dear Hector Palacios, Dear Marek Vasut, On 03/13/2013 11:58 AM, Marek Vasut wrote: Dear Hector Palacios, Hello, When doing large TFTP downloads (files bigger than 10MiB) on my MX28 platform I'm sometimes experiencing pauses

Re: [U-Boot] TFTP pause and timeout on MX28 platforms

2013-03-13 Thread Hector Palacios
Dear Marek Vasut, On 03/13/2013 05:52 PM, Marek Vasut wrote: Dear Hector Palacios, Dear Marek Vasut, On 03/13/2013 05:19 PM, Marek Vasut wrote: Dear Hector Palacios, Dear Marek Vasut, On 03/13/2013 11:58 AM, Marek Vasut wrote: Dear Hector Palacios, Hello, When doing large TFTP

Re: [U-Boot] problem to boot i.MX28 custom platform

2013-02-28 Thread Hector Palacios
On 02/26/2013 01:19 PM, Hector Palacios wrote: Greetings, I'm porting a custom platform based on mx28evk to latest U-Boot. I modified the iomux.c for my platform (different DUART pins) and made some changes to mxs_adjust_memory_params() to accommodate to my DRAM chip. I built the u-boot.sb

[U-Boot] problem to boot i.MX28 custom platform

2013-02-26 Thread Hector Palacios
Greetings, I'm porting a custom platform based on mx28evk to latest U-Boot. I modified the iomux.c for my platform (different DUART pins) and made some changes to mxs_adjust_memory_params() to accommodate to my DRAM chip. I built the u-boot.sb. The platform however does not boot either from