Flashed the initramfs to the backup slot on GS1900-48 and cant change bootpartion

Hello OpenWRT forum.
Im in a bit of a jam and need help figuring out how to get out off initramfs mode. having flashed the initramfs to the backup slot on GS1900-48 and now cant change bootpartion or firmware... when flashing sysupgrade or OEM from here it is just returns to initrams mode. cant flash OEM firmware or any OpenWRT snap. all roads seem to lead back to initfram mode so how do I move forward?

fw_printsys shows:

root@OpenWrt:~# fw_printsys
resetdefault=0
mac_start=*************
mac_end=*************
sn=S182L1900****
dualfname0=210AAHN0
dualfname1=openwrt-gs1900-48.bin
bootpartition=1

showing openwrt was flashed to slot 2. but changing it gives:

root@OpenWrt:~# fw_setsys bootpartition 0
Can't open /dev/mtd2: Permission denied
Error: can't write fw_env to flash

thanks for reading and i would appreciate your tips or solution

install kmod-mtd-rw, then insmod it by running insmod mtd-rw.ko i_want_a_brick=1.

2 Likes

that sound like a brick but i cant even comply since opkg wont update :woman_facepalming:

ill be right back.. hopefully

your solution worked and its not bricked :sweat_smile:
Thanks frollic :smiley:

Someone should open a PR to fix that for the next person... The u-boot-env partitions should not be marked read-only. Looks like this was done before we had ubootenv-tools support, and then it just stuck.

2 Likes

learned something new and got a decent switch up and running but i see you point. did tear of some hair before posting :rofl:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.