Patchwork [meta-fsl-ppc,v3] linux: enable CONFIG_DEVTMPFS_MOUNT to ensure /dev can be mounted correctly

login
register
mail settings
Submitter chunrong guo
Date April 11, 2013, 9:46 a.m.
Message ID <1365673616-1790-1-git-send-email-b40290@freescale.com>
Download mbox | patch
Permalink /patch/47901/
State Superseded
Headers show

Comments

chunrong guo - April 11, 2013, 9:46 a.m.
From: Chunrong Guo <B40290@freescale.com>

      * The udev is upgraded to 182, the /dev mount requires CONFIG_DEVTMPFS_MOUNT
        is enabled in Kernel, so enable the option for QorIQ SDK targets.

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 ...option-Automount-devtmpfs-at-dev-in-kerne.patch |   78 ++++++++++++++++++++
 recipes-kernel/linux/linux-qoriq-sdk.bb            |    3 +-
 2 files changed, 80 insertions(+), 1 deletions(-)
 create mode 100644 recipes-kernel/linux/files/0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch
Otavio Salvador - April 11, 2013, 12:33 p.m.
On Thu, Apr 11, 2013 at 6:46 AM,  <b40290@freescale.com> wrote:
> From: Chunrong Guo <B40290@freescale.com>
>
>       * The udev is upgraded to 182, the /dev mount requires CONFIG_DEVTMPFS_MOUNT
>         is enabled in Kernel, so enable the option for QorIQ SDK targets.
>
> Signed-off-by: Chunrong Guo <B40290@freescale.com>


Please use 'linux-qoriq-sdk: ...' so it is clear which linux recipe
you are changing.

