Re: [gem5-users] gem5 for newcomers basics tutorial

2015-10-19 Thread Khaled Attia
It is chroot .
I think you've missed the dot(.)

On Mon, Oct 19, 2015, 11:02 AM Ahmed Achballah 
wrote:

>
>
> *Ahmed Ben Achballah*Assistant à ISSAT Kasserine
> Chercheur au Laboratoire des Systèmes Avancés
> École Polytechnique de Tunisie
>
> On Mon, Oct 19, 2015 at 10:01 AM, Ahmed Achballah <
> ahmed.achbal...@gmail.com> wrote:
>
>> Hi Khaled,
>>
>> it was ok for me until this command "chroot", page 4 in e)
>> I think it is missing the new root folder no ?
>>
>> Thanks
>>
>> ahmed@ubuntu:/mnt$ sudo chroot
>> chroot: missing operand
>> Try 'chroot --help' for more information.
>> ahmed@ubuntu:/mnt$
>>
>>
>> *Ahmed Ben Achballah*Assistant à ISSAT Kasserine
>> Chercheur au Laboratoire des Systèmes Avancés
>> École Polytechnique de Tunisie
>>
>> On Sun, Oct 18, 2015 at 1:41 PM, Khaled Attia 
>> wrote:
>>
>>> Hello Ahmed,
>>> You just need to install the arm cross compiler
>>>
>>> Run
>>> sudo apt-get install gcc-arm-linux-gnueabi
>>>
>>> Then make clean
>>> And make
>>> It should work fine
>>>
>>
>>
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] gem5 for newcomers basics tutorial

2015-10-19 Thread Ahmed Achballah
Hello,

I also tried sudo chroot ., here is what I got :

ahmed@ubuntu:/mnt$ sudo apt-get install qemu-user-static
Reading package lists... Done
Building dependency tree
Reading state information... Done
qemu-user-static is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

ahmed@ubuntu:/mnt$ sudo chroot .
chroot: failed to run command ‘/bin/bash’: No such file or directory
ahmed@ubuntu:/mnt$



*Ahmed *

On Mon, Oct 19, 2015 at 12:19 PM, Khaled Attia 
wrote:

> It is chroot .
> I think you've missed the dot(.)
>
> On Mon, Oct 19, 2015, 11:02 AM Ahmed Achballah 
> wrote:
>
>>
>>
>> *Ahmed Ben Achballah*Assistant à ISSAT Kasserine
>> Chercheur au Laboratoire des Systèmes Avancés
>> École Polytechnique de Tunisie
>>
>> On Mon, Oct 19, 2015 at 10:01 AM, Ahmed Achballah <
>> ahmed.achbal...@gmail.com> wrote:
>>
>>> Hi Khaled,
>>>
>>> it was ok for me until this command "chroot", page 4 in e)
>>> I think it is missing the new root folder no ?
>>>
>>> Thanks
>>>
>>> ahmed@ubuntu:/mnt$ sudo chroot
>>> chroot: missing operand
>>> Try 'chroot --help' for more information.
>>> ahmed@ubuntu:/mnt$
>>>
>>>
>>> *Ahmed Ben Achballah*Assistant à ISSAT Kasserine
>>> Chercheur au Laboratoire des Systèmes Avancés
>>> École Polytechnique de Tunisie
>>>
>>> On Sun, Oct 18, 2015 at 1:41 PM, Khaled Attia 
>>> wrote:
>>>
 Hello Ahmed,
 You just need to install the arm cross compiler

 Run
 sudo apt-get install gcc-arm-linux-gnueabi

 Then make clean
 And make
 It should work fine

>>>
>>>
>>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] gem5 for newcomers basics tutorial

2015-10-19 Thread Ahmed Achballah
*Ahmed Ben Achballah*Assistant à ISSAT Kasserine
Chercheur au Laboratoire des Systèmes Avancés
École Polytechnique de Tunisie

On Mon, Oct 19, 2015 at 10:01 AM, Ahmed Achballah  wrote:

> Hi Khaled,
>
> it was ok for me until this command "chroot", page 4 in e)
> I think it is missing the new root folder no ?
>
> Thanks
>
> ahmed@ubuntu:/mnt$ sudo chroot
> chroot: missing operand
> Try 'chroot --help' for more information.
> ahmed@ubuntu:/mnt$
>
>
> *Ahmed Ben Achballah*Assistant à ISSAT Kasserine
> Chercheur au Laboratoire des Systèmes Avancés
> École Polytechnique de Tunisie
>
> On Sun, Oct 18, 2015 at 1:41 PM, Khaled Attia 
> wrote:
>
>> Hello Ahmed,
>> You just need to install the arm cross compiler
>>
>> Run
>> sudo apt-get install gcc-arm-linux-gnueabi
>>
>> Then make clean
>> And make
>> It should work fine
>>
>
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] ARM cortex A-15 configuration

