mobile: hotdogb boot splash: the Makronix M fullscreen, gone at the login
- The M tile (docs/logo/makronix-square-1080.png, rendered from the SVG) is the kernel's boot logo: KERNEL_LOGO in device.conf, converted by tools/build-kernel.sh to the PPM CONFIG_LOGO_LINUX_CLUT224_FILE names; full width, centred, once (fbcon=logo-pos:center fbcon=logo-count:1). - agetty on tty1 without --noclear: it clears the logo at the login. - kernel/patches/0021: the logo stays after init (msm's framebuffer came after late_initcall in some boots: no logo). - kernel/patches/0022: the panel is switched on after msm's first frame, not at the end of its on-sequence (half a second of noise before). Measured with the camera on the screen: bootloader logo, dark, the M, the login (build/cam/boot-0022b.mp4); Konrad: "perfekt". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c3767da738
commit
fed05a6c80
11 files changed
+269
-4
No files matched your search
+5
-1
@@ -20,7 +20,11 @@ logo does not carry the NetBSD flag: "based on NetBSD" is text.
|
||||
|
||||
- `makronix-square.svg` -- the tile alone, 340x340, no drop shadow: where the
|
||||
logo must be a square. PNGs of it: `makronix-square-340.png` (as rendered),
|
||||
`-239.png`, `-128.png`, `-64.png` (Lanczos from the 340).
|
||||
`-239.png`, `-128.png`, `-64.png` (Lanczos from the 340), and
|
||||
`-1080.png`, rendered from the SVG at 1080x1080 by Firefox headless (an
|
||||
HTML page with the SVG as an <img> of 1080x1080, `--window-size=1080,1080`)
|
||||
-- the boot logo of the phone (`mobile/devices/hotdogb/device.conf`
|
||||
KERNEL_LOGO; the kernel build quantises it to 224 colours).
|
||||
- `Makronix.pm` -- the 239x239 square as XPM, 182 colours, made for CDE's
|
||||
`dtlogin`: the same size as the `Dtlogo.pm` that CDE installs in
|
||||
`/usr/pkg/dt/appconfig/icons/C/`. NOT wired in yet: dtlogin takes its logo
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
@@ -298,6 +298,24 @@ For WLAN, later: `persist` holds the board data `bdwlan.bin`.
|
||||
450 mA limit (the port offers USB default current), and the bq27411 at
|
||||
i2c8 0x55 reads 4.433 V, 100 %, 32.9 C.
|
||||
|
||||
## 2026-11-10: boot splash
|
||||
|
||||
The Makronix M (`docs/logo/makronix-square-1080.png`) is the kernel's
|
||||
fbcon logo: full width, centred, once (`KERNEL_LOGO` in device.conf,
|
||||
`tools/build-kernel.sh` converts it to the 224-colour PPM that
|
||||
`CONFIG_LOGO_LINUX_CLUT224_FILE` names; cmdline `fbcon=logo-pos:center
|
||||
fbcon=logo-count:1`). agetty on tty1 clears it away at the login
|
||||
(`soc/sm8150/rootfs-void/etc/sv/agetty-tty1/conf`, Void's without
|
||||
`--noclear`). `kernel/patches/0021` keeps the logo after init: msm
|
||||
registers its framebuffer at 0.87-1.1 s, and when that was after
|
||||
late_initcall the logo was already freed (no logo in a boot at 1.1 s).
|
||||
`kernel/patches/0022` switches the panel on 100 ms after .enable instead
|
||||
of at the end of its on-sequence: before, the panel showed its frame
|
||||
memory (noise, stripes) for about half a second. Measured with the
|
||||
camera (`build/cam/boot-0022b.mp4`): bootloader logo, dark, the M, then
|
||||
the login. The first boot after a fastboot flash can still show stripes
|
||||
for a moment (ABL leaves the panel in another state there).
|
||||
|
||||
## Measured 2026-11-10: WLAN missing in some boots, solved
|
||||
|
||||
WLAN was missing in 2-3 boots of 15: the modem came up, its WLAN service
|
||||
|
||||
@@ -1 +1 @@
|
||||
clk_ignore_unused iommu.passthrough=0 arm-smmu.disable_bypass=0 console=ttyGS0,115200 keep_bootcon no_console_suspend printk.devkmsg=on loglevel=8 ignore_loglevel fbcon=map:0 fbcon=font:TER16x32 fbcon=vc:1-1 printk.time=1 panic=0 consoleblank=0 pmos_rootfsopts=defaults
|
||||
clk_ignore_unused iommu.passthrough=0 arm-smmu.disable_bypass=0 console=ttyGS0,115200 keep_bootcon no_console_suspend printk.devkmsg=on loglevel=8 ignore_loglevel fbcon=map:0 fbcon=font:TER16x32 fbcon=vc:1-1 printk.time=1 panic=0 consoleblank=0 pmos_rootfsopts=defaults fbcon=logo-pos:center fbcon=logo-count:1
|
||||
@@ -8,6 +8,10 @@ KERNEL_CONFIG=kernel.config
|
||||
CMDLINE=cmdline
|
||||
# built from the kernel tree (kernel/patches/0007), below arch/arm64/boot/dts
|
||||
KERNEL_DTB=qcom/sm8150-oneplus-hotdogb.dtb
|
||||
# the boot logo instead of the penguins: the M tile of the Makronix logo, at
|
||||
# the full width of the screen, centred, once (cmdline: fbcon=logo-pos:center
|
||||
# fbcon=logo-count:1); agetty clears it away at the login (etc/sv/agetty-tty1)
|
||||
KERNEL_LOGO=../../../docs/logo/makronix-square-1080.png
|
||||
|
||||
# pinned inputs of the baseline that boots on the phone (make check)
|
||||
# ours (make initramfs: base/initramfs/init, busybox 1.37.0 built with
|
||||
|
||||
@@ -5054,7 +5054,7 @@ CONFIG_LOGO=y
|
||||
# CONFIG_LOGO_LINUX_MONO is not set
|
||||
# CONFIG_LOGO_LINUX_VGA16 is not set
|
||||
CONFIG_LOGO_LINUX_CLUT224=y
|
||||
CONFIG_LOGO_LINUX_CLUT224_FILE="drivers/video/logo/logo_linux_clut224.ppm"
|
||||
CONFIG_LOGO_LINUX_CLUT224_FILE="drivers/video/logo/logo_makronix_clut224.ppm"
|
||||
CONFIG_TRACE_GPU_MEM=y
|
||||
# end of Graphics support
|
||||
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
From aa863080e83c5a4ee3076d4852c3465d66ea3ced Mon Sep 17 00:00:00 2001
|
||||
From: lotherk <konrad@lother.io>
|
||||
Date: Tue, 10 Nov 2026 07:57:36 +0000
|
||||
Subject: [PATCH] fbdev: logo: keep the boot logos after init
|
||||
|
||||
The logos were __initconst and fb_find_logo() refused them after
|
||||
late_initcall_sync. A display driver that registers its framebuffer late
|
||||
then shows no logo: on the OnePlus 7T msm's framebuffer comes up
|
||||
asynchronously, at 0.87 s in one boot and 1.1 s in the next, and the
|
||||
logo appeared in the first and not in the second. Keep them (pnmtologo
|
||||
emits plain const data; a 1080x1080 224-colour logo is 1.2 MB).
|
||||
---
|
||||
drivers/video/logo/logo.c | 22 +++++++---------------
|
||||
drivers/video/logo/pnmtologo.c | 6 +++---
|
||||
2 files changed, 10 insertions(+), 18 deletions(-)
|
||||
|
||||
diff --git a/drivers/video/logo/logo.c b/drivers/video/logo/logo.c
|
||||
index 91535f884..dde69bc7e 100644
|
||||
--- a/drivers/video/logo/logo.c
|
||||
+++ b/drivers/video/logo/logo.c
|
||||
@@ -27,25 +27,17 @@ MODULE_PARM_DESC(nologo, "Disables startup logo");
|
||||
* Use late_init to mark the logos as freed to prevent any further use.
|
||||
*/
|
||||
|
||||
-static bool logos_freed;
|
||||
-
|
||||
-static int __init fb_logo_late_init(void)
|
||||
-{
|
||||
- logos_freed = true;
|
||||
- return 0;
|
||||
-}
|
||||
-
|
||||
-late_initcall_sync(fb_logo_late_init);
|
||||
-
|
||||
-/* logo's are marked __initdata. Use __ref to tell
|
||||
- * modpost that it is intended that this function uses data
|
||||
- * marked __initdata.
|
||||
+/*
|
||||
+ * The logos stay after init (pnmtologo emits them as plain const data):
|
||||
+ * a display driver that registers its framebuffer late -- msm on SM8150
|
||||
+ * phones, asynchronously, at 0.87 s in one boot and 1.1 s in the next --
|
||||
+ * found them freed and showed no logo at all.
|
||||
*/
|
||||
-const struct linux_logo * __ref fb_find_logo(int depth)
|
||||
+const struct linux_logo *fb_find_logo(int depth)
|
||||
{
|
||||
const struct linux_logo *logo = NULL;
|
||||
|
||||
- if (nologo || logos_freed)
|
||||
+ if (nologo)
|
||||
return NULL;
|
||||
|
||||
#ifdef CONFIG_LOGO_LINUX_MONO
|
||||
diff --git a/drivers/video/logo/pnmtologo.c b/drivers/video/logo/pnmtologo.c
|
||||
index 28d9f0b90..81527ae76 100644
|
||||
--- a/drivers/video/logo/pnmtologo.c
|
||||
+++ b/drivers/video/logo/pnmtologo.c
|
||||
@@ -238,14 +238,14 @@ static void write_header(void)
|
||||
fprintf(out, " * Linux logo %s\n", logoname);
|
||||
fputs(" */\n\n", out);
|
||||
fputs("#include <linux/linux_logo.h>\n\n", out);
|
||||
- fprintf(out, "static const unsigned char %s_data[] __initconst = {\n",
|
||||
+ fprintf(out, "static const unsigned char %s_data[] = {\n",
|
||||
logoname);
|
||||
}
|
||||
|
||||
static void write_footer(void)
|
||||
{
|
||||
fputs("\n};\n\n", out);
|
||||
- fprintf(out, "const struct linux_logo %s __initconst = {\n", logoname);
|
||||
+ fprintf(out, "const struct linux_logo %s = {\n", logoname);
|
||||
fprintf(out, "\t.type\t\t= %s,\n", logo_types[logo_type]);
|
||||
fprintf(out, "\t.width\t\t= %u,\n", logo_width);
|
||||
fprintf(out, "\t.height\t\t= %u,\n", logo_height);
|
||||
@@ -375,7 +375,7 @@ static void write_logo_clut224(void)
|
||||
fputs("\n};\n\n", out);
|
||||
|
||||
/* write logo clut */
|
||||
- fprintf(out, "static const unsigned char %s_clut[] __initconst = {\n",
|
||||
+ fprintf(out, "static const unsigned char %s_clut[] = {\n",
|
||||
logoname);
|
||||
write_hex_cnt = 0;
|
||||
for (i = 0; i < logo_clutsize; i++) {
|
||||
--
|
||||
2.53.0
|
||||
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
From b55677c051b747ee512d3abb02bd515851dd344b Mon Sep 17 00:00:00 2001
|
||||
From: lotherk <konrad@lother.io>
|
||||
Date: Tue, 10 Nov 2026 08:10:32 +0000
|
||||
Subject: [PATCH] drm/panel: samsung-oneplus-dsc: switch the display on after
|
||||
the first frame
|
||||
|
||||
With the panel initialised by the driver (0019), the on-sequence ended
|
||||
with display on (0x29), and the panel showed what was in its frame memory
|
||||
after the reset -- white noise and stripes for about half a second on
|
||||
every boot, seen with a camera on the screen -- until msm's first frame.
|
||||
Leave the display off at the end of the sequence and switch it on from
|
||||
.enable, display_on_delay_ms (100) later, when the first frame is in the
|
||||
panel. A panel taken over from the bootloader (handoff=1) is left alone.
|
||||
---
|
||||
.../gpu/drm/panel/panel-samsung-oneplus-dsc.c | 52 ++++++++++++++++++-
|
||||
1 file changed, 50 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/gpu/drm/panel/panel-samsung-oneplus-dsc.c b/drivers/gpu/drm/panel/panel-samsung-oneplus-dsc.c
|
||||
index a8716caa9..53496ae84 100644
|
||||
--- a/drivers/gpu/drm/panel/panel-samsung-oneplus-dsc.c
|
||||
+++ b/drivers/gpu/drm/panel/panel-samsung-oneplus-dsc.c
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <linux/gpio/consumer.h>
|
||||
#include <linux/mod_devicetable.h>
|
||||
#include <linux/module.h>
|
||||
+#include <linux/workqueue.h>
|
||||
#include <linux/regulator/consumer.h>
|
||||
|
||||
#include <video/mipi_display.h>
|
||||
@@ -26,6 +27,7 @@ struct samsung_oneplus_dsc {
|
||||
struct regulator_bulk_data *supplies;
|
||||
struct gpio_desc *reset_gpio;
|
||||
bool handoff_done;
|
||||
+ struct delayed_work display_on_work;
|
||||
};
|
||||
|
||||
static const struct regulator_bulk_data samsung_oneplus_dsc_supplies[] = {
|
||||
@@ -127,7 +129,7 @@ static int samsung_oneplus_dsc_on_legacy(struct samsung_oneplus_dsc *ctx)
|
||||
mipi_dsi_dcs_write_buffer_multi(&dsi_ctx, (const u8[]){ 0x60, 0x00 }, 2);
|
||||
mipi_dsi_dcs_write_buffer_multi(&dsi_ctx, (const u8[]){ 0xf0, 0xa5, 0xa5 }, 3);
|
||||
mipi_dsi_msleep(&dsi_ctx, 60);
|
||||
- mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x29);
|
||||
+ /* display on (0x29): later, from .enable (display_on_work) */
|
||||
|
||||
return dsi_ctx.accum_err;
|
||||
}
|
||||
@@ -228,7 +230,7 @@ static int samsung_oneplus_dsc_on_stock(struct samsung_oneplus_dsc *ctx)
|
||||
mipi_dsi_dcs_write_buffer_multi(&dsi_ctx, (const u8[]){ 0x60, 0x00 }, 2);
|
||||
mipi_dsi_dcs_write_buffer_multi(&dsi_ctx, (const u8[]){ 0xf0, 0xa5, 0xa5 }, 3);
|
||||
mipi_dsi_msleep(&dsi_ctx, 60);
|
||||
- mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x29);
|
||||
+ /* display on (0x29): later, from .enable (display_on_work) */
|
||||
|
||||
return dsi_ctx.accum_err;
|
||||
}
|
||||
@@ -405,6 +407,48 @@ static int samsung_oneplus_dsc_prepare(struct drm_panel *panel)
|
||||
return 0;
|
||||
}
|
||||
|
||||
+/*
|
||||
+ * Display on only after msm has sent a frame. The on-sequence leaves the
|
||||
+ * panel dark; switched on at its end, the panel showed what was in its
|
||||
+ * frame memory after the reset -- white noise and stripes for about half a
|
||||
+ * second on every boot (camera, 2026-11-10) -- until msm's first frame.
|
||||
+ * .enable comes before that frame, so the display is switched on a little
|
||||
+ * later, when the first frame (fbcon, the boot logo) is in the panel.
|
||||
+ */
|
||||
+static unsigned int display_on_delay_ms = 100;
|
||||
+module_param(display_on_delay_ms, uint, 0644);
|
||||
+MODULE_PARM_DESC(display_on_delay_ms, "switch the display on this long after enable, when msm has sent a frame (default 100)");
|
||||
+
|
||||
+static void samsung_oneplus_dsc_display_on_work(struct work_struct *work)
|
||||
+{
|
||||
+ struct samsung_oneplus_dsc *ctx = container_of(to_delayed_work(work),
|
||||
+ struct samsung_oneplus_dsc, display_on_work);
|
||||
+ int ret;
|
||||
+
|
||||
+ ret = mipi_dsi_dcs_set_display_on(ctx->dsi);
|
||||
+ if (ret < 0)
|
||||
+ dev_err(&ctx->dsi->dev, "Failed to switch the display on: %d\n", ret);
|
||||
+}
|
||||
+
|
||||
+static int samsung_oneplus_dsc_enable(struct drm_panel *panel)
|
||||
+{
|
||||
+ struct samsung_oneplus_dsc *ctx = to_samsung_oneplus_dsc(panel);
|
||||
+
|
||||
+ /* a panel taken over from the bootloader is on already */
|
||||
+ if (!handoff)
|
||||
+ schedule_delayed_work(&ctx->display_on_work,
|
||||
+ msecs_to_jiffies(display_on_delay_ms));
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+static int samsung_oneplus_dsc_disable(struct drm_panel *panel)
|
||||
+{
|
||||
+ struct samsung_oneplus_dsc *ctx = to_samsung_oneplus_dsc(panel);
|
||||
+
|
||||
+ cancel_delayed_work_sync(&ctx->display_on_work);
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
static int samsung_oneplus_dsc_unprepare(struct drm_panel *panel)
|
||||
{
|
||||
struct samsung_oneplus_dsc *ctx = to_samsung_oneplus_dsc(panel);
|
||||
@@ -446,6 +490,8 @@ static int samsung_oneplus_dsc_get_modes(struct drm_panel *panel,
|
||||
static const struct drm_panel_funcs samsung_oneplus_dsc_panel_funcs = {
|
||||
.prepare = samsung_oneplus_dsc_prepare,
|
||||
.unprepare = samsung_oneplus_dsc_unprepare,
|
||||
+ .enable = samsung_oneplus_dsc_enable,
|
||||
+ .disable = samsung_oneplus_dsc_disable,
|
||||
.get_modes = samsung_oneplus_dsc_get_modes,
|
||||
};
|
||||
|
||||
@@ -525,6 +571,7 @@ static int samsung_oneplus_dsc_probe(struct mipi_dsi_device *dsi)
|
||||
MIPI_DSI_MODE_LPM;
|
||||
|
||||
ctx->panel.prepare_prev_first = true;
|
||||
+ INIT_DELAYED_WORK(&ctx->display_on_work, samsung_oneplus_dsc_display_on_work);
|
||||
|
||||
ctx->panel.backlight = samsung_oneplus_dsc_create_backlight(dsi);
|
||||
if (IS_ERR(ctx->panel.backlight))
|
||||
@@ -567,6 +614,7 @@ static void samsung_oneplus_dsc_remove(struct mipi_dsi_device *dsi)
|
||||
struct samsung_oneplus_dsc *ctx = mipi_dsi_get_drvdata(dsi);
|
||||
int ret;
|
||||
|
||||
+ cancel_delayed_work_sync(&ctx->display_on_work);
|
||||
ret = mipi_dsi_detach(dsi);
|
||||
if (ret < 0)
|
||||
dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
|
||||
--
|
||||
2.53.0
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# Void's agetty-tty1/conf (runit-void), less --noclear for tty1: the boot
|
||||
# logo (the Makronix M, the kernel's fbcon logo, devices/<d>/device.conf
|
||||
# KERNEL_LOGO) fills the screen until the login, and agetty clears it away
|
||||
# when it shows the prompt -- Konrad, 2026-11-10: "the M fullscreen when it
|
||||
# turns on and then vanish, so then I have the login shell without the
|
||||
# logo". tty2-tty6 link to this file, as in Void.
|
||||
BAUD_RATE=38400
|
||||
TERM_NAME=linux
|
||||
@@ -16,6 +16,19 @@ load_device "$1"
|
||||
tree=$2
|
||||
|
||||
cmp -s "$KERNEL_CONFIG" "$tree/.config" || cp "$KERNEL_CONFIG" "$tree/.config"
|
||||
|
||||
# The boot logo (fbcon's, instead of the penguin): KERNEL_LOGO in device.conf
|
||||
# names a PNG; it becomes the 224-colour plain PPM the kernel's pnmtologo
|
||||
# takes, at the path kernel.config's CONFIG_LOGO_LINUX_CLUT224_FILE names
|
||||
# (drivers/video/logo/logo_makronix_clut224.ppm). Made here, in the build
|
||||
# tree, so the PNG in docs/logo/ stays the only copy; needs netpbm.
|
||||
if [ -n "${KERNEL_LOGO:-}" ]; then
|
||||
[ -f "$KERNEL_LOGO" ] || die "no boot logo $KERNEL_LOGO"
|
||||
logo=$tree/drivers/video/logo/logo_makronix_clut224.ppm
|
||||
pngtopnm "$KERNEL_LOGO" | ppmquant 224 2>/dev/null | pnmnoraw > "$logo.tmp" ||
|
||||
die "cannot convert $KERNEL_LOGO (netpbm)"
|
||||
cmp -s "$logo.tmp" "$logo" 2>/dev/null && rm -f "$logo.tmp" || mv "$logo.tmp" "$logo"
|
||||
fi
|
||||
# olddefconfig FIRST and alone: in one -j invocation with the build targets it
|
||||
# runs in parallel with them, and a config change then regenerates
|
||||
# include/generated/* while sources compile -- the build failed with an empty
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ load_device() {
|
||||
. "$ROOT/soc/$SOC/soc.conf"
|
||||
. "$DEVDIR/device.conf"
|
||||
|
||||
for _v in DTB CMDLINE KERNEL_CONFIG; do
|
||||
for _v in DTB CMDLINE KERNEL_CONFIG KERNEL_LOGO; do
|
||||
eval "_p=\${$_v:-}"
|
||||
[ -z "$_p" ] || eval "$_v=\$DEVDIR/\$_p"
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user