As you have not purchased a USB to serial port interface, you can only complete part of it! Not soon! For the friendly wall 2440 Development Board Ubuntu8.01 operating system, refer to the friendly manual. This document provides a mark for key and error-prone areas. Refer to my host environment host in my original article by xhylyx netizens in the Ubuntu Chinese Forum: ubuntu8.10 desktop Development Board: friendly arm MINI2440 Host IP Address: 192.168.1.
As you have not purchased a USB to serial port interface, you can only complete part of it! Not soon!
Friendly wall 2440 Development Board Ubuntu8.01 Operating System
Refer to the friendly manual. In this article, mark the key error-prone areas and refer to the original articles by xhylyx netizens in the Ubuntu Chinese forum.
My host environment
HOST: Ubuntu 8.10 desktop Development Board: friendly arm MINI2440
Host IP: 192.168.1.101 Gateway: 192.168.1.1 subnet mask: 255.255.255.0 subnet mask 255.255.255.0
Since there is no transfer interface, I can only perform single-host operations, but the interface purchase is required !! Haha !!
Free videos embedded in self-perception are very useful. Although there is no sound, they are suitable for beginners like me (cainiao)
With a little experience accumulated today, you need to set your Nic to static to prevent errors! In my own computer, there are actually three systems, XP, Ubuntu, and RHEL5 installed on the Virtual Machine. However, I feel that the virtual machine is still difficult for the new user to configure peripherals, I used Ubuntu of wubi directly (in fact, I am not very familiar with the system installation process)
Ipconfig check whether the status is good
Step 1: Install the arm-linux-gcc compiler to familiarize yourself with the decompression commands !!
I use a compiler version which is a arm-linux-gcc-2.95.3 arm-linux-gcc-3.3. 2 arm-linux-gcc-3.4.1
Use tar xvzf arm-linux-gcc-3.3.2.tgz-C/
Tar xvzf arm-linux-gcc-2.95.3.tgz-C/
Tar xvzf arm-linux-gcc-3.4.1.tgz-C/
Mkdir-p/opt/FriendlyARM/mini2440 create a working directory
Modify the/root/. bashrc file gedit, which was previously vi. Today I learned a new gedit
Add export PATH = $ PATH:/usr/local/arm/3.4.1/to the last row and save and exit.
After logging on again, arm-linux-gcc-v
A message is displayed, indicating that the operation is successful.
Reading specs from/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/specs
Configured: /work/crosstool-0.27/build/arm-linux/gcc-3.4.1-glibc-2.3.2/gcc-3.4.1/configure -- target = arm-linux -- host = i686-host_pc-linux-gnu -- prefix =/usr/local/arm/3.4.1 --- headers =/usr/local/arm/3.4.1/arm-linux/include -- with-local-prefix =/usr/local/arm/3.4.1/arm-linux -- disable-nls -- enable-threads = posix -- enable-symvers = gnu -- enable-_ cxa_atexit -- enable-packages ages = c, c ++ -- enable-shared -- enable-c99 -- enable-long
Thread model: posix
Gcc version 3.4.1
Step 2: Configure NFS
Install NFS
By default, the NFS server is not installed on Ubuntu. First, install the NFS service program:
Sudo apt-get install nfs-kernel-server
When nfs-kernel-server is installed, apt automatically installs nfs-common and portmap
In this way, the host is equivalent to the NFS Server.
Configure NFS
(1) Configure portmap
Method 1: edit/etc/default/portmap and remove-I 127.0.0.1. The first method is used !! But I don't know what it means.
Method 2: $ sudo dpkg-reconfigure portmap, shocould portmap be bound to the loopback address? Select N.
(2) Configure/etc/hosts. deny
Disable NFS connections between any host and your NFS server:
### NFS DAEMONS
Portmap: ALL
Lockd: ALL
Mountd: ALL
Rquotad: ALL
Statd: ALL
(3) Configure/etc/hosts. allow
Allow hosts you want to establish connections with your NFS server. The following steps allow any host whose IP address starts with 192.168.2 (connected to the NFS server), or specify
For specific IP addresses, add:
### NFS DAEMONS
Portmap: 192.168.1.
Lockd: 192.168.1.
Rquotad: 192.168.1.
Mountd: 192.168.1.
Statd: 192.168.1.
/Etc/hosts. deny and/etc/hosts. allow sets the access to portmap. using these two configuration files is a bit similar to "mask. now/etc/hosts. deny prohibits all users from accessing portmap. then in/etc/hosts. some users are allowed to access portmap in allow.
Sudo/etc/init. d/portmap restart
Restart portmap daemon.
(4) Configure/etc/exports
The NFS mount directory and permissions are defined by the/etc/exports file.
For example, if you want to share your/opt/FriendlyARM/mini2440/root_nfs directory with your IP address, add the following statement at the end of the file:
/Opt/FriendlyARM/mini2440/root_nfs * (rw, sync, no_root_squash)
The NFS client can share the content in the/opt/FriendlyARM/QQ2440/root_nfs directory of the NFS server. It has the read and write permissions and the user can access
Root ID after/opt/FriendlyARM/mini2440/root_nfs directory
It is best to add sync. Otherwise, a warning will be given when $ sudo exportfs-r is used. sync is the default option of NFS.
Showmount-e view the NFS server's export list.
If/etc/exports is changed, run sudo exportfs-r update.
Run/etc/init. d/nfs-kernel-server restart to restart the nfs service.
(5) test NFS
Try mounting a local disk.
As I mentioned earlier, my host IP address is 192.168.1.101.
Now I try to mount the/opt/FriendlyARM/mini2440/root_nfs directory to the/mnt directory.
Mount-t nfs 192.168.1.101:/opt/FriendlyARM/mini2440/root_nfs/mnt: the space between 101 and: I spent 1 hour
You will see the content in the root_nfs folder under the/mnt directory if the mounting is successful.
The Development Board Section will be presented in a few days
Although most of them are online materials, I still feel that I have gained a lot today. I have to continue to work hard !! Buy a transfer interface now!