From: Joshua S. <jo...@ra...> - 2007-12-10 17:18:12
|
Oliver- These are the steps that we used to build a file image for the Gumstix (netstix 400xm-cf) that supports Java. We also removed some wireless and bluetooth packages that we're not using to save space. The resulting image contains JamVM 1.4.2 and Classpath .90. That combination supports, some, but not all Java 5 features. Enums and the concurrency packages are not supported. Type-safe collections, basic generics, the enhanced for loop, static imports, StringBuilder, autoboxing and unboxing, var args and annotations are supported. The steps below were used on a Red Hat AS 4 host with Jikes 1.22. The following packages were installed to support Jikes: compat-libstdc++- 296-2.96-132.7.2.i386.rpm and jikes-1.22-1.i586.rpm 1. Create a directory to work in (e.g. tempBuildRoot) mkdir tempBuildRoot 2. Change into that directory cd tempBuildRoot 3. Check out BuildRoot from Subversion svn co -r1089 http://svn.gumstix.com/gumstix-buildroot/trunkgumstix-buildroot 4. Launch the configuration tool. Use the arrow keys for selection, the space bar for toggle and the Enter key for input when using the configuration tool. make menuconfig 5. Select "Package Selection for the target" using the arrow keys and hit Enter. 6. Deselect the following packages: bluez wifistix wirelesstools 7. Select the following packages: classpath jamvm zlib headers in target 8. Select Exit. 9. Select Exit again. 10. Select Yes when prompted about saving your new Buildroot configuration. 11. Fix classpath so that it will build with Jikes. Otherwise there will be a segmentation fault. Do this by editting package/classpath/classpath.mk using vi (or your favorite editor) and modifying it so that it will build with Jikes. If you skip this step there will be a segmentation fault during the build process. Find the section with all the configuration options (specifically the line that looks like this): --disable-gtk-peer \ And add a line that follows it that looks like this --with-jikes \ 12. Save the file and exit your editor. 13. Build the file system image. make 14. This results in a rootfs.arm_nofpu.jffs2 file being created. This is suitable for flashing to the Gumstix. Hope that helps, Joshua Smith |