0%

Linux & Android study(2):Uboot和Linux内核编译

[TOC]

前言

熟悉完了Linux的基本操作后,接下来就是配置编译器,编译uboot和Linux内核,编译linux驱动程式

配置NFS

  • 安装NFS服务期
1
2
3
4
sudo apt-get install nfs-kernel-server
sudo apt-get install nfs-common
sudo apt-get install rpcbind
sudo vim /etc/exports

/etc/exports中增加以下行

1
/home/harry/work/nfs_root *(rw,sync,no_root_squash)

保存退出后,执行:

1
2
3
4
sudo exportfs -r
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/home/harry/work/nfs_root".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

重新启动nfs

1
nfs-kernel-server restart

测试NFS :

1
2
sudo mount -t nfs local_ip:/home/harry/work/nfs_root /mnt
ls /mnt/

/mnt下有共享文件/home/harry/work/nfs_root的文件内容,则挂载成功

卸载

1
sudo umount -t nfs local_ip:/home/harry/work/nfs_root /mnt