[U-Boot-Users] About Network Console Protocol and nc/ncb

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

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

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@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..."

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

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
participants (2)
-
Frederic Kwiatkowski
-
Wolfgang Denk