Re: Need information about passing command line arguments.

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Need information about passing command line arguments.

Frank Ch. Eigler
Hi -

On Wed, Jan 11, 2006 at 12:01:11PM +0530, [hidden email] wrote:
> [...]
> ./sid -board=mm_MAX -load=hello.x -INITTIME
> considering the above example please let me know how to pass -INITTIME
> to the hello.x
> [...]

The code in sid/main/mainDynamic.cxx does not appear able to pass
simulated command line arguments to the gloss component (the
"command-line" attribute) the same way that the sid/bsp/configrun-sid
perl front-end did.  You may be able to simulate it with the more
general "-e" option, something like this:

./sid -board=mm_MAX -load=hello.x \
     -e 'set GLOSS-COMPONENT command-line -INITTIME'

You'd have to figure out the right GLOSS-COMPONENT name though,
perhaps from a prior run with "--save-temps".

- FChE
Reply | Threaded
Open this post in threaded view
|

RE: Need information about passing command line arguments.

mnskrishna

Hi,
One more request how to find GLOSS-COMPONENT, I tried --save-temps it
gives help information related to options mentioned below, please let us
know what is GLOSS-COMPONENT?

Regards,
Subbu.

./sid: option `--save-temps' requires an argument
Usage: sid OPTIONS [FILE] ...
Options:
-h, --help            Print this help
-v, --version         Print version
-n, --no-run          Load/check configuration but do not run simulation
-f FILE               Also read configuration FILE
-e LINE               Also do configuration LINE

All -b options are performed first, in sequence.
All -f/-e options are performed after -b options, in sequence.
FILE names supplied without -f are done last, in sequence.

--persistent          Run top-level loop indefinitely
--rc                  Pass stop code as simulator exit rc
--save-temps=FILE     Write config to FILE, '-' for stdout.
--wrap=COMPONENT      Turn on SID API tracing for COMPONENT
--verbose             Turn on run-time verbosity settings
--tksm                Add a an experimental Tk system monitor
--tksched             Add a simple Tk sim-scheduler controller
--board=BOARD         Instantiate builtin BOARD; remaining options
                      apply to most recently instantiated BOARD.
                      BOARD may be any of:
                         mm_MAX MeP custom board 'mm_MAX'

Board-specific options:
--cpu=CPU             Change board to use CPU
--load=FILE           Load FILE into board's memory
                      Sub options (comma separated):
                         bus=MAPPER   Load file into bus MAPPER
                         cpu=CPU      Set pc of cpu CPU on load
                         all-cpus     Shortcut for using all CPUs
--gloss               Give board a gloss (operating system)
--gdb=PORT            Give board a gdb stub on tcp port PORT
--engine=scache|pbb   Set board's engine type to scache or pbb
--sidrtc=ADDR         Add a real-time clock at address ADDR
--sidcodec=ADDR       Add an audio codec at address ADDR
--insn-count=COUNT    Set block of uninterrupted ticks for insns
--enable-warnings     Turn on CPU execution warnings
--final-insn-count    Turn on CPU instruction count summary
--trace-extract       Turn on CPU insn decode tracing
--trace-semantics     Turn on CPU execute tracing
--trace-disassemble   Turn on CPU execute disassembly
--trace-counter       Turn on CPU insn tracing
--trace-core          Turn on bus access tracing
--icache=TYPE         Put insn cache hw-cache-TYPE on board
--dcache=TYPE         Put data cache hw-cache-TYPE on board
                      e.g., direct/64kb/32, 4way/256kb/64/lru
--EB | --EL           Set powerup CPU mode to big/little endian
--gprof=FILE          Turn on GPROF profiling, collect in FILE
                      Sub option (comma separated):
                         cycles[=N]   collect data every N simulated
cycles,
                                      default N=1.
                         (if cycles is not specified, default to
                          collect data every Insn-count ticks.)
--memory-region=BASE,SIZE
                      Add RAM region from BASE to BASE+SIZE-1.
                      Sub options (comma separated):
                         bus=MAPPER   Attach memory to bus MAPPER
                         read-only    Make memory read-only
                         alias=BASE2  Add an alias at BASE2
                         file=NAME    Load/save memory from file
                         mmap         Memory map given file
                         latency=r:w  Set read, write latencies [0:0]
                         latency=rw   Set both latencies [0]
--ulog-level=LEVEL    Set the logging level for the current board
--ulog-mode=less|match|equal
                      Set the logging mode for the current board
--ulog-file=-|FILE    Set the log file name
--warn-write-to-code  Generate a warning when memory containing
executable code is written to
--no-warn-write-to-code  Do not generate a warning when memory
containing executable code is written to
--warn-write-to-rom   Generate a warning when read only memory is
written to
--allow-write-to-rom  Allow read only memory to be written to
--model-busses        Turn on bus arbitration modelling
--dsp-user-out        Display user written DSP trace output for
--trace-disassemble
--no-dsp-user-out     Display normal insn disassembly of DSP insns for
--trace-disassemble
--local-mem=START,SIZE,NAME[,api]
--global-mem=START,SIZE[,cached][,rom]
--shadow-mem=START,SIZE,BASE[,cached][,MODULE_NAME]
--biu-width=N
--dmac-channel-bitw=N
--dmac-rectangle
--dmac-no-rectangle
--insn=abs|ave|bit|clp|div|ldz|min|mul|sat
--no-insn=abs|ave|bit|clp|div|ldz|min|mul|sat
--imem-size=N
--dmem-size=N
--dmem-bank-num=N
--dmem-fixed-start-address
--dmem-no-fixed-start-address
--icache-size=N
--icache-line-size=N
--icache-way=N
--icache-cwf=on|off
--dcache-size=N
--dcache-line-size=N
--dcache-way=N
--dcache-cwf=on|off
--corrupt-caches
--intc-channel-bitw=N
--intc-level=N
--timer-channel-bitw=N

 note: most board-specific options can be used in board-neutral position
 where they are interpreted as session-specific or default settings.



-----Original Message-----
From: Frank Ch. Eigler [mailto:[hidden email]]
Sent: Thursday, January 12, 2006 2:39 AM
To: Subba Krishna M N
Cc: [hidden email]
Subject: Re: Need information about passing command line arguments.

Hi -

On Wed, Jan 11, 2006 at 12:01:11PM +0530, [hidden email] wrote:
> [...]
> ./sid -board=mm_MAX -load=hello.x -INITTIME
> considering the above example please let me know how to pass -INITTIME
> to the hello.x
> [...]

The code in sid/main/mainDynamic.cxx does not appear able to pass
simulated command line arguments to the gloss component (the
"command-line" attribute) the same way that the sid/bsp/configrun-sid
perl front-end did.  You may be able to simulate it with the more
general "-e" option, something like this:

./sid -board=mm_MAX -load=hello.x \
     -e 'set GLOSS-COMPONENT command-line -INITTIME'

You'd have to figure out the right GLOSS-COMPONENT name though,
perhaps from a prior run with "--save-temps".

- FChE






The information contained in this e-mail message and in any annexure is
confidential to the  recipient and may contain privileged information. If you are not
the intended recipient, please notify the sender and delete the message along with
any annexure. You should not disclose, copy or otherwise use the information contained
in the message or any annexure. Any views expressed in this e-mail are those of the
individual sender except where the sender specifically states them to be the views of
SoCrates Software India Pvt Ltd., Bangalore.
Reply | Threaded
Open this post in threaded view
|

RE: Need information about passing command line arguments.

mnskrishna
In reply to this post by Frank Ch. Eigler

Hi
I tried the following option again I'm getting errors

[root@fedora4 bin]# ./sid --board=mm_MAX --load=hello1.x -e 'set
sid-io-stdio command-line -INITTIME'
<literal>:1: component sid-io-stdio not found
Configuration error.  Aborting.

Regards,
Subbu


-----Original Message-----
From: Subba Krishna M N
Sent: Thursday, January 12, 2006 12:48 PM
To: 'Frank Ch. Eigler'
Cc: [hidden email]
Subject: FW: Need information about passing command line arguments.

Hi,
The following information from the directory share/sidcomp
Please let me know which is th glob-component?


[root@fedora4 sidcomp]# ls
bridge-blt.blt         hw-interrupt-arm_ref.txt        hw-rtc-sid.txt
sid-io-fileio.txt
bridge-tcl.tcl         hw-interrupt-cogent_cma222.txt
hw-uart-ns16550.txt      sid-io-socket.txt
bridge-tcl.txt         hw-interrupt-mep.txt
hw-visual-clock.tk       sid-io-stdio.txt
bridge-tk.tk           hw-lcd-char-display.txt
hw-visual-clock.txt      sid-sched.txt
hw-cache.txt           hw-lcd-hd44780u.txt             hw-visual-lcd.tk
sid-visual-sched.tk
hw-cpu-mep.txt         hw-lcd-t6963c.txt               hw-visual-lcd.txt
sw-debug-gdb.txt
hw-debug-mep.txt       hw-mapper-basic.txt
hw-visual-probe-bus.blt  sw-glue-attribbank.txt
hw-disk-ide.txt        hw-memory-flash.txt
hw-visual-probe-pin.tk   sw-load-elf.txt
hw-dma-mep.txt         hw-memory-ram_rom-basic.txt     hw-visual-tty.tk
sw-profile-gprof.txt
hw-glue-bus-mux.txt    hw-parport-ps_2.txt             sid-api-trace.tcl
hw-glue-probe-bus.txt  hw-remap_pause-arm_ref.txt
sid-control-cfgroot.txt
hw-glue-sequence.txt   hw-rtc-ds1x42.txt
sid-control-tksm.tk


Regards,
Subbu.










-----Original Message-----
From: Subba Krishna M N
Sent: Thursday, January 12, 2006 12:41 PM
To: 'Frank Ch. Eigler'
Cc: [hidden email]
Subject: FW: Need information about passing command line arguments.


Hi,
One more request how to find GLOSS-COMPONENT, I tried --save-temps it
gives help information related to options mentioned below, please let us
know what is GLOSS-COMPONENT?

I got information about gloss-component in the configrun-sid file


%gloss_comptype = (
                   "arm" => "sw-gloss-arm/angel",
                   "thumb" => "sw-gloss-arm/angel",
                   "x86" => "sw-gloss-generic/libgloss",
                   "mep" => "sw-gloss-generic/libgloss",
                   # INSERT NEW ENTRIES HERE
                   "m32r" => "sw-gloss-m32r/libgloss",
                   "xstormy16" => "sw-gloss-generic/libgloss",
                   );
I tried with following commands I'm getting error like

[root@fedora4 bin]# ./sid --board=mm_MAX --load=hello1.x -e 'set mep
ommand-line -INITTIME'
<literal>:1: component mep not found
Configuration error.  Aborting.


Regards,
Subbu.

./sid: option `--save-temps' requires an argument
Usage: sid OPTIONS [FILE] ...
Options:
-h, --help            Print this help
-v, --version         Print version
-n, --no-run          Load/check configuration but do not run simulation
-f FILE               Also read configuration FILE
-e LINE               Also do configuration LINE

