LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 08-29-2020, 11:24 AM   #1
MALDATA
Member
 
Registered: Mar 2005
Posts: 157

Rep: Reputation: 19
Understanding & implementing BananaPi video output


The title is pretty open-ended, but so is my question. It's not really even a specific question, I just have a major gap in my understanding of how graphical output works on ANY system, but in particular, I'm trying to figure it out for an Allwinner A33 (BPi-M2M). I'm hoping this forum can help me identify where I'm missing information. This is something that I've always kind of taken for granted on x86 systems. You plug in a monitor and pictures show up. I'm trying to learn how this works on embedded systems, and it's not as straightforward.

In the device tree for this board, there is already a GPU node and a simple framebuffer (though it needs to be enabled). The board has LVDS and MIPI-DSI outputs also. When it boots, there is a /dev/fb0 available, but no /dev/dri node and nothing in /sys/class/drm. Allwinner also has this concept of a display engine, which is also defined in the device tree, but I don't understand the role that it has.

If I want to attach a display to the BPi (LVDS or MIPI-DSI) and either get a virtual terminal on the display or run X (let's say for now I don't even need hardware acceleration), what would I need to do? There's a framebuffer, but in itself, isn't that just a chunk of memory in which you can compose a frame? What tells the system to send the data in that framebuffer to the actual LVDS or DSI pins? Does the video driver just know to do that based on how LVDS/DSI is configured in the device tree? Or is that the purpose of the display engine?

My best guess is that you have to construct a kernel mode setting and add a `video=` argument to the bootargs. But even then, it seems like something else has to be configured in order to tell X (or something like fbcon) to start drawing things in the framebuffer.

In short, what steps do I need to take (in general) in order to get a system like this to produce video output that I can actually use with an LVDS or DSI panel?
 
Old 09-30-2020, 01:53 PM   #2
chrisvollo
LQ Newbie
 
Registered: Sep 2020
Posts: 1

Rep: Reputation: Disabled
Hi,

Have you made any progress on this. I have limited understanding too, but I am working towards a similar solution using the R16 I need to get video output over the MIPI-DSI bus.

1. Device Tree: I understand device tree needs to be properly defined (need help on this, I have asked a question here): https://stackoverflow.com/questions/...16-to-dlpc3433


2. Proper Kernel Modules: the drivers need to be enabled when you build the kernel, you should look in the menuconfig under (off the top of my head) look roughly in Drivers > Graphics Drivers > (Look for sunxi stuff)

3. Boot options: I think you may be right about the video options.

That's my post on stackoverflow above. Please let me know if you have made any progress on this or have any leads!

Thanks,
Chris
 
  


Reply

Tags
bananapi, embedded, video out



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bananapi pro,display on monitor is 1" too far left glorsplitz Slackware - ARM 19 02-26-2019 07:45 PM
Custom Ov5640 driver on BananaPi M1 bues Linux - Embedded & Single-board computer 1 09-25-2018 07:56 AM
[ LeMaker BananaPi ] USB ports seem to be DOA ricky_cardo Slackware - ARM 24 02-21-2016 06:24 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Gotta love those ٱٱٱٱٱٱٱ&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration