Go to advanced search

by StevoD
Tue Jun 25, 2019 12:51 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 4
Replies: 59
Views: 8367

Re: Raspberry Pi 4

and finally the legacy VC dropped, and Raspbian switched to Mesa! It is time for me to finally start playing with 3D on Rpi! Why exactly would you wish for that, you just got locked in to Linux. It had already been shown that bare metal opengl using the VC4 was a reality and now the only way to do ...
by StevoD
Mon Apr 15, 2019 12:18 am
Forum: Bare metal, Assembly language
Topic: Yet Another Bare Metal Tutorial for the RPi3
Replies: 77
Views: 51871

Re: Yet Another Bare Metal Tutorial for the RPi3

Well happy to be the total beginner that got everything working ... where is your code pro? There's a big difference between what looks like it works in a basic test and what is usable in real code. I use the xinu code from github with my own additions, that's the point. I could tell you what that ...
by StevoD
Sat Apr 13, 2019 10:04 am
Forum: Bare metal, Assembly language
Topic: Yet Another Bare Metal Tutorial for the RPi3
Replies: 77
Views: 51871

Re: Yet Another Bare Metal Tutorial for the RPi3

Ultimately I have running code the site doesn't That's a bit debatable really, its hard to follow what you've done because you didn't create a fork and seem to replace every file when you do a commit. Your most recent addition, five months ago, was some stuff to do with critical sections which look...
by StevoD
Fri Apr 12, 2019 9:51 am
Forum: Bare metal, Assembly language
Topic: Yet Another Bare Metal Tutorial for the RPi3
Replies: 77
Views: 51871

Re: Yet Another Bare Metal Tutorial for the RPi3

Personally I would ignore Xinu it is pretty much dead Looks plenty active to me, recent commits and activity. It is an academic project so you wouldn't expect a weekly commit would you? I have 3 pushes been sitting there for 6 months and it has not been updated in a year .. you can see on the issue...
by StevoD
Mon Apr 08, 2019 10:13 am
Forum: Bare metal, Assembly language
Topic: Alignment issues in porting CSUD for RPI 3B (32 Bit) with minimal changes
Replies: 45
Views: 4510

Re: Alignment issues in porting CSUD for RPI 3B (32 Bit) with minimal changes

Look it's not correct to say I am not spending time. Checkout code in CSUD repo(c) and circle(cpp). It's tough to correlate and debug. Host controller is throwing stall error in split transaction I tried logging everything I could. I am stuck that's why I asked @Ldb because he migrated the same cod...
by StevoD
Sun Apr 07, 2019 9:47 am
Forum: Bare metal, Assembly language
Topic: Alignment issues in porting CSUD for RPI 3B (32 Bit) with minimal changes
Replies: 45
Views: 4510

Re: Alignment issues in porting CSUD for RPI 3B (32 Bit) with minimal changes

I tried use Circle USB library and it works. Although this code doesn't work https://github.com/LdB-ECM/Raspberry-Pi/tree/master/Arm32_64_USB for the same mouse. A lesson for those getting started, once you get beyond the basics those simple examples don't cut it. Spend your precious time learning ...
by StevoD
Sun Apr 07, 2019 9:40 am
Forum: Bare metal, Assembly language
Topic: Yet Another Bare Metal Tutorial for the RPi3
Replies: 77
Views: 51871

Re: Yet Another Bare Metal Tutorial for the RPi3

Another book that is very good is "Operating System Design, The Xinu Approach" by Douglas Comer. It cover the implementation of a small embedded OS called Xinu. Xinu also runs on Raspberry Pi, there is a port here: https://github.com/LdB-ECM/Xinu (note I had to do some changes to get it to build, t...
by StevoD
Sun Apr 07, 2019 9:35 am
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 103
Views: 12489

Re: Spider-OS a new operating system

