Host-based development with Xoo and Xephyr

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Getting rootfs: Forgot the in-place option for the sed call)
m (Install Xoo on your host: fixed spelling mistake ububuntu)
Line 10: Line 10:
 
For gentoo users run just
 
For gentoo users run just
 
  # emerge xoo
 
  # emerge xoo
Debian/Ububuntu
+
Debian/Ubuntu
 
  # apt-get install xoo xnest
 
  # apt-get install xoo xnest
 
for any other find a way how to do it in your distro.
 
for any other find a way how to do it in your distro.

Revision as of 04:53, 17 March 2007

One of good ways to get started developing is getting rootfs working on host machine, since most of us doesn't have real hardware.


Contents

Getting rootfs

Use the Building OpenMoko using the MokoMakefile to get rootfs, just before make openmoko-devel-image run

# sed -i 's/fic-gta01/x86/' build/conf/local.conf

than just run make openmoko-devel-image. After a while(half of day) you should have in build/tmp/image/ file openmoko-devel-image-x86-$(DATE).rootfs.tar.gz mine is here [1].

Install Xoo on your host

For gentoo users run just

# emerge xoo

Debian/Ubuntu

# apt-get install xoo xnest

for any other find a way how to do it in your distro.

Making X cooperate

  • Make sure your iptables do not prevent you from connecting to port 6000(x11) on localhost
  • Make sure your X is listening on port 6000(X11) on localhost (netstat is friend)
  • Enable conection from localhost
# xhost localhost

Preparing rootfs

  • Unpack rootfs file in any directory and cd to that dir.
  • Get dev files in rootfs
# sudo mount --bind /dev/ rootfs/dev/
  • Chroot to rootfs
# sudo chroot rootfs /bin/sh

Getting it up

In another term start xoo, good idea is to download [2] and run

# xoo --device neo1973.xml

In chrooted enviroment export display to connect to started xoo

# export DISPLAY=localhost:1.0

and start window manager.

# x-window-manager

By this time you should have matchbox running in Xoo window.

Personal tools

One of good ways to get started developing is getting rootfs working on host machine, since most of us doesn't have real hardware.


Getting rootfs

Use the Building OpenMoko using the MokoMakefile to get rootfs, just before make openmoko-devel-image run

# sed -i 's/fic-gta01/x86/' build/conf/local.conf

than just run make openmoko-devel-image. After a while(half of day) you should have in build/tmp/image/ file openmoko-devel-image-x86-$(DATE).rootfs.tar.gz mine is here [1].

Install Xoo on your host

For gentoo users run just

# emerge xoo

Debian/Ubuntu

# apt-get install xoo xnest

for any other find a way how to do it in your distro.

Making X cooperate

  • Make sure your iptables do not prevent you from connecting to port 6000(x11) on localhost
  • Make sure your X is listening on port 6000(X11) on localhost (netstat is friend)
  • Enable conection from localhost
# xhost localhost

Preparing rootfs

  • Unpack rootfs file in any directory and cd to that dir.
  • Get dev files in rootfs
# sudo mount --bind /dev/ rootfs/dev/
  • Chroot to rootfs
# sudo chroot rootfs /bin/sh

Getting it up

In another term start xoo, good idea is to download [2] and run

# xoo --device neo1973.xml

In chrooted enviroment export display to connect to started xoo

# export DISPLAY=localhost:1.0

and start window manager.

# x-window-manager

By this time you should have matchbox running in Xoo window.