This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
serial console output problem
- From: "hua liu" <rongye_liu at hotmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 22 Jul 2004 18:08:55 +0800
- Subject: [ECOS] serial console output problem
- Bcc:
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