There's many a fb.h file out there,
And you never thought of trying to match it up with the device this
newsgroup is for ? <surprised face>
If you'd provided a link,
You mean as I pretty-much did at Tue, 27 Jun 2023 08:46:40 +0200 in message <u7e0l1$1auoe$1@dont-email.me> ?
or the full path where it was installed by a RPi OS package, in
the first post, then there needn't have been any guessing.
you mean the first line in my initial post where I said :
[quote]
I've got a RPi 1B rev1, onto which I've installed "bullseye lite", meaning
no GUI of any kind.
[/quote]
As for the path ? Why would you need that ? I provided the name "fb.h" there too, and with it should be easy to find. On my system there is only one.
A question tough : "the Pi's hardware framebuffer" ? As in the same
thing with the same API/hardware adresses for *all* the different RPi
versions ?
In that case it could be worth some time to take a peek at it.
Like the GPIO and other peripherals, different versions have
different physical addresses for the different Pis.
My apologies, I see I could have been a bit more precise : AFAIK I have to *ask* the RPi for a/the (hardware) framebuffer, and than map it into user space. After it is mapped you have to use the address returned by that mapping function - just as for the 'linux" framebuffer. Am I wrong there ?
My question was aimed at if the place to send such requests to and the
format of those requests is the same for all RPi versions.
In fact, that is the problem I tried to evade by limiting myself (for the moment) to the "linux" framebuffer. I took it that if differences would be there than that API would handle them.
Code found by searching for "fb.h raspberry pi" is mostly
working with the hardware framebuffer, rather than the Linux
one.
No, not provide an extract, a link/path. It happened to be that
I could do a web search on a bit of that and found out that you
were using a "fb.h" header file provided by Linux.
How do I know your system? It may be "bullseye lite", but I assume
you've installed and downloaded other things onto it,
Anyway I've seen others have similar arguments with you about being
unclear in your questions on Usenet, so I guess it's pointless.
My question was aimed at if the place to send such requests to and
the format of those requests is the same for all RPi versions.
"The place to send such requests" is the mailbox peripheral, and
the format is the same for the all the VideoCore IV Pis, which
currently means all the models except maybe those based on the Pi
4, which uses VideoCore VI (different GPU hardware, so many things
changed, maybe including how the framebuffer works).
Sometimes you try to avoid a hassle only to create another one.
Using the Linux Framebuffer but still wanting some hardware
acceleration might be such a case.
Computer Nerd Kev <not@telling.you.invalid> wrote:[snip]
How do I know your system? It may be "bullseye lite", but I assume
you've installed and downloaded other things onto it,
It would have been a good idea to verify that with me, 'cause no, I haven't.
As for "Unclear in your question" accusations ? Funny that those only turn up way down in a thread, and never are preceeded by any kind of "I don't quite get the question, can you explain {this} or {that}". IOW, mostly coming from people who didn't understand (for whatever reason) the question, ultimatily getting told of (by me) for it, and than try to make it sound as if its my fault.
Sometimes you try to avoid a hassle only to create another one.
If I could only see into the future, than I would just know when to pursue a certain avenue and when to switch to another ...
In my opinion your questions are often too hard to interpret
correctly.
Maybe someone would ask back 100 yes/no questions
Especially because I doubt you're understanding me either - you must
have installed a compiler in your "bullseye lite" at least.
Sometimes you try to avoid a hassle only to create another one.
If I could only see into the future, than I would just know when to
pursue a
certain avenue and when to switch to another ...
Sorry, "you" wasn't supposed to be personal.
I'm just making the point that the "easy way" with the Linux framebuffer might actually be harder if you want hardware acceleration.
But be honest, look at the subjectline and tell me that that is a difficult >question.
But be honest, look at the subjectline and tell me that that is a
difficult question.
It is if one does not know /which/ flavor of framebuffer is in play.
Maybe someone would ask back 100 yes/no questions
A single question to start with would have been enough : "did you install
any packages".
Especially because I doubt you're understanding me either - you must
have installed a compiler in your "bullseye lite" at least.
Thats another assumption with which you have created a new hassle for yourself. I understood your question quite well. I said I didn't install any packages and I haven't. The GCC compiler came as part of the "bullseye lite" OS package.
And isn't including a GCC (or alike) into an OS package quite common ?
I'm just making the point that the "easy way" with the Linux framebuffer
might actually be harder if you want hardware acceleration.
How, and even /why/ do you think so ?
You've been able to look in that "fb.h" file. In it is the call as well as the arguments definition. It looks quite easy to me.
And no, that its not supported(?) by BullsEye's linux framebuffer has no bearing on that.
Besides, the same goes here : it /might/, but it could as easily be another method (the "mailbox" one?) which could turn out to be harder.
In short, you've succumbed to FUD. Don't. All it does is freezing you, not allowing you to try (and learn!) /anything/.
As an example, I wrote a software mouse cursor before even posting here. Which I'm sure is harder than just activating a hardware one. I still wrote it, if only to find out how complex / much work it actually is. It turns
out its not reallly either.
... But I still wanted to know how the other, hardware method works - so I can compare, learn and have a choice.
A single question to start with would have been enough : "did you
install any packages".
Nope, you could have downloaded fb.h manually from the web, so I'd
need to ask that too.
[you don't have to answer these questions - they're an example
for how you could make your future first posts less ambiguous]
Also to be sure I should have asked the full name/version of the OS
because "bullseye lite" refers to a Debian release - "Bullseye".
Theo assumed that you were talking about Raspberry Pi OS, but
officially its versions are named after dates, eg. the latest would
be "Raspberry Pi OS Lite 2023-05-03".
I should have asked what programming language you were using. It
was a C header, but you could have been using/preferring C++ or
any another language that has bindings to C.
I should have asked if you only wanted your program to run on
the RPi 1B rev1, or whether compatibility with other RPi models
mattered as well.
I should have asked whether software compatibility with other
non-RPi platforms mattered as well.
Maybe I should have asked whether you were running the OS in
a virtual environment, just in case you're actually running
an x86 emulator in QEMU so that you can run x86 Debian Bullseye,
and want to pass the mouse acceleration through all the layers of
Linux/QEMU framebuffer emulation?
I could go on, but the conclusion is obvious: I shouldn't bother
answering your questions if you expect me to resolve every single
point of uncertainty rather than assuming that you use RPis in a
common way,
Good, my concern was only that you would stick at the Linux framebuffer
now and ignore the hardware one simply because the Linux one looked easier
_before_ you realised that it wasn't properly documented and didn't
"just work" for hardware mouse acceleration.
An unfounded concern, perhaps.
Perhaps. Though I must say that my eagerness to also figure that "mailbox" method out has been tampered by knowing that if I need to ask a question about it I will probably experience something similar as what we have now.
Besides, I think that that "mailbox" method /might/ be harder, and you have told me not to bother with such "might be harder" things. Aren't you glad that I, for once, heed your advice ? :-)
Regards,
Rudy Wieser
If you where doubting for any reason I would not be using the default >programming language for an RPI you could surely have asked for it.
Hello all,
I've got a RPi 1B rev1, onto which I've installed "bullseye lite", meaning
no GUI of any kind.
I ofcourse wanted to see if I could draw some graphics on it. :-)
I've found that it supports a "Frame Buffer" onto which pixels can be plotted.
I also found the "fb.h" include file, and was able to get FBIOCOPYAREA to work.
As far as I know hardware mouse support is something that may or
may not exist depending on the underlying implementation of the
framebuffer device.
I did come across this presentation with links to a lot of
software using the framebuffer which you may find useful. <https://archive.fosdem.org/2020/schedule/event/fbdev/attachments/slides/3595/export/events/attachments/fbdev/slides/3595/fosdem_2020_nicolas_caramelli_linux_framebuffer.pdf>
Rudy, you have discovered how helpful this newsgroup is
and how welcoming to newcomers looking for guidance!
As a learning device for embedded computers, the "default
programming language" pushed by the R-Pi foundation is... PYTHON
Dennis,
As a learning device for embedded computers, the "default
programming language" pushed by the R-Pi foundation is... PYTHON
:-) I know a series of "learning programming devices" (often
microcontroller based), and they all have their own preferred scripting language. Some even using pictograms instead of words.
However, the default programming language for *Linux* still seems to be C, with most
often GCC as its compiler.
Regards,
Rudy Wieser
Theo,
The Pi hardware doesn't support a hardware pointer either, but AIUI
the GPU handles drawing it for you.
Do you have any (example) code which tells the GPU to do that ? 'Cause I >can't seem to find any (might be because I don't recognise it though :-| ).
And if that is so, how does it work with frame buffer (memory) writes ? How >does the {whatever} know when it should remove the fake cursor so the image >beneath it can be altered ?
Curently I have to disable (remove) my fake cursor before, and than enable >(draw) it again after each action which changes the frame buffer memory.
I think FBIO_CURSOR in that fb.h file is a red herring:
I've gotten that feeling too.
By the way, if you know any other frame buffer manipulation calls (draw >(filled) rectangles and circles, draw an image, draw lines(?) ) I would like >to hear about them. Even better if you happen to have a link to a Raspberry >Pi specific documentation of it. :-)
Regards,
Rudy Wieser
Not sure where the problem is,
Jan,
Not sure where the problem is,
I just want to know how to use the "linux frame buffer" API myself. The >problem is that somehow some people have a problem understanding that.
After that I can always install another something which will give me even >easier graphics access. But that will than probably be OpenGL. Supports 3D >too.
Regards,
Rudy Wieser
Hardware support .. why bother, frame is updated many times
per second. cursor is just a few pixels...?
delete old pixels draw a new one... in the buffer.
Jan,
Not sure where the problem is,
I just want to know how to use the "linux frame buffer" API myself. The problem is that somehow some people have a problem understanding that.
At least now you're specifying which frame buffer you mean
What irked me before was that you didn't do so even after
the problems with understanding had arisen.
On 07/07/2023 09:02, R.Wieser wrote:
Kev,That depends on if it is you that wants help...
At least now you're specifying which frame buffer you mean
Only after someone told me that that was the one I most likely ment
with all
my initialy given information (I'm still wondering how some, given that
info, could have assumed I would be referring to another one, hardware or
otherwise.).
What irked me before was that you didn't do so even after
the problems with understanding had arisen.
At some point you understood which one I ment, but you still needed me to
call it by its full name instead of the short one ? That sounds like
your
problem, not mine.
Regards,
Rudy Wieser
Kev,
At least now you're specifying which frame buffer you mean
Only after someone told me that that was the one I most likely ment with all my initialy given information (I'm still wondering how some, given that
info, could have assumed I would be referring to another one, hardware or otherwise.).
What irked me before was that you didn't do so even after
the problems with understanding had arisen.
At some point you understood which one I ment, but you still needed me to call it by its full name instead of the short one ? That sounds like your problem, not mine.
Regards,
Rudy Wieser
| Sysop: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 127 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 00:38:18 |
| Calls: | 7,687 |
| Calls today: | 3 |
| Files: | 9,369 |
| D/L today: |
580 files (262M bytes) |
| Messages: | 392,775 |
| Posted today: | 6 |