Hi there,
I'm trying to set up netconsole for the potential case of a non-booting rspi2. First of all I don't know if it's possible at all, hardware-wise?
I tried the arch-wikie page (https://wiki.archlinux.org/index.php/Netconsole) and added $this->bbcode_second_pass_code('', 'netconsole=6665@192.168.1.28/eth0,6666@192.168.1.19/00:13:32:20:r9:a5') (with my rspi2's ip and my laptops ip respectively) to my cmdline.txt. nc -u -l 6666 on my laptop yields nothing while rebooting the rspi2.
I tried the manual way as described in the wiki:
$this->bbcode_second_pass_code('', '
# set log level for kernel messages
dmesg -n 8
modprobe configfs
modprobe netconsole
mount none -t configfs /sys/kernel/config
# 'netconsole' dir is auto created if the module is loaded
mkdir /sys/kernel/config/netconsole/target1
cd /sys/kernel/config/netconsole/target1
# set local IP address
echo 192.168.0.111 > local_ip
# set destination IP address
echo 192.168.0.17 > remote_ip
# set local network device name (find it trough ifconfig, examples: eth0, eno1, wlan0)
echo eno1 > dev_name
# find destination MAC address
arping $(cat remote_ip) -f | grep -o ..:..:..:..:..:.. > remote_mac
echo 1 > enabled') but after modprobing configfs (the second step) lsmod doesn't show it as being loaded. also $this->bbcode_second_pass_code('', 'mount none -t configfs /sys/kernel/config') tells me $this->bbcode_second_pass_code('', 'mount: none is already mounted or /sys/kernel/config busy') but /sys/kernel/config/ is empty and there is no way for me to set the ip addresses.
Any help?
thanks