Re: Running reset stress test

2020-12-04 Thread Fabio Estevam
Hi Rouven, On Fri, Dec 4, 2020 at 3:41 PM Rouven Czerwinski wrote: > $ edit /env/boot/reset > #!/bin/sh > reset > $ nv boot.default=reset > $ nv autoboot.timeout=0 > $ saveenv > $ boot > > Note that barebox can still be interrupted by holding Ctrl+c and > aborting the init sequence, which will

Running reset stress test

2020-12-04 Thread Fabio Estevam
Hi, This is probably an easy one :-) I would like to run reset stress test in Barebox In U-Boot, I do the following: => setenv bootcmd reset => saveenv => reset and then the board keeps getting reset. What would be the equivalent mechanism to achieve the same in Barebox? Thank

Re: reset / watchdog on an imx7d soc

2020-07-02 Thread Fabio Estevam
Hi Giorgio, On Thu, Jul 2, 2020 at 12:28 PM Giorgio Dal Molin wrote: > What I've found is that if I put the endless loop right at the end of > imx21_soc_reset(), after the imxwd_write's, then the reboot process becomes > reliable. Just curious: are you able to reboot reliably if you issue a

Re: reset / watchdog on an imx7d soc

2020-06-29 Thread Fabio Estevam
Hi Giorgio, On Mon, Jun 29, 2020 at 1:33 PM Giorgio Dal Molin wrote: > U-Boot configures the ddr3 with c code in its board code 'lowlevel.c'. > Looking at the code I noticed this special treatment: > > static void spl_dram_init(void) > { > ... > /* > * Make sure that both

Re: reset / watchdog on an imx7d soc

2020-06-23 Thread Fabio Estevam
Hi Giorgio, On Tue, Jun 23, 2020 at 10:48 AM Giorgio Dal Molin wrote: > Can anyone confirm that the current barebox is able to restart an imx7 soc > without > using external signals ? You really need to use the WDOG_B pin to trigger the reset due to an i.MX7 erratum. Please check the i.MX7

[PATCH] Documentation: imx8mq-evk: Pass the full path for file names

2018-12-27 Thread Fabio Estevam
Passing the full path of the referenced files make the text clearer. Signed-off-by: Fabio Estevam --- Documentation/boards/imx/nxp-imx8mq-evk.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/boards/imx/nxp-imx8mq-evk.rst b/Documentation/boards/imx/nxp

Re: [PATCH] imx{5,6}: reset otg port after usb-serial boot

2018-08-24 Thread Fabio Estevam
Hi Michael, On Fri, Aug 24, 2018 at 4:55 PM, Michael Grzeschik wrote: > I get that it is not safe to toggle bits if the clock is not > there. We could check for the bootsource. Is it possible to > ensure that we are started by imx-usb-loader? It is possible to determine if we have started via

[PATCH] Documentation: imx8mq-evk: Fix typo

2018-07-19 Thread Fabio Estevam
Correct form is "obtain them". Signed-off-by: Fabio Estevam --- Documentation/boards/imx/nxp-imx8mq-evk.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/boards/imx/nxp-imx8mq-evk.rst b/Documentation/boards/imx/nxp-imx8mq-evk.rst index 9dfa91

[PATCH v2] mx5: Implement Spectre v2 workaround for Cortex-A8

2018-07-12 Thread Fabio Estevam
to flush the BTB properly. Based on commit 7b37a9c732bf ("ARM: Introduce ability to enable ACR::IBE on Cortex-A8 for CVE-2017-5715") from U-Boot. With this patch applied the kernel now reports: CPU0: Spectre v2: using BPIALL workaround Tested on a imx51 babbage. Signed-off

[PATCH] mx5: Implement Spectre v2 workaround for Cortex-A8

2018-07-11 Thread Fabio Estevam
7b37a9c732bf ("ARM: Introduce ability to enable ACR::IBE on Cortex-A8 for CVE-2017-5715") from U-Boot. With this patch applied the kernel now reports: CPU0: Spectre v2: using BPIALL workaround Tested on a imx51 babbage. Signed-off-by: Fabio Estevam --- arch/arm/include/asm/er

Re: Device-tree node renames break barebox/kernel compatibility...

2018-06-13 Thread Fabio Estevam
Hi David, On Wed, Jun 13, 2018 at 3:50 AM, David Jander wrote: o, it's not just you. Me and other people are with you. >> >> When talking about device tree stability we usually only talk about the >> bindings, not about the structure of the trees. The problem here was >> probably that people

Re: [PATCH v4 53/54] ARM: i.MX8: Add i.MX8mq EVK support

2018-06-11 Thread Fabio Estevam
Hi Andrey, On Mon, Jun 11, 2018 at 10:53 PM, Andrey Smirnov wrote: > + pinctrl_fec1_data_tx: fec1datatxgrp { > + pinmux = < > + MX8MQ_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 > + MX8MQ_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 > +

Re: [PATCH] IMX gpio: use DR register to get gpio value

2018-05-10 Thread Fabio Estevam
Hi Nikita, On Thu, May 10, 2018 at 2:49 PM, Nikita Yushchenko wrote: > From: Andrey Gusakov > > Reading PSR register report wrong value for pins > configured as output. > According DS: While the GPIO direction is set to input >

Re: [PATCH] mtd: nand_mxs: fix NAND error when change clk rate

2017-08-21 Thread Fabio Estevam
GPMI driver, but it seems that the right location for the fix would be in drivers/clk/imx, but never had a chance to implement it properly. Regards, Fabio Estevam ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH] clk: imx: clk-imx6ul: The i.mx6ul has no aips_tx3 clock

2017-03-03 Thread Fabio Estevam
On Fri, Mar 3, 2017 at 10:36 AM, Fabio Estevam <feste...@gmail.com> wrote: > In the Subject I guess you meant "aips_tz3" > > On Fri, Mar 3, 2017 at 10:28 AM, Robin van der Gracht <ro...@protonic.nl> > wrote: >> The clock was mapped on CG15 (gpio2_clocks)

Re: [PATCH] clk: imx: clk-imx6ul: The i.mx6ul has no aips_tx3 clock

2017-03-03 Thread Fabio Estevam
- You should have marked it as v2. Good catch, with the Subject fixed you can add: Reviewed-by: Fabio Estevam <fabio.este...@nxp.com> ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: i.MX7 support

2017-01-19 Thread Fabio Estevam
Hi Sascha, On Thu, Jan 19, 2017 at 10:38 AM, Sascha Hauer wrote: > I have one issue with starting the kernel on i.MX7. The architected > timer does not work. In U-Boot I found arch/arm/imx-common/syscounter.c > in which the system counter is initialized. I just copied

Re: i.MX7 support

2017-01-19 Thread Fabio Estevam
On Thu, Jan 19, 2017 at 7:14 AM, Sascha Hauer wrote: > Ok, found it. The i.MX7 has two iomux controllers, the regular one and > the LPSR iomux controller. In the warp7 and other dts files the LPSR > pins are attached to the regular controller, not the LPSR controller. > I

Re: i.MX7 support

2017-01-18 Thread Fabio Estevam
On Wed, Jan 18, 2017 at 5:07 AM, Sascha Hauer wrote: > I have a rev 2.0 board here. Does the 'reboot' command in Linux work? ___ barebox mailing list barebox@lists.infradead.org

Re: i.MX7 support

2017-01-17 Thread Fabio Estevam
Hi Sascha, On Mon, Jan 16, 2017 at 10:58 AM, Sascha Hauer wrote: > Yes, I did. I configured MX7D_PAD_GPIO1_IO00 as WDOD1_WDOG_B, still my > board only hangs. I also tried configuring it as GPIO. When toggling the > gpio the board only hangs. I also tried different

Re: i.MX7 support

2017-01-16 Thread Fabio Estevam
Hi Sascha, On Mon, Jan 16, 2017 at 8:50 AM, Sascha Hauer wrote: > One issue remaining is that I am currently unable to reset the board > using the watchdog or the barebox reset command. Out of ideas, will > fix later. Nice work! Have you tried using

Re: [PATCH] mtd: nand_mxs: fix NAND error when change clk rate

2016-12-27 Thread Fabio Estevam
Hi Christian, On Wed, Dec 21, 2016 at 7:38 PM, Christian Hemp wrote: > The function "nand_enable_edo_mode" changed the NAND clk rate, without turning > it off. In this case it is posible to get the following errors: > MXS NAND: Error sending command > MXS NAND: Error

Re: [PATCH] mci: imx-esdhc: implement reset quirks for i.MX6 DualLite/Solo

2016-05-11 Thread Fabio Estevam
Hi Stefan, On Wed, May 4, 2016 at 10:20 AM, Stefan Christ wrote: > First of all the reset values of MMC interfaces are differently between > Quad and DualLite/Solo SoM. > > Register VEND_SPEC2(0xC8) > Quad: 0x0 > DualLite: 0x0006 >

Re: [PATCH v2] ARM: i.MX: increase barebox partition sizes

2016-04-27 Thread Fabio Estevam
On Wed, Apr 27, 2016 at 6:25 AM, Sascha Hauer wrote: > Normally the environment is much smaller, so I wouldn't expect issues > here. The alternative to making the environment smaller would be to move > other partitions to the back. This would probably hurt more,

Re: [PATCH v2] ARM: i.MX: increase barebox partition sizes

2016-04-26 Thread Fabio Estevam
Hi Sascha, On Tue, Apr 26, 2016 at 3:44 AM, Sascha Hauer wrote: > diff --git a/arch/arm/dts/imx25-karo-tx25.dts > b/arch/arm/dts/imx25-karo-tx25.dts > index 8d79471..76847ff 100644 > --- a/arch/arm/dts/imx25-karo-tx25.dts > +++ b/arch/arm/dts/imx25-karo-tx25.dts > @@

Re: [PATCH] ARM: dts: Fix partition names

2016-04-26 Thread Fabio Estevam
t;s.ha...@pengutronix.de> Reviewed-by: Fabio Estevam <feste...@gmail.com> ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH v2] ARM: dts: imx6qdl-sabresd: Fix barebox-environment location

2016-04-25 Thread Fabio Estevam
Hi Sascha, On Mon, Apr 25, 2016 at 3:14 AM, Sascha Hauer wrote: > diff --git a/arch/arm/dts/imx25-karo-tx25.dts > b/arch/arm/dts/imx25-karo-tx25.dts > index d661463..6e28ac9 100644 > --- a/arch/arm/dts/imx25-karo-tx25.dts > +++ b/arch/arm/dts/imx25-karo-tx25.dts > @@

[PATCH v2] ARM: dts: imx6qdl-sabresd: Fix barebox-environment location

2016-04-23 Thread Fabio Estevam
. Fix this problem by increasing the size of the 'barebox' partition and by placing the 'barebox-environment' right after it. Signed-off-by: Fabio Estevam <feste...@gmail.com> --- Changes since v1: - Also adjust the partition size for 'barebox'. arch/arm/dts/imx6qdl-sabresd.dtsi | 6 +++

[PATCH] ARM: dts: imx6qdl-sabresd: Fix barebox-environment location

2016-04-23 Thread Fabio Estevam
From: Fabio Estevam <fabio.este...@nxp.com> After doing a 'saveenv' command, it is no longer possible to boot. The reason is that the 'barebox-environment' overwrites the barebox binary. Fix this problem by placing the environment into a proper SD card location, such as 0xc. Sign

Re: mx6qsabresd: Cannot boot after 'saveenv'

2016-04-23 Thread Fabio Estevam
On Sat, Apr 23, 2016 at 5:02 PM, Fabio Estevam <feste...@gmail.com> wrote: > Hi, > > After running the 'saveenv' command on a mx6qsabresd board, I can no > longer boot Barebox: I managed to fix this by doing: --- a/arch/arm/dts/imx6qdl-sabresd.dtsi +++ b/arch/arm/dts/im

Re: mx6qsabresd: Cannot boot after 'saveenv'

2016-04-23 Thread Fabio Estevam
Hi Sam, On Sat, Apr 23, 2016 at 5:15 PM, Sam Ravnborg wrote: > Hi Fabio. > >> After running the 'saveenv' command on a mx6qsabresd board, I can no >> longer boot Barebox: > > You may be hit by the issue described here: >

mx6qsabresd: Cannot boot after 'saveenv'

2016-04-23 Thread Fabio Estevam
get to the menu barebox@Freescale i.MX6 Quad SABRE Smart Device Board:/ barebox@Freescale i.MX6 Quad SABRE Smart Device Board:/ saveenv saving environment barebox@Freescale i.MX6 Quad SABRE Smart Device Board:/ reset (board hangs...) Any suggestions on how to fix this? Thanks, Fabio Este

Re: [BUG] barebox won't boot from SD card on iMX233-OLinuXino-MAXI

2016-01-11 Thread Fabio Estevam
On Mon, Jan 11, 2016 at 7:55 PM, Peter Mamonov wrote: > At least nothing is printed to the Debug UART. > > git-bisect points to the following patch: > 4d70da6 ARM: MXS: power-init: Add parameters to mx28_power_init() > > Reverting this patch fixes the issue. Does this help?

[PATCH] imx233-olinuxino: Fix mx23_power_init() arguments

2016-01-11 Thread Fabio Estevam
From: Fabio Estevam <fabio.este...@nxp.com> Commit 4d70da6 ("ARM: MXS: power-init: Add parameters to mx28_power_init()") causes imx233-olinuxino to not boot anymore. imx233-olinuxino is commonly powered from external input supply, so adjust the mx23_power_init() argu

Re: [PATCH 1/7] hwclock command: use format like the Linux tool does

2015-12-14 Thread Fabio Estevam
On Mon, Dec 14, 2015 at 9:43 AM, Sascha Hauer wrote: > +const char *time_str(struct rtc_time *tm) > +{ > + const char *weekdays[] = { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", > "Sun" }; > + const char *months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",

[PATCH] video: imx-hdmi: Remove unused 'regmap' structure

2015-09-30 Thread Fabio Estevam
From: Fabio Estevam <fabio.este...@freescale.com> As regmap is not used in Barebox we can remove this field from the imx_hdmi struct. Signed-off-by: Fabio Estevam <fabio.este...@freescale.com> --- drivers/video/imx-ipu-v3/imx-hdmi.c | 1 - 1 file changed, 1 deletion(-) diff --g

[PATCH] spi-nor: Align spi_nor_ids[] with kernel 4.1

2015-08-15 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com Sync the spi_nor_ids[] struct with the one from kernel 4.1. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- drivers/mtd/spi-nor/spi-nor.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH] mx53-qsb: Fix boot hang during reboot stress test

2015-06-29 Thread Fabio Estevam
gone through three days of reboot stress test without any hang. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- arch/arm/boards/freescale-mx53-qsb/flash-header-imx53-loco.imxcfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/freescale-mx53-qsb

Re: Compiling barebox for newest Yocto/meta-freescale

2015-06-24 Thread Fabio Estevam
On Wed, Jun 24, 2015 at 11:33 AM, Jan Lübbe j...@pengutronix.de wrote: Gyorgy, could you point us to the Yocto side of the discussion, if it was on some list? https://www.mail-archive.com/meta-freescale@yoctoproject.org/msg14197.html Regards, Fabio Estevam

Re: barebox on i.MX 6SoloX

2015-05-07 Thread Fabio Estevam
On Thu, May 7, 2015 at 7:59 PM, Antony Pavlov antonynpav...@gmail.com wrote: Hi! I have just readed about new RaspberyPi-like board: UDOO Neo. See https://www.kickstarter.com/projects/udoo/udoo-neo-raspberry-pi-arduino-wi-fi-bt-40-sensors for details. The board's main chip is Freescale

Re: [PATCH] serial: imx: Fix buggy transmissions when baudrate mismatches

2014-06-02 Thread Fabio Estevam
Hi Sascha, On Mon, Jun 2, 2014 at 4:22 AM, Sascha Hauer s.ha...@pengutronix.de wrote: Any comments, Sascha? No, I assumed you resend the patch without the hunk above. The hunk was sent below the --- line, so it is not part of the original patch. I put it below the --- line just for

[PATCH v2] serial: imx: Fix buggy transmissions when baudrate mismatches

2014-06-02 Thread Fabio Estevam
. Tested on mx6q. Based on a patch from Eric Nelson for U-boot. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- Changes since v1: - Remove the extra hunk above the --- line. drivers/serial/serial_imx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

Changing the baudrate via barebox prompt

2014-05-13 Thread Fabio Estevam
Hi, I am running barebox on a mx6qsabresd board and would like to know if there is a way to change the serial baudrate via barebox prompt. Any suggestion? Thanks, Fabio Estevam ___ barebox mailing list barebox@lists.infradead.org http

Re: [PATCH 5/5] video: imx-ipu-v3: fix possible NULL ptr dereference

2014-04-21 Thread Fabio Estevam
On Mon, Apr 21, 2014 at 5:15 PM, Lucas Stach d...@lynxeye.de wrote: Signed-off-by: Lucas Stach d...@lynxeye.de --- drivers/video/imx-ipu-v3/ipu-dmfc.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/video/imx-ipu-v3/ipu-dmfc.c

[PATCH] ARM: i.MX25: freescale-mx25-3stack: Remove USBH2 pin setting

2014-03-12 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com mx25-3stack only uses USBH1 and USBOTG, so remove USBH2 related pin setting. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- arch/arm/boards/freescale-mx25-3ds/3stack.c | 15 --- 1 file changed, 15 deletions(-) diff --git

[PATCH] lib: math: Return NULL pointer

2014-02-21 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com Fix the following sparse warning: lib/math.c:309:16: warning: Using plain integer as NULL pointer Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- lib/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib

[PATCH 1/2] ARM: i.MX6: sabresd: switch to multiboard support

2014-02-20 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com Add multiboard support for mx6sabresd. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- arch/arm/boards/freescale-mx6-sabresd/board.c| 13 +++-- arch/arm/configs/freescale-mx6-sabresd_defconfig | 2 +- arch/arm/mach-imx

[PATCH 2/2] ARM: i.MX6: sabresd: switch to multi image support

2014-02-20 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com The image will be named after the official name of this board: barebox-freescale-mx6-sabresd.img Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- arch/arm/boards/freescale-mx6-sabresd/Makefile | 4 +- .../boards/freescale

[PATCH v2 1/2] ARM: i.MX6: sabresd: switch to multiboard support

2014-02-20 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com Add multiboard support for mx6sabresd. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- Changes since v1: - None arch/arm/boards/freescale-mx6-sabresd/board.c| 13 +++-- arch/arm/configs/freescale-mx6-sabresd_defconfig

[PATCH v2 2/2] ARM: i.MX6: sabresd: switch to multi image support

2014-02-20 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com The image will be named after the official name of this board: barebox-freescale-mx6-sabresd.img Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- Changes since v1: - Add flash-header-mx6-sabresd.imxcfg arch/arm/boards/freescale

[PATCH] ARM: imx_v7_defconfig: Enable CONFIG_MACH_SABRESD

2014-02-20 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com Allow mx6sabresd board be built by default. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- arch/arm/configs/imx_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v7_defconfig b/arch/arm/configs

[PATCH] mx6-sabrelite: Setup CCM_CCOSR register

2013-04-17 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com Setup CCM_CCOSR register to provide a CKO1 clock frequency of 16.5 MHz. CKO1 drives sgtl5000 codec clock on mx6qsabrelite and doing this setup in the bootloader will allow us to remove a lot of code in arch/arm/mach-imx/mach-imx6q.c from