All -b options are performed first, in sequence.
All -f/-e options are performed after -b options, in sequence.
FILE names supplied without -f are done last, in sequence.

--persistent          Run top-level loop indefinitely
--rc                  Pass stop code as simulator exit rc
--save-temps=FILE     Write config to FILE, '-' for stdout.
--wrap=COMPONENT      Turn on SID API tracing for COMPONENT
--verbose             Turn on run-time verbosity settings
--tksm                Add a an experimental Tk system monitor
--tksched             Add a simple Tk sim-scheduler controller
--board=BOARD         Instantiate builtin BOARD; remaining options
                      apply to most recently instantiated BOARD.
                      BOARD may be any of:
                         mm_MAX MeP custom board 'mm_MAX'

Board-specific options:
--cpu=CPU             Change board to use CPU
--load=FILE           Load FILE into board's memory
                      Sub options (comma separated):
                         bus=MAPPER   Load file into bus MAPPER
                         cpu=CPU      Set pc of cpu CPU on load
                         all-cpus     Shortcut for using all CPUs
--gloss               Give board a gloss (operating system)
--gdb=PORT            Give board a gdb stub on tcp port PORT
--engine=scache|pbb   Set board's engine type to scache or pbb
--sidrtc=ADDR         Add a real-time clock at address ADDR
--sidcodec=ADDR       Add an audio codec at address ADDR
--insn-count=COUNT    Set block of uninterrupted ticks for insns
--enable-warnings     Turn on CPU execution warnings
--final-insn-count    Turn on CPU instruction count summary
--trace-extract       Turn on CPU insn decode tracing
--trace-semantics     Turn on CPU execute tracing
--trace-disassemble   Turn on CPU execute disassembly
--trace-counter       Turn on CPU insn tracing
--trace-core          Turn on bus access tracing
--icache=TYPE         Put insn cache hw-cache-TYPE on board
--dcache=TYPE         Put data cache hw-cache-TYPE on board
                      e.g., direct/64kb/32, 4way/256kb/64/lru
