Skip to content

Commit 807d714

Browse files
committed
Shellcode: KernelWrapper: Update comments.
1 parent 50f3b13 commit 807d714

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

HDRTool.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//
2+
// Created by sunfl on 25-6-9.
3+
//

ShellCode/ShellCode.KernelWrapper.S

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@
1616
*
1717
* Note:
1818
* You need to add memory region for linux dtb in device tree manually
19-
* otherwise linux will NOT boot.
19+
* otherwise linux will NOT boot. check the sample below, you can find
20+
* it in android fdt at /sys/firmware/fdt.
21+
* memory {
22+
* ddr_device_type = <0x08>;
23+
* device_type = "memory";
24+
* #address-cells = <2>;
25+
* #size-cells = <2>;
26+
* reg = <0x0 0x80000000 0x0 0x3b800000>,
27+
* <0x1 0x80000000 0x1 0x00000000>,
28+
* <0x0 0xc0000000 0x0 0xc0000000>;
29+
* };
2030
*
2131
* Usage:
2232
* ./DualBootKernelPatcher OriginalKernel mainline_dtb output DualBoot.Sm8250DT.cfg ShellCode.KernelWrapper.bin

0 commit comments

Comments
 (0)