]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-imx (2.6.35.3): Fix support for NFS root
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 18 Jun 2012 15:08:27 +0000 (12:08 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 18 Jun 2012 15:08:27 +0000 (12:08 -0300)
This allows use of alternative NFS ports and regular NFS root on same
kernel. This has also enabled the feature for the supported machines.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-kernel/linux/linux-imx-2.6.35.3/imx23evk/defconfig
meta-fsl-arm/recipes-kernel/linux/linux-imx-2.6.35.3/imx28evk/defconfig
meta-fsl-arm/recipes-kernel/linux/linux-imx-2.6.35.3/imx51evk/defconfig
meta-fsl-arm/recipes-kernel/linux/linux-imx-2.6.35.3/imx53ard/defconfig
meta-fsl-arm/recipes-kernel/linux/linux-imx-2.6.35.3/imx53qsb/defconfig
meta-fsl-arm/recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch [new file with mode: 0644]
meta-fsl-arm/recipes-kernel/linux/linux-imx_2.6.35.3.bb

index 62982c1447274cf32d129fcdd9ada9503e7adbce..852e2e84d5e17bbdfcba58e9c3eb0df3146ca12d 100644 (file)
@@ -1745,7 +1745,7 @@ CONFIG_NFS_FS=y
 CONFIG_NFS_V3=y
 # CONFIG_NFS_V3_ACL is not set
 # CONFIG_NFS_V4 is not set
-# CONFIG_ROOT_NFS is not set
+CONFIG_ROOT_NFS=y
 # CONFIG_NFSD is not set
 CONFIG_LOCKD=y
 CONFIG_LOCKD_V4=y
index 9f8e278fc7bfdce6ebf9e8b3deade5c66ab11d6f..41a061e4e00a4edcf9a208c9bb72b59103def984 100644 (file)
@@ -1864,7 +1864,7 @@ CONFIG_NFS_FS=y
 CONFIG_NFS_V3=y
 # CONFIG_NFS_V3_ACL is not set
 # CONFIG_NFS_V4 is not set
-# CONFIG_ROOT_NFS is not set=y
+CONFIG_ROOT_NFS=y
 # CONFIG_NFSD is not set
 CONFIG_LOCKD=y
 CONFIG_LOCKD_V4=y
index 42e1d7423e54c77ba6534e46701ad2aa4efa0d2b..7aa8c2834abc2555f1459e3deaa3a1356113ef64 100644 (file)
@@ -2249,7 +2249,7 @@ CONFIG_NFS_FS=y
 CONFIG_NFS_V3=y
 # CONFIG_NFS_V3_ACL is not set
 # CONFIG_NFS_V4 is not set
-# CONFIG_ROOT_NFS is not set=y
+CONFIG_ROOT_NFS=y
 # CONFIG_NFSD is not set
 CONFIG_LOCKD=y
 CONFIG_LOCKD_V4=y
index 63ff96f599b6d0ed2749fa1b6db4a8ec6a6c598e..f6f1b9bf8599a593e9209628c2ec5d67e7bb9c47 100644 (file)
@@ -2281,7 +2281,7 @@ CONFIG_NFS_FS=y
 CONFIG_NFS_V3=y
 # CONFIG_NFS_V3_ACL is not set
 # CONFIG_NFS_V4 is not set
-# CONFIG_ROOT_NFS is not set=y
+CONFIG_ROOT_NFS=y
 # CONFIG_NFSD is not set
 CONFIG_LOCKD=y
 CONFIG_LOCKD_V4=y
index 0d3b2dcdc44903a169ca1b2ccfd81f408e0f9cac..b0c88fbc5ad1a17cdc5628223e0e14685bb5da9f 100644 (file)
@@ -2278,7 +2278,7 @@ CONFIG_NFS_FS=y
 CONFIG_NFS_V3=y
 # CONFIG_NFS_V3_ACL is not set
 # CONFIG_NFS_V4 is not set
-# CONFIG_ROOT_NFS is not set=y
+CONFIG_ROOT_NFS=y
 # CONFIG_NFSD is not set
 CONFIG_LOCKD=y
 CONFIG_LOCKD_V4=y
diff --git a/meta-fsl-arm/recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch b/meta-fsl-arm/recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch
new file mode 100644 (file)
index 0000000..870f0c5
--- /dev/null
@@ -0,0 +1,31 @@
+From 4a6353dad68074bb7ae08817cd7beb5cd13f2359 Mon Sep 17 00:00:00 2001
+From: Otavio Salvador <otavio@ossystems.com.br>
+Date: Mon, 18 Jun 2012 12:02:56 -0300
+Subject: [PATCH] NFS: Fix nfsroot support
+
+The NFS support to use alternative ports breaks building of regular
+NFS root support as the API has been change in an incompatible way.
+
+Upstream-Status: Inappropriate [embedded specific]
+
+Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
+---
+ fs/nfs/nfsroot.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/fs/nfs/nfsroot.c b/fs/nfs/nfsroot.c
+index df101d9..e1578e1 100644
+--- a/fs/nfs/nfsroot.c
++++ b/fs/nfs/nfsroot.c
+@@ -506,7 +506,7 @@ static int __init root_nfs_get_handle(void)
+       if (!request.fh)
+               goto out;
+       set_sockaddr(&sin, servaddr, htons(mount_port));
+-      status = nfs_mount(&request);
++      status = nfs_mount(&request, NFS_MNT_PROGRAM);
+       if (status < 0)
+               printk(KERN_ERR "Root-NFS: Server returned error %d "
+                               "while mounting %s\n", status, nfs_export_path);
+-- 
+1.7.10
+
index f116b51de5b41833492f72e51ae4001be1cdcbcf..0ab783bf8d37d7931dedcce2491855eea3a1abd5 100644 (file)
@@ -4,7 +4,7 @@
 DESCRIPTION = "Linux kernel for imx platforms"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
-PR = "r22"
+PR = "r23"
 
 inherit kernel
 COMPATIBLE_MACHINE = "(mxs|mx5)"
@@ -12,6 +12,7 @@ COMPATIBLE_MACHINE = "(mxs|mx5)"
 SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git;tag=rel_imx_2.6.35_11.09.01 \
           file://0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch \
            file://egalax_ts-enable-single-event-support.patch \
+           file://NFS-Fix-nfsroot-support.patch \
            file://NFS-allow-nfs-root-mount-to-use-alternate-rpc-ports.patch \
            file://1130-ENGR00157473-MX5X-UART-disable-UART2-DMA-to-make-G.patch \
            file://1132-ENGR00155891-mx53_loco-enable-mc34708-s-WDI-functio.patch \