--EB | --EL           Set powerup CPU mode to big/little endian
--gprof=FILE          Turn on GPROF profiling, collect in FILE
                      Sub option (comma separated):
                         cycles[=N]   collect data every N simulated
cycles,
                                      default N=1.
                         (if cycles is not specified, default to
                          collect data every Insn-count ticks.)
--memory-region=BASE,SIZE
                      Add RAM region from BASE to BASE+SIZE-1.
                      Sub options (comma separated):
                         bus=MAPPER   Attach memory to bus MAPPER
                         read-only    Make memory read-only
                         alias=BASE2  Add an alias at BASE2
                         file=NAME    Load/save memory from file
                         mmap         Memory map given file
                         latency=r:w  Set read, write latencies [0:0]
                         latency=rw   Set both latencies [0]
--ulog-level=LEVEL    Set the logging level for the current board
--ulog-mode=less|match|equal
                      Set the logging mode for the current board
--ulog-file=-|FILE    Set the log file name
--warn-write-to-code  Generate a warning when memory containing
executable code is written to
--no-warn-write-to-code  Do not generate a warning when memory
containing executable code is written to
--warn-write-to-rom   Generate a warning when read only memory is
written to
--allow-write-to-rom  Allow read only memory to be written to
--model-busses        Turn on bus arbitration modelling
--dsp-user-out        Display user written DSP trace output for
--trace-disassemble
--no-dsp-user-out     Display normal insn disassembly of DSP insns for
--trace-disassemble
--local-mem=START,SIZE,NAME[,api]
--global-mem=START,SIZE[,cached][,rom]
--shadow-mem=START,SIZE,BASE[,cached][,MODULE_NAME]
--biu-width=N
--dmac-channel-bitw=N
--dmac-rectangle
--dmac-no-rectangle
--insn=abs|ave|bit|clp|div|ldz|min|mul|sat
--no-insn=abs|ave|bit|clp|div|ldz|min|mul|sat
--imem-size=N
--dmem-size=N
--dmem-bank-num=N
--dmem-fixed-start-address
--dmem-no-fixed-start-address
--icache-size=N
--icache-line-size=N
--icache-way=N
--icache-cwf=on|off
--dcache-size=N
--dcache-line-size=N
--dcache-way=N
--dcache-cwf=on|off
--corrupt-caches
--intc-channel-bitw=N
--intc-level=N
--timer-channel-bitw=N

 note: most board-specific options can be used in board-neutral position
 where they are interpreted as session-specific or default settings.



