summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-06-18 12:08:27 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2012-06-18 12:08:27 -0300
commit077d27b0e5989defabe50ad184506b022d1f1280 (patch)
tree356aebad5f35414a180c46b3d2e287d8553073ee
parentf3a880bc2d276f5511e5ff8f82312a9c80870c0d (diff)
downloadmeta-fsl-arm-077d27b0e5989defabe50ad184506b022d1f1280.tar.gz
linux-imx (2.6.35.3): Fix support for NFS root
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>
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/imx23evk/defconfig2
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/imx28evk/defconfig2
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/imx51evk/defconfig2
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/imx53ard/defconfig2
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/imx53qsb/defconfig2
-rw-r--r--recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch31
-rw-r--r--recipes-kernel/linux/linux-imx_2.6.35.3.bb3
7 files changed, 38 insertions, 6 deletions
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/imx23evk/defconfig b/recipes-kernel/linux/linux-imx-2.6.35.3/imx23evk/defconfig
index 62982c1..852e2e8 100644
--- a/recipes-kernel/linux/linux-imx-2.6.35.3/imx23evk/defconfig
+++ b/recipes-kernel/linux/linux-imx-2.6.35.3/imx23evk/defconfig
@@ -1745,7 +1745,7 @@ CONFIG_NFS_FS=y
1745CONFIG_NFS_V3=y 1745CONFIG_NFS_V3=y
1746# CONFIG_NFS_V3_ACL is not set 1746# CONFIG_NFS_V3_ACL is not set
1747# CONFIG_NFS_V4 is not set 1747# CONFIG_NFS_V4 is not set
1748# CONFIG_ROOT_NFS is not set 1748CONFIG_ROOT_NFS=y
1749# CONFIG_NFSD is not set 1749# CONFIG_NFSD is not set
1750CONFIG_LOCKD=y 1750CONFIG_LOCKD=y
1751CONFIG_LOCKD_V4=y 1751CONFIG_LOCKD_V4=y
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/imx28evk/defconfig b/recipes-kernel/linux/linux-imx-2.6.35.3/imx28evk/defconfig
index 9f8e278..41a061e 100644
--- a/recipes-kernel/linux/linux-imx-2.6.35.3/imx28evk/defconfig
+++ b/recipes-kernel/linux/linux-imx-2.6.35.3/imx28evk/defconfig
@@ -1864,7 +1864,7 @@ CONFIG_NFS_FS=y
1864CONFIG_NFS_V3=y 1864CONFIG_NFS_V3=y
1865# CONFIG_NFS_V3_ACL is not set 1865# CONFIG_NFS_V3_ACL is not set
1866# CONFIG_NFS_V4 is not set 1866# CONFIG_NFS_V4 is not set
1867# CONFIG_ROOT_NFS is not set=y 1867CONFIG_ROOT_NFS=y
1868# CONFIG_NFSD is not set 1868# CONFIG_NFSD is not set
1869CONFIG_LOCKD=y 1869CONFIG_LOCKD=y
1870CONFIG_LOCKD_V4=y 1870CONFIG_LOCKD_V4=y
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/imx51evk/defconfig b/recipes-kernel/linux/linux-imx-2.6.35.3/imx51evk/defconfig
index 42e1d74..7aa8c28 100644
--- a/recipes-kernel/linux/linux-imx-2.6.35.3/imx51evk/defconfig
+++ b/recipes-kernel/linux/linux-imx-2.6.35.3/imx51evk/defconfig
@@ -2249,7 +2249,7 @@ CONFIG_NFS_FS=y
2249CONFIG_NFS_V3=y 2249CONFIG_NFS_V3=y
2250# CONFIG_NFS_V3_ACL is not set 2250# CONFIG_NFS_V3_ACL is not set
2251# CONFIG_NFS_V4 is not set 2251# CONFIG_NFS_V4 is not set
2252# CONFIG_ROOT_NFS is not set=y 2252CONFIG_ROOT_NFS=y
2253# CONFIG_NFSD is not set 2253# CONFIG_NFSD is not set
2254CONFIG_LOCKD=y 2254CONFIG_LOCKD=y
2255CONFIG_LOCKD_V4=y 2255CONFIG_LOCKD_V4=y
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/imx53ard/defconfig b/recipes-kernel/linux/linux-imx-2.6.35.3/imx53ard/defconfig
index 63ff96f..f6f1b9b 100644
--- a/recipes-kernel/linux/linux-imx-2.6.35.3/imx53ard/defconfig
+++ b/recipes-kernel/linux/linux-imx-2.6.35.3/imx53ard/defconfig
@@ -2281,7 +2281,7 @@ CONFIG_NFS_FS=y
2281CONFIG_NFS_V3=y 2281CONFIG_NFS_V3=y
2282# CONFIG_NFS_V3_ACL is not set 2282# CONFIG_NFS_V3_ACL is not set
2283# CONFIG_NFS_V4 is not set 2283# CONFIG_NFS_V4 is not set
2284# CONFIG_ROOT_NFS is not set=y 2284CONFIG_ROOT_NFS=y
2285# CONFIG_NFSD is not set 2285# CONFIG_NFSD is not set
2286CONFIG_LOCKD=y 2286CONFIG_LOCKD=y
2287CONFIG_LOCKD_V4=y 2287CONFIG_LOCKD_V4=y
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/imx53qsb/defconfig b/recipes-kernel/linux/linux-imx-2.6.35.3/imx53qsb/defconfig
index 0d3b2dc..b0c88fb 100644
--- a/recipes-kernel/linux/linux-imx-2.6.35.3/imx53qsb/defconfig
+++ b/recipes-kernel/linux/linux-imx-2.6.35.3/imx53qsb/defconfig
@@ -2278,7 +2278,7 @@ CONFIG_NFS_FS=y
2278CONFIG_NFS_V3=y 2278CONFIG_NFS_V3=y
2279# CONFIG_NFS_V3_ACL is not set 2279# CONFIG_NFS_V3_ACL is not set
2280# CONFIG_NFS_V4 is not set 2280# CONFIG_NFS_V4 is not set
2281# CONFIG_ROOT_NFS is not set=y 2281CONFIG_ROOT_NFS=y
2282# CONFIG_NFSD is not set 2282# CONFIG_NFSD is not set
2283CONFIG_LOCKD=y 2283CONFIG_LOCKD=y
2284CONFIG_LOCKD_V4=y 2284CONFIG_LOCKD_V4=y
diff --git a/recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch b/recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch
new file mode 100644
index 0000000..870f0c5
--- /dev/null
+++ b/recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch
@@ -0,0 +1,31 @@
1From 4a6353dad68074bb7ae08817cd7beb5cd13f2359 Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Mon, 18 Jun 2012 12:02:56 -0300
4Subject: [PATCH] NFS: Fix nfsroot support
5
6The NFS support to use alternative ports breaks building of regular
7NFS root support as the API has been change in an incompatible way.
8
9Upstream-Status: Inappropriate [embedded specific]
10
11Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
12---
13 fs/nfs/nfsroot.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/fs/nfs/nfsroot.c b/fs/nfs/nfsroot.c
17index df101d9..e1578e1 100644
18--- a/fs/nfs/nfsroot.c
19+++ b/fs/nfs/nfsroot.c
20@@ -506,7 +506,7 @@ static int __init root_nfs_get_handle(void)
21 if (!request.fh)
22 goto out;
23 set_sockaddr(&sin, servaddr, htons(mount_port));
24- status = nfs_mount(&request);
25+ status = nfs_mount(&request, NFS_MNT_PROGRAM);
26 if (status < 0)
27 printk(KERN_ERR "Root-NFS: Server returned error %d "
28 "while mounting %s\n", status, nfs_export_path);
29--
301.7.10
31
diff --git a/recipes-kernel/linux/linux-imx_2.6.35.3.bb b/recipes-kernel/linux/linux-imx_2.6.35.3.bb
index f116b51..0ab783b 100644
--- a/recipes-kernel/linux/linux-imx_2.6.35.3.bb
+++ b/recipes-kernel/linux/linux-imx_2.6.35.3.bb
@@ -4,7 +4,7 @@
4DESCRIPTION = "Linux kernel for imx platforms" 4DESCRIPTION = "Linux kernel for imx platforms"
5LICENSE = "GPLv2" 5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 6LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
7PR = "r22" 7PR = "r23"
8 8
9inherit kernel 9inherit kernel
10COMPATIBLE_MACHINE = "(mxs|mx5)" 10COMPATIBLE_MACHINE = "(mxs|mx5)"
@@ -12,6 +12,7 @@ COMPATIBLE_MACHINE = "(mxs|mx5)"
12SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git;tag=rel_imx_2.6.35_11.09.01 \ 12SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git;tag=rel_imx_2.6.35_11.09.01 \
13 file://0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch \ 13 file://0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch \
14 file://egalax_ts-enable-single-event-support.patch \ 14 file://egalax_ts-enable-single-event-support.patch \
15 file://NFS-Fix-nfsroot-support.patch \
15 file://NFS-allow-nfs-root-mount-to-use-alternate-rpc-ports.patch \ 16 file://NFS-allow-nfs-root-mount-to-use-alternate-rpc-ports.patch \
16 file://1130-ENGR00157473-MX5X-UART-disable-UART2-DMA-to-make-G.patch \ 17 file://1130-ENGR00157473-MX5X-UART-disable-UART2-DMA-to-make-G.patch \
17 file://1132-ENGR00155891-mx53_loco-enable-mc34708-s-WDI-functio.patch \ 18 file://1132-ENGR00155891-mx53_loco-enable-mc34708-s-WDI-functio.patch \