How to install video drivers

Hello,

I have a BeagleBoard xM with Debian Wheezy, kernel 3.2.23-x14.
Because I noticed it’s too slow for my needs I’m trying to install the video drivers, as describe in the guide:

http://elinux.org/BeagleBoardDebian#Xorg_omapfb_Drivers

Following the instructions leads to:

test@bbxm:~$ cat /var/log/Xorg.0.log | grep “(EE)”
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 249.859] (EE) omapfb(0): FBIOBLANK: Invalid argument

I see many other threads about this error but I can’t find a fix.
Please, may you help me to install the correct video drivers?

I’m interested in 2D only, or better, I’m interested to show full-screen video PAL from a USB dvr.
Thanks in advance

Hello,

I have a BeagleBoard xM with Debian Wheezy, kernel 3.2.23-x14.
Because I noticed it's too slow for my needs I'm trying to install the video
drivers, as describe in the guide:

armel or armhf? with Debian you should get a nice speed boost on armhf
as armel was greatly under utilizing the Cortex-A8 core..

BeagleBoardDebian - eLinux.org

Following the instructions leads to:

test@bbxm:~$ cat /var/log/Xorg.0.log | grep "(EE)"
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 249.859] (EE) omapfb(0): FBIOBLANK: Invalid argument

I see many other threads about this error but I can't find a fix.
Please, may you help me to install the correct video drivers?

It's probally:

http://gitweb.pingu.fi/?p=xf86-video-omapfb.git;a=commit;h=28c006c94e57ea71df11ec4fff79d7ffcfc4860f

as that commit never merged back into debian's packaging..

http://anonscm.debian.org/gitweb/?p=collab-maint/xf86-video-omapfb.git

I'm interested in 2D only, or better, I'm interested to show full-screen
video PAL from a USB dvr.

Well that "omapfb" framebuffer driver, is not really maintained
anymore.. There is work in progress to switch from "omapfb" to an
"omapdrm/kms" based stack with a new xorg "framebuffer" based driver..

If you want, you can test a v3.4.x based kernel from here, just follow
the Readme.md file for directions for the userspace stuff.

Regards,

armel or armhf? with Debian you should get a nice speed boost on armhf
as armel was greatly under utilizing the Cortex-A8 core…

armel…
To “switch” to armhf I need to reinstall everything, don’t I?

It’s probally:

http://gitweb.pingu.fi/?p=xf86-video-omapfb.git;a=commit;h=28c006c94e57ea71df11ec4fff79d7ffcfc4860f

as that commit never merged back into debian’s packaging…

http://anonscm.debian.org/gitweb/?p=collab-maint/xf86-video-omapfb.git

So it’s a bug?
mmm… that means the guide is wrong? At least because it doesn’t say it won’t work…

If you want, you can test a v3.4.x based kernel from here, just follow
the Readme.md file for directions for the userspace stuff.

https://github.com/beagleboard/kernel/tree/beagleboard-3.4

It’s currently cloning the files but it’s really slow (under 25 kB/s) so I think I will give it a try in the next days.
After patching the kernel what should I expect, actually? I mean: I will found the updated fb driver or what?

Thank you very much
Regards

armel...
To "switch" to armhf I need to reinstall everything, don't I?

Correct...

So it's a bug?
mmm... that means the guide is wrong? At least because it doesn't say it
won't work...

Yeah, looks like a bug... No the guide wasn't wrong, it WORKED when
written, now it just needs to be modified was a bug notice.. (thanks
for the bug report)

It's currently cloning the files but it's really slow (under 25 kB/s) so I
think I will give it a try in the next days.
After patching the kernel what should I expect, actually? I mean: I will
found the updated fb driver or what?

After patching the kernel (and of course building/installing the
kernel to your sd card..).. Look under "/boot/uboot/tools".. there's a
script called "build_omapdrm_drivers.sh" it'll take care of the
userspace xorg stuff. (building from source)..

Of course depending on what image you used to build your sd card, you
may have to bump the libdrm tag.. to "2.4.37"

Remember of course, it's all still under development at this point, so
patches welcome..

Regards,

Robert, I thank you again for your patience.
A last question: because I’m not an expert do you recommend to try armhf or patching the kernel?
I’m going to reinstall armhf, just using your netinstall script:

sudo ./mk_mmc.sh --mmc /dev/sdb --uboot beagle_xm --distro wheezy-armhf

This currently only works in serial mode at this point (--serial-mode)
for wheezy-armhf.. I'm waiting for the debian developers to push out
an update initrd.gz to work with, as it's not correctly detecting the
usb keyboards at this time.. What's odd, the same bug existed for
squeeze, but the workaround to force enable the keyboard isn't
working.. and ubuntu's version of the debian-installer/netinstall
fixed the bug...

Regards,

Humm... looks like it went out of the weekend..

http://ftp.us.debian.org/debian/dists/wheezy/main/installer-armhf/

I'll quickly test it..

Regards,

This currently only works in serial mode at this point (–serial-mode)
for wheezy-armhf… I’m waiting for the debian developers to push out
an update initrd.gz to work with, as it’s not correctly detecting the
usb keyboards at this time… What’s odd, the same bug existed for
squeeze, but the workaround to force enable the keyboard isn’t
working… and ubuntu’s version of the debian-installer/netinstall
fixed the bug…

Ok, I got it… so what’s the best distro I should use to get a very light environment to run a Qt4 application that shows the video acquired with best performances?

Great! Please, report your test results when you will have time to test it!
Thanks!

Thanks for great conversation. I am also waiting for the test results.

HaMZa

2012/7/16 Marco Trapanese <marcotrapanese@gmail.com>

So far it looks good with the update initrd.gz from debian..

I pushed out an update to remove the serial limitation..

https://github.com/RobertCNelson/netinstall/commit/b3c97b3b0320de9ebb404e096fa0beba9d5665b1

git pull to get it..

So far i've only tested on my Beagle xM C, upto the partition layout
page with both wheezy-armel and wheezy-armhf... Will start a full
wheezy-armhf install shortly, but you guys run into any other problems
let me know.. (specially since wheezy is in freeze mode, we probally
won't see to many more changes to the upstream netinstall..)

Regards,

Okay, noticed something odd while doing the full install, with
"wheezy-armhf".. It's actually pulling in sid packages..

cat /target/etc/apt/sources.list confirms..

I think we can fix that with a preseed.cfg override..

Regards,

I pushed a patch to make sure it stays with wheezy.. But it more
looks like the mirror i was using, was still in the middle of a
britney run, and rebuilding the Release files...

Regards,

Good news! I can't wait to try it on my board.
It's hard to do before Thursday... anyway I will leave a feedback here.

Thanks

I pushed a patch to make sure it stays with wheezy… But it more
looks like the mirror i was using, was still in the middle of a
britney run, and rebuilding the Release files…

Hi Robert,

I successfully installed debian wheezy using your patched files! - once found a working repository…
Then I launched /boot/uboot/tools/build_omapdrm_drivers.sh and now in /usr/lib/xorg/modules/drivers/ I have omap_drv.la and omap_drv.so.

Anyway when I try to start X I get the following error:

FATAL: Module omapdrm not found.

The same applies if I type modprobe omapdrm.

Do you have any hint also for this issue?
Thanks!
Marco