Hi All, I'm trying to use the Gem5 full system. but It doesn't work.
These are my configurations -kernel = vmlinux-4.19.83 (5.4.49 / 4.14.134) -Ubuntu = ubuntu-18.04.6-live-server-amd64 (tried 16.04) -gem5 = 21.1.0.2 -X86 architecture -I will use an O3CPU and DRAMsim3. I made an image by using qemu and I completed the booting system. To make the image, I use this command "qemu-system -hda <ubuntu.img> -cdrom <ubuntu.iso> -m 8G -enable-kvm" The image size for ubuntu18.04.6 is 8.6GB. All files are in ~/gem5/fs and I changed "M5_PATH" to "/home/user/gem5/fs" in Syspath.py line 34. As far as I know, These are all configurations to use the gem5 full system. So I ran gem5. but it does not work. I attached all command and error messages below. How can I run the gem5 full system? Please let me know. Thanks in advance. ================================================================================================ ================================================================================================ *<gem5 command>* -cmd = ./build/X86/gem5.opt configs/example/fs.py --kernel=/home/user/gem5/fs/vmlinux-4.19.83 --disk-image=/home/user/gem5/fs/ubuntu.img (--cpu-type=AtomicSimpleCPU --mem-type=DDR4_2400_8x8 --mem-size=1GB --num-cpu=1 --caches --root-device=/dev/hda) *<gem5 log>* warn: iobus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: bridge.master is deprecated. `master` is now called `mem_side_port` warn: membus.master is deprecated. `master` is now called `mem_side_ports` warn: bridge.slave is deprecated. `slave` is now called `cpu_side_port` warn: iobus.master is deprecated. `master` is now called `mem_side_ports` warn: apicbridge.slave is deprecated. `slave` is now called `cpu_side_port` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: apicbridge.master is deprecated. `master` is now called `mem_side_port` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: iobus.master is deprecated. `master` is now called `mem_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.master is deprecated. `master` is now called `mem_side_ports` warn: membus.master is deprecated. `master` is now called `mem_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` Global frequency set at 1000000000000 ticks per second warn: system.workload.acpi_description_table_pointer.rsdt adopting orphan SimObject param 'entries' warn: No dot file generated. Please install pydot to generate the dot file and pdf. build/X86/mem/mem_interface.cc:793: warn: DRAM device capacity (16384 Mbytes) does not match the address range assigned (1024 Mbytes) build/X86/sim/kernel_workload.cc:46: info: kernel located at: /home/msm/gem5/fs/vmlinux-4.19.83 0: system.pc.south_bridge.cmos.rtc: Real-time clock set to Sun Jan 1 00:00:00 2012 system.pc.com_1.device: Listening for connections on port 3456 0: system.remote_gdb: listening for remote gdb on port 7000 build/X86/dev/intel_8254_timer.cc:125: warn: Reading current count from inactive timer. **** REAL SIMULATION **** build/X86/sim/simulate.cc:107: info: Entering event queue @ 0. Starting simulation... build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 6 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 6 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 6 build/X86/arch/x86/generated/exec-ns.cc.inc:27: warn: instruction 'fninit' unimplemented build/X86/dev/x86/pc.cc:117: warn: Don't know what interrupt to clear for console. 44655759500: system.pc.com_1.device: attach terminal 0 build/X86/arch/x86/generated/exec-ns.cc.inc:27: warn: instruction 'sgdt_Ms' unimplemented build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 6 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 6 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 6 build/X86/arch/x86/cpuid.cc:185: warn: x86 cpuid: unknown family 0x4000 build/X86/dev/x86/pc.cc:130: warn: Tried to clear PCI interrupt 14 build/X86/dev/storage/ide_disk.cc:564: panic: Can't read from system.pc.south_bridge.ide.disks0. Only 4294967295 of 512 read. errno=21 Memory Usage: 1521004 KBytes Program aborted at tick 1749666522001 --- BEGIN LIBC BACKTRACE --- ./build/X86/gem5.opt(+0x1fb4cc)[0x557dd59344cc] ./build/X86/gem5.opt(+0x23101a)[0x557dd596a01a] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7f4cc3698980] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f4cc1c42fb7] /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f4cc1c44921] ./build/X86/gem5.opt(+0x21687f)[0x557dd594f87f] ./build/X86/gem5.opt(+0x9a358e)[0x557dd60dc58e] ./build/X86/gem5.opt(+0x9a3687)[0x557dd60dc687] ./build/X86/gem5.opt(+0x9a661c)[0x557dd60df61c] ./build/X86/gem5.opt(+0x2109a5)[0x557dd59499a5] ./build/X86/gem5.opt(+0x264970)[0x557dd599d970] ./build/X86/gem5.opt(+0x2652a2)[0x557dd599e2a2] ./build/X86/gem5.opt(+0xf628be)[0x557dd669b8be] ./build/X86/gem5.opt(+0x22dd63)[0x557dd5966d63] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x2b8c7a)[0x7f4cc3b5dc7a] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x96a2)[0x7f4cc3920822] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x95a)[0x7f4cc3a7712a] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x91)[0x7f4cc3b5d4e1] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x7d13)[0x7f4cc391ee93] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x7e0e3)[0x7f4cc39230e3] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x574d)[0x7f4cc391c8cd] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x95a)[0x7f4cc3a7712a] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x91)[0x7f4cc3b5d4e1] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x7d13)[0x7f4cc391ee93] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x95a)[0x7f4cc3a7712a] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(PyEval_EvalCodeEx+0x3e)[0x7f4cc3a774ae] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(PyEval_EvalCode+0x1b)[0x7f4cc3a774db] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x1d88fd)[0x7f4cc3a7d8fd] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x26fc04)[0x7f4cc3b14c04] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x574d)[0x7f4cc391c8cd] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x95a)[0x7f4cc3a7712a] /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x91)[0x7f4cc3b5d4e1] --- END LIBC BACKTRACE --- Aborted (core dumped) ================================================================================================ ================================================================================================ *<util/term/m5term>* cmd: ./m5term localhost 3456 *<m5term log>* ==== m5 terminal: Terminal 0 ==== Linux version 4.19.83 (aakahlow@amarillo) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #1 SMP Thu Nov 28 16:06:01 PST 2019 Command line: earlyprintk=ttyS0 console=ttyS0 lpj=7999923 root=/dev/hda1 CPU: vendor_id 'M5 Simulator' unknown, using generic init. CPU: Your system may be unstable. x86/fpu: x87 FPU will use FXSAVE BIOS-provided physical RAM map: BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable BIOS-e820: [mem 0x000000000009fc00-0x00000000000fffff] reserved BIOS-e820: [mem 0x0000000000100000-0x000000003fffffff] usable BIOS-e820: [mem 0x0000000040000000-0x00000000bfffffff] reserved BIOS-e820: [mem 0x00000000ffff0000-0x00000000ffffffff] reserved bootconsole [earlyser0] enabled NX (Execute Disable) protection: active SMBIOS 2.5 present. DMI: , BIOS 06/08/2008 tsc: Fast TSC calibration using PIT tsc: Detected 2000.052 MHz processor AGP: No AGP bridge found last_pfn = 0x40000 max_arch_pfn = 0x400000000 Disabled x86/PAT: MTRRs disabled, skipping PAT initialization too. CPU MTRRs all blank - virtualized system. x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC found SMP MP-table at [mem 0x000f0050-0x000f005f] ACPI: Early table checksum verification disabled ACPI: RSDP 0x00000000000F01B0 000024 (v02 gem5 ) ACPI: XSDT 0x00000000000F03A8 00002C (v01 gem5 00000000 00000000) ACPI: APIC 0x00000000000F02D2 0000D6 (v04 madt 00000000 00000000) Zone ranges: DMA [mem 0x0000000000001000-0x0000000000ffffff] DMA32 [mem 0x0000000001000000-0x000000003fffffff] Normal empty Movable zone start for each node Early memory node ranges node 0: [mem 0x0000000000001000-0x000000000009efff] node 0: [mem 0x0000000000100000-0x000000003fffffff] Reserved but unavailable: 98 pages Initmem setup node 0 [mem 0x0000000000001000-0x000000003fffffff] IOAPIC[0]: apic_id 1, version 20, address 0xfec00000, GSI 0-23 ACPI: INT_SRC_OVR (bus 0 bus_irq 16 global_irq 16 dfl dfl) Invalid bus_irq 16 for legacy override ACPI: INT_SRC_OVR (bus 1 bus_irq 0 global_irq 2 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 1 global_irq 1 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 3 global_irq 3 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 4 global_irq 4 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 5 global_irq 5 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 6 global_irq 6 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 7 global_irq 7 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 8 global_irq 8 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 9 global_irq 9 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 10 global_irq 10 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 11 global_irq 11 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 12 global_irq 12 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 13 global_irq 13 dfl dfl) ACPI: INT_SRC_OVR (bus 1 bus_irq 14 global_irq 14 dfl dfl) Using ACPI (MADT) for SMP configuration information smpboot: Allowing 1 CPUs, 0 hotplug CPUs [mem 0xc0000000-0xfffeffff] available for PCI devices Booting paravirtualized kernel on bare hardware clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns random: get_random_bytes called from start_kernel+0x8f/0x583 with crng_init=0 setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1 percpu: Embedded 41 pages/cpu s127960 r8192 d31784 u2097152 Built 1 zonelists, mobility grouping on. Total pages: 258441 Kernel command line: earlyprintk=ttyS0 console=ttyS0 lpj=7999923 root=/dev/hda1 Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) AGP: Checking aperture... AGP: No AGP bridge found Memory: 1012004K/1048184K available (8204K kernel code, 1570K rwdata, 1940K rodata, 1204K init, 1636K bss, 36180K reserved, 0K cma-reserved) Kernel/User page tables isolation: enabled rcu: Hierarchical RCU implementation. rcu: RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1. rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 16 Console: colour dummy device 80x25 console [ttyS0] enabled console [ttyS0] enabled bootconsole [earlyser0] disabled bootconsole [earlyser0] disabled ACPI: Core revision 20180810 APIC: Switch to symmetric I/O mode setup ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0 clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x1cd45f68bc7, max_idle_ns: 440795297871 ns Calibrating delay loop (skipped) preset value.. 15999.84 BogoMIPS (lpj=7999923) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes) mce: unknown CPU type - not enabling MCE support Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0 Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0 Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization Spectre V2 : Mitigation: Full generic retpoline Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch Speculative Store Bypass: Vulnerable MDS: Vulnerable: Clear CPU buffers attempted, no microcode Freeing SMP alternatives memory: 24K ACPI Warning: AcpiEnable failed (20180810/utxfinit-135) ACPI: Unable to enable ACPI smpboot: CPU0: M5 Simulator Fake M5 x86_64 CPU (family: 0xf, model: 0x25, stepping: 0x1) Performance Events: no PMU driver, software events only. rcu: Hierarchical SRCU implementation. smp: Bringing up secondary CPUs ... smp: Brought up 1 node, 1 CPU smpboot: Max logical packages: 1 smpboot: Total of 1 processors activated (15999.84 BogoMIPS) devtmpfs: initialized clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns futex hash table entries: 256 (order: 2, 16384 bytes) NET: Registered protocol family 16 audit: initializing netlink subsys (disabled) cpuidle: using governor ladder PCI: Using configuration type 1 for base access audit: type=2000 audit(1325376000.221:1): state=initialized audit_enabled=0 res=1 HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages ACPI: Interpreter disabled. vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti < giome...@linux.it> PTP clock support registered PCI: Probing PCI hardware PCI host bridge to bus 0000:00 pci_bus 0000:00: root bus resource [io 0x0000-0xffff] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffffffff] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] pci 0000:00:04.0: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7] pci 0000:00:04.0: legacy IDE quirk: reg 0x14: [io 0x03f6] pci 0000:00:04.0: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177] pci 0000:00:04.0: legacy IDE quirk: reg 0x1c: [io 0x0376] clocksource: Switched to clocksource tsc-early VFS: Disk quotas dquot_6.6.0 VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) pnp: PnP ACPI: disabled pci 0000:00:04.0: BAR 6: assigned [mem 0xc0000000-0xc00007ff pref] pci 0000:00:04.0: BAR 4: assigned [io 0x1000-0x100f] NET: Registered protocol family 2 tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 5, 131072 bytes) TCP: Hash tables configured (established 8192 bind 8192) UDP hash table entries: 512 (order: 2, 16384 bytes) UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) NET: Registered protocol family 1 platform rtc_cmos: registered platform RTC device (no PNP device found) workingset: timestamp_bits=62 max_order=18 bucket_order=0 fuse init (API version 7.27) Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) io scheduler mq-deadline registered io scheduler kyber registered acpiphp_ibm: ibm_acpiphp_init: acpi_walk_namespace failed Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 8250 Linux agpgart interface v0.103 brd: module loaded loop: module loaded Uniform Multi-Platform E-IDE driver piix 0000:00:04.0: IDE controller (0x8086:0x7111 rev 0x00) pci 0000:00:04.0: enabling device (0000 -> 0001) piix 0000:00:04.0: not 100% native mode: will probe irqs later ide0: BM-DMA at 0x1000-0x1007 ide1: BM-DMA at 0x1008-0x100f hda: M5 IDE Disk, ATA DISK drive hdb: M5 IDE Disk, ATA DISK drive hda: UDMA/33 mode selected hdb: UDMA/33 mode selected clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1cd45f68bc7, max_idle_ns: 440795297871 ns clocksource: Switched to clocksource tsc ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ide1 at 0x170-0x177,0x376 on irq 15 ide_generic: please use "probe_mask=0x3f" module parameter for probing all legacy ISA IDE ports ide-gd driver 1.18 hda: max request size: 128KiB hda: cannot use LBA48 - full capacity 4294967295 sectors (2199023 MB) hda: 268435456 sectors (137438 MB), CHS=65535/16/63
_______________________________________________ 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