This patch avoids sysupgrade to fail and break the boot image. This patch dosen't affact the Edgerouter Lite.
The boot partition on the internal mmc flash is only 8.3M large. Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 * 63 17135 17073 8.3M 83 Linux Creating a backup of vmlinux64.bin might use to much space, when using a kernel image > 4.2 MBytes. This results in a "no space left on device" error when sysupgrade flashes the new kernel image, leaving an incomplete kernel image in the boot partition. This prevents further booting. Signed-off-by: Daniel Danzberger <dan...@dd-wrt.com> --- target/linux/octeon/base-files/lib/upgrade/platform.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/octeon/base-files/lib/upgrade/platform.sh b/target/linux/octeon/base-files/lib/upgrade/platform.sh index 91763ce..e763763 100755 --- a/target/linux/octeon/base-files/lib/upgrade/platform.sh +++ b/target/linux/octeon/base-files/lib/upgrade/platform.sh @@ -42,7 +42,7 @@ platform_do_flash() { mkdir -p /boot mount -t vfat /dev/$kernel /boot - [ -f /boot/vmlinux.64 -a ! -L /boot/vmlinux.64 ] && { + [ "$board" != "er" -a -f /boot/vmlinux.64 -a ! -L /boot/vmlinux.64 ] && { mv /boot/vmlinux.64 /boot/vmlinux.64.previous mv /boot/vmlinux.64.md5 /boot/vmlinux.64.md5.previous } -- 1.9.1 _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev