public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [ECOS] How to connect RedBoot via Telnet running application
@ 2009-10-16 15:50 m mariga
  2009-10-21  0:10 ` Jonathan Larmour
  0 siblings, 1 reply; 8+ messages in thread
From: m mariga @ 2009-10-16 15:50 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

Hello,Gary,and everyone,

I am sorry I forgot ecos-discuss ,so I resend almost same mail.

Gary wrote
>> I'd like to connect to RedBoot via Telnet during target's running net
>> application.
>> I tried to run nc_test_slave program as application and connect to
>> RedBoot via Telnet from host's cygwin.
>> The result is below.
>>
>> $ telnet 172.16.1.200 9000
>> Trying 172.16.1.200...
>> telnet: Unable to connect to remote host: Connection refused
>   <...snip>
>
> Once your application is started, RedBoot is no longer available.
>
> Why are you trying to do this?
>

 I would like to load new application object to target using RedBoot via 
Telnet from host PC during target's application running.

I also like to use RedBoot' monitor functions like "dump".

Is it impossible ?
I got an impression from Anthony J. Massa's book that if setted two
 different IP addresses between RedBoot and application,I could connect to
 RedBoot via Telnet during application running. Am I mistaken ?

 m mariga





-- 
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] 8+ messages in thread

* Re: [ECOS] How to connect RedBoot via Telnet running application
  2009-10-16 15:50 [ECOS] How to connect RedBoot via Telnet running application m mariga
@ 2009-10-21  0:10 ` Jonathan Larmour
  0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Larmour @ 2009-10-21  0:10 UTC (permalink / raw)
  To: m mariga; +Cc: ecos-discuss

m mariga wrote:
> Hello,Gary,and everyone,
> 
> I am sorry I forgot ecos-discuss ,so I resend almost same mail.
> 
> Gary wrote
> 
>>> I'd like to connect to RedBoot via Telnet during target's running net
>>> application.
>>> I tried to run nc_test_slave program as application and connect to
>>> RedBoot via Telnet from host's cygwin.
>>> The result is below.
>>>
>>> $ telnet 172.16.1.200 9000
>>> Trying 172.16.1.200...
>>> telnet: Unable to connect to remote host: Connection refused
>>
>>   <...snip>
>>
>> Once your application is started, RedBoot is no longer available.
>>
>> Why are you trying to do this?
>>
> 
> I would like to load new application object to target using RedBoot via 
> Telnet from host PC during target's application running.
> 
> I also like to use RedBoot' monitor functions like "dump".
> 
> Is it impossible ?

Once the eCos application takes over, the RedBoot command line can't be used.

> I got an impression from Anthony J. Massa's book that if setted two
> different IP addresses between RedBoot and application,I could connect to
> RedBoot via Telnet during application running. Am I mistaken ?

If you connected to RedBoot using GDB in order to load and run your 
program you can interrupt it while it's running - that's because the eCos 
build will permit RedBoot to take over for the purposes of GDB debugging.

I think for what you want to do, using GDB will work best for you.

Jifl
-- 
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine

-- 
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] 8+ messages in thread

* Re: [ECOS] How to connect RedBoot via Telnet running application
  2009-10-16 16:43                                       ` m mariga
@ 2009-10-16 16:54                                         ` Gary Thomas
  0 siblings, 0 replies; 8+ messages in thread
From: Gary Thomas @ 2009-10-16 16:54 UTC (permalink / raw)
  To: m mariga; +Cc: eCos Discussion

On 10/16/2009 10:43 AM, m mariga wrote:
> Hello,Gary,and everyone,
>
> I am very sorry.
> I dare your anger for my obstination,but I must confirm next point.
>
> Gary wrote,
>>> I would like to load new application object to target using RedBoot via
>>> Telnet from host PC during target's application running.
>>> Is it impossible ?
>>
>> It is not possible. As I said, once your application is running,
>> RedBoot is out of the picture.
>>
>
> Am I right in getting you that even I use BOOTP or DHCP to get dynamic
> IP address for application and assign other staic IP address for
> RedBoot,I could not connect to RedBoot via Telnet during application
> running ?

Once your application starts, RedBoot is GONE.  The only way
to return to it is to exit your application, typically by
resetting the hardware.

-- 
------------------------------------------------------------
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] 8+ messages in thread

* Re: [ECOS] How to connect RedBoot via Telnet running application
  2009-10-16 15:40                                     ` Gary Thomas
  2009-10-16 16:11                                       ` m mariga
@ 2009-10-16 16:43                                       ` m mariga
  2009-10-16 16:54                                         ` Gary Thomas
  1 sibling, 1 reply; 8+ messages in thread
From: m mariga @ 2009-10-16 16:43 UTC (permalink / raw)
  To: Gary Thomas; +Cc: eCos Discussion

Hello,Gary,and everyone,

I am very sorry.
I dare your anger for my obstination,but I must confirm next point.

Gary wrote,
>> I would like to load new application object to target using RedBoot via
>> Telnet from host PC during target's application running.
>> Is it impossible ?
>
> It is not possible.  As I said, once your application is running,
> RedBoot is out of the picture.
>

Am I right in getting you that even I use BOOTP or DHCP to get  dynamic IP 
address for application and assign other staic IP address for RedBoot,I 
could not connect to RedBoot via Telnet during application running ?

m mariga


-- 
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] 8+ messages in thread

* Re: [ECOS] How to connect RedBoot via Telnet running application
  2009-10-16 15:40                                     ` Gary Thomas
@ 2009-10-16 16:11                                       ` m mariga
  2009-10-16 16:43                                       ` m mariga
  1 sibling, 0 replies; 8+ messages in thread
From: m mariga @ 2009-10-16 16:11 UTC (permalink / raw)
  To: Gary Thomas; +Cc: eCos Discussion

Hello,Gary,and everyone,

Thank you, Gary, I got it.
Although I think it is too bad not to be able to use RedBoot's monitor 
function like memory dump during application running.

By the way,I do not know why I can't rewrite Local IP address or Gateway IP 
address by fconfig.
Please suggest my mistakes.

RedBoot> fconfig
scan_opts: first=1, argc=1
Run script at boot: true
Boot script:
Enter script, terminate with empty line
>>
Boot script timeout (1000ms resolution): 3
Use BOOTP for network configuration: false
Gateway IP address: 172.16.1.1
Local IP address: 172.16.1.100
** command abort - illegal memory access?
RedBoot>

m mariga


-- 
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] 8+ messages in thread

* Re: [ECOS] How to connect RedBoot via Telnet running application
       [not found]                                   ` <6FC88324D6C144EFB39FFE3CBF0E5B8D@masahiro>
@ 2009-10-16 15:40                                     ` Gary Thomas
  2009-10-16 16:11                                       ` m mariga
  2009-10-16 16:43                                       ` m mariga
  0 siblings, 2 replies; 8+ messages in thread
From: Gary Thomas @ 2009-10-16 15:40 UTC (permalink / raw)
  To: m mariga; +Cc: eCos Discussion

Please keep your replies on the mailing list so that all may benefit.

On 10/16/2009 09:07 AM, m mariga wrote:
> Hello,
>
> Gary wrote
>>> I'd like to connect to RedBoot via Telnet during target's running net
>>> application.
>>> I tried to run nc_test_slave program as application and connect to
>>> RedBoot via Telnet from host's cygwin.
>>> The result is below.
>>>
>>> $ telnet 172.16.1.200 9000
>>> Trying 172.16.1.200...
>>> telnet: Unable to connect to remote host: Connection refused
>> <...snip>
>>
>> Once your application is started, RedBoot is no longer available.
>>
>> Why are you trying to do this?
>>
>
> I would like to load new application object to target using RedBoot via
> Telnet from host PC during target's application running.
> Is it impossible ?

It is not possible.  As I said, once your application is running,
RedBoot is out of the picture.

> I got an impression from Anthony J. Massa's book that if setted two
> different IP addresses between RedBoot and application,I could connect
> to RedBoot via Telnet during application running. Am I mistaken ?

That's a reference to the ability of RedBoot to provide GDB
services via the network.  The rest of RedBoot's functionality
is no longer available, once your application starts.

-- 
------------------------------------------------------------
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] 8+ messages in thread

* Re: [ECOS] How to connect RedBoot via Telnet running application
  2009-10-16 14:34                               ` [ECOS] How to connect RedBoot via Telnet running application m mariga
