netifd: Information events with proto_notify_info()

2021-06-22 Thread Nicholas Smith
Hello, My goal is to add a way to notify users via netifd about "info" events for interfaces instead of only "errors", by adding support for a function called proto_notify_info(). Currently, I am (ab)using proto_notify_error() in modemmanager.sh to indicate what is happening during the sometimes

Mips32 Kexec crashes running kernel 21.02-RC3 (MT7621 Target)

2021-06-22 Thread Strontium
OK, so i worked out mips kexec needs an .elf file.  So, i got the kernel .elf from the targets build.  It is the same kernel that is running in the board, so in theory, kexecing it should just restart the kernel. So, i scp vmlinux.elf to /tmp run: # kexec /tmp/vmlinux.elf and it crashes,  same

Re: [PATCH v2 2/5] base-files: failsafe: Fix IP configuration

2021-06-22 Thread Rafał Miłecki
On 22.06.2021 00:45, Hauke Mehrtens wrote: Adapt the preinit_config_board() to the board.json network changes. It now looks for the device and the ports variables to configure the LAN network. This works with swconfig configurations. Fixes: FS#3866 Fixes: d42640e389a8 ("base-files: use "ports"

[PATCH v2] zram-swap: robustify mkswap/swapon/swapoff invocation

2021-06-22 Thread Rui Salvaterra
Instead of assuming /sbin contains the correct BusyBox symlinks, directly invoke the busybox executable. The required utilities are guaranteed to be present, since the zram-swap package selects them. Additionally, don't assume busybox resides in /bin, rely on PATH to find it. While at it, update t

Re: [PATCH v2 1/5] kernel: Backport patch to automatically bring up DSA master when opening user port

2021-06-22 Thread Rafał Miłecki
On 22.06.2021 00:45, Hauke Mehrtens wrote: Without this patch we have to manually bring up the CPU interface in failsafe mode. This was backported from kernel 5.12. Signed-off-by: Hauke Mehrtens This fixes bringing interface up on bcm4908 (target that uses DSA). It fixes: ip: SIOCSIFFLAGS: N