public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] loading file uisng serial port
@ 2005-08-29 12:15 rpai
  2005-08-29 13:36 ` Edgar Grimberg
       [not found] ` <1125317551.29485.8.camel@hermes>
  0 siblings, 2 replies; 4+ messages in thread
From: rpai @ 2005-08-29 12:15 UTC (permalink / raw)
  To: ecos-discuss; +Cc: andrew

hi ,

    I was trying withserial port. i too serached the mailing list for a
solution and didnt find any . Like using hyperterminal was there but
using minicom wasnt  or any sort in linux.

    I did was from the host side


This was done using gdb . Is this the correct way . I think my serial
connection is working .

***************************************************88

[root@localhost ~]# i386-elf-gdb
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=i386-elf".
(gdb) set baudrate 38400
No symbol table is loaded.  Use the "file" command.
(gdb) set remotebaud 38400
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Couldn't establish connection to remote target
Malformed response to offset query, timeout
(gdb) q
[root@localhost ~]# i386-elf-gdb
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=i386-elf".
(gdb) set remotebaud 38400
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
0x0000dcec in ?? ()
(gdb) load /root/hello1
Loading section .text, size 0xa661 lma 0x108000
Loading section .rodata, size 0x59e lma 0x112668
Loading section .data, size 0x3b8 lma 0x112c08
Start address 0x108000, load size 44983
Transfer rate: 27681 bits/sec, 316 bytes/write.
(gdb) go
Undefined command: "go".  Try "help".
(gdb) continue
Continuing.
Hello, eCos world!

******************************************


  But when i try from the redboot by giving  " load -m xmodem "
 its showing. " CCCCCCCCCCCCCCCCCC "

  I think it is not necessary to give any file name. Is it the right way .
 the file hello1 is in  "/root " folder. sall i specify the path.

  thanks
     Pai




>hi ,

>     Did any body loaded an application using serial port . Is it nec
>essary to use minicom . Can any one give me deatil of how to do it,
>any links also will be useful .

>    thanks
>      Pai





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

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

* Re: [ECOS] loading file uisng serial port
  2005-08-29 12:15 [ECOS] loading file uisng serial port rpai
@ 2005-08-29 13:36 ` Edgar Grimberg
       [not found] ` <1125317551.29485.8.camel@hermes>
  1 sibling, 0 replies; 4+ messages in thread
From: Edgar Grimberg @ 2005-08-29 13:36 UTC (permalink / raw)
  To: rpai; +Cc: ecos-discuss

try reading the screen when using minicom... in the lower part there is 
an indication... CTRL+A Z for help

Edgar

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

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

