Hi again,

On Tue, 2023-01-03 at 10:39 +0100, Jan Lübbe wrote:
> Hi,
> 
> On Tue, 2023-01-03 at 09:31 +0100, Ahmad Fatoum wrote:
> > Hello Bernd,
> > 
> > On 03.01.23 09:17, BAUER Bernd wrote:
> > > Hi!
> > > 
> > > I have an IMX8MN system and want to use RAUC to update the bootloader.
> > > The BL is on the EMMC (no partition) and is not redundant.
> > 
> > Why would you not place it into the dedicated hardware boot partitions
> > that your eMMC already has?
> > 
> > > Does this work with Rauc at all?
> > 
> > eMMC boot partition are better because they provide power-fail safe update,
> > but you could use the eMMC user area with RAUC as well.
> > Easiest way is to just place a MBR/GPT partition at the location where the
> > bootrom expects the bootloader. There's no rule that the bootloader needs
> > to be located in unpartitioned space.
> 
> Which SoC are you using?

Ah, I just noticed that you're using a i.MX8MN. That means you can use the eMMC
boot partitions and have atomic bootloader updates with the current
implementation in RAUC:
https://rauc.readthedocs.io/en/latest/advanced.html#update-bootloader-in-emmc-boot-partitions

Regards,
Jan

> Depending on what the ROM code expects, you could use the other types 
> (boot-raw-
> fallback or boot-mbr-switch).
> 
> If the ROM code only supports a single fixed bootloader offset, you cannot
> update it atomically. Support for that is not implemented in RAUC yet.
> 
> > > I have unfortunately found nothing in the manual about it.
> > 
> > There's: 
> > https://rauc.readthedocs.io/en/latest/examples.html#atomic-bootloader-updates-emmc
> 
> More details on the available methods are in:
> https://rauc.readthedocs.io/en/latest/advanced.html#updating-the-bootloader

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

Reply via email to