Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: m-labs/scripts
base: cff9c93
...
head fork: m-labs/scripts
compare: 230ac6c
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 38 additions and 5 deletions.
  1. +13 −5 build
  2. +25 −0 format-memcard.sh
View
18 build
@@ -35,6 +35,7 @@ get-feeds-revision ${MILKYMIST_GIT_DIR}/mtk.git
get-feeds-revision ${MILKYMIST_GIT_DIR}/liboscparse.git
get-feeds-revision ${MILKYMIST_GIT_DIR}/rtems-yaffs2.git
get-feeds-revision ${MILKYMIST_GIT_DIR}/flickernoise.git
+get-feeds-revision ${MILKYMIST_GIT_DIR}/autotest-m1.git
get-feeds-revision .
@@ -49,6 +50,7 @@ make -C ${MILKYMIST_GIT_DIR}/milkymist.git/tools
export PATH=${MILKYMIST_GIT_DIR}/milkymist.git/tools:$PATH
make -C compile-flickernoise clean
make -C compile-flickernoise flickernoise.fbi
+make -C compile-flickernoise autotest-m1-boot.bin
echo "copy images to bin/ ..."
@@ -61,12 +63,12 @@ cp ${MILKYMIST_GIT_DIR}/milkymist.git/boards/milkymist-one/flash/soc-rescue.fpg
cp ${MILKYMIST_GIT_DIR}/milkymist.git/boards/milkymist-one/flash/bios-rescue.bin ${IMAGES_DIR}
cp ${MILKYMIST_GIT_DIR}/milkymist.git/boards/milkymist-one/flash/splash-rescue.raw ${IMAGES_DIR}
-cp compile-flickernoise/flickernoise.fbi ${IMAGES_DIR}
+cp ${MILKYMIST_GIT_DIR}/flickernoise.git/src/bin/* ${IMAGES_DIR}/
+cp ${MILKYMIST_GIT_DIR}/autotest-m1.git/src/boot.bin ${IMAGES_DIR}/
echo "build data patitions ..."
-mkdir -p data.flash5
-mkdir -p data.flash5/patches
-find ${MILKYMIST_GIT_DIR}/flickernoise.git/patches -name "*.fnp" -exec cp {} ./data.flash5/patches \;
+mkdir -p data.flash5/patchpool
+find ${MILKYMIST_GIT_DIR}/flickernoise.git/patches -name "*.fnp" -exec cp {} ./data.flash5/patchpool \;
make -C ${MILKYMIST_GIT_DIR}/rtems-yaffs2.git/utils mm-mkyaffs2image
${MILKYMIST_GIT_DIR}/rtems-yaffs2.git/utils/mm-mkyaffs2image data.flash5 ${IMAGES_DIR}/data.flash5.bin convert
@@ -81,4 +83,10 @@ cp reflash_m1.sh ${IMAGES_DIR}
echo "build documents ..."
mkdir -p ${IMAGES_DIR}/doc
make -C ${MILKYMIST_GIT_DIR}/flickernoise.git/doc/
-cp -f ${MILKYMIST_GIT_DIR}/flickernoise.git/doc/*.pdf ${IMAGES_DIR}/doc
+cp -f ${MILKYMIST_GIT_DIR}/flickernoise.git/doc/*.pdf ${IMAGES_DIR}/doc
+make -C ${MILKYMIST_GIT_DIR}/autotest-m1.git/doc/
+cp -f ${MILKYMIST_GIT_DIR}/autotest-m1.git/doc/*.pdf ${IMAGES_DIR}/doc
+
+
+cd /opt/ && tar cjvf Flickernoise-lm32-rtems-4.11-SDK-for-Linux-x86_64.tar.bz2 rtems-4.11/
+cp Flickernoise-lm32-rtems-4.11-SDK-for-Linux-x86_64.tar.bz2 ${IMAGES_DIR}/
View
25 format-memcard.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+DEV=sdb
+
+umount /dev/${DEV}*
+
+tr '\0' '\377' < /dev/zero | dd of=/dev/${DEV} bs=1024 count=1024
+
+FDISK_CMD_FILE=`mktemp`
+cat > ${FDISK_CMD_FILE}<<EOF
+o
+n
+p
+1
+1
+
+t
+6
+w
+EOF
+fdisk -b 512 /dev/${DEV} < ${FDISK_CMD_FILE}
+
+mkdosfs -F 16 /dev/${DEV}1
+
+fdisk -l /dev/${DEV}

No commit comments for this range

Something went wrong with that request. Please try again.