A screenshot of the result obtained on my Raspberry Pi. I make you a tutorial here . Some explanations on the 3D, and of course the assembly code ;-) The rotating cube is one thing but any chance you can post the code you used to do the video grab, bare metal video screenshot to youtube is kinda un...
by StevoD
Thu Aug 23, 2018 11:06 am
Forum: Bare metal, Assembly language
Topic: Uart output on different Pi models
Replies: 5
Views: 1503

Re: Uart output on different Pi models

You should RTFM more often instead of giving bad advice. This is documented by RPF here https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md For the original question, which UART is used is just a firmware default, use the function select registers to set whatever ...
by StevoD
Thu Jun 14, 2018 1:09 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 5739

Re: Raspberry Pi 3B+ Bare Metal USB Driver

LdB wrote:
Thu Jun 14, 2018 12:46 pm
I don't know xinu at all but I have written a USB driver and I know all the alignment issues inside and out.
All such nonsense, I use xinu and it works.

So many projects now have usb and only you have to make your own memcpy to stop alignment error.
by StevoD
Thu Jun 14, 2018 1:08 pm
Forum: Bare metal, Assembly language
Topic: AARCH64 MMU and ldaxr/stlrb semphore
Replies: 3
Views: 965

Re: AARCH64 MMU and ldaxr/stlrb semphore

LdB wrote:
Thu Jun 14, 2018 1:04 pm
What I am asking is can I turn the cache on in the MMU table over the area of the VC4 memory it owns so you can theoretically write/read faster to the framebuffer it gives you?
Yes.
by StevoD
Thu Jun 14, 2018 11:33 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 5739

Re: Raspberry Pi 3B+ Bare Metal USB Driver

