Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-12-17 23:49:01 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-12-17 23:49:01 +0300
commit40ef735db17dfd39e88d5bb1a1d6b56278de1d88 (patch)
tree83925e93322e395b98223502507b2d4b5c52744f /WorkerForm.cs
parentf939bd0194f05167ec83afbed4e957ea8fcbb0e6 (diff)
USB host
Diffstat (limited to 'WorkerForm.cs')
-rw-r--r--WorkerForm.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/WorkerForm.cs b/WorkerForm.cs
index 32742a53..b5ac3c94 100644
--- a/WorkerForm.cs
+++ b/WorkerForm.cs
@@ -43,6 +43,7 @@ namespace com.clusterrr.hakchi_gui
}
public string NandDump;
public string Mod = null;
+ public string zImage = null;
public string exportDirectory;
public bool exportGames = false;
public Dictionary<string, string> Config = null;
@@ -115,6 +116,7 @@ namespace com.clusterrr.hakchi_gui
baseDirectoryExternal = Program.BaseDirectoryExternal;
fes1Path = Path.Combine(Path.Combine(baseDirectoryInternal, "data"), "fes1.bin");
ubootPath = Path.Combine(Path.Combine(baseDirectoryInternal, "data"), "uboot.bin");
+ zImage = Path.Combine(Path.Combine(baseDirectoryInternal, "data"), "zImage");
#if DEBUG
tempDirectory = Path.Combine(baseDirectoryInternal, "temp");
#else
@@ -451,7 +453,7 @@ namespace com.clusterrr.hakchi_gui
);
var size = CalcKernelSize(kernel);
- if (size == 0 || size > Fel.kernel_max_size)
+ if (size == 0 /*|| size > Fel.kernel_max_size*/)
throw new Exception(Resources.InvalidKernelSize + " " + size);
if (kernel.Length > size)
{
@@ -551,7 +553,7 @@ namespace com.clusterrr.hakchi_gui
else
kernel = File.ReadAllBytes(KernelDumpPath);
var size = CalcKernelSize(kernel);
- if (size > kernel.Length || size > Fel.kernel_max_size)
+ if (size > kernel.Length /*|| size > Fel.kernel_max_size*/)
throw new Exception(Resources.InvalidKernelSize + " " + size);
size = (size + Fel.sector_size - 1) / Fel.sector_size;
@@ -1251,6 +1253,10 @@ namespace com.clusterrr.hakchi_gui
File.WriteAllText(Path.Combine(tempHmodsDirectory, "uninstall"), mods.ToString());
}
+ // Custom zImage
+ if (!string.IsNullOrEmpty(zImage))
+ File.Copy(zImage, Path.Combine(kernelDirectory, "kernel.img-zImage"), true);
+
// Building image
byte[] ramdisk;
if (!ExecuteTool("mkbootfs.exe", string.Format("\"{0}\"", ramfsDirectory), out ramdisk))