Difference between revisions of "Ethernet console"
From ArmadeusWiki
(links) |
m (→Links) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | On this page you will learn how to move the default | + | On this page you will learn how to move the default RS-232 console to Ethernet. This might be useful in systems where you want to use the RS-232 port for something else or if you want a remote console. |
{{Under_Construction}} | {{Under_Construction}} | ||
Line 10: | Line 10: | ||
* recompile and reflash your U-Boot: | * recompile and reflash your U-Boot: | ||
<pre class="host"> | <pre class="host"> | ||
− | $ make | + | $ make uboot-rebuild |
− | + | ||
</pre> | </pre> | ||
* redefine some environment variables (here 192.168.1.2 is the IP address of my Host PC): | * redefine some environment variables (here 192.168.1.2 is the IP address of my Host PC): | ||
Line 20: | Line 19: | ||
==Linux== | ==Linux== | ||
− | + | * You have to use ''netconsole'' script from U-Boot sources (default port is 6666): | |
+ | <pre class="host"> | ||
+ | $ tools/netconsole <ip> [port] | ||
+ | </pre> | ||
==Links== | ==Links== | ||
− | * | + | * https://github.com/lentinj/u-boot/blob/master/doc/README.NetConsole |
* http://wiki.openvz.org/Remote_console_setup | * http://wiki.openvz.org/Remote_console_setup |
Latest revision as of 23:03, 9 April 2018
On this page you will learn how to move the default RS-232 console to Ethernet. This might be useful in systems where you want to use the RS-232 port for something else or if you want a remote console.
Page under construction... Informations on this page are not guaranteed !!
U-Boot
- modify the config header file for your board and add it:
#define CONFIG_NETCONSOLE 1
- recompile and reflash your U-Boot:
$ make uboot-rebuild
- redefine some environment variables (here 192.168.1.2 is the IP address of my Host PC):
BIOS> setenv ncip 192.168.1.2 BIOS> setenv stdin nc; setenv stdout nc; setenv stderr nc
Linux
- You have to use netconsole script from U-Boot sources (default port is 6666):
$ tools/netconsole <ip> [port]