Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 29B27C433EF for ; Tue, 28 Dec 2021 11:57:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3781183740; Tue, 28 Dec 2021 12:57:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=svenschwermer.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=svenschwermer.de header.i=@svenschwermer.de header.b="MMZSw2GY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6692C82FAF; Mon, 27 Dec 2021 20:26:35 +0100 (CET) Received: from mail.schwermer.no (mail.schwermer.no [49.12.228.226]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 383CF8382E for ; Mon, 27 Dec 2021 20:26:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=svenschwermer.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sven@svenschwermer.de Message-ID: <2a393d38-8eeb-28ea-c5e1-455fb9ccce70@svenschwermer.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=svenschwermer.de; s=mail; t=1640633191; bh=IsTyCTHp+i37VjJFg5l86Cz2itn3pabZf5NyUrTzeGk=; h=To:From:Subject; b=MMZSw2GYFeHWynZWvfIverkJzjJzDTxRIb1fJxZIQx+kkYWNck2/lq09SsSAfci3m XlXcT3DToNNAe3X+aCERlT5pE5vdDQScQbCRTzliQT2FMBU0+0+W+8SJAMO4Q3hX/W FT+FmUQ+8AZ9vi4Fj9LfxCi6CiVU68R85d7emLm08db4c+jlain6REBgXEFIhUt97u DHEnE+tBiWEBJK1DiIWoopVmSHALGLMK71EoS51Ta/9c9XOlKcMUOfCTGQ4IViXxpF siNoGK5FkDwaVj//z4U75qvSLaSKgAOKZKDC6C1E+wXOtXDkxH9CSk0GaHEEfKbWMT qef5xE6CgYCIw== Date: Mon, 27 Dec 2021 20:26:31 +0100 Mime-Version: 1.0 To: u-boot@lists.denx.de Content-Language: en-US From: Sven Schwermer Subject: Boot Linux FIT image from SPL Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 28 Dec 2021 12:57:32 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi, I was wondering whether it's possible to boot a Linux FIT image (kernel zImage, DTB, initramfs) straight from SPL? Specifically, I'm trying to reduce the boot time when booting into a tiny Linux with RAM disk over USB SDP (i.MX6ULL). This works fine with the chain ROM -> SPL -> u-boot proper -> Linux. I have given it a try to boot the FIT image straight from SPL, but I'm getting a few (debug-level) errors: U-Boot SPL 2021.10-00003-gc254f7c98d-dirty (Dec 27 2021 - 20:15:09 +0100) Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 2440036 to 0x81000000... done Jumping to header at 0x81000000 Header Tag is not an IMX image Found header at 0x81000000 fit read sector 0, sectors=2440036, dst=88302888, count=2440036, size=0x253b64 cannot find property 'firmware': -1 kernel: 'kernel-1' Embedded data: dst=82000000, size=13caf0 Image OS is Linux fdt: 'fdt-imx6ull-myir-mys-6ulx-eval.dtb' Embedded data: dst=8213caf0, size=64f7 cannot find property 'loadables': -1 The "loadables" config property seems to be specific to the u-boot proper FIT image. I have consulted the falcon-mode readme, but it doesn't mention FIT images which leads me to believe that this is not an intended use case? Best regards, Sven