I am trying to run a simple hello world program in FS mode (ARM ISA) following these steps:
$ wget http://www.m5sim.org/dist/current/arm/aarch-system-2014-10.tar.xz $ tar xf aarch-system-2014-10.tar.xz $ mkdir tmpdir $ sudo mount -o loop,offset=32256 disks/aarch64-ubuntu-trusty-headless.img tmpdir $ cd tmpdir $ cd etc/init $ sudo cp /home/iiitd/Desktop/tty-gem5.conf . $ cd.. $ cd sbin $ sudo cp /home/iiitd/gem5/util/m5/m5 . $ cd .. $ sudo mkdir benchmark $ sudo cp /home/iiitd/Desktop/mine/hello6 benchmark $ cd.. $ sudo umount tmpdir $ echo "export M5_PATH=/home/iiitd/full-system-2014" >> ~/.bashrc $ source ~/.bashrc $ cd gem5 $ build/ARM/gem5.opt configs/example/fs.py --disk-image=/home/iiitd/full-system-2014/disks/aarch64-ubuntu-trusty-headless.img --script=./home/iiitd/a.rcS In another terminal: $ cd gem5/util/term $ ./m5term localhost 3457 ==== m5 slave terminal: Terminal 0 ==== Freeing unused kernel memory: 292K (806aa000 - 806f3000) request_module: runaway loop modprobe binfmt-464c Starting init: /sbin/init exists but couldn't execute it (error -8) Starting init: /etc/init exists but couldn't execute it (error -13) request_module: runaway loop modprobe binfmt-464c Starting init: /bin/sh exists but couldn't execute it (error -8) Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance. CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.13.0-rc2 #1 [<80016954>] (unwind_backtrace+0x0/0xf4) from [<80012424>] (show_stack+0x10/0x14) [<80012424>] (show_stack+0x10/0x14) from [<804f9bd4>] (dump_stack+0x98/0xc4) [<804f9bd4>] (dump_stack+0x98/0xc4) from [<804f6db4>] (panic+0xa0/0x1e4) [<804f6db4>] (panic+0xa0/0x1e4) from [<804f4408>] (cpu_die+0x0/0x70) [<804f4408>] (cpu_die+0x0/0x70) from [<00000000>] ( (null)) I tried to use the recent images from " http://www.m5sim.org/dist/current/arm/aarch-system-20170426.tar.xz and followed the above steps. :~/gem5$ build/ARM/gem5.opt configs/example/fs.py --disk-image=/home/iiitd/full-system-2014/disks/aarch64-ubuntu-trusty-headless.img --script=./home/iiitd/a.rcS gem5 Simulator System. http://gem5.org ----------------------- ------------------------- Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/iiitd/gem5/src/python/m5/main.py", line 400, in main exec filecode in scope File "configs/example/fs.py", line 341, in <module> test_sys = build_test_system(np) File "configs/example/fs.py", line 103, in build_test_system ruby=options.ruby) File "/home/iiitd/gem5/configs/common/FSConfig.py", line 304, in makeArmSystem self.kernel = binary(default_kernels[machine_type]) File "/home/iiitd/gem5/configs/common/SysPaths.py", line 49, in binary return searchpath(binary.path, filename) File "/home/iiitd/gem5/configs/common/SysPaths.py", line 41, in searchpath raise IOError, "Can't find file '%s' on path." % filename IOError: Can't find file 'vmlinux.aarch32.ll_20131205.0-gem5' on path. In the newly downloaded binaries, there is no file called "vmlinux.aarch32.ll_20131205.0-gem5". So, I think I have to change the dtb and kernel names in FSConfig.py into appropriate one. But, I am not sure which dtb and kernel shall we use. I tried with the following with no success: In FSConfig.py: default_dtbs = { "RealViewEB": None, "RealViewPBX": None, "VExpress_EMM": "armv7_gem5_v1_16cpu.20170426.dtb", "VExpress_EMM64": "vexpress-v2p-ca15-tc1-gem5_4cpus.20170426.dtb", } default_kernels = { "RealViewEB": "vmlinux.arm.smp.fb.2.6.38.8", "RealViewPBX": "vmlinux.arm.smp.fb.2.6.38.8", "VExpress_EMM": "vmlinux.vexpress_gem5_v1.20170426", "VExpress_EMM64": "vmlinux.vexpress_gem5_v1_64.20170426", } Thank you. -- Mitali Sinha, PhD Scholar, IIIT Delhi
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users