-
Notifications
You must be signed in to change notification settings - Fork 20
/
build_boot_epsilon.sh
executable file
·31 lines (29 loc) · 1.87 KB
/
build_boot_epsilon.sh
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
#!/bin/bash
# Andromeda855 UEFI as Boot (Dual Boot)
cat ./ImageResources/Epsilon/patchedkernel ./ImageResources/Epsilon/SM8150_EFI.fd > ./ImageResources/Epsilon/boot.payload.bin
python3 ./ImageResources/mkbootimg.py \
--kernel ./ImageResources/Epsilon/boot.payload.bin \
--ramdisk ./ImageResources/Epsilon/ramdisk \
-o ./ImageResources/Epsilon/boot.img \
--pagesize 4096 \
--header_version 2 \
--cmdline "console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0xa90000 androidboot.hardware=surfaceduo androidboot.hardware.platform=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=2048 loop.max_part=7 androidboot.usbcontroller=a600000.dwc3 kpti=off buildvariant=user" \
--dtb ./ImageResources/Epsilon/dtb \
--base 0x0 \
--os_version 11.0.0 \
--os_patch_level 2023-08-01 \
--second_offset 0xf00000
# Andromeda855 UEFI as Boot (Dual Boot) (SecureBoot Disabled)
cat ./ImageResources/Epsilon/patchedkernel ./ImageResources/Epsilon/SM8150_EFI_NOSB.fd > ./ImageResources/Epsilon/boot_nosb.payload.bin
python3 ./ImageResources/mkbootimg.py \
--kernel ./ImageResources/Epsilon/boot_nosb.payload.bin \
--ramdisk ./ImageResources/Epsilon/ramdisk \
-o ./ImageResources/Epsilon/boot_nosb.img \
--pagesize 4096 \
--header_version 2 \
--cmdline "console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0xa90000 androidboot.hardware=surfaceduo androidboot.hardware.platform=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=2048 loop.max_part=7 androidboot.usbcontroller=a600000.dwc3 kpti=off buildvariant=user" \
--dtb ./ImageResources/Epsilon/dtb \
--base 0x0 \
--os_version 11.0.0 \
--os_patch_level 2023-08-01 \
--second_offset 0xf00000