openwrt/package/kernel/linux/modules
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
..
001-depends.mk kernel: remove useless AddDepends/rtc abstraction 2015-03-29 08:12:50 +00:00
block.mk kernel: add kmod-nvme package 2022-10-23 13:20:32 +02:00
can.mk kernel: update dependencies after 'imx6' -> 'imx' rename 2021-11-03 12:45:40 +01:00
crypto.mk kernel: modules: package kmod-crypto-essiv 2022-09-18 15:39:41 +01:00
firewire.mk firewire.mk: sort kernel modules 2018-02-13 11:48:49 +01:00
fs.mk kernel: improve description of NTFS kernel packages 2022-11-21 16:48:32 +01:00
gpio-cascade.mk kernel: add package kmod-gpio-cascade 2022-02-19 13:10:01 +01:00
hwmon.mk kernel: add kmod-hwmon-sht3x support 2022-11-27 15:43:08 +01:00
i2c.mk kernel: package Synopsys Designware PCI to I2C controller 2021-06-06 00:26:13 +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: update dependencies after 'imx6' -> 'imx' rename 2021-11-03 12:45:40 +01:00
leds.mk kernel: add back kmod-leds-tlc591xx 2021-11-28 17:41:18 +01:00
lib.mk kmod-lzo: include the lzo-rle kmod in the package 2022-03-22 09:25:40 +00:00
multiplexer.mk kernel: add package kmod-multiplexer 2022-02-19 13:10:01 +01:00
netdevices.mk kernel: modules: package Marvell gigE PHY driver 2022-11-26 16:16:05 +00:00
netfilter.mk kernel: kmod-ipt-ulog: Remove package 2022-08-14 00:29:19 +02:00
netsupport.mk kernel: netconsole: add network console logging support 2022-12-06 00:11:21 +01:00
nls.mk kernel: add Chinese codepages 2017-02-20 09:13:52 +01:00
other.mk kernel: kmod-rtc-pt7c4338: Remove package 2022-12-06 00:10:54 +01:00
pcmcia.mk kernel: add support for Option Fusion+ PCMCIA card 2016-12-20 09:35:36 +01:00
sound.mk kernel: Add regmap-i2c dependency to sound-soc-imx-sgtl5000 2021-11-07 17:08:51 +01:00
spi.mk kernel: remove kmod-spi-gpio-old 2018-02-09 10:29:07 +01:00
usb.mk kernel: kmod-phy-smsc: Add new PHY 2022-08-14 00:29:19 +02:00
video.mk kernel: drop obsolete kmod-video-core dependencies 2021-12-20 19:57:01 +02:00
virt.mk kernel: add missing symbol to kmod-kvm 2021-09-29 19:17:55 +03:00
w1.mk kernel: kmod-w1-slave-ds2760: Remove package 2022-12-06 00:10:54 +01:00
wireless.mk kernel: remove obsolete kernel version switches 2020-01-12 16:34:20 +01:00
wpan.mk kernel: wpan: Add kmod-ca8210 2020-08-21 11:46:13 +02:00