summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-08 17:55:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-09 13:22:00 +0100
commitafcd4b9cbcda5a631679a962a0a5479101539e29 (patch)
tree2accd4dedfdb2a8ff5c250abf3443736cba8d736
parente9a09c8012931c8b4b22cb1de3fc7d967af11f0a (diff)
downloadpoky-afcd4b9cbcda5a631679a962a0a5479101539e29.tar.gz
qemuboot/runqemu: Fix 6.2 and later kernel network device naming
With kernel 6.2 and later network devices are renamed by systemd. This does not match with the current network device naming assumed in our configuration. We may or may not change that naming but for now, pass the right kernel commandline so things work as expected with newer kernels and removing a blocker on upgrading to the 6.4 kernel by default. (From OE-Core rev: 9e9c33d51e401fe2b4a632db74ccb3449e4b23ee) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/qemuboot.bbclass2
-rwxr-xr-xscripts/runqemu2
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/qemuboot.bbclass b/meta/classes-recipe/qemuboot.bbclass
index 444871438d..12d0a509f1 100644
--- a/meta/classes-recipe/qemuboot.bbclass
+++ b/meta/classes-recipe/qemuboot.bbclass
@@ -102,7 +102,7 @@ QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-p
102QB_OPT_APPEND ?= "" 102QB_OPT_APPEND ?= ""
103QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@" 103QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@"
104QB_CMDLINE_IP_SLIRP ?= "ip=dhcp" 104QB_CMDLINE_IP_SLIRP ?= "ip=dhcp"
105QB_CMDLINE_IP_TAP ?= "ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8.8.8.8" 105QB_CMDLINE_IP_TAP ?= "ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0"
106QB_ROOTFS_EXTRA_OPT ?= "" 106QB_ROOTFS_EXTRA_OPT ?= ""
107QB_GRAPHICS ?= "" 107QB_GRAPHICS ?= ""
108QB_NFSROOTFS_EXTRA_OPT ?= "" 108QB_NFSROOTFS_EXTRA_OPT ?= ""
diff --git a/scripts/runqemu b/scripts/runqemu
index 5e6793d44e..0e105a918b 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -203,7 +203,7 @@ class BaseConfig(object):
203 self.fsinfo = {} 203 self.fsinfo = {}
204 self.network_device = "-device e1000,netdev=net0,mac=@MAC@" 204 self.network_device = "-device e1000,netdev=net0,mac=@MAC@"
205 self.cmdline_ip_slirp = "ip=dhcp" 205 self.cmdline_ip_slirp = "ip=dhcp"
206 self.cmdline_ip_tap = "ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8.8.8.8" 206 self.cmdline_ip_tap = "ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0"
207 # Use different mac section for tap and slirp to avoid 207 # Use different mac section for tap and slirp to avoid
208 # conflicts, e.g., when one is running with tap, the other is 208 # conflicts, e.g., when one is running with tap, the other is
209 # running with slirp. 209 # running with slirp.