Shop OBEX P1 Docs P2 Docs Learn Events
Raspberry Pi OS Development — Parallax Forums

Raspberry Pi OS Development

mindrobotsmindrobots Posts: 6,506
edited 2012-09-11 08:54 in General Discussion
For Raspberry Pi fans (and OS fans), this looks kind of interesting:

Baking Pi - Operating Systems Development


From The University of Cambridge
This website is here to guide you through the process of developing very basic operating systems on the Raspberry Pi! This website is aimed at people aged 16 and upwards, although younger readers may still find some of it accessible, particularly with assistance. More lessons may be added to this course in time.

By chasing back-links, you can find a couple other tutorials they have come up with for the RPi.

Comments

  • User NameUser Name Posts: 1,451
    edited 2012-09-10 09:12
    This is great! It's an example of R-Pi living up to its billing.
  • Heater.Heater. Posts: 21,230
    edited 2012-09-10 11:54
    Yep, just what we need to program the PI down to the metal, as Propeller heads are used to.
    Now if only we could get programs running on the PI's 48 processors in its GPU....
  • RsadeikaRsadeika Posts: 3,837
    edited 2012-09-11 02:19
    Has anybody tried the Baking PI stuff yet? To light up the LED on the PI board seems like it has some relatively simple asm code to deal with, but you do need the right tools if you are using a Windows PC.

    Ray
  • mindrobotsmindrobots Posts: 6,506
    edited 2012-09-11 05:47
    As time permits, I'm going to try and get the tool chain (yagarto) up and running on my Mac today. I'm running Mountain Lion (10.8.1). I usually bugger something up when I start messing with the paths and things, so we'll see how I do.

    So far, I have yagarto installed and have a path to it (YAY!). Now, I need to update my xCode so I ca get the GNU command line tools for the Mac. After that, I should be able to do a make, paths willing!!
  • mindrobotsmindrobots Posts: 6,506
    edited 2012-09-11 08:54
    IT WORKS!!!

    My RPi is sitting here running the program from ok02 and blinking its OK LED at me!!

    This is for the MAC toolchain:

    1) install yagarto as directed on its webpage and its "Readme me first!!: document. Follow the instructions and you will have a working yagarto tool chain in the directory of your choosing.
    2) update your user .profile file to add the path to $PATH and export it (there may be many ways to do this, I edited the .profile file and added this line:

    export PATH=$PATH:/Users/rapost/yagarto/yagarto-4.7.1/bin

    so the yargato binaries could be found

    3) I had an old Xcode on my Mac (didn't update when I went to Mountain Lion) so I needed to update that so I could install the GNU command line tools for the MAC. In xcode, go to preferences->downloads to install the command line tools)

    4) download the template from the baking Pi site - I also downloaded the full solutions for the first two lessons to test the tool chain.

    At this point, I was able to switch to the directory for a lesson and do a 'make' to build the linux.img file for that lesson. If you follow the instructions to replace the linux.img file on a working RPi boot SD with your new linux.img file, you too can boot your own OS onto an RPi!!

    It's kind of a pain to remove the SD card, put it into your PC to copy the new .img file to it and then put it back into the RPi to test but heck, the last time I wrote OS code, I had to find another mainframe to schedule time to rebuild my boot tape and then boot from it!! This is a BIG improvement over that process!!!

    Congratulations!! You are now an OS developer!!! YOU control the WORLD!!! Or at least the little world you create on your RPi!!!!

    I would assume the Windows process is similar, the LINUX probably much easier.

    I may be getting to those in the future.

    Now, get out there and play!!!
Sign In or Register to comment.