[PATCH 2/2] ath79: fix second boot failure issue on Netgear WNDR4300 v2 and WNDR4500 v3

2023-07-08 Thread Shiji Yang
From: Shiji Yang >From the Netgear u-boot GPL code[1]. Bootloader always unconditionally marks block 768, 1020 - 1023 as bad blocks on each boot. This may lead to conflicts with the OpenWrt nand driver since these blocks may be good blocks. In this case, U-boot will override the oob of these bloc

[PATCH 1/2] ath79: rework Netgear nand devices image recipe

2023-07-08 Thread Shiji Yang
From: Shiji Yang In Netgear u-boot GPL code, nand devices uses this formula to locate the rootfs offset. offset = (((128 + KERNEL_SIZE) / BLOCK_SIZE) + 1) * BLOCK_SIZE; Howerver, WNDR4500 source code incorrectly define the nand block size to 64k. In some cases, it causes u-boot can't get the co

[PATCH 0/2] ath79: fix boot failure on Netgear WNDR4300 v2

2023-07-08 Thread Shiji Yang
From: Shiji Yang These two patches fix the boot failure issue on Netgear WNDR4300 v2 and WNDR4500 v3: [1] 23.05-rc bricks WNDR4300v2 link: https://github.com/openwrt/openwrt/issues/13050 [2] ath79: NETGEAR WNDR4300v2 Bricked on Power Cycle After Flash link: https://github.com/openwrt/openwrt/iss

[PATCH] umbim: Add mbim message timeout option, -T

2023-07-08 Thread Daniel Danzberger
Some modems, depending on their state and connection quality can take longer than 15 seconds to answer mbim message requests. This commit adds the -T option, allowing the user to specifiy a custom message timeout in seconds. Default is still 15. Signed-off-by: Daniel Danzberger --- cli.c