Skip to content

Commit d37f792

Browse files
committed
translate DefinedsGuidance
1 parent a9aa997 commit d37f792

5 files changed

Lines changed: 32 additions & 7 deletions

File tree

.vitepress/zh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ function sidebarDocs(): DefaultTheme.SidebarItem[] {
6363
text: 'UEFI移植',
6464
items: [
6565
{ text: '设备移植简述', link: '/PortingGuides/SimpleGuide'},
66+
{ text: '宏定义说明', link: '/PortingGuides/DefinesGuidance'},
6667
{ text: '调试', link: '/PortingGuides/Debug'}
6768
]
6869
},

DualBoot/PatchKernel.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,29 +85,29 @@ Please do not patch a patched kernel.
8585

8686
- Test with fastboot.
8787
+ Send `new-boot.img` to your computer:
88-
```pwsh
88+
```powershell
8989
adb pull /sdcard/dualboot/new-boot.img
9090
```
9191
+ Reboot to fastboot
92-
```pwsh
92+
```powershell
9393
adb reboot bootloader
9494
```
9595
+ Ensure OS-switch is on the correct state before it loading. Like magnet shell or tri-state key.
9696
+ Try load boot image once.
97-
```pwsh
97+
```powershell
9898
fastboot boot new-boot.img
9999
```
100100
+ See if the device is entering a correct os.
101101

102102
- Flash boot image into disk
103103
+ If everything goes well and boot image was backuped. You can flash boot image into disk now. Then no fastboot command is required when using dualboot.
104104
+ Flash boot:
105-
```pwsh
105+
```powershell
106106
fastboot flash boot new-boot.img
107107
```
108108
- Recover original boot image:
109109
+ If you want to remove dualboot, flash your backuped boot image.
110-
```pwsh
110+
```powershell
111111
fastboot flash boot.img
112112
```
113113

PortingGuides/SimpleGuide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ___
7878
* Included by SurfaceDuo1.dsc
7979
- **Defines.dsc.inc**
8080
* Macros for special use.
81-
* For detailed about Macros, please read [DefinesGuidance.md](DefinesGuidance.md)
81+
* For detailed about Macros, please read [DefinesGuidance](DefinesGuidance.md)
8282
- **PcdsFixedAtBuild.dsc.inc**
8383
* Included by SurfaceDuo1.dsc.
8484
* Stores device specific pcds. (e.g Screen resolution)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# 定义
2+
> 本文档将介绍 `Defines.dsc.inc` 中所有可用的定义
3+
4+
## **HAS_MLVM**
5+
* 类型
6+
- 布尔值
7+
* 为什么要定义它?
8+
- 某些设备有 MLVM 区域,有些没有。
9+
- 如果设备启用了 MLVM,MLVM 区域将被保护,并且不可读写。
10+
* 当为 **1** 时会发生什么?
11+
- 如果 `HAS_MLVM = TRUE`,MLVM 区域将被保留,因此 HLOS 不会使用此区域。
12+
- 总 RAM 大小将减少约 400MB。
13+
* 在哪里使用?
14+
- `HAS_MLVM``Platforms/AndromedaPkg/Driver/RamPartitionDxe/ExtendedMemoryMap.h` 中使用。
15+
16+
## **CUST_LOGO**
17+
* 类型
18+
- 布尔值
19+
* 为什么要定义它?
20+
- 某些设备可能想要自己的标志。(即品牌的标志)
21+
* 当为 **1** 时会发生什么?
22+
- 启动标志将被替换为 `Device/$(brand-codename)/Include/Resources/CustBootLogo.bmp` 下的标志
23+
* 在哪里使用?
24+
- `CUST_LOGO``Platforms/AndromedaPkg/Frontpage.fdf.inc` 中使用

zh/PortingGuides/SimpleGuide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ___
7878
* 由SurfaceDuo1.dsc包含
7979
- **Defines.dsc.inc**
8080
* 特殊用途的宏。
81-
* 有关宏的详细信息,请阅读 [DefinesGuidance.md](DefinesGuidance.md)
81+
* 有关宏的详细信息,请阅读 [宏定义说明](DefinesGuidance.md)
8282
- **PcdsFixedAtBuild.dsc.inc**
8383
* 由SurfaceDuo1.dsc包含。
8484
* 存储设备特定的pcds。(例如屏幕分辨率)

0 commit comments

Comments
 (0)