From patchwork Sun Nov 1 15:11:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lobakin X-Patchwork-Id: 11872093 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6EBE3921 for ; Sun, 1 Nov 2020 15:12:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B51AE22244 for ; Sun, 1 Nov 2020 15:12:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="j75o185H" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726499AbgKAPLX (ORCPT ); Sun, 1 Nov 2020 10:11:23 -0500 Received: from mail-03.mail-europe.com ([91.134.188.129]:47760 "EHLO mail-03.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbgKAPLW (ORCPT ); Sun, 1 Nov 2020 10:11:22 -0500 Date: Sun, 01 Nov 2020 15:11:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1604243479; bh=5iJ0E5e0R3nJzOnM1jd4trfBZrT4w2G6VPCCONJqXHs=; h=Date:To:From:Cc:Reply-To:Subject:From; b=j75o185HmXDi1mbpGazoz7+2W8dyJUzT6lkr8wz7TjgDy6d95bWpMvtKP1PtOYQNq BsfeU9i2+MMUOq1Q0TCwy2jekInmwGziRGNFtE6ZDAhOqFs6JqI6Pi9djHDPe105r+ fkIO3HXNrjC0Af+gSpozT4pkTLj4h01PPm8yZIBhP4QvbO3eN5BD8iy+F4gmmR/GBz 1Rjgwc4uBB//OUk6Q0/p9VWrvbpzVyI5HybtQLHqwS95+7F+dCEQUMDzKcrtBVm59b xUrqKnED2e08EAKJLI8z6XoM231gw8y3UMdGcxHPOarYOHtugBQ/ebyOj2t8LpWzQ4 AZr8lf177ltgQ== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Alexander Lobakin , Greg Kroah-Hartman , Masahiro Yamada , Paul Burton , Paul Cercueil , Huacai Chen , Jiaxun Yang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH mips-next 0/2] mips: boot: add support for self-extracting FIT images (vmlinuz.itb) Message-ID: MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org 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(-) Acked-by: Paul Cercueil