[PATCH 1/3] generic: platform/mikrotik: make soft_config writable without 4K sectors
Roger Pueyo Centelles | Guifi.net
roger.pueyo at guifi.net
Tue Jan 11 09:53:36 PST 2022
Hi, Oskari,
I could successfully test your patch on a
mikrotik,routerboard-wap-g-5hact2hnd.
Previously:
root at OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 "RouterBoot"
mtd1: 0000e000 00010000 "bootloader1"
mtd2: 00001000 00010000 "hard_config"
mtd3: 00001000 00010000 "bios"
mtd4: 0000f000 00010000 "bootloader2"
mtd5: 00001000 00010000 "soft_config"
[...]
Your patch:
root at OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 "RouterBoot"
mtd1: 0000e000 00010000 "bootloader1"
mtd2: 00001000 00010000 "hard_config"
mtd3: 00001000 00010000 "bios"
mtd4: 0000f000 00010000 "bootloader2"
mtd5: 00001000 00001000 "soft_config"
[...]
Then, under /sys/firmware/mikrotik/soft_config, I could configure
cpufreq_index to run at 720, 600 or 500 MHz.
Thanks for your patch!
Roger
El 9/1/22 a les 14:57, Sven Roederer ha escrit:
> Am Dienstag, 21. Dezember 2021, 08:45:59 CET schrieb Oskari Lemmela:
>> Make soft_config writable in all cases. Performing soft_config commit
>> will fail if mtd partition is not writable.
>>
>> Signed-off-by: Oskari Lemmela <oskari at lemmela.net>
>> ---
>> .../drivers/platform/mikrotik/rb_softconfig.c | 17 +++--------------
>> 1 file changed, 3 insertions(+), 14 deletions(-)
>>
>> diff --git
>> a/target/linux/generic/files/drivers/platform/mikrotik/rb_softconfig.c
>> b/target/linux/generic/files/drivers/platform/mikrotik/rb_softconfig.c
>> index 070bd32d5a..31d06c423a 100644
>> --- a/target/linux/generic/files/drivers/platform/mikrotik/rb_softconfig.c
>> +++ b/target/linux/generic/files/drivers/platform/mikrotik/rb_softconfig.c
>> @@ -59,20 +59,9 @@
>> #define RB_SOFTCONFIG_VER "0.03"
>> #define RB_SC_PR_PFX "[rb_softconfig] "
> Oskari,
>
> maybe also good to bump version to 0.04 .
>
> Sven
>
>
>
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
More information about the openwrt-devel
mailing list