Go to advanced search

by krom
Fri Feb 06, 2015 12:26 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 34198

Trying Bare Metal on Raspberry Pi 2

Hi guys, I am lucky enough to have my RPi 2 already, & love the challenge of getting my code to work bare-metal on any new system... I really want to get all my bare metal code already done for the original RPi, to work on the RPi2, and improve them etc. e.g I have some fractal demos I would like op...
by krom
Fri Jan 30, 2015 6:44 pm
Forum: Bare metal, Assembly language
Topic: BCM2835 Serial Number
Replies: 5
Views: 1962

Re: BCM2835 Serial Number

Hi leehchua,
I made a Tags Channel demo, that prints lots of info (Including Serial Number) using the Mailbox interface:
https://github.com/PeterLemon/Raspberry ... agsChannel

Binary & source is included, hope this helps =D
by krom
Thu Jan 29, 2015 10:19 pm
Forum: Bare metal, Assembly language
Topic: esp8266 wifi serial module
Replies: 18
Views: 20109

Re: esp8266 wifi serial module

wow nice progress DexOS, cheers for the update on this & pics =D
by krom
Tue Jan 27, 2015 8:38 pm
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

I have made a simple Refresh demo, which bounces a multi sampled vertex colored triangle from right to left on the screen: https://github.com/PeterLemon/RaspberryPi/tree/master/V3D/ControlList/Refresh As the vertex array X coordinates are in 12.4 fixed point format, there are 16 frames of animation ...
by krom
Tue Jan 27, 2015 4:22 am
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

Thanks for the kind words DexOS & Siekmanski =D I got a bit stuck on the VG Inline Primitive demos, but I have managed to make a new Multi Sample demo: https://github.com/PeterLemon/RaspberryPi/tree/master/V3D/ControlList/Multi_Sample So less jaggy edges on primitives =D I have also used while & if ...
by krom
Sat Jan 24, 2015 7:44 pm
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

I have done 2D VG GPU Primitive mode tests, using VG Coordinate Array . Fill Color VG RHT : https://github.com/PeterLemon/RaspberryPi/tree/master/V3D/ControlList/VG/Coordinate_Array/RHT/FillColor Fill Color VG RHT Strip : https://github.com/PeterLemon/RaspberryPi/tree/master/V3D/ControlList/VG/Coord...
by krom
Fri Jan 23, 2015 6:28 pm
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

After hacking around, I have got perfect rendering of the Triangle demos above. I have also fixed the Clear Color Demo to be correct too, using this new knowledge from correcting the Triangle Demos. I have also updated my config.txt file to use the option framebuffer_swap=0 , to be able to use the n...
by krom
Wed Jan 21, 2015 3:39 am
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

Sorry for the long delay, but I have great news... Today I have managed to convert the phire Linux triangle code to bare-metal on the Raspberry-Pi, using my old V3D control list Clear Color demo as a template. I was lucky enough to bump into phire on IRC recently, and he gave me some great advice on...
by krom
Thu Dec 11, 2014 10:37 am
Forum: Bare metal, Assembly language
Topic: STICKY: Bare Metal resources
Replies: 26
Views: 109183

Re: bare metal resources

Here are some Bare Metal Raspberry Pi examples that use very minimal & simple ARM Assembly only: https://github.com/PeterLemon/RaspberryPi Here is what you will find: LZSS & Huffman Decompression : https://github.com/PeterLemon/RaspberryPi/tree/master/Compress GB Z80 Emulator with minimal hardware a...
by krom
Thu Dec 11, 2014 8:25 am
Forum: Bare metal, Assembly language
Topic: native GBA games
Replies: 8
Views: 2885

Re: native GBA games

Hi Guys, I was working on a way to make GBA code run on the RaspberryPi, MMU is def the way to go, thanks to dwelch67 for your MMU code examples btw =D Lots of GBA homebrew exists on my website for us to test with: http://www.gbadev.org Many of these demos/games do not even use the GBA Bios at all, ...
by krom
Tue Jul 22, 2014 5:21 pm
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

Cheers Dex! I'll msg you the instant I get it to work =D
P.S I bumped into David Braben again at a developer conference, updated him on my bare metal work, & told him how close we are to getting a bare metal triangle on the screen, and he said "It will be very fast!"
by krom
Mon Jul 21, 2014 4:43 pm
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

Hi guys, sorry for the lack of updates... I have been helping with a new N64 emulator (cen64) & needed todo loads of cpu tests for the system: https://github.com/PeterLemon/N64/ I did not want to leave the Raspberry Pi Bare Metal community out of the loop, so I wrote this simple Nintendo Game Boy CP...
by krom
Sun Jun 22, 2014 6:52 pm
Forum: Bare metal, Assembly language
Topic: PiFox - Bare Metal 3D rail shooter written in ARM assembly
Replies: 13
Views: 3758

Re: PiFox - Bare Metal 3D rail shooter written in ARM assemb

Well done! I am very happy to see the NES pad input being put to good use =D
by krom
Tue Jun 10, 2014 7:54 am
Forum: Bare metal, Assembly language
Topic: Loading 32bit values into registers.
Replies: 24
Views: 5834

