[gem5-users] DMA Assert help

2022-03-30 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hey everyone.

I've been trying to implement a custom simobject but once DMA starts it 
quickly fails as for an assert.


I don't know why it could happen and would appreciate some ideas. Next 
you can find some of the gem5 output (with some debug flags enabled):


2007027571000: system.pc.south_bridge.ide.dma: Trying to send WriteReq 
addr 0xffc0

2007027571000: system.pc.south_bridge.ide.dma: -- Done
2007027571000: system.pc.south_bridge.ide.dma: TransmitList: 0, inRetry: 0
2007027606000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfbc0 size: 64 nb: 3008, tot: 4096 sched 0
2007027609000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfc00 size: 64 nb: 3072, tot: 4096 sched 0
2007027618000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfc40 size: 64 nb: 3136, tot: 4096 sched 0
2007027619000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfc80 size: 64 nb: 3200, tot: 4096 sched 0
2007027624000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfcc0 size: 64 nb: 3264, tot: 4096 sched 0
2007027629000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfd00 size: 64 nb: 3328, tot: 4096 sched 0
2007027634000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfd40 size: 64 nb: 3392, tot: 4096 sched 0
2007027639000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfd80 size: 64 nb: 3456, tot: 4096 sched 0
2007027644000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfdc0 size: 64 nb: 3520, tot: 4096 sched 0
2007027649000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfe00 size: 64 nb: 3584, tot: 4096 sched 0
2007027654000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfe40 size: 64 nb: 3648, tot: 4096 sched 0
2007027659000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfe80 size: 64 nb: 3712, tot: 4096 sched 0
2007027674000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xfec0 size: 64 nb: 3776, tot: 4096 sched 0
2007027675000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xff00 size: 64 nb: 3840, tot: 4096 sched 0
2007027701000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xff40 size: 64 nb: 3904, tot: 4096 sched 0
2007027702000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xff80 size: 64 nb: 3968, tot: 4096 sched 0
2007027703000: system.pc.south_bridge.ide.dma: Received response 
WriteReq for addr: 0xffc0 size: 64 nb: 4032, tot: 4096 sched 0
2007027703000: system.pc.south_bridge.ide.disks: DMAW: doDmaWrite: done 
curPrd byte count 65536, eot 0
2007027703000: system.pc.south_bridge.ide.disks: doWriteDone: curPrd 
byte count 65536, eot 0 cmd bytes left:4294905856
2007027703000: system.pc.south_bridge.ide.dma: Starting DMA for addr: 
0x1e858008 size: 8 sched: 0
2007027703000: system.pc.south_bridge.ide.dma: Trying to send ReadReq 
addr 0x1e858008

