Skip to main content.
Navigation:
DENX
>
DULG
>
ELDKMountingTargetComponentsViaNFS
Translations:
Edit
|
Attach
|
Raw
|
Ref-By
|
Printable
|
More
DULG
Sections of this site:
DENX Home
|
DULG
|
ELDK-5
|
Know
|
Training
|
U-Boot
|
U-Bootdoc
Topics
DULG Home
BoardSelect
Manual
FAQ
Application Notes
Changes
Index
List of pages in DULG
Search
%SECTION0{name=MountingTargetViaNFS}% Mounting Target Components via NFS The target components of the ELDK can be mounted via NFS as the root file system for your target machine. For instance, for an %IF{ "%ARCHITECTURE%" eq "powerpc" }% 8xx-based %ENDIF% %IF{ "%ARCHITECTURE%" eq "arm" }% AT91-based %ENDIF% %IF{ "%ARCHITECTURE%" eq "mips" }% 4KC-based %ENDIF% target, and assuming the ELDK has been installed into the _/opt/eldk_ directory, you can use the following directory as the NFS-based root file system: %IF{ "%ARCHITECTURE%" eq "powerpc" }% <verbatim> /opt/eldk/ppc_8xx </verbatim> %ENDIF% %IF{ "%ARCHITECTURE%" eq "arm" }% <verbatim> /opt/eldk/arm </verbatim> %ENDIF% %IF{ "%ARCHITECTURE%" eq "mips" }% <verbatim> /opt/eldk/mips_4KC </verbatim> %ENDIF% %X% Before the NFS-mounted root file system can work, you must create necessary device nodes in the _<ELDK_root>/<target_cpu_variant>/dev_ directory. This process requires superuser privileges and thus cannot be done by the installation procedure (which typically runs as non-root). To facilitate creation of the device nodes, the ELDK provides a script named =ELDK_MAKEDEV=, which is located in the root of the ELDK distribution ISO image. The script acccepts the following optional arguments: %TABLE{ tableborder="0" headerrows="0" cellspacing="5" databg="#FFFFFF" valign="top" }% | =-d <dir>= | Specifies the root directory of the ELDK being installed. If omitted, then the current directory is assumed. | | =-a <cpu_family>= | Specifies the target CPU family directory. If omitted, all installed target [[ELDKSupportedTargetArchitectures][architecture]] directories will be populated with the device nodes. | | =-h= | Prints usage. | <verbatim> # /mnt/cdrom/ELDK_MAKEDEV -d /opt/eldk </verbatim> *NOTE:* Compared to older versions of the ELDK, options and behaviour of this command have been changed significantly. *Please read the documentation.* %X% Some of the target utilities included in the ELDK, such as =mount= and =su=, have the SUID bit set. This means that when run, they will have privileges of the file owner of these utilities. That is, normally, they will have the privileges of the user who installed the ELDK on the host system. However, for these utilities to work properly, they <b>must</b> have superuser privileges. This means that if the ELDK was not installed by the superuser, the file owner of the target ELDK utilities that have the SUID bit set must be changed to =root= before a target component may be mounted as the root file system. The ELDK distribution image contains an =ELDK_FIXOWNER= script, which you can use to change file owners of all the appropriate files of the ELDK installation to root. The script accepts the same arguments as the =ELDK_MAKEDEV= script above. Please note that you must have superuser privileges to run this script. For instance, if you have installed the ELDK in the _/opt/eldk_ directory, you can use the following commands: <verbatim> # cd /opt/eldk # /mnt/cdrom/ELDK_FIXOWNER </verbatim> Please note, that in the case that the installation directory, where the new ELDK distribution is being installed, is already populated with other ELDK distributions, the execution of the =ELDK_FIXOWNER= script without arguments will make the script work with all installed ELDK target [[ELDKSupportedTargetArchitectures][architecture]] directories. This could take some time. To save the time, please use the =-a= argument to specify the appropriate target [[ELDKSupportedTargetArchitectures][architecture]]. For instance: %IF{ "%ARCHITECTURE%" eq "powerpc" }% <verbatim> # cd /opt/eldk # /mnt/cdrom/ELDK_FIXOWNER -a ppc_8xx </verbatim> %ENDIF% %IF{ "%ARCHITECTURE%" eq "arm" }% <verbatim> # cd /opt/eldk # /mnt/cdrom/ELDK_FIXOWNER -a arm </verbatim> %ENDIF% %IF{ "%ARCHITECTURE%" eq "mips" }% <verbatim> # cd /opt/eldk # /mnt/cdrom/ELDK_FIXOWNER -a mips_4KC </verbatim> %ENDIF%
3.6. Working with ELDK
1. Abstract
3.8. Rebuilding ELDK Components
Prev
Home
Next