[置顶] android210支持nfs挂载android4.0

1】在PC上安装nfs服务

sudoapt-get install nfs-kernel-server

配置nfs服务器,把挂在目录设置在/nfs/rootfs

sudovi /etc/exports

在exports文件最后添加一行:

/xiao/nfs *(rw,sync,no_root_squash)

 启动nfs服务
$sudo /etc/init.d/portmap restart
$sudo /etc/init.d/nfs-kernel-server restart

将android210.tgz文件系统解压到、xiao/nfs目录下!

android210.tgz制作脚本:

#!/bin/sh


rm ./smdkv210_root -rf
mkdir smdkv210_root




#mv ./out/target/product/smdkv210/system/app/TelephonyProvider.apk       ./vendor/urbetter/app_android/
#mv ./out/target/product/smdkv210/system/app/Phone.apk                   ./vendor/urbetter/app_android/
#mv ./out/target/product/smdkv210/system/app/Protips.apk                 ./vendor/urbetter/app_android/
#mv ./out/target/product/smdkv210/system/app/PicoTts.apk                 ./vendor/urbetter/app_android/
#mv ./out/target/product/smdkv210/system/app/TtsService.apk              ./vendor/urbetter/app_android/
#mv ./out/target/product/smdkv210/system/app/SoundRecorder.apk           ./vendor/urbetter/app_android/  
#mv ./out/target/product/smdkv210/system/app/Bluetooth.apk               ./vendor/urbetter/app_android/  
#mv ./out/target/product/smdkv210/system/app/Mms.apk                     ./vendor/urbetter/app_android/
#mv ./out/target/product/smdkv210/system/app/VoiceDialer.apk             ./vendor/urbetter/app_android/
#mv ./out/target/product/smdkv210/system/app/Network3gMonitor.apk        ./vendor/urbetter/utapps/


#mv ./out/target/product/smdkv210/system/app/CalendarProvider.apk         ./vendor/urbetter/app_android/
#mv ./out/target/product/smdkv210/system/app/Calendar.apk                 ./vendor/urbetter/app_android/
#mv ./out/target/product/smdkv210/system/app/QuickSearchBox.apk           ./vendor/urbetter/app_android/


cp ./out/target/product/smdkv210/system/lib/libstagefright*             ./vendor/urbetter/lib/
cp ./out/target/product/smdkv210/system/lib/libinterfaceffmpeg.so       ./vendor/urbetter/lib/




cp ./out/target/product/smdkv210/root/* ./smdkv210_root/ -a
cp ./out/target/product/smdkv210/system ./smdkv210_root/ -a
cp ./vendor/urbetter/app/*                ./smdkv210_root/system/app/ -a
cp ./vendor/urbetter/lib/*                ./smdkv210_root/system/lib/ -a
cp ./vendor/urbetter/etc/*                ./smdkv210_root/system/etc/ -a
cp ./vendor/urbetter/bin/*                ./smdkv210_root/system/bin/ -a
cp ./vendor/urbetter/framework/*          ./smdkv210_root/system/framework/ -a
cp ./vendor/urbetter/media/*              ./smdkv210_root/system/media/ -a
cp ./vendor/urbetter/usr/*              ./smdkv210_root/system/usr/ -a
cp ./vendor/urbetter/utapps/* ./smdkv210_root/system/app/ -a


chmod 777 ./smdkv210_root/system/vendor/bin/pvrsrvinit 


#cp ./vendor/google/gapps/*               ./smdkv210_root/ -a
tar zxvf ./busybox.tgz -C ./smdkv210_root/system/


cd smdkv210_root/
tar zcvf ../android210.tgz *
cd ..
chmod a+rw android210.tgz

2】kernel上配置nfs服务

[*] Networking support  --->

Networking options  --->

 <*> Packet socket                                                                           | | 
  | |                     <*> Unix domain sockets                                                                     | | 
  | |                     <*>   UNIX: socket monitoring interface                                                     | | 
  | |                     < > Transformation user configuration interface (NEW)                                       | | 
  | |                     [ ] Transformation sub policy support (EXPERIMENTAL) (NEW)                                  | | 
  | |                     [ ] Transformation migrate database (EXPERIMENTAL) (NEW)                                    | | 
  | |                     [ ] Transformation statistics (EXPERIMENTAL) (NEW)                                          | | 
  | |                     < > PF_KEY sockets (NEW)                                                                    | | 
  | |                     [*] TCP/IP networking                                                                       | | 
  | |                     [*]   IP: multicasting                                                                      | | 
  | |                     [*]   IP: advanced router                                                                   | | 
  | |                     [*]     FIB TRIE statistics                                                                 | | 
  | |                     [*]     IP: policy routing                                                                  | | 
  | |                     [*]     IP: equal cost multipath                                                            | | 
  | |                     [*]     IP: verbose route monitoring                                                        | | 
  | |                     [*]   IP: kernel level autoconfiguration                                                                        //其他是网络必须,NFS支持这两项一定的选上!

                           [*]     IP: DHCP support      

 Device Drivers  --->

 [*] Network device support  --->

[*]   Ethernet driver support (NEW)  --->

  <*>   DM9000 support                                                                        | | 
  | |                     [ ]     Force simple NSR based PHY polling (NEW)                                            | | 
  | |                     < >   Dave ethernet support (DNET) (NEW)                

File systems  --->

  [*] Network File Systems  --->  

--- Network File Systems                                                                    | | 
  | |                     <*>   NFS client support                                                                    | | 
  | |                     <*>     NFS client support for NFS version 2 (NEW)                                          | | 
  | |                     <*>     NFS client support for NFS version 3 (NEW)                                          | | 
  | |                     [*]       NFS client support for the NFSv3 ACL protocol extension                           | | 
  | |                     <*>     NFS client support for NFS version 4                                                | | 
  | |                     [*]     Provide swap over NFS support                                                       | | 
  | |                     [*]   NFS client support for NFSv4.1 (EXPERIMENTAL)                                         | | 
  | |                     (kernel.org) NFSv4.1 Implementation ID Domain (NEW)                                         | | 
  | |                     [*]   Root file system on NFS                                                               | | 
  | |                     [*]   Use the legacy NFS DNS resolver      

3设置NFS启动 bootargs
setenv bootargs "root=/dev/nfs nfsroot=192.168.1.228:/home/xiao/nfs ip=192.168.1.128:192.168.1.228:192.168.1.1:255.255.255.0:www.urbetter.com:eth0:off
init=/init (必须添加) console=ttySAC0,115200"

你可能感兴趣的:([置顶] android210支持nfs挂载android4.0)