linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH mips-next 0/2] mips: boot: add support for self-extracting FIT images (vmlinuz.itb)
@ 2020-11-01 15:11 Alexander Lobakin
  2020-11-04 11:26 ` Paul Cercueil
  2020-11-12 22:49 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Lobakin @ 2020-11-01 15:11 UTC (permalink / raw)
  To: Thomas Bogendoerfer
  Cc: Alexander Lobakin, Greg Kroah-Hartman, Masahiro Yamada,
	Paul Burton, Paul Cercueil, Huacai Chen, Jiaxun Yang, linux-mips,
	linux-kernel

Commit c3e2ee657418 ("MIPS: generic: Add support for zboot") added
support for self-extracting images to Generic MIPS. However, the
intended way to boot Generic MIPS kernels is using FIT Images and
UHI boot protocol, but currently there's no way to make self-extracting
FIT Image (only legacy uzImages).

This set consists of two parts:
1) various cleanups in arch/mips/boot/compressed/Makefile as a
   prerequisite;
2) a new target named "vmlinuz.itb" for composing self-extracting
   FIT Images, which allows to have the advantages of both UHI and
   vmlinuz.

The second part involves some scenarios duplication, but I think it
can be a subject for another series (for constifying and unifying
FIT Images rules across the architectures).

Alexander Lobakin (2):
  mips: boot: clean up self-extracting targets scenarios
  mips: boot: add support for self-extracting FIT images (vmlinuz.itb)

 arch/mips/Makefile                 |  3 +-
 arch/mips/boot/.gitignore          |  1 +
 arch/mips/boot/compressed/Makefile | 96 +++++++++++++++++++++++++-----
 3 files changed, 85 insertions(+), 15 deletions(-)

-- 
2.29.2



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH mips-next 0/2] mips: boot: add support for self-extracting FIT images (vmlinuz.itb)
  2020-11-01 15:11 [PATCH mips-next 0/2] mips: boot: add support for self-extracting FIT images (vmlinuz.itb) Alexander Lobakin
@ 2020-11-04 11:26 ` Paul Cercueil
  2020-11-04 13:39   ` Alexander Lobakin
  2020-11-12 22:49 ` Thomas Bogendoerfer
  1 sibling, 1 reply; 4+ messages in thread
From: Paul Cercueil @ 2020-11-04 11:26 UTC (permalink / raw)
  To: Alexander Lobakin
  Cc: Thomas Bogendoerfer, Greg Kroah-Hartman, Masahiro Yamada,
	Paul Burton, Huacai Chen, Jiaxun Yang, linux-mips, linux-kernel

Hi Alexander,

Le dim. 1 nov. 2020 à 15:11, Alexander Lobakin <alobakin@pm.me> a 
écrit :
> Commit c3e2ee657418 ("MIPS: generic: Add support for zboot") added
> support for self-extracting images to Generic MIPS. However, the
> intended way to boot Generic MIPS kernels is using FIT Images and
> UHI boot protocol, but currently there's no way to make 
> self-extracting
> FIT Image (only legacy uzImages).
> 
> This set consists of two parts:
> 1) various cleanups in arch/mips/boot/compressed/Makefile as a
>    prerequisite;
> 2) a new target named "vmlinuz.itb" for composing self-extracting
>    FIT Images, which allows to have the advantages of both UHI and
>    vmlinuz.
> 
> The second part involves some scenarios duplication, but I think it
> can be a subject for another series (for constifying and unifying
> FIT Images rules across the architectures).
> 
> Alexander Lobakin (2):
>   mips: boot: clean up self-extracting targets scenarios
>   mips: boot: add support for self-extracting FIT images (vmlinuz.itb)

It doesn't break anything on my end, so:

Acked-by: Paul Cercueil <paul@crapouillou.net>

for the series.

Why vmlinuz.itb and not vmlinuz.fit or vmlinuz.uhi? Is the .itb suffix 
already a thing?

Cheers,
-Paul

>  arch/mips/Makefile                 |  3 +-
>  arch/mips/boot/.gitignore          |  1 +
>  arch/mips/boot/compressed/Makefile | 96 
> +++++++++++++++++++++++++-----
>  3 files changed, 85 insertions(+), 15 deletions(-)
> 
> --
> 2.29.2
> 
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH mips-next 0/2] mips: boot: add support for self-extracting FIT images (vmlinuz.itb)
  2020-11-04 11:26 ` Paul Cercueil
@ 2020-11-04 13:39   ` Alexander Lobakin
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Lobakin @ 2020-11-04 13:39 UTC (permalink / raw)
  To: Paul Cercueil
  Cc: Alexander Lobakin, Thomas Bogendoerfer, Greg Kroah-Hartman,
	Masahiro Yamada, Paul Burton, Huacai Chen, Jiaxun Yang,
	linux-mips, linux-kernel

