forked from WOA-Project/mu_andromeda_platforms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_boot_images.sh
57 lines (49 loc) · 2.74 KB
/
build_boot_images.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
cat ./BootShim/BootShim.Epsilon.bin ./Build/SurfaceDuo1-AARCH64/DEBUG_CLANG38/FV/SM8150_EFI.fd ./ImageResources/dummykernel > ./ImageResources/Epsilon/bootpayload.bin
python3 ./ImageResources/mkbootimg.py \
--kernel ./ImageResources/Epsilon/bootpayload.bin \
--ramdisk ./ImageResources/Epsilon/ramdisk \
-o ./ImageResources/Epsilon/uefi.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 2022-08-01 \
--second_offset 0xf00000
cat ./BootShim/BootShim.Epsilon.bin ./Build/SurfaceDuo1-AARCH64/DEBUG_CLANG38/FV/SM8150_EFI.fd ./ImageResources/Epsilon/kernel > ./ImageResources/Epsilon/bootpayload.bin
python3 ./ImageResources/mkbootimg.py \
--kernel ./ImageResources/Epsilon/bootpayload.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 2022-08-01 \
--second_offset 0xf00000
cat ./BootShim/BootShim.Zeta.bin ./Build/SurfaceDuo2-AARCH64/DEBUG_CLANG38/FV/SM8350_EFI.fd ./ImageResources/dummykernel > ./ImageResources/Zeta/bootpayload.bin
python3 ./ImageResources/mkbootimg.py \
--kernel ./ImageResources/Zeta/bootpayload.bin \
--ramdisk ./ImageResources/Zeta/ramdisk \
-o ./ImageResources/Zeta/uefi.img \
--pagesize 4096 \
--header_version 3 \
--cmdline "" \
--base 0x0 \
--os_version 11.0.0 \
--os_patch_level 2022-08-01
cat ./BootShim/BootShim.Zeta.bin ./Build/SurfaceDuo2-AARCH64/DEBUG_CLANG38/FV/SM8350_EFI.fd ./ImageResources/Zeta/kernel > ./ImageResources/Zeta/bootpayload.bin
python3 ./ImageResources/mkbootimg.py \
--kernel ./ImageResources/Zeta/bootpayload.bin \
--ramdisk ./ImageResources/Zeta/ramdisk \
-o ./ImageResources/Zeta/boot.img \
--pagesize 4096 \
--header_version 3 \
--cmdline "" \
--base 0x0 \
--os_version 11.0.0 \
--os_patch_level 2022-08-01