m6.0.1_2.1.0-ga NFS debug

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

m6.0.1_2.1.0-ga NFS debug

690 Views
liu_jialu
Contributor III

is there a m6.0.1_2.1.0-ga NFS debug doc? thanks.

i found android_user_manual about kk4.4.3, according to that doc, i can't startup NFS. so please give a hand, thanks.

Labels (2)
4 Replies

544 Views
liu_jialu
Contributor III

NFS wroks now.

but when i modified the init.rc, like below, it stuck at android logo, and in shell i input any commond, even 'ls', it's getting freezed, Ctrl+C no response too, what should i check then, thanks.

on boot

    .....

    ...

    # Mount NFS
    setprop ro.nfs.mode yes
    
    class_start core

    class_start main
    class_start late_start

#on nonencrypted
#     class_start main
 #    class_start late_start

0 Kudos

544 Views
liu_jialu
Contributor III

i enabled mount_all in init.rc again, and comment the fstab.freescale about mmc mount lines. still stuck at android logo, but class main and late_start  works.

attached files is my bootinfo and init.rc, please help to check, thanks.

bootinfo with detailed debug info.

0 Kudos

544 Views
liu_jialu
Contributor III

modified like this, it works:

diff --git a/server/RouteController.cpp b/server/RouteController.cpp
index 8873bb1..cccb799 100644
--- a/server/RouteController.cpp
+++ b/server/RouteController.cpp
@@ -27,6 +27,8 @@

 #include <map>

+#include <cutils/properties.h>
+
 #include "Fwmark.h"
 #include "UidRanges.h"
 #include "DummyNetwork.h"
@@ -944,8 +946,12 @@ WARN_UNUSED_RESULT int clearTetheringRules(const char* inputInterface) {
 }  // namespace

 int RouteController::Init(unsigned localNetId) {
-    if (int ret = flushRules()) {
-        return ret;
+    char nfsmode[PROPERTY_VALUE_MAX] = {'\0'};
+    if ( property_get("ro.nfs.mode", nfsmode, "no")
+                    && (strcmp(nfsmode, "no") == 0)) {
+        if (int ret = flushRules()) {
+            return ret;
+        }
     }
     if (int ret = addLegacyRouteRules()) {
         return ret;

544 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Good job, It also works for me! :smileyhappy:

thanks

0 Kudos