Hello everyone,

I am new to running Gem5 in FS mode, and I'm trying to create a working
simulation but I got stuck with an error. Here is a part of the log, which
I believe is an error log (it's not obvious to me). Below the log, I will
give more info about my setup.
___output from m5term___
[    6.760111]  setup_IO_APIC+0x34c/0x852
[    6.761035]  ? clear_IO_APIC+0x39/0x60
[    6.761984]  apic_intr_mode_init+0x100/0x102
[    6.762832]  x86_late_time_init+0x24/0x35
[    6.763683]  start_kernel+0x4fe/0x5c3
[    6.764621]  x86_64_start_reservations+0x24/0x26
[    6.765521]  x86_64_start_kernel+0x74/0x77
[    6.766389]  secondary_startup_64+0xa4/0xb0
[    6.767261] Modules linked in:
[    6.767841] CR2: 0000000000000088
[    6.768631] ---[ end trace cc3dac460086c1e2 ]---
[    6.769560] RIP: 0010:tick_periodic+0x1b/0x80
[    6.770426] Code: 41 5d 41 5e 41 5f 5d c3 0f 0b cc cc cc cc cc 66 66 66
66 90 55 39 3d 84 14 72 01 48 89 e5 74 26 65 48 8b 05 1f e8 ed 7e 31 ff
<f6> 80 88 00 00 00 03 40 0f 95 c7 e8 e5 fd fe ff bf 01 00 00 00 e8
[    6.772347] RSP: 0000:ffffc90000003e20 EFLAGS: 0000007c
[    6.773213] RAX: 0000000000000000 RBX: ffffffff827f46c0 RCX:
0000000000000000
[    6.774166] RDX: 0000000000000000 RSI: 000000000000007c RDI:
0000000000000000
[    6.775150] RBP: ffffc90000003e20 R08: 0000000000000000 R09:
ffff88801ec016d0
[    6.776136] R10: 0000000000000000 R11: ffffffff8266ade8 R12:
7fffffffffffffff
[    6.777103] R13: 0000000000000000 R14: 0000000000000040 R15:
ffff88801f12b600
[    6.778135] FS:  0000000000000000(0000) GS:ffff88801f400000(0000)
knlGS:0000000000000000
[    6.779193] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.780038] CR2: 0000000000000088 CR3: 000000000260a000 CR4:
00000000000006b0
[    6.780993] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
0000000000000000
[    6.781949] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:
0000000000000000
[    6.782862] Kernel panic - not syncing: Fatal exception in interrupt
[    6.783865] ---[ end Kernel panic - not syncing: Fatal exception in
interrupt ]---
___________________________
_____output from gem5____
warn: x86 cpuid: unknown family 0x4000 (a lot of this cpuid warning)
warn: x86 cpuid: unknown family 0x4000
warn: instruction 'sgdt_Ms' unimplemented
_____________________________
I am using
- Gem5 20.1.0.2 (stable branch)
- Python 2.7.17
- gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
- gem5 command: ./build/X86/gem5.opt configs/example/fs.py
--cpu-type="TimingSimpleCPU" --cpu-clock="1GHz"
--kernel="linux-5.9.9/vmlinux" --disk-image="disk-image/ubuntu-image/ubuntu"
- packer 1.6.5 to create disk-image
- QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.33)
How I create linux kernel:
- Download linux 5.9.9 kernel from kernel.org
- unpack the tar file
- run cp -v /boot/config-$(uname -r) .config to generate the config file
- run make
- make still prompted me to do some long configuration setup, too long that
I just held enter to accept the default option
I attached all the relevant files to this email.