From: Paul Cercueil <paul@crapouillou.net>
Date: Wed, 04 Nov 2020 11:26:09 +0000

> Hi Alexander,

Hi Paul!

> Le dim. 1 nov. 2020 � 15:11, Alexander Lobakin <alobakin@pm.me> a
> écrit :
>> Commit c3e2ee657418 ("MIPS: generic: Add support for zboot") added
>> support for self-extracting images to Generic MIPS. However, the
>> intended way to boot Generic MIPS kernels is using FIT Images and
>> UHI boot protocol, but currently there's no way to make
>> self-extracting
>> FIT Image (only legacy uzImages).
>>
>> This set consists of two parts:
>> 1) various cleanups in arch/mips/boot/compressed/Makefile as a
>>    prerequisite;
>> 2) a new target named "vmlinuz.itb" for composing self-extracting
>>    FIT Images, which allows to have the advantages of both UHI and
>>    vmlinuz.
>>
>> The second part involves some scenarios duplication, but I think it
>> can be a subject for another series (for constifying and unifying
>> FIT Images rules across the architectures).
>>
>> Alexander Lobakin (2):
>>   mips: boot: clean up self-extracting targets scenarios
>>   mips: boot: add support for self-extracting FIT images (vmlinuz.itb)
>
> It doesn't break anything on my end, so:
>
> Acked-by: Paul Cercueil <paul@crapouillou.net>
>
> for the series.

Thanks!

> Why vmlinuz.itb and not vmlinuz.fit or vmlinuz.uhi? Is the .itb suffix
> already a thing?

As far as I know -- yes, ITB stands for Image Tree Blob (reference
to Device Tree Blob) and it's a standartized extension for FIT Images
(you can see that all variants for MIPS have ".itb" at the bottom of
arch/mips/boot/Makefile).

> Cheers,
> -Paul

Al

>>  arch/mips/Makefile                 |  3 +-
>>  arch/mips/boot/.gitignore          |  1 +
>>  arch/mips/boot/compressed/Makefile | 96
>> +++++++++++++++++++++++++-----
>>  3 files changed, 85 insertions(+), 15 deletions(-)
>>
>> --
>> 2.29.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH mips-next 0/2] mips: boot: add support for self-extracting FIT images (vmlinuz.itb)
  2020-11-01 15:11 [PATCH mips-next 0/2] mips: boot: add support for self-extracting FIT images (vmlinuz.itb) Alexander Lobakin
  2020-11-04 11:26 ` Paul Cercueil
@ 2020-11-12 22:49 ` Thomas Bogendoerfer
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Bogendoerfer @ 2020-11-12 22:49 UTC (permalink / raw)
  To: Alexander Lobakin
  Cc: Greg Kroah-Hartman, Masahiro Yamada, Paul Burton, Paul Cercueil,
	Huacai Chen, Jiaxun Yang, linux-mips, linux-kernel

On Sun, Nov 01, 2020 at 03:11:07PM +0000, Alexander Lobakin wrote:
> Commit c3e2ee657418 ("MIPS: generic: Add support for zboot") added
> support for self-extracting images to Generic MIPS. However, the
> intended way to boot Generic MIPS kernels is using FIT Images and
> UHI boot protocol, but currently there's no way to make self-extracting
> FIT Image (only legacy uzImages).
> 
> This set consists of two parts:
> 1) various cleanups in arch/mips/boot/compressed/Makefile as a
>    prerequisite;
> 2) a new target named "vmlinuz.itb" for composing self-extracting
>    FIT Images, which allows to have the advantages of both UHI and
>    vmlinuz.
> 
> The second part involves some scenarios duplication, but I think it
> can be a subject for another series (for constifying and unifying
> FIT Images rules across the architectures).
> 
> Alexander Lobakin (2):
>   mips: boot: clean up self-extracting targets scenarios
>   mips: boot: add support for self-extracting FIT images (vmlinuz.itb)
> 
>  arch/mips/Makefile                 |  3 +-
>  arch/mips/boot/.gitignore          |  1 +
>  arch/mips/boot/compressed/Makefile | 96 +++++++++++++++++++++++++-----
>  3 files changed, 85 insertions(+), 15 deletions(-)

series applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-12 22:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-01 15:11 [PATCH mips-next 0/2] mips: boot: add support for self-extracting FIT images (vmlinuz.itb) Alexander Lobakin
2020-11-04 11:26 ` Paul Cercueil
2020-11-04 13:39   ` Alexander Lobakin
2020-11-12 22:49 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).