1a57242213
The kernel is based on Samsung's downstream kernel for the device. Some configuration changes are required to make the kernel to work: * Tizen kernel uses SLP USB gadget, changed to Android USB gadget. * sprdfb patches and modification on the devicetree files are required to use the framebuffer. * Other required pmOS kernel settings were enabled. * Tizen does not use initramfs, use RAMDISK partition to store initramfs of pmOS (like heimdall-isorec configuration). As far as I know, no alternative OS exists for this device so this is the very first usage. * Flash the root file system to USER, as ROOTFS is < 1 GB in size and USER is about 2.7 GB. samsung-kiran: Update device and firmware packages * Changed kernel configuration for firmware path to follow postmarketOS. * Post install script to mount CSA partition CSA partition [1] contains non-volatile data for Tizen devices. As Samsung Z1 uses this partition to store Wi-Fi and Bluetooth information, mount this partition to use within postmarketOS. [1] https://docs.tizen.org/platform/porting/kernel/ linux-samsung-kiran: Use lzop to decompress initramfs This synchronizes behavior with other heimdall-isorec devices. [ci:skip-build] Already built successfuly on CI in MR
28 lines
862 B
Diff
28 lines
862 B
Diff
From 1448e53fcaa4c6d787b2dcecbdc1f3103bfe77f4 Mon Sep 17 00:00:00 2001
|
|
From: Shinjo Park <peremen@gmail.com>
|
|
Date: Tue, 28 Jun 2022 23:25:49 +0200
|
|
Subject: [PATCH 2/4] samsung-kiran: Fix building when CONFIG_DRM_SPRD is false
|
|
|
|
---
|
|
drivers/video/sprdfb/sprdfb_dispc.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/drivers/video/sprdfb/sprdfb_dispc.c b/drivers/video/sprdfb/sprdfb_dispc.c
|
|
index a29d6f9e..b3fbea20 100644
|
|
--- a/drivers/video/sprdfb/sprdfb_dispc.c
|
|
+++ b/drivers/video/sprdfb/sprdfb_dispc.c
|
|
@@ -362,7 +362,11 @@ extern void dsi_irq_trick(void);
|
|
#endif
|
|
|
|
/* FIXME:!! when we not clear the register in dispc, phone doesn't bootup */
|
|
+#ifdef CONFIG_DRM_SPRD
|
|
extern u32 dispc_int_status;
|
|
+#else
|
|
+u32 dispc_int_status;
|
|
+#endif
|
|
//static uint32_t underflow_ever_happened = 0;
|
|
static irqreturn_t dispc_isr(int irq, void *data)
|
|
{
|
|
--
|
|
2.34.1
|
|
|