Hi all;
i need to run parsec 3.0 in armv8 by gem5  in fs_big.little mode, , i
followed these steps:

- compilation of parsec3.0 (ex: blackscholes):

- I used the following commands for parsec 3.0 compilation by
"aarch64-linux-gnu-gcc cross compiler":
source ./env.sh
parsecmgmt -a build -c gcc-hooks -p blackscholes

- I found this compilation result:

[PARSEC] Packages to build: parsec.blackscholes

[PARSEC] [========== Building package parsec.blackscholes [1] ==========]
[PARSEC] [---------- Analyzing package parsec.blackscholes ----------]
[PARSEC] package parsec.blackscholes already exists, proceeding.
[PARSEC]
[PARSEC] BIBLIOGRAPHY
[PARSEC]
[PARSEC] [1] Bienia. Benchmarking Modern Multiprocessors. Ph.D. Thesis,
2011.
[PARSEC]
[PARSEC] Done.

- I found the binary (compilation result) of the application (ex:
blackscholes) in this path
(/media/ali/ali/parsec-3.0/pkgs/apps/blackscholes/inst/amd64-linux.gcc-hooks
/ bin / Black-Scholes).

- I copied parsec3.0 in the image "linaro-minimal-aarch64.img"

- I named the new image "expanded-linaro-minimal-aarch64.img"

- I used the following commands for copied parsec in the image
"linaro-minimal-aarch64.img":

$ cp linaro-minimal-aarch64.img expanded-linaro-minimal-aarch64.img
$ dd if = / dev / zero bs = 1G count = 20 >>
./expanded-linaro-minimal-aarch64.img # add 20G zeros
$ sudo parted expanded-linaro-minimal-aarch64.img resizepart 1 100% # grow
partition 1
$ mkdir disk_mnt
$ name = $ (sudo fdisk -l expanded-linaro-minimal-aarch64.img | tail -1 |
awk -E: '{print $ 1}' | awk -E "" '{print $ 1}')
$ start_sector = $ (sudo fdisk -l expanded-linaro-minimal-aarch64.img |
grep $ name | awk -E "" '{print $ 2}')
$ units = $ (sudo fdisk -l expanded-linaro-minimal-aarch64.img | grep ^
Units | awk -E "" '{print $ 9}')
$ sudo mount -o loop, offset = $ (($ start_sector * $ units))
expanded-linaro-minimal-aarch64.img disk_mnt
$ df # find / dev / loopX for disk_mnt
$ sudo resize2fs / dev / loopX # resize filesystem
$ df # check that the Available space for disk_mnt is increased
$ sudo cp -r /path_to_compiled_parsec-3.0_dir/disk_mnt / home / root # copy
the compiled parsec-3.0 to the image
$ ls disk_mnt / home / root # check the parsec-3.0 contents
$ sudo umount disk_mnt


- I modified the Benchmarks.py file in this path
(/media/ali/ali/gem5-master/configs/common/Benchmarks.py)

by the new image in this statement as follows:

elif buildEnv ['TARGET_ISA'] == 'arm':
            return env.get ('LINUX_IMAGE', disk
('expanded-linaro-minimal-aarch64.img'))

- I also modified the SysPaths.py file that is in this path
(/media/ali/ali/gem5-master/configs/common/SysPaths.py)

