Bug on EA8300 dual parted

hi

sorry for my english bad.

i found bug on my linksys EA8300 maybe other router dual parted have problem.

i explain to you with exemple :

on kitty : cat /sys/devices/virtual/ubi/ubi0/mtd_num
result = 11 ( 11 is kernel on EA8300 )
go on 192.168.1.1/cgi-bin/luci/admin/system/flash
flash same version openwrt ( sysupgrade ) and uncheck keep parameter
after reboot, on kitty i have :
cat /sys/devices/virtual/ubi/ubi0/mtd_num
result = 13 ( 13 is ALT_kernel on EA8300 )

why the sysupgrade not install on part 11 ?

bonus for me, is possible for you tell me if firstboot && reboot now is same as reinstalling the same sysupgrade as the current version ? thx

1 Like

Sysupgrade always install on the "other" partition. You just killed the OEM failover partition to recover from putting yourself in trouble with OpenWrt.

1 Like

Ok I know now ... ^^ is not bug

Again other question, how to upgrade ( sysupgrade only same partition ? And not the second ?

That won't happen, the flash process always flashes the other partition:
[OpenWrt Wiki] Linksys EA8300
"The OEM firmware will remain on the “other” firmware of the two that this device keeps. This device, with OEM or with OpenWrt, “see-saws” between the two sets with every flash. As a result, if you flash from the just-installed OpenWrt, it will overwrite your previous OEM version."

1 Like

ok thank you, sorry for "no read manual :confused: "

1 Like

There are many posts on EA8300, some are mine, there is a way to upgrade EA8300 which is simple:

  • Install luci-app-advanced-reboot, allows to select which partition to reboot to
  • Backup your config if you are upgrading a working OpenWrt config (backup does not save add-on binaries, just their config)
  • Make sure you write down a list of all add-on you installed (their config is backed-up)
  • Reboot to OEM partition
  • Flash OpenWrt Factory from OEM partition, which reboots to OpenWrt
  • Reinstall all add-on, no config necessary
  • Restore configs from backup
  • You're up and running with upgraded OpenWrt with config restored.

This way you always keep OEM partition as "Known Working State" to initiate an OpenWrt upgrade.

2 Likes

Thanks for the help.

Yes I have already done several sysupgrade and squatchfs

I even restored the oem partition 3 times.

But I didn't know that it overwrites the other partition.

Thanks for the flash tip via the original firmware :wink:

1 Like

What procedure did you use to restore OEM partition ?

1 Like

my procedure ( adapted on openwrt page on the ea8300 )

##actual :
## show mounted part :
	cat /sys/devices/virtual/ubi/ubi0/mtd_num
## 11 = kernel
## 13 = alt_kernel
## nous pouvons écraser la partition en cour d'utilisation si besoin. pas de problème 

## place firmware linksys on openwrt part on tmp/
##/tmp/FW_EA8300_1.1.4.191539_prod.img
## after : 
	mtd erase kernel
## OR
	mtd erase alt_kernel
## AND 
	mtd write /tmp/FW_EA8300_1.1.4.191539_prod.img kernel  
## OR   
	mtd write /tmp/FW_EA8300_1.1.4.191539_prod.img alt_kernel

## WAIT AND CHOSE NEXT BOOT : 

##kernel :
	fw_setenv boot_part 1
##alt_kernel :  
	fw_setenv boot_part 2
  
 ##AND 
	reboot
 
1 Like

Thanks, much appreciated !

1 Like

no problem, i'm not pro but if possible for help user =)

1 Like

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