Random header image... Refresh for more!
Visitors

free invisible counter
Partner sites
http://consigliere.sk
--------------------------- led-svetla.sk
---------------------------
multi.xeres.cz

After 4 hours of collaboration and testing I would like to share how to setup nfs rootfs for speeding up HTC (or whatever) development.I assume you have nfs server installed and running ;) . In below example will be server ip:192.168.2.16 and target ip:192.168.2.15.

1. copy rootfs somewhere to filesystem e.g. /home/user/rootfs

2. export directory in /etc/exports
should look like:
/home/user/rootfs   192.168.2.0/3(rw,sync,no_root_squash,no_subtree_check)

3. restart nfs-server: /etc/init.t/nfsserver restart

4. Server will be connected to target via cdc-ether interface. To avoid problems we need to add
static ip configuration for usb0 interface. I’m running on opensuse for different distros check
manual.
Create new file in : /etc/sysconfig/network/ifcfg-usb0
# USB configuration for HTC phones
BOOTPROTO=’static’
IPADDR=’192.168.2.16′
NETMASK=’255.255.255.0′
NAME=’usb0′
STARTMODE=’hotplug’
USERCONTROL=’no’
BROADCAST=”
ETHTOOL_OPTIONS=”
MTU=”
NETWORK=”
REMOTE_IPADDR=”

5. Add correct kernel command parameters.
set CMDLINE “root=/dev/nfs ip=192.168.2.15 nfsroot=192.168.2.16:/home/user/rootfs ,nfsvers=3″

5. Run Haret and enjoy. That’s all ;)

Note:

I face that problems with Kernel panic – attemp to kill init was caused by non existing /dev/console node. To create new one run sudo mknod <path to rootfs dev>/console c 5 1

Marek

Leave a Reply