logo displayed!
This commit is contained in:
1 parent
cbde97bac6
commit
98862d1bcb
6 files changed
+34
-4
No files matched your search
@@ -44,6 +44,7 @@ define Device/generic-mf68e
|
||||
DEVICE_VENDOR := Generic
|
||||
DEVICE_MODEL := MF68E
|
||||
FILESYSTEMS := squashfs
|
||||
CMDLINE := "earlycon console=ttyMSM0,115200 quiet loglevel=0 vt.global_cursor_default=0 vt.cur_default=0 root=/dev/mmcblk0p14 rootfstype=squashfs rootwait"
|
||||
DEVICE_PACKAGES := configs-mf68e wpad-basic-wolfssl rmtfs uci-usb-gadget \
|
||||
block-mount f2fs-tools prepare-rootfs-data \
|
||||
msm-firmware-dumper power-button-daemon kmod-fbtft-gc9107
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
+ backlight: backlight {
|
||||
+ compatible = "pwm-backlight";
|
||||
+ pwms = <&pm8916_pwm 0 100000>;
|
||||
+ brightness-levels = <0 4 8 16 32 64 128 255>;
|
||||
+ brightness-levels = <255 128 64 32 16 8 4 0>;
|
||||
+ num-interpolated-steps = <255>;
|
||||
+ default-brightness-level = <6>;
|
||||
+ };
|
||||
|
||||
File renamed without changes.
@@ -23,9 +23,13 @@ define KernelPackage/fbtft-gc9107
|
||||
CONFIG_BACKLIGHT_PWM=y \
|
||||
CONFIG_FONTS=y \
|
||||
CONFIG_FONT_8x16=y \
|
||||
CONFIG_FRAMEBUFFER_CONSOLE=y \
|
||||
CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER=n \
|
||||
CONFIG_VT_HW_CONSOLE_BINDING=y \
|
||||
CONFIG_VT_CONSOLE_SLEEP=y \
|
||||
CONFIG_STAGING=y \
|
||||
CONFIG_FB_TFT=m \
|
||||
CONFIG_FB_TFT_GC9107=m
|
||||
CONFIG_FB_TFT=y \
|
||||
CONFIG_FB_TFT_GC9107=y
|
||||
FILES:= \
|
||||
$(LINUX_DIR)/drivers/staging/fbtft/fbtft.ko \
|
||||
$(LINUX_DIR)/drivers/staging/fbtft/fb_gc9107.ko
|
||||
@@ -33,10 +37,18 @@ define KernelPackage/fbtft-gc9107
|
||||
endef
|
||||
|
||||
define KernelPackage/fbtft-gc9107/description
|
||||
GC9107 framebuffer driver for MF68E device.
|
||||
GC9107 framebuffer driver for MF68E device with boot logo support.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define KernelPackage/fbtft-gc9107/install
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_DIR) $(1)/lib/preinit
|
||||
|
||||
$(INSTALL_DATA) ./files/boot_logo.fb $(1)/etc/boot_logo.fb
|
||||
$(INSTALL_BIN) ./files/05_display_logo $(1)/lib/preinit/05_display_logo
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,fbtft-gc9107))
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
show_logo() {
|
||||
# Esperar framebuffer (máximo 5 segundos)
|
||||
local i=0
|
||||
while [ ! -c /dev/fb0 ] && [ $i -lt 50 ]; do
|
||||
sleep 0.1
|
||||
i=$((i + 1))
|
||||
done
|
||||
|
||||
# Mostrar logo si existe
|
||||
if [ -c /dev/fb0 ] && [ -f /etc/boot_logo.fb ]; then
|
||||
cat /etc/boot_logo.fb > /dev/fb0 2>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
boot_hook_add preinit_main show_logo
|
||||
Binary file not shown.
Reference in new issue
Block a user