Re: barebox image for an spi flash (like m25p0) on an imx7 soc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/5/20 9:26 AM, Giorgio Dal Molin wrote:
> Hi,
> 
> does barebox support generating a bootloader image that's able to boot
> from an spi nor flash (m25p0) on an imx7 soc ?
> 
> I'm currently able to read/write/erase the flash and I can also 'barebox_update'
> the image on the flash but the imx7 does not want to boot from it.
> 
> After comparing a working u-boot image with what 'barebox_update' flashes I think
> the problem is the barebox image does not have the proper binary layout.
> 
> Is this use case already implemented or is it still a TODO ?

At what offset is the barebox partition you apply the barebox update to?
If the barebox partition offset is not at the very start, try setting offset
to zero.

Not sure about the i.MX7 specifically, but for other i.MX*, the image already
contains padding at the start, so it can directly be written to the medium, unlike
U-Boot, which needs to be written at an offset.

Cheers
Ahmad

> 
> thank you,
> giorgio
> 
> _______________________________________________
> barebox mailing list
> barebox@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/barebox
> 


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux