HI Duc Anh,

It seems that you're using the default Linux kernel config, which
won't work with gem5. There are a few Linux kernel configs of older
versions that are known to work with gem5, and we can use them to
generate new ones that might work with gem5. You can find the known
working ones here
(https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/linux-kernel/linux-configs/).
You can pick one of the configs and copy it to the linux folder under
the name `.config`, then run `make oldconfig` and `make`. For `make
oldconfig`, we usually pick the default options. More details can be
found here 
(https://github.com/darchr/gem5art/blob/master/docs/linux-configs/README.md).

I don't know whether fs.py will work with the disk image. If it
doesn't, you can use the example configs from gem5-resources
(https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/develop/src/)
that we know their working status. You can find the example gem5
configs in `boot-exit`, `npb`, `parsec`, `gapbs`, `spec-2006` and
`spec-2017`, and the working status can be found here
(https://gem5-review.googlesource.com/c/public/gem5-website/+/35316).
Admittedly, this should be merged soon to the gem5 website.

Regards,
Hoa Nguyen

On 11/22/20, Đức Anh via gem5-users <gem5-users@gem5.org> wrote:
> Hello all,
>
> Sorry, I forget to attach the kernel config file. It is in this email.
>
> Best,
> Duc Anh
>
> Vào Th 7, 21 thg 11, 2020 vào lúc 23:18 Đức Anh <daut...@gmail.com> đã
> viết:
>
>> 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
>>
>
_______________________________________________
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