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
Quoted 5 lines · In message <[email protected]> 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.
Quoted 3 lines
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?
Quoted 1 line
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
Signature · 5 lines
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..."Thanks for your response
Quoted 6 lines
Quoted 3 lines
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?
Quoted 8 lines
Quoted 4 lines
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
Quoted 16 lines
Quoted 1 line
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..."
Quoted 6 lines · In message <[email protected]> you wrote:
Quoted 3 lines
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.
Quoted 2 lines
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?]
Quoted 3 lines
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
Signature · 6 lines
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."
2006/3/16, Wolfgang Denk <[email protected]>:
Quoted 10 lines
Quoted 6 lines · In message <[email protected]> you wrote:
Quoted 3 lines
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_NETCONSOLEin 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