Re: [gem5-users] Error in running Moby(Asimbench) benchmark in gem5

2018-06-05 Thread 조해윤
I found what is the problem.

The cause is not a dtb file. It is --mem-size.
You need to specify the unit of the capacity (MB or GB). As I think, it is
due to the lack of memory size.

2018-06-05 17:43 GMT+09:00 조해윤 :

> Dear Mitali Sinha.
>
> Sorry for late reply.
> Try it without specified dtb file in command line.
>
> Actually, I run moby by myself again before writing the reply.
>
> ./build/ARM/gem5.opt configs/example/fs.py --machine-type=RealViewPBX
> --os-type=android-ics --kernel=/dist/m5/system/
> binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
> --disk-image=/dist/m5/system/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
> --mem-size=256MB --script=/dist/m5/system/boot/adobe.rcS --frame-capture
>
> Although it is still booted up, there is no problem.
>
> Best Regards,
> Haeyoon Cho.
>
> 2018-06-03 22:13 GMT+09:00 Mitali Sinha :
>
>> @Haeyoon Cho sorry for late reply.
>>
>> I tried making the changes as follows:
>> gem5/configs/common/FSConfig.py:
>>  default_dtbs = {
>> "RealViewEB": None,
>> "RealViewPBX": None,
>> "VExpress_EMM": "armv7_gem5_v1_%dcpu.20170616.dtb" % num_cpus,
>> "VExpress_EMM64": "vexpress.aarch64.20140821.dtb",
>> }
>>
>> default_kernels = {
>> "RealViewEB": "vmlinux.arm.smp.fb.2.6.38.8",
>> "RealViewPBX": "vmlinux.smp.ics.arm.asimbench.2.6.35",
>> "VExpress_EMM64": "vmlinux.aarch64.20140821",
>> }
>>
>> Then, I ran the following command:
>> build/ARM/gem5.opt configs/example/fs.py --os-type=android-ics
>> --machine-type=RealView_PBX --mem-size=512 --cpu-type=MinorCPU --caches
>> --disk-image=/home/sujay/gem5/full_system_asimbench/disks/AR
>> Mv7a-ICS-Android.SMP.Asimbench-v3.img --kernel=/home/sujay/gem5/full
>> _system_asimbench/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
>> --dtb-filename=/home/sujay/gem5/full_system_asimbench/binaries/armv7_gem5_v1_1cpu.dtb
>> --script=/home/sujay/gem5/full_system_asimbench/asimbench_
>> boot_scripts/adobe.rcS
>>
>> It gives the following error:
>> --- BEGIN LIBC BACKTRACE ---
>> build/ARM/gem5.opt(_Z15print_backtracev+0x28)[0xd99e78]
>> build/ARM/gem5.opt(_Z12abortHandleri+0x46)[0xdac9f6]
>> /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f5eb6c93390]
>> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f5eb569b428]
>> /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f5eb569d02a]
>> build/ARM/gem5.opt[0x939dcf]
>> build/ARM/gem5.opt[0x123ff36]
>> build/ARM/gem5.opt(_ZN8DRAMCtrl4initEv+0x20)[0x12626e0]
>> build/ARM/gem5.opt[0x11c065a]
>> build/ARM/gem5.opt[0xa224b7]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFra
>> meEx+0x6f55)[0x7f5eb6f4fe65]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCod
>> eEx+0x85c)[0x7f5eb708704c]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFra
>> meEx+0x6ffd)[0x7f5eb6f4ff0d]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCod
>> eEx+0x85c)[0x7f5eb708704c]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFra
>> meEx+0x6ffd)[0x7f5eb6f4ff0d]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCod
>> eEx+0x85c)[0x7f5eb708704c]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCod
>> e+0x19)[0x7f5eb6f48d99]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFra
>> meEx+0x613b)[0x7f5eb6f4f04b]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCod
>> eEx+0x85c)[0x7f5eb708704c]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFra
>> meEx+0x6ffd)[0x7f5eb6f4ff0d]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCod
>> eEx+0x85c)[0x7f5eb708704c]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCod
>> e+0x19)[0x7f5eb6f48d99]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyRun_StringFl
>> ags+0x76)[0x7f5eb6fc31e6]
>> build/ARM/gem5.opt(_Z6m5MainiPPc+0x8f)[0xdab3ef]
>> build/ARM/gem5.opt(main+0x33)[0x8ba673]
>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f5eb5686830]
>> build/ARM/gem5.opt(_start+0x29)[0x8f6e19]
>> --- END LIBC BACKTRACE ---
>> Aborted (core dumped)
>>
>>
>>
>> I don't know if I am doing it correctly. Also I am not sure if I am using
>> the correct dtb files and boot_emm.arm files that I have collected from
>> http://www.gem5.org/dist/current/arm/aarch-system-20180409.tar.xz.
>> 
>> image.
>>
>> Please help.
>>
>>
>> On Tue, May 29, 2018 at 8:43 PM, 조해윤  wrote:
>>
>>> Dear Mitali Sinha.
>>>
>>> In my case, I run moby bench with RealView_PBX machine type.
>>> I don't know if it is the cause, but give it a try.
>>>
>>> Best Regard,
>>> Haeyoon Cho.
>>>
>>> 2018-05-29 20:39 GMT+09:00 Mitali Sinha :
>>>
 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 

Re: [gem5-users] Error in running Moby(Asimbench) benchmark in gem5

2018-06-05 Thread 조해윤
 Dear Mitali Sinha.

Sorry for late reply.
Try it without specified dtb file in command line.

Actually, I run moby by myself again before writing the reply.

./build/ARM/gem5.opt configs/example/fs.py --machine-type=RealViewPBX
--os-type=android-ics
--kernel=/dist/m5/system/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
--disk-image=/dist/m5/system/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
--mem-size=256MB --script=/dist/m5/system/boot/adobe.rcS --frame-capture

Although it is still booted up, there is no problem.

Best Regards,
Haeyoon Cho.

2018-06-03 22:13 GMT+09:00 Mitali Sinha :

> @Haeyoon Cho sorry for late reply.
>
> I tried making the changes as follows:
> gem5/configs/common/FSConfig.py:
>  default_dtbs = {
> "RealViewEB": None,
> "RealViewPBX": None,
> "VExpress_EMM": "armv7_gem5_v1_%dcpu.20170616.dtb" % num_cpus,
> "VExpress_EMM64": "vexpress.aarch64.20140821.dtb",
> }
>
> default_kernels = {
> "RealViewEB": "vmlinux.arm.smp.fb.2.6.38.8",
> "RealViewPBX": "vmlinux.smp.ics.arm.asimbench.2.6.35",
> "VExpress_EMM64": "vmlinux.aarch64.20140821",
> }
>
> Then, I ran the following command:
> build/ARM/gem5.opt configs/example/fs.py --os-type=android-ics
> --machine-type=RealView_PBX --mem-size=512 --cpu-type=MinorCPU --caches
> --disk-image=/home/sujay/gem5/full_system_asimbench/disks/
> ARMv7a-ICS-Android.SMP.Asimbench-v3.img --kernel=/home/sujay/gem5/
> full_system_asimbench/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
> --dtb-filename=/home/sujay/gem5/full_system_asimbench/
> binaries/armv7_gem5_v1_1cpu.dtb --script=/home/sujay/gem5/
> full_system_asimbench/asimbench_boot_scripts/adobe.rcS
>
> It gives the following error:
> --- BEGIN LIBC BACKTRACE ---
> build/ARM/gem5.opt(_Z15print_backtracev+0x28)[0xd99e78]
> build/ARM/gem5.opt(_Z12abortHandleri+0x46)[0xdac9f6]
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f5eb6c93390]
> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f5eb569b428]
> /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f5eb569d02a]
> build/ARM/gem5.opt[0x939dcf]
> build/ARM/gem5.opt[0x123ff36]
> build/ARM/gem5.opt(_ZN8DRAMCtrl4initEv+0x20)[0x12626e0]
> build/ARM/gem5.opt[0x11c065a]
> build/ARM/gem5.opt[0xa224b7]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6f55)[
> 0x7f5eb6f4fe65]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[
> 0x7f5eb708704c]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ffd)[
> 0x7f5eb6f4ff0d]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[
> 0x7f5eb708704c]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ffd)[
> 0x7f5eb6f4ff0d]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[
> 0x7f5eb708704c]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_
> EvalCode+0x19)[0x7f5eb6f48d99]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x613b)[
> 0x7f5eb6f4f04b]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[
> 0x7f5eb708704c]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ffd)[
> 0x7f5eb6f4ff0d]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[
> 0x7f5eb708704c]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_
> EvalCode+0x19)[0x7f5eb6f48d99]
> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyRun_StringFlags+0x76)[
> 0x7f5eb6fc31e6]
> build/ARM/gem5.opt(_Z6m5MainiPPc+0x8f)[0xdab3ef]
> build/ARM/gem5.opt(main+0x33)[0x8ba673]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f5eb5686830]
> build/ARM/gem5.opt(_start+0x29)[0x8f6e19]
> --- END LIBC BACKTRACE ---
> Aborted (core dumped)
>
>
>
> I don't know if I am doing it correctly. Also I am not sure if I am using
> the correct dtb files and boot_emm.arm files that I have collected from
> http://www.gem5.org/dist/current/arm/aarch-system-20180409.tar.xz.
> 
> image.
>
> Please help.
>
>
> On Tue, May 29, 2018 at 8:43 PM, 조해윤  wrote:
>
>> Dear Mitali Sinha.
>>
>> In my case, I run moby bench with RealView_PBX machine type.
>> I don't know if it is the cause, but give it a try.
>>
>> Best Regard,
>> Haeyoon Cho.
>>
>> 2018-05-29 20:39 GMT+09:00 Mitali Sinha :
>>
>>> 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 

Re: [gem5-users] Error in running Moby(Asimbench) benchmark in gem5

2018-05-29 Thread 조해윤
Dear Mitali Sinha.

In my case, I run moby bench with RealView_PBX machine type.
I don't know if it is the cause, but give it a try.

Best Regard,
Haeyoon Cho.

2018-05-29 20:39 GMT+09:00 Mitali Sinha :

> 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 --os-type=android-ics
> --machine-type=VExpress_EMM --cpu-type=MinorCPU --caches
> --disk-image=/home/sujay/gem5/full_system_asimbench/disks/
> ARMv7a-ICS-Android.SMP.Asimbench-v3.img --kernel=/home/sujay/gem5/
> full_system_asimbench/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
> --dtb-filename=/home/sujay/gem5/full_system_asimbench/
> binaries/armv7_gem5_v1_1cpu.dtb --script=/home/sujay/gem5/
> full_system_asimbench/asimbench_boot_scripts/adobe.rcS
>
>
> 5. The above commands throw the following error:
>
>   ..
> Global frequency set at 1 ticks per second
> warn: DRAM device capacity (8192 Mbytes) does not match the address range
> assigned (512 Mbytes)
> info: kernel located at: /home/sujay/gem5/full_system_
> asimbench/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
> Listening for system connection on port 5900
> Listening for system connection on port 3456
> 0: system.remote_gdb: listening for remote gdb on port 7000
> info: Using bootloader at address 0x10
> info: Using kernel entry physical address at 0x80008000
> warn: DTB file specified, but no device tree support in kernel
>  REAL SIMULATION 
> warn: Existing EnergyCtrl, but no enabled DVFSHandler found.
> info: Entering event queue @ 0.  Starting simulation...
>
> *warn: Device system.membus.badaddr_responder accessed by read to address
> 0x10009018 size=4fatal: Received error response packet for inst:
> 0/13.7/35/140.143 pc: 0x8003aba0 (ldr)*
> Memory Usage: 823816 KBytes
>
>
> Looking for some suggestion regarding successfully running the asimbench
> on gem5. Any help is appreciated. Thanks in advance.
>
>
> --
> Mitali Sinha,
> PhD Scholar,
> IIIT Delhi
>
> ___
> 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] Error in running Moby(Asimbench) benchmark in gem5

2018-05-29 Thread Mitali Sinha
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 --os-type=android-ics
--machine-type=VExpress_EMM --cpu-type=MinorCPU --caches
--disk-image=/home/sujay/gem5/full_system_asimbench/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
--kernel=/home/sujay/gem5/full_system_asimbench/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
--dtb-filename=/home/sujay/gem5/full_system_asimbench/binaries/armv7_gem5_v1_1cpu.dtb
--script=/home/sujay/gem5/full_system_asimbench/asimbench_boot_scripts/adobe.rcS


5. The above commands throw the following error:

  ..
Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range
assigned (512 Mbytes)
info: kernel located at:
/home/sujay/gem5/full_system_asimbench/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
Listening for system connection on port 5900
Listening for system connection on port 3456
0: system.remote_gdb: listening for remote gdb on port 7000
info: Using bootloader at address 0x10
info: Using kernel entry physical address at 0x80008000
warn: DTB file specified, but no device tree support in kernel
 REAL SIMULATION 
warn: Existing EnergyCtrl, but no enabled DVFSHandler found.
info: Entering event queue @ 0.  Starting simulation...

*warn: Device system.membus.badaddr_responder accessed by read to address
0x10009018 size=4fatal: Received error response packet for inst:
0/13.7/35/140.143 pc: 0x8003aba0 (ldr)*
Memory Usage: 823816 KBytes


Looking for some suggestion regarding successfully running the asimbench on
gem5. Any help is appreciated. Thanks in advance.


-- 
Mitali Sinha,
PhD Scholar,
IIIT Delhi
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users