Hello,

please have a look at:

        https://github.com/tukl-msd/gem5.bare-metal

Regards
Matthias

--

Dipl.-Ing. Matthias Jung

Member
Advanced Silicon Technologies & Design Methodologies


University of Kaiserslautern
Microelectronic Systems Design Research Group
Erwin-Schrödinger-Straße 12/228
67663 Kaiserslautern, Germany

Phone: +49 631 205 3579
Fax: +49 631 205 4437
[email protected]
http://ems.eit.uni-kl.de

> Am 10.06.2016 um 18:26 schrieb Rodrigo Cataldo <[email protected]>:
> 
> Hello.
> Gem5 needs a disk image by default when FS mode is employed.
> 
> if you just want to execute code directly from memory, you can either point 
> to this disk image just to make gem5 happy or change this behavior..
> also, you can specify where gem5 searches for disk/kernel using the M5_PATH 
> env. variable.
> 
> On Tue, Jun 7, 2016 at 3:34 PM, Kross X <[email protected]> wrote:
> Hi,
>      I am trying to run the pre-built hello-world executable for ARM on gem5 
> in full-system mode with the bare-metal option. However, I get this error 
> message : "Can't find a path to system files."
> I have tried setting --dtb-file option to None to work-around this but it 
> didn't help. Here is the detail of steps that I am following:
> 
> Gem5 Build:
> scons CPU_MODELS="AtomicSimpleCPU,O3CPU,TimingSimpleCPU" build/ARM/gem5.opt 
> -j13
> Bare-Metal Execution:
> ./build/ARM/gem5.opt configs/example/fs.py --bare-metal 
> --kernel=tests/test-progs/hello/bin/arm/linux/hello
> And I get the following error message:
> 
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/home/wali/m5/gem5-stable/src/python/m5/main.py", line 388, in main
>     exec filecode in scope
>   File "configs/example/fs.py", line 327, in <module>
>     test_sys = build_test_system(np)
>   File "configs/example/fs.py", line 102, in build_test_system
>     external_memory=options.external_memory_system)
>   File "/home/wali/m5/gem5-stable/configs/common/FSConfig.py", line 249, in 
> makeArmSystem
>     self.cf0.childImage(mdesc.disk())
>   File "/home/wali/m5/gem5-stable/configs/common/Benchmarks.py", line 62, in 
> disk
>     return env.get('LINUX_IMAGE', disk('linux-aarch32-ael.img'))
>   File "/home/wali/m5/gem5-stable/configs/common/SysPaths.py", line 44, in 
> disk
>     system()
>   File "/home/wali/m5/gem5-stable/configs/common/SysPaths.py", line 69, in 
> system
>     raise IOError, "Can't find a path to system files."
> IOError: Can't find a path to system files.
> 
> It seems that Gem5 is looking for disk-image file to boot the application. Is 
> there a way to circumvent this problem?
> I basically want to execute a bare-metal ARM application on Gem5 in 
> full-system mode.
> 
> I'll be grateful for any help!
> 
> Thanks!
> 
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> 
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to