lede/package
Catalin Toda 64d53bd4b6 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>
2022-07-20 17:45:24 +08:00
..
base-files Revert "base-file: remove password aging feature form /etc/shadow" 2022-02-25 23:17:10 +08:00
boot uboot-rockchip: remove prebuilt of-platdata (#9747) 2022-07-13 23:30:37 +08:00
devel gdb: Update gdb to version 11.2 (#8954) 2022-02-27 01:50:07 +08:00
firmware module/firmware: remove intersil PRISM54 support 2022-07-17 00:17:41 +08:00
kernel kernel: netconsole: add network console logging support 2022-07-20 17:45:24 +08:00
lean luci-app-qbittorrent-simple: add luci for qbittorrent simple UI 2022-07-18 14:04:35 +08:00
libs mbedtls: build with PIC 2022-07-20 17:38:06 +08:00
network dropbear: cherry-pick upstream commit 544f28a0 2022-06-30 15:56:18 +08:00
qat openssl-qat: fix openssl-qat build 2022-04-25 19:02:30 +08:00
qca qca-mcs: drop ugly hack 2022-04-16 22:56:28 +08:00
system openwrt-keyring: add OpenWrt 22.03 GPG/usign keys (#9128) 2022-03-25 23:00:09 +08:00
utils sdk: add spidev-test to the bundle of userspace sources 2022-07-20 17:42:22 +08:00
Makefile add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00