This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: serial console output problem


Hello,

As I asked a question that brought a similar answer, I can tell you that
this is GDB that is talking to you.

Here is a copy of the thread :





Yes you are right, as Andrew Lunn said in a previous post :

 "Its the gdb stub trying to talk to gdb. Redboot has crashed and its
trying to tell gdb where its crashed. Use gdb with the redboot elf
image and it will tell you more about the crash."

And your are right again Redboot run on a specific Arm
Chip.
But as I'm connected with a terminal to send
commands to redboot, if I connect to a JTAG to
talk with GDB, Redboot is frozen and do not respond
any more.

But on top of this, this could be because I changed the
flash driver and made a fis init.

Thanks for the gdb decoding ... it helps

----- Original Message ----- 
From: "Gary Thomas" <gary@mlbassoc.com>
To: "David Lewin" <david.lewin@europe-technologies.com>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Wednesday, June 30, 2004 3:51 PM
Subject: Re: [ECOS] GDB frame


> On Wed, 2004-06-30 at 07:48, David Lewin wrote:
> > Does someone knows how to retrieve a human
> > readable string instead a gdb like one, on error
> > I always have an answer like this from redboot :
> >
> > $T0a0f:00000801;0d:f8050060;#4b
>
> Sadly, this is architecture specific.
>
> My guess is that you're running on ARM.  IIRC, this says that
> register 15 (PC?) is at 0x01080000 and 13 (SP?) is 0x600005F8.
> (I might have those swapped).
>
> Anyway, the best way to attack this is to disconnect minicom (or
> whatever you use) and then attach via GDB.  For example:
>   (gdb) tar rem /dev/ttyS0
>   (gdb) info reg
>   (gdb) bt
>
> -- 
> Gary Thomas <gary@mlbassoc.com>
> MLB Associates

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
___________________________________________________________________
----- Original Message ----- 
From: "hua liu" <rongye_liu@hotmail.com>
To: <ecos-discuss@sources.redhat.com>
Sent: Thursday, July 22, 2004 12:08 PM
Subject: [ECOS] serial console output problem


> hi,
> I have a problem when i port ecos to my S3C4510B platform.I use the SNDS
> default template.When I run the "hello.c",it can run normally,the console
> device is "/dev/ttydiag".
>
> But when I use the "/dev/tty0" as console device, the hello.c cannt
run.The
> console ouput is "$T050f:0200ffe3;0d:f0320500;#b3".I use the ymodem load
> the execable file.
>
> What is this? How solve it?
> --------------------------------------------------------------------------
------
>
> I use the GUI configtool to modify this:
> In "Serial device drivers",
> "Console device name" is "dev/tty0"
> "TTY mode channel #0" is enable
> "TTY mode channel #1" is enable
> "TTY mode channel #2" is enable
> "Hardware serial device drivers" is enable
> In "ISO C library",the "Default console device" is "/dev/tty0"
> --------------------------------------------------------------------------
--------
>
> The ram.ldi file is:
>
> MEMORY
> {
>     ram : ORIGIN = 0x000000, LENGTH = 0x01000000
>     rom : ORIGIN = 0x1000000, LENGTH = 0x200000
> }
> SECTIONS
> {
>     SECTIONS_BEGIN
>     SECTION_fixed_vectors (ram, 0x200, LMA_EQ_VMA)
>     SECTION_rom_vectors (ram, 0x00040000, LMA_EQ_VMA)
>     SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_rodata (ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_rodata1 (ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_gcc_except_table (ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_data (ram, ALIGN (0x4), LMA_EQ_VMA)
>     SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)
>     CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
>     SECTIONS_END
> }
> --------------------------------------------------------------------------
-------------
>
> The terminal console out is:
>
> RedBoot(tm) bootstrap and debug environment [ROM]
> Non-certified release, version UNKNOWN - built 20:09:10, Jul 20 2004
>
> Platform: Samsung SNDS (ARM 7TDMI)
> Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
>
> RAM: 0x00000000-0x01000000, [0x00024e80-0x00fed000] available
> FLASH: 0x01000000 - 0x01200000, 32 blocks of 0x00010000 bytes each.
> RedBoot> load -v -m ymodem
> CCCEntry point: 0x00040040, address range: 0x00040000-0x00050054
> xyzModem - CRC mode, 2(SOH)/185(STX)/0(CAN) packets, 5 retries
> RedBoot> go
> $T050f:0200ffe3;0d:f0320500;#b3$T050f:0200ffe3;0d:f0320500;#b3
>
> _________________________________________________________________
> 享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com
>
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]