# Build the container tool git clone https://github.com/darwin-on-arm/image3maker.git cd image3maker/; make; make install cd .. # Build the developer tools git clone https://github.com/darwin-on-arm/xnu-deps-linux.git cd xnu-deps-linux/; make; make install cd .. # Build the kernel git clone https://github.com/darwin-on-arm/xnu.git cd xnu/ make TARGET_CONFIGS="debug arm omap3430_rx51" MAKEJOBS= SDKVERSION=10.7 HOST_CC=clang HOST_YACC=yacc \ HOST_BISON=bison HOST_FLEX=flex HOST_CODESIGN=/bin/true BUILD_NO_DEBUG=1 DEPLOYMENT_TARGET_FLAGS= \ RC_CFLAGS="-D__arm__ -DARM" MIG=/usr/bin/mig CC=clang CXX=clang++ RC_CFLAGS="-target arm-apple-darwin11" \ VERBOSE=YES RC_LDFLAGS="-target arm-apple-darwin11 /usr/lib/libclang_rt.cc_kext.a" \ STRIP="arm-apple-darwin11-strip" NM="arm-apple-darwin11-nm" cd ../ # Put the kernel into an img3 container image3maker -t krnl -f xnu/BUILD/obj*/*/mach_kernel -o mach.img3 # Build the fused kernel+bootloader git clone https://github.com/darwin-on-arm/GenericBooter.git mv mach.img3 GenericBooter/ cd GenericBooter # open main.c with a text editor and scroll down to corestart_main # you need to comment out lines 114-123 to disable realview board check # you may also want to comment out the contents of uart_putc in debuc.c as this assumes a PL011 uart make # You should now have a SampleBooter.elf.uImage file which you can boot via u-boot, enjoy!