[meta-arm,5/6] wic/qemuarm64: enabled kernel arguments with u-boot

Submitted by brett.warren@arm.com on Oct. 14, 2020, 11:36 a.m. | Patch ID: 177245

Details

Message ID zvki.1602675393416638948.4oHG@lists.yoctoproject.org
State New
Headers show

Commit Message

brett.warren@arm.com Oct. 14, 2020, 11:36 a.m.
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 <brett.warren@arm.com>
---
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

--
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1200): https://lists.yoctoproject.org/g/meta-arm/message/1200
Mute This Topic: https://lists.yoctoproject.org/mt/77503237/3617530
Group Owner: meta-arm+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

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