OpenWrt's out-of-tree 204-module_strip.patch causes issues

Arınç ÜNAL arinc.unal at arinc9.com
Sat Jun 1 23:41:20 PDT 2024


On 02/06/2024 00.48, Daniel Golle wrote:
> 
> 
> On 1 June 2024 20:23:20 UTC, "Arınç ÜNAL" <arinc.unal at arinc9.com> wrote:
>> I've been working on porting MP-DCCP to Teltonika SDK 7.6.10. The SDK is
>> based off of OpenWrt, close to 22.03.6. After spending hours on figuring
>> out why my MP-DCCP port works on the vanilla 5.10.201 but not OpenWrt's
>> 5.10.201, I've started looking for OpenWrt's out-of-tree kernel patches. I
>> was able to pinpoint it to
>> target/linux/generic/hack-5.10/204-module_strip.patch. I see that this
>> patch is still there for 6.6 on the main branch of the OpenWrt repository.
> 
> I guess that's the price to pay for space reduction.... And I guess the fact that Teltonika bases their OS on OpenWrt is also because they manage to implement a dual-boot system with 16MB of flash, so there is some direct causal connection here, SPI-NOR still being much more reliable and cheaper than an eMMC which could fit Debian or whatever other OS...
> 
> Anyway, does that warning also occur if CONFIG_MODULE_STRIPPED isn't selected? And is there any functional impact besides that warning?

The warning doesn't occur when CONFIG_MODULE_STRIPPED isn't selected.
internal_create_group() will return -EINVAL when this warning is caused so
it breaks functionality.

Arınç



More information about the openwrt-devel mailing list