Go to advanced search

by krom
Wed Mar 20, 2019 4:22 am
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 3
Replies: 4
Views: 4282

Re: Trying Bare Metal on Raspberry Pi 3

Hi everyone, Sorry for the lack of updates on my GPU work recently... I thought I'd let you know with the help of my friend Jaymin Kessler's Jaystation 2 blog: http://maisonikkoku.com/jaystation2/chapter_11.html I managed to get my 1st bare metal textured triangle demo working here: https://github.c...
by krom
Sun Jul 24, 2016 2:10 am
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 3
Replies: 4
Views: 4282

Re: Trying Bare Metal on Raspberry Pi 3

Hi everyone, I just thought I'd bring to your attention this new project by a friend of mine Jaymin Kessler which can be found here: http://maisonikkoku.com/jaystation2/blog_main.html He is using a R-Pi 2 in bare metal, to try to create a new gaming console called the Jaystation 2 ! He is breaking d...
by krom
Thu May 26, 2016 7:09 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 3
Replies: 4
Views: 4282

Re: Trying Bare Metal on Raspberry Pi 3

Great news FASMARM now supports aarch64 instructions: http://arm.flatassembler.net/ I have started converting all of my R-Pi GitHub source to 64-bit ARM code. I found out that just renaming the kernel image file to kernel8.img , automatically sets the Raspberry Pi 3 into the 64-bit state, ready to r...
by krom
Sat Mar 12, 2016 2:10 am
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 3
Replies: 4
Views: 4282

Trying Bare Metal on Raspberry Pi 3

Hi everyone, I got my Raspberry Pi 3, and tested out all my demos from here: https://github.com/PeterLemon/RaspberryPi It seems backwards compatible with all my Raspberry Pi 2 "kernel7.img" files. I tried out SMP with NEON instructions, and the cpu setup for these have stayed the same, so they run. ...
by krom
Fri Jan 22, 2016 12:19 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Hi Sonny05, I got all my reference for V3D Broadcom GPU form this doc: https://www.broadcom.com/docs/support/videocore/VideoCoreIV-AG100-R.pdf Hopefuly you can see how I have made all my V3D demos from the information in that doc. I still have not been able to setup Z-Buffer correctly on this device...
by krom
Fri Dec 18, 2015 5:23 am
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

I have redone all my demos to run full speed on the newest firmware files, fixing the HYP mode problem on RPi2 . https://github.com/PeterLemon/RaspberryPi I decided to use the config.txt options as I mentioned in the above post: kernel_old=1 (To avoid prepending the boot code.) disable_commandline_t...
by krom
Thu Dec 17, 2015 2:58 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Hi rst thanks for the help, this'll def help with getting out of HYP mode =D I have been experimenting with the config.txt options: kernel_old=1 (To avoid prepending the boot code.) disable_commandline_tags=1 (To avoid populating the ATAGs.) I found out the info for this from this post: https://www....
by krom
Wed Dec 16, 2015 6:10 am
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Hi, I just got all my Raspberry Pi 2 demos working again with the newest firmware using help from this forum post: https://www.raspberrypi.org/forums/viewtopic.php?f=72&t=121993 I needed to convert the returned mailbox framebuffer BUS address to an ARM physical address to get GFX on the screen again...
by krom
Fri Apr 03, 2015 7:38 am
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Hi, Sorry for the brief pause in development... So I was reading some of the forum posts here and I saw one about a guy who got more speed out of the Raspberry Pi 2 on single core: http://www.raspberrypi.org/forums/viewtopic.php?f=72&t=102806 Your bare metal environment doesn't wake the other cores ...
by krom
Tue Feb 24, 2015 11:40 am
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

I tried my idea for using the multiple ARM CPU Cores to make my julia fractal animation faster, using the the same code block for all 4 cores & it worked & is a massive speed up: https://github.com/PeterLemon/RaspberryPi/tree/master/SMP/NEON/Fractal/Julia If you change the resolution code to: ; Setu...
by krom
Tue Feb 24, 2015 8:22 am
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

DexOS wrote:Great work krom, i am looking forward to my raspberry pi 2 coming, so i can test your demos.
Hi DexOS, this is wonderful news, I am so glad you are getting a Raspberry Pi 2 =D
I'll try to get some more cool stuff done in time, for when it arrives for you!
by krom
Sun Feb 22, 2015 4:31 am
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Thanks to rst it was easy for me to make my 1st SMP test demo: https://github.com/PeterLemon/RaspberryPi/tree/master/SMP/SMPINIT It shows all 4 cores running code & printing info to the same frame buffer video memory, at the same time =D All I had todo was follow exactly what rst said: I placed each...
by krom
Sat Feb 21, 2015 8:40 pm
Forum: Bare metal, Assembly language
Topic: BCM 2836 and the RPi 2 ?
Replies: 95
Views: 28587

