GithubHelp home page GithubHelp logo

Comments (9)

pattivacek avatar pattivacek commented on June 10, 2024

It looks like the call to Popen is failing because of the No such file or directory error. Try running run-qemu-ota with the -n flag to print out the full qemu command line, then verify that the files it references really do exist.

from meta-updater-qemux86-64.

viktor-mitin avatar viktor-mitin commented on June 10, 2024

Hi Patrick,
Please see the output with '-n' key below. The files script references exist.

c@3e31dc934d8e:~/w/myproject/build$ ../meta-updater/scripts/run-qemu-ota -n
Launching core-image-minimal with mac address ca:fe:0e:85:28:3d
To connect via SSH:
 ssh -o StrictHostKeyChecking=no root@localhost -p 2222
To connect to the serial console:
 nc localhost 8990
qemu-system-x86_64 -bios /home/c/w/myproject/build/tmp/deploy/images/qemux86-64/u-boot-qemux86-64.rom -drive file=/home/c/w/myproject/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20190221144001.otaimg,if=ide,format=raw,snapshot=on -serial tcp:127.0.0.1:8990,server,nowait -m 1G -usb -device usb-tablet -show-cursor -vga std -net user,hostfwd=tcp:0.0.0.0:2222-:22,restrict=off -net nic,macaddr=ca:fe:0e:85:28:3d -serial stdio -cpu Haswell

c@3e31dc934d8e:~/w/myproject/build$ ll /home/c/w/myproject/build/tmp/deploy/images/qemux86-64/u-boot-qemux86-64.rom
lrwxrwxrwx 2 c c 32 Feb 19 13:03 /home/c/w/myproject/build/tmp/deploy/images/qemux86-64/u-boot-qemux86-64.rom -> u-boot-qemux86-64-2017.09-r0.rom
c@3e31dc934d8e:~/w/myproject/build$ ll /home/c/w/myproject/build/tmp/deploy/images/qemux86-64/u-boot-qemux86-64-2017.09-r0.rom
-rw-r--r-- 2 c c 1048576 Feb 19 13:03 /home/c/w/myproject/build/tmp/deploy/images/qemux86-64/u-boot-qemux86-64-2017.09-r0.rom
c@3e31dc934d8e:~/w/myproject/build$ ll /home/c/w/myproject/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20190221144001.otaimg
-rw-r--r-- 1 c c 207096832 Feb 21 14:54 /home/c/w/myproject/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20190221144001.otaimg

Thanks

from meta-updater-qemux86-64.

pattivacek avatar pattivacek commented on June 10, 2024

Quite strange. It seems unlikely that this could be a missing dependency issue, but I suppose it is possible. One of our build machines is currently running Ubuntu 16.04.5 LTS and I've never had this issue, but if it were to have the unspecified dependency, we wouldn't notice the problem.

I don't have any great ideas right now, but could you try changing the version of python specified on the first line of meta-updater/scripts/run-qemu-ota to python3 instead of python? Does that help?

from meta-updater-qemux86-64.

viktor-mitin avatar viktor-mitin commented on June 10, 2024

Changing the version of python specified on the first line of meta-updater/scripts/run-qemu-ota to python3 instead of python didn't help. I will check several more ideas soon.

c@3e31dc934d8e:~/w/myproject/build$ ../meta-updater/scripts/run-qemu-ota
Launching core-image-minimal with mac address ca:fe:13:29:47:e4
To connect via SSH:
 ssh -o StrictHostKeyChecking=no root@localhost -p 2222
To connect to the serial console:
 nc localhost 8990
Traceback (most recent call last):
  File "../meta-updater/scripts/run-qemu-ota", line 73, in <module>
    main()
  File "../meta-updater/scripts/run-qemu-ota", line 65, in main
    s = Popen(cmdline)
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'qemu-system-x86_64'

Thanks

from meta-updater-qemux86-64.

pattivacek avatar pattivacek commented on June 10, 2024

Oh, but the error message is more descriptive in this case: it implies the missing file is "qemu-system-x86_64". Do you have an executable on your system with that name?

from meta-updater-qemux86-64.

viktor-mitin avatar viktor-mitin commented on June 10, 2024

Patrick, you are right, in this particular environment qemu package was missing. So probably it should be added to the manual as well https://docs.ota.here.com/quickstarts/qemuvirtualbox.html

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib default-jre build-essential chrpath parted socat libsdl1.2-dev xterm repo libpython2.7-dev qemu

Thanks

from meta-updater-qemux86-64.

pattivacek avatar pattivacek commented on June 10, 2024

So probably it should be added to the manual

Good idea. I've made a PR for it: advancedtelematic/ats-garage-docs#77

from meta-updater-qemux86-64.

viktor-mitin avatar viktor-mitin commented on June 10, 2024

Please add to the documentation several more observations :

https://docs.ota.here.com/quickstarts/automotive-grade-linux.html
AGL build fails to compile in case of Ubuntu 18.04 and it compiles well in case of Ubuntu 16.04

https://docs.ota.here.com/quickstarts/qemuvirtualbox.html
Qemu build works well with Yocto Thud in case of building it with repo '-m thud.xml' option. However, in case of 'cow' overlay usage it requires to backup original image before building the next update image.

Thanks

from meta-updater-qemux86-64.

pattivacek avatar pattivacek commented on June 10, 2024

AGL build fails to compile in case of Ubuntu 18.04 and it compiles well in case of Ubuntu 16.04

Technically, I don't think Ubuntu 18.04 is officially supported by rocko, which is what AGL is still using if I recall correctly, so that's outside of our control. We use 18.04 internally plenty, and it should be fine for most things. Do you recall what didn't work? We probably can't do much about it, but it would be good to know about.

Qemu build works well with Yocto Thud in case of building it with repo '-m thud.xml' option.

The quickstart guide is currently meant to be a simple introduction, so we expect readers of that to use the recommended release branch, currently rocko. However, I can discuss that internally if it's worth specifying the thud/master case.

from meta-updater-qemux86-64.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.