diff --git a/Tasks/MembootTasks.cs b/Tasks/MembootTasks.cs
index 99ed832c35fa97b16f59fa43f2a11661cd131a97..f9629cb044a771995607d71384f571af4350996e 100644
--- a/Tasks/MembootTasks.cs
+++ b/Tasks/MembootTasks.cs
@@ -784,6 +784,8 @@ namespace com.clusterrr.hakchi_gui.Tasks
                     throw new Exception(Resources.InvalidUbootSize + " " + uboot.Length);
                 }
 
+                uboot.SetLength(655360);
+
                 uboot.OnProgress += tasker.OnProgress;
 
                 hakchi.Shell.Execute("cat > /uboot.bin", uboot, null, null, 0, true);