[PATCH 0/3] mikrotik: make soft_config partition writable
Oskari Lemmelä
oskari at lemmela.net
Tue Jan 4 09:10:04 PST 2022
Hi,
On 21.12.2021 15.19, Stefan Hellermann wrote:
> Hi,
>
> I tested the series on a Mikrotik LHG 2.
>
> # 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"
> mtd6: 00fe0000 00010000 "firmware"
> mtd7: 00290000 00010000 "kernel"
> mtd8: 00d50000 00010000 "rootfs"
> mtd9: 009e0000 00010000 "rootfs_data"
>
> => erasesize of soft_config is smaller
>
> # cat /sys/firmware/mikrotik/soft_config/boot_proto
> [bootp] dhcp
> # echo dhcp > /sys/firmware/mikrotik/soft_config/boot_proto
> # cat /sys/firmware/mikrotik/soft_config/commit
> dirty
> # echo 1 > /sys/firmware/mikrotik/soft_config/commit
> # cat /sys/firmware/mikrotik/soft_config/boot_proto
> bootp [dhcp]
> # cat /sys/firmware/mikrotik/soft_config/commit
> clean
>
> => No error, change is written to flash
>
> sysupgrade is also ok, configuration ist saved.
>
> Tested-by: Stefan Hellermann <stefan at the2masters.de>
Thanks for testing!
I will send v2 series with updated tags.
Oskari
More information about the openwrt-devel
mailing list