Hello,
i encounter a problem booting linux in fs mode with edited
gem5/configs/example/arm/starter_fs.py file.
I changed nothing more than:
* default_dist_version = ''
* default_kernel = 'vmlinux.vexpress_gem5_v1'
* default_disk = 'linux-aarch32-ael.img'
* added "o3" to cpu_types with DerivO3CPU
* and deleted a dot in the dtb_file string
Now called fs32_mp.py
with exported M5_PATH=$HOME/gem5/full_system/aarch-system-20180409
my commandline is:
~/gem5/build/ARM/gem5.opt ~/gem5/configs/example/arm/fs32_mp.py
--num-cores 2 --cpu o3
The config finds all relevant files needed to boot up linux, but ends up
with a kernel panic and is unable to boot.
Global frequency set at 1000000000000 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address
range assigned (2048 Mbytes)
info: kernel located at:
~/gem5/full_system/aarch-system-20180409/binaries/vmlinux.vexpress_emm
Listening for system connection on port 5910
Listening for system connection on port 3466
0: system.remote_gdb: listening for remote gdb on port 7040
0: system.remote_gdb: listening for remote gdb on port 7041
info: Using bootloader at address 0x10
info: Using kernel entry physical address at 0x80008000
info: Loading DTB file:
~/gem5/full_system/aarch-system-20180409/binaries/armv7_gem5_v1_2cpu.dtb
at address 0x88000000
warn: Existing EnergyCtrl, but no enabled DVFSHandler found.
info: Entering event queue @ 0. Starting simulation...
warn: Not doing anything for miscreg ACTLR
warn: Not doing anything for write of miscreg ACTLR
warn: The clidr register always reports 0 caches.
warn: clidr LoUIS field of 0b001 to match current ARM implementations.
warn: The csselr register isn't implemented.
warn: CP14 unimplemented crn[0], opc1[6], crm[0], opc2[0]
warn: CP14 unimplemented crn[0], opc1[6], crm[0], opc2[0]
warn: instruction 'mcr icimvau' unimplemented
warn: instruction 'mcr bpiallis' unimplemented
warn: instruction 'mcr icialluis' unimplemented
1102541000: system.terminal: attach terminal 0
info: Dumping kernel dmesg buffer to system.dmesg...
warn: Kernel oops in guest
info: Dumping kernel dmesg buffer to system.dmesg...
warn: Kernel panic in simulated kernel
Maybe i have to change the kernel entry address, but don't know to which
address.
I also attached system.dmesg output.
Thanks for your help!
regards,
Andreas Konopik
[0.000000] Booting Linux on physical CPU 0x0
[0.000000] Initializing cgroup subsys cpuset
[0.000000] Linux version 3.14.0-gb2af788 (root@c84b8fb6e283) (gcc version 4.8.5
(Ubuntu/Linaro 4.8.5-4ubuntu1) ) #1 SMP PREEMPT Mon Apr 9 07:02:56 UTC 2018
[0.000000] Kernel was built at commit id 'b2af788'
[0.000000] CPU: ARMv7 Processor [410fc0f0] revision 0 (ARMv7), cr=10c53c7d
[0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction
cache
[0.000000] Truncating memory at 0x80000000 to fit in 32-bit physical address
space
[0.000000] Machine model: V2P-CA15
[0.000000] Truncating memory at 0x80000000 to fit in 32-bit physical address
space
[0.000000] Memory policy: Data cache writealloc
[0.000000] On node 0 totalpages: 524287
[0.000000] free_area_init_node: node 0, pgdat 80756b40, node_mem_map ee7f9000
[0.000000] Normal zone: 3568 pages used for memmap
[0.000000] Normal zone: 0 pages reserved
[0.000000] Normal zone: 456704 pages, LIFO batch:31
[0.000000] HighMem zone: 528 pages used for memmap
[0.000000] HighMem zone: 67583 pages, LIFO batch:15
[0.000000] Unable to handle kernel NULL pointer dereference at virtual address
00000000
[0.000000] pgd = 80004000
[0.000000] [00000000] *pgd=00000000
[0.000000] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[0.000000] Modules linked in:
[0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.14.0-gb2af788 #1
[0.000000] task: 80727068 ti: 8071c000 task.ti: 8071c000
[0.000000] PC is at kmem_cache_alloc_trace+0x30/0x1e0
[0.000000] LR is at __get_vm_area_node.isra.37+0x7c/0x138
[0.000000] pc : [<800ef1fc>] lr : [<800e3744>] psr: 000001d3
sp : 8071de68 ip : 00000000 fp : 80726d80
[0.000000] r10: 8071de68 r9 : 8071c000 r8 : 00000000
[0.000000] r7 : 00000020 r6 : 800e3744 r5 : 000080d0 r4 : 000000d0
[0.000000] r3 : 00200002 r2 : 00000020 r1 : 000080d0 r0 : 00000000
[0.000000] Flags: nzcv IRQs off FIQs off Mode SVC_32 ISA ARM Segment kernel
[0.000000] Control: 10c5387d Table: 8000406a DAC: 00000015
[0.000000]
PC: 0x800ef17c:
[0.000000] f17c e1a03007 e12fff3c e494c008 e35c0000 1afffff5 e1a0100d e3c13d7f
e3c3303f
[0.000000] f19c e5932004 e2422001 e5832004 e3520000 1affffc2 e5933000 e3130002
0affffbf
[0.000000] f1bc eb10c513 e1a00005 e28dd00c e8bd8ff0 e92d4ff0 e24dd014 e1a0600e
e1a08000
[0.000000] f1dc e1a0a00d e3ca9d7f e3c9903f e1a05001 e1a07002 e5993004 e2833001
e5893004
[0.000000] f1fc e5984000 ee1dbf90 e08b3004 e5933004 e58d300c e5993004 e2433001
e5893004
[0.000000] f21c e3530000 1a000002 e5993000 e3130002 1a00001d e79b4004 e3540000
0a000029
[0.000000] f23c e5983014 e794e003 e10fc000 f10c0080 e5980000 e3a02000 ee1d1f90
e1a03000
[0.000000] f25c e791b003 e154000b 0a000011 e121f00c e3520000 0affffde e5983014
f7def003
[0.000000]
LR: 0x800e36c4:
[0.000000] 36c4 eafffff4 e92d43f0 e24dd00c e1a07001 e1a0c00d e3cced7f e3cee03f
e3a0ccff
[0.000000] 36e4 e340c01f e59d402c e59e1004 e00cc001 e35c0000 1a00003f e3120001
e1a06002
[0.000000] 3704 e1a08003 1a00002e e2800eff e280000f e3c00eff e3d0900f 0a000034
e3031ef0
[0.000000] 3724 e304ef64 e348e079 e3401001 e0011004 e59e0018 e3811902 e3a02020
eb002ea1
[0.000000] 3744 e2505000 0a000029 e58d4000 e2890a01 e1a01007 e1a02008 e59d3028
ebfffd1a
[0.000000] 3764 e3700a01 e1a04000 8a00001e e3090868 e3480079 eb10fdda e585600c
e5943000
[0.000000] 3784 e3090868 e3480079 e5853004 e5942004 e5943000 e0633002 e5853008
e59d1030
[0.000000] 37a4 e585101c e5943008 e5845028 e3833004 e5843008 eb10fe75 e1a00005
e28dd00c
[0.000000]
SP: 0x8071dde8:
[0.000000] dde8 80732998 00000007 00001800 80799edc 00000003 800e5584 807abafc
a00001d3
[0.000000] de08 800ef1fc 000001d3 ffffffff 8071de54 00000000 80013158 00000000
000080d0
[0.000000] de28 00000020 00200002 000000d0 000080d0 800e3744 00000020 00000000
8071c000
[0.000000] de48 8071de68 80726d80 00000000 8071de68 800e3744 800ef1fc 000001d3
ffffffff
[0.000000] de68 ee7eff74 00000002 00000002 800001d3 ee7f0b0c 000000d0 00000000
00000001
[0.000000] de88 00002000 f0000000 00001000 00001000 80726d80 800e3744 00000200
00000000
[0.000000] dea8 00001000 00000000 00000000 0001c010 00000000 80728fd8 1c010000
800e399c
[0.000000] dec8 ff000000 000000d0 803fabcc 803fab90 00000000 8001cb14 807a9b48
00000000
[0.000000]
FP: 0x80726d00:
[0.000000] 6d00 00000000 00000000 00000000 0000dd86 804f5a4c 804f5984 804f5d74
804f5cb4
[0.000000] 6d20 00000000 00000000 00000000 00000000 000005dc 00000000 00000000
00000000
[0.000000] 6d40 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000] 6d60 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000] 6d80 00000001 80000000 00000000 00000000 00000000 00000000 80634000
00000000
[0.000000] 6da0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000] 6dc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000] 6de0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000]
R6: 0x800e36c4:
[0.000000] 36c4 eafffff4 e92d43f0 e24dd00c e1a07001 e1a0c00d e3cced7f e3cee03f
e3a0ccff
[0.000000] 36e4 e340c01f e59d402c e59e1004 e00cc001 e35c0000 1a00003f e3120001
e1a06002
[0.000000] 3704 e1a08003 1a00002e e2800eff e280000f e3c00eff e3d0900f 0a000034
e3031ef0
[0.000000] 3724 e304ef64 e348e079 e3401001 e0011004 e59e0018 e3811902 e3a02020
eb002ea1
[0.000000] 3744 e2505000 0a000029 e58d4000 e2890a01 e1a01007 e1a02008 e59d3028
ebfffd1a
[0.000000] 3764 e3700a01 e1a04000 8a00001e e3090868 e3480079 eb10fdda e585600c
e5943000
[0.000000] 3784 e3090868 e3480079 e5853004 e5942004 e5943000 e0633002 e5853008
e59d1030
[0.000000] 37a4 e585101c e5943008 e5845028 e3833004 e5843008 eb10fe75 e1a00005
e28dd00c
[0.000000]
R9: 0x8071bf80:
[0.000000] bf80 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000] bfa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000] bfc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000] bfe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000] c000 00000000 00200003 00000000 80727068 8072b380 00000000 00000015
00000000
[0.000000] c020 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000] c040 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000] c060 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
[0.000000]
R10: 0x8071dde8:
[0.000000] dde8 80732998 00000007 00001800 80799edc 00000003 800e5584 807abafc
a00001d3
[0.000000] de08 800ef1fc 000001d3 ffffffff 8071de54 00000000 80013158 00000000
000080d0
[0.000000] de28 00000020 00200002 000000d0 000080d0 800e3744 00000020 00000000
8071c000
[0.000000] de48 8071de68 80726d80 00000000 8071de68 800e3744 800ef1fc 000001d3
ffffffff
[0.000000] de68 ee7eff74 00000002 00000002 800001d3 ee7f0b0c 000000d0 00000000
00000001
[0.000000] de88 00002000 f0000000 00001000 00001000 80726d80 800e3744 00000200
00000000
[0.000000] dea8 00001000 00000000 00000000 0001c010 00000000 80728fd8 1c010000
800e399c
[0.000000] dec8 ff000000 000000d0 803fabcc 803fab90 00000000 8001cb14 807a9b48
00000000
[0.000000] Process swapper (pid: 0, stack limit = 0x8071c240)
[0.000000] Stack: (0x8071de68 to 0x8071e000)
[0.000000] de60: ee7eff74 00000002 00000002 800001d3 ee7f0b0c
000000d0
[0.000000] de80: 00000000 00000001 00002000 f0000000 00001000 00001000 80726d80
800e3744
[0.000000] dea0: 00000200 00000000 00001000 00000000 00000000 0001c010 00000000
80728fd8
[0.000000] dec0: 1c010000 800e399c ff000000 000000d0 803fabcc 803fab90 00000000
8001cb14
[0.000000] dee0: 807a9b48 00000000 ee7f0b0c 00000002 00000000 8075b900 807244f0
8001cbdc
[0.000000] df00: 803fabcc ee7f0b0c 00000002 803fabcc 600001d3 1c010000 1c010fff
ee7f0b48
[0.000000] df20: 00000200 00000000 00000000 00000000 00000000 806fb0e0 8070a1e4
807243c8
[0.000000] df40: 8075bb40 806d98b4 8061928c 80732980 8070a1e4 807243c8 8075bb40
00000002
[0.000000] df60: 00000000 8075b900 807244f0 806d5150 ffffffff 10c53c7d 807280a8
ef7fce40
[0.000000] df80: 00000000 00000000 00000000 00000001 00000000 00000000 8061783c
8075b780
[0.000000] dfa0: 00000001 ffffffff 807243c0 00000000 410fc0f0 00000000 00000000
806d184c
[0.000000] dfc0: 00000000 00000000 00000000 00000000 00000000 8070dd08 00000000
10c53c7d
[0.000000] dfe0: 8072440c 8070dd04 807281c8 8000406a 410fc0f0 80008074 00000000
00000000
[0.000000] [<800ef1fc>] (kmem_cache_alloc_trace) from [<800e3744>]
(__get_vm_area_node.isra.37+0x7c/0x138)
[0.000000] [<800e3744>] (__get_vm_area_node.isra.37) from [<800e399c>]
(get_vm_area_caller+0x40/0x48)
[0.000000] [<800e399c>] (get_vm_area_caller) from [<8001cb14>]
(__arm_ioremap_pfn_caller+0x118/0x198)
[0.000000] [<8001cb14>] (__arm_ioremap_pfn_caller) from [<8001cbdc>]
(__arm_ioremap_caller+0x48/0x58)
[0.000000] [<8001cbdc>] (__arm_ioremap_caller) from [<803fabcc>]
(of_iomap+0x2c/0x34)
[0.000000] [<803fabcc>] (of_iomap) from [<806fb0e0>]
(vexpress_sysreg_of_early_init+0x3c/0x4c)
[0.000000] [<806fb0e0>] (vexpress_sysreg_of_early_init) from [<806d98b4>]
(v2m_dt_init_early+0xc/0x168)
[0.000000] [<806d98b4>] (v2m_dt_init_early) from [<806d5150>]
(setup_arch+0x888/0x8c0)
[0.000000] [<806d5150>] (setup_arch) from [<806d184c>] (start_kernel+0xa4/0x38c)
[0.000000] [<806d184c>] (start_kernel) from [<80008074>] (0x80008074)
[0.000000] Code: e1a07002 e5993004 e2833001 e5893004 (e5984000)
[0.000000] ---[ end trace 3406ff24bd97382e ]---
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users