Browse Source

- server-files: fix get-kernel and online-update for h7

master
vanhofen 5 years ago
parent
commit
85b0c001bc
  1. 14
      .server-files/get-kernel.php
  2. 6
      .server-files/update.php

14
.server-files/get-kernel.php

@ -9,8 +9,8 @@ $boxtype_sc = ""; # autofilled
$boxseries = trim($_GET["boxseries"]); $boxseries = trim($_GET["boxseries"]);
$boxmodel = trim($_GET["boxmodel"]); $boxmodel = trim($_GET["boxmodel"]);
$kernel_name = ""; $kernel_prefix = "";
$image_type = "release"; $image_type = "nightly";
# convert strings to lower case # convert strings to lower case
$boxtype = strtolower($boxtype); $boxtype = strtolower($boxtype);
@ -21,27 +21,27 @@ $image_type = strtolower($image_type);
if ($boxtype == "coolstream" || $boxtype == "cst") if ($boxtype == "coolstream" || $boxtype == "cst")
{ {
# CST
$boxtype_sc = "cst"; $boxtype_sc = "cst";
if ($boxmodel == "nevis") if ($boxmodel == "nevis")
{ {
$kernel_name = "zImage.img"; $kernel_prefix = "-zImage.img";
} }
elseif ($boxmodel == "apollo" || $boxmodel == "shiner" || $boxmodel == "kronos" || $boxmodel == "kronos_v2") elseif ($boxmodel == "apollo" || $boxmodel == "shiner" || $boxmodel == "kronos" || $boxmodel == "kronos_v2")
{ {
$kernel_name = "vmlinux.ub.gz"; $kernel_prefix = "-vmlinux.ub.gz";
} }
} }
elseif ($boxtype == "armbox" || $boxtype == "arm") elseif ($boxtype == "armbox" || $boxtype == "arm")
{ {
# AX Tech
$boxtype_sc = "arm"; $boxtype_sc = "arm";
$kernel_prefix = ".bin";
} }
# release/kernel-cst-kronos-vmlinux.ub.gz # release/kernel-cst-kronos-vmlinux.ub.gz
$directory = $image_type; $directory = $image_type;
$kernel = $directory . "/kernel-" . $boxtype_sc . "-" . $boxmodel . "-" . $kernel_name; $kernel = $directory . "/kernel-" . $boxtype_sc . "-" . $boxmodel . $kernel_prefix;
if (!file_exists($kernel)) if (!file_exists($kernel))
{ {

6
.server-files/update.php

@ -1,5 +1,9 @@
<?php <?php
header('Content-Type: text/plain'); header('Content-Type: text/plain');
/*
Example:
http://www.neutrino-images.de/neutrino-images/update.php?revision=1&boxname=hd51&chip_type=0&image_type=nightly
*/
# uncomment next line to deactivate online update # uncomment next line to deactivate online update
#die(); #die();
@ -37,7 +41,7 @@ if ($revision == 1) // libstb-hal
$boxseries = "hd51"; $boxseries = "hd51";
$boxmodel = "bre2ze4k"; $boxmodel = "bre2ze4k";
} }
elseif ($boxname == "h7") elseif ($boxname == "zgemma h7c/s")
{ {
$boxtype_sc = "arm"; $boxtype_sc = "arm";
$boxseries = "hd51"; $boxseries = "hd51";

Loading…
Cancel
Save