diff options
Diffstat (limited to 'recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches')
9 files changed, 398 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-locomokbd/locomo_kbd_tweak-r2.patch b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-locomokbd/locomo_kbd_tweak-r2.patch new file mode 100644 index 0000000..441e3dc --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-locomokbd/locomo_kbd_tweak-r2.patch @@ -0,0 +1,84 @@ +From c9a909cedb442a1a3d020f0c10683298dcc2246c Mon Sep 17 00:00:00 2001 +From: Andrea Adami <andrea.adami@gmail.com> +Date: Sat, 21 Apr 2012 23:48:57 +0200 +Subject: [PATCH] locomokbd: apply tweaks for Zaurus + +from http://www.rpsys.net/openzaurus/patches/ + +Signed-off-by: Richard Purdie <rpurdie@rpsys.net> +Signed-off-by: Andrea Adami <andrea.adami@gmail.com> + +Upstream-Status: Inappropriate [embedded specific] +[Patch needed for initramfs w/out keymaps like kexecboot] +--- + drivers/input/keyboard/locomokbd.c | 44 ++++++++++++++++++++++---------------- + 1 file changed, 25 insertions(+), 19 deletions(-) + +diff --git a/drivers/input/keyboard/locomokbd.c b/drivers/input/keyboard/locomokbd.c +index c94d610..2b978c8 100644 +--- a/drivers/input/keyboard/locomokbd.c ++++ b/drivers/input/keyboard/locomokbd.c +@@ -39,27 +39,33 @@ MODULE_AUTHOR("John Lenz <lenz@cs.wisc.edu>"); + MODULE_DESCRIPTION("LoCoMo keyboard driver"); + MODULE_LICENSE("GPL"); + +-#define LOCOMOKBD_NUMKEYS 128 +- +-#define KEY_ACTIVITY KEY_F16 +-#define KEY_CONTACT KEY_F18 +-#define KEY_CENTER KEY_F15 ++#define LOCOMOKBD_NUMKEYS 128 ++ ++#define LOCOMO_KEY_CALENDER KEY_LEFTCTRL ++#define LOCOMO_KEY_ADDRESS KEY_LEFTALT /* Needed for SysRQ */ ++#define LOCOMO_KEY_HOME KEY_SYSRQ /* Needed for SysRQ */ ++#define LOCOMO_KEY_MENU KEY_F12 ++#define LOCOMO_KEY_MAIL KEY_F10 ++#define LOCOMO_KEY_OK KEY_F11 /* Don't hardwire to KEY_RETURN */ ++#define LOCOMO_KEY_CANCEL KEY_POWER ++#define LOCOMO_KEY_CENTER KEY_F5 /* Don't hardwire to KEY_RETURN */ ++#define LOCOMO_KEY_FN KEY_F9 + + static const unsigned char + locomokbd_keycode[LOCOMOKBD_NUMKEYS] = { +- 0, KEY_ESC, KEY_ACTIVITY, 0, 0, 0, 0, 0, 0, 0, /* 0 - 9 */ +- 0, 0, 0, 0, 0, 0, 0, KEY_MENU, KEY_HOME, KEY_CONTACT, /* 10 - 19 */ +- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 20 - 29 */ +- 0, 0, 0, KEY_CENTER, 0, KEY_MAIL, 0, 0, 0, 0, /* 30 - 39 */ +- 0, 0, 0, 0, 0, 0, 0, 0, 0, KEY_RIGHT, /* 40 - 49 */ +- KEY_UP, KEY_LEFT, 0, 0, KEY_P, 0, KEY_O, KEY_I, KEY_Y, KEY_T, /* 50 - 59 */ +- KEY_E, KEY_W, 0, 0, 0, 0, KEY_DOWN, KEY_ENTER, 0, 0, /* 60 - 69 */ +- KEY_BACKSPACE, 0, KEY_L, KEY_U, KEY_H, KEY_R, KEY_D, KEY_Q, 0, 0, /* 70 - 79 */ +- 0, 0, 0, 0, 0, 0, KEY_ENTER, KEY_RIGHTSHIFT, KEY_K, KEY_J, /* 80 - 89 */ +- KEY_G, KEY_F, KEY_X, KEY_S, 0, 0, 0, 0, 0, 0, /* 90 - 99 */ +- 0, 0, KEY_DOT, 0, KEY_COMMA, KEY_N, KEY_B, KEY_C, KEY_Z, KEY_A, /* 100 - 109 */ +- KEY_LEFTSHIFT, KEY_TAB, KEY_LEFTCTRL, 0, 0, 0, 0, 0, 0, 0, /* 110 - 119 */ +- KEY_M, KEY_SPACE, KEY_V, KEY_APOSTROPHE, KEY_SLASH, 0, 0, 0 /* 120 - 128 */ ++ 0, LOCOMO_KEY_CANCEL, LOCOMO_KEY_CALENDER, LOCOMO_KEY_HOME, 0, 0, 0, 0, 0, 0, /* 0 - 9 */ ++ 0, 0, 0, 0, 0, 0, 0, LOCOMO_KEY_MENU, 0, LOCOMO_KEY_ADDRESS, /* 10 - 19 */ ++ 0, 0, 0, 0, 0, LOCOMO_KEY_MAIL, 0, 0, 0, 0, /* 20 - 29 */ ++ 0, 0, 0, LOCOMO_KEY_CENTER, 0, LOCOMO_KEY_MAIL, 0, 0, 0, 0, /* 30 - 39 */ ++ 0, 0, 0, 0, 0, 0, 0, 0, 0, KEY_RIGHT, /* 40 - 49 */ ++ KEY_UP, KEY_LEFT, 0, 0, KEY_P, 0, KEY_O, KEY_I, KEY_Y, KEY_T, /* 50 - 59 */ ++ KEY_E, KEY_W, 0, 0, 0, 0, KEY_DOWN, LOCOMO_KEY_OK, 0, 0, /* 60 - 69 */ ++ KEY_BACKSPACE, 0, KEY_L, KEY_U, KEY_H, KEY_R, KEY_D, KEY_Q, 0, 0, /* 70 - 79 */ ++ 0, 0, 0, 0, 0, 0, KEY_ENTER, KEY_RIGHTSHIFT, KEY_K, KEY_J, /* 80 - 89 */ ++ KEY_G, KEY_F, KEY_X, KEY_S, 0, 0, 0, 0, 0, 0, /* 90 - 99 */ ++ 0, 0, KEY_DOT, 0, KEY_COMMA, KEY_N, KEY_B, KEY_C, KEY_Z, KEY_A, /* 100 - 109 */ ++ KEY_LEFTSHIFT, KEY_TAB, LOCOMO_KEY_FN, 0, 0, 0, 0, 0, 0, 0, /* 110 - 119 */ ++ KEY_M, KEY_SPACE, KEY_V, KEY_APOSTROPHE, KEY_SLASH, 0, 0, 0 /* 120 - 128 */ + }; + + #define KB_ROWS 16 +@@ -68,7 +74,7 @@ locomokbd_keycode[LOCOMOKBD_NUMKEYS] = { + #define SCANCODE(c,r) ( ((c)<<4) + (r) + 1 ) + + #define KB_DELAY 8 +-#define SCAN_INTERVAL (HZ/10) ++#define SCAN_INTERVAL (HZ/20) + + struct locomokbd { + unsigned char keycode[LOCOMOKBD_NUMKEYS]; +-- +1.8.1.5 + diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mfd/mcp-device.patch b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mfd/mcp-device.patch new file mode 100644 index 0000000..a3523b0 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mfd/mcp-device.patch @@ -0,0 +1,30 @@ +From c297f9bcdf58ed5bc69095ac6ff7fc1088c377dc Mon Sep 17 00:00:00 2001 +From: Andrea Adami <andrea.adami@gmail.com> +Date: Mon, 15 Jul 2013 18:15:19 +0200 +Subject: [PATCH] mcp.h: add missing header + +Fix +linux/include/linux/mfd/mcp.h:22:16: error: field 'attached_device' has incomplete type +linux/include/linux/mfd/mcp.h:48:23: error: field 'drv' has incomplete type + +Signed-off-by: Andrea Adami <andrea.adami@gmail.com> +--- + include/linux/mfd/mcp.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/linux/mfd/mcp.h b/include/linux/mfd/mcp.h +index a9e8bd1..f682953 100644 +--- a/include/linux/mfd/mcp.h ++++ b/include/linux/mfd/mcp.h +@@ -10,6 +10,8 @@ + #ifndef MCP_H + #define MCP_H + ++#include <linux/device.h> ++ + struct mcp_ops; + + struct mcp { +-- +1.8.1.5 + diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mfd/ucb1x00-device.patch b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mfd/ucb1x00-device.patch new file mode 100644 index 0000000..76c4d97 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mfd/ucb1x00-device.patch @@ -0,0 +1,28 @@ +From f669a459cac00894ce4503c011103dbea5baabee Mon Sep 17 00:00:00 2001 +From: Andrea Adami <andrea.adami@gmail.com> +Date: Mon, 15 Jul 2013 18:16:57 +0200 +Subject: [PATCH] ucb1x00: explicitely include linux/device.h + +Fix +linux/include/linux/mfd/ucb1x00.h:137:17: error: field 'dev' has incomplete type + +Signed-off-by: Andrea Adami <andrea.adami@gmail.com> +--- + include/linux/mfd/ucb1x00.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/linux/mfd/ucb1x00.h b/include/linux/mfd/ucb1x00.h +index 28af417..88f90cb 100644 +--- a/include/linux/mfd/ucb1x00.h ++++ b/include/linux/mfd/ucb1x00.h +@@ -10,6 +10,7 @@ + #ifndef UCB1200_H + #define UCB1200_H + ++#include <linux/device.h> + #include <linux/mfd/mcp.h> + #include <linux/gpio.h> + #include <linux/mutex.h> +-- +1.8.1.5 + diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mtd/collie-eraseinfo.patch b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mtd/collie-eraseinfo.patch new file mode 100644 index 0000000..0a8ebac --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mtd/collie-eraseinfo.patch @@ -0,0 +1,55 @@ +From 1fc59077a0f5a1f338c94e9dc2ef356f821d2614 Mon Sep 17 00:00:00 2001 +From: Andrea Adami <andrea.adami@gmail.com> +Date: Mon, 15 Jul 2013 01:18:19 +0200 +Subject: [PATCH] jedec_probe.c: fix LH28F640BF definition + +Zaurus 5500 contains 2 LH28F640BFHE-PTTL90 (64M 4Mx16) and +the LH28F640BFHE-PTTL90.pdf datasheet available on the net shows +the exact erasesize and the OTP support. +At the moment only jedec_probe can discover the chip and +the NOR is mounted read only probably because of wrong vpp. + +Signed-off-by: Andrea Adami <andrea.adami@gmail.com> + +Upstream-Status: Submitted +http://lists.infradead.org/pipermail/linux-mtd/2013-February/045781.html +--- + drivers/mtd/chips/jedec_probe.c | 13 +++++++------ + 1 file changed, 7 insertions(+), 6 deletions(-) + +diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c +index c443f52..7c0b27d 100644 +--- a/drivers/mtd/chips/jedec_probe.c ++++ b/drivers/mtd/chips/jedec_probe.c +@@ -120,7 +120,7 @@ + #define PM49FL008 0x006A + + /* Sharp */ +-#define LH28F640BF 0x00b0 ++#define LH28F640BF 0x00B0 + + /* ST - www.st.com */ + #define M29F800AB 0x0058 +@@ -1299,13 +1299,14 @@ static const struct amd_flash_info jedec_table[] = { + .mfr_id = CFI_MFR_SHARP, + .dev_id = LH28F640BF, + .name = "LH28F640BF", +- .devtypes = CFI_DEVICETYPE_X8, ++ .devtypes = CFI_DEVICETYPE_X16, + .uaddr = MTD_UADDR_UNNECESSARY, +- .dev_size = SIZE_4MiB, +- .cmd_set = P_ID_INTEL_STD, +- .nr_regions = 1, ++ .dev_size = SIZE_8MiB, ++ .cmd_set = P_ID_INTEL_EXT, ++ .nr_regions = 2, + .regions = { +- ERASEINFO(0x40000,16), ++ ERASEINFO(0x10000, 127), ++ ERASEINFO(0x02000, 8), + } + }, { + .mfr_id = CFI_MFR_SST, +-- +1.8.1.5 + diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mtd/collie-jedec-probe.patch b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mtd/collie-jedec-probe.patch new file mode 100644 index 0000000..bae540a --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mtd/collie-jedec-probe.patch @@ -0,0 +1,35 @@ +From 3d3ca843f0c1e6c9cac64744343774e2f7718034 Mon Sep 17 00:00:00 2001 +From: Andrea Adami <andrea.adami@gmail.com> +Date: Mon, 15 Jul 2013 01:18:25 +0200 +Subject: [PATCH] collie.c: fall back to jedec_probe flash detection + +Zaurus 5500 contains 2 LH28F640BFHE-PTTL90 (64M 4Mx16) and +the LH28F640BFHE-PTTL90.pdf datasheet available on the net shows +the exact erasesize and the OTP support. +At the moment only jedec_probe can discover the chip and +the NOR is mounted read only probably because of wrong vpp + +Signed-off-by: Andrea Adami <andrea.adami@gmail.com> + +Upstream-Status: Submitted +http://lists.infradead.org/pipermail/linux-mtd/2013-February/045781.html +--- + arch/arm/mach-sa1100/collie.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm/mach-sa1100/collie.c b/arch/arm/mach-sa1100/collie.c +index 612a456..7fb96eb 100644 +--- a/arch/arm/mach-sa1100/collie.c ++++ b/arch/arm/mach-sa1100/collie.c +@@ -289,7 +289,7 @@ static void collie_flash_exit(void) + } + + static struct flash_platform_data collie_flash_data = { +- .map_name = "cfi_probe", ++ .map_name = "jedec_probe", + .init = collie_flash_init, + .set_vpp = collie_set_vpp, + .exit = collie_flash_exit, +-- +1.8.1.5 + diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-power/collie_battery-dev-pm.patch b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-power/collie_battery-dev-pm.patch new file mode 100644 index 0000000..4792c32 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-power/collie_battery-dev-pm.patch @@ -0,0 +1,39 @@ +From 94010e3700b65986c65960e2b7a0966773928347 Mon Sep 17 00:00:00 2001 +From: Andrea Adami <andrea.adami@gmail.com> +Date: Tue, 16 Jul 2013 17:33:39 +0200 +Subject: [PATCH] collie_battery.c: convert to use dev_pm_ops + +Fix +linux/drivers/power/collie_battery.c:372:2: warning: initialization from +incompatible pointer type [enabled by default] +linux/drivers/power/collie_battery.c:372:2: warning: (near initialization +for 'collie_bat_driver.suspend') [enabled by default] + +Referencess: +MFD: ucb1x00-core: convert to use dev_pm_ops +https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/include/linux/mfd?id=5a09b7120a965a7d7e8494d0ed509135bbce0118 + +MFD: mcp-core: remove legacy driver suspend/resume methods +https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/include/linux/mfd?id=cf4abfcc0df2985ff6061f74e63b8353f2a1d0bc + +Signed-off-by: Andrea Adami <andrea.adami@gmail.com> +--- + drivers/power/collie_battery.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/power/collie_battery.c b/drivers/power/collie_battery.c +index c58d0e3..d02ae02 100644 +--- a/drivers/power/collie_battery.c ++++ b/drivers/power/collie_battery.c +@@ -287,7 +287,7 @@ static struct gpio collie_batt_gpios[] = { + }; + + #ifdef CONFIG_PM +-static int collie_bat_suspend(struct ucb1x00_dev *dev, pm_message_t state) ++static int collie_bat_suspend(struct ucb1x00_dev *dev) + { + /* flush all pending status updates */ + flush_work(&bat_work); +-- +1.8.1.5 + diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-power/tosa_battery_irq_to_gpio.patch b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-power/tosa_battery_irq_to_gpio.patch new file mode 100644 index 0000000..9951d3a --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-power/tosa_battery_irq_to_gpio.patch @@ -0,0 +1,39 @@ +From 59031299cbfba766f9197c46f5271b4cb4afb89d Mon Sep 17 00:00:00 2001 +From: Andrea Adami <andrea.adami@gmail.com> +Date: Wed, 17 Jul 2013 00:27:23 +0200 +Subject: [PATCH] tosa_battery.c: get rid of irq_to_gpio usage + +Fix +linux/drivers/power/tosa_battery.c:153:2: error: implicit declaration of +function 'irq_to_gpio' [-Werror=implicit-function-declaration] +| pr_info("tosa_bat_gpio irq: %d\n", +gpio_get_value(irq_to_gpio(irq))); + +as done for collie_battery.c with +commit 629bcb4b72d49b3631ae3dd0fe1d345820fadfcc + +Since 9d08d5d77a355510c2f5657c86b0a4b25acfe72c, irq_to_gpio() is no +longer available but still in use by collie_battery.c. As it's just +for a debug message, just get rid of this call. + +Signed-off-by: Andrea Adami <andrea.adami@gmail.com> +--- + drivers/power/tosa_battery.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/power/tosa_battery.c b/drivers/power/tosa_battery.c +index 0224de5..f4d80df 100644 +--- a/drivers/power/tosa_battery.c ++++ b/drivers/power/tosa_battery.c +@@ -150,7 +150,7 @@ static void tosa_bat_external_power_changed(struct power_supply *psy) + + static irqreturn_t tosa_bat_gpio_isr(int irq, void *data) + { +- pr_info("tosa_bat_gpio irq: %d\n", gpio_get_value(irq_to_gpio(irq))); ++ pr_info("tosa_bat_gpio irq\n"); + schedule_work(&bat_work); + return IRQ_HANDLED; + } +-- +1.8.1.5 + diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-pxa/sharpsl_param.patch b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-pxa/sharpsl_param.patch new file mode 100644 index 0000000..934cdca --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-pxa/sharpsl_param.patch @@ -0,0 +1,47 @@ +From a8ca187342e1db8bf2f770b0d95935d2cbf1cc3c Mon Sep 17 00:00:00 2001 +From: Marko Katic <dromede@gmail.com> +Date: Mon, 15 Jul 2013 00:57:22 +0200 +Subject: [PATCH] sharpsl_param: fix invalid memory access in + sharpsl_save_param() + +Unbreak kernel boot (tested with kexecboot) + +Patch was sent twice upstrream: +http://lists.infradead.org/pipermail/linux-arm-kernel/2012-December/137284.html +Devices that call sharpsl_save_param() will hang on boot due to +a memcpy call that uses a physical address that is no longer * accessible. Fix +his by converting the physical address into a virtual one. + +Signed-off-by: Marko Katic <dromede@gmail.com> + +Upstream-Status: Submitted +https://patchwork.kernel.org/patch/1818681/ +--- + arch/arm/common/sharpsl_param.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/arch/arm/common/sharpsl_param.c b/arch/arm/common/sharpsl_param.c +index d56c932..b70b13a 100644 +--- a/arch/arm/common/sharpsl_param.c ++++ b/arch/arm/common/sharpsl_param.c +@@ -14,6 +14,7 @@ + #include <linux/kernel.h> + #include <linux/module.h> + #include <linux/string.h> ++#include <asm/memory.h> + #include <asm/mach/sharpsl_param.h> + + /* +@@ -41,7 +42,8 @@ EXPORT_SYMBOL(sharpsl_param); + + void sharpsl_save_param(void) + { +- memcpy(&sharpsl_param, (void *)PARAM_BASE, sizeof(struct sharpsl_param_info)); ++ void *param_start = phys_to_virt(PARAM_BASE); ++ memcpy(&sharpsl_param, param_start, sizeof(struct sharpsl_param_info)); + + if (sharpsl_param.comadj_keyword != COMADJ_MAGIC) + sharpsl_param.comadj=-1; +-- +1.8.1.5 + diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/revert-check-on-console-device.patch b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/revert-check-on-console-device.patch new file mode 100644 index 0000000..b8b699d --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/revert-check-on-console-device.patch @@ -0,0 +1,41 @@ +From 2f55386ae2eccfa8628dd2ca26d8f33acc72cd7c Mon Sep 17 00:00:00 2001 +From: Andrea Adami <andrea.adami@gmail.com> +Date: Fri, 20 Apr 2012 00:28:21 +0200 +Subject: [PATCH 41/41] main.c: revert check on console device + +* we can have empty /dev, +* in case of initramfs devtmpfs must be mounted by hand + +Signed-off-by: Andrea Adami <andrea.adami@gmail.com> +--- + init/main.c | 7 ------- + 1 files changed, 0 insertions(+), 7 deletions(-) + +diff --git a/init/main.c b/init/main.c +index cb9d3dc..217ed23 100644 +--- a/init/main.c ++++ b/init/main.c +@@ -794,7 +794,6 @@ static noinline int init_post(void) + + static int __init kernel_init(void * unused) + { +- struct stat console_stat; + /* + * Wait until kthreadd is all set-up. + */ +@@ -820,12 +819,6 @@ static int __init kernel_init(void * unused) + + do_basic_setup(); + +- /* Use /dev/console to infer if the rootfs is setup properly */ +- if (sys_newlstat((char __user *) "/dev/console", (struct stat __user *) &console_stat) +- || !S_ISCHR(console_stat.st_mode)) { +- panic("/dev/console is missing or not a character device!\nPlease ensure your rootfs is properly configured\n"); +- } +- + /* Open the /dev/console on the rootfs, this should never fail */ + if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0) + printk(KERN_WARNING "Warning: unable to open an initial console.\n"); +-- +1.7.3.4 + |