> ---
>  ...option-Automount-devtmpfs-at-dev-in-kerne.patch |   78 ++++++++++++++++++++
>  recipes-kernel/linux/linux-qoriq-sdk.bb            |    3 +-
>  2 files changed, 80 insertions(+), 1 deletions(-)
>  create mode 100644 recipes-kernel/linux/files/0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch
>
> diff --git a/recipes-kernel/linux/files/0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch b/recipes-kernel/linux/files/0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch
> new file mode 100644
> index 0000000..39783ef
> --- /dev/null
> +++ b/recipes-kernel/linux/files/0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch
> @@ -0,0 +1,78 @@
> +From 3179602e581b6fe8797a5677d5ac4ecfab065cc6 Mon Sep 17 00:00:00 2001
> +From: Chunrong Guo <B40290@freescale.com>
> +Date: Thu, 11 Apr 2013 01:52:48 -0500
> +Subject: [PATCH] Enable "the option Automount devtmpfs at /dev" in kernel
> +
> +Upstream-Status:Pending
> +Signed-off-by: Chunrong Guo <b40290@freescale.com>
> +---
> + arch/powerpc/configs/85xx/e6500rev1_defconfig |    1 +
> + arch/powerpc/configs/corenet32_smp_defconfig  |    1 +
> + arch/powerpc/configs/corenet64_smp_defconfig  |    1 +
> + arch/powerpc/configs/mpc85xx_defconfig        |    1 +
> + arch/powerpc/configs/mpc85xx_smp_defconfig    |    1 +
> + 5 files changed, 5 insertions(+)
> +
> +diff --git a/arch/powerpc/configs/85xx/e6500rev1_defconfig b/arch/powerpc/configs/85xx/e6500rev1_defconfig
> +index 4b5866d..32ebb50 100644
> +--- a/arch/powerpc/configs/85xx/e6500rev1_defconfig
> ++++ b/arch/powerpc/configs/85xx/e6500rev1_defconfig
> +@@ -72,6 +72,7 @@ CONFIG_IPV6=y
> + CONFIG_IP_SCTP=m
> + CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
> + CONFIG_DEVTMPFS=y
> ++CONFIG_DEVTMPFS_MOUNT=y
> + CONFIG_MTD=y
> + CONFIG_MTD_CMDLINE_PARTS=y
> + CONFIG_MTD_CHAR=y
> +diff --git a/arch/powerpc/configs/corenet32_smp_defconfig b/arch/powerpc/configs/corenet32_smp_defconfig
> +index b43d4b6..3fe10e5 100644
> +--- a/arch/powerpc/configs/corenet32_smp_defconfig
> ++++ b/arch/powerpc/configs/corenet32_smp_defconfig
> +@@ -71,6 +71,7 @@ CONFIG_IPV6=y
> + CONFIG_IP_SCTP=m
> + CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
> + CONFIG_DEVTMPFS=y
> ++CONFIG_DEVTMPFS_MOUNT=y
> + CONFIG_MTD=y
> + CONFIG_MTD_CMDLINE_PARTS=y
> + CONFIG_MTD_CHAR=y
> +diff --git a/arch/powerpc/configs/corenet64_smp_defconfig b/arch/powerpc/configs/corenet64_smp_defconfig
> +index 13b032b..74cc46a 100644
> +--- a/arch/powerpc/configs/corenet64_smp_defconfig
> ++++ b/arch/powerpc/configs/corenet64_smp_defconfig
> +@@ -66,6 +66,7 @@ CONFIG_IPV6=y
> + CONFIG_IP_SCTP=m
> + CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
> + CONFIG_DEVTMPFS=y
> ++CONFIG_DEVTMPFS_MOUNT=y
> + CONFIG_MTD=y
> + CONFIG_MTD_CMDLINE_PARTS=y
> + CONFIG_MTD_CHAR=y
> +diff --git a/arch/powerpc/configs/mpc85xx_defconfig b/arch/powerpc/configs/mpc85xx_defconfig
> +index 8fb742d..f353a6e 100644
> +--- a/arch/powerpc/configs/mpc85xx_defconfig
> ++++ b/arch/powerpc/configs/mpc85xx_defconfig
> +@@ -75,6 +75,7 @@ CONFIG_IPV6=y
> + CONFIG_IP_SCTP=m
> + CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
> + CONFIG_DEVTMPFS=y
> ++CONFIG_DEVTMPFS_MOUNT=y
> + CONFIG_MTD=y
> + CONFIG_MTD_CHAR=y
> + CONFIG_MTD_BLOCK=y
> +diff --git a/arch/powerpc/configs/mpc85xx_smp_defconfig b/arch/powerpc/configs/mpc85xx_smp_defconfig
> +index b31c8ac..cdc2c87 100644
> +--- a/arch/powerpc/configs/mpc85xx_smp_defconfig
> ++++ b/arch/powerpc/configs/mpc85xx_smp_defconfig
> +@@ -77,6 +77,7 @@ CONFIG_IPV6=y
> + CONFIG_IP_SCTP=m
> + CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
> + CONFIG_DEVTMPFS=y
> ++CONFIG_DEVTMPFS_MOUNT=y
> + CONFIG_MTD=y
> + CONFIG_MTD_CHAR=y
> + CONFIG_MTD_BLOCK=y
> +--
> +1.7.9.7
> +
> diff --git a/recipes-kernel/linux/linux-qoriq-sdk.bb b/recipes-kernel/linux/linux-qoriq-sdk.bb
> index 1971f15..45f615f 100644
> --- a/recipes-kernel/linux/linux-qoriq-sdk.bb
> +++ b/recipes-kernel/linux/linux-qoriq-sdk.bb
> @@ -8,9 +8,10 @@ LICENSE = "GPLv2"
>
>  require recipes-kernel/linux/linux-qoriq-sdk.inc
>
> -PR = "r9"
> +PR = "r10"
>
>  SRC_URI += "file://fix_getrusage_for_perf.patch \
> +            file://0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch \
>             "
>
>  do_configure_prepend() {
> --
> 1.7.5.4
>
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale



--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

Patch

diff --git a/recipes-kernel/linux/files/0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch b/recipes-kernel/linux/files/0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch
new file mode 100644
index 0000000..39783ef
--- /dev/null
+++ b/recipes-kernel/linux/files/0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch
@@ -0,0 +1,78 @@ 
+From 3179602e581b6fe8797a5677d5ac4ecfab065cc6 Mon Sep 17 00:00:00 2001
+From: Chunrong Guo <B40290@freescale.com>
+Date: Thu, 11 Apr 2013 01:52:48 -0500
+Subject: [PATCH] Enable "the option Automount devtmpfs at /dev" in kernel
+
+Upstream-Status:Pending
+Signed-off-by: Chunrong Guo <b40290@freescale.com>
+---
+ arch/powerpc/configs/85xx/e6500rev1_defconfig |    1 +
+ arch/powerpc/configs/corenet32_smp_defconfig  |    1 +
+ arch/powerpc/configs/corenet64_smp_defconfig  |    1 +
+ arch/powerpc/configs/mpc85xx_defconfig        |    1 +
+ arch/powerpc/configs/mpc85xx_smp_defconfig    |    1 +
+ 5 files changed, 5 insertions(+)
+
+diff --git a/arch/powerpc/configs/85xx/e6500rev1_defconfig b/arch/powerpc/configs/85xx/e6500rev1_defconfig
+index 4b5866d..32ebb50 100644
+--- a/arch/powerpc/configs/85xx/e6500rev1_defconfig
++++ b/arch/powerpc/configs/85xx/e6500rev1_defconfig
+@@ -72,6 +72,7 @@ CONFIG_IPV6=y
+ CONFIG_IP_SCTP=m
+ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+ CONFIG_DEVTMPFS=y
++CONFIG_DEVTMPFS_MOUNT=y
+ CONFIG_MTD=y
+ CONFIG_MTD_CMDLINE_PARTS=y
+ CONFIG_MTD_CHAR=y
+diff --git a/arch/powerpc/configs/corenet32_smp_defconfig b/arch/powerpc/configs/corenet32_smp_defconfig
+index b43d4b6..3fe10e5 100644
+--- a/arch/powerpc/configs/corenet32_smp_defconfig
++++ b/arch/powerpc/configs/corenet32_smp_defconfig
+@@ -71,6 +71,7 @@ CONFIG_IPV6=y
+ CONFIG_IP_SCTP=m
+ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+ CONFIG_DEVTMPFS=y
++CONFIG_DEVTMPFS_MOUNT=y
+ CONFIG_MTD=y
+ CONFIG_MTD_CMDLINE_PARTS=y
+ CONFIG_MTD_CHAR=y
+diff --git a/arch/powerpc/configs/corenet64_smp_defconfig b/arch/powerpc/configs/corenet64_smp_defconfig
+index 13b032b..74cc46a 100644
+--- a/arch/powerpc/configs/corenet64_smp_defconfig
++++ b/arch/powerpc/configs/corenet64_smp_defconfig
+@@ -66,6 +66,7 @@ CONFIG_IPV6=y
+ CONFIG_IP_SCTP=m
+ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+ CONFIG_DEVTMPFS=y
++CONFIG_DEVTMPFS_MOUNT=y
+ CONFIG_MTD=y
+ CONFIG_MTD_CMDLINE_PARTS=y
+ CONFIG_MTD_CHAR=y
+diff --git a/arch/powerpc/configs/mpc85xx_defconfig b/arch/powerpc/configs/mpc85xx_defconfig
+index 8fb742d..f353a6e 100644
+--- a/arch/powerpc/configs/mpc85xx_defconfig
++++ b/arch/powerpc/configs/mpc85xx_defconfig
+@@ -75,6 +75,7 @@ CONFIG_IPV6=y
+ CONFIG_IP_SCTP=m
+ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+ CONFIG_DEVTMPFS=y
++CONFIG_DEVTMPFS_MOUNT=y
+ CONFIG_MTD=y
+ CONFIG_MTD_CHAR=y
+ CONFIG_MTD_BLOCK=y
+diff --git a/arch/powerpc/configs/mpc85xx_smp_defconfig b/arch/powerpc/configs/mpc85xx_smp_defconfig
+index b31c8ac..cdc2c87 100644
+--- a/arch/powerpc/configs/mpc85xx_smp_defconfig
++++ b/arch/powerpc/configs/mpc85xx_smp_defconfig
+@@ -77,6 +77,7 @@ CONFIG_IPV6=y
+ CONFIG_IP_SCTP=m
+ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+ CONFIG_DEVTMPFS=y
++CONFIG_DEVTMPFS_MOUNT=y
+ CONFIG_MTD=y
+ CONFIG_MTD_CHAR=y
+ CONFIG_MTD_BLOCK=y
+-- 
+1.7.9.7
+
diff --git a/recipes-kernel/linux/linux-qoriq-sdk.bb b/recipes-kernel/linux/linux-qoriq-sdk.bb
index 1971f15..45f615f 100644
--- a/recipes-kernel/linux/linux-qoriq-sdk.bb
+++ b/recipes-kernel/linux/linux-qoriq-sdk.bb
@@ -8,9 +8,10 @@  LICENSE = "GPLv2"
 
 require recipes-kernel/linux/linux-qoriq-sdk.inc
 
-PR = "r9"
+PR = "r10"
 
 SRC_URI += "file://fix_getrusage_for_perf.patch \
+            file://0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch \
            "
 
 do_configure_prepend() {