First, please in future just copy and paste the text/error messages. Screenshots are inefficient and make email threads such as this difficult for future users to search.
Nikos is correct, your boot is working as intended, but I'll expand the answer to help you in your work. I notice you're using gem5 v21.0.0.0. This version of gem5 is a year old and we've made significant improvements to the tool since then. The current release of gem5 is v21.2.1.0. I strongly recommend you use this version. You can get this by cloning the repo and compiling what you find at the HEAD of the "stable" branch. I know this is very confusing but the files under http://gem5.org/dist/current/ are legacy files and were only known to work for gem5 v19 (sidenote: this is totally my fault for calling this directory "current" and due to various links being passed around since then, it's stuck). The files you really want will be under http://gem5.org/dist/v21-2 for the v21.2 release, or http://gem5.org/dist/v21-0 for the v21.0 release you're using. The easiest way to do an x86 FS boot in v21.2 would be to do the following: ``` scons build/X86/gem5.opt -j `nproc` ./build/X86/gem5.opt configs/example/gem5_library/x86-ubuntu-run.py ``` This will automatically download the kernel and the disk image you need to run the simulation. It will also exit after boot. The only thing you need to keep in mind here is this uses the X86DemoBoard, which holds no guarantees to be representative of real-world targets. You can do some limit stuff after boot if you want, you can change the x86-ubuntu-run.py line to something like: ``` board.set_kernel_disk_workload( kernel=Resource("x86-linux-kernel-5.4.49"), disk_image=Resource("x86-ubuntu-18.04-img"), readfile_contents="echo 'hello'", ) ``` This will print "Hello" after boot instead of exiting. If you want something more substantial you'll need to create your own disk image. We provide some, most of of which have example scripts you can find under "configs/example/gem5_library". More information on using the gem5 standard library can be found here: https://www.gem5.org/documentation/gem5-stdlib/overview Kind regards, Bobby -- Dr. Bobby R. Bruce Room 3050, Kemper Hall, UC Davis Davis, CA, 95616 web: https://www.bobbybruce.net On Thu, Mar 17, 2022 at 11:41 AM Eliot Moss via gem5-users < gem5-users@gem5.org> wrote: > > ... and I'll just add that often folks want to have gem5 simulate the boot > sequence and then take a checkpoint. That checkpoint can be used over and > over to run from that point in the simulation, skipping the time taken to > boot. In one of my setups this save 15-20 mins for each run. > > Regards - Eliot Moss > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s >
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s