User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
build_mac [2011/08/10 17:57]
danbuk Example session that worked!
build_mac [2012/01/03 03:29] (current)
darthrake Added info box for macports
Line 1: Line 1:
 +<note important>​** You //might// want to disable .DS_Store files on (network) mounts**
 +...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 15: Line 21:
 === Solution 2 === === Solution 2 ===
 +<note tip>
 +This "​Solution"​ produces slightly bigger code (with gcc 4.6.2) compared to older gcc versions. Therefore you can not compile some l0dables. This results in errors like:
 +<​code>​arm-none-eabi-ld -nostartfiles -T loadable.ld -o mp0ng.elf mp0ng.o ​ -lc -L/​opt/​local/​arm-none-eabi/​lib/​
 +arm-none-eabi-ld:​ mp0ng.elf section `.text'​ will not fit in region `sram'
 +arm-none-eabi-ld:​ region `sram' overflowed by 148 bytes</​code>​
   * Install [[http://​|MacPorts]]   * Install [[http://​|MacPorts]]
-  * Don't forget <​code>​sudo port sync</​code> ​(port is relatively new)+  * Don't forget <​code>​sudo port sync</​code>​
   * Install the port ''​arm-none-eabi-gcc'':​ <​code>​sudo port install arm-none-eabi-gcc</​code>​   * Install the port ''​arm-none-eabi-gcc'':​ <​code>​sudo port install arm-none-eabi-gcc</​code>​
 === Solution 3 === === Solution 3 ===
 +  * Currently not working (at least on Lion). Less pain: MacPorts
   * Install [[http://​​homebrew|Homebrew]]   * Install [[http://​​homebrew|Homebrew]]
-  * Import the formulae for ppl, cloog-ppl and arm-none-eabi-gcc from [[https://​​jpc/​homebrew/​tree/​master/​Library/​Formula|here]] ​(overwrite the existing ppl formula, since cloog-ppl depends on the older one from this repository)+  * Import ​(as in copy to /​usr/​local/​Library/​Formula) ​the formulae for cloog-ppl and arm-none-eabi-gcc from [[https://​​jpc/​homebrew/​tree/​master/​Library/​Formula|here]] ​
   * Install the formula ''​arm-none-eabi-gcc'':​ <​code>​brew install arm-none-eabi-gcc</​code>​   * Install the formula ''​arm-none-eabi-gcc'':​ <​code>​brew install arm-none-eabi-gcc</​code>​
Line 101: Line 114:
 MacOSX, Lion, Up-to-date MacPorts - DanBUK MacOSX, Lion, Up-to-date MacPorts - DanBUK
 <​code>​ <​code>​
 +sudo port sync
 +sudo port install arm-none-eabi-gcc
 git clone git://​​r0ket/​r0ket.git git clone git://​​r0ket/​r0ket.git
 cd r0ket cd r0ket
 git checkout c583ddc7e3b6ecc2cdb94fe0a0474d52bcbb220b git checkout c583ddc7e3b6ecc2cdb94fe0a0474d52bcbb220b
 +cd firmware
 # Edit SECRETS.release # Edit SECRETS.release
-cd firmware 
 ./​release-all ./​release-all
 make APP=initial make APP=initial
 cp firmware.bin ../​release/​initial.bin cp firmware.bin ../​release/​initial.bin
 cd ../release/ cd ../release/
-# ISP Mode+# ISP Mode - Power on whilst holding left on Joypad 
 +# NB. This isn't always CRP DISABLED, could be CRP2 ENABLED
 mount | grep "CRP DISABLD"​ mount | grep "CRP DISABLD"​
 # /​dev/​disk3 ​     32Ki   ​32Ki ​   0Bi   ​100% ​   /​Volumes/​CRP DISABLD # /​dev/​disk3 ​     32Ki   ​32Ki ​   0Bi   ​100% ​   /​Volumes/​CRP DISABLD
Line 122: Line 138:
 # If you want to start completely empty: # If you want to start completely empty:
 # rm -Rf /​Volumes/​NO\ NAME/* # rm -Rf /​Volumes/​NO\ NAME/*
-cp files/*.c0d /​Volumes/​NO\ NAME/ +cp files/* /​Volumes/​NO\ NAME/
-cp files/*.int /​Volumes/​NO\ NAME/ +
-cp files/​*.nik ​/​Volumes/​NO\ NAME/+
 diskutil unmount "NO NAME" diskutil unmount "NO NAME"
 # press button (joypad middle) # press button (joypad middle)
build_mac.1312991860.txt.gz · Last modified: 2011/08/10 17:57 by danbuk