RobertBerger

runqemu in container - 1

Oct 30th, 2020
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. student@e450-8:/workdir⟫ ./resy-sdk-container.sh
  2. + sudo modprobe tun
  3. + docker pull reliableembeddedsystems/sdk-container:ubuntu-18.04-gcc-9
  4. ubuntu-18.04-gcc-9: Pulling from reliableembeddedsystems/sdk-container
  5. Digest: sha256:90d0edd6489ec466f1db2173488686712a62bfd5c898c0867fb92620343f0249
  6. Status: Image is up to date for reliableembeddedsystems/sdk-container:ubuntu-18.04-gcc-9
  7. docker.io/reliableembeddedsystems/sdk-container:ubuntu-18.04-gcc-9
  8. ++ id -u student
  9. ++ stat -c %g /home/student
  10. + docker run -e TARGET_UID=1000 -e TARGET_GID=1000 -v /opt:/opt -v /workdir:/workdir -v /home/student/projects:/projects -v /home/student:/student -v /tftpboot:/tftpboot --interactive --tty --entrypoint=/usr/bin/entrypoint.sh reliableembeddedsystems/sdk-container:ubuntu-18.04-gcc-9 --login
  11. sdk@12e96b0308ee:/$ cd /workdir/build/
  12. sdk@12e96b0308ee:/workdir/build$ source /workdir/sources/poky-master/oe-init-build-env qemux86-64-master
  13.  
  14. ### Shell environment set up for builds. ###
  15.  
  16. You can now run 'bitbake <target>'
  17.  
  18. Common targets are:
  19. core-image-minimal
  20. core-image-minimal -c populate_sdk
  21. core-image-minimal -c populate_sdk_ext
  22.  
  23. You can also run generated qemu images with a command like 'runqemu qemux86'
  24. sdk@12e96b0308ee:/workdir/build/qemux86-64-master$ runqemu qemux86-64 slirp nographic
  25. runqemu - INFO - Running MACHINE=qemux86-64 bitbake -e ...
  26. runqemu - INFO - Continuing with the following parameters:
  27. KERNEL: [/workdir/build/qemux86-64-master/tmp/deploy/images/qemux86-64/bzImage--5.8.13+git0+34775c20bc_5981001bf0-r0.0-qemux86-64-20201020085355.bin]
  28. MACHINE: [qemux86-64]
  29. FSTYPE: [ext4]
  30. ROOTFS: [/workdir/build/qemux86-64-master/tmp/deploy/images/qemux86-64/meta-python-ptest-image-qemux86-64-20201029191220.rootfs.ext4]
  31. CONFFILE: [/workdir/build/qemux86-64-master/tmp/deploy/images/qemux86-64/meta-python-ptest-image-qemux86-64-20201029191220.qemuboot.conf]
  32.  
  33. runqemu - INFO - Network configuration: ip=dhcp
  34. runqemu - INFO - Port forward: hostfwd=tcp::2222-:22 hostfwd=tcp::2323-:23
  35. runqemu - INFO - Running /workdir/build/qemux86-64-master/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-x86_64 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:35:02 -netdev user,id=net0,hostfwd=tcp::2222-:22,hostfwd=tcp::2323-:23,tftp=/workdir/build/qemux86-64-master/tmp/deploy/images/qemux86-64 -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 -drive file=/workdir/build/qemux86-64-master/tmp/deploy/images/qemux86-64/meta-python-ptest-image-qemux86-64-20201029191220.rootfs.ext4,if=virtio,format=raw -usb -device usb-tablet -nographic -cpu core2duo -m 256 -serial mon:stdio -serial null -kernel /workdir/build/qemux86-64-master/tmp/deploy/images/qemux86-64/bzImage--5.8.13+git0+34775c20bc_5981001bf0-r0.0-qemux86-64-20201020085355.bin -append 'root=/dev/vda rw console=ttyS0 mem=256M ip=dhcp oprofile.timer=1 '
  36. SeaBIOS (version rel-1.13.0-48-gd9c812dda519-prebuilt.qemu.org)
  37.  
  38.  
  39. iPXE (http://ipxe.org) 00:03.0 CA00 PCI2.10 PnP PMM+0FF8F040+0FEEF040 CA00
  40.  
  41.  
  42.  
  43. Booting from ROM..
  44. [ 0.000000] Linux version 5.8.13-yocto-standard (oe-user@oe-host) (x86_64-poky-linux-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.0.20200730) #1 SMP PREEMPT Tue Oct 6 12:23:29 UTC 2020
  45. [ 0.000000] Command line: root=/dev/vda rw console=ttyS0 mem=256M ip=dhcp oprofile.timer=1
  46. [ 0.000000] x86/fpu: x87 FPU will use FXSAVE
  47. [ 0.000000] BIOS-provided physical RAM map:
  48. [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
  49. [ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
  50. [ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
  51. [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000000ffdafff] usable
  52. [ 0.000000] BIOS-e820: [mem 0x000000000ffdb000-0x000000000fffffff] reserved
  53. [ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
  54. ...
  55. [ OK ] Started User Login Management.
  56. [ OK ] Reached target Multi-User System.
  57. Starting Update UTMP about System Runlevel Changes...
  58. [ OK ] Finished Update UTMP about System Runlevel Changes.
  59.  
  60. Poky (Yocto Project Reference Distro) 3.2 qemux86-64 ttyS0
  61.  
  62. qemux86-64 login: root
  63. root@qemux86-64:~# uname -a
  64. Linux qemux86-64 5.8.13-yocto-standard #1 SMP PREEMPT Tue Oct 6 12:23:29 UTC 2020 x86_64 GNU/Linux
  65. root@qemux86-64:~#
Add Comment
Please, Sign In to add comment