From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7262285697649737728 X-Received: by 2002:a2e:9591:0:b0:2b6:fe3c:c3af with SMTP id w17-20020a2e9591000000b002b6fe3cc3afmr1997528ljh.27.1690882660215; Tue, 01 Aug 2023 02:37:40 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:bc1d:0:b0:2b9:631f:ac29 with SMTP id b29-20020a2ebc1d000000b002b9631fac29ls102063ljf.1.-pod-prod-08-eu; Tue, 01 Aug 2023 02:37:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlEBne265eCAiKIzb9DhIP6cUJRq3zbuTi2ap84m9AWaC6UTja/zDaJnRFB1OB8jSt1Oh/cd X-Received: by 2002:a2e:9c10:0:b0:2b9:e9c8:cb1 with SMTP id s16-20020a2e9c10000000b002b9e9c80cb1mr1900089lji.48.1690882658039; Tue, 01 Aug 2023 02:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690882658; cv=none; d=google.com; s=arc-20160816; b=a+rbC06/cQFvdjCGEGCxYib7RiYo19qr2nQdExju/XGN4G3LFbrH/IRAQ6vDy3m/3Z nCYTeyuFPoLLKDoqHnjcX+4mo0bqQQ+bGnwEAyUtOR9U6qEc4/BjVTb+lE0fLgDF6KQU wfA63aqtKq1bsP3vUyyIOr7hWu71d+IUCw57CmRMcszkdug6V/UiOuCvfMeYAlBENyge CS+jn/uYearr8ec5bUHcYAxc9l5x3g274zbZaF+2KmLMITjt+DK9mFxSUMI6EUT2SIs1 nYdXuSIWxq/qyP0PFkeen+JB6CHEmFJeXC3+/5BAtok6ATTqmzyTspKBUZ0xuu9RWqPm W0ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=3TGmcbx2LLxShMIyl+zmp+vJgDsgVkBw56aB7wuWGgE=; fh=Y8xmVxKsXeOwj5VJYPzj0QBUOe1XiBsygT7R+JGa07w=; b=MjOCmH0mfKuTtLNEtB7oQFVz/8tRabQWVOqpGKawN1KMc3y6soY0PmnohcxotXlV62 E6EG8961pu6xWV/HKbaCt1FYQ0G3AnjB5JwYlgFtwuPsIgpaaoVKr7LT+D9TO9dzrmS3 wIACCXOjYsVdtYI2I238C4J9EgqUuOrsJyH4yDwyBDaovJ8NX1MLoXMH/w7ZIPZkxajj 39sfC7+/bPGzFMJK2y/cIvlEO8LDxVY0Zj9MO5KC97tdgCu7dsAyQMsMzPtr62ApiJnZ z7QQjiei8mq/R8bdWVtsLnfj+zh24cb3V0Q5lWgIbLpy+8v935Uqef7Ind/uQQ8+ekBy goQQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=NTyacp2r; spf=pass (google.com: domain of fm-72506-20230801093737759bedba4aaee6be85-mtooy_@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-72506-20230801093737759bedba4aaee6be85-mTooY_@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net. [185.136.65.227]) by gmr-mx.google.com with ESMTPS id fm5-20020a05600c0c0500b003fbf22a6ddcsi871398wmb.1.2023.08.01.02.37.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Aug 2023 02:37:37 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-72506-20230801093737759bedba4aaee6be85-mtooy_@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) client-ip=185.136.65.227; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=NTyacp2r; spf=pass (google.com: domain of fm-72506-20230801093737759bedba4aaee6be85-mtooy_@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-72506-20230801093737759bedba4aaee6be85-mTooY_@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 20230801093737759bedba4aaee6be85 for ; Tue, 01 Aug 2023 11:37:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=felix.moessbauer@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=3TGmcbx2LLxShMIyl+zmp+vJgDsgVkBw56aB7wuWGgE=; b=NTyacp2r3f7PsR/sCXlZLhvxfhFkFVlWo7ygGZNkrk7Kfu94xuW0CXcrSuIjMsUpQ121q7 hwASLtmYvSUl+rcLBxE5szyYet9D8AgTytobDOEFmJ1MoRuQHNwlXEphESVymaNCTZQgFcCy z3I2J7Y6GOox2FzTDn3rJer6yYAx0=; From: Felix Moessbauer To: isar-users@googlegroups.com Cc: florian.bezdeka@siemens.com, jan.kiszka@siemens.com, Felix Moessbauer Subject: [PATCH 1/4] fix(u-boot-script): use correct ramdisk size Date: Tue, 1 Aug 2023 09:37:03 +0000 Message-Id: <20230801093706.1347928-2-felix.moessbauer@siemens.com> In-Reply-To: <20230801093706.1347928-1-felix.moessbauer@siemens.com> References: <20230801093706.1347928-1-felix.moessbauer@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-72506:519-21489:flowmailer X-TUID: HU7n3+S0Adbh When booting the kernel via a boot* command, the ramdisk is passed as address : size. However, the size pointed to the temporary variable filesize, which denotes the filesize of the last load. When combining with DT overlays, the overlays are loaded later and by that overwrite the filesize variable, resulting in a partially passed initrd. To fix this, we assign the size immediately after loading it to an env variable and use that when booting. Signed-off-by: Felix Moessbauer --- meta/recipes-bsp/u-boot-script/files/update-u-boot-script | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-bsp/u-boot-script/files/update-u-boot-script b/meta/recipes-bsp/u-boot-script/files/update-u-boot-script index 39b9fa0f..e9ace15e 100755 --- a/meta/recipes-bsp/u-boot-script/files/update-u-boot-script +++ b/meta/recipes-bsp/u-boot-script/files/update-u-boot-script @@ -50,7 +50,8 @@ yes|1) echo "load \${devtype} \${devnum}:\${distro_bootpart}" \ "\${ramdisk_addr_r} /boot/initrd.img-${KERNEL_VERSION}" \ >> ${BOOT_CMD} - INITRD_ADDR="\${ramdisk_addr_r}:\${filesize}" + echo "setenv ramdisk_size \${filesize}" >> ${BOOT_CMD} + INITRD_ADDR="\${ramdisk_addr_r}:\${ramdisk_size}" esac if [ -n "${OVERLAYS}" ]; then -- 2.34.1