From 6cf21523d05fb1182ac793925255efe2de68263e Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Wed, 12 Jun 2024 18:36:30 +0200 Subject: MHR-?: OTA updates? Signed-off-by: Amlal EL Mahrouss --- Boot/NetBoot/Module.cxx | 2 +- Boot/NetBoot/NetBoot.hxx | 15 +++++++++++++++ newoskrnl.10x | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 newoskrnl.10x 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 + +/// @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 @@ + + + + *.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, + + true + true + true + false + false + false + + + + + + + + + + + + + false + + Debug + Release + + + x64 + Win32 + + + C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include + C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include + C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include + C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt + C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um + C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared + C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt + C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt + C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um + + + + + + -- cgit v1.2.3