Skip to content

Instantly share code, notes, and snippets.

View imi415's full-sized avatar
Erasing blocks...

Yilin Sun imi415

Erasing blocks...
View GitHub Profile
@imi415
imi415 / mmfr0_test.c
Created July 22, 2021 08:19
MMFR0 test module
#include <linux/module.h>
#include <linux/kernel.h>
static int init_mrs(void) {
u64 mmfr0_el1;
printk(KERN_INFO "MRS_TEST module initialized.\n");
asm("mrs %0, id_aa64mmfr0_el1" : "=r" (mmfr0_el1));
printk("ID_AA64MMFR0_EL1: 0x%016llx\n", mmfr0_el1);
@imi415
imi415 / 01-phicomm-drive.patch
Last active September 24, 2018 16:13
Phicomm N1 Car drive - Anything you need to drive Phicomm ghost car.
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index 106039d25e2f..651d9908c8a4 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -88,7 +88,7 @@ TEXT_OFFSET := $(shell awk "BEGIN {srand(); printf \"0x%06x\n\", \
int(2 * 1024 * 1024 / (2 ^ $(CONFIG_ARM64_PAGE_SHIFT)) * \
rand()) * (2 ^ $(CONFIG_ARM64_PAGE_SHIFT))}")
else
-TEXT_OFFSET := 0x00080000
+TEXT_OFFSET := 0x01080000