Hi Adrian,

Op zondag 26 september 2021 om 23u45 schreef Adrian Schmutzler <m...@adrianschmutzler.de>:
Hi,

 -----Original Message-----
 From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org]
 On Behalf Of Stijn Segers
 Sent: Donnerstag, 9. September 2021 14:26
 To: openwrt-devel@lists.openwrt.org; Paweł Dembicki
 <paweldembi...@gmail.com>; Rui Salvaterra <rsalvate...@gmail.com>
Cc: OpenWrt Development List <openwrt-devel@lists.openwrt.org>; Adrian
 Schmutzler <freif...@adrianschmutzler.de>; David Bauer <mail@david-
 bauer.net>
 Subject: Re: [PATCH] ramips: switch to kernel 5.10

 "Paweł Dembicki" <paweldembi...@gmail.com> schreef op 9 september
 2021 13:47:36 CEST:
>czw., 9 wrz 2021 o 10:49 Rui Salvaterra <rsalvate...@gmail.com> napisał(a):
 >>
>> Tested on mt7621 (Redmi AC2100) and running stable for several months.
 >>
 >
 >Hi Rui,
 >
>Please remember, if this patch will be merged before my PR #4255 [1],
 >all mt7620 JBOOT devices will be broken.
 >
>The reason is simple: The 5.10 kernel will be > 2MB. My PR will switch
 >all mt7620 JBOOT devices to the OKLI loader.

 Would something similar need to be done for the mt76x8 subtarget?

I just have a single one of these but I reckon they are equally flash-starved...

But if KERNEL_SIZE/IMAGE_SIZE is set properly there, those would just fail to build, so no harm could be done?


That is a valid point. I checked master:

$ grep "define Device" image/mt7620.mk|wc -l
119
$ grep \ KERNEL_SIZE image/mt7620.mk|wc -l
1
$ grep "define Device" image/mt76x8.mk|wc -l
80
$ grep \ KERNEL_SIZE image/mt76x8.mk|wc -l
0

That's not encouraging I guess :-P. And just having IMAGE_SIZE defined won't prevent the bootloader from choking on an oversized kernel, or am I wrong about that?

Cheers

Stijn


Best

Adrian


 Cheers

 Stijn

 >
 >Best Regards,
 >Pawel
 >
 >[1] https://github.com/openwrt/openwrt/pull/4255
 >
 >> Signed-off-by: Rui Salvaterra <rsalvate...@gmail.com>
 >> ---
 >>  target/linux/ramips/Makefile | 3 +--
 >>  1 file changed, 1 insertion(+), 2 deletions(-)
 >>
 >> diff --git a/target/linux/ramips/Makefile
>> b/target/linux/ramips/Makefile index d3f2d4b8fc..c9fc1aa58a 100644
 >> --- a/target/linux/ramips/Makefile
 >> +++ b/target/linux/ramips/Makefile
 >> @@ -10,8 +10,7 @@ BOARDNAME:=MediaTek Ralink MIPS
 >>  SUBTARGETS:=mt7620 mt7621 mt76x8 rt288x rt305x rt3883
 >> FEATURES:=squashfs gpio
 >>
 >> -KERNEL_PATCHVER:=5.4
 >> -KERNEL_TESTING_PATCHVER:=5.10
 >> +KERNEL_PATCHVER:=5.10
 >>
 >>  define Target/Description
>> Build firmware images for Ralink RT288x/RT3xxx based boards.
 >> --
 >> 2.33.0
 >>
 >>
 >> _______________________________________________
 >> openwrt-devel mailing list
 >> openwrt-devel@lists.openwrt.org
 >> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
 >
 >_______________________________________________
 >openwrt-devel mailing list
 >openwrt-devel@lists.openwrt.org
 >https://lists.openwrt.org/mailman/listinfo/openwrt-devel

 Hi,
 --
 Sent from my smartphone with K-9 Mail. Please excuse my brevity.

 _______________________________________________
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to