1.到以下路径并打开U-Boot menuconfig
~/yocto/build/tmp glibc/work/numaker_som_ma35d16a81-poky-linux/u-boot-ma35d1/202.07-r0/git$make menuconfig
2.使能LCD驱动程序并修改U-Boot中的RAM大小
Device Drivers --->
Graphics support --->
[*] Enable driver model support LCD/video
[*] Nuvoton MA35D1 video support
(0x8C800000) MA35D1 DCU framebuffer address
3.根据您的引导源修改U-boot环境
~/yocto/build/tmp glibc/work/numaker_som_ma35d16a81-poky-linux/u-boot-ma35d1/202.07-r0/git/include/configs$vim ma35d1.h
"mmc read ${kernel_addr_r} 0x1800 0x8000; " \
"mmc read ${fdt_addr_r} 0x1600 0x80; " \
"mmc read ${bmp_addr_r} 0xe000 0x1000; "\
"bmp display ${bmp_addr_r}; " \
"booti ${kernel_addr_r} - ${fdt_addr_r}; " \
4.根据评估板和修改设备以关闭显示初始功能
~/yocto/build/tmp-glibc/work-shared/numaker-som-ma35d16a81/kernel-source/arch/arm64/boot/dts/nuvoton$
vim ma35d1-som-256m.dts
&display {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_display0>;
memory-region = <&display_buf>;
//resets = <&reset MA35D1_RESET_DISP>;
status = "okay";
};
5.重新定义U-Boot RAM大小
~/yocto/build/tmp-glibc/work/numaker_som_ma35d16a81-poky-linux/u-boot-ma35d1/2020.07-r0/git/arch/arm/dts$ vim ma35d1-sdcard0.dts
memory {
device_type = "memory";
reg = <0x00000000 0x80000000 0 0x0F000000>; /* 112M */
};
6.关闭Yocto的默认**
~/yocto/build/conf$ vim local.conf
IMAGE_FEATURES_remove += " splash "
7.重建U-Boot、Linux内核和重新打包镜像
~/yocto/build$ bitbake u-boot-ma35d1 linux-ma35d1 –C compile && bitbake nvt-image-qt5 –c cleanall && bitbake nvt-image-qt5
8.将镜像烧写到MA35D1
9.使用NuWriter烧写bmp文件到地址0x1C00000 |