It might be that you need to use the --script option to give it a script
to run when it starts up. The modifications you made to inittab tell it
to run the rcS script, and the rcS script uses special instructions that
call into the simulator and tell it to do things. One of the things it
asks for is to load the file you specified with --script into memory,
and that eventually gets put into a file and executed in the simulated
system. Since you didn't specify one I'm not sure what will happen, but
it's plausible it would segfault. If that's what's happening it shows
that there isn't adequate error checking somewhere along the way which
we should fix, but that hopefully gets it to work for you.

Gabe

On 07/23/11 16:37, Carole-Jean Wu wrote:
> This is how I start the simulation...
>
> ./build/X86_FS/gem5.opt configs/example/fs.py --kernel
> x86_64-vmlinux-2.6.22.9
>
>
> On Sat, Jul 23, 2011 at 7:24 PM, Gabe Black <[email protected]
> <mailto:[email protected]>> wrote:
>
>     That's the ISA, not the CPU. The choices for CPU are simple
>     atomic, simple timing, O3 and InOrder. Which you're using depends
>     on how your simulation script set things up, and if you're using
>     one of the ones in configs/example (you probably are) then it
>     makes that decision based on the command line options you pass it.
>     If you're using O3, that's known not to work right now. I have
>     some patches which are being tested/reviewed which should get it
>     to work (or at least work better) but those aren't checked in yet.
>     If you specified an option like "-d" or "--detailed", that will
>     pick O3 I think.
>
>     Gabe
>
>
>     On 07/23/11 16:25, Carole-Jean Wu wrote:
>>     X86
>>
>>     On Tue, Jul 26, 2011 at 5:46 PM, Gabe Black
>>     <[email protected] <mailto:[email protected]>> wrote:
>>
>>         Which CPU are you using?
>>
>>         Gabe
>>
>>         On 07/23/11 13:37, Carole-Jean Wu wrote:
>>         > Hi,
>>         >
>>         > i followed the instructions to create my own disk images
>>         but got stuck
>>         > on "modify inittab" file so that it uses the m5 utility
>>         program. Which
>>         > inittab files exactly need to be modified? I included the
>>         rcS file
>>         > into init.d/ and modified inittab as follows:
>>         >
>>         > #
>>         > # /etc/inittab
>>         > #
>>         > # $Id: inittab 1681 2004-09-01 18:12:49Z  $
>>         > #
>>         >
>>         > ci::sysinit:/etc/init.d/rcS
>>         > cr::respawn:/sbin/getty -L 115200 /dev/tts/0 vt100
>>         >
>>         > # Stuff to do before rebooting
>>         > cad::ctrlaltdel:/sbin/reboot
>>         > #sd::shutdown:/bin/umount -a -r
>>         >
>>         >
>>         > When I tried booting with the newly created image, it will
>>         seg-fault with
>>         >
>>         > init[1]: segfault at 00000000000000c8 rip 00000000f7f77044 rsp
>>         > 00000000ffafe0a0 error 6
>>         >
>>         > Any idea what is done wrong?
>>         >
>>         > thanks,
>>         > Carole
>>         > On Sat, Jul 23, 2011 at 2:29 AM, Gabriel Michael Black
>>         > <[email protected] <mailto:[email protected]>> wrote:
>>         >> http://gem5.org/Disk_images
>>         >>
>>         >> Gabe
>>         >>
>>         >>
>>         >> Quoting Carole-Jean Wu <[email protected]>
>>         <mailto:[email protected]>:
>>         >>
>>         >>> Hi,
>>         >>>
>>         >>> I'd like to run parsec applications on top of Linux/X86.
>>         Does anyone know
>>         >>> how to load the application binary to a CDRom and ask the
>>         booted system to
>>         >>> run the application from there?
>>         >>>
>>         >>> Thanks in advance,
>>         >>> Carole
>>         >>>
>>         >>
>>         >>
>>         >> _______________________________________________
>>         >> gem5-users mailing list
>>         >> [email protected] <mailto:[email protected]>
>>         >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>         >>
>>         > _______________________________________________
>>         > gem5-users mailing list
>>         > [email protected] <mailto:[email protected]>
>>         > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>>         _______________________________________________
>>         gem5-users mailing list
>>         [email protected] <mailto:[email protected]>
>>         http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>>
>>
>>     _______________________________________________
>>     gem5-users mailing list
>>     [email protected] <mailto:[email protected]>
>>     http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
>     _______________________________________________
>     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

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

Reply via email to