Hi Steffen,

Am 16.04.19 um 16:10 schrieb Ulrich Ölmann:
> On Tue, Apr 16 2019 at 15:51 +0200, Ulrich Ölmann <u.oelm...@pengutronix.de> 
> wrote:
>> Hi Steffen,
>>
>> On Tue, Apr 16 2019 at 14:53 +0200, Steffen Kothe 
>> <steffen.kothe.gc1...@googlemail.com> wrote:
>>> I try to update the U-Boot Loader on two different partitions.
>>>
>>> /dev/mmcblk3boot0
>>> /dev/mmcblk3boot1
>>>
>>> A restriction on our i.Mx6 platform is location of the u-boot entry on
>>> the partition.
>>>
>>> Offset: 1024 Byte Address: 0x400
>>>
>>> So a raw copy would start at address 0x00, but we have to start 0x400
>>> for the entry point.

which platform (i.mx6 variant) is that exactly? Where does the
restriction come from? I would have expected that all i.mx6 platforms
can handle eMMC boot partitions the same way.

>>> Does rauc provides any options to customize the startaddress for a raw
>>> copy/install of a binary file (u-boot binary)?
>>>
>>> I have took a look into the source code, but found out, that there is
>>> no option to customize the default offset address for a write on a
>>> partition.
>>>
>>>
>>> Could you provide some help in this case?
>>
>> take a look at hooks, especially the subsubsection "Install Hook":
>> https://rauc.readthedocs.io/en/latest/using.html#slot-hooks .
> 
> ... and use your own logic for updating the bootloader (forgot to
> mention that): write a script that switches the eMMC's bootloader
> partition from read-only to read-write and use the mmc-utils (see [1] &
> [2]) to atomically switch the eMMC's partition once it was written.

This is exactly what RAUC provides out-of-the box. Thus I would like to
understand why it is not working in that case. I assume you are doing
eMMC boot partitions update to gain atomicity, right?

Did you notice the eMMC boot partition atomic update feature of RAUC?

https://rauc.readthedocs.io/en/latest/advanced.html#update-emmc-boot-partitions

It basically performs the steps Ulrich described above.

And please consider subscribing to the mailing list, because posts by
non-members are blocked by default (and you won't receive messages that
are replied to the list only... ;) ).

Thanks and best regards

Enrico

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

_______________________________________________
RAUC mailing list

Reply via email to