#################################### # Step 1 - Install the "Fink" the full world of Open Source software to Mac OSX. # # Reference website: # http://www.finkproject.org/index.php?phpLang=en # # Download Fink 0.31.0 for OSX 10.6 Snow Leopard and 10.7 Lion # http://www.finkproject.org/download/srcdist.php # # Open the "terminal window" and enter the following command: #################################### cd Desktop/mvnlab -zxvf fink-0.31.0.tar.gz cd fink-0.31.0 ./bootstrap

# Leave everything as Default # The compile time is about 15 mins # After complete the installion, run this command to setup you fink environment /sw/bin/pathsetup.sh

# reopen the window # execute selfupdate and index command fink selfupdate-rsync fink index -f

################################### # Step 2 - Install Xcode # # Reference website: # http://developer.apple.com/xcode/ # # You will be ask for register an Apple account to download and install Xcode with .dmg file. ###################################

# install Xcode with double clicks

################################### # Step 3 - Check the pre-install softwares # You will need the following pre-install softwares: # flex and bison ###################################

# Check the software is installed or not # open terminal window and using "which" to check which flex which bison

# if these softwares are not installed, run the following command to install them from fink sudo -get update sudo apt-get install flex sudo apt-get install bison

################################### # Step 4 - Install gmp and mpfr # Reference website: # http://web.me.com/chibaf/math/mp/mpfr/install.html # # gmp download # http://gmplib.org/ # # mpfr download # http://www.mpfr.org/mpfr-current/#download ###################################

# install gmp # the make procedure will take very long time, be patient. tar zxvf gmp-5.0.2.tar.gz cd gmp-5.0.2 ./configure make && make check sudo make install

# install mpfr tar zxvf mpfr-3.0.1.tar.gz cd mpfr-3.0.1 # download patchfiles # http://www.mpfr.org/mpfr-current/allpatches # save allpatches in the same directory patch -N -Z -p1 < allpatches ./configure make && make check sudo make install

################################### # Step 5 - Install wget & save Makefile ###################################

# update fink list fink list

# install wget and its dependencies softwares fink -b install wget

# save this file as Makefile # http://140.112.91.208/INSTALL/nano-rk.mac

################################### # Step 6 - Install binutils ################################### make binutils

################################### # Step 7 - Install avrgcc ################################### make avrgcc

################################### # Step 8 - Install avrlibc ################################### make avrlibc

################################### # Step 9 - Install avrdude ################################### make avrdude

################################### # Step 10 - Install FTDI USB Driver # # Download: # http://www.nanork.org/attachment/wiki/Downloads/FTDIUSBSerialDriver_10_4_10_5_10_6.mpkg.zip?format=raw ###################################

# Save on Desktop # Double clicks to install

################################### # Step 11 - Install nano-rk ################################### make nano-rk

################################### # Step 12 - Download & check Zigduino platform for nano-rk ################################### svn checkout svn://nanork.org/srv/svn/repos/nano-RK

# after checkout, you will see zigduino platform in # nano-RK/include/platform/zigsuino

################################### # Step 13 - Compile the example code # # Download: # http://140.112.91.208/fakejudgegirl/hw0_rf_tx.tar ###################################

# save hw0_rf_tx.tar in nano-rk/project/ # uncompress the tar file tar xvf hw0_rf_tx.tar

# edit main.c # replace your student id in the following code # ex. # sprintf( tx_buf, "My student id is d99922001"); # sprintf( tx_buf, "My student id is modify_here");

# compile the example make

# after compile the example, you will see these files # upload main.c main.eep main.hex main.lst main.o makefile main.d main.elf main.lss main.map main.sym nrk_cfg.h

# change filename as your student_id.hex & upload your hw0 to # http://140.112.91.208/fakejudgegirl/testup.php mv main.hex d99922001.hex