forked from nadlabak/2ndboot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
34 lines (28 loc) · 1.25 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
2nd-boot project
Compilation notes:
hbootmod:
- Compiled as a module for stock kernel
- "make modules M=path_to_module ARCH=arm CROSS_COMPILE=cross_compiler_prefix"
hboot:
- Compiled as a embedded binary
- output_directory is optional parameter
- "make O=output_directory CROSS_COMPILE=cross_compiler_prefix"
- NOTE: You can name the script with the values as "bmake", which is in .gitignore
hbootuser:
- Compiled as a normal Android binary
Running 2nd-boot:
- all files are considered to be in /system/etc/2nd-boot for the example
- when inserting the module, emu_uart parameter is optional and specifies the baudrate
SCRIPT:
====================================================================================
insmod /system/etc/2nd-boot/hbootmod.ko [emu_uart=115200]
/system/etc/2nd-boot/hbootuser /system/etc/2nd-boot/hboot.cfg
====================================================================================
hboot.cfg
====================================================================================
0 file /system/etc/2nd-boot/hboot.bin
1 file /system/etc/2nd-boot/zImage
2 file /system/etc/2nd-boot/ramdisk
3 file /system/etc/2nd-boot/devtree
4 file /system/etc/2nd-boot/cmdline
====================================================================================