All of lore.kernel.org
 help / color / mirror / Atom feed
* Yocto Project Quick Build - qemu
@ 2024-03-07 23:05 Worik Stanton
  2024-03-07 23:42 ` [yocto] " Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Worik Stanton @ 2024-03-07 23:05 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2154 bytes --]

Friends

I am starting from first principles and following Yocto Project Quick Build.

I am at the step: Simulate Your Image Using QEMU:

I am unfamiliar with qemu.  But it has started up (I watched it spin its
wheels in top) but there is nothing to show for it.

I am running in a Debian Bullseye LXC container as I have had trouble
building Yocto builds in Bookworm.  Was that a bad decision?

I am unsure if I have failed or succeeded!

What I see in my terminal is:

runqemu - INFO - Running MACHINE=qemux86-64 bitbake -e  ...
runqemu - INFO - Continuing with the following parameters:
KERNEL: [/home/yocto/poky/build/tmp/deploy/images/qemux86-64/bzImage]
MACHINE: [qemux86-64]
FSTYPE: [ext4]
ROOTFS:
[/home/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64.rootfs-20240307220730.ext4]
CONFFILE:
[/home/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64.rootfs-20240307220730.qemuboot.conf]

runqemu - INFO - Using preconfigured tap device tap0
runqemu - INFO - If this is not intended, touch
/tmp/qemu-tap-locks/tap0.skip to make runqemu skip tap0.
runqemu - INFO - Network configuration:
ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8
net.ifnames=0
runqemu - INFO - Running
/home/yocto/poky/build/tmp/work/x86_64-linux/qemu-helper-native/1.0/recipe-sysroot-native/usr/bin/qemu-system-x86_64
-device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev
tap,id=net0,ifname=tap0,script=no,downscript=no -object
rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0
-drive
file=/home/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64.rootfs-20240307220730.ext4,if=virtio,format=raw
-usb -device usb-tablet -usb -device usb-kbd   -cpu IvyBridge -machine
q35,i8042=off -smp 4 -m 512 -serial mon:vc -serial null -device virtio-vga
 -display sdl,show-cursor=on  -kernel
/home/yocto/poky/build/tmp/deploy/images/qemux86-64/bzImage -append
'root=/dev/vda rw  ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8
net.ifnames=0 oprofile.timer=1 tsc=reliable no_timer_check
rcupdate.rcu_expedited=1 swiotlb=0 '

runqemu - INFO - Host uptime: 3820.75

[-- Attachment #2: Type: text/html, Size: 2457 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] Yocto Project Quick Build - qemu
  2024-03-07 23:05 Yocto Project Quick Build - qemu Worik Stanton
@ 2024-03-07 23:42 ` Richard Purdie
  2024-03-07 23:48   ` Worik Stanton
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2024-03-07 23:42 UTC (permalink / raw)
  To: yocto, worik.stanton

On Thu, 2024-03-07 at 15:06 -0800, Worik Stanton wrote:
> Friends
> 
> I am starting from first principles and following Yocto Project Quick Build.
> 
> I am at the step: Simulate Your Image Using QEMU:
> 
> I am unfamiliar with qemu.  But it has started up (I watched it spin its wheels in top) but there is nothing to show for it. 
> 
> I am running in a Debian Bullseye LXC container as I have had trouble building Yocto builds in Bookworm.  Was that a bad decision?  
> 
> I am unsure if I have failed or succeeded!
> 
> What I see in my terminal is:
> 
> runqemu - INFO - Running MACHINE=qemux86-64 bitbake -e  ...
> runqemu - INFO - Continuing with the following parameters:
> KERNEL: [/home/yocto/poky/build/tmp/deploy/images/qemux86-64/bzImage]
> MACHINE: [qemux86-64]
> FSTYPE: [ext4]
> ROOTFS: [/home/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64.rootfs-20240307220730.ext4]
> CONFFILE: [/home/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64.rootfs-20240307220730.qemuboot.conf]
> 
> runqemu - INFO - Using preconfigured tap device tap0
> runqemu - INFO - If this is not intended, touch /tmp/qemu-tap-locks/tap0.skip to make runqemu skip tap0.
> runqemu - INFO - Network configuration: ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0
> runqemu - INFO - Running /home/yocto/poky/build/tmp/work/x86_64-linux/qemu-helper-native/1.0/recipe-sysroot-native/usr/bin/qemu-system-x86_64 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 -drive file=/home/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64.rootfs-20240307220730.ext4,if=virtio,format=raw -usb -device usb-tablet -usb -device usb-kbd   -cpu IvyBridge -machine q35,i8042=off -smp 4 -m 512 -serial mon:vc -serial null -device virtio-vga  -display sdl,show-cursor=on  -kernel /home/yocto/poky/build/tmp/deploy/images/qemux86-64/bzImage -append 'root=/dev/vda rw  ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0 oprofile.timer=1 tsc=reliable no_timer_check rcupdate.rcu_expedited=1 swiotlb=0 '
> 
> runqemu - INFO - Host uptime: 3820.75

You should be able to ssh to root@192.168.7.2

Cheers,

Richard


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] Yocto Project Quick Build - qemu
  2024-03-07 23:42 ` [yocto] " Richard Purdie
@ 2024-03-07 23:48   ` Worik Stanton
  0 siblings, 0 replies; 3+ messages in thread
From: Worik Stanton @ 2024-03-07 23:48 UTC (permalink / raw)
  To: Richard Purdie; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1968 bytes --]

>
> > What I see in my terminal is:
> >
> > runqemu - INFO - Running MACHINE=qemux86-64 bitbake -e  ...
> > runqemu - INFO - Continuing with the following parameters:
> > KERNEL: [/home/yocto/poky/build/tmp/deploy/images/qemux86-64/bzImage]
> > MACHINE: [qemux86-64]
> > FSTYPE: [ext4]
> > ROOTFS:
> [/home/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64.rootfs-20240307220730.ext4]
> > CONFFILE:
> [/home/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64.rootfs-20240307220730.qemuboot.conf]
> >
> > runqemu - INFO - Using preconfigured tap device tap0
> > runqemu - INFO - If this is not intended, touch
> /tmp/qemu-tap-locks/tap0.skip to make runqemu skip tap0.
> > runqemu - INFO - Network configuration: ip=192.168.7.2::192.168.7.1
> :255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0
> > runqemu - INFO - Running
> /home/yocto/poky/build/tmp/work/x86_64-linux/qemu-helper-native/1.0/recipe-sysroot-native/usr/bin/qemu-system-x86_64
> -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev
> tap,id=net0,ifname=tap0,script=no,downscript=no -object
> rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0
> -drive
> file=/home/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64.rootfs-20240307220730.ext4,if=virtio,format=raw
> -usb -device usb-tablet -usb -device usb-kbd   -cpu IvyBridge -machine
> q35,i8042=off -smp 4 -m 512 -serial mon:vc -serial null -device virtio-vga
>  -display sdl,show-cursor=on  -kernel
> /home/yocto/poky/build/tmp/deploy/images/qemux86-64/bzImage -append
> 'root=/dev/vda rw  ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8
> net.ifnames=0 oprofile.timer=1 tsc=reliable no_timer_check
> rcupdate.rcu_expedited=1 swiotlb=0 '
> >
> > runqemu - INFO - Host uptime: 3820.75
>
> You should be able to ssh to root@192.168.7.2
>
>
I see!  I have built the wrong build?  "sato" is a mobile build, does it
include a SSH server?

Worik

[-- Attachment #2: Type: text/html, Size: 2568 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-07 23:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-07 23:05 Yocto Project Quick Build - qemu Worik Stanton
2024-03-07 23:42 ` [yocto] " Richard Purdie
2024-03-07 23:48   ` Worik Stanton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.