build_mac
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
build_mac [2011/08/05 07:42] – How to initialize the r0ket. mh | build_mac [2012/01/03 03:29] (current) – Added info box for macports darthrake | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <note important> | ||
+ | ...otherwise Mac OS will break your r0ket file system. | ||
+ | **NEVER EVER access the r0ket with the finder.** | ||
+ | Always use only the terminal. | ||
+ | </ | ||
+ | |||
====== Build environment on Mac OS X ====== | ====== Build environment on Mac OS X ====== | ||
Line 6: | Line 12: | ||
<note tip> | <note tip> | ||
- | The CodeSourcery G++ package provides a GNU cross-compiler toolchain for ARM. The Mac OS X version is not distributed by CodeSourcery in binary form, but can be built from source code, or installed via MacPorts. | + | The CodeSourcery G++ package provides a GNU cross-compiler toolchain for ARM. The Mac OS X version is not distributed by CodeSourcery in binary form, but can be built from source code, or mainline gcc for arm-none-eabi can be installed via MacPorts. |
</ | </ | ||
Line 15: | Line 21: | ||
=== Solution 2 === | === Solution 2 === | ||
+ | |||
+ | <note tip> | ||
+ | This " | ||
+ | < | ||
+ | arm-none-eabi-ld: | ||
+ | arm-none-eabi-ld: | ||
+ | </ | ||
* Install [[http:// | * Install [[http:// | ||
+ | * Don't forget < | ||
* Install the port '' | * Install the port '' | ||
+ | |||
+ | === Solution 3 === | ||
+ | * Currently not working (at least on Lion). Less pain: MacPorts | ||
+ | * Install [[http:// | ||
+ | * Import (as in copy to / | ||
+ | * Install the formula '' | ||
+ | |||
== Another option: Installing Ubuntu Linux in a VirtualBox: == | == Another option: Installing Ubuntu Linux in a VirtualBox: == | ||
Line 52: | Line 73: | ||
- | ===== 9. Prepare a brand new r0ket / Restore to initial distribution condition | + | ===== 9. Prepare a brand new r0ket ===== |
+ | See [[build|main Build article (scoll to the bottom)]], | ||
+ | or: | ||
Bring the r0ket into ISP-Mode: | Bring the r0ket into ISP-Mode: | ||
e.g. by using Method 1 (up to 30 seconds, but works always) | e.g. by using Method 1 (up to 30 seconds, but works always) | ||
Line 58: | Line 82: | ||
* Press and hold button “Left”, power r0ket on | * Press and hold button “Left”, power r0ket on | ||
* Connect r0ket via USB | * Connect r0ket via USB | ||
+ | |||
+ | If you want to start from scratch: | ||
+ | < | ||
+ | rm / | ||
+ | </ | ||
Install the " | Install the " | ||
Line 63: | Line 92: | ||
cd firmware | cd firmware | ||
make APP=initial | make APP=initial | ||
- | cp firmware.bin / | + | cp firmware.bin / |
</ | </ | ||
The Data Flash will be formatted. | The Data Flash will be formatted. | ||
Line 72: | Line 101: | ||
make | make | ||
cp *.c0d / | cp *.c0d / | ||
+ | cp *.int / | ||
cp *.nik / | cp *.nik / | ||
cd .. | cd .. | ||
Line 78: | Line 108: | ||
< | < | ||
make APP=final | make APP=final | ||
- | cp firmware.bin / | + | cp firmware.bin / |
+ | </ | ||
+ | |||
+ | === Example commands that worked for me === | ||
+ | MacOSX, Lion, Up-to-date MacPorts - DanBUK | ||
+ | < | ||
+ | sudo port sync | ||
+ | sudo port install arm-none-eabi-gcc | ||
+ | git clone git:// | ||
+ | cd r0ket | ||
+ | git checkout c583ddc7e3b6ecc2cdb94fe0a0474d52bcbb220b | ||
+ | cd firmware | ||
+ | cp SECRETS SECRETS.release | ||
+ | # Edit SECRETS.release | ||
+ | ./ | ||
+ | make APP=initial | ||
+ | cp firmware.bin ../ | ||
+ | cd ../ | ||
+ | # ISP Mode - Power on whilst holding left on Joypad | ||
+ | # NB. This isn't always CRP DISABLED, could be CRP2 ENABLED | ||
+ | mount | grep "CRP DISABLD" | ||
+ | # / | ||
+ | cp initial.bin / | ||
+ | diskutil unmount "CRP DISABLD" | ||
+ | # power off | ||
+ | # power on | ||
+ | mount | grep "NO NAME" | ||
+ | # /dev/disk3 on /Volumes/NO NAME (msdos, local, nodev, nosuid, noowners) | ||
+ | # If you want to start completely empty: | ||
+ | # rm -Rf / | ||
+ | cp files/* / | ||
+ | diskutil unmount "NO NAME" | ||
+ | # press button (joypad middle) | ||
+ | mount | grep "CRP2 ENABLD" | ||
+ | # /dev/disk3 on / | ||
+ | cp final.bin / | ||
+ | diskutil eject "CRP2 ENABLD" | ||
+ | # power off | ||
+ | # power on | ||
+ | # Enjoy! | ||
</ | </ |
build_mac.1312522965.txt.gz · Last modified: 2011/08/05 07:42 by mh