Mount Netbook rootfs in sysroot

Owners: Haitao Feng, Kevin Wang

mount the root file system Moblin netbook image to sys-root, so that developers could develop and debug with netbook easily.

Prepare Moblin development image

Install development image on netbook

  • burn the image to the USB disk, assuming the USB stick is /dev/sdb in your system:
  • $ sudo dd if=moblin-2.1-developer-XXXXXXXX.iso of=/dev/sdb

  • install to the netbook by using USB disk

Install "openssh-server" on the netbook

$ sudo yum install openssh-server

Install "sshfs" on the host development machine

$ sudo apt-get install sshfs
or
$ sudo yum install fuse-sshfs

Mount rootfs of the netbook to sys-root by using "sshfs"

$ sshfs root@<ip address of netbook>:/ ~/moblin-sdk-${version}/moblin-cross-toolchain/i586-moblin-linux/sys-root/ -o nonempty

Umount sys-root

$ sudo umount ~/moblin-sdk-${version}/moblin-cross-toolchain/i586-moblin-linux/sys-root/