@ 2009-10-16 14:42                                 ` Gary Thomas
       [not found]                                   ` <6FC88324D6C144EFB39FFE3CBF0E5B8D@masahiro>
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2009-10-16 14:42 UTC (permalink / raw)
  To: m mariga; +Cc: ecos-discuss

On 10/16/2009 08:33 AM, m mariga wrote:
> Hello,
>
> I'd like to connect to RedBoot via Telnet during target's running net
> application.
> I tried to run nc_test_slave program as application and connect to
> RedBoot via Telnet from host's cygwin.
> The result is below.
>
> $ telnet 172.16.1.200 9000
> Trying 172.16.1.200...
> telnet: Unable to connect to remote host: Connection refused
   <...snip>

Once your application is started, RedBoot is no longer available.

Why are you trying to do this?

-- 
------------------------------------------------------------
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] 8+ messages in thread

* [ECOS] How to connect RedBoot via Telnet running application
  2009-09-30 10:06                             ` m mariga
@ 2009-10-16 14:34                               ` m mariga
  2009-10-16 14:42                                 ` Gary Thomas
  0 siblings, 1 reply; 8+ messages in thread
From: m mariga @ 2009-10-16 14:34 UTC (permalink / raw)
  To: ecos-discuss

Hello,

I'd like to connect to RedBoot via Telnet during target's running net 
application.
I tried to run nc_test_slave program as application and connect to RedBoot 
via Telnet from host's cygwin.
The result is below.

$ telnet 172.16.1.200 9000
Trying 172.16.1.200...
telnet: Unable to connect to remote host: Connection refused

I append application running serial consol log below.

I am certain that the next excerpt from Anthony J. Massa's book is related 
to the cause.

--from Anthony J. Massa's book
NOTE:When using the Ethernet port for RedBoot communication
and in your application, it is important to set up the IP
addresses properly. The system distinguishes the destination of
a packet using the IP address. If the IP address for RedBoot and
the application are the same, RedBoot will receive all incoming
Ethernet packets, not passing them on to the application for processing.
To avoid this situation, it is best to use a static IP
address in one image and a separate static or dynamic image in
the other image.

I only set one IP address in CYGHWR_NET_DRIVER_ETH0_ADDRS_IP option like 
below.
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_IP {
    default_value { "172.16.1.200" }
}

But I do not know how to set IP addresses separately.
Right now I disables BOOTP by option mainly because I do not know how to use 
it.
I would rather prefer the two static IPs without using BOOTP or DHCP.
How should I set static IP addresses between RedBoot and application without 
using BOOTP ?
I presumed that RedBoot's IP is setted by fconfig,but I could not rewrite 
Local IP address.
Whenever I tried to rewrite Local IP address,or Gateway IP address,it 
happened 'command abort' message like below.
I do not know what is wrong.Please help me.
Am I correct thinking if I rewite Local IP address by fconfig,I could set 
RedBoot IP address differently with application address ?

RedBoot> fconfig
scan_opts: first=1, argc=1
Run script at boot: true
Boot script:
Enter script, terminate with empty line
>>
Boot script timeout (1000ms resolution): 3
Use BOOTP for network configuration: false
Gateway IP address: 172.16.1.1
Local IP address: 172.16.1.100
** command abort - illegal memory access?
RedBoot>

-- serial consol log begin
My Flash ID is 4:22f9:0:19
eth_drv_init:enaddr=0x8c000600
Ethernet eth0: MAC address 00:40:31:08:01:00
IP: 172.16.1.200/255.255.255.0, Gateway: 172.16.1.1
Default server: 172.16.1.1

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 11:52:21, May 15 2008

Platform: inserter (SH 7709S)
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x8c000000-0x90000000, [0x8c00aa48-0x8ffed000] available
FLASH: 0xa0000000 - 0xa0400000, 64 blocks of 0x00010000 bytes each.
== Executing boot script in 3.000 seconds - enter ^C to abort
RedBoot>
RedBoot> load -v -m xmodem -b 0x8c410000 -c 0
CAddress offset = 0x00400000
Entry point: 0x8c410000, address range: 0x8c410000-0x8c45b180
xyzModem - CRC mode, 7060(SOH)/0(STX)/0(CAN) packets, 6 retries
RedBoot> fis create nc_slave -r 0x8c010000 -f 0xa0080000 -b 0x8c410000 -l 
0x4b180
1 flash_addr=a0080000
An image named 'nc_slave' exists - continue (y/n)? y
... Erase from 0xa0080000-0xa00d0000: .....
... Program from 0x8c410000-0x8c45b180 at 0xa0080000: .....
... Erase from 0xa03f0000-0xa0400000: .
... Program from 0x8fff0000-0x90000000 at 0xa03f0000: .
RedBoot> My Flash ID is 4:22f9:0:19
eth_drv_init:enaddr=0x8c000600
Ethernet eth0: MAC address 00:40:31:08:01:00
IP: 172.16.1.200/255.255.255.0, Gateway: 172.16.1.1
Default server: 172.16.1.1

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 11:52:21, May 15 2008

Platform: inserter (SH 7709S)
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x8c000000-0x90000000, [0x8c00aa48-0x8ffed000] available
FLASH: 0xa0000000 - 0xa0400000, 64 blocks of 0x00010000 bytes each.
== Executing boot script in 3.000 seconds - enter ^C to abort
RedBoot> fis load -b 0x8c010000 nc_slave
RedBoot> channel 0
RedBoot> go 0x8c010000
Network stack using 69632 bytes for misc space
                    69632 bytes for mbufs
                    139264 bytes for mbuf clusters
[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'lan91cxx_eth0'
[cyg_net_init] Init: loopattach(0x00000000)
[cyg_net_init] Init: ifinit(0x00000000)
[cyg_net_init] Init: domaininit(0x00000000)
[cyg_net_init] Init: cyg_net_add_domain(0x8c05ab18)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x8c05a510)
New domain route at 0x00000000
[cyg_net_init] Init: call_route_init(0x00000000)
[cyg_net_init] Done
Start Network Characterization - SLAVE
BOOTP[eth0] op: REPLY
       htype: Ethernet
        hlen: 6
        hops: 0
         xid: 0x0
        secs: 0
       flags: 0x0
       hw_addr: 00:40:31:08:01:00
     client IP: 172.16.1.200
         my IP: 172.16.1.200
     server IP: 172.16.1.1
    gateway IP: 172.16.1.1
  options:
        subnet mask: 255.255.255.0
       IP broadcast: 172.16.1.255
            gateway: 172.16.1.1
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
No load = 58674
Set background load = 20%
Set background load = 0%
High Load[20] = 37130 => 37%
Set background load = 20%
Set background load = 0%
Load[10] = 47733 => 19%
Set background load = 20%
Set background load = 0%
Final load[10] = 47813 => 19%
Start test for eth0
-- serial consol log end

m mariga


-- 
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] 8+ messages in thread

end of thread, other threads:[~2009-10-21  0:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-16 15:50 [ECOS] How to connect RedBoot via Telnet running application m mariga
2009-10-21  0:10 ` Jonathan Larmour
  -- strict thread matches above, loose matches on Subject: below --