2015-10-19 Thread Prathap Kolakkampadath
Hello Users,

What is the exact configuration for cortex A15?
The configuration file "configs/common/O3_ARM_v7a.py" doesn't seems to
replicate cortex A15 correctly. For example based on the below document,
cortex A15 should have ROB of size 128, which 3 times more than the size of
ROB(40) specified in the gem5 configuration file.
How to find the exact information regarding ROB/LQ/SQ etc..?

http://www.anandtech.com/show/6787/nvidia-tegra-4-architecture-deep-dive-plus-tegra-4i-phoenix-hands-on/2

Thanks,
Prathap
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Problem in building cross compiler for MIPS using crosstools-ng

2015-10-19 Thread Will
Hello,


I have built some cross compilers for MIPS using crosstools-ng, but gem5 always 
terminated with error messages below when execute the binary generated by the 
cross compiler.
Does someone has any idea about the configuration for MIPS cross compiler which 
could work for gem5?


I would appreciate if some one can shed some light on this.


Best regards,
Will


==


$ build/MIPS/gem5.debug configs/example/se.py -c ~/hello 
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.


gem5 compiled Oct 16 2015 14:43:56
gem5 started Oct 20 2015 12:59:38
gem5 executing on Stormy
command line: build/MIPS/gem5.debug configs/example/se.py -c /home/fkong/hello
Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (512 Mbytes)
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
 REAL SIMULATION 
info: Entering event queue @ 0.  Starting simulation...
info: Increasing stack size by one page.
tcmalloc: large alloc 18206143029444608 bytes == (nil) @  0x7fd0f3fa7126 
0xbfe6ab 0xe921ac 0xe8df87 0xa818c8 0xb38580 0x1540118 0xb36f41 0xb33ca6 
0xe547d6 0xe756fc 0xe7547d 0xc4ab54 0xc4ad10 0x7fd0f5019f43 0x7fd0f501b6b4 
0x7fd0f501a5c6 0x7fd0f501a666 0x7fd0f501a666 0x7fd0f501b6b4 0x7fd0f501b7d9 
0x7fd0f5019ec2 0x7fd0f501b6b4 0x7fd0f501a5c6 0x7fd0f501b6b4 0x7fd0f501b7d9 
0x7fd0f5034bdf 0x7fd0f5035a54 0xe5a684 0xa6350d 0x7fd0f332d790
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Program aborted at cycle 391500
Aborted (core dumped)

___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Debugging Simulated Code - "Remote 'g' packet is too long"

2015-10-19 Thread Rodrigo Cataldo
Take a look here: http://qa.gem5.org/1433/debugging-arm-kernel-with-gdb

On Sat, Oct 17, 2015 at 7:23 AM,  wrote:

> Guru Prasad wrote:
>
>
> *I followed the instructions given here
>  to debug simulated code.*
>
>
>
>
>
>
>
>
>
>
> *I run into the following issue with gdb-7.8.1.(gdb) set remote Z-packet
> on(gdb) set tdesc filename features/arm-with-neon.xml(gdb) symbol-file
> linux-linaro-gem5/vmlinuxReading symbols from
> linux-linaro-gem5/vmlinux...done.(gdb) target remote localhost:7000Remote
> debugging using localhost:7000Remote 'g' packet reply is too long:
> 7d3cc510e00800884833608000c0648000c064800039698010ef6d806a400080f0c00f41f8b60180ec3260807480008010336080d301*
>
> * Does anyone know how to resolve this?*
>
>
> Which architecture?
> I have been playing in this area for a while and among the ISAs I tried,
> this only seems to work on MIPS.
> Hopefully my implementation of remote debugging on POWER will be accepted.
> I suspect the current code may generate bad-formed g-packet replies on ARM
> and SPARC.  The problem is the selection between 32- and 64-bit mode.  The
> constructor allocates enough space for the biggest possible case, and
> stores that size in the 'size' variable, which is later used to determine
> how many bytes to actually transmit on the wire; the unused space is padded
> with zeros, and these zeros are also transmitted.  The GDB client has the
> following check in remote.c, function process_g_packet():
>   if (buf_len > 2 * rsa->sizeof_g_packet)
> error (_("Remote 'g' packet reply is too long: %s"), rs->buf);
>
> This check will object to the extra padding.
>
> I have been using a temporary workaround for this which isn't a real fix,
> but if there is interest, I can spend some time towards an actual patch
> which would consult the current bit-width (e.g., the AM flag in PSR on
> SPARC) and allocate the reply size accordingly.
>
> Boris
>
>
> ___
> 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