All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] About Network Console Protocol and nc/ncb
@ 2006-03-16  8:50 Frederic Kwiatkowski
  2006-03-16  9:23 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Frederic Kwiatkowski @ 2006-03-16  8:50 UTC (permalink / raw)
  To: u-boot

Hi all


I'm wondering how to use te Network Console Protocol. I've read the
README.NetConsole file and discoverd it, but does this feature is
available on every boards-configs, such as the at91 one?

I've tried to set the env variable like this:
setenv nc 'setenv stdout nc;setenv stdin nc'
setenv ncip 192.168.0.66 (wich is the board's IP)
run nc

and run the following script on my Linux Computer:
#! /bin/bash

[ $# = 1 ] || { echo "Usage: $0 target_ip" >&2 ; exit 1 ; }
TARGET_IP=$1

stty icanon echo intr ^T
./ncb &
nc -u ${TARGET_IP} 6666
stty icanon echo intr ^C
kill 0


but when i try to use ./ncip.sh 192.168.0.66, nothings happen
So i thoutgh the ncip have to be the one of my desktop computer, but
nothing better


Does anyone have already use this feature?


With regards

Frederic

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

* [U-Boot-Users] About Network Console Protocol and nc/ncb
  2006-03-16  8:50 [U-Boot-Users] About Network Console Protocol and nc/ncb Frederic Kwiatkowski
@ 2006-03-16  9:23 ` Wolfgang Denk
  2006-03-16  9:42   ` Frederic Kwiatkowski
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2006-03-16  9:23 UTC (permalink / raw)
  To: u-boot

In message <5fb065d90603160050wc05fe13x@mail.gmail.com> you wrote:
> 
> 
> I'm wondering how to use te Network Console Protocol. I've read the
> README.NetConsole file and discoverd it, but does this feature is
> available on every boards-configs, such as the at91 one?

If you enable it, it should work. But only few  boards  actually  use
this feature in their default configuration.

> but when i try to use ./ncip.sh 192.168.0.66, nothings happen
> So i thoutgh the ncip have to be the one of my desktop computer, but
> nothing better

Run a sniffer (ethereal) on your network and check  if  you  see  any
packets  at  all.  You  *did*  switch  the stdin / stdout channels in
U-Boot, didn't you?

> Does anyone have already use this feature?

Yes, it is being used actively on a couple of boards, some of them in
production with high volumes.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Programmer's Lament: (Shakespeare, Macbeth, Act I, Scene vii)
        "That we but teach bloody instructions,
        which, being taught, return to plague the inventor..."

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

* [U-Boot-Users] About Network Console Protocol and nc/ncb
  2006-03-16  9:23 ` Wolfgang Denk
@ 2006-03-16  9:42   ` Frederic Kwiatkowski
  2006-03-16 10:03     ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Frederic Kwiatkowski @ 2006-03-16  9:42 UTC (permalink / raw)
  To: u-boot

Thanks for your response

> > I'm wondering how to use te Network Console Protocol. I've read the
> > README.NetConsole file and discoverd it, but does this feature is
> > available on every boards-configs, such as the at91 one?
>
> If you enable it, it should work. But only few  boards  actually  use
> this feature in their default configuration.

Is there any #define to enable it or must I modify some sources file to do this?

>
> > but when i try to use ./ncip.sh 192.168.0.66, nothings happen
> > So i thoutgh the ncip have to be the one of my desktop computer, but
> > nothing better
>
> Run a sniffer (ethereal) on your network and check  if  you  see  any
> packets  at  all.  You  *did*  switch  the stdin / stdout channels in
> U-Boot, didn't you?

if setenv nc 'setenv stdout nc;setenv stdin nc have succed, with run
nc, it is switched
But, i've seen with ethereal that no packets where transmited through
my eth interface
It might be the first step to solve this problem



> > Does anyone have already use this feature?
>
> Yes, it is being used actively on a couple of boards, some of them in
> production with high volumes.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> Programmer's Lament: (Shakespeare, Macbeth, Act I, Scene vii)
>         "That we but teach bloody instructions,
>         which, being taught, return to plague the inventor..."
>

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

* [U-Boot-Users] About Network Console Protocol and nc/ncb
  2006-03-16  9:42   ` Frederic Kwiatkowski
@ 2006-03-16 10:03     ` Wolfgang Denk
  2006-03-16 10:28       ` Frederic Kwiatkowski
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2006-03-16 10:03 UTC (permalink / raw)
  To: u-boot

In message <5fb065d90603160142i19c60145o@mail.gmail.com> you wrote:
> 
> > If you enable it, it should work. But only few  boards  actually  use
> > this feature in their default configuration.
> 
> Is there any #define to enable it or must I modify some sources file to do
> this?

#define CONFIG_NETCONSOLE in your board config file.

> if setenv nc 'setenv stdout nc;setenv stdin nc have succed, with run
> nc, it is switched

Yes. [And you don't see any more output on the U-Boot console, right?]

> But, i've seen with ethereal that no packets where transmited through
> my eth interface
> It might be the first step to solve this problem

Indeed.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Boss, n.: According to the Oxford English Dictionary, in  the  Middle
Ages  the  words  "boss"  and "botch" were largely synonymous, except
that boss, in addition to meaning  "a  supervisor  of  workers"  also
meant "an ornamental stud."

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

* [U-Boot-Users] About Network Console Protocol and nc/ncb
  2006-03-16 10:03     ` Wolfgang Denk
@ 2006-03-16 10:28       ` Frederic Kwiatkowski
  0 siblings, 0 replies; 5+ messages in thread
From: Frederic Kwiatkowski @ 2006-03-16 10:28 UTC (permalink / raw)
  To: u-boot

2006/3/16, Wolfgang Denk <wd@denx.de>:
> In message <5fb065d90603160142i19c60145o@mail.gmail.com> you wrote:
> >
> > > If you enable it, it should work. But only few  boards  actually  use
> > > this feature in their default configuration.
> >
> > Is there any #define to enable it or must I modify some sources file to do
> > this?
>
> #define CONFIG_NETCONSOLE in your board config file.
>

I'll try this, and debugging my errors
                -Map u-boot.map -o u-boot
drivers/libdrivers.a(netconsole.o): In function `nc_send_packet':
/home/smb/uc-dev/frk/u-boot_051108/drivers/netconsole.c:116: undefined
reference to `eth_get_dev'
drivers/libdrivers.a(netconsole.o): In function `nc_tstc':
/home/smb/uc-dev/frk/u-boot_051108/drivers/netconsole.c:233: undefined
reference to `eth_get_dev'
make: *** [u-boot] Erreur 1



thanks for all, i hope i should solve my problems now

with regards

Frederic

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

end of thread, other threads:[~2006-03-16 10:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-16  8:50 [U-Boot-Users] About Network Console Protocol and nc/ncb Frederic Kwiatkowski
2006-03-16  9:23 ` Wolfgang Denk
2006-03-16  9:42   ` Frederic Kwiatkowski
2006-03-16 10:03     ` Wolfgang Denk
2006-03-16 10:28       ` Frederic Kwiatkowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.