mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* AM335x broken
@ 2019-02-11 14:44 Teresa Remmet
  2019-02-11 19:21 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Teresa Remmet @ 2019-02-11 14:44 UTC (permalink / raw)
  To: Barebox List, Sascha Hauer

Hello,

AM335x is broken on current master in multiple ways. 
NAND and and SPI boot are not working right now as the image size can
not be found:

barebox 2019.01.0-00305-g96abbe544e19 #1682 Mon Feb 11 15:20:00 CET
2019


Board: Phytec phyCORE AM335x
nand: ONFI flash detected
nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron
MT29F4G08ABADAH4), 512Mi
B, page size: 2048, OOB size: 64
booting from NAND
failed to get image size
trying to load image from backup partition.
failed to get image size
booting failed

I bisected the issue down to:
commit 5c0e16591d9471a345b77a41fde76de34f301f6b
Author: Sascha Hauer <s.hauer@pengutronix.de>
Date:   Wed Jan 16 10:15:55 2019 +0100

    images: Drop unnecessary fix_size
    
    Now that we compile the compressed binary into the decompressor we
    no longer need fix_size but can use the linker to fill in the image
    size into the binary.
    
    Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Reverting this patch helps. But what is the correct solution?

The other problem was introduced by the lastest device tree update from
kernel. The device tree includes have been changed to use the
interconnect target module hierarchy. So neither MLO or barebox are
starting. I will send fixes for this shortly.

Regards,
Teresa






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

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

* Re: AM335x broken
  2019-02-11 14:44 AM335x broken Teresa Remmet
@ 2019-02-11 19:21 ` Sascha Hauer
  2019-02-13  8:20   ` Teresa Remmet
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2019-02-11 19:21 UTC (permalink / raw)
  To: Teresa Remmet; +Cc: Barebox List

Hi Teresa,

On Mon, Feb 11, 2019 at 03:44:28PM +0100, Teresa Remmet wrote:
> Hello,
> 
> AM335x is broken on current master in multiple ways. 
> NAND and and SPI boot are not working right now as the image size can
> not be found:
> 
> barebox 2019.01.0-00305-g96abbe544e19 #1682 Mon Feb 11 15:20:00 CET
> 2019
> 
> 
> Board: Phytec phyCORE AM335x
> nand: ONFI flash detected
> nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron
> MT29F4G08ABADAH4), 512Mi
> B, page size: 2048, OOB size: 64
> booting from NAND
> failed to get image size
> trying to load image from backup partition.
> failed to get image size
> booting failed
> 
> I bisected the issue down to:
> commit 5c0e16591d9471a345b77a41fde76de34f301f6b
> Author: Sascha Hauer <s.hauer@pengutronix.de>
> Date:   Wed Jan 16 10:15:55 2019 +0100
> 
>     images: Drop unnecessary fix_size
>     
>     Now that we compile the compressed binary into the decompressor we
>     no longer need fix_size but can use the linker to fill in the image
>     size into the binary.
>     
>     Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> 
> Reverting this patch helps. But what is the correct solution?

Update to a newer toolchain ;)

This problem seems to exist with gcc-5 and older where the
barebox_image_size linker variable is generated as something which needs
runtime relocation.

We can just revert 5c0e16591d94. This brings us the problem that
fix-size will be used by the Mips multiimage builds. It fails there
as fix-size tests for the input being a valid Arm barebox image. We
would have to relax that constraint.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

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

* Re: AM335x broken
  2019-02-11 19:21 ` Sascha Hauer
@ 2019-02-13  8:20   ` Teresa Remmet
  0 siblings, 0 replies; 3+ messages in thread
From: Teresa Remmet @ 2019-02-13  8:20 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: Barebox List

Am Montag, den 11.02.2019, 20:21 +0100 schrieb Sascha Hauer:
> Hi Teresa,
> 
> On Mon, Feb 11, 2019 at 03:44:28PM +0100, Teresa Remmet wrote:
> > Hello,
> > 
> > AM335x is broken on current master in multiple ways. 
> > NAND and and SPI boot are not working right now as the image size
> > can
> > not be found:
> > 
> > barebox 2019.01.0-00305-g96abbe544e19 #1682 Mon Feb 11 15:20:00 CET
> > 2019
> > 
> > 
> > Board: Phytec phyCORE AM335x
> > nand: ONFI flash detected
> > nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron
> > MT29F4G08ABADAH4), 512Mi
> > B, page size: 2048, OOB size: 64
> > booting from NAND
> > failed to get image size
> > trying to load image from backup partition.
> > failed to get image size
> > booting failed
> > 
> > I bisected the issue down to:
> > commit 5c0e16591d9471a345b77a41fde76de34f301f6b
> > Author: Sascha Hauer <s.hauer@pengutronix.de>
> > Date:   Wed Jan 16 10:15:55 2019 +0100
> > 
> >     images: Drop unnecessary fix_size
> >     
> >     Now that we compile the compressed binary into the decompressor
> > we
> >     no longer need fix_size but can use the linker to fill in the
> > image
> >     size into the binary.
> >     
> >     Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> > 
> > Reverting this patch helps. But what is the correct solution?
> 
> Update to a newer toolchain ;)

This helped :) Thanks for the hint.

Teresa

> 
> This problem seems to exist with gcc-5 and older where the
> barebox_image_size linker variable is generated as something which
> needs
> runtime relocation.
> 
> We can just revert 5c0e16591d94. This brings us the problem that
> fix-size will be used by the Mips multiimage builds. It fails there
> as fix-size tests for the input being a valid Arm barebox image. We
> would have to relax that constraint.
> 
> Sascha
> 


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

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

end of thread, other threads:[~2019-02-13  8:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-11 14:44 AM335x broken Teresa Remmet
2019-02-11 19:21 ` Sascha Hauer
2019-02-13  8:20   ` Teresa Remmet

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