1. update Ubuntu System Software 1.1 configuration update source sudogedit/etc/apt/source. list, open-source configuration file, delete the items in the file, and copy the following source address: note that we use the Ubuntu source here (use a different version of the source) debhttp: // ftp.sjtu.edu.cn/ubuntu/hardymainmultiverserestricteduniversede
1. Update Ubuntu System Software
1.1 configure the update source
Sudo gedit/etc/apt/source. list, open the source configuration file, delete the content, and copy the following source address:
Note that we use the ubuntu 8.04 source (different versions are recommended)
Deb http://ftp.sjtu.edu.cn/ubuntu/ hard main multiverse restricted universe
Deb http://ftp.sjtu.edu.cn/ubuntu/ hard-backports main multiverse restricted universe
Deb http://ftp.sjtu.edu.cn/ubuntu/ hard-proposed main multiverse restricted universe
Deb http://ftp.sjtu.edu.cn/ubuntu/ hard-security main multiverse restricted universe
Deb http://ftp.sjtu.edu.cn/ubuntu/ hard-updates main multiverse restricted universe
Deb-src http://ftp.sjtu.edu.cn/ubuntu/ hard main multiverse restricted universe
Deb-src http://ftp.sjtu.edu.cn/ubuntu/ hard-backports main multiverse restricted universe
Deb-src http://ftp.sjtu.edu.cn/ubuntu/ hard-proposed main multiverse restricted universe
Deb-src http://ftp.sjtu.edu.cn/ubuntu/ hard-security main multiverse restricted universe
Deb-src http://ftp.sjtu.edu.cn/ubuntu/ hard-updates main multiverse restricted universe
This is the source of Jiaotong University. I personally think it is faster!
Save the file and run sudo apt-get update and sudo apt-get upgrade.
So restart system!
1.2 install the compiling environment
Sudo apt-get install build-essential autoconf automake1.9 cvs subversion
2 ARM cross-compilation environment Installation
2.1 Download cross
Open http://ftp.arm.linux.org.uk/pub/armlinux/toolchain/
Download
Cross-3.2.tar.bz2
2.2 install cross
Extract
Tar xjvf cross-3.2.tar.bz2 unzipped out is a usr directory
Enter
Cd/usr/local/
Sudo mv arm // usr/local/
2.3 configure cross Environment Variables
Sudo gedit/etc/bash. bashrc open the bash. bashrc File
Write at the end of the file:
If [-d/usr/local/arm]; then
PATH =/usr/local/arm/bin: $ {"PATH "}
Fi
Save files
2.4 Test the ARM cross-compiling environment
Arm-linux-gcc-v
Note: If you are using a 64-bit system, there is a solution, www.linuxidc.com is to install lsb-core, which is a 32-bit Library
Compile a file and test again:
# Include
Int main (void)
{
Printf ("HelloWorld ARM! \ N ");
Return 0;
}
Save as hello. c
Compilation: arm-linux-gcc-o hello. c
Run hello:./hello
Bash:./hello: cannot execute binary file (the binary file cannot be run, because the binary file under arm is generated );
3. Install minicom
Sudo apt-get install minicom
4. install and configure tftp-hpa
4.1 install tftp-hpa
Sudo apt-get install tftp-hpa tftpd-hpa openbsd-inetd sysvconfig debian-helper-scripts
Tftp-hpa is the client and tftpd-hpa is the server
4.2 configure the tftp-hpa Server
Sudo gedit/etc/default/tftp-hpa
Open the file as follows:
RUN_DAEMON = "no" OPTIONS = "-l-s"
To:
RUN_DAEMON = "yes"
OPTIONS = "-l-c-s/tftpboot"
Save files
4.3 create the tftpboot service directory
Cd/cd to the root directory
Sudo mkdir tftpboot: Create a tftpboot folder
Sudo chmod-R 777 tftpboot/modify the permissions of the tftpboot folder
Cd/tftpboot Go To The tftpboot directory
Touch test.txt creates a file
Cd ~ /Return to the personal directory
4.4 restart the tftp Server
Sudo service tftpd-hpa restart
4.5 Test the tftp-hpa Server
Tftp localhost
Get test.txt
Which of the following files is test.txt in the current directory?
Likewise! Put a file in the current directory into xxxx .???, Check whether the/tftpboot directory contains xxxx .?? Is this file not?
Note: you do not need to install openbsd-inetd debian-helper-script when installing the tftp server in ubuntu 10.04. You only need to install tftp-hpa tftpd-hpa.
5. install and configure the NTF Service
NFS (Network File System,
Network File System) You can share directories of different hosts (different OS) over the network-you can mount directories of remote hosts through NFS to access this directory just like accessing local directories!
I
Generally, nfs can be used to easily share unix-like systems. However,
You have to use samba!
NFS runs on SUN's RPC (Remote Procedure Call, Remote process Call,
RPC defines a system-independent method for inter-process communication. Therefore, NFS server can also be considered as an RPC server.
Zheng
NFS is an RPC service program, so before using it, you need to map the port-set through portmap. For example: an NFS
When the client initiates an NFS service request, it needs to first obtain a port. Therefore, it first obtains the port number through portmap. (not only NFS,
You must set portmap before starting all RPC service programs.
5.1 install the nfs service
Sudo apt-get install nfs-kernel-server nfs-common portmap
The client can be installed to test the NFS service on the local machine.
5.2 configure portmap
You can choose either of the two methods:
(1): sudo emacs/etc/default/portmap
Remove-I 127.0.0.1
(2) sudo dpkg-reconfigure portmap
Select "no" after running"
5.3 configure the Mount directory and permissions
Sudo vim/etc/exports
My configuration is as follows: #/etc/exports: the access control list for filesystems which may be exported
# To NFS clients. See exports (5 ).
#
# Example for NFSv2 and NFSv3:
#/Srv/homes hostname1 (rw, sync) hostname2 (ro, sync)
#
# Example for NFSv4:
#/Srv/nfs4 gss/krb5i (rw, sync, fsid = 0, crossmnt)
#/Srv/nfs4/homes gss/krb5i (rw, sync)
#
/Home/nfsboot * (rw, sync)
Explanations:
# Subsequent explanations
/Home/nfsboot is the NFS shared directory. * indicates that any IP Address can share this directory. You can change it to a restricted IP address. rw indicates the permission and sync indicates the default value.
5.4 start the service
5.4.1 update the exports file
If you change/etc/exports, you cannot update this file through sudo exportfs-r.
5.4.2 restart the NFS service
Sudo/etc/init. d/nfs-kernel-server restart nfs service
6. Test Server
Try mounting the local disk (My linux system IP address is 202.198.137.18, Mount/home/nfsboot to/mnt)
$ Sudo mount 202.198.137.18:/home/nfsboot/mnt
Run $ df to check the result
$ Sudo umount/mnt
7. Mount the arm nfs service