Skip to content

estibi/RaspberryPi-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RaspberryPi


Raspberry Pi Bare Metal Code by krom (Peter Lemon).

All code compiles out of box with the FASMARM assembler by revolution:
http://arm.flatassembler.net
I have included binaries of all the demos.

Special thanks to Dex (Craig Bamford), who helped me get my 1st pixel on the screen =D
Please check out DexOS, a lightning fast bare metal OS, & his Raspberry Pi port of DexBasic:
http://www.dex-os.com
http://www.dex-os.com/DexBasic/DexBasic.htm

Also special thanks to phire, who helped me get my 1st triangle on the screen using the GPU =D

For more information about coding the ARM CPU please visit my webpage that I run with SimonB:
http://gbadev.org
http://forum.gbadev.org

Howto Compile:
All the code compiles into a single binary (kernel.img) file.
Using FASMARM open up kernel.asm and click the Run/Compile button.

Howto Run:
I only test with the latest bleeding edge firmware:
https://github.com/raspberrypi/firmware/tree/master/boot

You will need these 2 files:
bootcode.bin
start.elf

You will need to create a "cmdline.txt" file that contains the line:
coherent_pool=2M cma=2M smsc95xx.turbo_mode=Y

You will need to create a "config.txt" file that contains the lines:
disable_overscan=1
disable_pvt=1
force_turbo=1
framebuffer_swap=0
gpu_mem_256=160
gpu_mem_512=316
cma_lwm=16
cma_hwm=32

Check http://www.raspberrypi.org/documentation/configuration/config-txt.md for more info about config options.
Check https://github.com/PeterLemon/RaspberryPi/tree/master/boot for .txt files.

Once you have all these files ready, you can copy them & a kernel.img file to the root of an SD card.

All of my demos use a maximum resolution of 640x480, they have been tested using composite & HDMI.

All sound demos output to the 3.5" Phone Jack. Thanks to ne7 for the sound sample.

About

Raspberry Pi Bare Metal Assembly Programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Assembly 100.0%