Re: [gem5-users] Fw: Asim benchmarks on gem5

2020-02-25 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I have run the following command but the rcS script is not working. Any help 
would be appreciated.


The output on system.terminal

ALSA device list:
  No soundcards found.
input: AT Raw Set 2 keyboard as 
/devices/smb.14/motherboard.15/iofpga.17/1c06.kmi/serio0/input/input0
input: touchkitPS/2 eGalax Touchscreen as 
/devices/smb.14/motherboard.15/iofpga.17/1c07.kmi/serio1/input/input2
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:1.
Freeing unused kernel memory: 292K (806d1000 - 8071a000)
init: cannot open '/initlogo.rle'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
init: using deprecated syntax for specifying property 'persist.sys.usb.config', 
use ${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
random: servicemanager urandom read with 19 bits of entropy available
/system/bin/sh: No controlling tty: open /dev/tty: No such device or address
/system/bin/sh: warning: won't have full job control
root@android:/ # init: untracked pid 979 exited




I used this command:

./build/ARM/gem5.opt configs/example/fs.py --cpu-type=AtomicSimpleCPU 
--mem-type=SimpleMemory --machine-type=VExpress_EMM --os-type=android-ics 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_1cpus.20170616.dtb
 --mem-size=1800MB -n 1 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/test.rcS

The test.rcS
#!/bin/sh


echo "Starting sfw test..."

/sbin/m5 resetstats

echo "HI"

/sbin/m5 dumpstats

echo "finished sfw test, exiting..."

/sbin/m5 exit
/sbin/m5 exit

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Tuesday, February 25, 2020 5:32:56 AM
To: Ciro Santilli ; gem5 users mailing list 
; gem5-users 
Subject: Re: [gem5-users] Fw: Asim benchmarks on gem5

Hi All,

I have run the following command but the rcS script is not working. Any help 
would be appreciated.


The output on system.terminal

ALSA device list:
  No soundcards found.
input: AT Raw Set 2 keyboard as 
/devices/smb.14/motherboard.15/iofpga.17/1c06.kmi/serio0/input/input0
input: touchkitPS/2 eGalax Touchscreen as 
/devices/smb.14/motherboard.15/iofpga.17/1c07.kmi/serio1/input/input2
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:1.
Freeing unused kernel memory: 292K (806d1000 - 8071a000)
init: cannot open '/initlogo.rle'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
init: using deprecated syntax for specifying property 'persist.sys.usb.config', 
use ${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
random: servicemanager urandom read with 19 bits of entropy available
/system/bin/sh: No controlling tty: open /dev/tty: No such device or address
/system/bin/sh: warning: won't have full job control
root@android:/ # init: untracked pid 979 exited




I used this command:

./build/ARM/gem5.opt configs/example/fs.py --cpu-type=AtomicSimpleCPU 
--mem-type=SimpleMemory --machine-type=VExpress_EMM --os-type=android-ics 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_1cpus.20170616.dtb
 --mem-size=1800MB -n 1 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/test.rcS

The test.rcS
#!/bin/sh


echo "Starting sfw test..."

/sbin/m5 resetstats

echo "HI"

/sbin/m5 dumpstats

echo "finished sfw test, exiting..."

/sbin/m5 exit
/sbin/m5 exit



From: Ciro Santilli 
Sent: Friday, February 21, 2020 2:10 PM
To: gem5 users mailing list ; ABD ALRHMAN ABO ALKHEEL 
; gem5-users 
Subject: Re: [gem5-users] Fw: Asim benchmarks on gem5

I'm afraid I don't have a super automated setup that just works for
Android, and haven't done this myself specifically, but here are some
thoughts:

- those instructions are like large part of the wiki old and may have
stopped working --machine-type=VExpress_EMM is not recommended anymore,
the default and recommended and often tested platform is VExpress_GEM5_V1
- try one of the newer kernels
- is it really representative to run experiments on 32-bit arm now that
all Android phones are

Re: [gem5-users] Fw: Asim benchmarks on gem5

2020-02-24 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I have run the following command but the rcS script is not working. Any help 
would be appreciated.


The output on system.terminal

ALSA device list:
  No soundcards found.
input: AT Raw Set 2 keyboard as 
/devices/smb.14/motherboard.15/iofpga.17/1c06.kmi/serio0/input/input0
input: touchkitPS/2 eGalax Touchscreen as 
/devices/smb.14/motherboard.15/iofpga.17/1c07.kmi/serio1/input/input2
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:1.
Freeing unused kernel memory: 292K (806d1000 - 8071a000)
init: cannot open '/initlogo.rle'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
init: using deprecated syntax for specifying property 'persist.sys.usb.config', 
use ${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
random: servicemanager urandom read with 19 bits of entropy available
/system/bin/sh: No controlling tty: open /dev/tty: No such device or address
/system/bin/sh: warning: won't have full job control
root@android:/ # init: untracked pid 979 exited




I used this command:

./build/ARM/gem5.opt configs/example/fs.py --cpu-type=AtomicSimpleCPU 
--mem-type=SimpleMemory --machine-type=VExpress_EMM --os-type=android-ics 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_1cpus.20170616.dtb
 --mem-size=1800MB -n 1 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/test.rcS

The test.rcS
#!/bin/sh


echo "Starting sfw test..."

/sbin/m5 resetstats

echo "HI"

/sbin/m5 dumpstats

echo "finished sfw test, exiting..."

/sbin/m5 exit
/sbin/m5 exit



From: Ciro Santilli 
Sent: Friday, February 21, 2020 2:10 PM
To: gem5 users mailing list ; ABD ALRHMAN ABO ALKHEEL 
; gem5-users 
Subject: Re: [gem5-users] Fw: Asim benchmarks on gem5

I'm afraid I don't have a super automated setup that just works for
Android, and haven't done this myself specifically, but here are some
thoughts:

- those instructions are like large part of the wiki old and may have
stopped working --machine-type=VExpress_EMM is not recommended anymore,
the default and recommended and often tested platform is VExpress_GEM5_V1
- try one of the newer kernels
- is it really representative to run experiments on 32-bit arm now that
all Android phones are 64-bit?

On 2/21/20 12:16 PM, ABD ALRHMAN ABO ALKHEEL wrote:
> 
> *From:* gem5-users  on behalf of ABD
> ALRHMAN ABO ALKHEEL 
> *Sent:* Friday, February 21, 2020 5:04:09 AM
> *To:* gem5 users mailing list ; gem5-users
> 
> *Subject:* [gem5-users] Asim benchmarks on gem5
> I have followed the instructions provided in the gem5.org website to run
> the Moby benchmarks on gem5 as follows:
>
> 1. Downloaded the Asimbench from
> https://bitbucket.org/yongbing_huang/asimbench/downloads/ which contains
> the following folders and files:
> 1. asimbench_android_arm_kernel :
> vmlinux.smp.ics.arm.asimbench.2.6.35
> 2. asimbench_boot_scripts : contains the rcs scripts for
> different benchmarks
> 3. asimbench_disk_image :
> ARMv7a-ICS-Android.SMP.Asimbench-v3.img; sdcard-1g-mxplayer.img
>
> 2. I have used the "armv7_gem5_v1_1cpu.dtb" and "boot_emm.arm" binaries
> downloaded from http://www.gem5.org/dist/current/arm/
> aarch-system-20180409.tar.xz.
> <http://www.gem5.org/dist/current/arm/aarch-system-20180409.tar.xz>
>
> 3. Made the following changes in the config/common/FSConfig.py :
>
> def makeArmSystem(..)
> .
> self.cf0 = CowIdeDisk(driveID='master')
> self.cf2 = CowIdeDisk(driveID='master')
> self.cf0.childImage(mdesc.disk())
> self.cf2.childImage(disk("sdcard-1g-mxplayer.img"))
> # Old platforms have a built-in IDE or CF controller. Default to
> # the IDE controller if both exist. New platforms expect the
> # storage controller to be added from the config script.
> if hasattr(self.realview, "ide"):
> #self.realview.ide.disks = [self.cf0]
> self.realview.ide.disks = [self.cf0, self.cf2]
> elif hasattr(self.realview, "cf_ctrl"):
> #self.realview.cf_ctrl.disks = [self.cf0]
> self.realview.cf_ctrl.disks = [self.cf0, self.cf2]
> else:
> self.pci_ide = IdeController(disks=[self.cf0])
> pci_devices.append(self.pci_ide)
> ...
>
> 4. Used the following command:
>
> build/ARM/gem5.o

Re: [gem5-users] Fw: Asim benchmarks on gem5

2020-02-21 Thread Ciro Santilli

How to extract files from images can be found easily by Googling.

But I would instead recommend that you actually build/install the app 
yourself to know what you are actually getting. And in that case, yes, 
QEMU is possibly your best option in that case, as it can alter the disk 
image.


On 2/21/20 3:59 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Thanks Ciro for your email. I can build new image and new kernel but the 
problem is how to get the benchmarks from the old image? Is there anyway 
to get the image working on qemu to take copy of the benchmarks ? Best 
Regards


*From:* Ciro Santilli 
*Sent:* Friday, February 21, 2020 2:10:48 PM
*To:* gem5 users mailing list ; ABD ALRHMAN ABO 
ALKHEEL ; gem5-users 

*Subject:* Re: [gem5-users] Fw: Asim benchmarks on gem5
I'm afraid I don't have a super automated setup that just works for
Android, and haven't done this myself specifically, but here are some
thoughts:

- those instructions are like large part of the wiki old and may have
stopped working --machine-type=VExpress_EMM is not recommended anymore,
the default and recommended and often tested platform is VExpress_GEM5_V1
- try one of the newer kernels
- is it really representative to run experiments on 32-bit arm now that
all Android phones are 64-bit?

On 2/21/20 12:16 PM, ABD ALRHMAN ABO ALKHEEL wrote:


*From:* gem5-users  on behalf of ABD
ALRHMAN ABO ALKHEEL 
*Sent:* Friday, February 21, 2020 5:04:09 AM
*To:* gem5 users mailing list ; gem5-users

*Subject:* [gem5-users] Asim benchmarks on gem5
I have followed the instructions provided in the gem5.org website to run
the Moby benchmarks on gem5 as follows:

1. Downloaded the Asimbench from
https://bitbucket.org/yongbing_huang/asimbench/downloads/ which contains
the following folders and files:
1. asimbench_android_arm_kernel :
vmlinux.smp.ics.arm.asimbench.2.6.35
2. asimbench_boot_scripts : contains the rcs scripts for
different benchmarks
3. asimbench_disk_image :
ARMv7a-ICS-Android.SMP.Asimbench-v3.img; sdcard-1g-mxplayer.img

2. I have used the "armv7_gem5_v1_1cpu.dtb" and "boot_emm.arm" binaries
downloaded from http://www.gem5.org/dist/current/arm/
aarch-system-20180409.tar.xz.
<http://www.gem5.org/dist/current/arm/aarch-system-20180409.tar.xz>

3. Made the following changes in the config/common/FSConfig.py :

def makeArmSystem(..)
.
self.cf0 = CowIdeDisk(driveID='master')
self.cf2 = CowIdeDisk(driveID='master')
self.cf0.childImage(mdesc.disk())
self.cf2.childImage(disk("sdcard-1g-mxplayer.img"))
# Old platforms have a built-in IDE or CF controller. Default to
# the IDE controller if both exist. New platforms expect the
# storage controller to be added from the config script.
if hasattr(self.realview, "ide"):
#self.realview.ide.disks = [self.cf0]
self.realview.ide.disks = [self.cf0, self.cf2]
elif hasattr(self.realview, "cf_ctrl"):
#self.realview.cf_ctrl.disks = [self.cf0]
self.realview.cf_ctrl.disks = [self.cf0, self.cf2]
else:
self.pci_ide = IdeController(disks=[self.cf0])
pci_devices.append(self.pci_ide)
...

4. Used the following command:

build/ARM/gem5.opt configs/example/fs.py --machine-type=VExpress_EMM
--os-type=android-ics --cpu-type=MinorCPU --caches
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
--mem-size=256MB


5. The above commands throw the following error:

gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Feb 18 2020 21:57:51
gem5 started Feb 21 2020 00:02:51
gem5 executing on proton, pid 27191
command line: build/ARM/gem5.opt configs/example/fs.py
--machine-type=VExpress_EMM --os-type=android-ics --cpu-type=MinorCPU
--caches
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
--mem-size=256MB

warn: Can only correctly generate a dtb for VExpress_GEM5_V1 platforms,
unless custom hardware models have been equipped with generation
functionality.
Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address
range assigned (256 Mbytes)
info: kernel located at:
/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
warn: Bootloader entry point 0x10 overriding reset address 0
system.vncserver: Listening for connections on port 5900
system.terminal: Listening for 

Re: [gem5-users] Fw: Asim benchmarks on gem5

2020-02-21 Thread ABD ALRHMAN ABO ALKHEEL
Thanks Ciro for your email. I can build new image and new kernel but the 
problem is how to get the benchmarks from the old image? Is there anyway to get 
the image working on qemu to take copy of the benchmarks ? Best Regards

From: Ciro Santilli 
Sent: Friday, February 21, 2020 2:10:48 PM
To: gem5 users mailing list ; ABD ALRHMAN ABO ALKHEEL 
; gem5-users 
Subject: Re: [gem5-users] Fw: Asim benchmarks on gem5

I'm afraid I don't have a super automated setup that just works for
Android, and haven't done this myself specifically, but here are some
thoughts:

- those instructions are like large part of the wiki old and may have
stopped working --machine-type=VExpress_EMM is not recommended anymore,
the default and recommended and often tested platform is VExpress_GEM5_V1
- try one of the newer kernels
- is it really representative to run experiments on 32-bit arm now that
all Android phones are 64-bit?

On 2/21/20 12:16 PM, ABD ALRHMAN ABO ALKHEEL wrote:
> 
> *From:* gem5-users  on behalf of ABD
> ALRHMAN ABO ALKHEEL 
> *Sent:* Friday, February 21, 2020 5:04:09 AM
> *To:* gem5 users mailing list ; gem5-users
> 
> *Subject:* [gem5-users] Asim benchmarks on gem5
> I have followed the instructions provided in the gem5.org website to run
> the Moby benchmarks on gem5 as follows:
>
> 1. Downloaded the Asimbench from
> https://bitbucket.org/yongbing_huang/asimbench/downloads/ which contains
> the following folders and files:
> 1. asimbench_android_arm_kernel :
> vmlinux.smp.ics.arm.asimbench.2.6.35
> 2. asimbench_boot_scripts : contains the rcs scripts for
> different benchmarks
> 3. asimbench_disk_image :
> ARMv7a-ICS-Android.SMP.Asimbench-v3.img; sdcard-1g-mxplayer.img
>
> 2. I have used the "armv7_gem5_v1_1cpu.dtb" and "boot_emm.arm" binaries
> downloaded from http://www.gem5.org/dist/current/arm/
> aarch-system-20180409.tar.xz.
> <http://www.gem5.org/dist/current/arm/aarch-system-20180409.tar.xz>
>
> 3. Made the following changes in the config/common/FSConfig.py :
>
> def makeArmSystem(..)
> .
> self.cf0 = CowIdeDisk(driveID='master')
> self.cf2 = CowIdeDisk(driveID='master')
> self.cf0.childImage(mdesc.disk())
> self.cf2.childImage(disk("sdcard-1g-mxplayer.img"))
> # Old platforms have a built-in IDE or CF controller. Default to
> # the IDE controller if both exist. New platforms expect the
> # storage controller to be added from the config script.
> if hasattr(self.realview, "ide"):
> #self.realview.ide.disks = [self.cf0]
> self.realview.ide.disks = [self.cf0, self.cf2]
> elif hasattr(self.realview, "cf_ctrl"):
> #self.realview.cf_ctrl.disks = [self.cf0]
> self.realview.cf_ctrl.disks = [self.cf0, self.cf2]
> else:
> self.pci_ide = IdeController(disks=[self.cf0])
> pci_devices.append(self.pci_ide)
> ...
>
> 4. Used the following command:
>
> build/ARM/gem5.opt configs/example/fs.py --machine-type=VExpress_EMM
> --os-type=android-ics --cpu-type=MinorCPU --caches
> --kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
> --disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
> --script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
> --mem-size=256MB
>
>
> 5. The above commands throw the following error:
>
> gem5 Simulator System.  http://gem5.org
> gem5 is copyrighted software; use the --copyright option for details.
>
> gem5 compiled Feb 18 2020 21:57:51
> gem5 started Feb 21 2020 00:02:51
> gem5 executing on proton, pid 27191
> command line: build/ARM/gem5.opt configs/example/fs.py
> --machine-type=VExpress_EMM --os-type=android-ics --cpu-type=MinorCPU
> --caches
> --kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
> --disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
> --script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
> --mem-size=256MB
>
> warn: Can only correctly generate a dtb for VExpress_GEM5_V1 platforms,
> unless custom hardware models have been equipped with generation
> functionality.
> Global frequency set at 1 ticks per second
> warn: DRAM device capacity (8192 Mbytes) does not match the address
> range assigned (256 Mbytes)
> info: kernel located at:
> /home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
> warn: Bootloader entry point 0x10 overriding reset address 0
> system.vncserver: Listening for connections on port 5900
> system.term

Re: [gem5-users] Fw: Asim benchmarks on gem5

2020-02-21 Thread Ciro Santilli
I'm afraid I don't have a super automated setup that just works for 
Android, and haven't done this myself specifically, but here are some 
thoughts:


- those instructions are like large part of the wiki old and may have 
stopped working --machine-type=VExpress_EMM is not recommended anymore, 
the default and recommended and often tested platform is VExpress_GEM5_V1

- try one of the newer kernels
- is it really representative to run experiments on 32-bit arm now that 
all Android phones are 64-bit?


On 2/21/20 12:16 PM, ABD ALRHMAN ABO ALKHEEL wrote:


*From:* gem5-users  on behalf of ABD 
ALRHMAN ABO ALKHEEL 

*Sent:* Friday, February 21, 2020 5:04:09 AM
*To:* gem5 users mailing list ; gem5-users 


*Subject:* [gem5-users] Asim benchmarks on gem5
I have followed the instructions provided in the gem5.org website to run
the Moby benchmarks on gem5 as follows:

1. Downloaded the Asimbench from
https://bitbucket.org/yongbing_huang/asimbench/downloads/ which contains
the following folders and files:
1. asimbench_android_arm_kernel :
vmlinux.smp.ics.arm.asimbench.2.6.35
2. asimbench_boot_scripts : contains the rcs scripts for
different benchmarks
3. asimbench_disk_image :
ARMv7a-ICS-Android.SMP.Asimbench-v3.img; sdcard-1g-mxplayer.img

2. I have used the "armv7_gem5_v1_1cpu.dtb" and "boot_emm.arm" binaries
downloaded from http://www.gem5.org/dist/current/arm/
aarch-system-20180409.tar.xz.


3. Made the following changes in the config/common/FSConfig.py :

def makeArmSystem(..)
.
self.cf0 = CowIdeDisk(driveID='master')
self.cf2 = CowIdeDisk(driveID='master')
self.cf0.childImage(mdesc.disk())
self.cf2.childImage(disk("sdcard-1g-mxplayer.img"))
# Old platforms have a built-in IDE or CF controller. Default to
# the IDE controller if both exist. New platforms expect the
# storage controller to be added from the config script.
if hasattr(self.realview, "ide"):
#self.realview.ide.disks = [self.cf0]
self.realview.ide.disks = [self.cf0, self.cf2]
elif hasattr(self.realview, "cf_ctrl"):
#self.realview.cf_ctrl.disks = [self.cf0]
self.realview.cf_ctrl.disks = [self.cf0, self.cf2]
else:
self.pci_ide = IdeController(disks=[self.cf0])
pci_devices.append(self.pci_ide)
...

4. Used the following command:

build/ARM/gem5.opt configs/example/fs.py --machine-type=VExpress_EMM 
--os-type=android-ics --cpu-type=MinorCPU --caches 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS 
--mem-size=256MB



5. The above commands throw the following error:

gem5 Simulator System. �http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Feb 18 2020 21:57:51
gem5 started Feb 21 2020 00:02:51
gem5 executing on proton, pid 27191
command line: build/ARM/gem5.opt configs/example/fs.py 
--machine-type=VExpress_EMM --os-type=android-ics --cpu-type=MinorCPU 
--caches 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS 
--mem-size=256MB


warn: Can only correctly generate a dtb for VExpress_GEM5_V1 platforms, 
unless custom hardware models have been equipped with generation 
functionality.

Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address 
range assigned (256 Mbytes)
info: kernel located at: 
/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35

warn: Bootloader entry point 0x10 overriding reset address 0
system.vncserver: Listening for connections on port 5900
system.terminal: Listening for connections on port 3457
0: system.remote_gdb: listening for remote gdb on port 7004
fatal: Kernel is mapped to invalid location (not memory). kernelStart 
0x(0) - kernelEnd 0x(c04a21ec) 0x8000:0x1404a21ec

Memory Usage: 622056 KBytes

Any help would be appreciated.

Best


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


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

[gem5-users] Fw: Asim benchmarks on gem5

2020-02-21 Thread ABD ALRHMAN ABO ALKHEEL

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Friday, February 21, 2020 5:04:09 AM
To: gem5 users mailing list ; gem5-users 

Subject: [gem5-users] Asim benchmarks on gem5

I have followed the instructions provided in the gem5.org website to run
the Moby benchmarks on gem5 as follows:

1. Downloaded the Asimbench from
https://bitbucket.org/yongbing_huang/asimbench/downloads/ which contains
the following folders and files:
1. asimbench_android_arm_kernel :
vmlinux.smp.ics.arm.asimbench.2.6.35
2. asimbench_boot_scripts : contains the rcs scripts for
different benchmarks
3. asimbench_disk_image :
ARMv7a-ICS-Android.SMP.Asimbench-v3.img; sdcard-1g-mxplayer.img

2. I have used the "armv7_gem5_v1_1cpu.dtb" and "boot_emm.arm" binaries
downloaded from http://www.gem5.org/dist/current/arm/
aarch-system-20180409.tar.xz.


3. Made the following changes in the config/common/FSConfig.py :

def makeArmSystem(..)
.
self.cf0 = CowIdeDisk(driveID='master')
self.cf2 = CowIdeDisk(driveID='master')
self.cf0.childImage(mdesc.disk())
self.cf2.childImage(disk("sdcard-1g-mxplayer.img"))
# Old platforms have a built-in IDE or CF controller. Default to
# the IDE controller if both exist. New platforms expect the
# storage controller to be added from the config script.
if hasattr(self.realview, "ide"):
#self.realview.ide.disks = [self.cf0]
self.realview.ide.disks = [self.cf0, self.cf2]
elif hasattr(self.realview, "cf_ctrl"):
#self.realview.cf_ctrl.disks = [self.cf0]
self.realview.cf_ctrl.disks = [self.cf0, self.cf2]
else:
self.pci_ide = IdeController(disks=[self.cf0])
pci_devices.append(self.pci_ide)
...

4. Used the following command:

build/ARM/gem5.opt configs/example/fs.py --machine-type=VExpress_EMM 
--os-type=android-ics --cpu-type=MinorCPU --caches 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
 --mem-size=256MB


5. The above commands throw the following error:

gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Feb 18 2020 21:57:51
gem5 started Feb 21 2020 00:02:51
gem5 executing on proton, pid 27191
command line: build/ARM/gem5.opt configs/example/fs.py 
--machine-type=VExpress_EMM --os-type=android-ics --cpu-type=MinorCPU --caches 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
 --mem-size=256MB

warn: Can only correctly generate a dtb for VExpress_GEM5_V1 platforms, unless 
custom hardware models have been equipped with generation functionality.
Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (256 Mbytes)
info: kernel located at: 
/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
warn: Bootloader entry point 0x10 overriding reset address 0
system.vncserver: Listening for connections on port 5900
system.terminal: Listening for connections on port 3457
0: system.remote_gdb: listening for remote gdb on port 7004
fatal: Kernel is mapped to invalid location (not memory). kernelStart 0x(0) - 
kernelEnd 0x(c04a21ec) 0x8000:0x1404a21ec
Memory Usage: 622056 KBytes

Any help would be appreciated.

Best

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