Howto implement bootchooser <-> rauc interaction
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Dec 17 05:08:01 PST 2021
Hi,
On 17.12.21 13:43, Konstantin Kletschke wrote:
> Hi :-)
>
> On Fri, Dec 17, 2021 at 10:46:42AM +0100, Ahmad Fatoum wrote:
>
>> It was backported to stable in v5.10.20. Backport commit is 663a18271.
>
> Sorry my git/google-foo is unsufficient, how do I get my hands on this
> commit?
git remote add stable git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
git fetch stable --tags
git cherry-pick 663a18271
Or just update to a more recent kernel release.
> So, just to be shure for the state OF partition placed after the MBR before 1st
> MBR partition:
>
> If I have 1st partition's start sector being 2048 I hafe plenty of room
> before this after the MBR.
>
> The barebox state OF partition should be in there and I could place it
> at
>
> reg = <0x300 0xfffff>
>
> because the MBR ends at 0x1ff and the 1st partition starts at
> sector 2048 ( 2048*512byte=1MB=0x10000), is that correct, is the reg
> addressing done this way?
Nope. offset(0x300) + size(0xfffff) > 0x10000, so it overlaps MBR partition.
If you really want an OF partition starting at byte offset 0x300 and ending
at 0xffffff includsive, you'd do
reg = <0x300 0xffd00>;
> Of course a length of 0xfffff is far too much,
> just to get a picture. Also to transfer this to an OF partition in a MBR
> partition.
>
> The container partition reg = <0xc0000 0x40000> in imx6qdl-prti6q-emmc.dtsi seems
> to be directly going to below a MBR partiton starting at 2048th sector
> with size 256kB, correct?
Could be. You'd have to know how the on-disk partition table looks like,
but I'd guess that partitions are aligned to 1M boundaries and this is
as you describe directly beneath it.
Cheers,
Ahmad
> Thanks for your patience!
>
> Regards
> Konstantin
>
> INSIDE M2M GmbH
> Konstantin Kletschke
> Berenbosteler Straße 76 B
> 30823 Garbsen
>
> Telefon: +49 (0) 5137 90950136
> Mobil: +49 (0) 151 15256238
> Fax: +49 (0) 5137 9095010
>
> konstantin.kletschke at inside-m2m.de
> http://www.inside-m2m.de
>
> Geschäftsführung: Michael Emmert, Ingo Haase, Dr. Fred Könemann, Derek Uhlig
> HRB: 111204, AG Hannover
>
>
--
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 |
More information about the barebox
mailing list