From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.13230.1603113843142010376 for ; Mon, 19 Oct 2020 06:24:03 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: brett.warren@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CE56BD6E for ; Mon, 19 Oct 2020 06:24:02 -0700 (PDT) Received: from e125157.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5E4BC3F719 for ; Mon, 19 Oct 2020 06:24:02 -0700 (PDT) From: "Brett Warren" To: meta-arm@lists.yoctoproject.org Subject: [PATCH v4 5/7] wic/qemuarm64: enabled kernel arguments with u-boot Date: Mon, 19 Oct 2020 14:23:48 +0100 Message-Id: <20201019132350.25042-5-brett.warren@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201019132350.25042-1-brett.warren@arm.com> References: <20201019132350.25042-1-brett.warren@arm.com> Kernel commandline arguments passed via runqemu don't configure the kernel when booting with u-boot, as it finds configuration in extlinux/extlinux.conf instead, which is generated by wic. A custom extlinux.conf file is now passed to wic with the intended arguments, so that the kernel now configures as directed. Change-Id: Icbbcab47fe5cf70e4d8d39c7145371f1d6cd8db7 Signed-off-by: Brett Warren --- meta-arm/wic/qemuarm64.cfg | 4 ++++ meta-arm/wic/qemuarm64.wks | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 meta-arm/wic/qemuarm64.cfg diff --git a/meta-arm/wic/qemuarm64.cfg b/meta-arm/wic/qemuarm64.cfg new file mode 100644 index 0000000..580244f --- /dev/null +++ b/meta-arm/wic/qemuarm64.cfg @@ -0,0 +1,4 @@ +default Yocto +label Yocto + kernel /Image +append root=/dev/vda2 rw console=ttyS0 mem=1024M ip=192.168.7.2::192.168.7.1:255.255.255.0 console=ttyAMA0 diff --git a/meta-arm/wic/qemuarm64.wks b/meta-arm/wic/qemuarm64.wks index 7285279..9df44c2 100644 --- a/meta-arm/wic/qemuarm64.wks +++ b/meta-arm/wic/qemuarm64.wks @@ -1,4 +1,4 @@ -bootloader --ptable gpt +bootloader --ptable gpt --configfile="qemuarm64.cfg" part /boot --ondisk=vda --align 64 --size=100M --active --source bootimg-partition --fstype=ext4 --label boot --sourceparams="loader=u-boot" part / --ondisk=vda --source rootfs --fstype=ext4 --label root -- 2.17.1