public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot]  Problem with NetConsole
@ 2009-10-04 14:48 alex889
  2009-10-04 15:45 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: alex889 @ 2009-10-04 14:48 UTC (permalink / raw)
  To: u-boot


Hi,
I'm trying to add the NetConsole to my project.
I've set all the related environment variables

when i start UBoot and then type "run nc" i see that i receive the data i'm
sending from remote PC,
but if i call "run nc" from within the UBoot, using run_command("run nc",
1);,  i don't receive that data.

Am i doing something wrong?

Thanks,
Alex

-- 
View this message in context: http://www.nabble.com/-U-Boot--Problem-with-NetConsole-tp25738669p25738669.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

* [U-Boot] Problem with NetConsole
  2009-10-04 14:48 [U-Boot] Problem with NetConsole alex889
@ 2009-10-04 15:45 ` Wolfgang Denk
  2009-10-04 20:08   ` alex889
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2009-10-04 15:45 UTC (permalink / raw)
  To: u-boot

Dear alex889,

In message <25738669.post@talk.nabble.com> you wrote:
> 
> I'm trying to add the NetConsole to my project.
> I've set all the related environment variables
> 
> when i start UBoot and then type "run nc" i see that i receive the data i'm
> sending from remote PC,
> but if i call "run nc" from within the UBoot, using run_command("run nc",
> 1);,  i don't receive that data.
> 
> Am i doing something wrong?

Yes, that much is sure, as it doesn't work for you.

Since you don't provide any deyails of your code changes (like a
patch against top-of-tree in mainline) we can only guess. My guess
is: You are missing a semicolon in line 42.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If the odds are a million to one against something occuring,  chances
are 50-50 it will.

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

* [U-Boot] Problem with NetConsole
  2009-10-04 15:45 ` Wolfgang Denk
@ 2009-10-04 20:08   ` alex889
  2009-10-04 21:03     ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: alex889 @ 2009-10-04 20:08 UTC (permalink / raw)
  To: u-boot


OK
So let me rephrase myself
My aim is to open the NetConsole for input (stdin=nc)only if the user
pressed on a specific button.
How should the code that opens the NetConsole look like, after i discovered
the button was pressed?

Thanks,
Alex


wd wrote:
> 
> Dear alex889,
> 
> In message <25738669.post@talk.nabble.com> you wrote:
>> 
>> I'm trying to add the NetConsole to my project.
>> I've set all the related environment variables
>> 
>> when i start UBoot and then type "run nc" i see that i receive the data
>> i'm
>> sending from remote PC,
>> but if i call "run nc" from within the UBoot, using run_command("run nc",
>> 1);,  i don't receive that data.
>> 
>> Am i doing something wrong?
> 
> Yes, that much is sure, as it doesn't work for you.
> 
> Since you don't provide any deyails of your code changes (like a
> patch against top-of-tree in mainline) we can only guess. My guess
> is: You are missing a semicolon in line 42.
> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> If the odds are a million to one against something occuring,  chances
> are 50-50 it will.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 

-- 
View this message in context: http://www.nabble.com/-U-Boot--Problem-with-NetConsole-tp25738669p25741672.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

* [U-Boot] Problem with NetConsole
  2009-10-04 20:08   ` alex889
@ 2009-10-04 21:03     ` Wolfgang Denk
  2009-10-05  9:40       ` alex889
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2009-10-04 21:03 UTC (permalink / raw)
  To: u-boot

Dear alex889,

please do not top post / full quote. PLease make sure to read
http://www.netmeister.org/news/learn2quote.html

In message <25741672.post@talk.nabble.com> you wrote:
> 
> So let me rephrase myself
> My aim is to open the NetConsole for input (stdin=nc)only if the user
> pressed on a specific button.
> How should the code that opens the NetConsole look like, after i discovered
> the button was pressed?

setenv("stdin", "nc");

Of course, you must make sure to run this only after device
intialization.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There are no data that cannot be plotted on a straight  line  if  the
axis are chosen correctly.

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

* [U-Boot] Problem with NetConsole
  2009-10-04 21:03     ` Wolfgang Denk
@ 2009-10-05  9:40       ` alex889
  0 siblings, 0 replies; 5+ messages in thread
From: alex889 @ 2009-10-05  9:40 UTC (permalink / raw)
  To: u-boot


Thanks Wolfgang !
that helped,
the last question i have is: I want the NetConsole to listen for incoming
messages for 2 sec,
I've tried using NetSetTimeout, but it seems to not work

Alex


wd wrote:
> 
> Dear alex889,
> 
> please do not top post / full quote. PLease make sure to read
> http://www.netmeister.org/news/learn2quote.html
> 
> In message <25741672.post@talk.nabble.com> you wrote:
>> 
>> So let me rephrase myself
>> My aim is to open the NetConsole for input (stdin=nc)only if the user
>> pressed on a specific button.
>> How should the code that opens the NetConsole look like, after i
>> discovered
>> the button was pressed?
> 
> setenv("stdin", "nc");
> 
> Of course, you must make sure to run this only after device
> intialization.
> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> There are no data that cannot be plotted on a straight  line  if  the
> axis are chosen correctly.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 

-- 
View this message in context: http://www.nabble.com/-U-Boot--Problem-with-NetConsole-tp25738669p25747772.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

end of thread, other threads:[~2009-10-05  9:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-04 14:48 [U-Boot] Problem with NetConsole alex889
2009-10-04 15:45 ` Wolfgang Denk
2009-10-04 20:08   ` alex889
2009-10-04 21:03     ` Wolfgang Denk
2009-10-05  9:40       ` alex889

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox