User:DolphinChips/Spreadtrum

From postmarketOS
< User:DolphinChips
Revision as of 13:08, 31 October 2019 by DolphinChips (talk | contribs) (Created page with "This page contains information about devices based on Spreadtrum's SoC and tricks for porting postmarketOS on such devices. = Kernel compiling errors = == No valid dts found =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page contains information about devices based on Spreadtrum's SoC and tricks for porting postmarketOS on such devices.

Kernel compiling errors

No valid dts found

Solution: replace `sprd,sc-id` with `qcom,msm-id` in dts files for your device. See this and this patches for example.

Screen

Device doesn't show postmarketOS splash screen even after it booted

Add `msm-fb-refresher` to device package depends or use this initfs-hook.sh.

X11 crashes with FBIOPUT_VSCREENINFO error

Following patch might help you:

From c5bb0d59161730e546f279bfbbd097f5eb3e3a7e Mon Sep 17 00:00:00 2001
From: DolphinChips <DoIphinChips@protonmail.com>
Date: Mon, 21 Oct 2019 19:58:45 +0500
Subject: [PATCH] Add a little hack to sprdfb_main.c

---
 drivers/video/sprdfb/sprdfb_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/video/sprdfb/sprdfb_main.c b/drivers/video/sprdfb/sprdfb_main.c
index 43876285..751616a1 100644
--- a/drivers/video/sprdfb/sprdfb_main.c
+++ b/drivers/video/sprdfb/sprdfb_main.c
@@ -531,7 +531,8 @@ static int sprdfb_check_var(struct fb_var_screeninfo *var, struct fb_info *fb)
 	if ((var->xres != fb->var.xres) ||
 		(var->yres != fb->var.yres) ||
 		(var->xres_virtual != fb->var.xres_virtual) ||
-		(var->yres_virtual != fb->var.yres_virtual) ||
+		// (var->yres_virtual != fb->var.yres_virtual) ||
+	    	(fb->var.yres_virtual % var->yres_virtual != 0) ||
 		(var->xoffset != fb->var.xoffset) ||
 #ifndef BIT_PER_PIXEL_SURPPORT
 		(var->bits_per_pixel != fb->var.bits_per_pixel) ||