Hi, Tony
I followed the instructions in the webpage that you provided.
Now, I can see the output file from the directory. However, when I tried to
read the file
(such as ls output_file), error was encountered: input/output error.
Steps done:
1. Modify fsconfig.py
#class CowIdeDisk(IdeDisk):
# image = CowDiskImage(child=RawDiskImage(read_only=False),
# read_only=False)
#
# def childImage(self, ci):
# self.image.child.image_file = ci
class RawIdeDisk(IdeDisk):
image = RawDiskImage(read_only=False)
def childImage(self, ci):
self.image.image_file = ci
Since I'm using Linux Alpha System, on the def makeLinuxAlphaSystem(mem_mode,
mdesc = None):
I changed the following codes
#self.disk0 = CowIdeDisk(driveID='master')
#self.disk2 = CowIdeDisk(driveID='master')
self.disk0 = RawIdeDisk(driveID='master')
self.disk2 = RawIdeDisk(driveID='master')
2. compile and install busybox, and execute busybox sync
Thanks!
Zhiguo
From: [email protected] [mailto:[email protected]] On
Behalf Of Anthony Gutierrez
Sent: Monday, July 16, 2012 11:20 AM
To: gem5 users mailing list
Subject: Re: [gem5-users] Is it possible to write the output file of an
application into linux.img when full system gem5 runs the application.
Are you asking if it is possible to make changes to the file-system on the disk
image permanent? Yes, it is possible. You need to remove the copy-on-write
layer. I did this when developing the BBench-ICS disk image. Check out this
link:
http://gem5.org/Bbench-gem5#Tips_for_Making_Your_Disk_Image_gem5_Friendly
-Tony
On Sun, Jul 15, 2012 at 11:15 PM, GE ZHIGUO
<[email protected]<mailto:[email protected]>> wrote:
It seems that the output file in full system GEM5 is a ram file which will not
be written to linux.img.
Due to this, I cannot get the file after I exit gem5 simulation environment.
Thanks!
Zhiguo
_______________________________________________
gem5-users mailing list
[email protected]<mailto:[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