[RK3399] [Android 7.1] 双屏如何显示不一样的开机logo

rk3399-android.dtsi修改相应route为你需要显示的logo名称

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-android.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-android.dtsi
index 62a427b1..d7a33c69 100755
--- a/arch/arm64/boot/dts/rockchip/rk3399-android.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-android.dtsi
@@ -335,8 +335,8 @@
 
                route_dsi1: route-dsi1 {
                        status = "disabled";
-                       logo,uboot = "logo.bmp";
-                       logo,kernel = "logo_kernel.bmp";
+                       logo,uboot = "logo_dsi.bmp";
+                       logo,kernel = "logo_kernel_dsi.bmp";
                        logo,mode = "center";
                        charge_logo,mode = "center";
                        connect = <&vopl_out_dsi1>;

b/arch/arm64/Makefile   将需要显示的logo添加编译

--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -171,12 +171,16 @@ ifdef CONFIG_MODULES
 endif
 
 LOGO := $(notdir $(wildcard $(srctree)/logo.bmp))
+LOGO_DSI := $(notdir $(wildcard $(srctree)/logo_dsi.bmp))
 LOGO_KERNEL := $(notdir $(wildcard $(srctree)/logo_kernel.bmp))
-%.img: rockchip/%.dtb kernel.img $(LOGO) $(LOGO_KERNEL)
+LOGO_KERNEL_DSI := $(notdir $(wildcard $(srctree)/logo_kernel_dsi.bmp))
+%.img: rockchip/%.dtb kernel.img $(LOGO) $(LOGO_KERNEL) $(LOGO_DSI) $(LOGO_KERNEL_DSI)
        $(Q) if [ -f $(srctree)/$(LOGO) -a "$(srctree)" != "$(objtree)" ]; then cp -a $(srctree)/$(LOGO) $(objtree)/; fi
        $(Q) if [ -f $(srctree)/$(LOGO_KERNEL) -a "$(srctree)" != "$(objtree)" ]; then cp -a $(srctree)/$(LOGO_KERNEL) $(objtree)/; fi
-       $(Q)$(srctree)/scripts/resource_tool $(objtree)/arch/arm64/boot/dts/rockchip/$*.dtb $(LOGO) $(LOGO_KERNEL)
-       @echo '  Image:  resource.img (with $*.dtb $(LOGO) $(LOGO_KERNEL)) is ready'
+       $(Q) if [ -f $(srctree)/$(LOGO_DSI) -a "$(srctree)" != "$(objtree)" ]; then cp -a $(srctree)/$(LOGO_DSI) $(objtree)/; fi
+       $(Q) if [ -f $(srctree)/$(LOGO_KERNEL_DSI) -a "$(srctree)" != "$(objtree)" ]; then cp -a $(srctree)/$(LOGO_KERNEL_DSI) $(objtree)/; fi
+       $(Q)$(srctree)/scripts/resource_tool $(objtree)/arch/arm64/boot/dts/rockchip/$*.dtb $(LOGO) $(LOGO_KERNEL) $(LOGO_DSI) $(LOGO_KERNEL_DSI)
+       @echo '  Image:  resource.img (with $*.dtb $(LOGO) $(LOGO_KERNEL) $(LOGO_DSI) $(LOGO_KERNEL_DSI)) is ready'
        $(Q) if [ -x $(srctree)/scripts/mkbootimg ]; then $(srctree)/scripts/mkbootimg --kernel $(objtree)/arch/arm64/boot/Image --second resource.img -o boot.img && echo '  Image:  boot.img (with Image resource.img) is ready'; fi

 

你可能感兴趣的:(Android)