Netconsole Config File?

Development on core packages and the distribution goes on in here.

Netconsole Config File?

Postby sambul13 » Sat Sep 01, 2012 2:19 pm

Can someone explain, where built-in Netconsole config file or settings are stored in ArchLinux ARM 3.5.2 ? I want to change or set client and server default IP addresses.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Netconsole Config File?

Postby byteme » Sun Feb 24, 2013 7:29 am

I have both the device and my computer set up with static IPs on my router
fw_setenv serverip is the receiving computer's ip
fw_setenv ipaddr is your device's ip
the commands below will start netconsole only if the serverip responds to a ping. Otherwise it will output on serial.

To listen to netconsole:
Run this on mac:
nc -lu 6666

Run this on linux:
nc -l -u 6666

Run the following on your device via SSH:
$this->bbcode_second_pass_code('', '
fw_setenv serverip 192.168.1.107
fw_setenv ipaddr 192.168.1.122
fw_setenv if_netconsole 'ping $serverip'
fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'
fw_setenv preboot 'run if_netconsole start_netconsole'
')

You may need to get fw_setenv:
http://elinux.org/U-boot_environment_variables_in_linux
byteme
 
Posts: 3
Joined: Fri Feb 15, 2013 9:34 am


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 17 guests