How do you enable 24 bits for Beaglebone Black?

347 views
Skip to first unread message

David Faulkner

unread,
Apr 30, 2017, 9:08:18 PM4/30/17
to BeagleBoard
Specs:

Beaglebone Black Rev C
Image Build 8.6 Jessie Debian
LCD- Apollo Display G104X1-L03



 So I am using the Beaglebone black and pairing it with a LVDS display. I layed out an interface board and hooked it up and at first it did not work unless I hooked up an HDMI
 interface. So I went into the uEnv.txt and unconmenteded the cmdline=coherent_pool=1M quiet cape_Universal=enable video=HDMI- A-1 1024x768@60e
and now it runs on its own. However the I have the board configured for 24 bit mode so the red and blue colors are swapped (See Picture below)



I was aware that when the am335 swaps red and blue in 24 bit mode so it makes sense as the default BSP is configured for 16.
But now I am struggling to enable 24 bit mode for the latest Jessie build.
For the early Angstrom images all you had to do was go into the X11/xorg.conf and change the color depth from 16 to 24 and it worked.

But for jessie if I do that it does the following on bootup:


I am assuming this is conflict with TI's tilcdc driver but Im not sure.

In any case what is the best way to enable 24 bits outside of the X11 config?

Thanks

Auto Generated Inline Image 1
Auto Generated Inline Image 2

Robert Nelson

unread,
Apr 30, 2017, 9:57:45 PM4/30/17
to Beagle Board

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/b81d8dc1-2a64-4c67-b228-92722e2614f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Robert Nelson
https://rcn-ee.com/

David Faulkner

unread,
Apr 30, 2017, 10:20:49 PM4/30/17
to BeagleBoard
That link is for different dts files which I have seen before.
So if I took one of them and compiled it to a dtbo file which is the correct way to enable it?

I have seen it done 2 ways:

1) Through the uEvt.txt file
2) Using the echo command to write to the slots file

Both were done with using older debian builds and I could never get it to work.

I am running Kernal 4.4.30 so based on your post that should be ok correct?
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

Charles Steinkuehler

unread,
Apr 30, 2017, 10:35:41 PM4/30/17
to beagl...@googlegroups.com
The dtbo file should be included in the kernel. The commit RCN linked
to was from two days ago.

...so, your issue has been fixed, but you need to update to a kernel
that includes the fix (ie: less than two days old).
> I was aware that when the am335 swaps red and blue in 24 bit mode so it
> makes sense as the default BSP is configured for 16.
> But now I am struggling to enable 24 bit mode for the latest Jessie build.
> For the early Angstrom images all you had to do was go into the
> X11/xorg.conf and change the color depth from 16 to 24 and it worked.
>
> But for jessie if I do that it does the following on bootup:
>
>
> I am assuming this is conflict with TI's tilcdc driver but Im not sure.
>
> In any case what is the best way to enable 24 bits outside of the X11
> config?
>
> Thanks
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to beagleboard...@googlegroups.com <javascript:>.
> <https://groups.google.com/d/msgid/beagleboard/b81d8dc1-2a64-4c67-b228-92722e2614f6%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
>
>
> --
> Robert Nelson
> https://rcn-ee.com/
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to beagleboard...@googlegroups.com
> <mailto:beagleboard...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/0442418d-075c-475a-8e8b-cb391da08684%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/0442418d-075c-475a-8e8b-cb391da08684%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>

--
Charles Steinkuehler
cha...@steinkuehler.net

Robert Nelson

unread,
Apr 30, 2017, 10:55:31 PM4/30/17
to Beagle Board
On Sun, Apr 30, 2017 at 9:20 PM, David Faulkner <dvfaul...@gmail.com> wrote:
That link is for different dts files which I have seen before.
So if I took one of them and compiled it to a dtbo file which is the correct way to enable it?

I have seen it done 2 ways:

1) Through the uEvt.txt file
2) Using the echo command to write to the slots file

Both were done with using older debian builds and I could never get it to work.

I am running Kernal 4.4.30 so based on your post that should be ok correct?

as long as it's a 4.4.30-ti based kernel..

Last week i started creating an overlay file for the newhaven 24bit lcd cape. (BB-BONE-NH7C-01-A0.dts)

in the process i noticed that mainline was broken with stretch on all my 24bit lcd's, that one line diff in teh *.dtbo fixed that, it also worked with ti's v4.4.x-ti..

as a side bonus, we no longer have to define the bit size in /etc/X11/xorg.conf

Regards,

David Faulkner

unread,
Apr 30, 2017, 10:59:00 PM4/30/17
to BeagleBoard
The link RNC provided was device tree source files for 3 different LCD's, not kernal builds.
I am very confused by "dtbo should be included with the kernal" because I thought the whole point
of using device trees was to avoid having to recompile the kernal...

In /lib/firmware you are correct, those dtbo file do exist. I have actually edited the pinmux configuration for 24 bit and compiled it but could not successfully
write it to the  slots file...

Robert Nelson

unread,
Apr 30, 2017, 11:02:54 PM4/30/17
to Beagle Board, dvfaul...@gmail.com
On Sun, Apr 30, 2017 at 9:58 PM, David Faulkner <dvfaul...@gmail.com> wrote:
> The link RNC provided was device tree source files for 3 different LCD's,
> not kernal builds.
> I am very confused by "dtbo should be included with the kernal" because I
> thought the whole point
> of using device trees was to avoid having to recompile the kernal...
>
> In /lib/firmware you are correct, those dtbo file do exist. I have actually
> edited the pinmux configuration for 24 bit and compiled it but could not
> successfully
> write it to the slots file...

Look at your overlay or device tree binary, what you use to init the
display. For the am335x family there is a lcdc node, add the

blue-and-red-wiring = "crossed";

option..

Or are you just loading the default device tree binary?

Regards,

David Faulkner

unread,
Apr 30, 2017, 11:03:20 PM4/30/17
to BeagleBoard
Ok, well I will try it out and let you know if it works. Do I have to disable the HDMI to avoid pin conflicts?

Robert Nelson

unread,
Apr 30, 2017, 11:04:56 PM4/30/17
to Beagle Board
On Sun, Apr 30, 2017 at 10:03 PM, David Faulkner <dvfaul...@gmail.com> wrote:
> Ok, well I will try it out and let you know if it works. Do I have to
> disable the HDMI to avoid pin conflicts?

Yeapers..

David Faulkner

unread,
May 1, 2017, 12:10:25 AM5/1/17
to BeagleBoard
So I tried compiling BB-BONE-NH7C-01-A0.dts but when I do I get the following error:


I am entering:

   dtc
-O dtb -o BB-BONE-NH7C-01-A0.dtbo -b 0 -@ BB-BONE-NH7C-01-A0.dts

and it returns the error... am i inputting the command wrong?
Auto Generated Inline Image 1

Alex Rodriguez

unread,
Jan 5, 2020, 4:36:35 PM1/5/20
to BeagleBoard
Hi David,

Could you provide details as to how you are using an LVDS display with the Beagle Bone Black? Also, which overlay are you using? Any other settings that you configured to get the display working?

Thanks!
Reply all
Reply to author
Forward
0 new messages