* Re: [ECOS] loading file uisng serial port
       [not found] ` <1125317551.29485.8.camel@hermes>
@ 2005-08-29 19:07   ` rpai
  2005-08-30  1:56     ` [ECOS] " Grant Edwards
  0 siblings, 1 reply; 4+ messages in thread
From: rpai @ 2005-08-29 19:07 UTC (permalink / raw)
  To: ecos-discuss; +Cc: Gary Thomas


 hi ,

   I gave the following command " load -m xmodem " in redboot and when
CCCCCC...
was comming i went to ny host system and

i set up my minicom as the file is in " /root " file name hello1

 wht I did was ... in mincom setup was.......
  1) minicom
  2) as i have the port at /dev/ttyS0 I set it as.
 	^A Z
      I pressed 'o' ( to configure )
		for "filenames and path" in it 2nd one B) the upload directory as " /root "
                for " filetransfer and protocols" the Mth i gave " C "
                for "serial port setup" a serial device made to "
/dev/ttyS0 "
                and saved as dfl
   3) pressed ^A Z
     		for 's' for send file
		selected xmodem
		selected the file hello1

    then this was the result ...........



Press
CTR&#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;[xmodem
upload - Press CTRL-C to
quit]&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
         &#9474;Sending hello1, 5072 blocks: Give your local XMODEM
receive c&#9474;
         &#9474;ommand now.                                               
  &#9474;
         &#9474;Xmodem sectors/kbytes sent:   0/ 0kRetry 0: Timeout on
sector&#9474;
         &#9474; ACK                                                      
  &#9474;
         &#9474;Retry 0: Timeout on sector ACK                            
  &#9474;
         &#9474;Retry 0: Timeout on sector ACK                            
  &#9474;
         &#9474;

  Is there any changes I have to make ......

 plze help me

  Thanks
    Pai


















> On Mon, 2005-08-29 at 17:27 +0530, rpai@it.iitb.ac.in wrote:
>> hi ,
>>
>>     I was trying withserial port. i too serached the mailing list for a
>> solution and didnt find any . Like using hyperterminal was there but
>> using minicom wasnt  or any sort in linux.
>>
>>     I did was from the host side
>>
>>
>> This was done using gdb . Is this the correct way . I think my serial
>> connection is working .
>>
>> ***************************************************88
>>
>> [root@localhost ~]# i386-elf-gdb
>> GNU gdb 5.3
>> Copyright 2002 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and you
>> are
>> welcome to change it and/or distribute copies of it under certain
>> conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB.  Type "show warranty" for
>> details.
>> This GDB was configured as "--host=i686-pc-linux-gnu --target=i386-elf".
>> (gdb) set baudrate 38400
>> No symbol table is loaded.  Use the "file" command.
>> (gdb) set remotebaud 38400
>> (gdb) target remote /dev/ttyS0
>> Remote debugging using /dev/ttyS0
>> Ignoring packet error, continuing...
>> Ignoring packet error, continuing...
>> Ignoring packet error, continuing...
>> Couldn't establish connection to remote target
>> Malformed response to offset query, timeout
>> (gdb) q
>> [root@localhost ~]# i386-elf-gdb
>> GNU gdb 5.3
>> Copyright 2002 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and you
>> are
>> welcome to change it and/or distribute copies of it under certain
>> conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB.  Type "show warranty" for
>> details.
>> This GDB was configured as "--host=i686-pc-linux-gnu --target=i386-elf".
>> (gdb) set remotebaud 38400
>> (gdb) target remote /dev/ttyS0
>> Remote debugging using /dev/ttyS0
>> 0x0000dcec in ?? ()
>> (gdb) load /root/hello1
>> Loading section .text, size 0xa661 lma 0x108000
>> Loading section .rodata, size 0x59e lma 0x112668
>> Loading section .data, size 0x3b8 lma 0x112c08
>> Start address 0x108000, load size 44983
>> Transfer rate: 27681 bits/sec, 316 bytes/write.
>> (gdb) go
>> Undefined command: "go".  Try "help".
>> (gdb) continue
>> Continuing.
>> Hello, eCos world!
>>
>> ******************************************
>
> This seems to have worked just fine.
>
>>
>>
>>   But when i try from the redboot by giving  " load -m xmodem "
>>  its showing. " CCCCCCCCCCCCCCCCCC "
>>
>
> At this point (while the 'C' characters are coming out), you need to
> tell your terminal emulator to send the file using X-modem.  In minicom,
> this is done using the ^A-S menu, with hyperterm it's a GUI menu
> selection.
>
>>   I think it is not necessary to give any file name. Is it the right way
>> .
>>  the file hello1 is in  "/root " folder. sall i specify the path.
>>
>>   thanks
>>      Pai
>>
>>
>>
>>
>> >hi ,
>>
>> >     Did any body loaded an application using serial port . Is it nec
>> >essary to use minicom . Can any one give me deatil of how to do it,
>> >any links also will be useful .
>>
>> >    thanks
>> >      Pai
>>
>>
>>
>>
>
> --
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
>


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

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

* [ECOS] Re: loading file uisng serial port
  2005-08-29 19:07   ` rpai
@ 2005-08-30  1:56     ` Grant Edwards
  0 siblings, 0 replies; 4+ messages in thread
From: Grant Edwards @ 2005-08-30  1:56 UTC (permalink / raw)
  To: ecos-discuss

In gmane.os.ecos.general, you wrote:
>
>  hi ,
>
>    I gave the following command " load -m xmodem " in redboot and when
> CCCCCC...
> was comming i went to ny host system and
>
> i set up my minicom as the file is in " /root " file name hello1

[...]

I never had much luck with minicom.  I always found the UI
excruciatingly painful, and there were times when it didn't
seem to configure the serial port properly.  Sending a plain
text file never worked right for me either.

I always used Kermit and the "sx" program, and never had any
problems.

-- 
Grant Edwards                   grante             Yow!  I want another
                                  at               RE-WRITE on my CEASAR
                               visi.com            SALAD!!

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

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

end of thread, other threads:[~2005-08-29 19:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-29 12:15 [ECOS] loading file uisng serial port rpai
2005-08-29 13:36 ` Edgar Grimberg
     [not found] ` <1125317551.29485.8.camel@hermes>
2005-08-29 19:07   ` rpai
2005-08-30  1:56     ` [ECOS] " Grant Edwards

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).