openwrt/target/linux
Pawel Dembicki cdc1090084 ramips: mt7620: add kernel size for Jboot devices
Since few months multiple users reported problems with various JBoot
devices. [0][1][2][3] All of them was bricked.

On my Lava LR-25G001 it freezes with current snapshot:

CDW57CAM_003 Jboot B695
Giga Switch AR8327 init
AR8327/AR8337 id   ==> 0x1302
JRecovery Version R1.2 2014/04/01 18:25
SPI FLASH: MX25l12805d 16M
.
.
(freeze)

The kernel size is >2048k.

I built current master with minimal config and it boots well:

CDW57CAM_003 Jboot B695
Giga Switch AR8327 init
AR8327/AR8337 id   ==> 0x1302
JRecovery Version R1.2 2014/04/01 18:25
SPI FLASH: MX25l12805d 16M
.
...........................
Starting kernel @80000000...
[    0.000000] Linux version 5.4.124

Kernel size is <2048k.

Jboot bootloader isn't open source, so it's impossible to find
solution in code. It looks, that some buffer for kernel have 2MB size.

To avoid bricked devices, this commit introduces 2048k limit kernel
size for all jboot routers.

[0] https://bugs.openwrt.org/index.php?do=details&task_id=3539
[1] https://eko.one.pl/forum/viewtopic.php?pid=254344
[2] https://eko.one.pl/forum/viewtopic.php?id=20930
[3] https://eko.one.pl/forum/viewtopic.php?pid=241376#p241376

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
[remove Fixes:]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:08:12 +00:00
..
apm821xx apm821xx: MR24: Change default config of WLAN LED 2021-09-01 08:08:07 +00:00
arc770 treewide: do not quote compatible in shell scripts 2021-09-01 08:08:11 +00:00
archs38 treewide: switch the timer frequency to 100 Hz 2021-09-01 08:08:01 +00:00
armvirt treewide: switch the timer frequency to 100 Hz 2021-09-01 08:08:01 +00:00
at91 treewide: switch the timer frequency to 100 Hz 2021-09-01 08:08:01 +00:00
ath25 kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-09-01 08:08:02 +00:00
ath79 ath79: fix eth0 PLL registers on WD My Net Wi-Fi Range Extender 2021-09-01 08:08:11 +00:00
bcm27xx kernel: bump 5.4 to 5.4.121 2021-09-01 08:08:07 +00:00
bcm47xx bcm47xx: make WGT634U NVRAM patch apply again 2021-09-01 08:07:47 +00:00
bcm53xx kernel: bump 5.4 to 5.4.118 2021-09-01 08:08:07 +00:00
bcm63xx bcm63xx: drop USB LEDs for Technicolor TG582N / ADB P.DG A4001N 2021-09-01 08:08:10 +00:00
bcm4908 treewide: switch the timer frequency to 100 Hz 2021-09-01 08:08:01 +00:00
bmips bmips: remove duplicated brcmnand patch 2021-09-01 08:08:06 +00:00
gemini base-files: generate network config with "device" options 2021-09-01 08:08:09 +00:00
generic generic: backport at803x fixes 2021-09-01 08:08:11 +00:00
imx6 imx6: image: drop BOOT_SCRIPT and fix DEVICE_NAME 2021-09-01 08:08:09 +00:00
ipq40xx ipq40xx: add uboot-envtools to default packages 2021-09-01 08:08:10 +00:00
ipq806x ipq806x: fix LAN and WAN port assignments on TP-Link AD7200 2021-09-01 08:08:10 +00:00
ipq807x treewide: remove redundant ubifs kconfig symbols 2021-09-01 08:08:01 +00:00
kirkwood treewide: do not quote compatible in shell scripts 2021-09-01 08:08:11 +00:00
lantiq treewide: remove "+" sign for increment with macaddr_add 2021-09-01 08:08:10 +00:00
layerscape generic: backport at803x fixes 2021-09-01 08:08:11 +00:00
malta treewide: switch the timer frequency to 100 Hz 2021-09-01 08:08:01 +00:00
mediatek kernel: bump 5.4 to 5.4.124 2021-09-01 08:08:10 +00:00
mpc85xx treewide: switch the timer frequency to 100 Hz 2021-09-01 08:08:01 +00:00
mvebu mvebu: armada-37xx: remove ethernet alias patch 2021-09-01 08:08:10 +00:00
mxs treewide: switch the timer frequency to 100 Hz 2021-09-01 08:08:01 +00:00
octeon octeon: use shared function for platform_copy_config() 2021-09-01 08:08:06 +00:00
octeontx treewide: switch the timer frequency to 100 Hz 2021-09-01 08:08:01 +00:00
omap treewide: remove redundant ubifs kconfig symbols 2021-09-01 08:08:01 +00:00
oxnas treewide: remove redundant ubifs kconfig symbols 2021-09-01 08:08:01 +00:00
pistachio treewide: switch the timer frequency to 100 Hz 2021-09-01 08:08:01 +00:00
ramips ramips: mt7620: add kernel size for Jboot devices 2021-09-01 08:08:12 +00:00
realtek base-files: generate network config with "device" options 2021-09-01 08:08:09 +00:00
rockchip treewide: remove "+" sign for increment with macaddr_add 2021-09-01 08:08:10 +00:00
sunxi linux-firmware: update to version 20210315 and trim down broadcom FW 2021-09-01 08:08:11 +00:00
tegra kernel: Move CONFIG_USERIO to generic config 2021-09-01 08:07:53 +00:00
uml treewide: switch the timer frequency to 100 Hz 2021-09-01 08:08:01 +00:00
x86 x86: add Roqos Core RC10 ethernet interfaces 2021-09-01 08:08:11 +00:00
zynq kernel: Move CONFIG_USERIO to generic config 2021-09-01 08:07:53 +00:00
Makefile target: use SPDX license identifiers on Makefiles 2021-09-01 08:07:34 +00:00