Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Armv6 Assembler for Mac

I am following this tutorial on operating system development for the raspberry pi. http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/ok01.html

I am using a Mac, so it suggests using the Yagarto packages for assembling the code. However, they do not seem to work. I installed it multiple times to check.

I want to know if there is an alternative assembler for Mac and how to use it to create the .img file to use as the kernel for the pi.

like image 789
user2275045 Avatar asked Dec 06 '25 06:12

user2275045


1 Answers

You can use Xcode for that - if you install xcode, the "iPhone SDK" compiler is really a cross compiler for i386, x86_64 and - ARM.

${whereever_you_put_xcode}/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/as -arch armv6

will do the trick: specifically, it will execute

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/../libexec/as/arm/as

like image 122
Technologeeks Avatar answered Dec 08 '25 19:12

Technologeeks