New IT forum Follow us on Twitter
23 May 2012, 04:26:39 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: TonidoPlug2 - Now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: NetConsole?  (Read 1227 times)
apemberton
Full Member
***
Posts: 101


« on: 09 December 2010, 10:19:45 am »

I am curious to know if u-boot contains netconsole. I accept that in general the usb/serial console access is fine but it might be useful to access a 'plug's u-boot from the network. I used to use NetCat on port 6666 to access older Orion based systems. An alternative to fw_printenv/fw_setenv on GP's and whatever on SP's.
 
Logged

Tony Pemberton
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #1 on: 09 December 2010, 08:10:49 pm »

Not knowing what netconsole is, I found this. I don't know if this is the sort of procedure that you had in mind, but uboot-envtools (the package that provides fw_setenv and fw_printenv) doesn't work on the Sheevaplug, due to an endian-ness issue.

I also tried setting stdin, stdout, stderr according to the link referred to above. It doesn't alter boot behaviour. I don't know if I did it right, but I can't say that the answer to your question is yes.
Logged
apemberton
Full Member
***
Posts: 101


« Reply #2 on: 10 December 2010, 09:05:18 am »

From a Buffalo Linkstation Orion unterseeboot which boots linux from hard disk:-

bootcmd=ide reset ; ext2load ide 1:1 0x00100000 /uImage ; setenv bootargs netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/sda2 rw ; bootm 0x00100000

Netconsole is built in to the u-boot so I was wondering if the same was true for the Sheevaplug. It isn't that important.

On my 32 bit PC's I have nc111nt.exe - a very old utility. Telnetting to the IP number with port 6666 also works.

Duh! Y'know, why don't I just try it!  Embarrassed

Logged

Tony Pemberton
apemberton
Full Member
***
Posts: 101


« Reply #3 on: 18 December 2010, 04:21:07 pm »

To answer my own question, I see that netconsole is not by default compiled into a kernel. I guess it can be enabled through a 'make menuconfig' option and compiling a kernel. At least on K 2.6.36.2

Merry Christmas or whatever folks!
Logged

Tony Pemberton
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!