linux: update to 6.10.x, 6.9.x is EOL
[openadk.git] / target / linux / patches / 5.4.275 / startup.patch
blob081aa103aec01a9478b8ced9bdfece5f1a59370b
1 diff -Nur linux-5.4.147.orig/init/initramfs.c linux-5.4.147/init/initramfs.c
2 --- linux-5.4.147.orig/init/initramfs.c 2021-09-16 12:56:14.000000000 +0200
3 +++ linux-5.4.147/init/initramfs.c 2021-09-16 16:11:25.493140211 +0200
4 @@ -674,6 +674,9 @@
5 initrd_start = 0;
6 initrd_end = 0;
8 +#ifdef CONFIG_DEVTMPFS_MOUNT
9 + devtmpfs_mount("dev");
10 +#endif
11 flush_delayed_fput();
12 return 0;
14 diff -Nur linux-5.4.147.orig/init/main.c linux-5.4.147/init/main.c
15 --- linux-5.4.147.orig/init/main.c 2021-09-16 12:56:14.000000000 +0200
16 +++ linux-5.4.147/init/main.c 2021-09-16 16:11:25.497140211 +0200
17 @@ -1198,6 +1198,8 @@
18 if (ksys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
19 pr_err("Warning: unable to open an initial console.\n");
21 + printk(KERN_WARNING "Starting Linux (built with OpenADK).\n");
23 (void) ksys_dup(0);
24 (void) ksys_dup(0);