openwrt/package
Catalin Toda 69ed96fba8 kernel: netconsole: add network console logging support
Accessing the console on many devices is difficult.
netconsole eases debugging on devices that crash
after the network is up.

Reference to the netconsole documentation in upstream Linux:
<https://www.kernel.org/doc/html/latest/networking/netconsole.html>
|
|netconsole=[+][src-port]@[src-ip]/[<dev>],[tgt-port]@<tgt-ip>/[tgt-macaddr]
|
| where
|  +            if present, enable extended console support
|  src-port     source for UDP packets (defaults to 6665)
|  src-ip       source IP to use (interface address)
|  dev          network interface (eth0)
|  tgt-port     port for logging agent (6666)
|  tgt-ip       IP address for logging agent
|  tgt-macaddr  ethernet MAC address for logging agent (broadcast)

OpenWrt specific notes:

OpenWrt's device userspace scripts are attaching the network
interface (i.e. eth0) to a (virtual) bridge (br-lan) device.
This will cause netconsole to report:
|network logging stopped on interface eth0 as it is joining a master device
(and unfortunately the traffic/logs to stop at this point)

As a workaround, the netconsole module can be manually loaded
again after the bridge has been setup with:

 insmod netconsole netconsole=@/br-lan,@192.168.1.x/MA:C...

One way of catching errors before the handoff, try to
append the /etc/modules.conf file with the following extra line:
 options netconsole netconsole=@/eth0,@192.168.1.x/MA:C...

and install the kmod-netconsole (=y) into the base image.

Signed-off-by: Catalin Toda <catalinii@yahoo.com>
(Added commit message from PR, added links to documentation)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(cherry picked from commit 488b25f5ac)
2022-12-06 00:11:21 +01:00
..
base-files base-files: support "metric" in board.json 2022-12-01 14:53:20 +01:00
boot ath79: add support for Linksys EA4500 v3 2022-11-12 18:45:59 +01:00
devel strace: replace PKG_CPE_ID 2022-11-07 12:29:08 +02:00
firmware ipq40xx: Add ZTE MF289F 2022-11-05 22:49:43 +01:00
kernel kernel: netconsole: add network console logging support 2022-12-06 00:11:21 +01:00
libs wolfssl: update to v5.5.3 2022-11-27 15:43:08 +01:00
network hostapd: remove invalid dtim_period option processing 2022-11-10 13:10:20 +01:00
system procd: service: pass all arguments to service 2022-11-27 15:43:08 +01:00
utils busybox: awk: fix use after free (CVE-2022-30065) 2022-11-05 22:43:45 +01:00
Makefile build: fix opkg install step for large package selection 2021-05-12 11:13:53 +02:00