Now look at the point I have marked with "<<< SEE THIS SUCKER" in usb_get_descriptor I believe that could end up balign(2) or balign(4) depending on stack behaviour and it gets optimized with that other "uint16_t len" above it. Then it looks they pass that in as a pointer to the DMA transfer as (&h...
by StevoD
Thu Jun 14, 2018 11:21 am
Forum: Bare metal, Assembly language
Topic: AARCH64 MMU and ldaxr/stlrb semphore
Replies: 3
Views: 965

Re: AARCH64 MMU and ldaxr/stlrb semphore

A side question for people, does anyone know if we are allowed to turn the L2 cache on over the VC memory area. I haven't got memory barriers setup on my graphics code so wan't able to test? ARM cpu has 4 x L1 cache and 1 x L2 cache which is shared by all 4 of them, VC has L2 cache which is separat...
by StevoD
Thu Jun 14, 2018 11:18 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 5739

Re: Raspberry Pi 3B+ Bare Metal USB Driver

After going through some debugging messages, I found that the problem is that when the DWC is enumerating the devices, it will try to read the device descriptor of, what I am guessing is, the on-board USB hub/ethernet device (LAN7515), but it will return a transfer error, and then therefore is unab...
by StevoD
Wed May 09, 2018 12:06 am
Forum: Bare metal, Assembly language
Topic: Audio output on the Raspberry Pi 3B
Replies: 26
Views: 7311

Re: Audio output on the Raspberry Pi 3B

Sorry to the op, my question is off topic. As I said my most common setup is core0 running an RTOS and cores1,2,3 running a linux like O/S and both those codes are just standard C code which is dead easy using my bootloader. Do you have a demo image for that? How do you make more than one o/s run at...
by StevoD
Mon Apr 16, 2018 10:55 am
Forum: Other programming languages
Topic: A Extended Pascal Implementation : CONCEPT.
Replies: 75
Views: 23708

Re: A Extended Pascal Implementation : CONCEPT.

This might help you get your pascal bare metal setup going https://github.com/mvdhoning/fprpbm

I saw it while looking at the opengl stuff from the same person which should work with ultibo now.

D./
by StevoD
Tue Feb 20, 2018 9:35 am
Forum: Bare metal, Assembly language
Topic: Memory address range for ARM in RPI3?
Replies: 8
Views: 2361

Re: Memory address range for ARM in RPI3?

For Arm Start=0000000 size 08000000 which is only 128 MB for gpu: start =08000000 size= 08000000 which again is 128MB If you only see 256MB on a PI3 it is almost always because you don't have fixup.dat (or fixup_cd or fixup_x) on the SD. These are the relocation data and without it start.elf cannot...
by StevoD
Tue Feb 20, 2018 9:30 am
Forum: Bare metal, Assembly language
Topic: Yet Another Bare Metal Tutorial for the RPi3
Replies: 77
Views: 51871

Re: Yet Another Bare Metal Tutorial for the RPi3

bzt wrote:
Tue Feb 20, 2018 1:17 am
If moderators find my tutorials worthy, feel free to put the github repo link on the sticky topic.
Hmm, that might explain it. You just add it to the sticky yourself, the moderators don't need to do it for you :shock:.
by StevoD
Sat Feb 17, 2018 10:32 am
Forum: Bare metal, Assembly language
Topic: Get the state of the ACT LED on RPi 3
Replies: 10
Views: 2155

Re: Get the state of the ACT LED on RPi 3

I've looked everywhere to find documentation or an example on how to get the ACT LED state, but I haven't found anything. Like I said, event if it works, I would like to know why the state is somehow "reversed". Here's the link to my code files: https://github.com/mathlizee/Rasperry-Pi-3 Does anybo...
by StevoD
Sat Feb 17, 2018 10:27 am
Forum: Bare metal, Assembly language
Topic: Yet Another Bare Metal Tutorial for the RPi3
Replies: 77
Views: 51871

Re: Yet Another Bare Metal Tutorial for the RPi3

Why is this post a sticky?

Add a link to this tutorial in the official sticky post and let this one (which has become polluted with "I can't get xyz to work") come to the top only when someone has a question, like all the other projects (FreeRTOS, Circle, Ultibo etc etc etc).
by StevoD
Sat Oct 21, 2017 10:26 am
Forum: Bare metal, Assembly language
Topic: My doubts in understanding baremetal
Replies: 21
Views: 4777

Re: My doubts in understanding baremetal

Well understood that some mailboxes are special hardware not just memory. But calling it a "mailbox" doesnt automatically make it special hardware in general and that was the point. It was only when I saw the read/clear was offset 0x40 from the write and was high to clear, I realized it was probabl...
by StevoD
Thu Oct 19, 2017 9:48 am
Forum: Bare metal, Assembly language
Topic: My doubts in understanding baremetal
Replies: 21
Views: 4777

Re: My doubts in understanding baremetal

Now the area 0x4000xxxx is special it has all sorts of stuff as documented in QA7. It is setup BY THE GPU and many GPU control IRQ and functions are there but it isn't specifically part of the GPU. It is some sort of special area that the ARM and the GPU can access. to me a mailbox is just a shared...
by StevoD
Sat Sep 02, 2017 9:56 am
Forum: Bare metal, Assembly language
Topic: What are situations to use bare metal when python is so much easier?
Replies: 74
Views: 13914

Re: What are situations to use bare metal when python is so much easier?

What most of us are doing is using the VC4 OpenGL port in the MESA platform as a reference Yeah I get it now, I thought you said you were doing EGL and VCOS but you are really just doing direct access to the V3D like everyone else. That stuff is cool but it doesn't give you OpenGL, unless you end u...
by StevoD
Fri Sep 01, 2017 10:28 am
Forum: Bare metal, Assembly language
Topic: What are situations to use bare metal when python is so much easier?
Replies: 74
Views: 13914

Re: What are situations to use bare metal when python is so much easier?

Perhaps rethink about what you said in that last statement. So you also know for future reference GLESv3 = OpenGL 4.3 and GLESv1 - 1.1 = OpenGL 1.5. So are we clear GLES and OpenGL are the same thing just different version numbers and I am not sure anyone could argue any different It doesn't matter...

Go to advanced search