summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-12 18:36:30 +0200
committerAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-12 18:36:30 +0200
commit6cf21523d05fb1182ac793925255efe2de68263e (patch)
treee9e1c57ed071a58e9bfc6d9f8455fdaca0d67d34
parent4b58295fb04c2430817301352fadce33178f94d4 (diff)
MHR-?: OTA updates?
Signed-off-by: Amlal EL Mahrouss <amlal@softwarelabs.com>
-rw-r--r--Boot/NetBoot/Module.cxx2
-rw-r--r--Boot/NetBoot/NetBoot.hxx15
-rw-r--r--newoskrnl.10x48
3 files changed, 64 insertions, 1 deletions
diff --git a/Boot/NetBoot/Module.cxx b/Boot/NetBoot/Module.cxx
index cf3a9542..472b9a5b 100644
--- a/Boot/NetBoot/Module.cxx
+++ b/Boot/NetBoot/Module.cxx
@@ -12,7 +12,7 @@
EXTERN_C Int32 ModuleMain(Void)
{
- /// - Find a network drive called "/Remote/NewOSKrnl"
+ /// - Find a network drive called "/Remote/newoskrnl"
/// - Download our image
/// - Boot from it.
diff --git a/Boot/NetBoot/NetBoot.hxx b/Boot/NetBoot/NetBoot.hxx
index 5cac6945..ccb43290 100644
--- a/Boot/NetBoot/NetBoot.hxx
+++ b/Boot/NetBoot/NetBoot.hxx
@@ -10,3 +10,18 @@
#pragma once
#include <NewKit/Defines.hpp>
+
+/// @brief the internet header is used to download updates OTA.
+typedef struct NetBootInternetHeader
+{
+ CharacterTypeUTF8 NB1; /// magic char 1 'N'
+ CharacterTypeUTF8 NB2; /// magic char 2 'E'
+ CharacterTypeUTF8 NB3; /// magic char 3 'T'
+ CharacterTypeUTF8 NB4; /// magic char 4 'B'
+
+ CharacterTypeUTF8 PatchName[255]; /// example: ColdChoco
+ NewOS::Int32 PatchLength; /// the patch length.
+ CharacterTypeUTF8 PatchTarget[255]; /// the target file.
+ NewOS::Boolean ImpliesROM; /// does it implies EEPROM patching?
+} NetBootInternetHeader;
+
diff --git a/newoskrnl.10x b/newoskrnl.10x
new file mode 100644
index 00000000..d232f112
--- /dev/null
+++ b/newoskrnl.10x
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<N10X>
+ <Workspace>
+ <IncludeFilter>*.c,*.cc,*.cpp,*.c++,*.cp,*.cxx,*.h,*.hh,*.hpp,*.h++,*.hp,*.hxx,*.inl,*.cs,*.rs,*.java,*.jav,*.js,*.jsc,*.jsx,*.json,*.cls,*.py,*.rpy,*.php,*.php3,*.phl,*.phtml,*.rhtml,*.tpl,*.phps,*.lua,*.html,*.html5,*.htm,*.xml,*.xaml,*.css,*.ssi,*.haml,*.yaml,*.bat,*.wbf,*.wbt,*.txt,*.cmake,*.make,*.makefile,*.mak,*.mk,*.sh,*.bash,*.csv,*.asp,*.pl,*.mac,*.ws,*.vbs,*.perl,*.src,*.rss,*.inc,*.f,*.go,*.prl,*.plx,*.rb,*.lsp,*.lpx,*.ps1,*.command,*.cbl,*.cob,*.qs,*.wxs,*.ph,*.msc,*.glsl,*.hlsl,*.fx,*.vert,*.tesc,*.tese,*.geom,*.frag,*.comp,*.pssl,*.scons,*.cu,*.jai,</IncludeFilter>
+ <ExcludeFilter></ExcludeFilter>
+ <SyncFiles>true</SyncFiles>
+ <Recursive>true</Recursive>
+ <ShowEmptyFolders>true</ShowEmptyFolders>
+ <IncludeFilesWithoutExt>false</IncludeFilesWithoutExt>
+ <IsVirtual>false</IsVirtual>
+ <IsFolder>false</IsFolder>
+ <BuildCommand></BuildCommand>
+ <RebuildCommand></RebuildCommand>
+ <BuildFileCommand></BuildFileCommand>
+ <CleanCommand></CleanCommand>
+ <BuildWorkingDirectory></BuildWorkingDirectory>
+ <CancelBuild></CancelBuild>
+ <RunCommand></RunCommand>
+ <RunCommandWorkingDirectory></RunCommandWorkingDirectory>
+ <DebugCommand></DebugCommand>
+ <DebugArguments></DebugArguments>
+ <ExePathCommand></ExePathCommand>
+ <DebugSln></DebugSln>
+ <UseVisualStudioEnvBat>false</UseVisualStudioEnvBat>
+ <Configurations>
+ <Configuration>Debug</Configuration>
+ <Configuration>Release</Configuration>
+ </Configurations>
+ <Platforms>
+ <Platform>x64</Platform>
+ <Platform>Win32</Platform>
+ </Platforms>
+ <AdditionalIncludePaths>
+ <AdditionalIncludePath>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include</AdditionalIncludePath>
+ <AdditionalIncludePath>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include</AdditionalIncludePath>
+ <AdditionalIncludePath>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include</AdditionalIncludePath>
+ <AdditionalIncludePath>C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt</AdditionalIncludePath>
+ <AdditionalIncludePath>C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um</AdditionalIncludePath>
+ <AdditionalIncludePath>C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared</AdditionalIncludePath>
+ <AdditionalIncludePath>C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt</AdditionalIncludePath>
+ <AdditionalIncludePath>C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt</AdditionalIncludePath>
+ <AdditionalIncludePath>C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um</AdditionalIncludePath>
+ </AdditionalIncludePaths>
+ <Defines></Defines>
+ <ConfigProperties></ConfigProperties>
+ <Children></Children>
+ </Workspace>
+</N10X>