2007027703000: system.pc.south_bridge.ide.dma: -- Done
2007027703000: system.pc.south_bridge.ide.dma: TransmitList: 0, inRetry: 0
2007027877000: system.pc.south_bridge.ide.dma: Received response ReadReq 
for addr: 0x1e858008 size: 8 nb: 0, tot: 8 sched 0
2007027877000: system.pc.south_bridge.ide.disks: PRD: baseAddr:0 (0) 
byteCount:65536 (8388488) eot:0 sector:128
2007027877000: system.pc.south_bridge.ide.disks: DMADataW: doDmaWrite, 
diskDelay: 100 totalDiskDelay: 1000128
gem5.opt: build/X86/dev/storage/ide_disk.cc:480: void 
IdeDisk::doDmaDataWrite(): Assertion `cmdBytesLeft <= MAX_DMA_SIZE' failed.

Program aborted at tick 2007027877000
--- BEGIN LIBC BACKTRACE ---
build/X86/gem5.opt(+0x108135c)[0x5615c2a7235c]
build/X86/gem5.opt(+0x109dc6a)[0x5615c2a8ec6a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x143c0)[0x7f1b58eb23c0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7f1b5845403b]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7f1b58433859]
/lib/x86_64-linux-gnu/libc.so.6(+0x22729)[0x7f1b58433729]
/lib/x86_64-linux-gnu/libc.so.6(+0x34006)[0x7f1b58445006]
build/X86/gem5.opt(+0xbe9130)[0x5615c25da130]
build/X86/gem5.opt(+0xbebd74)[0x5615c25dcd74]
build/X86/gem5.opt(+0x10914fd)[0x5615c2a824fd]
build/X86/gem5.opt(+0x10c2d50)[0x5615c2ab3d50]
build/X86/gem5.opt(+0x10c3f5a)[0x5615c2ab4f5a]
build/X86/gem5.opt(+0xc32be1)[0x5615c2623be1]
build/X86/gem5.opt(+0x972ac1)[0x5615c2363ac1]
/lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x2a8738)[0x7f1b59169738]
/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x8dd8)[0x7f1b58f3ef48]
/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x8fb)[0x7f1b5908be3b]
/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x94)[0x7f1b59169114]
/lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x74d6d)[0x7f1b58f35d6d]
/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x7d86)[0x7f1b58f3def6]

[gem5-users] SimpleMemobj in FS simulation?

2022-03-22 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hello everyone.

Recently I've been trying to create a new memory object to run in FS 
simulation.


For it i use the SimpleMemobj 
(https://www.gem5.org/documentation/learning_gem5/part2/memoryobject/) 
code as a template. During FS tests, I've run into a lot of troubles 
causing the simulation to stall or an assert to fail.


Trying out the same object in SE mode seemed to work properly.

Is there any big change i missed? Should I use a different object as a 
template? If so, which one?


--
Thank you for the help,
Miguel Antonio Avargues Gutiérrez.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: How can I Run Full system on Ubuntu18.04 and X86?

2021-10-06 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hello Jeongmin.

I recommend you use a pre-compiled Kernel and disk image from the gem5 
resources web page 
(https://www.gem5.org/documentation/general_docs/gem5_resources/), as 
they are kinda tested.


Hope it helps!

Un saludo,
Miguel Antonio Avargues Gutiérrez.

El 06/10/2021 a las 4:46, Jeongmin via gem5-users escribió:

Hi All,

I'm trying to use the Gem5 full system.
but It doesn't work.

These are my configurations
-kernel = vmlinux-4.19.83 (5.4.49 / 4.14.134)
-Ubuntu = ubuntu-18.04.6-live-server-amd64 (tried 16.04)
-gem5 = 21.1.0.2
-X86 architecture
-I will use an O3CPU and DRAMsim3.

I made an image by using qemu and I completed the booting system.
To make the image, I use this command "qemu-system -hda  
-cdrom  -m 8G -enable-kvm"

The image size for ubuntu18.04.6 is 8.6GB.

All files are in ~/gem5/fs

and I changed "M5_PATH" to "/home/user/gem5/fs" in Syspath.py line 34.

As far as I know, These are all configurations to use the gem5 full 
system.


So I ran gem5. but it does not work.

I attached all command and error messages below.

How can I run the gem5 full system?
Please let me know.
Thanks in advance.



**
-cmd = ./build/X86/gem5.opt configs/example/fs.py 
--kernel=/home/user/gem5/fs/vmlinux-4.19.83 
--disk-image=/home/user/gem5/fs/ubuntu.img
(--cpu-type=AtomicSimpleCPU --mem-type=DDR4_2400_8x8 --mem-size=1GB 
--num-cpu=1 --caches --root-device=/dev/hda)


**

warn: iobus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: bridge.master is deprecated. `master` is now called `mem_side_port`
warn: membus.master is deprecated. `master` is now called `mem_side_ports`
warn: bridge.slave is deprecated. `slave` is now called `cpu_side_port`
warn: iobus.master is deprecated. `master` is now called `mem_side_ports`
warn: apicbridge.slave is deprecated. `slave` is now called 
`cpu_side_port`

warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: apicbridge.master is deprecated. `master` is now called 
`mem_side_port`

warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: iobus.master is deprecated. `master` is now called `mem_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: membus.master is deprecated. `master` is now called `mem_side_ports`
warn: membus.master is deprecated. `master` is now called `mem_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
Global frequency set at 1 ticks per second
warn: system.workload.acpi_description_table_pointer.rsdt adopting 
orphan SimObject param 'entries'
warn: No dot file generated. Please install pydot to generate the dot 
file and pdf.
build/X86/mem/mem_interface.cc:793: warn: DRAM device capacity (16384 
Mbytes) does not match the address range assigned (1024 Mbytes)
build/X86/sim/kernel_workload.cc:46: info: kernel located at: 
/home/msm/gem5/fs/vmlinux-4.19.83
      0: system.pc.south_bridge.cmos.rtc: Real-time clock set to Sun 
Jan  1 00:00:00 2012

system.pc.com_1.device: Listening for connections on port 3456
0: system.remote_gdb: listening for remote gdb on port 7000
build/X86/dev/intel_8254_timer.cc:125: warn: Reading current count 
from inactive timer.

 REAL SIMULATION 
build/X86/sim/simulate.cc:107: info: Entering event queue @ 0.  
Starting simulation...
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6
build/X86/arch/x86/generated/exec-ns.cc.inc:27: warn: instruction 
'fninit' unimplemented
build/X86/dev/x86/pc.cc:117: warn: Don't know what interrupt to clear 
for console.

44655759500: system.pc.com_1.device: attach terminal 0
build/X86/arch/x86/generated/exec-ns.cc.inc:27: warn: instruction 
'sgdt_Ms' unimplemented
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6

build/X86/arch/x86/cpuid.cc:185: warn: x86 cpuid: unknown family 0x4000
build/X86/dev/x86/pc.cc:130: warn: Tried to clear PCI interrupt 14
build/X86/dev/storage/ide_disk.cc:564: panic: Can't read from 
system.pc.south_bridge.ide.disks0. Only 4294967295 of 512 read. errno=21

Memory Usage: 1521004 KBytes
Program 

[gem5-users] Re: 回复:Re: can anyboby tell me how to generate the checpoints of spec2017?

2021-04-09 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hello, you can run the following order:
/sbin/m5 checkpoint.

Greetings,
Miguel Antonio Avargues Guti??rrez.

El 08/04/2021 a las 17:19, ?? via gem5-users escribi??:

hi, Arthur,
?0?2 ?0?2 Thank you for replying to me. I think I used the wrong 
instructions for generating the checkpoints. There is no need to 
provide the context about the error. I just want some tutorials about 
how to generate the checkpoint, such as blogs, pdf.

?0?2 ?0?2 Thank you again.

--?0?2?0?2--
*??:* "gem5 users mailing list" ;
*:*?0?22021??4??8??(??) 11:04
*??:*?0?2"gem5-users";
*:*?0?2"Arthur Perais";
*:*?0?2[gem5-users] Re: can anyboby tell me how to generate the 
checpoints of spec2017?


Hi,

I think you will need to provide more context than this. We cannot 
help if we just know you encountered "a strange error".


Namely, if you are running FullSystem or SystemEmulation, what ISA, 
the command lines, etc...


Arthur

On 4/8/21 3:59 PM, ?? via gem5-users wrote:

hi, everyone,
?0?2 ?0?2 I m a beginner of gem5, now I want to generate the checkpoints of 
spec2017.?0?2 I follow the instructions from this 
page(https://www.gem5.org/documentation/general_docs/checkpoints), 
but some strange mistakes appeared.

?0?2 ?0?2so, can anyone give some advice or some tutorial? Thank you very much.


___
gem5-users mailing list --gem5-users@gem5.org
To unsubscribe send an email togem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s


___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: understanding commMonitor output

2021-04-01 Thread Miguel Antonio Avargues Gutiérrez via gem5-users
Hope this helps, 
https://stackoverflow.com/questions/61052733/obtaining-physical-address-trace-from-gem5.


Greetings,
Miguel Antonio Avargues Gutiérrez.

El 31/03/2021 a las 18:57, Joardar, Biresh Kumar via gem5-users escribió:

Hello,
I intend to observe all the physical DRAM addresses that are accessed 
when an application is being executed in full-system mode. Following 
some earlier discussions on this mailing list, I used the commMonitor. 
I added the following lines to fs.py file:

test_sys.monitor = CommMonitor()
test_sys.monitor.trace = MemTraceProbe(trace_file = "monitor.ptrc.gz")

Next, I connected the CommMonitor as follows in the CacheConfig.py file:
system.l2.mem_side = system.monitor.slave
system.monitor.master = system.membus.slave

I create and then restore from a checkpoint just before the 
application is started. Following is my command line:
./build/X86/gem5.opt configs/example/fs.py --kernel 
/home/myComputer/Desktop/x86_64-vmlinux-2.6.28.4-smp --disk-image 
/home/myComputer/Desktop/x86root-parsec.img --script 
/home/myComputer/Desktop/gem5/configs/boot/test.rcS --caches --l2cache 
--checkpoint-restore=1 --restore-with-cpu=TimingSimpleCPU


Next, I use the decode_packet_trace.py file in utils folder to process 
the .ptrc file obtained after simulation. Following is a sample of the 
output of this step:

5,u,531425792,64,256,4986860244500
6,u,535891200,64,2,4986860333000
9,u,529653760,64,512,4986868293000
9,u,530137088,64,512,4986868293000
9,u,529657856,64,512,4986868293000
9,u,530022400,64,512,4986868293000
10,u,531425216,64,256,4986868293000
8,u,529655744,64,512,4986868294500
8,u,521711552,64,512,4986868294500
...

The 3rd column in this output seems to be the address. However, DRAM 
addresses are usually represented in Hexadecimal format. In the entire 
output file, I did not find any alphabet character. All addresses are 
just numbers. Is this expected output? Do I need to convert these 
addresses to hexadecimal format manually next or did I make a mistake 
in the full-sytem setup?

Thanks,
Biresh


___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Interacting with a server in FS simulation mode from the Host

2021-03-22 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hello everyone.

I'd like to know if anyone has tried to run a server using gem5 fs 
simulation and then interact with it. In my case I'd like to run 
redis-benchmark and to deploy a redis server on the gem5 simulation so 
that I can view the gains on performance over architectural changes.


--
Greetings,
Miguel Antonio Avargues Gutiérrez.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Gem5 with NVMain simulation problem

2021-03-12 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hello Hasan.

Were you able to find a solution? I am currently facing the same problem.

--
Greetings,
Miguel Antonio Avargues Gutiérrez.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Making main memory trace files for external memory sims

2021-03-10 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hello,

I was wondering which was the most effective way to generate main memory 
trace files to run on externals memory simulatos such as NVMain. I'm 
using the default fs.py config file with the 4.19.83 kernel and 
parsec.img as the disk image. Is maybe SE a better method to achieve this?


--
Un saludo,
Miguel Antonio Avargues Gutiérrez.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Disk image for FS

2021-03-04 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hi Hoa,

Thanks for the follow-up.

Fortunately I was able to run a FS simulation using the provided fs.py 
config file with the parsec.img. I found no errors and was even able to 
run some SPLASH-2 benchmarks on it, simply using the --disk-image with 
the provided --kernel was enough. Thanks for all the help you have 
provided me with. Anyway I'll take a look at all the resources you've 
provided me with to see if it can enhance my workflow.


Greetings,
Miguel Antonio Avargues Gutiérrez.

El 04/03/2021 a las 14:02, Hoa Nguyen via gem5-users escribió:

Hi Miguel,

Sorry for the late reply.

I don't know whether parsec.img would work with configs/fs.py;
however, we've been testing and using parsec.img with the gem5 configs
from gem5-resources
(https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/parsec/configs/)
[1].

You can modify the configs from [1] to run command line commands
(which, I guess, would have the same behaviors as --script from
configs/fs.py). Specifically, in the writeBenchScript() function in
run_parsec.py, the content inputted to bench_file.write() will
eventually be appended to .bashrc during gem5 simulation.

Since you mentioned newer Linux kernel versions, it is known that the
current state of the configs from [1] would run into a kernel panic
when running the simulation with newer Linux kernel versions. This
change (https://gem5-review.googlesource.com/c/public/gem5-resources/+/42261)
is supposed to fix the problem.

Regards,
Hoa Nguyen

Regards,
Hoa Nguyen

On 2/28/21, Miguel Antonio Avargues Gutiérrez via gem5-users
 wrote:

Thanks for the help Hoa.

I have downloaded the parsec.img disk image and the right kernel version
from [1]. It seems to boot properly when using the fs.py config script
but i don't get a terminal to interact with the simulated system using
telnet. Is that expected because i need to use the --script parameter or
am I missing something?

Greetings,
Miguel antonio Avargues Gutiérrez.

El 28/02/2021 a las 3:10, Hoa Nguyen via gem5-users escribió:

Hi Miguel,

For X86 full system simulation, specifically for creating custom disk
image that runs with newer Linux kernels, I believe gem5-resources has
the resources for that. More details can be found here,
- General introduction and artifacts:
https://www.gem5.org/documentation/general_docs/gem5_resources/ [1]
- Source code: https://gem5.googlesource.com/public/gem5-resources [2]
- Detailed instructions:
https://gem5art.readthedocs.io/en/latest/tutorials/boot-tutorial.html#creating-a-disk-image
[3] and
https://gem5art.readthedocs.io/en/latest/tutorials/npb-tutorial.html#creating-a-disk-image
[4]


- From link [1], you can find built disk images, which could be
manipulated to suite an experiment.
- From link [2], you can find examples of building disk images for
some benchmarks such as npb, parsec, gapbs and spec.
- Link [3] and link [4] offer some explanation of what happens when
the disk images are built. The same website
(https://gem5art.readthedocs.io/en/latest/) also has tutorials for
other benchmarks and there are outdated links to GitHub (which were
moved to [2]). We are working on updating the website.


Regarding compiling util/m5, the new command to compile it is
```
scons build/x86/out/m5
```
where "x86" could be replaced by other ISA.


I hope this helps.


Regards,
Hoa Nguyen

On 2/27/21, Miguel Antonio Avargues Gutiérrez via gem5-users
 wrote:

Hello everyone.

I'm a pretty new user to gem5 and I've been trying to get a FS
simulation going on with a newer kernel version and a custom disk image.
Unfortunately i feel like my disk image isn't properly created since i
can't get the simulation going. Is there any up-to-date tutorias about
making a custom file image? All the tutorias i've found make references
to files that i can't find in the simulator (such as
util/m5/Makefile.x86). I am using version 20.0.0.3 and I can't change
it.

--
Greetings,
Miguel Antonio Avargues Gutiérrez.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo

[gem5-users] Re: Gem5 in FS mode

2021-03-04 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hi Vaidya.


Sorry for the delay. In order to mount your file to your linux system 
you should first seek the start of the file system, you can do this with 
the order "parted". Once the program asks you for orders you should 
change the units to bytes "unit B" and then "print" the image info. If 
this is too complicated, you can try to use either 32256 or 104856 as 
the offset. Being the latter the most usual. From that you should get 
that start byte of the image, which you'll need to mount using the order:


"sudo mount -o loop,rw,offset= <.img_file_to_mount> 
/mnt"


Once this is done, you can copy your files to the /mnt dir or any 
subdirectories of /mnt. Be wary not to change any crucial system files.



After you have finished adding the files needed, you must unomunt the 
image file. You can do this by running "umount /mnt" in any other 
directory that is not /mnt or any subdirectories.


Un saludo,
Miguel Antonio Avargues Gutiérrez.

El 04/03/2021 a las 6:36, VAIDYA ROHINI VILAS via gem5-users escribió:

Hello,
I am trying to run Gem5 in FS mode.
I want to run my own binary file in FS mode of gem5
For that,I think I need to mount disk image to my compiled binary file.
I am not aware about how to mount the disk image to my compiled binary 
file.
Will you please guide me regarding this.If there is any document 
regarding this please share.

Thank you.
Rohini vaidya.

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Disk image for FS

2021-02-28 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hi Vaidya.

You have to mount the disk image that you are using for FS simulation 
with the compiled binaries that you want to add. After that, you can run 
your simulation and run the binaries either in interactive mode or with 
the --script argument when you launch the simulation (the same way you 
point to a disk image or a kernel). I recommend that you download both 
the kernel and the disk image from this 
https://www.gem5.org/documentation/general_docs/gem5_resources/ 
<https://www.gem5.org/documentation/general_docs/gem5_resources/> link. 
Get the "parsec" disk image and the corresponding kernel for it.


Un saludo,
Miguel Antonio Avargues Gutiérrez.

El 28/02/2021 a las 18:24, VAIDYA ROHINI VILAS via gem5-users escribió:

Hello,
I want to run my own binary file in FS mode hoe to do that..Please 
help me i stuck at this point from a month..I just want to add binary 
file to work it in FS mode.


Get Outlook for Android <https://aka.ms/ghei36>

*From:* Hoa Nguyen via gem5-users 
*Sent:* Sunday, February 28, 2021 7:40:24 AM
*To:* mia...@inf.upv.es ; gem5 users mailing list 


*Cc:* Hoa Nguyen 
*Subject:* [gem5-users] Re: Disk image for FS
Hi Miguel,

For X86 full system simulation, specifically for creating custom disk
image that runs with newer Linux kernels, I believe gem5-resources has
the resources for that. More details can be found here,
- General introduction and artifacts:
https://www.gem5.org/documentation/general_docs/gem5_resources/ 
<https://www.gem5.org/documentation/general_docs/gem5_resources/> [1]
- Source code: https://gem5.googlesource.com/public/gem5-resources 
<https://gem5.googlesource.com/public/gem5-resources> [2]

- Detailed instructions:
https://gem5art.readthedocs.io/en/latest/tutorials/boot-tutorial.html#creating-a-disk-image 
<https://gem5art.readthedocs.io/en/latest/tutorials/boot-tutorial.html#creating-a-disk-image>
[3] and 
https://gem5art.readthedocs.io/en/latest/tutorials/npb-tutorial.html#creating-a-disk-image 
<https://gem5art.readthedocs.io/en/latest/tutorials/npb-tutorial.html#creating-a-disk-image>

[4]


- From link [1], you can find built disk images, which could be
manipulated to suite an experiment.
- From link [2], you can find examples of building disk images for
some benchmarks such as npb, parsec, gapbs and spec.
- Link [3] and link [4] offer some explanation of what happens when
the disk images are built. The same website
(https://gem5art.readthedocs.io/en/latest/ 
<https://gem5art.readthedocs.io/en/latest/>) also has tutorials for

other benchmarks and there are outdated links to GitHub (which were
moved to [2]). We are working on updating the website.


Regarding compiling util/m5, the new command to compile it is
```
scons build/x86/out/m5
```
where "x86" could be replaced by other ISA.


I hope this helps.


Regards,
Hoa Nguyen

On 2/27/21, Miguel Antonio Avargues Gutiérrez via gem5-users
 wrote:
> Hello everyone.
>
> I'm a pretty new user to gem5 and I've been trying to get a FS
> simulation going on with a newer kernel version and a custom disk image.
> Unfortunately i feel like my disk image isn't properly created since i
> can't get the simulation going. Is there any up-to-date tutorias about
> making a custom file image? All the tutorias i've found make references
> to files that i can't find in the simulator (such as
> util/m5/Makefile.x86). I am using version 20.0.0.3 and I can't 
change it.

>
> --
> Greetings,
> Miguel Antonio Avargues Gutiérrez.
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Disk image for FS

2021-02-28 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Thanks for the help Hoa.

I have downloaded the parsec.img disk image and the right kernel version 
from [1]. It seems to boot properly when using the fs.py config script 
but i don't get a terminal to interact with the simulated system using 
telnet. Is that expected because i need to use the --script parameter or 
am I missing something?


Greetings,
Miguel antonio Avargues Gutiérrez.

El 28/02/2021 a las 3:10, Hoa Nguyen via gem5-users escribió:

Hi Miguel,

For X86 full system simulation, specifically for creating custom disk
image that runs with newer Linux kernels, I believe gem5-resources has
the resources for that. More details can be found here,
- General introduction and artifacts:
https://www.gem5.org/documentation/general_docs/gem5_resources/ [1]
- Source code: https://gem5.googlesource.com/public/gem5-resources [2]
- Detailed instructions:
https://gem5art.readthedocs.io/en/latest/tutorials/boot-tutorial.html#creating-a-disk-image
[3] and 
https://gem5art.readthedocs.io/en/latest/tutorials/npb-tutorial.html#creating-a-disk-image
[4]


- From link [1], you can find built disk images, which could be
manipulated to suite an experiment.
- From link [2], you can find examples of building disk images for
some benchmarks such as npb, parsec, gapbs and spec.
- Link [3] and link [4] offer some explanation of what happens when
the disk images are built. The same website
(https://gem5art.readthedocs.io/en/latest/) also has tutorials for
other benchmarks and there are outdated links to GitHub (which were
moved to [2]). We are working on updating the website.


Regarding compiling util/m5, the new command to compile it is
```
scons build/x86/out/m5
```
where "x86" could be replaced by other ISA.


I hope this helps.


Regards,
Hoa Nguyen

On 2/27/21, Miguel Antonio Avargues Gutiérrez via gem5-users
 wrote:

Hello everyone.

I'm a pretty new user to gem5 and I've been trying to get a FS
simulation going on with a newer kernel version and a custom disk image.
Unfortunately i feel like my disk image isn't properly created since i
can't get the simulation going. Is there any up-to-date tutorias about
making a custom file image? All the tutorias i've found make references
to files that i can't find in the simulator (such as
util/m5/Makefile.x86). I am using version 20.0.0.3 and I can't change it.

--
Greetings,
Miguel Antonio Avargues Gutiérrez.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Disk image for FS

2021-02-27 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hello everyone.

I'm a pretty new user to gem5 and I've been trying to get a FS 
simulation going on with a newer kernel version and a custom disk image. 
Unfortunately i feel like my disk image isn't properly created since i 
can't get the simulation going. Is there any up-to-date tutorias about 
making a custom file image? All the tutorias i've found make references 
to files that i can't find in the simulator (such as 
util/m5/Makefile.x86). I am using version 20.0.0.3 and I can't change it.


--
Greetings,
Miguel Antonio Avargues Gutiérrez.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s