-----Original Message-----
From: Frank Ch. Eigler [mailto:[hidden email]]
Sent: Thursday, January 12, 2006 2:39 AM
To: Subba Krishna M N
Cc: [hidden email]
Subject: Re: Need information about passing command line arguments.

Hi -

On Wed, Jan 11, 2006 at 12:01:11PM +0530, [hidden email] wrote:
> [...]
> ./sid -board=mm_MAX -load=hello.x -INITTIME
> considering the above example please let me know how to pass -INITTIME
> to the hello.x
> [...]

The code in sid/main/mainDynamic.cxx does not appear able to pass
simulated command line arguments to the gloss component (the
"command-line" attribute) the same way that the sid/bsp/configrun-sid
perl front-end did.  You may be able to simulate it with the more
general "-e" option, something like this:

./sid -board=mm_MAX -load=hello.x \
     -e 'set GLOSS-COMPONENT command-line -INITTIME'

You'd have to figure out the right GLOSS-COMPONENT name though,
perhaps from a prior run with "--save-temps".

- FChE






The information contained in this e-mail message and in any annexure is
confidential to the  recipient and may contain privileged information. If you are not
the intended recipient, please notify the sender and delete the message along with
any annexure. You should not disclose, copy or otherwise use the information contained
in the message or any annexure. Any views expressed in this e-mail are those of the
individual sender except where the sender specifically states them to be the views of
SoCrates Software India Pvt Ltd., Bangalore.
Reply | Threaded
Open this post in threaded view
|

