26592daadc
Initial support for Xiaomi A1 aka xiaomi-tissot using LineageOS 15.1 kernel, has similar board to Xiaomi Redmi 4 aka xiaomi-mido with some differences that had to be patched such as reversing skip_initramfs and ignoring dm param. 16.0 kernel boots but display fb init doesn't work. Weston boots with touch support, SSH via USB RNDIS works. [skip ci]: this built once in CI already, good to go.
31 lines
860 B
Diff
31 lines
860 B
Diff
From 76e12feb81d1b1ccbb7c58b16e040ca6c59f7ace Mon Sep 17 00:00:00 2001
|
|
From: Ion Agorria <ion@agorria.com>
|
|
Date: Sat, 19 Jan 2019 12:10:23 +0100
|
|
Subject: [PATCH] Reverse skip_initramfs to use it by default.
|
|
|
|
This way it's possible to boot with initram by default.
|
|
Initramfs is skip in this device to boot android unless
|
|
recovery key is pressed.
|
|
---
|
|
init/initramfs.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/init/initramfs.c b/init/initramfs.c
|
|
index d39079e690fa..41fb5db74138 100644
|
|
--- a/init/initramfs.c
|
|
+++ b/init/initramfs.c
|
|
@@ -621,8 +621,10 @@ static int __init populate_rootfs(void)
|
|
{
|
|
char *err;
|
|
|
|
- if (do_skip_initramfs)
|
|
+ if (!do_skip_initramfs) {
|
|
+ printk(KERN_INFO "Skipping initramfs...\n");
|
|
return default_rootfs();
|
|
+ }
|
|
|
|
err = unpack_to_rootfs(__initramfs_start, __initramfs_size);
|
|
if (err)
|
|
--
|
|
2.19.2
|
|
|