mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Giorgio Dal Molin <giorgio.nicole@arcor.de>, barebox@lists.infradead.org
Subject: Re: barebox image for an spi flash (like m25p0) on an imx7 soc
Date: Thu, 5 Mar 2020 10:05:11 +0100	[thread overview]
Message-ID: <4b929efa-4d1b-5641-743d-96d94766c57d@pengutronix.de> (raw)
In-Reply-To: <2105504494.1423.1583396775377@mail.vodafone.de>

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@lists.infradead.org
> 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2020-03-05  9:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-05  8:26 Giorgio Dal Molin
2020-03-05  9:05 ` Ahmad Fatoum [this message]
2020-03-05  9:50   ` Giorgio Dal Molin
2020-03-05 13:24     ` Sascha Hauer
2020-03-05 13:54       ` Giorgio Dal Molin
2020-03-05 14:20         ` Rouven Czerwinski
2020-03-05 17:11           ` Giorgio
2020-03-06  8:41             ` Giorgio Dal Molin
2020-03-06 13:01               ` Sascha Hauer
2020-03-06 13:46                 ` Giorgio Dal Molin
2020-03-06 17:22                 ` Giorgio Dal Molin
2020-03-06 10:11     ` Giorgio Dal Molin
2020-03-06 12:59       ` Sascha Hauer
2020-03-06 14:08         ` Giorgio Dal Molin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4b929efa-4d1b-5641-743d-96d94766c57d@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=giorgio.nicole@arcor.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox