Alright so I am trying to revert my firmware back to stock firmware on my Linksys ea8300. I followed the wiki on https://openwrt.org/toh/linksys/linksys_ea8300 and specifically these instructions:
OEM Firmware
FIRMWARE (as of 2019-02-05) Ver. 1.1.4.191539 Latest Date: 11/8/2018 Download 49.0 MB
Release Notes
GPL distribution http://downloads.linksys.com/downloads/gpl/EA8300_v1.1.3.184925_GPL.tar.gz includes linux-3.4.103.tar.xz
Boot log for “firmware version 1.1.3.184925” indicates 3.14.77
Revert to Stock
To revert to stock, the OEM firmware should be available on the device. For the purposes of this description, it is at /tmp/FW_EA8300_1.1.4.191539_prod.img
Realize that any time you are writing to flash using low-level commands, there is the chance of unrecoverable corruption. Make sure that you understand what these commands are doing and ensure that the power to the device is not interruptible.
The first step is to determine which firmware you wish to flash. The currently mounted OpenWrt firmware can usually be determined by
root@test:~# cat /sys/devices/virtual/ubi/ubi0/mtd_num
13
11 indicates that kernel is mounted, 13, that alt_kernel is mounted.
In most cases people should overwrite the “other” firmware.
Erase the other firmware partition and flash the firmware
mtd erase kernel
mtd write /tmp/FW_EA8300_1.1.4.191539_prod.img kernel
After confirming success, you can set the next-boot partition with
fw_setenv boot_part 1 # to set for kernel
fw_setenv boot_part 2 # to set for alt_kernel
Everything works fine until I get to the last step where you set the next-boot partition with fw_setenv. I get the following error:
root@OpenWrt:~# fw_setenv boot_part 1
Cannot parse config file '/etc/fw_env.config': Invalid argument
Error: environment not initialized
I am new to OpenWrt but certainly not Linux, however, I'm not really sure why I am getting this error. Any help would be GREATLY appreciated!!!
BTW: The router is still on, I haven't rebooted it yet.