runqemu-gen-tapdevs: pass STAGING_BINDIR_NATIVE to ifup
PATCH 1/1 runqemu-gen-tapdevs: pass STAGING_BINDIR_NATIVE to ifup
Without this, runqemu-gen-tapdevs fails with the following error:
[tgamblin@megalith build]$ sudo /workspace/yocto/manual/poky/scripts/runqemu-gen-tapdevs 1000 1002 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin Creating 4 tap devices for UID: 1000 GID: 1002...
Creating tap0
Error bringing up interface: sudo runqemu-ifup <uid> <gid> <native-sysroot-basedir>
--- scripts/runqemu-gen-tapdevs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/runqemu-gen-tapdevs +1 -1
@@ -79,7 +79,7 @@ fi echo "Creating $COUNT tap devices for UID: $TUID GID: $GID..." for ((index=0; index < $COUNT; index++)); do echo "Creating tap$index" - if ! ifup=`$RUNQEMU_IFUP $TUID $GID 2>&1`; then + if ! ifup=`$RUNQEMU_IFUP $TUID $GID $STAGING_BINDIR_NATIVE 2>&1`; then echo "Error bringing up interface: $ifup" exit 1 fi
Signature · 1 line
2.40.1
Quoted 17 lines · Trevor Gamblin
Without this, runqemu-gen-tapdevs fails with the following error:
[tgamblin@megalith build]$ sudo /workspace/yocto/manual/poky/scripts/runqemu-gen-tapdevs 1000 1002 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin Creating 4 tap devices for UID: 1000 GID: 1002...
Creating tap0
Error bringing up interface: sudo runqemu-ifup <uid> <gid> <native-sysroot-basedir>Signed-off-by Trevor Gamblin <[email protected]>--- scripts/runqemu-gen-tapdevs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/runqemu-gen-tapdevs +0
-0
scripts/runqemu-gen-tapdevs fi · line 85
Quoted 8 lines
scripts/runqemu-gen-tapdevs +1
-1@@ -79,7 +79,7 @@ fi echo "Creating $COUNT tap devices for UID: $TUID GID: $GID..." for ((index=0; index < $COUNT; index++)); do echo "Creating tap$index" - if ! ifup=`$RUNQEMU_IFUP $TUID $GID 2>&1`; then + if ! ifup=`$RUNQEMU_IFUP $TUID $GID $STAGING_BINDIR_NATIVE 2>&1`; then echo "Error bringing up interface: $ifup" exit 1 fi
I'm a bit puzzled as I removed the use of STAGING_BINDIR_NATIVE in that script?
Are you mixing different releases?
Cheers,
Richard
Quoted 13 lines · Richard Purdie
Quoted 12 lines · Trevor Gamblin
Without this, runqemu-gen-tapdevs fails with the following error:
[tgamblin@megalith build]$ sudo /workspace/yocto/manual/poky/scripts/runqemu-gen-tapdevs 1000 1002 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin Creating 4 tap devices for UID: 1000 GID: 1002...
Creating tap0
Error bringing up interface: sudo runqemu-ifup <uid> <gid> <native-sysroot-basedir>Signed-off-by Trevor Gamblin <[email protected]>--- scripts/runqemu-gen-tapdevs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
scripts/runqemu-gen-tapdevs fi · line 85
Quoted 13 lines
scripts/runqemu-gen-tapdevs +1
-1@@ -79,7 +79,7 @@ fi echo "Creating $COUNT tap devices for UID: $TUID GID: $GID..." for ((index=0; index < $COUNT; index++)); do echo "Creating tap$index" - if ! ifup=`$RUNQEMU_IFUP $TUID $GID 2>&1`; then + if ! ifup=`$RUNQEMU_IFUP $TUID $GID $STAGING_BINDIR_NATIVE 2>&1`; then echo "Error bringing up interface: $ifup" exit 1 fiI'm a bit puzzled as I removed the use of
STAGING_BINDIR_NATIVEin that script?
STAGING_BINDIR_NATIVE is still present near the top of the script as a variable but isn't used anywhere. When I encountered the error and saw that the script wasn't passing a path, I thought including it again would fix it. It appears to do so on my Fedora build system.
Quoted 2 lines
Are you mixing different releases?
I'm using the latest poky master.
Quoted 5 lines
Cheers,
Richard
Quoted 29 lines · Trevor Gamblin
Quoted 13 lines · Richard Purdie
Quoted 12 lines · Trevor Gamblin
Without this, runqemu-gen-tapdevs fails with the following error:
[tgamblin@megalith build]$ sudo /workspace/yocto/manual/poky/scripts/runqemu-gen-tapdevs 1000 1002 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin Creating 4 tap devices for UID: 1000 GID: 1002...
Creating tap0
Error bringing up interface: sudo runqemu-ifup <uid> <gid> <native-sysroot-basedir>Signed-off-by Trevor Gamblin <[email protected]>--- scripts/runqemu-gen-tapdevs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 15 lines
scripts/runqemu-gen-tapdevs fi · line 85
Quoted 13 lines
scripts/runqemu-gen-tapdevs +1
-1@@ -79,7 +79,7 @@ fi echo "Creating $COUNT tap devices for UID: $TUID GID: $GID..." for ((index=0; index < $COUNT; index++)); do echo "Creating tap$index" - if ! ifup=`$RUNQEMU_IFUP $TUID $GID 2>&1`; then + if ! ifup=`$RUNQEMU_IFUP $TUID $GID $STAGING_BINDIR_NATIVE 2>&1`; then echo "Error bringing up interface: $ifup" exit 1 fiI'm a bit puzzled as I removed the use of
STAGING_BINDIR_NATIVEin that script?
Quoted 8 lines
STAGING_BINDIR_NATIVEis still present near the top of the script as a variable but isn't used anywhere. When I encountered the error and saw that the script wasn't passing a path, I thought including it again would fix it. It appears to do so on my Fedora build system.Quoted 2 lines
Are you mixing different releases?
I'm using the latest poky master.
My testing environment was corrupt, testing "build1" when the code was in "build".
I've sent a couple of patches, one to fix the script parameters (the bindir isn't used anymore) and one to fix the issue with more than 10 tap devices.
Cheers,
Richard
Hello,
Just to add more information to this, I've noticed a failure on my test environment today while trying to run -c testimage, apparently due to one of these fixes:
Command '('sudo', '/home/vsts/poky/scripts/runqemu-ifup', '1001', '123', '/home/vsts/poky/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin')' returned non-zero exit status 1
As Richard mentioned the bindir isnt used anymore, and the patches mentioned (
https://git.yoctoproject.org/poky/commit/?id=51063c1e6ac214b4ef43c88c8091c909a7cab2cb)
fixes the check for the extra parameter, however, I can clearly see that a third parameter is being passed to runqemu-ifup, which I believe is being called here:
https://git.yoctoproject.org/poky/tree/scripts/runqemu#n1185
I'll be sending a patch to fix the call to runqemu-ifup with the correct amount of arguments.
Alejandro
Quoted 68 lines · Richard Purdie
Quoted 5 lines · Trevor Gamblin
Quoted 4 lines · Richard Purdie
Quoted 3 lines · Trevor Gamblin
Without this, runqemu-gen-tapdevs fails with the following error:
[tgamblin@megalith build]$ sudo
/workspace/yocto/manual/poky/scripts/runqemu-gen-tapdevs 1000 1002 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Creating 4 tap devices for UID: 1000 GID: 1002... Creating tap0
Error bringing up interface: sudo runqemu-ifup <uid> <gid><native-sysroot-basedir>
Quoted 7 lines
Quoted 7 lines
Review
Quoted 7 lines
Signed-off-by Trevor Gamblin <[email protected]>--- scripts/runqemu-gen-tapdevs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/scripts/runqemu-gen-tapdevs
Quoted 9 lines
Quoted 9 lines
scripts/runqemu-gen-tapdevs fi · line 82
Quoted 9 lines
index
ec3ecb03b9..dc730e413d100755scripts/runqemu-gen-tapdevs +1
-1@@ -79,7 +79,7 @@ fi echo "Creating $COUNT tap devices for UID: $TUID GID: $GID..." for ((index=0; index < $COUNT; index++)); do echo "Creating tap$index" - if ! ifup=`$RUNQEMU_IFUP $TUID $GID 2>&1`; then + if ! ifup=`$RUNQEMU_IFUP $TUID $GID $STAGING_BINDIR_NATIVE 2>&1`;then
Quoted 5 lines
Quoted 5 lines
scripts/runqemu-gen-tapdevs fi · line 85
Quoted 3 lines
scripts/runqemu-gen-tapdevs +0
-0echo "Error bringing up interface: $ifup" exit 1 fiI'm a bit puzzled as I removed the use of
STAGING_BINDIR_NATIVEin that script?Quoted 8 lines
STAGING_BINDIR_NATIVEis still present near the top of the script as a variable but isn't used anywhere. When I encountered the error and saw that the script wasn't passing a path, I thought including it again would fix it. It appears to do so on my Fedora build system.Quoted 2 lines
Are you mixing different releases?
I'm using the latest poky master.
My testing environment was corrupt, testing "build1" when the code was in "build".
I've sent a couple of patches, one to fix the script parameters (the bindir isn't used anymore) and one to fix the issue with more than 10 tap devices.
Cheers,
Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#183119):
https://lists.openembedded.org/g/openembedded-core/message/183119
Mute This Topic: https://lists.openembedded.org/mt/99623609/3619605
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 17 lines · Alejandro Hernandez
Just to add more information to this, I've noticed a failure on my test environment today while trying to run -c testimage, apparently due to one of these fixes:
Command '('sudo', '
/home/vsts/poky/scripts/runqemu-ifup', '1001', '123', '/home/vsts/poky/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin')' returned non-zero exit status 1As Richard mentioned the bindir isnt used anymore, and the patches mentioned
(https://git.yoctoproject.org/poky/commit/?id=51063c1e6ac214b4ef43c88c8091c909a7cab2cb) fixes the check for the extra parameter, however, I can clearly see that a third parameter is being passed to runqemu- ifup, which I believe is being called here:
https://git.yoctoproject.org/poky/tree/scripts/runqemu#n1185
Quoted 2 lines
I'll be sending a patch to fix the call to runqemu-ifup with the correct amount of arguments.
Thanks, I had a feeling I'd missed a reference somewhere!
In the long run, removing the need for the staging directories should help usability so it is the right direction now we no longer need it.
Cheers,
Richard