mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* mx6qsabresd: Cannot boot after 'saveenv'
@ 2016-04-23 20:02 Fabio Estevam
  2016-04-23 20:15 ` Sam Ravnborg
  2016-04-23 22:43 ` Fabio Estevam
  0 siblings, 2 replies; 5+ messages in thread
From: Fabio Estevam @ 2016-04-23 20:02 UTC (permalink / raw)
  To: barebox

Hi,

After running the 'saveenv' command on a mx6qsabresd board, I can no
longer boot Barebox:

barebox 2016.04.0-00120-gfeaf92e #18 Sat Apr 23 15:39:00 BRT 2016


Board: Freescale i.MX6 Quad SABRE Smart Device Board
detected i.MX6 Quad revision 1.1
mdio_bus: miibus0: probed
eth0: got preset MAC address: 00:04:9f:02:19:ca
m25p80 m25p80@00: m25p32 (4096 Kbytes)
imx-usb 2184200.usb: USB EHCI 1.00
imx-esdhc 2194000.usdhc: registered as 2194000.usdhc
imx-esdhc 2198000.usdhc: registered as 2198000.usdhc
imx-esdhc 219c000.usdhc: registered as 219c000.usdhc
imx-ipuv3 2400000.ipu: IPUv3H probed
imx-ipuv3 2800000.ipu: IPUv3H probed
imx-hdmi 120000.hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1
netconsole: registered as netconsole-1
malloc space: 0x2ff7b6e0 -> 0x4fef6dbf (size 511.5 MiB)
imx-ipuv3-crtc imx-ipuv3-crtc0: failed to get modes: Invalid argument
imx-ipuv3-crtc imx-ipuv3-crtc0: probe failed: Invalid argument
imx-ipuv3-crtc imx-ipuv3-crtc1: failed to get modes: Invalid argument
imx-ipuv3-crtc imx-ipuv3-crtc1: probe failed: Invalid argument
imx-ipuv3-crtc imx-ipuv3-crtc2: failed to get modes: Invalid argument
imx-ipuv3-crtc imx-ipuv3-crtc2: probe failed: Invalid argument
imx-ipuv3-crtc imx-ipuv3-crtc3: failed to get modes: Invalid argument
imx-ipuv3-crtc imx-ipuv3-crtc3: probe failed: Invalid argument
mmc2: detected SD card version 2.0
mmc2: registered mmc2
envfs: wrong magic
running /env/bin/init...

Hit m for menu or any other key to stop autoboot:
type exit to 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 Estevam

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mx6qsabresd: Cannot boot after 'saveenv'
  2016-04-23 20:02 mx6qsabresd: Cannot boot after 'saveenv' Fabio Estevam
@ 2016-04-23 20:15 ` Sam Ravnborg
  2016-04-23 20:30   ` Fabio Estevam
  2016-04-23 22:43 ` Fabio Estevam
  1 sibling, 1 reply; 5+ messages in thread
From: Sam Ravnborg @ 2016-04-23 20:15 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: barebox

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:
http://lists.infradead.org/pipermail/barebox/2016-April/026781.html

In short saveenv fails, because erase() fails.

	Sam

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mx6qsabresd: Cannot boot after 'saveenv'
  2016-04-23 20:15 ` Sam Ravnborg
@ 2016-04-23 20:30   ` Fabio Estevam
  2016-04-23 21:28     ` Sam Ravnborg
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2016-04-23 20:30 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: barebox

Hi Sam,

On Sat, Apr 23, 2016 at 5:15 PM, Sam Ravnborg <sam@ravnborg.org> 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:
> http://lists.infradead.org/pipermail/barebox/2016-April/026781.html

Thanks for the hint, but I am using top of tree Barebox, which already
contains the fix from Sascha from that thread:

commit cb8cf33ce849f71f7fe1d717aa02b5669a54a19e
Author: Sascha Hauer <s.hauer@pengutronix.de>
Date:   Mon Apr 18 11:56:00 2016 +0200

    fix erasing/protecting flashes with unspecified size

Thanks

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mx6qsabresd: Cannot boot after 'saveenv'
  2016-04-23 20:30   ` Fabio Estevam
@ 2016-04-23 21:28     ` Sam Ravnborg
  0 siblings, 0 replies; 5+ messages in thread
From: Sam Ravnborg @ 2016-04-23 21:28 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: barebox

On Sat, Apr 23, 2016 at 05:30:27PM -0300, Fabio Estevam wrote:
> Hi Sam,
> 
> On Sat, Apr 23, 2016 at 5:15 PM, Sam Ravnborg <sam@ravnborg.org> 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:
> > http://lists.infradead.org/pipermail/barebox/2016-April/026781.html
> 
> Thanks for the hint, but I am using top of tree Barebox, which already
> contains the fix from Sascha from that thread:

Just a random saturday night wild wrong guess.

	Sam

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mx6qsabresd: Cannot boot after 'saveenv'
  2016-04-23 20:02 mx6qsabresd: Cannot boot after 'saveenv' Fabio Estevam
  2016-04-23 20:15 ` Sam Ravnborg
@ 2016-04-23 22:43 ` Fabio Estevam
  1 sibling, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2016-04-23 22:43 UTC (permalink / raw)
  To: barebox; +Cc: Sam Ravnborg

On Sat, Apr 23, 2016 at 5:02 PM, Fabio Estevam <festevam@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/imx6qdl-sabresd.dtsi
@@ -34,8 +34,8 @@
                reg = <0x0 0x80000>;
        };

-       environment_usdhc3: partition@1 {
+       environment_usdhc3: partition@c0000 {
                label = "barebox-environment";
-               reg = <0x80000 0x80000>;
+               reg = <0xc0000 0x80000>;
        };
 };

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-23 22:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-23 20:02 mx6qsabresd: Cannot boot after 'saveenv' Fabio Estevam
2016-04-23 20:15 ` Sam Ravnborg
2016-04-23 20:30   ` Fabio Estevam
2016-04-23 21:28     ` Sam Ravnborg
2016-04-23 22:43 ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox