Re: Emulate Rpi with QEMU fails

2020-10-08 Thread Alex Bennée
Thomas <74cmo...@gmail.com> writes: > Interesting enough is: my top figure reported by perf is like yours: > > Samples: 6M of event 'cycles:u', Event count (approx.): 1936571734942 > Overhead Command Shared Object Symbol >7,95% qemu-system-arm qemu-system-arm

Re: Emulate Rpi with QEMU fails

2020-10-08 Thread Paul Zimmerman
Running 'top -H' (to show individual threads) I see qemu is using 6 to 7 threads while running, and each thread is taking from 15% to 70% or so of cpu time. So probably qemu is not able to spread the work among the threads evenly enough to use all the cpu time available. Might be an interesting ar

Re: Emulate Rpi with QEMU fails

2020-10-08 Thread Paul Zimmerman
Hi Thomas, What does 'top' say while the emulation is running? I have an 8 cpu-thread system, yet 'top' never shows more than about 300% cpu. I would have thought it would get closer to 800% cpu. And running qemu as root with nice -20 doesn't seem to make much difference. - Paul On Thu, Oct 8, 2

Re: Emulate Rpi with QEMU fails

2020-10-08 Thread Thomas
Interesting enough is: my top figure reported by perf is like yours: Samples: 6M of event 'cycles:u', Event count (approx.): 1936571734942 Overhead  Command  Shared Object  Symbol    7,95%  qemu-system-arm  qemu-system-arm    [.] helper_lookup_tb_ptr

Re: Emulate Rpi with QEMU fails

2020-10-07 Thread Alex Bennée
Thomas Schneider <74cmo...@gmail.com> writes: > Are you referring to this tool? > https://github.com/stefano-garzarella/qemu-boot-time > No - just plain perf: perf record $QEMU $ARGS Then a "perf report" which will show you the hotspot

Re: Emulate Rpi with QEMU fails

2020-10-07 Thread Thomas Schneider
Are you referring to this tool? https://github.com/stefano-garzarella/qemu-boot-time Am 07.10.2020 um 13:00 schrieb Alex Bennée: perf to record your boot

Re: Emulate Rpi with QEMU fails

2020-10-07 Thread Alex Bennée
Thomas Schneider <74cmo...@gmail.com> writes: > Hi, > > I already considered the host CPU power. > However I have this > > > CPU > Intel Core 2 Quad Q9550 2,83 G

Re: Emulate Rpi with QEMU fails

2020-10-07 Thread Thomas Schneider
Hi, I already considered the host CPU power. However I have this CPU Intel Core 2 Quad Q9550 2,83 GHz and assumed this should be powerful enough for RPi emulation

Re: Emulate Rpi with QEMU fails

2020-10-06 Thread Paul Zimmerman
On Tue, Oct 6, 2020 at 11:28 PM Thomas <74cmo...@gmail.com> wrote: > > Hello! > > Many thanks for your support. > > I managed to get emulated RPi starting. > > However there's one question I want to ask: > How can I accelerate the startup sequence? > I mean booting the emulated RPi takes more than

Re: Emulate Rpi with QEMU fails

2020-10-06 Thread Thomas
Hello! Many thanks for your support. I managed to get emulated RPi starting. However there's one question I want to ask: How can I accelerate the startup sequence? I mean booting the emulated RPi takes more than 3 minutes. Regards Thomas Am 06.10.20 um 11:58 schrieb Alex Bennée: > Thomas Schne

Re: Emulate Rpi with QEMU fails

2020-10-06 Thread Alex Bennée
Thomas Schneider <74cmo...@gmail.com> writes: > Hello Paul, > > many thanks for sharing this info. > > Can you confirm that the emulated RPi with your command will use > "internal QEMU" network, means the client cannot be accessed from any > other device in LAN? The support for user-mode and

Re: Emulate Rpi with QEMU fails

2020-10-06 Thread Paul Zimmerman
On Mon, Oct 5, 2020 at 11:58 PM Thomas Schneider <74cmo...@gmail.com> wrote: > > Hello Paul, > > many thanks for sharing this info. > > Can you confirm that the emulated RPi with your command will use > "internal QEMU" network, means the client cannot be accessed from any > other device in LAN? > I

Re: Emulate Rpi with QEMU fails

2020-10-05 Thread Thomas Schneider
Hello Paul, many thanks for sharing this info. Can you confirm that the emulated RPi with your command will use "internal QEMU" network, means the client cannot be accessed from any other device in LAN? If yes, what is required to setup a TAP connected to host's network bridge? Regards Thoma

Re: Emulate Rpi with QEMU fails

2020-10-05 Thread Paul Zimmerman
If you can upgrade to Qemu 5.1 or newer, you should be able to use the builtin raspi2 or raspi3 emulation directly. Version 5.1 adds support for the USB controller on the Pi. There is no limitation on the amount of memory you can use with this method, and the networking should work. Here is the c

Re: Emulate Rpi with QEMU fails

2020-10-05 Thread Thomas Schneider
Hello, thanks for your replies. I must admit that I don't fully understand your analysis. However you made some conclusions that are correct. In fact I have found a Github repo where a specific kernel and versatile-pb are provided + instruction

Re: Emulate Rpi with QEMU fails

2020-10-05 Thread Alex Bennée
Peter Maydell writes: > On Sun, 4 Oct 2020 at 18:44, Alex Bennée wrote: >> Thomas <74cmo...@gmail.com> writes: >> > I'm trying to emulate Rpi with QEMU. >> > I found >> > [url=1]this[/url] >> > arcticle in Raspberry Pi Geek documenting the steps including persistent >> > storage on host. >> >

Re: Emulate Rpi with QEMU fails

2020-10-04 Thread Peter Maydell
On Sun, 4 Oct 2020 at 18:44, Alex Bennée wrote: > Thomas <74cmo...@gmail.com> writes: > > I'm trying to emulate Rpi with QEMU. > > I found > > [url=1]this[/url] > > arcticle in Raspberry Pi Geek documenting the steps including persistent > > storage on host. > > > > However when starting the emula

Re: Emulate Rpi with QEMU fails

2020-10-04 Thread Alex Bennée
Thomas <74cmo...@gmail.com> writes: > Hi, > > I'm trying to emulate Rpi with QEMU. > I found > [url=1]this[/url] > arcticle in Raspberry Pi Geek documenting the steps including persistent > storage on host. > > However when starting the emulation with command > qemu-system-arm -M versatilepb -cp

Emulate Rpi with QEMU fails

2020-10-03 Thread Thomas
Hi, I'm trying to emulate Rpi with QEMU. I found [url=https://www.raspberry-pi-geek.de/ausgaben/rpg/2014/04/raspberry-pi-emulieren/]this[/url] arcticle in Raspberry Pi Geek documenting the steps including persistent storage on host. However when starting the emulation with command qemu-system-arm