RE: Need information about passing command line arguments.

mnskrishna
In reply to this post by Frank Ch. Eigler

Hi Frank,
I could not found any gloss-component, I tried with following command to
find the gloss-component

[root@fedora4 bin]# ./siddoc -l sw
sw-debug-gdb
sw-glue-attribbank
sw-load-elf
sw-profile-gprof





[root@fedora4 bin]# ./siddoc -l sw
sw-debug-gdb
sw-glue-attribbank
sw-load-elf
sw-profile-gprof
[root@fedora4 bin]# ./siddoc -l hw
hw-cache-basic hw-cache-buffer-8
hw-cpu-mep
hw-debug-mep
hw-disk-ide
hw-dma-mep
hw-glue-bus-mux
hw-glue-probe-bus
hw-glue-sequence hw-glue-sequence-1 hw-glue-sequence-2
hw-glue-sequence-8
hw-interrupt-arm/ref
hw-interrupt-cogent/cma222
hw-interrupt-mep hw-interrupt-mep-1 hw-interrupt-mep-2
hw-interrupt-mep-3 hw-interrupt-mep-4 hw-interrupt-mep-5
hw-interrupt-mep-6 hw-interrupt-mep-7 hw-interrupt-mep-8
hw-interrupt-mep-9 hw-interrupt-mep-10 hw-interrupt-mep-11
hw-interrupt-mep-12 hw-interrupt-mep-13 hw-interrupt-mep-14
hw-interrupt-mep-15 hw-interrupt-mep-16 hw-interrupt-mep-17
hw-interrupt-mep-18 hw-interrupt-mep-19 hw-interrupt-mep-20
hw-interrupt-mep-21 hw-interrupt-mep-22 hw-interrupt-mep-23
hw-interrupt-mep-24 hw-interrupt-mep-25 hw-interrupt-mep-26
hw-interrupt-mep-27 hw-interrupt-mep-28 hw-interrupt-mep-29
hw-interrupt-mep-30 hw-interrupt-mep-31 hw-interrupt-mep-32
hw-lcd-char-display
hw-lcd-hd44780u hw-lcd-hd44780u-a00 hw-lcd-hd44780u-a02
hw-lcd-t6963c hw-lcd-t6963c-0101 hw-lcd-t6963c-0201
hw-mapper-basic hw-mapper-transparent
hw-memory-flash hw-memory-flash-atmel hw-memory-flash-at29
hw-memory-flash-at29c256 hw-memory-flash-at29lv256
hw-memory-flash-at29c257 hw-memory-flash-at29c512
hw-memory-flash-at29lv512 hw-memory-flash-at29c010a
hw-memory-flash-at29lv010a hw-memory-flash-at29bv010a
hw-memory-flash-at29c020 hw-memory-flash-at29lv020
hw-memory-flash-at29bv020 hw-memory-flash-at29c040
hw-memory-flash-at29lv040 hw-memory-flash-at29bv040
hw-memory-flash-at29c040a hw-memory-flash-at29lv040a
hw-memory-flash-at29bv040a hw-memory-flash-amd hw-memory-flash-am29
hw-memory-flash-am29f010a hw-memory-flash-am29lv010b
hw-memory-flash-am29lv040b hw-memory-flash-am29lv081b
hw-memory-flash-am29lv017b hw-memory-flash-am29lv033c
hw-memory-ram/rom-basic
hw-parport-ps/2
hw-remap/pause-arm/ref
hw-rtc-ds1x42 hw-rtc-ds1642 hw-rtc-ds1742
hw-rtc-sid
hw-uart-ns16550
hw-visual-clock
hw-visual-lcd


