Yes, in that case, you might want to remove the last "m5 exit" in your init script.
-Ayaz On Sun, Apr 30, 2023 at 2:29 PM Xiang Li via gem5-users <gem5-users@gem5.org> wrote: > Hi Ayaz, > > Thanks for your reply. I used qemu to build a Ubuntu16.04 image. My OS > booted fully now but it exit automatically, I don't have chance to type > command. I mean I want to boot the OS and type command just like a normal > Ubuntu. I guess I can't have a "m5 exit" right? > > Best wish, > Xiang > ---- Replied Message ---- > From Ayaz Akram via gem5-users<gem5-users@gem5.org> <gem5-users@gem5.org> > Date 05/01/2023 03:47 > To The gem5 Users mailing list<gem5-users@gem5.org> <gem5-users@gem5.org> > Cc Xiang Li<dreamerlii...@163.com> <dreamerlii...@163.com>, > Ayaz Akram<yazak...@ucdavis.edu> <yazak...@ucdavis.edu> > Subject [gem5-users] Re: How to stop running scipt when starting fs > Hi Xiang Li, > > Based on your shared guest terminal output, OS has yet to boot fully. Your > init script probably has not been executed yet. In case you don't care > about systemd, you can also change the kernel arguments in the gem5 run > script to directly run your init script once the kernel has booted. Also, I > am not fully sure what disk image you are using, but please make sure that > the init script you have modified executes "m5 exit" so that the simulation > can be terminated. > > -Ayaz > > On Sun, Apr 30, 2023 at 8:32 AM Xiang Li via gem5-users < > gem5-users@gem5.org> wrote: > >> Hi, >> I'm trying to running a X86 full-system, it seems like it would run a >> script and exit automatically. I have delated the second if-fi from >> gem5init, but it doesn't work. Could you please tell how to do that? >> >> >> ... >> >> VFS: Mounted root (ext4 filesystem) on device 3:1. >> >> devtmpfs: mounted >> >> Freeing unused kernel memory: 1200K >> >> Write protecting the kernel read-only data: 12288k >> >> Freeing unused kernel memory: 2020K >> >> Freeing unused kernel memory: 92K >> >> rodata_test: all tests were successful >> >> systemd[1]: System time before build time, advancing clock. >> >> random: systemd: uninitialized urandom read (16 bytes read) >> >> systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX >> +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL >> +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN) >> >> systemd[1]: Detected architecture x86-64. >> >> >> >> Welcome to [1mUbuntu 16.04.7 LTS[0m! >> >> >> >> systemd[1]: Set hostname to <dreamerli>. >> >> random: systemd: uninitialized urandom read (16 bytes read) >> >> random: systemd: uninitialized urandom read (16 bytes read) >> >> systemd[1]: Listening on LVM2 metadata daemon socket. >> >> [[0;32m OK [0m] Listening on LVM2 metadata daemon socket. >> >> systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. >> >> [[0;32m OK [0m] Listening on /dev/initctl Compatibility Named Pipe. >> >> systemd[1]: Reached target User and Group Name Lookups. >> >> [[0;32m OK [0m] Reached target User and Group Name Lookups. >> >> systemd[1]: Listening on Journal Socket. >> >> [[0;32m OK [0m] Listening on Journal Socket. >> >> systemd[1]: Listening on fsck to fsckd communication Socket. >> >> [[0;32m OK [0m] Listening on fsck to fsckd communication Socket. >> >> systemd[1]: Listening on udev Kernel Socket. >> >> [[0;32m OK [0m] Listening on udev Kernel Socket. >> >> systemd[1]: Listening on Journal Audit Socket. >> >> [[0;32m OK [0m] Listening on Journal Audit Socket. >> >> [[0;32m OK [0m] Started Forward Password Requests to Wall Directory >> Watch. >> >> [[0;32m OK [0m] Reached target Encrypted Volumes. >> >> [[0;32m OK [0m] Started Trigger resolvconf update for networkd DNS. >> >> [[0;32m OK [0m] Listening on LVM2 poll daemon socket. >> >> [[0;32m OK [0m] Listening on Journal Socket (/dev/log). >> >> [[0;32m OK [0m] Created slice System Slice. >> >> [[0;32m OK [0m] Started Read required files in advance. >> >> Mounting Debug File System... >> >> Starting Set console keymap... >> >> Starting Load Kernel Modules... >> >> Mounting POSIX Message Queue File System... >> >> Starting Create Static Device Nodes in /dev... >> >> [[0;32m OK [0m] Created slice system-serial\x2dgetty.slice. >> >> Starting Nameserver information manager... >> >> Starting Remount Root and Kernel File Systems... >> >> Mounting Huge Pages File System... >> >> [[0;32m OK [0m] Listening on Syslog Socket. >> >> Starting Journal Service... >> >> Starting Uncomplicated firewall... >> >> [[0;32m OK [0m] Listening on udev Control Socket. >> >> [[0;32m OK [0m] Created slice User and Session Slice. >> >> [[0;32m OK [0m] Reached target Slices. >> >> [[0;32m OK [0m] Listening on Device-mapper event daemon FIFOs. >> >> Starting Monitoring of LVM2 mirrors... dmeventd or progress >> polling... >> >> [[0;32m OK [0m] Started Uncomplicated firewall. >> >> [[0;32m OK [0m] Mounted POSIX Message Queue File System. >> >> [[0;32m OK [0m] Mounted Debug File System. >> >> [[0;32m OK [0m] Mounted Huge Pages File System. >> >> [[0;32m OK [0m] Started Nameserver information manager. >> >> [[0;32m OK [0m] Reached target Network (Pre). >> >> [[0;1;31mFAILED[0m] Failed to start Load Kernel Modules. >> >> See 'systemctl status systemd-modules-load.service' for details. >> >> Mounting FUSE Control File System... >> >> Starting Apply Kernel Variables... >> >> Mounting Configuration File System... >> >> [[0;32m OK [0m] Mounted Configuration File System. >> >> [[0;32m OK [0m] Started Apply Kernel Variables. >> >> [[0;32m OK [0m] Mounted FUSE Control File System. >> >> [[0;32m OK [0m] Started Create Static Device Nodes in /dev. >> >> Starting udev Kernel Device Manager... >> >> [[0;32m OK [0m] Started Remount Root and Kernel File Systems. >> >> Starting udev Coldplug all Devices... >> >> Starting Load/Save Random Seed... >> >> [[0;32m OK [0m] Started LVM2 metadata daemon. >> >> [[0;32m OK [0m] Started Load/Save Random Seed. >> >> [[0;32m OK [0m] Started Journal Service. >> >> Starting Flush Journal to Persistent Storage... >> >> [[0;32m OK [0m] Started udev Kernel Device Manager. >> >> [[0;32m OK [0m] Started Flush Journal to Persistent Storage. >> >> [[0;32m OK [0m] Started udev Coldplug all Devices. >> >> [[0;32m OK [0m] Found device /dev/ttyS0. >> >> [[0;32m OK [0m] Started Set console keymap. >> >> [[0;32m OK [0m] Started Dispatch Password Requests to Console Directory >> Watch. >> >> [[0;32m OK [0m] Started Monitoring of LVM2 mirrors,...ng dmeventd or >> progress polling. >> >> [[0;32m OK [0m] Reached target Local File Systems (Pre). >> >> [[0;32m OK [0m] Reached target Local File Systems. >> >> Starting Tell Plymouth To Write Out Runtime Data... >> >> Starting Set console font and keymap... >> >> Starting LSB: AppArmor initialization... >> >> Starting Create Volatile Files and Directories... >> >> [[0;32m OK [0m] Started Create Volatile Files and Directories. >> >> Starting Update UTMP about System Boot/Shutdown... >> >> Starting Network Time Synchronization... >> >> [[0;32m OK [0m] Started Tell Plymouth To Write Out Runtime Data. >> >> [[0;32m OK [0m] Started Update UTMP about System Boot/Shutdown. >> >> [[0;32m OK [0m] Started Network Time Synchronization. >> >> [[0;32m OK [0m] Reached target System Time Synchronized. >> >> [[0;32m OK [0m] Started LSB: AppArmor initialization. >> >> Starting Raise network interfaces... >> >> [[0m[0;31m* [0m] (1 of 3) A start job is running for...etwork >> interfaces (5s / 5min 3s) >> [K[[0;1;31m*[0m[0;31m* [0m] (1 of 3) A start job is running >> for...etwork interfaces (6s / 5min 3s) >> >> _______________________________________________ >> gem5-users mailing list -- gem5-users@gem5.org >> To unsubscribe send an email to gem5-users-le...@gem5.org >> > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org >
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org