[beagle board] B5 : always show black clolour

Board: beagle B5
LCD: can show beagle logo in uboot

Once I upgrade to v2.6.31 from
        git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git

and apply the patch:
         omapfb: Reorder Register_framebuffer call
         http://marc.info/?l=linux-omap&m=125277326104621&w=2

the dvi lcd can't show anything but black colour. And from view of the monitor,
there is video signal outputed from beagle, which can be indicated by the
green-led of monitor.

Also the fb device(/dev/fb0) can be accessed well by my test code.

I can provide more information if anyone needs.

Thanks.

From which kernel did you upgrade from?
The newer kernels need different boot args for setting the display mode.

Something like:
omapfb.mode=dvi:1440x900MR-16@60 in the bootargs.

-Deven

Thanks for your reply.

Board: beagle B5
LCD: can show beagle logo in uboot

Once I upgrade to v2.6.31 from

git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git

From which kernel did you upgrade from?

2.6.22.18-omap3

The newer kernels need different boot args for setting the display mode.

Something like:
omapfb.mode=dvi:1440x900MR-16@60 in the bootargs.

The option isn't supported by v2.6.31 of the omap git tree:

Uncompressing Linux.............................................................................
...................................... done, booting the kernel.
Linux version 2.6.31-omap1-05924-g3a3575e-dirty (lm@linux-lm) (gcc
version 4.2.1 (CodeSourcery S
ourcery G++ Lite 2007q3-51)) #80 Fri Sep 18 23:35:02 CST 2009
CPU: ARMv7 Processor [411fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: OMAP3 Beagle Board
Memory policy: ECC disabled, Data cache writeback
OMAP3430 ES2.1
SRAM: Mapped pa 0x40200000 to va 0xe3000000 size: 0x100000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw
rootdelay=5 omapfb.video_mode
=1024x768MR-16@60
Unknown boot option `omapfb.video_mode=1024x768MR-16@60': ignoring

rootdelay=5 omapfb.video_mode
=1024x768MR-16@60
Unknown boot option `omapfb.video_mode=1024x768MR-16@60': ignoring

You are still using the older option.
Have you tried this?
omapfb.mode=dvi:1440x900MR-16@60

BTW, the 2.6.31 tree does not work for me. I am using the B7 version of
the BB.

The version mentioned here works fine:
http://code.google.com/p/beagleboard/wiki/BeagleboardRevCValidation

-Deven

rootdelay=5 omapfb.video_mode
=1024x768MR-16@60
Unknown boot option `omapfb.video_mode=1024x768MR-16@60': ignoring

You are still using the older option.
Have you tried this?
omapfb.mode=dvi:1440x900MR-16@60

This is still not supported.

Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw
rootdelay=5 omapfb.mode=dvi:1440x900MR-16@60
Unknown boot option `omapfb.mode=dvi:1440x900MR-16@60': ignoring

BTW, the 2.6.31 tree does not work for me. I am using the B7 version of
the BB.

For me, looks like fb is the only bad boy.

The version mentioned here works fine:
Google Code Archive - Long-term storage for Google Code Project Hosting.

Yes, it does work, but I want to try v2.6.31.

Thanks.

Yes, it does work, but I want to try v2.6.31.

I am using the 2.6.31 pm (power management). The display is blank on
boot up.
The 2.6.31 does not boot up and is stuck after loading the kernel image
from the SD card.

I am trying to find out, how to set the video mode. But, no success yet.

I will share, if I find out.

-Deven

Yes, it does work, but I want to try v2.6.31.

I am using the 2.6.31 pm (power management). The display is blank on
boot up.
The 2.6.31 does not boot up and is stuck after loading the kernel image
from the SD card.

OMAP pm tree is just synchronized with v2.6.31-rc7 mainline now, and
has not reach v2.6.31.

I am trying to find out, how to set the video mode. But, no success yet.

I will share, if I find out.

me too, Thanks.

Ming Lei said the following on 09/19/2009 08:27 AM:

  

Yes, it does work, but I want to try v2.6.31.

I am using the 2.6.31 pm (power management). The display is blank on
boot up.
The 2.6.31 does not boot up and is stuck after loading the kernel image
from the SD card.
    
OMAP pm tree is just synchronized with v2.6.31-rc7 mainline now, and
has not reach v2.6.31.

I am trying to find out, how to set the video mode. But, no success yet.

I will share, if I find out.
    
me too, Thanks.

Some folks pointed me to [1] which does not help me either.. (I have a
similar experience on SDP3430[2]).. maybe some on who has a fix can post
on linux-omap too..

Regards,
Nishanth Menon
Ref:
[1] omapfb: Reorder Register_framebuffer call - Patchwork
[2] 'linux omap on sdp broken?' - MARC

Ming Lei said the following on 09/19/2009 08:27 AM:

Yes, it does work, but I want to try v2.6.31.

I am using the 2.6.31 pm (power management). The display is blank on
boot up.
The 2.6.31 does not boot up and is stuck after loading the kernel image
from the SD card.

OMAP pm tree is just synchronized with v2.6.31-rc7 mainline now, and
has not reach v2.6.31.

I am trying to find out, how to set the video mode. But, no success yet.

I will share, if I find out.

me too, Thanks.

Some folks pointed me to [1] which does not help me either.. (I have a
similar experience on SDP3430[2]).. maybe some on who has a fix can post
on linux-omap too..

The patch in [1] does fix the uninitialized mutex bug, and my problem is
that the fb can't display anything but black colour after applying patch in [1]
against v2.6.31-omap1.

thanks.

Ming Lei said the following on 09/19/2009 08:27 AM:
Some folks pointed me to [1] which does not help me either.. (I have a
similar experience on SDP3430[2]).. maybe some on who has a fix can post
on linux-omap too..

For the kernel suck in [2], I guess it is related with your config,
please try to use the
attachment .config.

Thanks.

conf (34.5 KB)

I have been struggling with a similar problem with trying to change
the video mode from 640x480 to 1280x960 on a Beagle Board I received
last week and loaded with the Angstrom demo. I actually have two
Beagle Boards, one a few months old with the 2.6.28 kernel running
1280x960 video and a new one I bought last week which has the 2.6.29
kernel.

What I have discovered is that the kernel command line
"omapfb.video_mode=1280x960MR-16@60" works fine on 2.6.28 but is an
error on 2.6.29.

The kernel command line "omapfb.mode=dvi:280x960MR-16@60" works on the
2.6.29 kernel.

So, ... one of the morals of this story is that the kernel command
lines are evolving a little bit and we have to be more careful.

Charles

Do you know where in the kernel should I look for the changes?
I have tried looking at the code, but not found an answer yet.

-Deven

Hi,

The DSS2 fb has been OK in my beagle board. If you want to make it run in
your board, you may follow the steps:

1), make a local branch, such as my_v2.6.31;

2), pull v2.6.31 from mainline into my_2.6.31;

3), pull the omap-dss2
              git://gitorious.org/linux-omap-dss2/linux.git
     into my_2.6.31;

4), apply the " Enable DSS2 for Beagle board" patch
         http://marc.info/?l=linux-omap&m=124964820805625&w=2
against my_v2.6.31 manually;

5),pass this into kernel :
            /*looks like only supporting bpp of 24 on beagle now*/
            omapfb.mode=1024x768MR-24@60

Enjoy it, :slight_smile:

thanks.