主题 : 請問在 Android 中 root fs ,可以使用 NFS 的方式嗎? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 37502
精华: 0
发帖: 48
金钱: 240 两
威望: 48 点
贡献值: 0 点
综合积分: 96 分
注册时间: 2011-02-11
最后登录: 2011-09-06
楼主  发表于: 2011-03-08 18:07

 請問在 Android 中 root fs ,可以使用 NFS 的方式嗎?

請問在 Android 中 root fs ,可以使用 NFS 的方式嗎?在 Linux 中是沒有問題,但是 Android 中,在 mount NFS 之後,一直重開機。

我在 /etc/exports 中設定:

/rootfs_qtopia_qt4    *(rw,sync,no_root_squash)
/rootfs_dir        *(rw,sync,no_root_squash)

在 u boot 中設定:

console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.125:/rootfs_dir ip=192.168.1.230:192.168.1.125:192.168.1.1:255.255.255.0:linux.arm9.net:eth0:off"

開機訊息:

one_wire_status: 2
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
one_wire_status: 4
s3c-rtc s3c64xx-rtc: setting system clock to 2011-01-28 09:33:58 UTC (1296207238)
eth0: link down
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
IP-Config: Complete:
     device=eth0, addr=192.168.1.230, mask=255.255.255.0, gw=192.168.1.1,
     host=linux, domain=, nis-domain=arm9.net,
     bootserver=192.168.1.125, rootserver=192.168.1.125, rootpath=
Freeing init memory: 1396K
1Wire touchscreen OK
switch_root: bad init /sbin/init: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
[<c016a9a4>] (unwind_backtrace+0x0/0xe4) from [<c04bfba4>] (panic+0x68/0x194)
[<c04bfba4>] (panic+0x68/0x194) from [<c01827e4>] (do_exit+0x68/0x664)
[<c01827e4>] (do_exit+0x68/0x664) from [<c018310c>] (do_group_exit+0xb0/0xe4)
[<c018310c>] (do_group_exit+0xb0/0xe4) from [<c0183150>] (sys_exit_group+0x10/0x18)
[<c0183150>] (sys_exit_group+0x10/0x18) from [<c0165e60>] (ret_fast_syscall+0x0/0x30)
one_wire_status: 2
Rebooting in 5 seconds..arch_reset: at舋


U-Boot 1.1.6 (Dec 31 2010 - 14:36:43) for FriendlyARM MINI6410
mount 之後,就出現錯誤,請問是不是我什麼地方做不對?還是有遺漏的地方呢?
级别: 圣骑士
UID: 9690
精华: 0
发帖: 369
金钱: 1955 两
威望: 415 点
贡献值: 0 点
综合积分: 738 分
注册时间: 2009-10-10
最后登录: 2017-11-21
1楼  发表于: 2011-03-09 11:05
对,这个版本的rootfs的nfs启动没有画面