[U-Boot] Problems with NetConsole II
alex889
alex889 at gmail.com
Thu Oct 8 09:41:05 CEST 2009
Hi,
I'm trying to run NetConsole, listen for incoming messages for 1 sec, and
continue according to the message type.
On the other side (PC) i'm sending a broadcast message on port 6666 every
250 ms.
What i see is a very unstable behaviour
Sometimes i get nothing, sometime only part of the message, and sometimes it
fails to continue..
I also tried to listen for 5 sec, and it looks a little better, but still
unstable behaviour
The code i use is:
setenv("stdin", "nc");
printk("waiting for network message...\n");
timeStart = get_timer(0);
while(1)
{
c = getc();
if(c != 0)
{
printk("%c", c);
buffer[index++] = c;
}
if(index > 127)
break;
if((get_timer(0) - timeStart) > 5000)
break;
}
Thanks,
Alex
--
View this message in context: http://www.nabble.com/-U-Boot--Problems-with-NetConsole-II-tp25799667p25799667.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
More information about the U-Boot
mailing list