summaryrefslogtreecommitdiff
path: root/bsp/mini2440
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-05-22 15:00:36 +0000
committer[email protected] <[email protected]>2010-05-22 15:00:36 +0000
commit2139edd2eba89fb6820c65b5b012a0fae1292d0a (patch)
treef056f912779ca2f83f1b82a391103172ba2932e4 /bsp/mini2440
parent9c7ed22d04afe1187a22b2280a5e0c5942440189 (diff)
add NFSv3 configuration.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@728 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/mini2440')
-rw-r--r--bsp/mini2440/application.c14
-rw-r--r--bsp/mini2440/rtconfig.h8
-rw-r--r--bsp/mini2440/rtconfig.py21
3 files changed, 32 insertions, 11 deletions
diff --git a/bsp/mini2440/application.c b/bsp/mini2440/application.c
index 97690e466c..3e5ba17897 100644
--- a/bsp/mini2440/application.c
+++ b/bsp/mini2440/application.c
@@ -90,6 +90,20 @@ void rt_init_thread_entry(void* parameter)
}
#endif
+/* NFSv3 Initialization */
+#if defined(RT_USING_DFS) && defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS)
+ {
+ extern void nfs_init(void);
+ nfs_init();
+
+ if (dfs_mount(RT_NULL, "/nfs", "nfs", 0, RT_NFS_HOST_EXPORT) == 0)
+ {
+ rt_kprintf("NFSv3 File System initialized!\n");
+ }
+ else
+ rt_kprintf("NFSv3 File System initialzation failed!\n");
+ }
+#endif
}
void rt_led_thread_entry(void* parameter)
diff --git a/bsp/mini2440/rtconfig.h b/bsp/mini2440/rtconfig.h
index 4014011de8..3cebf641f5 100644
--- a/bsp/mini2440/rtconfig.h
+++ b/bsp/mini2440/rtconfig.h
@@ -76,6 +76,7 @@
/* Using symbol table */
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
+#define FINSH_THREAD_STACK_SIZE 4096
/* SECTION: a runtime libc library */
/* a runtime libc library */
@@ -91,10 +92,13 @@
#define RT_USING_DFS_ELMFAT
/* use long file name feature */
#define RT_DFS_ELM_USE_LFN 1
-/* the max number of file length */
-#define RT_DFS_ELM_MAX_LFN 32
+/* the max number of file length */
+#define RT_DFS_ELM_MAX_LFN 32
/* #define RT_USING_DFS_YAFFS2 */
+#define RT_USING_DFS_NFS
+#define RT_NFS_HOST_EXPORT "192.168.1.5:/"
+
/* #define DFS_USING_WORKDIR */
/* the max number of mounted filesystem */
diff --git a/bsp/mini2440/rtconfig.py b/bsp/mini2440/rtconfig.py
index 8e104f86dc..c8c70e4b2f 100644
--- a/bsp/mini2440/rtconfig.py
+++ b/bsp/mini2440/rtconfig.py
@@ -3,14 +3,15 @@ import SCons.cpp
# component options
# make all component false
-RT_USING_FINSH = False
-RT_USING_DFS = False
+RT_USING_FINSH = False
+RT_USING_DFS = False
RT_USING_DFS_ELMFAT = False
RT_USING_DFS_YAFFS2 = False
-RT_USING_LWIP = False
-RT_USING_WEBSERVER = False
-RT_USING_RTGUI = False
-RT_USING_MODBUS = False
+RT_USING_DFS_NFS = False
+RT_USING_LWIP = False
+RT_USING_WEBSERVER = False
+RT_USING_RTGUI = False
+RT_USING_MODBUS = False
# parse rtconfig.h to get used component
PreProcessor = SCons.cpp.PreProcessor()
@@ -35,9 +36,11 @@ if rtconfig_ns.has_key('RT_USING_DFS'):
if rtconfig_ns.has_key('RT_USING_DFS_ELMFAT'):
RT_USING_DFS_ELMFAT = True
if rtconfig_ns.has_key('RT_DFS_ELM_USE_LFN'):
- RT_DFS_ELM_USE_LFN = True
+ RT_DFS_ELM_USE_LFN = True
if rtconfig_ns.has_key('RT_USING_DFS_YAFFS2'):
RT_USING_DFS_YAFFS2 = True
+ if rtconfig_ns.has_key('RT_USING_DFS_NFS'):
+ RT_USING_DFS_NFS = True
# lwip options
if rtconfig_ns.has_key('RT_USING_LWIP'):
@@ -54,8 +57,8 @@ if rtconfig_ns.has_key('RT_USING_RTGUI'):
RT_USING_LCD_TYPE = 'PNL_T35'
# toolchains options
-ARCH = 'arm'
-CPU = 's3c24x0'
+ARCH = 'arm'
+CPU = 's3c24x0'
TextBase = '0x30000000'
CROSS_TOOL = 'keil'