Skip to content

Commit 4e107fa

Browse files
committed
Revert "Add simple-init boot manager"
This reverts commit 81e96bf.
1 parent a7c9207 commit 4e107fa

File tree

9 files changed

+35
-70
lines changed

9 files changed

+35
-70
lines changed

.gitmodules

-4
This file was deleted.

README.md

+1-25
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ sudo apt install git gcc g++ build-essential gcc-aarch64-linux-gnu iasl python3-
2727

2828
Clone the repository:
2929
```bash
30-
git clone https://github.com/edk2-porting/edk2-rk35xx.git --recursive
30+
git clone https://github.com/edk2-porting/edk2-rk35xx.git
3131
cd edk2-rk35xx
3232
```
3333

@@ -39,27 +39,3 @@ Build UEFI (ROCK 5B for example):
3939
## TODO
4040
- Create gpt image in build process instead of using the prebuilt one
4141
- Fix resetting to maskrom
42-
43-
## Notes
44-
45-
### Flash layout
46-
47-
| Address | Size | Desc | File |
48-
| ---------- | :--------- | --------------------- | ---------------------- |
49-
| 0x00000000 | 0x00004400 | GPT Table | rk3588_spi_nor_gpt.img |
50-
| 0x00008000 | | IDBlock | idblock.bin |
51-
| 0x00088000 | | IDBlock | idblock.bin |
52-
| 0x00100000 | 0x00500000 | BL33_AP_UEFI FV | ${DEVICE}_EFI.itb |
53-
| 0x007C0000 | 0x00010000 | NV_VARIABLE_STORE | |
54-
| 0x007D0000 | 0x00010000 | NV_FTW_WORKING header | |
55-
| 0x007E0000 | 0x00010000 | NV_FTW_WORKING data | NV_DATA.img |
56-
57-
### Memory Map
58-
59-
| Address | Size | Desc | File |
60-
| ---------- | :--: | ------------- | ------------------- |
61-
| 0x00040000 | | ATF | bl31_0x00040000.bin |
62-
| 0x000f0000 | | ATF | bl31_0x000f0000.bin |
63-
| 0x00200000 | | UEFI FV | BL33_AP_UEFI.Fv |
64-
| 0x08400000 | | OP-TEE | bl32.bin |
65-
| 0xff100000 | | ATF (PMU_MEM) | bl31_0xff100000.bin |

build.sh

+27-27
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function _help(){
1010
echo " --all, -a: build all devices."
1111
echo " --release MODE, -r MODE: Release mode for building, default is 'DEBUG', 'RELEASE' alternatively."
1212
echo " --toolchain TOOLCHAIN: Set toolchain, default is 'GCC5'."
13-
echo " --skip-rootfs-gen: skip generating SimpleInit rootfs to speed up building."
13+
# echo " --skip-rootfs-gen: skip generating SimpleInit rootfs to speed up building."
1414
echo " --clean, -C: clean workspace and output."
1515
echo " --distclean, -D: clean up all files that are not in repo."
1616
echo " --outputdir, -O: output folder."
@@ -161,44 +161,44 @@ then
161161
set +e
162162
fi
163163

164-
for i in "${SIMPLE_INIT}" ./simple-init ../simple-init
165-
do
166-
if [ -n "${i}" ]&&[ -f "${i}/SimpleInit.inc" ]
167-
then
168-
_SIMPLE_INIT="$(realpath "${i}")"
169-
break
170-
fi
171-
done
164+
# for i in "${SIMPLE_INIT}" Platform/RenegadePkg/Library/SimpleInit ./simple-init ../simple-init
165+
# do
166+
# if [ -n "${i}" ]&&[ -f "${i}/SimpleInit.inc" ]
167+
# then
168+
# _SIMPLE_INIT="$(realpath "${i}")"
169+
# break
170+
# fi
171+
# done
172172

173-
[ -n "${_SIMPLE_INIT}" ]||_error "SimpleInit not found, please see README.md"
173+
# [ -n "${_SIMPLE_INIT}" ]||_error "SimpleInit not found, please see README.md"
174174
[ -f "configs/${DEVICE}.conf" ]||_error "Device configuration not found"
175175

176176
export CROSS_COMPILE="${CROSS_COMPILE:-aarch64-linux-gnu-}"
177177
export GCC5_AARCH64_PREFIX="${CROSS_COMPILE}"
178178
export CLANG38_AARCH64_PREFIX="${CROSS_COMPILE}"
179179
# export PACKAGES_PATH="$_EDK2:$_EDK2_PLATFORMS:$_SIMPLE_INIT:$PWD"
180-
export PACKAGES_PATH="${ROOTDIR}/edk2:${ROOTDIR}/edk2-platforms:${ROOTDIR}/edk2-non-osi:${ROOTDIR}:${_SIMPLE_INIT}"
180+
export PACKAGES_PATH="${ROOTDIR}/edk2:${ROOTDIR}/edk2-platforms:${ROOTDIR}/edk2-non-osi:${ROOTDIR}"
181181
export WORKSPACE="${OUTDIR}/workspace"
182182
GITCOMMIT="$(git describe --tags --always)"||GITCOMMIT="unknown"
183183
export GITCOMMIT
184184
set -e
185185

186-
mkdir -p "${_SIMPLE_INIT}/build" "${_SIMPLE_INIT}/root/usr/share/locale"
187-
for i in "${_SIMPLE_INIT}/po/"*.po
188-
do
189-
[ -f "${i}" ]||continue
190-
_name="$(basename "$i" .po)"
191-
_path="${_SIMPLE_INIT}/root/usr/share/locale/${_name}/LC_MESSAGES"
192-
mkdir -p "${_path}"
193-
msgfmt -o "${_path}/simple-init.mo" "${i}"
194-
done
195-
196-
if "${GEN_ROOTFS}"
197-
then
198-
bash "${_SIMPLE_INIT}/scripts/gen-rootfs-source.sh" \
199-
"${_SIMPLE_INIT}" \
200-
"${_SIMPLE_INIT}/build"
201-
fi
186+
# mkdir -p "${_SIMPLE_INIT}/build" "${_SIMPLE_INIT}/root/usr/share/locale"
187+
# for i in "${_SIMPLE_INIT}/po/"*.po
188+
# do
189+
# [ -f "${i}" ]||continue
190+
# _name="$(basename "$i" .po)"
191+
# _path="${_SIMPLE_INIT}/root/usr/share/locale/${_name}/LC_MESSAGES"
192+
# mkdir -p "${_path}"
193+
# msgfmt -o "${_path}/simple-init.mo" "${i}"
194+
# done
195+
196+
# if "${GEN_ROOTFS}"
197+
# then
198+
# bash "${_SIMPLE_INIT}/scripts/gen-rootfs-source.sh" \
199+
# "${_SIMPLE_INIT}" \
200+
# "${_SIMPLE_INIT}/build"
201+
# fi
202202

203203
if [ "${DEVICE}" == "all" ]
204204
then

edk2-platforms/Platform/Radxa/ROCK5B/Library/PlatformBootManagerLib/PlatformBm.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ PlatformRegisterOptionsAndKeys (
640640
F3.ScanCode = SCAN_F3;
641641
F3.UnicodeChar = CHAR_NULL;
642642

643-
PlatformRegisterFvBootOption (&gSimpleInitFileGuid, L"Simple Init", LOAD_OPTION_ACTIVE, &F3);
643+
// PlatformRegisterFvBootOption (&gSimpleInitFileGuid, L"Simple Init", LOAD_OPTION_ACTIVE, &F3);
644644
}
645645

646646
//
@@ -967,7 +967,8 @@ PlatformBootManagerAfterConsole (
967967
);
968968
}
969969

970-
Print (L"Press ESCAPE for boot options, or F3 for SimpleInit GUI");
970+
// Print (L"Press ESCAPE for boot options, or F3 for SimpleInit (UNSTABLE) ");
971+
Print (L"Press ESCAPE for boot options");
971972
} else if (FirmwareVerLength > 0) {
972973
Status = gBS->HandleProtocol (
973974
gST->ConsoleOutHandle,
@@ -1045,7 +1046,7 @@ PlatformBootManagerWaitCallback (
10451046
Status = BootLogoUpdateProgress (
10461047
White.Pixel,
10471048
Black.Pixel,
1048-
L"Press ESCAPE for boot options, or F3 for SimpleInit GUI",
1049+
L"Press ESCAPE for boot options",
10491050
White.Pixel,
10501051
(Timeout - TimeoutRemain) * 100 / Timeout,
10511052
0

edk2-platforms/Platform/Radxa/ROCK5B/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
MdePkg/MdePkg.dec
3535
ShellPkg/ShellPkg.dec
3636
Platform/Radxa/ROCK5B/ROCK5B.dec
37-
SimpleInit.dec
37+
# SimpleInit.dec
3838

3939
[LibraryClasses]
4040
BaseLib
@@ -82,7 +82,7 @@
8282
gEfiEndOfDxeEventGroupGuid
8383
gEfiTtyTermGuid
8484
gUefiShellFileGuid
85-
gSimpleInitFileGuid
85+
# gSimpleInitFileGuid
8686
gMaskromFileGuid
8787

8888
[Protocols]

edk2-platforms/Platform/Radxa/ROCK5B/ROCK5B.dsc

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
DEFINE NETWORK_VLAN_ENABLE = FALSE
4040
!include Silicon/Rockchip/Rockchip.dsc.inc
4141
!include MdePkg/MdeLibs.dsc.inc
42-
!include SimpleInit.inc
4342

4443
[LibraryClasses.common]
4544
ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf

edk2-platforms/Platform/Radxa/ROCK5B/ROCK5B.fdf

+1-6
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ NumBlocks = 0x800
4343
# RegionType <FV, DATA, or FILE>
4444
#
4545
################################################################################
46-
0x00200000|0x00500000
46+
0x00200000|0x00100000
4747
gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
4848
FV = BL33_AP_UEFI
4949

@@ -327,11 +327,6 @@ READ_LOCK_STATUS = TRUE
327327
INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
328328
INF MdeModulePkg/Application/UiApp/UiApp.inf
329329

330-
#
331-
# Simple Init GUI
332-
#
333-
INF src/main/SimpleInitMain.inf
334-
335330
[FV.BL33_AP_UEFI]
336331
FvAlignment = 8
337332
ERASE_POLARITY = 1

edk2-platforms/Silicon/Rockchip/Rockchip.dsc.inc

-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ FspiLib|Silicon/Rockchip/Library/FspiLib/FspiLib.inf
227227

228228
[BuildOptions]
229229
# RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
230-
*_*_*_CC_FLAGS = -DDEFAULT_DARK
231230
*_GCC5_AARCH64_CC_FLAGS = -Wno-error=uninitialized -Wno-error=stringop-overflow -Wno-error=unused-function -Wno-error=unused-variable
232231

233232
[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]

simple-init

-1
This file was deleted.

0 commit comments

Comments
 (0)