please let me know how to find the gloss-component?

Regards,
Subbu.
-----Original Message-----
From: Frank Ch. Eigler [mailto:[hidden email]]
Sent: Thursday, January 12, 2006 2:39 AM
To: Subba Krishna M N
Cc: [hidden email]
Subject: Re: Need information about passing command line arguments.

Hi -

On Wed, Jan 11, 2006 at 12:01:11PM +0530, [hidden email] wrote:
> [...]
> ./sid -board=mm_MAX -load=hello.x -INITTIME
> considering the above example please let me know how to pass -INITTIME
> to the hello.x
> [...]

The code in sid/main/mainDynamic.cxx does not appear able to pass
simulated command line arguments to the gloss component (the
"command-line" attribute) the same way that the sid/bsp/configrun-sid
perl front-end did.  You may be able to simulate it with the more
general "-e" option, something like this:

./sid -board=mm_MAX -load=hello.x \
     -e 'set GLOSS-COMPONENT command-line -INITTIME'

You'd have to figure out the right GLOSS-COMPONENT name though,
perhaps from a prior run with "--save-temps".

- FChE






The information contained in this e-mail message and in any annexure is
confidential to the  recipient and may contain privileged information. If you are not
the intended recipient, please notify the sender and delete the message along with
any annexure. You should not disclose, copy or otherwise use the information contained
in the message or any annexure. Any views expressed in this e-mail are those of the
individual sender except where the sender specifically states them to be the views of
SoCrates Software India Pvt Ltd., Bangalore.
Reply | Threaded
Open this post in threaded view
|

RE: Need information about passing command line arguments.

mnskrishna
In reply to this post by Frank Ch. Eigler



Hi Frank,
I could not found any gloss-component, I tried with following command to
find the gloss-component

[root@fedora4 bin]# siddoc -l sid
hw-rtc-sid
sid-control-cfgroot
sid-io-fileio
sid-io-socket sid-io-socket-client sid-io-socket-server
sid-io-stdio
sid-sched sid-sched-sim sid-sched-host sid-sched-host-accurate

please let me know how to find the gloss-component?

Regards,
Subbu.
-----Original Message-----
From: Frank Ch. Eigler [mailto:[hidden email]]
Sent: Thursday, January 12, 2006 2:39 AM
To: Subba Krishna M N
Cc: [hidden email]
Subject: Re: Need information about passing command line arguments.

Hi -

On Wed, Jan 11, 2006 at 12:01:11PM +0530, [hidden email] wrote:
> [...]
> ./sid -board=mm_MAX -load=hello.x -INITTIME
> considering the above example please let me know how to pass -INITTIME
> to the hello.x
> [...]

The code in sid/main/mainDynamic.cxx does not appear able to pass
simulated command line arguments to the gloss component (the
"command-line" attribute) the same way that the sid/bsp/configrun-sid
perl front-end did.  You may be able to simulate it with the more
general "-e" option, something like this:

./sid -board=mm_MAX -load=hello.x \
     -e 'set GLOSS-COMPONENT command-line -INITTIME'

You'd have to figure out the right GLOSS-COMPONENT name though,
perhaps from a prior run with "--save-temps".

- FChE






The information contained in this e-mail message and in any annexure is
confidential to the  recipient and may contain privileged information. If you are not
the intended recipient, please notify the sender and delete the message along with
any annexure. You should not disclose, copy or otherwise use the information contained
in the message or any annexure. Any views expressed in this e-mail are those of the
individual sender except where the sender specifically states them to be the views of
SoCrates Software India Pvt Ltd., Bangalore.
Reply | Threaded
Open this post in threaded view
|

Re: Need information about passing command line arguments.

Frank Ch. Eigler
In reply to this post by mnskrishna
Hi -

On Thu, Jan 12, 2006 at 11:22:42AM +0530, [hidden email] wrote:
> One more request how to find GLOSS-COMPONENT, I tried --save-temps it
> gives help information related to options mentioned below
> [...]
> --save-temps=FILE     Write config to FILE, '-' for stdout.
> [...]

