Digi 9P 9360/9750 manual NFS server

Page 18

S y s t e m R e q u i r e m e n t s / P r e r e q u i s i t e s

NFS server

Use the network file system (NFS) to simplify application debugging on the target. NFS allows your target to mount its root file system with read/write permissions from the host computer over Ethernet. NFS also allows you to access the file system from the target and from the host computer the same time.

The NFS server configuration details are beyond the scope of this User's Manual and are very specific to the various distributions. This manual only describes the modifications necessary on hosts running a Debian distribution. Please refer to your Linux distribution manual to setup a NFS server if you are using a different distribution.

When the NFS server package (Debian package nfs-kernel-server) is installed on Debian, there is a file "/etc/exports" that contains information on exported directories and its access rights. Add the following line to this file to provide read/write access for your target:

BOOTDIR IP_ADDRESS(rw,all_squash,async)

BOOTDIR needs to be replaced with the path to the NFS root directory which is exported to the target. The IP_ADDRESS needs to be replaced with the IP address of your target.

Please refer to the Linux man pages for detailed information about the /etc/exports file. The build process copies the NFS root to /export/nfsroot-<platformname>; e.g. to export the rootfs for cc9p9750, write the following to /etc/exports:

/exports/nfsroot-cc9p9750dev 192.168.42.10(rw,all_squash,async)

For simplicity’s sake you can export the whole /exports dir for a complete subnet, e.g.:

/exports 192.168.42.0/24(rw,all_squash,async)

1 8

L x N E T E S U s e r ’ s G u i d e

Image 18
Contents LxNETES User’s Guide ConnectCore 9P 9360/9750 Page Page Page Contents Building the First Project Interfaces & Devices Appendix B Introduction OverviewCross-development environment Linux kernel sources Template projectExample applications Features General featuresWhat’s new in LxNETES 3.2? RTC Gpio Conventions used in this manual This is a tip. It contains useful information about a topicAcronyms and abbreviations Requirements System Requirements/PrerequisitesSystem requirements Disk space Optional but recommended componentsApplications & Services Tftp daemonNFS server JTAG-Booster N E T E S U s e r ’ s G u i d e Connecting host PC with development board Getting StartedIntroduction Minicom SeyonConnect power Seyon SettingsTest Ethernet configuration Installing LxNETES # ifconfig eth0Guided Installation Manual Installation N u a l Installation Building the Default Project Run configureBuilding the First Project Run make install Run makeApplication Development Writing applicationsAdding your own applications Using C++ Included example applicationsDisplay Proc/cpuinfo contents Debugging applications Choose the right architecture for your target Telnet daemon utelnetd Included pre-built applicationsShell applications busybox Web server BoaNano-X/microwindows Embedded QtUseful applications MemWriting kernel modules What is a kernel module?Kernel Development Writing your own kernel modulesAdd the module to the build environment Building and loading of kernel modulesIncluded Kernel modules Minimal Modifying the default project Advanced TopicsD i f y i n g t h e d e Fault p r o j e c t Building a custom project Boot process BootIntroduction ConnectCore 9P 9360/9750 Bank # 0 00000000 32 MBLinux boot methods NAND-FlashNOR Flash USBLinux boot process MMUV a n c e d T o p i c s Passing arguments to the kernel Automating the image downloadUpdating the Flash memory Updating a running system the easy way Updating a running system manuallyDownload the new image file to RAM Erase the Flash partitionWrite the image to Flash Boot KernelRoot File System Updating a corrupted system using a debugger Root File System Types Set bootargs to be passed to the kernel Download the kernel to RAM via TftpLaunch the kernel from RAM JFFS2 Copy the kernel to RAM O t F i l e S y s t e m T y p e s N E T E S U s e r ’ s G u i d e Interfaces & Devices Serial interfaceSPI interface USB host interfaceI2C interface LCD interfaceSD card interface How to set the initial system date and timeCompact flash interface Real time clock RTCPCI interface CD contents Appendix aRelated documentation RelNotes.txt Install.shReadme.txt Docs ImagesConnectCore 9P 9750 CC9P9750 SetupConnectCore 9P 9360 CC9P9360 HardwareConnectCore 9P 9360 / ConnectCore 9P Memory layoutsFlash memory layout Sdram memory layoutTextbase N E T E S U s e r ’ s G u i d e Boot command reference Appendix BO o t c o m m a n d r e f e r e n c e Skipped CC9C CCXP270 UNC90 User keys Example A9M24x0