2011-11-26 12:42:19 +02:00
|
|
|
(This is my cheat sheet. It works for me but yet may stil be incomplete
|
|
|
|
and redundant at the same time.)
|
|
|
|
|
2012-04-19 02:11:47 +03:00
|
|
|
These instructions should be valid for the following versions:
|
|
|
|
rtems 5c51ba1333d96e2ada2c374ba22b551d179e6685
|
|
|
|
rtems-yaffs cbe7492ee0e5a9bced8267d9c7ab2fd997299fda
|
|
|
|
milkymist de65a675a8425b6f11361fdcaa3a9f5580ef49ab
|
|
|
|
flickernoise c1a99feeed387466cbb1cd5c9f734763d25aa450
|
2012-04-15 23:27:57 +03:00
|
|
|
|
2011-11-26 20:20:16 +02:00
|
|
|
Instructions:
|
|
|
|
|
|
|
|
http://milkymist.org/wiki/index.php?title=RTEMS_build_instructions
|
|
|
|
|
|
|
|
Getting rtems:
|
|
|
|
|
2012-02-26 17:42:35 +02:00
|
|
|
git clone git://git.rtems.org/rtems.git
|
2011-12-01 01:09:33 +02:00
|
|
|
cd rtems
|
|
|
|
ln -s /home/qi/wernermisc/m1/patches/rtems/ patches
|
|
|
|
quilt push -a
|
2011-11-26 20:20:16 +02:00
|
|
|
|
2012-04-15 23:27:57 +03:00
|
|
|
Getting rtems-yaffs:
|
|
|
|
|
|
|
|
git clone git://github.com/milkymist/rtems-yaffs2.git
|
|
|
|
cd rtems-yaffs2
|
|
|
|
|
2011-11-26 12:42:19 +02:00
|
|
|
Compiling rtems:
|
|
|
|
|
|
|
|
cd rtems
|
2011-11-26 20:20:16 +02:00
|
|
|
./bootstrap -c && ./bootstrap -p && ./bootstrap # 08:37
|
2011-11-26 12:42:19 +02:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
../configure --target=lm32-rtems4.11 --enable-rtemsbsp=milkymist \
|
|
|
|
--enable-posix --disable-itron --enable-networking \
|
2012-02-26 17:42:35 +02:00
|
|
|
--disable-multiprocessing --disable-tests --prefix=/opt/rtems-4.11 # 00:14
|
|
|
|
make # -j5 # 01:21
|
|
|
|
make install # 00:06
|
2011-11-26 12:42:19 +02:00
|
|
|
|
|
|
|
Compiling rtems-yaffs:
|
|
|
|
|
|
|
|
cd rtems-yaffs2
|
|
|
|
make -f Makefile.rtems
|
|
|
|
make -f Makefile.rtems install
|
|
|
|
|
|
|
|
Compiling milkymist.git, libfpvm:
|
|
|
|
|
|
|
|
cd software/libfpvm
|
2011-12-16 10:10:47 +02:00
|
|
|
make install
|
2011-11-26 12:42:19 +02:00
|
|
|
|
|
|
|
Compiling milkymist.git, softusb-input:
|
|
|
|
|
|
|
|
prerequisites:
|
|
|
|
|
|
|
|
make -C software/libhpdmc
|
|
|
|
make -C software/libnet
|
|
|
|
make -C software/libbase
|
|
|
|
|
2011-12-16 10:10:47 +02:00
|
|
|
make -C softusb-input
|
2011-11-26 12:42:19 +02:00
|
|
|
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:
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2012-02-26 17:42:35 +02:00
|
|
|
Rebuild Flickernoise after updating the Navre firmware:
|
|
|
|
|
|
|
|
milkymist.git:
|
|
|
|
|
|
|
|
make -C softusb-input
|
|
|
|
make -C softusb-input install
|
|
|
|
|
|
|
|
flickernoise.git:
|
2011-11-26 12:42:19 +02:00
|
|
|
|
2012-02-26 17:42:35 +02:00
|
|
|
cd src
|
|
|
|
make clean && make -j 5 bin/flickernoise.fbi && m1nor bin/flickernoise.fbi
|
2011-11-26 12:42:19 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
Synthesize the SoC:
|
|
|
|
|
|
|
|
cd boards/milkymist-one/flash
|
|
|
|
make -C ../synthesis -f Makefile.xst clean && make clean && time make soc.fpg
|
|
|
|
m1nor soc.fpg
|
2012-03-03 02:00:21 +02:00
|
|
|
# synthesis: boards/milkymist-one/synthesis/build/system.srp
|
|
|
|
# timing: boards/milkymist-one/synthesis/build/system-routed.par
|
2011-12-16 10:10:47 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
debug:
|
|
|
|
|
|
|
|
flterm --gdb-passthrough --port /dev/ttyUSB0 --kernel /dev/null
|
|
|
|
/home/qi/m1/gdb-7.3.1/gdb/gdb /home/qi/m1/flickernoise/src/bin/flickernoise
|
|
|
|
set remote interrupt-on-connect on
|
|
|
|
target remote /dev/pts/155
|