pmaports/device/unmaintained/linux-xiaomi-cepheus-downstream/0006-Do-not-skip-initramfs.patch
Alexey Minnekhanov 0411403007
xiaomi-cepheus-downstream: new device (Xiaomi Mi 9) (MR 2346)
Downstream kernel will not be maintained really, but useful for
exploring stuff. This kernel is at version 4.14 and can be
compiled with recent gcc versions though, so not that bad.

USB rndis works, touchscreen too, but no display (framebuffer,
/dev/fb0 is not present at all). Internal storage works, also
battery/charging.
2022-04-03 20:50:31 +02:00

29 lines
802 B
Diff

From ded3d2e0f5abe2c9c0435158a2ff94631eec211d Mon Sep 17 00:00:00 2001
From: Alexey Min <alexey.min@gmail.com>
Date: Wed, 14 Jul 2021 11:50:09 +0300
Subject: [PATCH 6/7] Do not skip initramfs
We need it to boot postmarketOS
Signed-off-by: Alexey Min <alexey.min@gmail.com>
---
init/initramfs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/init/initramfs.c b/init/initramfs.c
index 87d27f4e1d4c..dc8c04a8d6d2 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -614,7 +614,8 @@ static int __init skip_initramfs_param(char *str)
{
if (*str)
return 0;
- do_skip_initramfs = 1;
+ /* do_skip_initramfs = 1; NOPE */
+ printk(KERN_WARNING "We were told to skip initramfs, but won't do so!\n");
return 1;
}
__setup("want_initramfs", skip_initramfs_param);
--
2.31.1