Re: BCM 2836 and the RPi 2 ?

I have to agree with the posts from rst & rpdom above... I am lucky enough to own a Raspberry Pi 2, and in the 1st 2 weeks it has taught me howto to write optimized NEON code in bare metal, and I am about todo my 1st SMP demos using help from rst =D If anything, from my experience, it is really amaz...
by krom
Sat Feb 21, 2015 8:00 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Hi rst , Wow thanks so much for your help, this is really amazing stuff, & I am so happy you have shared your SMP findings with me here =D I am gonna try this all out and update here with any SMP demos I make. Also I would like to state that you are my biggest Raspberry Pi 2 hero rst , because of al...
by krom
Wed Feb 18, 2015 8:50 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Hi Julien_Nantes , thanks for your feedback =D The VPF Mandelbrot fractal works very well, for instance. The NEON one just gives me a black screen. Heh, I just tried the NEON Mandelbrot Fractal again, and it was a black screen like you said, I then did a few more power ups & it does work sometimes! ...
by krom
Wed Feb 18, 2015 3:55 am
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Hi guys, here is an update on my Raspberry Pi 2 work: I have optimized all my fractal demos for the Raspberry Pi & Raspberry Pi 2, including the NEON demos: https://github.com/PeterLemon/RaspberryPi/tree/master/VFP/Fractal https://github.com/PeterLemon/RaspberryPi/tree/master/NEON/Fractal The NEON d...
by krom
Thu Feb 12, 2015 8:00 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Get MMU support working. If you want, you can try running that code on VC4_VPU. (it has a 16-way SIMD unit, is dual-core at 250MHz), for better perf on older Pis Cheers mimi123 , yep I have made an LED blink using the VC4 & assembling my own bootcode.bin file, but I have never setup the Frame Buffe...
by krom
Thu Feb 12, 2015 5:55 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

I have made my 1st NEON optimized Fractal demos (Raspberry Pi 2 Only): https://github.com/PeterLemon/RaspberryPi/tree/master/NEON/Fractal These are much faster than the original non optimized VFP fractal demos on the Raspberry Pi 2 =D I am gonna try to get Multi Core (SMP) stuff working now, to get ...
by krom
Wed Feb 11, 2015 1:06 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Hi rst , That's interesting. Thanks for the figures. Does it mean we could raise the ARM clock to 900 MHz as mimi123 suggested (by using the "Set clock rate" mailbox property function) and why is it not 900 MHz by default? Maybe I will try this later. Yep, I manged to force it to 900MHz on initializ...
by krom
Tue Feb 10, 2015 6:51 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Hi rst I got some clock rates from the Raspberry Pi 2 initial State: EMMC Max Clock = $EE6B280 (250MHz) Default = $EE6B280 (250MHz) UART Max Clock = $3B9ACA00 (1GHz) Default = $2DC6C0 (3MHz) ARM Max Clock = $35A4E900 (900MHz) Default = $23C34600 (600MHz) CORE Max Clock = $EE6B280 (250MHz) Default = ...
by krom
Mon Feb 09, 2015 5:48 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Hi rst , thanks for your help on this =D For me the older method works well. There must be another influence. O.k I'll have to look back into this, if the old framebuffer code works for you, I must be doing something wrong that still worked on the old Raspberry Pi. I have updated my fractal demos to...
by krom
Mon Feb 09, 2015 1:16 am
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

I have converted all my demos on my github (apart from the GB emu) to Raspberry 2 compatible kernel7.img files: https://github.com/PeterLemon/RaspberryPi All the demos are exactly the same code with the only change being the Raspberry Pi 2 peripheral base address $3F000000 . Raspberry Pi uses kernel...
by krom
Fri Feb 06, 2015 3:17 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Hi dpotop,
Yes I assume the ARM Cortex starts in single core mode when it boots, & would require extra setup to make it execute programs across all 4 cores...
I will try to make multi core demo examples asap once I can figure out how to do it =D
by krom
Fri Feb 06, 2015 1:45 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Cheers rpdom , good to know about the exact high/low state for GPIO 47 =D Also to confirm, if the kernel is saved as kernel.img it does find it on the RPi2. I have tested using kernel7.img , and will use this as this correct name for all my Raspberry Pi 2 demos, so as to help people know it is a RPi...
by krom
Fri Feb 06, 2015 1:19 pm
Forum: Bare metal, Assembly language
Topic: Trying Bare Metal on Raspberry Pi 2
Replies: 98
Views: 33027

Re: Trying Bare Metal on Raspberry Pi 2

Thanks rst for the quick response. Using your advice, I got my 1st Raspberry Pi 2 Bare metal demo to run! It now blinks the LED perfectly using GPIO47 for the Green LED =D Here is the full working source: format binary as 'img' PERIPHERAL_BASE = $3F000000 ; Raspberry Pi 2 Peripheral Base Address GPB...

Go to advanced search