openwrt/package/kernel/linux/modules
Catalin Toda 488b25f5ac 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-17 14:18:42 +02:00
..
001-depends.mk kernel: remove useless AddDepends/rtc abstraction 2015-03-29 08:12:50 +00:00
block.mk kernel: load device-mapper early on boot 2022-04-03 16:25:05 +01:00
can.mk kernel: update dependencies after 'imx6' -> 'imx' rename 2021-11-03 12:45:40 +01:00
crypto.mk kernel: clean-up after kernel 5.4 removal 2022-06-24 17:10:24 +02:00
firewire.mk firewire.mk: sort kernel modules 2018-02-13 11:48:49 +01:00
fs.mk kernel: clean-up after kernel 5.4 removal 2022-06-24 17:10:24 +02:00
gpio-cascade.mk kernel: add package kmod-gpio-cascade 2022-02-19 13:10:01 +01:00
hwmon.mk kernel: add kmod-hwmon-lm70 support 2022-02-19 19:34:18 +01:00
i2c.mk kernel: clean-up after kernel 5.4 removal 2022-06-24 17:10:24 +02:00
iio.mk kernel: add package kmod-iio-ads1015 and remove kmod-hwmon-ads1015 2021-09-13 17:11:50 +02:00
input.mk kernel: add kmod-touchscreen-edt-ft5x06 package 2022-07-11 14:14:01 +02:00
leds.mk kernel: add kmod-leds-pca955x 2022-06-19 12:31:02 +02:00
lib.mk kernel: 5.15: add new module 2022-03-27 02:17:24 +01:00
multiplexer.mk kernel: add package kmod-multiplexer 2022-02-19 13:10:01 +01:00
netdevices.mk kernel: netdevices: load rtl8366s on boot 2022-07-01 20:22:52 +02:00
netfilter.mk kernel: clean-up after kernel 5.4 removal 2022-06-24 17:10:24 +02:00
netsupport.mk kernel: netconsole: add network console logging support 2022-07-17 14:18:42 +02:00
nls.mk kernel: add Chinese codepages 2017-02-20 09:13:52 +01:00
other.mk kernel: add kmod-btsdio package 2022-07-11 14:18:16 +02:00
pcmcia.mk kernel: add support for Option Fusion+ PCMCIA card 2016-12-20 09:35:36 +01:00
sound.mk kernel: clean-up after kernel 5.4 removal 2022-06-24 17:10:24 +02:00
spi.mk kernel: remove kmod-spi-gpio-old 2018-02-09 10:29:07 +01:00
usb.mk kernel: clean-up after kernel 5.4 removal 2022-06-24 17:10:24 +02:00
video.mk kernel: modules: fix kmod-drm-imx-ldb dependency for 5.15 2022-03-31 17:30:17 +02:00
virt.mk kernel: add missing symbol to kmod-kvm 2021-09-29 19:17:55 +03:00
w1.mk kernel: update dependencies after 'imx6' -> 'imx' rename 2021-11-03 12:45:40 +01:00
wireless.mk module/firmware: remove intersil PRISM54 support 2022-07-15 15:21:44 +02:00
wpan.mk kernel: wpan: Add kmod-ca8210 2020-08-21 11:46:13 +02:00