diff --git a/m1/BUILD-CHEAT-SHEET b/m1/BUILD-CHEAT-SHEET new file mode 100644 index 0000000..f98ede5 --- /dev/null +++ b/m1/BUILD-CHEAT-SHEET @@ -0,0 +1,75 @@ +(This is my cheat sheet. It works for me but yet may stil be incomplete +and redundant at the same time.) + +Compiling rtems: + + cd rtems + ./bootstrap -c && ./bootstrap -p && ./bootstrap + mkdir -p build + cd build + ../configure --target=lm32-rtems4.11 --enable-rtemsbsp=milkymist \ + --enable-posix --disable-itron --enable-networking \ + --disable-multiprocessing --disable-tests --prefix=/opt/rtems-4.11 + make + make install + +Compiling rtems-yaffs: + + cd rtems-yaffs2 + make -f Makefile.rtems + make -f Makefile.rtems install + +Compiling milkymist.git, libfpvm: + + cd software/libfpvm + make -C lm32-rtems install + + (verify) + +Compiling milkymist.git, softusb-input: + + prerequisites: + + make -C software/libhpdmc + make -C software/libnet + make -C software/libbase + + make -C software/softusb-input + make -C software/libhal + make -C software/bios + + ./build_bios.sh + +Compiling flickernoise.git: + + cd flickernoise/src + make bin/flickernoise.fbi && m1nor bin/flickernoise.fbi + + (m1nor from wernermisc/m1/tools/) + +Rebooting the M1: + + cd wernermisc/m1/jtag-boot + make boot + +Send patches: + + git send-email --cover-letter --thread --annotate f6c7474ae3b181157d8950e25c4705d53d9ae9c1 + +------------------------------ + +Draft items below: + +--- + +Rebuild RTEMS after updating the Navre firmware: + +cp ../../../milkymist/software/libhal/softusb-input.h ../c/src/lib/libbsp/lm32/shared/milkymist_usbinput/softusb-input.h && make -j 5 && make install + +--- + +Synthesize the SoC: + +cd boards/milkymist-one/flash +make -C ../synthesis -f Makefile.xst clean && make clean && time make soc.fpg +m1nor soc.fpg