2009-07-21 14:08 [ECOS] h8300 cannot find libgcc.a m mariga
2009-07-21 15:04 ` [ECOS] " John Dallaway
2009-07-22 12:28   ` m mariga
2009-07-22 13:58     ` John Dallaway
2009-07-23 21:32       ` m mariga
2009-07-24  8:34         ` John Dallaway
2009-07-28 14:40           ` m mariga
2009-08-09 23:11             ` m mariga
2009-09-04  5:54               ` [ECOS] How to set GDB Stub Options in order to run insight ? m mariga
2009-09-04  9:38                 ` [ECOS] " John Dallaway
2009-09-04 18:33                   ` m mariga
2009-09-07  9:40                     ` m mariga
2009-09-07 11:31                       ` John Dallaway
2009-09-08 10:15                         ` m mariga
2009-09-28  9:54                           ` [ECOS] About h8000 eCos GDB-Stub m mariga
2009-09-30 10:06                             ` m mariga
2009-10-16 14:34                               ` [ECOS] How to connect RedBoot via Telnet running application m mariga
2009-10-16 14:42                                 ` Gary Thomas
     [not found]                                   ` <6FC88324D6C144EFB39FFE3CBF0E5B8D@masahiro>
2009-10-16 15:40                                     ` Gary Thomas
2009-10-16 16:11                                       ` m mariga
2009-10-16 16:43                                       ` m mariga
2009-10-16 16:54                                         ` Gary Thomas

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