Skip to content

Commit 6c61478

Browse files
committed
Rename to project aloha.
1 parent 32a2c2d commit 6c61478

File tree

27 files changed

+115
-48
lines changed

27 files changed

+115
-48
lines changed

.vitepress/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { zh } from './zh'
66
// https://vitepress.dev/reference/site-config
77
export default withMermaid(
88
defineConfig({
9-
title: "woa-msmnile",
9+
title: "Project Aloha",
1010
lastUpdated: true,
1111
head: [
1212
['link', { rel: 'icon', type: 'image/svg+xml', href: 'images/Logov2.2.svg' }],
@@ -46,7 +46,7 @@ export default withMermaid(
4646
}
4747
},
4848
socialLinks: [
49-
{ icon: 'github', link: 'https://github.com/woa-msmnile' },
49+
{ icon: 'github', link: 'https://github.com/Project-Aloha' },
5050
],
5151
},
5252
})

.vitepress/en.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const en = defineConfig({
66
themeConfig: {
77
nav: [
88
{ text: 'Home', link: '/'},
9-
{ text: 'Documents', link: '/Introduction/msmnilePkg' },
9+
{ text: 'Documents', link: '/Introduction/mu_aloha_platforms' },
1010
{ text: 'Videos', link: '/Videos/Introduction/Introduction' },
1111
],
1212
sidebar: {
@@ -15,10 +15,10 @@ export const en = defineConfig({
1515
},
1616
editLink: {
1717
text: 'Edit this page on Github',
18-
pattern: 'https://github.com/woa-msmnile/woa-msmnile.github.io/edit/main/:path'
18+
pattern: 'https://github.com/Project-Aloha/project-aloha.github.io/edit/main/:path'
1919
},
2020
footer: {
21-
copyright: `Site CC BY-NC-SA 4.0 | CopyRight © 2022-${new Date().getFullYear()} woa-msmnile`
21+
copyright: `Site CC BY-NC-SA 4.0 | CopyRight © 2022-${new Date().getFullYear()} Project-Aloha`
2222
},
2323
}
2424
})
@@ -28,8 +28,8 @@ function sidebarDocs(): DefaultTheme.SidebarItem[] {
2828
{
2929
text: 'Introduction',
3030
items: [
31-
{ text: 'woa-msmnile', link: '/Introduction/organization'},
32-
{ text: 'msmnilePkg', link: '/Introduction/msmnilePkg'},
31+
{ text: 'Project-Aloha', link: '/Introduction/organization'},
32+
{ text: 'mu_aloha_platforms', link: '/Introduction/mu_aloha_platforms'},
3333
{ text: 'UEFI Porting Status', link: '/PortingStatus/PortingStatus'}
3434
]
3535
},
@@ -46,6 +46,7 @@ function sidebarDocs(): DefaultTheme.SidebarItem[] {
4646
text: 'Dual Boot',
4747
items: [
4848
{ text: 'Introduction', link: '/DualBoot/Introduction'},
49+
{ text: 'Apply DualBoot', link:'/DualBoot/PatchKernel.md'},
4950
{ text: 'Config', link: '/DualBoot/Config'},
5051
{ text: 'Shell Code', link: '/DualBoot/ShellCode'},
5152
]

.vitepress/zh.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ export const zh = defineConfig({
3131
},
3232
editLink: {
3333
text: '在 Github 上编辑此页',
34-
pattern: 'https://github.com/woa-msmnile/woa-msmnile.github.io/edit/main/:path'
34+
pattern: 'https://github.com/Project-Aloha/project-aloha.github.io/edit/main/:path'
3535
},
3636
footer: {
37-
copyright: `网站 CC BY-NC-SA 4.0 | 版权所有 © 2022-${new Date().getFullYear()} woa-msmnile`
37+
copyright: `网站 CC BY-NC-SA 4.0 | 版权所有 © 2022-${new Date().getFullYear()} Project-Aloha`
3838
},
3939
}
4040
})
@@ -44,8 +44,8 @@ function sidebarDocs(): DefaultTheme.SidebarItem[] {
4444
{
4545
text: '简介',
4646
items: [
47-
{ text: 'woa-msmnile', link: '/Introduction/organization'},
48-
{ text: 'msmnilePkg', link: '/Introduction/msmnilePkg'},
47+
{ text: 'Project-Aloha', link: '/Introduction/organization'},
48+
{ text: 'mu_aloha_platforms', link: '/Introduction/mu_aloha_platforms'},
4949
{ text: '移植状态', link: '/PortingStatus/PortingStatus'}
5050
]
5151
},

DualBoot/PatchKernel.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Apply DualBoot with DualBoot Kernel Patcher
2+
> This guide will help you build a boot image with uefi/android dualboot feature.
3+
4+
## Prepare
5+
- An android device.
6+
- Download `UEFI FD` file from [Github Action](https://github.com/Project-Aloha/mu_aloha_platforms/actions)(You may need to login to download artifacts) or [Release Page](https://github.com/Project-Aloha/mu_aloha_platforms/releases) of uefi repository.
7+
- `Magiskboot` for your environment, there are prebuilt binaries on github.
8+
- DualBoot kernel patcher binary and shellcode binaries for your devices from [release page](https://github.com/Project-Aloha/DualBootKernelPatcher/releases) or [action page](https://github.com/Project-Aloha/DualBootKernelPatcher/actions).
9+
10+
:::Notice
11+
All these steps can be done on your android device.
12+
:::
13+
14+
## Steps
15+
> Assume you have done the following steps on your android device.
16+
> 1. Root your device with magisk.
17+
> 2. Downloaded and installed termux.
18+
> 3. Installed root-repo and tsu in termux with apt.
19+
20+
- Get Android Boot Image.
21+
+ The boot image usually can be found at `/dev/block/by-name/boot` or `/dev/block/by-name/boot_a` (or _b).
22+
+ Open your termux, and copy the boot image out for future use.
23+
```bash
24+
tsu # get root shell
25+
mkdir /sdcard/dualboot/ # create a folder to put files.
26+
cp /dev/block/by-name/boot /sdcard/dualboot/boot.img # copy to our folder and rename to boot.img. If your device has ab slot, please add _a or _b suffix.
27+
```
28+
29+
- Unpack it with magiskboot.
30+
+ If your device was rooted by magisk, there should be an magiskboot binary at `/data/adb/magisk/magiskboot`
31+
+ By the way you can press the `tab` button in termux to automatically fill path, instead of typing the characters one by one.
32+
+ Do Unpack
33+
```bash
34+
cd /sdcard/dualboot/ # change working directory to our folder.
35+
/data/adb/magisk/magiskboot unpack boot.img # unpack
36+
```
37+
+ You will get something like this:
38+
```bash
39+
/sdcard/dualboot# magiskboot unpack boot.img
40+
Parsing boot image: [boot.img]
41+
HEADER_VER [1]
42+
KERNEL_SZ [41576325]
43+
RAMDISK_SZ [927736]
44+
SECOND_SZ [0]
45+
RECOV_DTBO_SZ [0]
46+
OS_VERSION [9.0.0]
47+
OS_PATCH_LEVEL [2021-05]
48+
PAGESIZE [4096]
49+
NAME []
50+
CMDLINE [console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0xa90000 androidboot.hardware=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 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 androidboot.usbcontroller=a600000.dwc3 buildvariant=user]
51+
CHECKSUM [e73518a6e1edf3062d9cebd3203a51069ef2f424000000000000000000000000]
52+
KERNEL_DTB_SZ [3972965]
53+
KERNEL_FMT [raw]
54+
RAMDISK_FMT [raw]
55+
/sdcard/dualboot# ls
56+
boot kernel kernel_dtb ramdisk.cpio
57+
```
58+
59+
- Apply patch with dualboot kernel patcher.
60+
+ Assume the patcher and shellcodes and config you downloaded above was saved at `/sdcard/Download/`
61+
+ Unpack these zips:
62+
```
63+
unzip /sdcard/Download/
64+
```
65+
66+
-

DualBoot/ShellCode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Shell Code is the key place why we patch kernel or what do we patch kernel for.
66

77
## DualBoot ShellCodes
88
- For DualBoot feature, here provided several sources:
9-
+ [DummyHead.S](https://github.com/woa-msmnile/DualBootKernelPatcher/blob/main/ShellCode/DummyHead.S)
9+
+ [DummyHead.S](https://github.com/Project-Aloha/DualBootKernelPatcher/blob/main/ShellCode/DummyHead.S)
1010
- PlaceHolders of Linux Kernel hdr.(refer `kernel64_hdr` struct in [Qualcomm ABL](https://git.codelinaro.org/clo/la/abl/tianocore/edk2/-/blob/KERNEL.PLATFORM.2.1.r1-04700-kernel.0/QcomModulePkg/Include/Library/BootImage.h?ref_type=tags#L477-489))
1111
- This part will not be injected into Linux kernel.
1212

1313
+ `ShellCode.xxx.S`
1414
- Read flags in memory or do other check.
1515
- Once the conditions are met, will jump to `_UEFI`, otherwise continue next instruction.
1616

17-
+ [CommonTail.S](https://github.com/woa-msmnile/DualBootKernelPatcher/blob/main/ShellCode/CommonTail.S)
17+
+ [CommonTail.S](https://github.com/Project-Aloha/DualBootKernelPatcher/blob/main/ShellCode/CommonTail.S)
1818
- First instruction is jumping to linux, that happen when condition in `ShellCode.xxx.S` not meet.
1919
- Provide `_UEFI`label, `ShellCode.xxx.S` will jump here after conditions.
2020
- Handles unexceptional behavior in the end.

InstallationGuides/InstallDrivers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
- Download Driver Pack
1515
> Just click the Download Button in the page.
1616
<img src="/InstallationGuides/Resources/InstallDrivers/HowToDownload1.png" width=40%/>
17-
- For Sm8150 Devices, the repo is [msmnile-Drivers](https://github.com/woa-msmnile/msmnile-Drivers)
18-
- For Sm7125 Devices, the repo is [Atoll-Drivers](https://github.com/woa-msmnile/Atoll-Drivers)
17+
- For Sm8150 Devices, the repo is [msmnile-Drivers](https://github.com/Project-Aloha/msmnile-Drivers)
18+
- For Sm7125 Devices, the repo is [Atoll-Drivers](https://github.com/Project-Aloha/Atoll-Drivers)
1919
- For others, please refer to [QC Silicons' Codename Reference Table](../ReferenceTables/QCSiliconCodenameReferenceTable.md)
2020
and download the one named xxx-Drivers.
2121

2222
- Download Device Specific Driver Pack
2323
> Just click the Download Zip Button to Download.
2424
<img src="/InstallationGuides/Resources/InstallDrivers/HowToDownload2.png" width=40%/>
25-
- For Xiaomi Pad 5, the repo is [Nabu](https://github.com/woa-msmnile/Nabu)
26-
- For Oneplus 7TP/7T, the repo is [Hotdog](https://github.com/woa-msmnile/Hotdog)
25+
- For Xiaomi Pad 5, the repo is [Nabu](https://github.com/Project-Aloha/Nabu)
26+
- For Oneplus 7TP/7T, the repo is [Hotdog](https://github.com/Project-Aloha/Hotdog)
2727
- For others, please refer to [Devices' Codename Reference Table](../ReferenceTables/DeviceCodenameReferenceTable.md)
2828
and download the one named xxx.
2929

Introduction/msmnilePkg.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

Introduction/mu_aloha_platforms.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# mu_aloha_platforms
2+
> [mu_aloha_platforms](https://github.com/Project-Aloha/mu_aloha_platforms) is a UEFI repo based on [SurfaceDuoPkg](https://github.com/WOA-Project/mu_andromeda_platforms)

Introduction/organization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# WOA-msmnile
2-
> WOA-msmnile is a organization gathered people who are porting woa to SM8150 and other newer silicons.
1+
# Project-Aloha
2+
> Project-Aloha is a organization gathered people who are porting woa to SM8150 and other newer silicons.

PortingGuides/SimpleGuide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# msmnilePkg Porting Guide.
1+
# mu_aloha_platforms Porting Guide.
22
:::danger
33
**⚠ Do not try it on Google devices, Sony devices or Samsung devices.**
44
:::
@@ -225,5 +225,5 @@ ___
225225
* If you can boot windows, turn it to `FALSE` and have a try.
226226
* Set MLVM to `TRUE` will occupy about 300MB Ram.
227227
___
228-
***Don't forget to add your device and maintainer into [README](https://github.com/woa-msmnile/msmnilePkg).***
228+
***Don't forget to add your device and maintainer into [README](https://github.com/Project-Aloha/mu_aloha_platforms).***
229229
***Thanks for your hard works.***

0 commit comments

Comments
 (0)