cd /tmp # Get the needed material: Example code ... wget retis.santannapisa.it/~luca/AdvancedOS/Old-19/XenoTest/xenotest.tgz # ... Scripts to build initramfs ... wget retis.santannapisa.it/~luca/AdvancedOS/Old-19/XenoTest/mkfs-4.tgz # ... cross-compiler ... wget retis.santannapisa.it/~luca/AdvancedOS/Old-19/XenoTest/cross-arm.tgz # ... Compiled Xenomai modules ... wget retis.santannapisa.it/~luca/AdvancedOS/Old-19/XenoTest/binaries-xeno.tar.bz2 # ... Compiled Xenomai kernel and headers / kbuild ... wget retis.santannapisa.it/~luca/AdvancedOS/Old-19/XenoTest/kern-headers-xeno.tar.bz2 # Uncompress the example tar xvzf xenotest.tgz # Prepare some stuff... tar xvzf mkfs-4.tgz tar xvjf binaries-xeno.tar.bz2 tar xvjf kern-headers-xeno.tar.bz2 # Now, uncompress the cross-compiler and properly set your PATH! tar xvzf cross-arm.tgz export PATH=$PATH:/tmp/cross-arm/tools/bin export LD_LIBRARY_PATH=/tmp/cross-arm/tools/lib #NOTE: If you uncompressed it somewhere else than in /tmp, change the trailing "/tmp" in the "export ..." stuff # Build the initramfs cd initramfs-scripts ./mkfs.sh cd .. # Copy xenomai modules in rootfs cp -r Xeno/lib/modules rootfs/lib # To compile Kernel Space: cd RTTest make -C /tmp/l-head M=/tmp/RTTest ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabi- cp posix-test.ko /tmp/rootfs cd .. # Rebuild the initramfs image cd /tmp/rootfs find . | cpio -o -H newc | gzip > ../newfs.img cd .. # Test with Qemu qemu-system-arm -machine integratorcp -kernel /tmp/Xeno/zImage -initrd /tmp/newfs.img