Re: Loading 32bit values into registers.

if the only difference in source is the change from ldr= under one assembler to imm32 under fasm Yep the only changes that I needed to get the code to compile in FASMARM, was changing all the ldr= to imm32. As you are aware, though, "is faster on the GBA" does not equate to "will be faster on ${PLA...
by krom
Tue Jun 10, 2014 12:47 am
Forum: Bare metal, Assembly language
Topic: Loading 32bit values into registers.
Replies: 24
Views: 5834

Re: Loading 32bit values into registers.

Hi tufty , Sounds like you had a great time in France =D I'll try to answer your question in 2 answers, as I do not know what specifically you meant by "Why?" 1. If you meant why was I able to see an increase in FPS on my video codec & 3D Engine: I was using a lame decrement counter to wait a certai...
by krom
Fri Jun 06, 2014 6:28 pm
Forum: Bare metal, Assembly language
Topic: Loading 32bit values into registers.
Replies: 24
Views: 5834

Re: Loading 32bit values into registers.

Hi Dex, Cheers for the kind comments, it made me feel sad to read that you got so annoyed by the aforementioned stuff, great to see you on the board again =D P.S I do not want anyone to feel that I singled them out, especially dwelch67 & tufty , you guys have contributed so much to the scene. I was ...
by krom
Thu Jun 05, 2014 2:43 pm
Forum: Bare metal, Assembly language
Topic: RPi VC4 QPU binary blob
Replies: 8
Views: 6080

Re: RPi VC4 QPU binary blob

Hi hanzelpeter, If you want to run your own VC4 code here is a step by step tutorial: 1. Download VASM by Volker Barthelmann here: http://www.ibaug.de/vasm/vasm.tar.gz 2. Compile it using "make" with the options: CPU = vidcore Here is the Mingw Windows Makefile that I use: TARGET = _win32 TARGETEXTE...
by krom
Wed Jun 04, 2014 12:22 pm
Forum: Bare metal, Assembly language
Topic: Loading 32bit values into registers.
Replies: 24
Views: 5834

Re: Loading 32bit values into registers.

Cheers for the great comments, it is great that you are learning so much in a short space of time =D
(Sorry if my comments came across a little harsh, I had to state my reasons to why I use those macros!)
by krom
Wed Jun 04, 2014 11:24 am
Forum: Bare metal, Assembly language
Topic: Loading 32bit values into registers.
Replies: 24
Views: 5834

Re: Loading 32bit values into registers.

Hi guys I just wanted to clear some of this IMM32 macro stuff up: In 2011 I discovered FASMARM, after needing an ARM assembler that could compile floating point opcodes for Raspberry Pi CPU, for the 1st bare metal floating point fractal demo on the system. I noticed that FASMARM did not have ltorg o...
by krom
Thu May 01, 2014 8:08 pm
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

As i understand the info to use the 3D HW is not available to the public? Hi Siekmanski , The Docs used to be non public, but a couple of months back, Broadcom gave us this pdf file with lots of info, which I have been using for all my GPU HW demos: http://www.broadcom.com/docs/support/videocore/Vi...
by krom
Thu May 01, 2014 3:19 pm
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

Hi Marinus, & welcome to the Raspberry Pi Community =D Thanks for your post, it helps me to get inspiration to code!! Also we must also thank other people that have helped me get to this stage: Namely my m8 Dex & the great Herman H Hermitage Here is an update of my work on getting a single triangle ...
by krom
Tue Apr 08, 2014 11:39 am
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

As promised, here is my 1st Control Lists demo running the simplest V3D GFX opcode Clear Color : https://github.com/PeterLemon/RaspberryPi/tree/master/V3D/ControlList/Clear_Color It uses my previous V3D initialization code, and the normal Raspberry Pi Frame Buffer to create the screen context. I set...
by krom
Wed Mar 19, 2014 5:05 am
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

I have finally worked out howto initialize the V3D/QPU correctly in bare metal, here is a demo showing all the readable V3D registers initial state: https://github.com/PeterLemon/RaspberryPi/tree/master/V3D/V3DINIT You can see from the readout of the first three V3D identification registers that it ...
by krom
Tue Mar 11, 2014 3:10 am
Forum: Bare metal, Assembly language
Topic: Bare Metal Examples
Replies: 33
Views: 16769

Re: Bare Metal Examples

Hi m3ntal7 Why not FASM? You are preaching to the converted, I absolutely love FASM: I use revolution's FASMARM now for all my ARM assembly programming (namely GBA, NDS, & Raspberry Pi). Also the main FASM I use for all my X86/X64 ASM programming. There are several reasons I use byuu's bass assemble...
by krom
Sun Mar 09, 2014 5:08 pm
Forum: Bare metal, Assembly language
Topic: Complete VideoCore Register map extracted from GPU sources
Replies: 7
Views: 3565

Re: Complete VideoCore Register map extracted from GPU sourc

Hi msperl , Thanks so much for your work in providing a neat list of Raspberry Pi registers, this is helping me and others out loads, and is what I wanted on day 1 of getting my R-Pi =D I also found something else in my quest of getting the V3D registers to work in bare metal, that might help other ...

Go to advanced search