perf: reclaim NanoKVM cvifb memory

* board: reclaim NanoKVM cvifb memory
This commit is contained in:
Low Tech
2026-09-01 18:35:01 +08:00
committed by GitHub
parent a8325c3070
commit 9ce67e89a1
3 changed files with 10 additions and 3 deletions

View File

@@ -173,6 +173,7 @@
/delete-property/ mute-gpio-r;
};
#if (CVIMMAP_FRAMEBUFFER_SIZE > 0)
&fb_reserved {
status = "okay";
};
@@ -180,6 +181,7 @@
&cvi_fb {
status = "okay";
};
#endif
&mipi_rx {
snsr-reset = <&porte 1 GPIO_ACTIVE_LOW>;

View File

@@ -56,9 +56,9 @@ class MemoryMap:
assert ISP_MEM_BASE_ADDR + ISP_MEM_BASE_SIZE <= ION_ADDR + ION_SIZE
# Boot logo is after the ION buffer
# Framebuffer uses boot logo's reserved memory
BOOTLOGO_SIZE = 8000 * SIZE_1K
# NanoKVM has no display output, so do not reserve framebuffer/bootlogo
# memory. Keeping this at zero returns the region to Linux.
BOOTLOGO_SIZE = 0
BOOTLOGO_ADDR = ION_ADDR - BOOTLOGO_SIZE
FRAMEBUFFER_SIZE = BOOTLOGO_SIZE
FRAMEBUFFER_ADDR = BOOTLOGO_ADDR

View File

@@ -735,6 +735,11 @@ function cvi_setup_env()
PROJECT_FULLNAME="$CHIP"_"$BOARD"
# NanoKVM has no display output; do not build or load the vendor bootlogo.
if [[ "$PROJECT_FULLNAME" == "sg2002_licheervnano_sd" ]]; then
ENABLE_BOOTLOGO=0
fi
# output folder path
INSTALL_PATH="$TOP_DIR"/install
OUTPUT_DIR="$INSTALL_PATH"/soc_"$PROJECT_FULLNAME"