public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [ECOS] Unable to run kernel test program on Samsung SNDS!
@ 2003-11-25  2:28 RandyLin
  2003-11-25  3:47 ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: RandyLin @ 2003-11-25  2:28 UTC (permalink / raw)
  To: ecos-discuss


The default value of CYGSEM_HAL_DIAG_MANGLER is GDB.
Yes, both of application and redboot set this to GDB.
Is this the reason that cause the ap(test program) can run on
arm-elf-gdb but fail on redboot "load" command?
So, I set CYGSEM_HAL_DIAG_MANGLER to NONE and recompile test program.
test program can run on redboot "load" command, but fail on arm-elf-gdb
Is this the correct result?
Can I have the same image that run on both?
Thanks!

      randy




> RedBoot> go 0x50040
> $O504153533A3C42696E6172792053656D6170686F72652030204F4B3E0A#9E
> =========================================

This is an O format text string which gdb will decode and display. For
some reason your application/redboot thinks it is still talking to
gdb and so is mangling the text.

Have you set CYGSEM_HAL_DIAG_MANGLER in either your application or
Redboot?

      Andrew

--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss







-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Unable to run kernel test program on Samsung SNDS!
  2003-11-25  2:28 [ECOS] Unable to run kernel test program on Samsung SNDS! RandyLin
@ 2003-11-25  3:47 ` Gary Thomas
  0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2003-11-25  3:47 UTC (permalink / raw)
  To: RandyLin; +Cc: ecos-discuss

On Mon, 2003-11-24 at 19:28, RandyLin@mxic.com.tw wrote:
> The default value of CYGSEM_HAL_DIAG_MANGLER is GDB.
> Yes, both of application and redboot set this to GDB.
> Is this the reason that cause the ap(test program) can run on
> arm-elf-gdb but fail on redboot "load" command?
> So, I set CYGSEM_HAL_DIAG_MANGLER to NONE and recompile test program.
> test program can run on redboot "load" command, but fail on arm-elf-gdb
> Is this the correct result?
> Can I have the same image that run on both?
> Thanks!

This should not be set to anything for "user" programs.  
If things are configured properly, the application program will
inherit the I/O in the mode that it was in when the program starts.
Thus, if you use RedBoot 'load' and 'go' commands, you get plain,
non-mangled output.  If you are using GDB, you get GDB mangled output.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Unable to run kernel test program on Samsung SNDS!
@ 2003-11-26  6:51 RandyLin
  0 siblings, 0 replies; 5+ messages in thread
From: RandyLin @ 2003-11-26  6:51 UTC (permalink / raw)
  To: ecos-discuss


I check the ecos-2.0-ref-letter.pdf, it says
==========================
Console output configuration is either inherited from the ROM monitor
launching the application, or it is speci-
fied by the application. This is controlled by the new option
CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE
which defaults to enabled when the configuration is set to use a ROM
monitor.
==========================
but in hal_arm_snds.cdl, there is no cdl_option for
CYGSEM_HAL_USE_ROM_MONITOR
(hal_arm_at91.cdl have this cdl_option), maybe it need to fixed? I am not
sure......
I add this option and recompile the redboot and kernel test program.
It's happy that redboot[ROMRAM] can use both way to run the test program,
but it's sad that redboot[ROM] fail on both.
can anyone tell me why?



                                                                                                                    
                      Gary Thomas                                                                                   
                      <gary@mlbassoc.com>                收件人: RandyLin@mxic.com.tw                              
                      寄件人:                           副本抄送:     ecos-discuss@sources.redhat.com             
                      ecos-discuss-owner@sources         主旨:   Re: [ECOS] Unable to run kernel test program on   
                      .redhat.com                        Samsung SNDS!                                              
                                                                                                                    
                                                                                                                    
                      2003/11/25 11:47 AM                                                                           
                                                                                                                    
                                                                                                                    



On Mon, 2003-11-24 at 19:28, RandyLin@mxic.com.tw wrote:
> The default value of CYGSEM_HAL_DIAG_MANGLER is GDB.
> Yes, both of application and redboot set this to GDB.
> Is this the reason that cause the ap(test program) can run on
> arm-elf-gdb but fail on redboot "load" command?
> So, I set CYGSEM_HAL_DIAG_MANGLER to NONE and recompile test program.
> test program can run on redboot "load" command, but fail on arm-elf-gdb
> Is this the correct result?
> Can I have the same image that run on both?
> Thanks!

This should not be set to anything for "user" programs.
If things are configured properly, the application program will
inherit the I/O in the mode that it was in when the program starts.
Thus, if you use RedBoot 'load' and 'go' commands, you get plain,
non-mangled output.  If you are using GDB, you get GDB mangled output.

--
Gary Thomas <gary@mlbassoc.com>
MLB Associates


--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Unable to run kernel test program on Samsung SNDS!
  2003-11-24  9:30 RandyLin
@ 2003-11-24 10:52 ` Andrew Lunn
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Lunn @ 2003-11-24 10:52 UTC (permalink / raw)
  To: RandyLin; +Cc: ecos-discuss

> RedBoot> go 0x50040
> $O504153533A3C42696E6172792053656D6170686F72652030204F4B3E0A#9E
> =========================================

This is an O format text string which gdb will decode and display. For
some reason your application/redboot thinks it is still talking to
gdb and so is mangling the text.

Have you set CYGSEM_HAL_DIAG_MANGLER in either your application or
Redboot?

      Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ECOS] Unable to run kernel test program on Samsung SNDS!
@ 2003-11-24  9:30 RandyLin
  2003-11-24 10:52 ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: RandyLin @ 2003-11-24  9:30 UTC (permalink / raw)
  To: ecos-discuss

I can use arm-elf-gdb to download bin_sem0(kernel test program), and works
fine.
but when I use redboot[ROM] command "load -m ymodem", program can't run
========================================
Platform: Samsung SNDS (ARM 7TDMI)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x01000000, 0x00026628-0x01000000 available
RedBoot> load -m ymodem
CCCCCCCEntry point: 0x00050040, address range: 0x00050000-0x00056eb0
xyzModem - CRC mode, 2(SOH)/706(STX)/0(CAN) packets, 10 retries
RedBoot> go 0x50040
$O504153533A3C42696E6172792053656D6170686F72652030204F4B3E0A#9E
=========================================
am i missing something?
Thanks





-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-11-26  6:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25  2:28 [ECOS] Unable to run kernel test program on Samsung SNDS! RandyLin
2003-11-25  3:47 ` Gary Thomas
  -- strict thread matches above, loose matches on Subject: below --
2003-11-26  6:51 RandyLin
2003-11-24  9:30 RandyLin
2003-11-24 10:52 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).