lede/package/kernel
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
..
acx-mac80211 x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
ath10k-ct ath10k-ct/mt76: bump to latest 5.15 git HEAD 2022-03-29 15:09:55 +08:00
bcm27xx-gpu-fw bcm27xx: sync upstream source code (#6435) 2021-02-25 15:44:46 +08:00
bcm63xx-cfe add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
bpf-headers toolchain: add llvm-bpf 2022-04-07 01:01:05 +08:00
broadcom-wl x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
button-hotplug x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
cryptodev-linux cryptodev-linux: update to 1.12 2021-09-30 16:18:17 +08:00
dtc/patches Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
gpio-button-hotplug x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
gpio-nct5104d gpio-nct5104d: simplified makefile 2022-06-15 22:50:05 +08:00
gpio-nxp-74hc153 x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
hwmon-gsc kernel: update dependencies after 'imx6' -> 'imx' rename 2022-01-06 09:57:20 +08:00
ksmbd ksmbd: fixes build on kernel 5.15.52+ 2022-07-05 15:19:00 +08:00
lantiq x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
linux kernel: netconsole: add network console logging support 2022-07-20 17:45:24 +08:00
mac80211 kernel: Make QMI Helpers user selectable in 5.18 2022-07-12 18:54:05 +08:00
mt76 mt76: update to the latest version 2022-07-12 11:51:06 +08:00
mt7621-qtn-rgmii x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
mtk-eip93 ramips: add Mediatek EIP93 Crypto driver for MT7621 2022-07-08 11:07:52 +08:00
mwlwifi x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
nat46 add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
om-watchdog x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
rtc-rv5c386a Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
rtl8812au-ct rtl8812au-ct: update driver to be ready for 5.15 2022-04-25 16:38:16 +08:00
rtl8821cu kernel/rtl8821cu: update to 2021-11-14 2022-02-26 05:29:06 +00:00
trelay x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
xr-usb-serial add support for XR21V141x usb serial chip (#9514) 2022-06-12 03:29:12 +08:00