Thank you for your time.
Duc Anh
==== m5 terminal: Terminal 0 ====
[    0.000000] Linux version 5.9.9 (dauto98@Dauto98-ROG-Strix-G531GD) (gcc 
(Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, GNU ld (GNU Binutils for Ubuntu) 2.30) #1 
SMP Sat Nov 21 17:25:25 CET 2020
[    0.000000] Command line: earlyprintk=ttyS0 console=ttyS0 lpj=7999923 
root=/dev/hda1
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Hygon HygonGenuine
[    0.000000]   Centaur CentaurHauls
[    0.000000]   zhaoxin   Shanghai
[    0.000000] CPU: vendor_id 'M5 Simulator' unknown, using generic init.
[    0.000000] CPU: Your system may be unstable.
[    0.000000] x86/fpu: x87 FPU will use FXSAVE
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001fffffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000020000000-0x00000000bfffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000ffff0000-0x00000000ffffffff] reserved
[    0.000000] printk: bootconsole [earlyser0] enabled
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.5 present.
[    0.000000] DMI:  , BIOS  06/08/2008
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 1000.059 MHz processor
[    0.002022] last_pfn = 0x20000 max_arch_pfn = 0x400000000
[    0.005066] Disabled
[    0.005452] x86/PAT: MTRRs disabled, skipping PAT initialization too.
[    0.006130] CPU MTRRs all blank - virtualized system.
[    0.006702] x86/PAT: Configuration [0-7]: WB  WT  UC- UC  WB  WT  UC- UC
[    0.012806] found SMP MP-table at [mem 0x000f0050-0x000f005f]
[    0.038881] check: Scanning 1 areas for low memory corruption
[    0.104889] ACPI: Early table checksum verification disabled
[    0.130204] ACPI BIOS Error (bug): A valid RSDP was not found 
(20200717/tbxfroot-210)
[    0.169793] No NUMA configuration found
[    0.170308] Faking a node at [mem 0x0000000000000000-0x000000001fffffff]
[    0.174159] NODE_DATA(0) allocated [mem 0x1ffd5000-0x1fffffff]
[    0.323946] Zone ranges:
[    0.324309]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.325031]   DMA32    [mem 0x0000000001000000-0x000000001fffffff]
[    0.325759]   Normal   empty
[    0.326205]   Device   empty
[    0.326658] Movable zone start for each node
[    0.327922] Early memory node ranges
[    0.328454]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.329151]   node   0: [mem 0x0000000000100000-0x000000001fffffff]
[    0.330259] Zeroed struct page in unavailable ranges: 98 pages
[    0.330492] Initmem setup node 0 [mem 0x0000000000001000-0x000000001fffffff]
[    0.652856] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
[    0.668750] Intel MultiProcessor Specification v1.4
[    0.669477] MPTABLE: OEM ID:
[    0.669882] MPTABLE: Product ID:
[    0.670321] MPTABLE: APIC at: 0xFEE00000
[    0.670834] Processor #0 (Bootup-CPU)
[    0.671515] IOAPIC[0]: apic_id 1, version 20, address 0xfec00000, GSI 0-23
[    0.672449] Processors: 1
[    0.672895] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[    0.674724] PM: hibernation: Registered nosave memory: [mem 
0x00000000-0x00000fff]
[    0.675662] PM: hibernation: Registered nosave memory: [mem 
0x0009f000-0x0009ffff]
[    0.676410] PM: hibernation: Registered nosave memory: [mem 
0x000a0000-0x000fffff]
[    0.677238] [mem 0xc0000000-0xfffeffff] available for PCI devices
[    0.677839] Booting paravirtualized kernel on bare hardware
[    0.678571] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 
0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.680112] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1 
nr_node_ids:1
[    0.740546] percpu: Embedded 56 pages/cpu s192512 r8192 d28672 u2097152
[    0.748551] Built 1 zonelists, mobility grouping on.  Total pages: 128905
[    0.749168] Policy zone: DMA32
[    0.749682] Kernel command line: earlyprintk=ttyS0 console=ttyS0 lpj=7999923 
root=/dev/hda1
[    0.771579] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, 
linear)
[    0.778391] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, 
linear)
[    0.781490] mem auto-init: stack:off, heap alloc:on, heap free:off
[    1.094410] Memory: 481328K/523896K available (14339K kernel code, 2531K 
rwdata, 5024K rodata, 2596K init, 4972K bss, 42312K reserved, 0K cma-reserved)
[    1.095750] random: get_random_u64 called from 
__kmem_cache_create+0x30/0x450 with crng_init=0
[    1.131727] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    1.135163] Kernel/User page tables isolation: enabled
[    1.138225] ftrace: allocating 45770 entries in 179 pages
[    4.972178] ftrace: allocated 179 pages with 5 groups
[    4.990996] rcu: Hierarchical RCU implementation.
[    4.991554] rcu:     RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1.
[    4.992165]  Trampoline variant of Tasks RCU enabled.
[    4.992671]  Rude variant of Tasks RCU enabled.
[    4.993149]  Tracing variant of Tasks RCU enabled.
[    4.993694] rcu: RCU calculated value of scheduler-enlistment delay is 25 
jiffies.
[    4.994411] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    6.647649] NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 16
[    6.688335] Console: colour dummy device 80x25
[    6.689345] printk: console [ttyS0] enabled
[    6.689345] printk: console [ttyS0] enabled
[    6.690217] printk: bootconsole [earlyser0] disabled
[    6.690217] printk: bootconsole [earlyser0] disabled
[    6.693118] APIC: Switch to symmetric I/O mode setup
[    6.712385] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
[    6.717429] BUG: kernel NULL pointer dereference, address: 0000000000000088
[    6.718329] #PF: supervisor read access in kernel mode
[    6.719057] #PF: error_code(0x0000) - not-present page
[    6.719735] PGD 0 P4D 0
[    6.720458] Oops: 0000 [#1] SMP PTI
[    6.721179] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.9.9 #1
[    6.721947] Hardware name:  , BIOS  06/08/2008
[    6.722866] RIP: 0010:tick_periodic+0x1b/0x80
[    6.723728] Code: 41 5d 41 5e 41 5f 5d c3 0f 0b cc cc cc cc cc 66 66 66 66 
90 55 39 3d 84 14 72 01 48 89 e5 74 26 65 48 8b 05 1f e8 ed 7e 31 ff <f6> 80 88 
00 00 00 03 40 0f 95 c7 e8 e5 fd fe ff bf 01 00 00 00 e8
[    6.725650] RSP: 0000:ffffc90000003e20 EFLAGS: 0000007c
[    6.726514] RAX: 0000000000000000 RBX: ffffffff827f46c0 RCX: 0000000000000000
[    6.727466] RDX: 0000000000000000 RSI: 000000000000007c RDI: 0000000000000000
[    6.728455] RBP: ffffc90000003e20 R08: 0000000000000000 R09: ffff88801ec016d0
[    6.729440] R10: 0000000000000000 R11: ffffffff8266ade8 R12: 7fffffffffffffff
[    6.730410] R13: 0000000000000000 R14: 0000000000000040 R15: ffff88801f12b600
[    6.731443] FS:  0000000000000000(0000) GS:ffff88801f400000(0000) 
knlGS:0000000000000000
[    6.732503] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.733351] CR2: 0000000000000088 CR3: 000000000260a000 CR4: 00000000000006b0
[    6.734311] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    6.735270] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000000
[    6.736114] Call Trace:
[    6.736599]  <IRQ>
[    6.737315]  tick_handle_periodic+0x25/0x70
[    6.738257]  timer_interrupt+0x18/0x20
[    6.739066]  __handle_irq_event_percpu+0x44/0x1a0
[    6.740055]  handle_irq_event_percpu+0x32/0x80
[    6.740964]  handle_irq_event+0x3b/0x60
[    6.741854]  handle_edge_irq+0x83/0x1a0
[    6.742704]  resend_irqs+0x63/0x80
[    6.743505]  tasklet_action_common.isra.21+0x6b/0x120
[    6.744454]  tasklet_action+0x22/0x30
[    6.745206]  __do_softirq+0xe4/0x2da
[    6.746232]  asm_call_irq_on_stack+0xf/0x20
[    6.746871]  </IRQ>
[    6.747599]  do_softirq_own_stack+0x3d/0x50
[    6.748402]  irq_exit_rcu+0xa4/0xb0
[    6.749185]  common_interrupt+0x81/0x150
[    6.750149]  asm_common_interrupt+0x1e/0x40
[    6.751030] RIP: 0010:timer_irq_works+0x7c/0xf8
[    6.751911] Code: 0f 31 48 c1 e2 20 48 89 d1 48 09 c1 f3 90 0f 31 48 c1 e2 
20 48 09 c2 48 29 ca 48 81 fa ff 67 89 09 77 5b 48 8b 05 4c 9f d2 ff <48> 39 c6 
79 dd eb 4d 4c 8b 2d 3e 9f d2 ff b9 01 00 00 00 41 bf 01
[    6.753826] RSP: 0000:ffffffff82603e00 EFLAGS: 000002b9
[    6.754698] RAX: 00000000fffedb08 RBX: 000000000000006c RCX: 00000001bd42470c
[    6.755667] RDX: 000000000039f9fd RSI: 00000000fffedb0c RDI: 00000000000000ac
[    6.756660] RBP: ffffffff82603e28 R08: ffffffff82b70760 R09: 0000000001000000
[    6.757639] R10: 0000000000000015 R11: ffffffff82b70760 R12: 00000000fffedb08
[    6.758607] R13: 0000000000000000 R14: 0000000000000000 R15: ffff88801f12f7c0
[    6.760111]  setup_IO_APIC+0x34c/0x852
[    6.761035]  ? clear_IO_APIC+0x39/0x60
[    6.761984]  apic_intr_mode_init+0x100/0x102
[    6.762832]  x86_late_time_init+0x24/0x35
[    6.763683]  start_kernel+0x4fe/0x5c3
[    6.764621]  x86_64_start_reservations+0x24/0x26
[    6.765521]  x86_64_start_kernel+0x74/0x77
[    6.766389]  secondary_startup_64+0xa4/0xb0
[    6.767261] Modules linked in:
[    6.767841] CR2: 0000000000000088
[    6.768631] ---[ end trace cc3dac460086c1e2 ]---
[    6.769560] RIP: 0010:tick_periodic+0x1b/0x80
[    6.770426] Code: 41 5d 41 5e 41 5f 5d c3 0f 0b cc cc cc cc cc 66 66 66 66 
90 55 39 3d 84 14 72 01 48 89 e5 74 26 65 48 8b 05 1f e8 ed 7e 31 ff <f6> 80 88 
00 00 00 03 40 0f 95 c7 e8 e5 fd fe ff bf 01 00 00 00 e8
[    6.772347] RSP: 0000:ffffc90000003e20 EFLAGS: 0000007c
[    6.773213] RAX: 0000000000000000 RBX: ffffffff827f46c0 RCX: 0000000000000000
[    6.774166] RDX: 0000000000000000 RSI: 000000000000007c RDI: 0000000000000000
[    6.775150] RBP: ffffc90000003e20 R08: 0000000000000000 R09: ffff88801ec016d0
[    6.776136] R10: 0000000000000000 R11: ffffffff8266ade8 R12: 7fffffffffffffff
[    6.777103] R13: 0000000000000000 R14: 0000000000000040 R15: ffff88801f12b600
[    6.778135] FS:  0000000000000000(0000) GS:ffff88801f400000(0000) 
knlGS:0000000000000000
[    6.779193] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.780038] CR2: 0000000000000088 CR3: 000000000260a000 CR4: 00000000000006b0
[    6.780993] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    6.781949] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000000
[    6.782862] Kernel panic - not syncing: Fatal exception in interrupt
[    6.783865] ---[ end Kernel panic - not syncing: Fatal exception in 
interrupt ]---

Attachment: post-installation.sh
Description: application/shellscript

Attachment: runscript.sh
Description: application/shellscript

Attachment: preseed.cfg
Description: Binary data

Attachment: packer_config.json
Description: application/json

#  SPDX-License-Identifier: LGPL-2.1+
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Serial Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
BindsTo=dev-%i.device
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
After=rc-local.service

# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
IgnoreOnIsolate=yes

# IgnoreOnIsolate causes issues with sulogin, if someone isolates
# rescue.target or starts rescue.service from multi-user.target or
# graphical.target.
Conflicts=rescue.service
Before=rescue.service

[Service]
# The '-o' option value tells agetty to replace 'login' arguments with an
# option to preserve environment (-p), followed by '--' for safety, and then
# the entered username.
ExecStart=-/sbin/agetty --autologin root --keep-baud 115200,38400,9600 %I $TERM
Type=idle
Restart=always
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes

[Install]
WantedBy=getty.target
_______________________________________________
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

Reply via email to