imgtec-ci20: genimage config/ u-boot env
[openadk.git] / target / linux / patches / 4.4.302 / startup.patch
blobf9ab3f1c1298a3d6c89a412764cd4a0d0f8c2be0
1 diff -Nur linux-4.4.6.orig/init/initramfs.c linux-4.4.6/init/initramfs.c
2 --- linux-4.4.6.orig/init/initramfs.c 2016-03-16 16:43:17.000000000 +0100
3 +++ linux-4.4.6/init/initramfs.c 2016-03-27 14:15:43.931044532 +0200
4 @@ -653,6 +653,9 @@
5 */
6 load_default_modules();
8 +#ifdef CONFIG_DEVTMPFS_MOUNT
9 + devtmpfs_mount("dev");
10 +#endif
11 return 0;
13 rootfs_initcall(populate_rootfs);
14 diff -Nur linux-4.4.6.orig/init/main.c linux-4.4.6/init/main.c
15 --- linux-4.4.6.orig/init/main.c 2016-03-16 16:43:17.000000000 +0100
16 +++ linux-4.4.6/init/main.c 2016-03-27 14:15:43.935044783 +0200
17 @@ -1011,6 +1011,8 @@
18 if (sys_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) sys_dup(0);
24 (void) sys_dup(0);