paths = ['/ dist / m5 / system', '/ media / ali / ali / gem5 /
aarch-system-20180409']

such as the file aarch-system-20180409 contains the binaries (kernel, dtb
... etc) and the disks (expanded-linaro-minimal-aarch64.img, .. etc).

- I generated the boot script for each application (ex :
blackscholes_simsmall_2.rcS) as follows:

#!/bin/bash

PARSEC_DIR="/home/root/parsec-3.0"
cd $PARSEC_DIR
pwd
source ./env.sh
parsecmgmt -a run -p blackscholes -c gcc-hooks -i simsmall -n 2
m5 exit

- I typed the following command in the first terminal:

sudo build / ARM / gem5.opt configs / example / arm / fs_bigLITTLE.py
--kernel = / media / ali / ali / gem5 / aarch-system-20180409 / binaries /
vmlinux.vexpress_gem5_v1_64 --dtb = / media / ali / ali / gem5 /
aarch-system-20180409 / binaries / armv8_gem5_v1_big_little_2_2.dtb
--bootscript = / home / ali / desktop / rcs_file / parsec_rcs /
blackscholes_simsmall_2.rcS --caches

- I typed the following command in the second terminal:
telnet localhost 3456

- I found this execution problem(the last lines):

* Booting Linux on physical CPU 0x0*
*[    0.000000] Linux version 4.14.0+ (root@c84b8fb6e283) (gcc version
5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Mon
Apr 9 06:54:00 UTC 2018*
*[    0.000000] Boot CPU: AArch64 Processor [410fc0f0]*
*[    0.000000] Machine model: V2P-AARCH64*
*[    0.000000] Memory limited to 2048MB*
*[    0.000000] cma: Reserved 16 MiB at 0x00000000ff000000*
*[    0.000000] On node 0 totalpages: 524288*
*[    0.000000]   DMA zone: 8192 pages used for memmap*
*[    0.000000]   DMA zone: 0 pages reserved*
*[    0.000000]   DMA zone: 524288 pages, LIFO batch:31*
*[    0.000000] random: fast init done*
*[    0.000000] percpu: Embedded 21 pages/cpu @ffffffc07ef9b000 s45464
r8192 d32360 u86016*
*[    0.000000] pcpu-alloc: s45464 r8192 d32360 u86016 alloc=21*4096*
*[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 *
*[    0.000000] Detected PIPT I-cache on CPU0*
*[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages:
516096*
*[    0.000000] Kernel command line: earlyprintk=pl011,0x1c090000
console=ttyAMA0 lpj=19988480 norandmaps loglevel=8 mem=2GB root=/dev/vda1
rw init=/sbin/init vmalloc=768MB*
*[    0.000000] log_buf_len individual max cpu contribution: 4096 bytes*
*[    0.000000] log_buf_len total cpu_extra contributions: 12288 bytes*
*[    0.000000] log_buf_len min size: 16384 bytes*
*[    0.000000] log_buf_len: 32768 bytes*
*[    0.000000] early log buf free: 15016(91%)*
*[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)*
*[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152
bytes)*
*[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576
bytes)*
*[    0.000000] Memory: 2035116K/2097152K available (6014K kernel code,
470K rwdata, 2052K rodata, 384K init, 261K bss, 45652K reserved, 16384K
cma-reserved)*
*[    0.000000] Virtual kernel memory layout:*
*[    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (
 128 MB)*
*[    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000   (
 250 GB)*
*[    0.000000]       .text : 0xffffff8008080000 - 0xffffff8008660000   (
6016 KB)*
*[    0.000000]     .rodata : 0xffffff8008660000 - 0xffffff8008870000   (
2112 KB)*
*[    0.000000]       .init : 0xffffff8008870000 - 0xffffff80088d0000   (
 384 KB)*
*[    0.000000]       .data : 0xffffff80088d0000 - 0xffffff8008945808   (
 471 KB)*
*[    0.000000]        .bss : 0xffffff8008945808 - 0xffffff8008986ed8   (
 262 KB)*
*[    0.000000]     fixed   : 0xffffffbefe7fd000 - 0xffffffbefec00000   (
4108 KB)*
*[    0.000000]     PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000   (
  16 MB)*
*[    0.000000]     vmemmap : 0xffffffbf00000000 - 0xffffffc000000000   (
   4 GB maximum)*
*[    0.000000]               0xffffffbf00000000 - 0xffffffbf02000000   (
  32 MB actual)*
*[    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc080000000   (
2048 MB)*
*[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1*
*[    0.000000] Preemptible hierarchical RCU implementation.*
*[    0.000000]  RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.*
*[    0.000000]  Tasks RCU enabled.*
*[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16,
nr_cpu_ids=4*
*[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0*
*[    0.000000] arch_timer: WARNING: Invalid trigger for IRQ4, assuming
level low*
*[    0.000000] arch_timer: WARNING: Please fix your firmware*
*[    0.000000] arch_timer: cp15 timer(s) running at 25.16MHz (virt).*
*[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff
max_cycles: 0x5cdd39714, max_idle_ns: 440795202620 ns*
*[    0.000001] sched_clock: 56 bits at 25MHz, resolution 39ns, wraps every
4398046511084ns*
*[    0.000060] Console: colour dummy device 80x25*
*[    0.000068] Calibrating delay loop (skipped) preset value.. 9994.24
BogoMIPS (lpj=19988480)*
*[    0.000073] pid_max: default: 32768 minimum: 301*
*[    0.000108] Mount-cache hash table entries: 4096 (order: 3, 32768
bytes)*
*[    0.000114] Mountpoint-cache hash table entries: 4096 (order: 3, 32768
bytes)*
*[    0.016016] ASID allocator initialised with 256 entries*
*[    0.024015] Hierarchical SRCU implementation.*
*[    0.040033] smp: Bringing up secondary CPUs ...*
*[    1.088643] CPU1: failed to come online*
*[    1.088647] CPU1: failed in unknown state : 0x0*
*[    2.145254] CPU2: failed to come online*
*[    2.145258] CPU2: failed in unknown state : 0x0*
*[    3.201865] CPU3: failed to come online*
*[    3.201868] CPU3: failed in unknown state : 0x0*
*[    3.201897] smp: Brought up 1 node, 1 CPU*
*[    3.201901] SMP: Total of 1 processors activated.*
*[    3.201905] CPU features: detected feature: 32-bit EL0 Support*
*[    3.201935] CPU: All CPU(s) started at EL1*
*[    3.202223] devtmpfs: initialized*
*[    3.202928] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 7645041785100000 ns*
*[    3.202935] futex hash table entries: 1024 (order: 5, 131072 bytes)*
*[    3.203842] NET: Registered protocol family 16*
*[    3.234309] cpuidle: using governor menu*
*[    3.234420] vdso: 2 pages (1 code @ ffffff8008666000, 1 data @
ffffff80088d4000)*
*[    3.234427] hw-breakpoint: found 2 breakpoint and 2 watchpoint
registers.*
*[    3.234767] DMA: preallocated 256 KiB pool for atomic allocations*
*[    3.234771] Serial: AMBA PL011 UART driver*
*[    3.234838] irq: type mismatch, failed to map hwirq-27 for
/interrupt-controller@2c001000!*
*[    3.235221] 1c090000.uart: ttyAMA0 at MMIO 0x1c090000 (irq = 8,
base_baud = 0) is a PL011 rev3*
*[    3.238561] console [ttyAMA0] enabled*
*[    3.254447] HugeTLB registered 2.00 MiB page size, pre-allocated 0
pages*
*[    3.262225] vgaarb: loaded*
*[    3.262330] SCSI subsystem initialized*
*[    3.266066] libata version 3.00 loaded.*
*[    3.266158] usbcore: registered new interface driver usbfs*
*[    3.266208] usbcore: registered new interface driver hub*
*[    3.266259] usbcore: registered new device driver usb*
*[    3.266321] pps_core: LinuxPPS API ver. 1 registered*
*[    3.266353] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo
Giometti <giome...@linux.it <giome...@linux.it>>*
*[    3.266411] PTP clock support registered*
*[    3.267011] clocksource: Switched to clocksource arch_sys_counter*
*[    3.271304] NET: Registered protocol family 2*
*[    3.271505] TCP established hash table entries: 16384 (order: 5, 131072
bytes)*
*[    3.271611] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)*
*[    3.271786] TCP: Hash tables configured (established 16384 bind 16384)*
*[    3.271862] UDP hash table entries: 1024 (order: 3, 32768 bytes)*
*[    3.271930] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)*
*[    3.272047] NET: Registered protocol family 1*
*[    3.275164] RPC: Registered named UNIX socket transport module.*
*[    3.275202] RPC: Registered udp transport module.*
*[    3.275231] RPC: Registered tcp transport module.*
*[    3.275260] RPC: Registered tcp NFSv4.1 backchannel transport module.*
*[    3.275300] PCI: CLS 0 bytes, default 128*
*[    3.275558] kvm [1]: HYP mode not available*
*[    3.276551] workingset: timestamp_bits=62 max_order=19 bucket_order=0*
*[    3.282244] fuse init (API version 7.26)*
*[    3.283475] io scheduler noop registered*
*[    3.283579] io scheduler cfq registered (default)*
*[    3.283610] io scheduler mq-deadline registered*
*[    3.283638] io scheduler kyber registered*
*[    3.283710] atomic64_test: passed*
*[    3.284098] OF: PCI: host bridge /pci ranges:*
*[    3.284128] OF: PCI:   No bus range found for /pci, using [bus 00-ff]*
*[    3.284172] OF: PCI:    IO 0x2f000000..0x2f00ffff -> 0x00000000*
*[    3.284211] OF: PCI:   MEM 0x40000000..0x7fffffff -> 0x40000000*
*[    3.284262] pci-host-generic 30000000.pci: ECAM at [mem
0x30000000-0x3fffffff] for [bus 00-ff]*
*[    3.284354] pci-host-generic 30000000.pci: PCI host bridge to bus
0000:00*
*[    3.284397] pci_bus 0000:00: root bus resource [bus 00-ff]*
*[    3.284432] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]*
*[    3.284470] pci_bus 0000:00: root bus resource [mem
0x40000000-0x7fffffff]*
*[    3.284512] pci_bus 0000:00: scanning bus*
*[    3.284544] pci 0000:00:01.0: [1af4:1000] type 00 class 0xff0000*
*[    3.284589] pci 0000:00:01.0: reg 0x10: [io  0x0000-0x001f]*
*[    3.284634] pci 0000:00:01.0: reg 0x30: [mem 0x00000000-0x000007ff
pref]*
*[    3.284736] pci_bus 0000:00: fixups for bus*
*[    3.284764] pci_bus 0000:00: bus scan returning with max=00*
*[    3.284802] pci 0000:00:01.0: BAR 6: assigned [mem
0x40000000-0x400007ff pref]*
*[    3.284847] pci 0000:00:01.0: BAR 0: assigned [io  0x1000-0x101f]*
*[    3.285032] virtio-pci 0000:00:01.0: assign IRQ: got 10*
*[    3.285069] virtio-pci 0000:00:01.0: enabling device (0000 -> 0001)*
*[    3.285109] virtio-pci 0000:00:01.0: virtio_pci: leaving for legacy
driver*
*[    3.285153] virtio-pci 0000:00:01.0: enabling bus mastering*
*[    3.287532] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled*
*[    3.292615]  vda: vda1*
*[    3.293832] libphy: Fixed MDIO Bus: probed*
*[    3.293861] e1000: Intel(R) PRO/1000 Network Driver - version
7.3.21-k8-NAPI*
*[    3.293903] e1000: Copyright (c) 1999-2006 Intel Corporation.*
*[    3.293979] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k*
*[    3.294015] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.*
*[    3.294091] igb: Intel(R) Gigabit Ethernet Network Driver - version
5.4.0-k*
*[    3.294134] igb: Copyright (c) 2007-2014 Intel Corporation.*
*[    3.294207] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver -
version 5.1.0-k*
*[    3.294253] ixgbe: Copyright (c) 1999-2016 Intel Corporation.*
*[    3.294450] ixgbevf: Intel(R) 10 Gigabit PCI Express Virtual Function
Network Driver - version 4.1.0-k*
*[    3.294506] ixgbevf: Copyright (c) 2009 - 2015 Intel Corporation.*
*[    3.295053] i40e: Intel(R) Ethernet Connection XL710 Network Driver -
version 2.1.14-k*
*[    3.295101] i40e: Copyright (c) 2013 - 2014 Intel Corporation.*
*[    3.299286] ixgb: Intel(R) PRO/10GbE Network Driver - version
1.0.135-k2-NAPI*
*[    3.299330] ixgb: Copyright (c) 1999-2008 Intel Corporation.*
*[    3.299399] i40evf: Intel(R) 40-10 Gigabit Virtual Function Network
Driver - version 3.0.0-k*
*[    3.299449] Copyright (c) 2013 - 2015 Intel Corporation.*
*[    3.303653] usbcore: registered new interface driver usb-storage*
*[    3.304125] mousedev: PS/2 mouse device common for all mice*
*[    3.304229] IR NEC protocol handler initialized*
*[    3.304258] IR RC5(x/sz) protocol handler initialized*
*[    3.304290] IR RC6 protocol handler initialized*
*[    3.304318] IR JVC protocol handler initialized*
*[    3.304347] IR Sony protocol handler initialized*
*[    3.304375] IR SANYO protocol handler initialized*
*[    3.304405] IR Sharp protocol handler initialized*
*[    3.304434] IR MCE Keyboard/mouse protocol handler initialized*
*[    3.304470] IR XMP protocol handler initialized*
*[    3.304537] gem5_energy_ctrl_mc: gem5_mc_init: No energy controller
found*
*[    3.304830] usbcore: registered new interface driver usbhid*
*[    3.304865] usbhid: USB HID core driver*
*[    3.304988] NET: Registered protocol family 17*
*[    3.406807] input: AT Raw Set 2 keyboard as
/devices/platform/1c060000.kmi/serio0/input/input0*
*[    3.818845] input: PS/2 Generic Mouse as
/devices/platform/1c070000.kmi/serio1/input/input2*
*[    3.819162] EXT4-fs (vda1): couldn't mount as ext3 due to feature
incompatibilities*
*[    3.824125] EXT4-fs (vda1): mounted filesystem without journal. Opts:
(null)*
*[    3.824178] VFS: Mounted root (ext4 filesystem) on device 254:1.*
*[    3.824871] devtmpfs: mounted*
*[    3.824975] Freeing unused kernel memory: 384K*
*Mount failed for selinuxfs on /sys/fs/selinux:  No such file or directory*
*[    3.858394] init: hwclock main process (665) terminated with status 1*
*[    4.223726] Buffer I/O error on dev vda1, logical block 524278, async
page read*
*[    4.223917] Buffer I/O error on dev vda1, logical block 524278, async
page read*
*/tmp/script: line 4: cd: /home/root/parsec-3.0: No such file or directory*
*/*
*/tmp/script: line 7: ./env.sh: No such file or directory*
*/tmp/script: line 8: parsecmgmt: command not found*

please if I forgot some step remind me for solve this problem.

Thanks;

Ali.
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to