summaryrefslogtreecommitdiff
path: root/target/linux/patches/5.4.69/startup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/patches/5.4.69/startup.patch')
-rw-r--r--target/linux/patches/5.4.69/startup.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/patches/5.4.69/startup.patch b/target/linux/patches/5.4.69/startup.patch
new file mode 100644
index 000000000..7c6c5661a
--- /dev/null
+++ b/target/linux/patches/5.4.69/startup.patch
@@ -0,0 +1,21 @@
+diff -Nur linux-5.4.53.orig/init/main.c linux-5.4.53/init/main.c
+--- linux-5.4.53.orig/init/main.c 2020-07-22 09:33:18.000000000 +0200
++++ linux-5.4.53/init/main.c 2020-07-28 17:33:28.000000000 +0200
+@@ -1196,6 +1196,8 @@
+ if (ksys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
+ pr_err("Warning: unable to open an initial console.\n");
+
++ printk(KERN_WARNING "Starting Linux (built with OpenADK).\n");
++
+ (void) ksys_dup(0);
+ (void) ksys_dup(0);
+ /*
+@@ -1204,7 +1206,7 @@
+ */
+
+ if (!ramdisk_execute_command)
+- ramdisk_execute_command = "/init";
++ ramdisk_execute_command = "/sbin/init";
+
+ if (ksys_access((const char __user *)
+ ramdisk_execute_command, 0) != 0) {