As the option says, you have to give "--save-temps" an argument
to specify where the sid configuration file should be written to.

> please let us know what is GLOSS-COMPONENT?

In general, a GLOSS sid component emulates the system call / OS layer
by intercepting CPUs' trap instructions.  Such a component should be
configured into the simulation in order for it to run "hosted" C
programs that use stdio, argv[], and so on.  If the "--board=MM_.."
does not already have it, you may have to add the sid "--gloss"
option, if that is a supported configuration for the MM* (mep)?
family.

For "GLOSS-COMPONENT" in my command line example, substitute the
reference name of the gloss component instance that you will find in
the sid configuration file, the one hooked up to the CPU.

- FChE
Reply | Threaded
Open this post in threaded view
|

RE: Need information about passing command line arguments.

mnskrishna
In reply to this post by Frank Ch. Eigler

Hi,
I tried with the following commands still I'm getting same error,

[root@fedora4 bin]# ./sid --board=mm_MAX --load=hello1.x -e 'set
--gloss=sw_gloss_generic/libgloss command-line -INITTIME'
<literal>:1: component --gloss=sw_gloss_generic/libgloss not found
Configuration error.  Aborting.

[root@fedora4 bin]# ./sid --board=mm_MAX --load=hello1.x -e 'set
--gloss=hw_cpu_mep command-line -INITTIME'
<literal>:1: component --gloss=hw_cpu_mep not found
Configuration error.  Aborting.


Please find the attachment file contains sid configuration file.
Let me know anything wrong in the above mentioned command?

Regards,
Subbu.


-----Original Message-----
From: Frank Ch. Eigler [mailto:[hidden email]]
Sent: Thursday, January 12, 2006 6:45 PM
To: Subba Krishna M N
Cc: [hidden email]
Subject: Re: Need information about passing command line arguments.

Hi -

On Thu, Jan 12, 2006 at 11:22:42AM +0530, [hidden email] wrote:
> One more request how to find GLOSS-COMPONENT, I tried --save-temps it
> gives help information related to options mentioned below
> [...]
> --save-temps=FILE     Write config to FILE, '-' for stdout.
> [...]

As the option says, you have to give "--save-temps" an argument
to specify where the sid configuration file should be written to.

> please let us know what is GLOSS-COMPONENT?

In general, a GLOSS sid component emulates the system call / OS layer
by intercepting CPUs' trap instructions.  Such a component should be
configured into the simulation in order for it to run "hosted" C
programs that use stdio, argv[], and so on.  If the "--board=MM_.."
does not already have it, you may have to add the sid "--gloss"
option, if that is a supported configuration for the MM* (mep)?
family.

For "GLOSS-COMPONENT" in my command line example, substitute the
reference name of the gloss component instance that you will find in
the sid configuration file, the one hooked up to the CPU.

- FChE







The information contained in this e-mail message and in any annexure is
confidential to the  recipient and may contain privileged information. If you are not
the intended recipient, please notify the sender and delete the message along with
any annexure. You should not disclose, copy or otherwise use the information contained
in the message or any annexure. Any views expressed in this e-mail are those of the
individual sender except where the sender specifically states them to be the views of
SoCrates Software India Pvt Ltd., Bangalore.

configrun-sid (59K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Need information about passing command line arguments.

Frank Ch. Eigler
Hi -

> I tried with the following commands still I'm getting same error,
>
> [root@fedora4 bin]# ./sid --board=mm_MAX --load=hello1.x -e 'set
> --gloss=sw_gloss_generic/libgloss command-line -INITTIME'
> [...]

The sid usage message specifically lists "--gloss" as a top-level
option.  What you need to do is something like:

% sid --board=mm_MAX --gloss --load=hello1.x --save-temps=FILE -n
% grep gloss FILE  # find the reference name of the gloss component
% sid -f FILE -e 'set REFERENCENAME command-line -INITTIME"

Please take some time and read through the documentation on sid
configuration concepts.


> [...]
> Please find the attachment file contains sid configuration file.

No, it was the perl script that is one (old) way of generating sid
configuration files.  This script is not used for the mep target.

- FChE