match with kvs-private repo

This commit is contained in:
kxtzownsu 2025-01-17 14:35:29 +00:00
parent 7a3a986ea6
commit 4e4dbc7d10
6 changed files with 15 additions and 7 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
build/ build/
target/ target/
Cargo.lock Cargo.lock
*.bin*
# Prerequisites # Prerequisites
*.d *.d

View File

@ -41,6 +41,8 @@ all: clean build kvs kvg tools
kvs: build build/$(ARCH)/bin/kvs kvs: build build/$(ARCH)/bin/kvs
kvg: build build/$(ARCH)/bin/kvg kvg: build build/$(ARCH)/bin/kvg
.PHONY: build
tools: build $(TOOL_BINS) tools: build $(TOOL_BINS)
build/$(ARCH)/tools/%: build/$(ARCH)/tools/%.o build/$(ARCH)/tools/%: build/$(ARCH)/tools/%.o
@ -68,5 +70,9 @@ install:
cp -r build/* /usr/local/ cp -r build/* /usr/local/
clean: clean:
rm -rf build/$(ARCH)
rm -rf target/$(TARGET)
deepclean:
rm -rf build rm -rf build
rm -rf target rm -rf target

View File

@ -4,8 +4,10 @@ KVS: Kernel Version Switcher (anti-rollback rollbacker)
[![build kvs](https://github.com/kxtzownsu/KVS-private/actions/workflows/kvs.yaml/badge.svg)](https://github.com/kxtzownsu/KVS-private/actions/workflows/kvs.yaml) [![build kvs](https://github.com/kxtzownsu/KVS-private/actions/workflows/kvs.yaml/badge.svg)](https://github.com/kxtzownsu/KVS-private/actions/workflows/kvs.yaml)
[![build kvg](https://github.com/kxtzownsu/KVS-private/actions/workflows/kvg.yaml/badge.svg)](https://github.com/kxtzownsu/KVS-private/actions/workflows/kvg.yaml) [![build kvg](https://github.com/kxtzownsu/KVS-private/actions/workflows/kvg.yaml/badge.svg)](https://github.com/kxtzownsu/KVS-private/actions/workflows/kvg.yaml)
<sub> my first real C project, the code may look like shit, dont get mad at me because of it! :3 </sub> <sub> my first real C project, the code may look like shit, dont get mad at me because of it! </sub>
> [!IMPORTANT]
> This requires an unenrolled device. Any errors relating to being enrolled will be ignored and closed.
## Build Instructions ## Build Instructions
1) Clone the repo: <br /> 1) Clone the repo: <br />

View File

@ -3,7 +3,7 @@
SCRIPT_DIR=$(dirname "$0") SCRIPT_DIR=$(dirname "$0")
VERSION=2.0.0 VERSION=2.0.0
HOST_ARCH=$(lscpu | grep Architecture | awk '{print $2}') HOST_ARCH=$(arch)
if [ $HOST_ARCH == "x86_64" ]; then if [ $HOST_ARCH == "x86_64" ]; then
CGPT="$SCRIPT_DIR/bins/cgpt.x86-64" CGPT="$SCRIPT_DIR/bins/cgpt.x86-64"
SFDISK="$SCRIPT_DIR/bins/sfdisk.x86-64" SFDISK="$SCRIPT_DIR/bins/sfdisk.x86-64"

View File

@ -24,7 +24,6 @@ int main(int argc, char **argv) {
exit(1); exit(1);
} }
// example values for testing
const char* fwver = getFirmwareVersion(); const char* fwver = getFirmwareVersion();
const char* tpmver = getTpmVersion(); const char* tpmver = getTpmVersion();
const char* fwmp = getFWMPFlags(); const char* fwmp = getFWMPFlags();

View File

@ -31,6 +31,7 @@
<p>This works using the hexdumps of 0x1008 (kernver TPM index) and <code>tpmc</code> to write the hexdumps of your selected kernver to the 0x1008 TPM index.</p> <p>This works using the hexdumps of 0x1008 (kernver TPM index) and <code>tpmc</code> to write the hexdumps of your selected kernver to the 0x1008 TPM index.</p>
</div> </div>
<div class="installation"> <div class="installation">
<p><b>YOU MUST BE UNENROLLED TO USE KVS! ANY ISSUES REPORTED RELATING TO BEING ENROLLED WHILE TRYING TO USE THIS WILL GET CLOSED IMMEDIATELY</b></p>
<h3>How do I use this?</h3> <h3>How do I use this?</h3>
<p>To use KVS, you must download your shim from <a href="https://dl.kxtz.dev/shims/KVS/">kxtz' shim mirror</a></p> <p>To use KVS, you must download your shim from <a href="https://dl.kxtz.dev/shims/KVS/">kxtz' shim mirror</a></p>
<p>After downloading, flash your USB/SD with the file, I recommend Chrome Recovery Utility.</p> <p>After downloading, flash your USB/SD with the file, I recommend Chrome Recovery Utility.</p>
@ -46,7 +47,6 @@
<p>kernver 0: any</p> <p>kernver 0: any</p>
<p>kernver 1: any</p> <p>kernver 1: any</p>
<p>kernver 2: 112 - 119</p> <p>kernver 2: 112 - 119</p>
<p>kernver 3: 120 - 124</p>
<p>kernver 4: 125 - latest</p> <p>kernver 4: 125 - latest</p>
<h4><b>Q: </b>What is the difference between kernver 0 and kernver 1?</h4> <h4><b>Q: </b>What is the difference between kernver 0 and kernver 1?</h4>
<p><b>A: </b>literally none, its just cool to see</p> <p><b>A: </b>literally none, its just cool to see</p>