Ubuntu Precise 12.04 - TI OMAP Release PPA Update September 2012

7,535 views
Skip to first unread message

Boudet, Xavier

unread,
Sep 4, 2012, 8:25:05 AM9/4/12
to panda...@googlegroups.com
Hi there,

A major update has been done on TI PPA. Please read the below e-mail especially for upgrade.
If you do not have installed the TI release PPA, please refer to New installation procedure.

New installation procedure:
  1- Add TI OMAP release PPA:
    $ sudo su -
    # export http_proxy=<your proxy if any>
    # export https_proxy=<your proxy if any>
    # add-apt-repository ppa:tiomap-dev/release
  2- Perform the upgrade:
    $ sudo apt-get update
    $ sudo apt-get dist-upgrade
    $ sudo apt-get install ubuntu-omap4-extras
  3- You can re-run a dist-upgrade for safety at the end, then reboot

Update procedure:
1- Perform the upgrade:
    $ sudo apt-get update
    $ sudo apt-get dist-upgrade


Post Installation Important Information:
* after the installation/update, it is advised to log as default user and to execute:
    # On Panda 4430: 
    $ /usr/bin/alsaucm -c Panda set _verb HiFi 
    # On PandaES 4460: 
    $ /usr/bin/alsaucm -c PandaES set _verb HiFi

* You need to force installation of new bootloaders through command:
    $ sudo /usr/sbin/flash-kernel --update-bootloader

* It is advised to use Ubuntu 2D instead of Ubuntu (3D) default UI. Nevertheless, main compiz issues have been fixed.

* In some cases, you might need to re-install dkms packages: after reboot,  check if omapdrm_pvr module is loaded, if not execute following command before to reboot:
    $ sudo apt-get install --reinstall pvr-omap4-dkms

New/Fixed in August 2012 release:
 * Kernel bug fixes:
- SmartReflex Class 1.5 enabled with stability patches
- IVAHD Power management (turning off IVAHD in between frames)
- Temperature sensor fix
- Add ARM HW ERRATA 743622, 751472 and 742230, PL310: 769419, OMAP: i659, i608, i705.
- upstream patches + bug fixes:  suspend and wake-up fixes, reduced/fixed timer interrupt occurrences (twd)
 * H264 and MPEG4 video encoder. No camera support yet but Support for combo use-cases such as: v4l2 usb camera -> preview -> encode -> decode -> display.
   Below is an example of VTC (videoconference) e.g. V4L2 USB webcam + preview + encode + decode + display, using V4L2, DRI2 and PVR.
     gst-launch -v v4l2src ! stridetransform ! queue ! tee name=t \
     t. ! queue ! dri2videosink sync=false \
     t. ! queue ! ducatih264enc rate-preset=low-delay profile=100 ! h264parse ! ducatih264dec ! queue ! pvrvideosink sync=false
 * Decoder issues Fixes.
 * Xrandr Rotation Fixes.

Known Issues:
* BT is not supported
* Black screen issue on some HW - workaround: boot with screen un-plugged, plug it after 1 minute. Issue under investigation.

Support:
updates for bug fixes in the PPA, so make sure to keep your system up-to-date!


Reference/Reminder:

The 'top-level' ubuntu-omap-extras will install the following packages:
 - ubuntu-omap-extras-multimedia: another meta package that installs all the requires packages for MM use case:
   * GST, a modified version still compatible with all Ubuntu apps such as totem
   * gst-ducati and libDCE the main components that bring MM h/w acceleration into the system
 - ubuntu-omap-extras-graphics: meta package that pulls in all GFX components including new X11 driver (binary blob) and SGX kernel module (source using DKMS to build)
 - ubuntu-omap-extras-config: some config scripts to set some permission issues, and to ensure that the Ducati firmware is loaded at boot time by upstart.

This release comes with the following major changes:
 - DCE interface for the h/w accelerated codecs - already there in 11.10
 - migration to rpmsg driver (aka syslink3, see http://lwn.net/Articles/448562/ and http://omappedia.org/wiki/Category:RPMsg)
 - DRI2 extension for Video support (http://www.phoronix.com/scan.php?page=news_item&px=OTgxOQ)
 - migration to a new open source X11 driver for OMAP (http://cgit.freedesktop.org/xorg/driver/xf86-video-omap/ )
 - a new GST video-sink: dri2videosink to display video through the SGX (instead of v4l2sink). For more information, see https://wiki.linaro.org/OfficeofCTO/MemoryManagement?action=AttachFile&do=view&target=linux-video.pdf
 - Linux 3.4 kernel, Ubuntu kernel will be replaced. This kernel is largely based of Linaro kernel, and sources are available here: http://dev.omapzoom.org/?p=integration/kernel-ubuntu.git. Linux-image-<version> package version correspond to a tag ti-ubuntu-<kernel version>  in this tree.
 - ...

Regards, 

Xavier Boudet

Jim Darby

unread,
Sep 4, 2012, 5:28:57 PM9/4/12
to panda...@googlegroups.com
On 04/09/12 13:25, Boudet, Xavier wrote:
A major update has been done on TI PPA. Please read the below e-mail especially for upgrade.
If you do not have installed the TI release PPA, please refer to New installation procedure.

All very except that it now seems to have totally broken all my accelerated video (yes, I've rebooted).

For example, if I try to use totem to play video using the hardware acceleration I now get an error “general stream error” and a simple gst-launch -v ducatih264enc gives me

Setting pipeline to PAUSED ...
libdce.c:437:   init    info: attempting to open X11 connection
libdce.c:515:   init    error: could not get plugin ioctl base: -22
Setting pipeline to NULL ...
Freeing pipeline ...

Any ideas? Looks like the libdce hardware acceleration has somehow vanished.

One clue: it looks like the ducati is at the wrong version or something. If it do an apt-get install tiomap4-syslink-mm-ducati-firmware then I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ti-firmware-ipu-dce ubuntu-omap4-extras ubuntu-omap4-extras-multimedia

The following NEW packages will be installed:
  tiomap4-syslink-mm-ducati-firmware
0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded.
Need to get 0 B/5,444 kB of archives.
After this operation, 13.1 MB of additional disk space will be used.
Do you want to continue [Y/n]?
What's happening here?

Thanks in advance,

Jim.

fang bao

unread,
Sep 6, 2012, 2:41:37 AM9/6/12
to panda...@googlegroups.com
Yeah, this issue is same as my story.
Further more, I encountered frequent hang in Ubuntu boot step.

Boudet, Xavier

unread,
Sep 6, 2012, 3:33:38 AM9/6/12
to panda...@googlegroups.com
Hello, 

Sorry for the late answer.

First of all, tiomap4-syslink-mm-ducati-firmware has been replaced by ti-firmware-ipu-mm.

Fang Bao: can you check if the omapdrm_pvr module is present after boot? If not, please force re-install with command: sudo apt-get install --reinstall pvr-omap4-dkms.

Jim: not sure why you are using ducatih264enc... Can you just try:
DISPLAY=:0 gst-launch-0.10 playbin2 uri=file://<your file> video-sink="dri2videosink"

If you are still facing issue, please boot, reproduce the issue you are facing then execute as root or with sudo: omap-collect-info
Then send me the output file.

Regards, 

Xavier Boudet 

Boudet, Xavier

unread,
Sep 6, 2012, 5:17:33 AM9/6/12
to panda...@googlegroups.com
I just checked https://bugs.launchpad.net/ubuntu-omap4-extras-multimedia/+bug/1046226

You have executed:
md5sum /lib/firmware/ducati-m3-core0.xem
Please execute:
md5sum /lib/firmware/ducati-m3-core0.xem3

You shall get something like that:
7a15454a89945bf0ac48ecee92a7a42d  /lib/firmware/ducati-m3-core0.xem3

If not the case please reinstall ti-firmware-ipu-dce.

fang bao

unread,
Sep 6, 2012, 5:38:05 AM9/6/12
to panda...@googlegroups.com, x-bo...@ti.com
Hi Boudet,

I have checked the omapdrm_pvr module, it was loaded by kernel.

fang bao

unread,
Sep 6, 2012, 5:39:15 AM9/6/12
to panda...@googlegroups.com, x-bo...@ti.com
I have confirmed. The md5 is correct.

# md5sum /lib/firmware/ducati*

7a15454a89945bf0ac48ecee92a7a42d /lib/firmware/ducati-m3-core0.xem3

Boudet, Xavier

unread,
Sep 6, 2012, 5:51:15 AM9/6/12
to fang bao, panda...@googlegroups.com
Having a look to the dmesg output from https://bugs.launchpad.net/ubuntu-omap4-extras-multimedia/+bug/1046226
The problem is clearly here:
[   11.473022] cma: dma_alloc_from_contiguous(cma ed10bdc0, count 25088, align 8)
[   11.479644] alloc_contig_range test_pages_isolated(99700, 9f900) failed
[   11.482086] cma: dma_alloc_from_contiguous(): memory range at c0e59000 is busy, retrying
[   11.485717] alloc_contig_range test_pages_isolated(99800, 9fa00) failed
[   11.487792] cma: dma_alloc_from_contiguous(): memory range at c0e5b000 is busy, retrying
[   11.493316] alloc_contig_range test_pages_isolated(99800, 9fb00) failed
[   11.496856] cma: dma_alloc_from_contiguous(): memory range at c0e5d000 is busy, retrying
[   11.511535] alloc_contig_range test_pages_isolated(99800, 9fc00) failed
[   11.514160] cma: dma_alloc_from_contiguous(): memory range at c0e5f000 is busy, retrying
[   11.515563] Unable to handle kernel NULL pointer dereference at virtual address 000000ec
I would be surprised it comes from the bootargs, but indeed you might try.
I answered you the following into the bug:

You need in fact to edit as root the file /boot/boot.script
update the bootargs line as follow:
setenv bootargs ro elevator=noop mem=1G@0x80000000 root=UUID=4dd037b6-24e8-4602-9caa-f13574fb6709 fixrtc quiet splash

You will then need to execute: sudo flash-kernel
Finally reboot

Xavier Boudet

fang bao

unread,
Sep 6, 2012, 6:12:03 AM9/6/12
to panda...@googlegroups.com, fang bao, x-bo...@ti.com
Thanks Boudet. Following your instructions, the new kernel command line has been flashed into boot image.
After reboot, I find the correct kernel command in dmesg log.

But when I run totem to play H264 stream, there is a new error:

$ totem XXXXXXX.MP4
libdce.c:437:    init    info: attempting to open X11 connection
** Message: Error: Could not decode stream.
gstducatividdec.c(1081): gst_ducati_viddec_chain (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstDucatiH264Dec:ducatih264dec0:
process returned error: -1 08008000

When I tried again, there is no error printed. But totem can't play stream also.

So the HW MM codec doesn't work.

Boudet, Xavier

unread,
Sep 6, 2012, 6:57:59 AM9/6/12
to fang bao, panda...@googlegroups.com
Do you still have the same messages in dmesg?
[   11.473022] cma: dma_alloc_from_contiguous(cma ed10bdc0, count 25088, align 8)
[   11.479644] alloc_contig_range test_pages_isolated(99700, 9f900) failed
[   11.482086] cma: dma_alloc_from_contiguous(): memory range at c0e59000 is busy, retrying
[   11.485717] alloc_contig_range test_pages_isolated(99800, 9fa00) failed
...

fang bao

unread,
Sep 6, 2012, 7:21:27 AM9/6/12
to panda...@googlegroups.com, fang bao, x-bo...@ti.com
No, there is no related failed mssage in dmesg. All related messages are listed below:

[   10.428894] cma: dma_alloc_from_contiguous(cma ed10bdc0, count 3, align 2)
[   10.433563] cma: dma_alloc_from_contiguous(): returned c0e4b000
[   10.433654] cma: dma_alloc_from_contiguous(cma ed10bdc0, count 3, align 2)
[   10.435455] cma: dma_alloc_from_contiguous(): returned c0e4b080
[   10.435577] rproc remoteproc1: powering up ipu_c0
[   10.489440] rproc remoteproc1: Booting fw image ducati-m3-core0.xem3, size 3595847
[   10.489562] omap-iommu omap-iommu.1: ipu: version 2.1
[   10.489593] cma: dma_alloc_from_contiguous(cma ed10bdc0, count 1536, align 8)
[   10.492095] cma: dma_alloc_from_contiguous(): returned c0e4d000
[   10.508117] cma: dma_alloc_from_contiguous(cma ed10bdc0, count 25088, align 8)
[   10.528198] cma: dma_alloc_from_contiguous(): returned c0e59000
[   10.726684] cma: dma_alloc_from_contiguous(cma ed10bdc0, count 256, align 8)
[   10.728057] cma: dma_alloc_from_contiguous(): returned c0f1d000
[   10.760162] rproc remoteproc1: remote processor ipu_c0 is now up
[   10.760742] cma: dma_alloc_from_contiguous(cma ed10bdc0, count 64, align 6)
[   10.762817] cma: dma_alloc_from_contiguous(): returned c0e4b800
[   10.765258] virtio_rpmsg_bus virtio0: rpmsg host is online
[   10.765289] rproc remoteproc1: registered virtio0 (type 7)
[   10.843231] usb 1-1.3: link qh8-0e01/eb705940 start 5 [1/2 us]
[   11.243743] omap-rproc omap-rproc.1: received echo reply from ipu_c0

Boudet, Xavier

unread,
Sep 6, 2012, 9:37:54 AM9/6/12
to fang bao, panda...@googlegroups.com
Ok, then everything shall be OK now...
Can you try different videos?
All videos are failing or only few?

Jim Darby

unread,
Sep 6, 2012, 9:46:57 AM9/6/12
to panda...@googlegroups.com
Just a very simple update.

Yes, I too see the black screen on boot up. It's not actually a hang but some sort of failure to start the X server properly.

Oddly, the workaround is to switch to the control using Control-Alt-F1 and then back to X with Control-Alt-F7.

I have no explanation for what this problem is or why the workaround works but it seems to.

I didn't mention it in my original e-mail to avoid complicating the discussion.

In related news I logged into my pandaboard remotely (I'm not at the same location right now), modified the /boot/boot.script and it now seems to work a little better. I'll report in later when I can log onto the screen and try the other tests.

Regards,

Jim.

p.s. Thanks to everyone for the help in diagnosing this problem.

Boudet, Xavier

unread,
Sep 6, 2012, 10:19:48 AM9/6/12
to panda...@googlegroups.com
Thanks Jim,
If you are still seeing issue, do not hesitate to collect data though : sudo omap-collect-info

Jim Darby

unread,
Sep 6, 2012, 3:03:35 PM9/6/12
to panda...@googlegroups.com
Bingo! After the modifications to /boot/boot.script it now works perfectly. Many thanks for your prompt help in fixing this.

Can I just ask what on earth all the mem= runes were? It looks like it was trying to place RAM all over the machines address space. The latest version looks like it puts all the RAM in one place half way up the physical address space. This seems a little curious, is there any specific reason for it?

For that reason why was it split before and what happened to the vram parameter (or whatever it was called)? I'[m very interested in the PandaBoard's architecture.

Also, not that I'm being ungrateful, but we still have the minor irritation of the black login screen.

Finally I was looking at the options for ducatih264enc. It would appear that it can handle constant bit rate and various levels of the standard but there doesn't seem to be an option to allow variable bit rate with a fixed quality. Am I missing something here?

Once again, many thanks for your help.

Jim.


On 06/09/12 15:19, Boudet, Xavier wrote:
Thanks Jim,
If you are still seeing issue, do not hesitate to�collect�data though : sudo omap-collect-info


On Thu, Sep 6, 2012 at 3:46 PM, Jim Darby <ubersc...@gmail.com> wrote:
Just a very simple update.

Yes, I too see the black screen on boot up. It's not actually a hang but some sort of failure to start the X server properly.

Oddly, the workaround is to switch to the control using Control-Alt-F1 and then back to X with Control-Alt-F7.

I have no explanation for what this problem is or why the workaround works but it seems to.

I didn't mention it in my original e-mail to avoid complicating the discussion.

In related news I logged into my pandaboard remotely (I'm not at the same location right now), modified the /boot/boot.script and it now seems to work a little better. I'll report in later when I can log onto the screen and try the other tests.

Regards,

Jim.

p.s. Thanks to everyone for the help in diagnosing this problem.


On 06/09/12 07:41, fang bao wrote:
Yeah, this issue is same as my story.
Further more, I encountered frequent hang in Ubuntu boot step.

On Wednesday, September 5, 2012 5:28:57 AM UTC+8, JimD wrote:
On 04/09/12 13:25, Boudet, Xavier wrote:
A major update has been done on TI PPA. Please read the below e-mail especially for upgrade.
If you do not have installed the TI release PPA, please refer to New installation procedure.

All very except that it now seems to have totally broken all my accelerated video (yes, I've rebooted).

For example, if I try to use totem to play video using the hardware acceleration I now get an error �general stream error� and a simple gst-launch -v ducatih264enc gives me

Setting pipeline to PAUSED ...
libdce.c:437:�� init��� info: attempting to open X11 connection
libdce.c:515:�� init��� error: could not get plugin ioctl base: -22

Setting pipeline to NULL ...
Freeing pipeline ...

Any ideas? Looks like the libdce hardware acceleration has somehow vanished.

One clue: it looks like the ducati is at the wrong version or something. If it do an apt-get install tiomap4-syslink-mm-ducati-firmware then I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
� ti-firmware-ipu-dce ubuntu-omap4-extras ubuntu-omap4-extras-multimedia

The following NEW packages will be installed:
� tiomap4-syslink-mm-ducati-firmware

0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded.
Need to get 0 B/5,444 kB of archives.
After this operation, 13.1 MB of additional disk space will be used.
Do you want to continue [Y/n]?

fang bao

unread,
Sep 7, 2012, 5:42:00 AM9/7/12
to panda...@googlegroups.com, fang bao, x-bo...@ti.com
I tried H264, MPEG2 and MPEG4 streams. The results are same.
All streams could not be played by totem.

fang bao

unread,
Sep 7, 2012, 5:43:53 AM9/7/12
to panda...@googlegroups.com
Hi Jim,

Does the HW codec work on your pandaboard now?

Fang Bao

Jim Darby

unread,
Sep 7, 2012, 6:23:24 AM9/7/12
to panda...@googlegroups.com
On 07/09/12 10:43, fang bao wrote:
Does the HW codec work on your pandaboard now?

Yes it does. For reference the command line I used to encode from a MPEG-2 stream to H.264 was:
gst-launch-0.10 filesrc location=in.m2v ! mpeg2dec ! videorate ! ffmpegcolorspace ! ducatih264enc level=51 bitrate=1000 ! h264parse ! matroskamux ! filesink location=out.mkv
I'm not sure how many of the filters are needed, especially videorate and ffmpegcolorspace.

Hope this helps,

By the way, you need to run this in a console under X for it to work properly. Otherwise it can't get hold of the DRI infrastructure that controls the DSP for encoding.

Jim.

Nicolas Dechesne

unread,
Sep 7, 2012, 8:27:39 AM9/7/12
to panda...@googlegroups.com
On Thu, Sep 6, 2012 at 9:03 PM, Jim Darby <ubersc...@gmail.com> wrote:
> Bingo! After the modifications to /boot/boot.script it now works perfectly.
> Many thanks for your prompt help in fixing this.

cool!

>
> Can I just ask what on earth all the mem= runes were? It looks like it was
> trying to place RAM all over the machines address space. The latest version
> looks like it puts all the RAM in one place half way up the physical address
> space. This seems a little curious, is there any specific reason for it?

well, since we migrated to 12.04 we have changed how the memory
allocation is done for h/w accelerator (IVAHD/Ducati). It used to be
that we were making explicit 'memory holes' in the linux memory map by
using specific 'mem=' command in the bootargs. Generally we would
reserve (carevout) ~50Mb, right before the 512Mb (so pretty much in
the middle of the 1G).

that's why you needed to have the exact same bootargs that we
expected. this address was hard coded in the kernel, and ducati
firmware.

with the migration to the new syslink, called rpmsg, we have changed
the way the memory is allocated, and we know rely on the (now merged
in mainline) CMA feature. I think your problems were because CMA
wasn't able to allocate the memory because you had created these
artifical holes in the memory map.

>
> For that reason why was it split before and what happened to the vram
> parameter (or whatever it was called)? I'[m very interested in the
> PandaBoard's architecture.

the vram was a parameter used by the previous video driver, and which
is not used anymore with the new omapdrm driver.

>
> Also, not that I'm being ungrateful, but we still have the minor irritation
> of the black login screen.
>
> Finally I was looking at the options for ducatih264enc. It would appear that
> it can handle constant bit rate and various levels of the standard but there
> doesn't seem to be an option to allow variable bit rate with a fixed
> quality. Am I missing something here?

i would have to check that, as i don't know. perhaps rob or Olivier would know.

Jim Darby

unread,
Sep 7, 2012, 10:58:40 AM9/7/12
to panda...@googlegroups.com, Jim Darby
I've also noticed another curious issue with the new kernel.

I've put the console=ttyO2,115200n8 at the end of my setenv in my /boot/boot.script and most of the kernel output appears on the serial port. At least for a short period after boot.

However, after a while many of the lines fail to appear. Note that there are no half lines: the line is either entirely there or not there at all. Mostly the latter.

Any idea what's going on here?

I'm not complaining, I just want to be able to help us produce a better kernel.

Regards,

Jim.

p.s. The new kernel does seem a lot more stable. The reason that I added the setenv option was to capture debugging when the kernel panicked. So now it's not panicking nearly as much but when it does (once) I can't capture the debug output. By the way, what provoked the only panic was running totem on a 720p film.

I thought the PandaBoard was supposed to be able to do 1080? Even the 720 film was running at over 100% CPU utilisation (yes, I know it's dual core). It is using the hardware acceleration though. Without it the results are terrible!

p.p.s. The initial black login screen problem is still there.

Nicolas Dechesne

unread,
Sep 7, 2012, 11:15:00 AM9/7/12
to panda...@googlegroups.com, Jim Darby
On Fri, Sep 7, 2012 at 4:58 PM, Jim Darby <ubersc...@gmail.com> wrote:
> p.s. The new kernel does seem a lot more stable. The reason that I added the
> setenv option was to capture debugging when the kernel panicked. So now it's
> not panicking nearly as much but when it does (once) I can't capture the
> debug output. By the way, what provoked the only panic was running totem on
> a 720p film.
>
> I thought the PandaBoard was supposed to be able to do 1080? Even the 720
> film was running at over 100% CPU utilisation (yes, I know it's dual core).
> It is using the hardware acceleration though. Without it the results are
> terrible!

a 1080p movie playback should be less than 20% CPU load if you are
using IVAHD h/w accelerator and GPU to render... if you don't get
that, there is a problem.

note that only MPEG4, H264, MPEG2 and VC1 are h/w accelerated, not VP*

Jim Darby

unread,
Sep 7, 2012, 11:31:15 AM9/7/12
to panda...@googlegroups.com
On 07/09/12 16:15, Nicolas Dechesne wrote:
> a 1080p movie playback should be less than 20% CPU load if you are
> using IVAHD h/w accelerator and GPU to render... if you don't get
> that, there is a problem. note that only MPEG4, H264, MPEG2 and VC1
> are h/w accelerated, not VP*

OK, it was a H.264 encoded 720p film so it should have been better. I've
just checked and it seems pretty consistent. Also with a 576p input I
seem to be getting around 75% CPU. I've check and GStreamer is opening
/dev/dri/card0.

Also I think I have some sort of CPU frequency changing going on. The
BogoMIPS in /proc/cpuinfo change depending on CPU loading so that may be
affecting it. However, I don't seem to have any of the cpufreq modules
loaded....

Could you suggest some ways of diagnosing this more? Specifically, how
could I check if the hardware decoding is actually working?

Many thanks for your help,

Jim.

Nicolas Dechesne

unread,
Sep 7, 2012, 11:55:48 AM9/7/12
to panda...@googlegroups.com
On Fri, Sep 7, 2012 at 5:31 PM, Jim Darby <ubersc...@gmail.com> wrote:
> OK, it was a H.264 encoded 720p film so it should have been better. I've
> just checked and it seems pretty consistent. Also with a 576p input I seem
> to be getting around 75% CPU. I've check and GStreamer is opening
> /dev/dri/card0.
>
> Also I think I have some sort of CPU frequency changing going on. The
> BogoMIPS in /proc/cpuinfo change depending on CPU loading so that may be
> affecting it. However, I don't seem to have any of the cpufreq modules
> loaded....

you can use "cpufreq-info", and paste the output (apt-get install
cpufrequtils). it gives me this:


$ cpufreq-info
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpu...@vger.kernel.org, please.
analyzing CPU 0:
driver: omap2plus
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 0 1
maximum transition latency: 300 us.
hardware limits: 350 MHz - 1.20 GHz
available frequency steps: 350 MHz, 700 MHz, 920 MHz, 1.20 GHz
available cpufreq governors: conservative, ondemand, userspace,
powersave, performance
current policy: frequency should be within 350 MHz and 1.20 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 350 MHz.
cpufreq stats: 350 MHz:99.76%, 700 MHz:0.02%, 920 MHz:0.02%, 1.20
GHz:0.20% (879)
analyzing CPU 1:
driver: omap2plus
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 0 1
maximum transition latency: 300 us.
hardware limits: 350 MHz - 1.20 GHz
available frequency steps: 350 MHz, 700 MHz, 920 MHz, 1.20 GHz
available cpufreq governors: conservative, ondemand, userspace,
powersave, performance
current policy: frequency should be within 350 MHz and 1.20 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 350 MHz.
cpufreq stats: 350 MHz:99.76%, 700 MHz:0.02%, 920 MHz:0.02%, 1.20
GHz:0.20% (879)

I am running something quite close to what's in the PPA, you should
get something similar.

>
> Could you suggest some ways of diagnosing this more? Specifically, how could
> I check if the hardware decoding is actually working?

the *easiest* way is to observe interupts during playback, with "itop"
if you use h/w acceleration for video, you will see MAILBOX interupts.
there is 1 interrupt for each frame decoded. so if you decode at
25fps, you will see 25 IT per second ;-)

Jim Darby

unread,
Sep 7, 2012, 12:23:50 PM9/7/12
to panda...@googlegroups.com
Thanks for the very useful information!

My results for cpufreq-info are indeed very similar. Specifically they are (and this is when running a 576p h.264 file):
jim@jim-panda:~$ cpufreq-info
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpu...@vger.kernel.org, please.
analyzing CPU 0:
  driver: omap2plus
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 300 us.
  hardware limits: 350 MHz - 1.20 GHz
  available frequency steps: 350 MHz, 700 MHz, 920 MHz, 1.20 GHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 350 MHz and 1.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 350 MHz.
  cpufreq stats: 350 MHz:95.58%, 700 MHz:2.68%, 920 MHz:0.44%, 1.20 GHz:1.30%  (850)

analyzing CPU 1:
  driver: omap2plus
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 300 us.
  hardware limits: 350 MHz - 1.20 GHz
  available frequency steps: 350 MHz, 700 MHz, 920 MHz, 1.20 GHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 350 MHz and 1.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 350 MHz.
  cpufreq stats: 350 MHz:95.58%, 700 MHz:2.68%, 920 MHz:0.44%, 1.20 GHz:1.30%  (850)
I'm getting the 25 interrupts per second on the mailbox:
INT                NAME          RATE             MAX
 29 [          GIC  twd]   167 Ints/s     (max:   198)
 53 [      GIC  SGX ISR]   157 Ints/s     (max:   556)
 58 [GIC  mailbox-1, ma]    25 Ints/s     (max:    33)
109 [GIC  ehci_hcd:usb1]   195 Ints/s     (max:  2858)
145 [GIC  omap_dmm_irq_]   102 Ints/s     (max:   123)
and generally it's looking pretty much as it should. However, I am still getting the 75% CPU utilisation.

But! Not that the cpufreq-info result above said it was using 350MHz! Maybe that's the give away? Let's try a quick sudo cpufreq-set -g performance and see what happens! Humm... Down to 35%. Now let's try a 720p film: and I'm getting around 100%. That's curious.... Not the 20% we were expecting.

I wonder where all the time is going? Audio decode?

Now that's interesting: switching to a different film in an MKV with H.264 video and DTS audio I'm down to 20% CPU! Hurrah! But with H.264 and AAC audio in a .MP4 I get the high load.

Looks like this is worth noting.

Many thanks for your help in sorting this one,

Jim.

p.s. Now just the black login screen and the losing of debugging on the serial output to solve.....

Joaquin Castellanos

unread,
Sep 7, 2012, 7:11:36 PM9/7/12
to panda...@googlegroups.com
Hi Xavier

I followed also the steps for installing the PPA Update, including the /boot/boot.script editing, the pvr-omap4-dkms re-installation and the flashing-kernel.
Everything works fine if I play sample videoclips in pandaboards rev.A4, but with the same SDcard and pipelines it hangs if I try in a rev.A3 pandaboard.

Perhaps that is the issue seen by fang bao

-----------
jjcgp12@jjcgp12-desktop:~$ DISPLAY=:0 gst-launch-0.10 playbin2 uri=file:///home/jjcgp12/Videos/MPEG4_VGA_AAC_HE.3gp   video-sink="dri2videosink"     --gst-debug="*video*:5"

Setting pipeline to PAUSED ...
0:00:00.651184103  2637  0x16eaa00 DEBUG          dri2videosink gstdri2videosink.c:513:gst_dri2videosink_change_state:<dri2videosink0> 1 -> 2
0:00:00.660522483  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:187:gst_dri2context_new:<dri2videosink0> DRI2QueryExtension: eventBase=74, errorBase=0
0:00:00.661682151  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:195:gst_dri2context_new:<dri2videosink0> DRI2QueryVersion: major=1, minor=4
0:00:00.662872336  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:207:gst_dri2context_new:<dri2videosink0> DRI2Connect: driver=omap, device=/dev/dri/card0
0:00:00.665191672  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:239:gst_dri2context_new:<dri2videosink0> Found 9 supported formats:
0:00:00.665588400  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:243:gst_dri2context_new:<dri2videosink0>   0: 3231564e ("NV12")
0:00:00.666442892  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:243:gst_dri2context_new:<dri2videosink0>   1: 32315659 ("YV12")
0:00:00.666809103  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:243:gst_dri2context_new:<dri2videosink0>   2: 30323449 ("I420")
0:00:00.667175314  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:243:gst_dri2context_new:<dri2videosink0>   3: 59565955 ("UYVY")
0:00:00.667602561  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:243:gst_dri2context_new:<dri2videosink0>   4: 32595559 ("YUY2")
0:00:00.667999289  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:245:gst_dri2context_new:<dri2videosink0>   5: 00000018 (device dependent)
0:00:00.668334983  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:245:gst_dri2context_new:<dri2videosink0>   6: 00000020 (device dependent)
0:00:00.668670676  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:243:gst_dri2context_new:<dri2videosink0>   7: 34325258 ("XR24")
0:00:00.668975852  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:243:gst_dri2context_new:<dri2videosink0>   8: 34325241 ("AR24")
0:00:00.669281028  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:127:gst_dri2context_calculate_pixel_aspect_ratio: calculated pixel aspect ratio: 1.000000
0:00:00.669647239  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:142:gst_dri2context_calculate_pixel_aspect_ratio: Decided on index 0 (1/1)
0:00:00.670043967  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:153:gst_dri2context_calculate_pixel_aspect_ratio: set dcontext PAR to 1/1
0:00:00.670410178  2637  0x16eaa00 DEBUG          dri2videosink gstdri2videosink.c:531:gst_dri2videosink_change_state:<dri2videosink0> set calculated PAR on object's PAR
0:00:00.670715354  2637  0x16eaa00 DEBUG          dri2videosink gstdri2videosink.c:262:gst_dri2videosink_manage_event_thread:<dri2videosink0> run xevent thread
Pipeline is PREROLLING ...
libdce.c:437:    init    info: attempting to open X11 connection
0:00:00.954376242  2637  0x1732350 DEBUG        mpeg4videoparse gstmpeg4videoparse.c:210:gst_mpeg4vparse_start:<mpeg4vparse0> start
0:00:00.996734641  2637 0xb5104400 DEBUG        mpeg4videoparse gstmpeg4videoparse.c:629:gst_mpeg4vparse_set_caps:<mpeg4vparse0> setcaps called with video/mpeg, mpegversion=(int)4, systemstream=(boolean)false, profile=(string)simple, level=(string)1, codec_data=(buffer)000001b001000001b58913000001000000012000c48d8800f514043c1463, width=(int)640, height=(int)480, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1
0:00:00.997985862  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:258:gst_mpeg4vparse_process_config:<mpeg4vparse0> Width/Height: 640/480, time increment resolution: 30 fixed time increment: 0
0:00:00.998352072  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:262:gst_mpeg4vparse_process_config:<mpeg4vparse0> accepting parsed config size 30
0:00:00.998931906  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:381:gst_mpeg4vparse_check_valid_frame:<mpeg4vparse0> parsing new frame
0:00:00.999450705  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:284:gst_mpeg4vparse_process_sc:<mpeg4vparse0> process startcode b6
0:00:00.999786399  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:308:gst_mpeg4vparse_process_sc:<mpeg4vparse0> startcode is VOP
0:00:01.000091574  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:431:gst_mpeg4vparse_check_valid_frame:<mpeg4vparse0> Looking for frame end
0:00:01.008331320  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:385:gst_mpeg4vparse_check_valid_frame:<mpeg4vparse0> resuming frame parsing
0:00:01.008758566  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:431:gst_mpeg4vparse_check_valid_frame:<mpeg4vparse0> Looking for frame end
0:00:01.009124777  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:284:gst_mpeg4vparse_process_sc:<mpeg4vparse0> process startcode b6
0:00:01.009429953  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:298:gst_mpeg4vparse_process_sc:<mpeg4vparse0> ending frame of size 3430, is intra 1
0:00:01.010528586  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:479:gst_mpeg4vparse_update_src_caps:<mpeg4vparse0> Updating caps
0:00:01.111694357  2637  0x17327b0 DEBUG            videofilter gstvideofilter.c:119:gst_video_filter_init:<GstVideoFilter@0x177a000> gst_video_filter_init
0:00:01.139373801  2637  0x17327b0 DEBUG          dri2videosink gstdri2videosink.c:513:gst_dri2videosink_change_state:<dri2videosink0> 2 -> 3
0:00:01.687469505  2637 0xb5104400 LOG            dri2videosink gstdri2videosink.c:681:gst_dri2videosink_buffer_alloc:<dri2videosink0> a buffer of 589824 bytes was requested with caps video/x-raw-yuv, format=(fourcc)NV12, width=(int)768, height=(int)512, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1 and offset 0
0:00:01.699951194  2637 0xb5104400 DEBUG          dri2videosink gstdri2videosink.c:694:gst_dri2videosink_buffer_alloc:<dri2videosink0> setting requested caps
0:00:01.702667258  2637 0xb5104400 DEBUG          dri2videosink gstdri2videosink.c:411:gst_dri2videosink_setcaps:<dri2videosink0> sinkconnect possible caps with given caps %
0:00:01.705596946  2637 0xb5104400 DEBUG          dri2videosink gstdri2videosink.c:367:gst_dri2videosink_configure_overlay:<dri2videosink0> video width/height: 768x512, calculated display ratio: 3/2
0:00:01.709777854  2637 0xb5104400 DEBUG          dri2videosink gstdri2videosink.c:376:gst_dri2videosink_configure_overlay:<dri2videosink0> keeping video height
0:00:01.712310813  2637 0xb5104400 DEBUG          dri2videosink gstdri2videosink.c:393:gst_dri2videosink_configure_overlay:<dri2videosink0> scaling to 768x512
0:00:01.716156028  2637 0xb5104400 DEBUG          dri2videosink gstdri2videosink.c:322:gst_dri2videosink_create_window:<dri2videosink0> begin
0:00:01.718078635  2637 0xb5104400 DEBUG          dri2videosink gstdri2util.c:364:gst_dri2window_new:<dri2videosink0> creating window: 768x512
0:00:01.744934104  2637 0xb5104400 DEBUG          dri2videosink gstdri2util.c:732:get_buffer:<dri2videosink0> got 0 buffer(s)
0:00:01.748748802  2637 0xb5104400 DEBUG          dri2videosink gstdri2videosink.c:331:gst_dri2videosink_create_window:<dri2videosink0> end
0:00:01.754730247  2637 0xb5104400 LOG            dri2videosink gstdri2util.c:693:gst_dri2window_buffer_alloc:<dri2videosink0> Creating buffer pool
0:00:02.020416282  2637 0xb5104400 DEBUG          dri2videosink gstdri2util.c:732:get_buffer:<dri2videosink0> got 1 buffer(s)
0:00:02.073211692  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:381:gst_mpeg4vparse_check_valid_frame:<mpeg4vparse0> parsing new frame
0:00:02.075714134  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:284:gst_mpeg4vparse_process_sc:<mpeg4vparse0> process startcode b6
0:00:02.076477073  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:308:gst_mpeg4vparse_process_sc:<mpeg4vparse0> startcode is VOP
0:00:02.076995872  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:431:gst_mpeg4vparse_check_valid_frame:<mpeg4vparse0> Looking for frame end
0:00:02.077697776  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:284:gst_mpeg4vparse_process_sc:<mpeg4vparse0> process startcode b6
0:00:02.078216575  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:298:gst_mpeg4vparse_process_sc:<mpeg4vparse0> ending frame of size 164, is intra 0
0:00:02.078826926  2637 0xb5104400 LOG          mpeg4videoparse gstmpeg4videoparse.c:479:gst_mpeg4vparse_update_src_caps:<mpeg4vparse0> Updating caps
0:00:02.079864524  2637 0xb5104400 LOG            dri2videosink gstdri2videosink.c:681:gst_dri2videosink_buffer_alloc:<dri2videosink0> a buffer of 589824 bytes was requested with caps video/x-raw-yuv, format=(fourcc)NV12, width=(int)768, height=(int)512, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1 and offset 0
0:00:02.131469749  2637  0x15a64c0 DEBUG          dri2videosink gstdri2videosink.c:182:gst_dri2videosink_handle_xevents:<dri2videosink0> unhandled X event (19)




^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
ERROR: pipeline doesn't want to preroll.

Setting pipeline to NULL ...
0:00:55.894256614  2637  0x16eaa00 DEBUG          dri2videosink gstdri2videosink.c:513:gst_dri2videosink_change_state:<dri2videosink0> 3 -> 2
0:00:55.900939963  2637  0x16eaa00 DEBUG          dri2videosink gstdri2videosink.c:513:gst_dri2videosink_change_state:<dri2videosink0> 2 -> 1
0:00:55.918487570  2637  0x16eaa00 DEBUG          dri2videosink gstdri2util.c:732:get_buffer:<dri2videosink0> got 0 buffer(s)

---------


Best regards
Joaquin Castellanos

PS:   dmesg2.log = rev.A3   dmesg3 = rev.A4
dmesg2.log
dmesg3.log

Jim Darby

unread,
Sep 10, 2012, 10:04:06 AM9/10/12
to panda...@googlegroups.com
On 07/09/12 17:23, Jim Darby wrote:
p.s. Now just the black login screen and the losing of debugging on the serial output to solve.....

I've a little bit more information on this one now. I get the effect when I'm connecting to a monitor using a HDMI to DVI connector plugged into the more central of the two HDMI connectors on a PandaBoard ES.

Having just checked the details apparently this is the HDMI HDMI port rather than the DVI HDMI port.

Anyway, the critical new piece of information is that when I plugged it into a genuine 1080 TV I didn't get the problem with the black login screen. What to make of this?

The next phase is that I'm going to plug the monitor in via the DI HDMI port on the PandaBoard (the one further away from the centre) and see what happens. I'll report back later.

I've still no idea about the loss of the serial debug.

Regards,

Jim.

Boudet, Xavier

unread,
Sep 13, 2012, 3:16:02 AM9/13/12
to panda...@googlegroups.com
Sorry for the late reply.

New kernel, HW acceleration and video decode should work fine.
Let's try to check your env.

Potential issues I can see is about TI HW acceleration packages provided by Ubuntu main ppa.
I imagine then some potential mess regarding packages versions.

The best is too check the following command output, it must match, if not let me know:
# dpkg -l | grep -e xserver-xorg-core -e xserver-xorg-video-omap -e pvr -e omap4-extras -e linux-image -e gstreamer
ii  bluez-gstreamer                        4.98-2ubuntu7                           Bluetooth GStreamer support
ii  gir1.2-gstreamer-0.10                  0.10.36-1ubuntu1+ti1.6.3.2+1            Description: GObject introspection data for the GStreamer library
ii  gstreamer-tools                        0.10.36-1ubuntu1+ti1.6.3.2+1            Tools for use with GStreamer
ii  gstreamer0.10-alsa                     0.10.36-1+ti1.6.4.1+1                   GStreamer plugin for ALSA
ii  gstreamer0.10-faac                     0.10.23-1+ti1.6.5.3+1                   FAAC plugin for GStreamer
ii  gstreamer0.10-ffmpeg                   0.10.13-1+ti1.6.2.1+1                   FFmpeg plugin for GStreamer
ii  gstreamer0.10-gconf                    0.10.31-1ubuntu1+ti1.6.4.1+1            GStreamer plugin for getting the sink/source information from GConf
ii  gstreamer0.10-gnomevfs                 0.10.36-1+ti1.6.4.1+1                   GStreamer plugin for GnomeVFS
ii  gstreamer0.10-nice                     0.1.1-2ubuntu1                          ICE library (GStreamer plugin)
ii  gstreamer0.10-plugin-ducati            1.6.5.1-1                               gst-plugin-ducati is a Gstreamer plugin
ii  gstreamer0.10-plugins-bad              0.10.23-1+ti1.6.5.3+1                   GStreamer plugins from the "bad" set
ii  gstreamer0.10-plugins-base             0.10.36-1+ti1.6.4.1+1                   GStreamer plugins from the "base" set
ii  gstreamer0.10-plugins-base-apps        0.10.36-1+ti1.6.4.1+1                   GStreamer helper programs from the "base" set
ii  gstreamer0.10-plugins-good             0.10.31-1ubuntu1+ti1.6.4.1+1            GStreamer plugins from the "good" set
ii  gstreamer0.10-plugins-ugly             0.10.18.3-1ubuntu1+ti1.6.2.1+1          GStreamer plugins from the "ugly" set
ii  gstreamer0.10-pulseaudio               0.10.31-1ubuntu1+ti1.6.4.1+1            GStreamer plugin for PulseAudio
ii  gstreamer0.10-sdl                      0.10.23-1+ti1.6.5.3+1                   GStreamer plugin for SDL output
ii  gstreamer0.10-tools                    0.10.36-1ubuntu1+ti1.6.3.2+1            Tools for use with GStreamer
ii  gstreamer0.10-x                        0.10.36-1+ti1.6.4.1+1                   GStreamer plugins for X11 and Pango
ii  libgstreamer-plugins-bad0.10-0         0.10.23-1+ti1.6.5.3+1                   GStreamer development files for libraries from the "bad" set
ii  libgstreamer-plugins-base0.10-0        0.10.36-1+ti1.6.4.1+1                   GStreamer libraries from the "base" set
ii  libgstreamer0.10-0                     0.10.36-1ubuntu1+ti1.6.3.2+1            Core GStreamer libraries and elements
ii  linux-image-3.2.0-1417-omap4           3.2.0-1417.23                           Linux kernel image for version 3.2.0 on TI OMAP4-based systems
ii  linux-image-3.4.0-1486-omap4           3.4.0-1486.9                            Linux kernel image for version 3.4.0 on TI OMAP4-based systems
ii  linux-image-ti-omap4                   3.4.0.1486                              Linux kernel image for the OMAP4 architecture.
ii  pvr-omap4                              1.9.0.5.1.2-1                           PowerVR SGX540 libraries for OMAP4, remaining libs and binaries
ii  pvr-omap4-data                         1.9.0.5.1.2-1                           PowerVR SGX540 libraries for OMAP4, data files
ii  pvr-omap4-dkms                         1.9.0.5.1.1-2                           PowerVR SGX540 kernel driver for OMAP4 in DKMS format.
ii  pvr-omap4-utils                        1.9.0.5.1.2-1                           PowerVR SGX540 utils for OMAP4
ii  pvr-omap4-xf86                         1.9.0.5.1.2-1                           X.org graphics -- TI OMAP pvr display driver
ii  ubuntu-omap4-extras                    2.1                                     Metapackage for all packages from the TI OMAP4 PPA
ii  ubuntu-omap4-extras-config             2.8                                     This is the TI OMAP4 configuration package
ii  ubuntu-omap4-extras-graphics           1.2.6                                   Metapackage for TI OMAP4 Graphics drivers
ii  ubuntu-omap4-extras-multimedia         2.5                                     meta-package for all TI OMAP4 Multimedia components
ii  xserver-xorg-core                      2:1.11.4-0ubuntu10.8+ti1.0              Xorg X server - core server
ii  xserver-xorg-video-omap                0.4.0-2+ti1                             X.Org X server -- OMAP display driver

Concerning kernel, I have published a new kernel into the trunk PPA:

This kernel 1487.2 is closed to what will be deliver in 2 weeks and is more stable.
It was rebased on upstream stable branch - tag v3.4.10 :

You can try to download and install manually the 3 packages (in same command), e.g.: dpkg -i *3.4.0-1487.2_armhf.deb

Concerning video decode issue, I would recommend 2 things:
- try several clips format too see if this is codec related issue only
- try to clean your home folder ".gstreamer-0.10" and retry...

Let me know if it helps.

Xavier Boudet

Jim Darby

unread,
Sep 13, 2012, 6:57:25 PM9/13/12
to panda...@googlegroups.com
Hi Xavier,

As per earlier discussions we've more or less solved the video decoder issue (just set cpufreq to use performance). It appears that some formats (especially those using AAC) really eat CPU time. I've no real idea why except perhaps that the AAC decoder is really slow!

I ran your command and the outputs match (well, I do have some extra packages installed.... Specifically these are:

ii  gstreamer0.10-qapt                     1.3.1-0ubuntu2                          GStreamer plugin to install codecs using QApt
ii  libqtgstreamer-0.10-0                  0.10.1-2ubuntu4                         C++ bindings library for GStreamer with a Qt-style API
ii  linux-image-3.2.0-1412-omap4           3.2.0-1412.16                           Linux kernel image for version 3.2.0 on TI OMAP4-based systems
ii  linux-image-3.4.0-1485-omap4           3.4.0-1485.7                            Linux kernel image for version 3.4.0 on TI OMAP4-based systems
ii  phonon-backend-gstreamer               4:4.7.0really4.6.0-0ubuntu1             Phonon GStreamer 0.10.x backend


The more stable kernel is, of course, welcome! I'll let you know if it solves both or either of the black login screen problem that me and some others have noticed under certain circumstances and also the issue with serial port logging being sporadic once the system is fully up.

Does it only log errors above a certain “level” on the serial port perhaps?

All in all I'm becoming very impressed with the way Linux on ARM is stabilising (I have a Raspberry Pi too).

Keep up the good work!

Jim.

Nicolas Dechesne

unread,
Sep 14, 2012, 2:59:00 AM9/14/12
to panda...@googlegroups.com
On Fri, Sep 14, 2012 at 12:57 AM, Jim Darby <ubersc...@gmail.com> wrote:
> As per earlier discussions we've more or less solved the video decoder issue
> (just set cpufreq to use performance). It appears that some formats
> (especially those using AAC) really eat CPU time. I've no real idea why
> except perhaps that the AAC decoder is really slow!

yes, it could be. there are several AAC decoders that can be used in
GST, e.g. faad and ffdec_aac. can you try with both of them and report
the CPU utilization differences? there is no h/w acceleration for AAC,
so if there is a perf issue, it's a generic ARM perf issue, which is
worth investigating.

also you might want to use some performance tools like perf top to see
where the time is spent.

>
> I ran your command and the outputs match (well, I do have some extra
> packages installed.... Specifically these are:
>
> ii gstreamer0.10-qapt 1.3.1-0ubuntu2
> GStreamer plugin to install codecs using QApt
> ii libqtgstreamer-0.10-0 0.10.1-2ubuntu4
> C++ bindings library for GStreamer with a Qt-style API
> ii linux-image-3.2.0-1412-omap4 3.2.0-1412.16
> Linux kernel image for version 3.2.0 on TI OMAP4-based systems

you can apt-get purge that one ^^, unless if you want to be able to
switch back and forth between Ubuntu release kernel, and the one from
TI PPA.

Boudet, Xavier

unread,
Oct 3, 2012, 2:35:46 AM10/3/12
to jorg...@gmail.com, panda...@googlegroups.com

Sorry for this late answer, but 2 points:
Today, we will have a major update on TI PPA, so some issues might be fixed on that one.
Regarding your issue: "when ever i move the mouse over the top and left bars, my screen flashes and flickers bad...if i stop moving the mouse, everything is fine, even when typing there is not problem.."
Are you using Ubuntu 2D? Indeed, compiz is not working fine with TI PPA, please logout and choose Unity2D.

On Fri, Sep 21, 2012 at 9:25 PM, <jorg...@gmail.com> wrote:
I am not a linux guru but i know how to follow instructions and read.
 
i installed and updated as you say here in my pandaboard ES.
 
I do not care about audio or playing videos, all i want is to make simple programs on python.
 
The update worked good it boots, it has the blanck screen log on error but it is ok...
 
In what i am experiencing problems is that when ever i move the mouse over the top and left bars, my screen flashes and flickers bad...if i stop moving the mouse, everything is fine, even when typing there is not problem..
 
is there some way to fix this issue?
 
thanks guys and great work.
 

On Tuesday, September 4, 2012 7:25:09 AM UTC-5, Boudet, Xavier wrote:
Hi there,

A major update has been done on TI PPA. Please read the below e-mail especially for upgrade.
If you do not have installed the TI release PPA, please refer to New installation procedure.

New installation procedure:
  1- Add TI OMAP release PPA:
    $ sudo su -
    # export http_proxy=<your proxy if any>
    # export https_proxy=<your proxy if any>
    # add-apt-repository ppa:tiomap-dev/release
  2- Perform the upgrade:
    $ sudo apt-get update
    $ sudo apt-get dist-upgrade
    $ sudo apt-get install ubuntu-omap4-extras
  3- You can re-run a dist-upgrade for safety at the end, then reboot

Update procedure:
1- Perform the upgrade:
    $ sudo apt-get update
    $ sudo apt-get dist-upgrade


Post Installation Important Information:
* after the installation/update, it is advised to log as default user and to execute:
    # On Panda 4430: 
    $ /usr/bin/alsaucm -c Panda set _verb HiFi 
    # On PandaES 4460: 
    $ /usr/bin/alsaucm -c PandaES set _verb HiFi

* You need to force installation of new bootloaders through command:
    $ sudo /usr/sbin/flash-kernel --update-bootloader

* It is advised to use Ubuntu 2D instead of Ubuntu (3D) default UI. Nevertheless, main compiz issues have been fixed.

* In some cases, you might need to re-install dkms packages: after reboot,  check if omapdrm_pvr module is loaded, if not execute following command before to reboot:
    $ sudo apt-get install --reinstall pvr-omap4-dkms

New/Fixed in August 2012 release:
 * Kernel bug fixes:
- SmartReflex Class 1.5 enabled with stability patches
- IVAHD Power management (turning off IVAHD in between frames)
- Temperature sensor fix
- Add ARM HW ERRATA 743622, 751472 and 742230, PL310: 769419, OMAP: i659, i608, i705.
- upstream patches + bug fixes:  suspend and wake-up fixes, reduced/fixed timer interrupt occurrences (twd)
 * H264 and MPEG4 video encoder. No camera support yet but Support for combo use-cases such as: v4l2 usb camera -> preview -> encode -> decode -> display.
   Below is an example of VTC (videoconference) e.g. V4L2 USB webcam + preview + encode + decode + display, using V4L2, DRI2 and PVR.
     gst-launch -v v4l2src ! stridetransform ! queue ! tee name=t \
     t. ! queue ! dri2videosink sync=false \
     t. ! queue ! ducatih264enc rate-preset=low-delay profile=100 ! h264parse ! ducatih264dec ! queue ! pvrvideosink sync=false
 * Decoder issues Fixes.
 * Xrandr Rotation Fixes.

Known Issues:
* BT is not supported
* Black screen issue on some HW - workaround: boot with screen un-plugged, plug it after 1 minute. Issue under investigation.

Support:
updates for bug fixes in the PPA, so make sure to keep your system up-to-date!


Reference/Reminder:

The 'top-level' ubuntu-omap-extras will install the following packages:
 - ubuntu-omap-extras-multimedia: another meta package that installs all the requires packages for MM use case:
   * GST, a modified version still compatible with all Ubuntu apps such as totem
   * gst-ducati and libDCE the main components that bring MM h/w acceleration into the system
 - ubuntu-omap-extras-graphics: meta package that pulls in all GFX components including new X11 driver (binary blob) and SGX kernel module (source using DKMS to build)
 - ubuntu-omap-extras-config: some config scripts to set some permission issues, and to ensure that the Ducati firmware is loaded at boot time by upstart.

This release comes with the following major changes:
 - DCE interface for the h/w accelerated codecs - already there in 11.10
 - migration to rpmsg driver (aka syslink3, see http://lwn.net/Articles/448562/ and http://omappedia.org/wiki/Category:RPMsg)
 - DRI2 extension for Video support (http://www.phoronix.com/scan.php?page=news_item&px=OTgxOQ)
 - migration to a new open source X11 driver for OMAP (http://cgit.freedesktop.org/xorg/driver/xf86-video-omap/ )
 - a new GST video-sink: dri2videosink to display video through the SGX (instead of v4l2sink). For more information, see https://wiki.linaro.org/OfficeofCTO/MemoryManagement?action=AttachFile&do=view&target=linux-video.pdf
 - Linux 3.4 kernel, Ubuntu kernel will be replaced. This kernel is largely based of Linaro kernel, and sources are available here: http://dev.omapzoom.org/?p=integration/kernel-ubuntu.git. Linux-image-<version> package version correspond to a tag ti-ubuntu-<kernel version>  in this tree.
 - ...

Regards, 

Xavier Boudet


pavel sadowsky

unread,
Oct 4, 2012, 7:26:04 PM10/4/12
to pandaboard

On 10 Sep., 16:02, Jim Darby <uberscuba...@gmail.com> wrote:
> On 07/09/12 17:23, Jim Darby wrote:
>
> I've a little bit more information on this one now. I get the effect
> when I'm connecting to a monitor using a HDMI to DVI connector plugged
> into the more central of the two HDMI connectors on a PandaBoard ES.
...
> Anyway, the critical new piece of information is that when I plugged it
> into a genuine 1080 TV I /didn't/ get the problem with the black login

This is exactly the same setup and problem I've been seeing sinve
March.
I've reported the bug here:
https://bugs.launchpad.net/ubuntu/+source/linux-meta-ti-omap4/+bug/964901

Today I tried with the drivers from the PPA (Date: Oct 4th):
- Same results for the Full HD monitor: no picture, wrong frequency
- slightly different results for the 1600x1200 monitor: driver now
offers different resolutions, but the "best" offered is 1280x1024
(Ubuntu stock kernel 1400x1050)

So, what can we do in order to support the OMAP team to fix this nasty
HDMI bug?

toml...@gmail.com

unread,
Oct 11, 2012, 11:56:56 AM10/11/12
to panda...@googlegroups.com
Hello,
i'm unable to have a screen after this update

here are last logs (boot process seems to be stopped) :

U-Boot SPL 2012.04.01 (Jul 19 2012 - 17:37:11)                                                                                         
OMAP4430 ES2.0                                                                                                                         
OMAP SD/MMC: 0                                                                                                                         
reading u-boot.img                                                                                                                     
reading u-boot.bin                                                                                                                     
mkimage signature not found - ih_magic = ea000014                                                                                      
reading u-boot.bin                                                                                                                     
                                                                                                                                       
                                                                                                                                       
U-Boot 2012.04.01 (Jul 19 2012 - 17:37:11)                                                                                             
                                                                                                                                       
CPU  : OMAP4430 ES2.0                                                                                                                  
Board: OMAP4 Panda                                                                                                                     
I2C:   ready                                                                                                                           
DRAM:  1 GiB                                                                                                                           
MMC:   OMAP SD/MMC: 0                                                                                                                  
Using default environment                                                                                                              
                                                                                                                                       
In:    serial                                                                                                                          
Out:   serial                                                                                                                          
Err:   serial                                                                                                                          
Net:   No ethernet found.                                                                                                              
checking for preEnv.txt                                                                                                                
reading preEnv.txt                                                                                                                     
                                                                                                                                       
** Unable to read "preEnv.txt" from mmc 0:1 **                                                                                         
Hit any key to stop autoboot:  0                                                                                                       
reading uEnv.txt                                                                                                                       
                                                                                                                                       
** Unable to read "uEnv.txt" from mmc 0:1 **                                                                                           
reading boot.scr                                                                                                                       
                                                                                                                                       
330 bytes read                                                                                                                         
Loaded script from boot.scr                                                                                                            
Running bootscript from mmc0 ...                                                                                                       
## Executing script at 82000000                                                                                                        
reading uImage                                                                                                                         
                                                                                                                                       
4402392 bytes read                                                                                                                     
reading uInitrd                                                                                                                        
                                                                                                                                       
4919473 bytes read                                                                                                                     
## Booting kernel from Legacy Image at 80000000 ...                                                                                    
   Image Name:   Ubuntu Kernel                                                                                                         
   Image Type:   ARM Linux Kernel Image (uncompressed)                                                                                 
   Data Size:    4402328 Bytes = 4.2 MiB                                                                                               
   Load Address: 80008000                                                                                                              
   Entry Point:  80008000                                                                                                              
   Verifying Checksum ... OK                                                                                                           
## Loading init Ramdisk from Legacy Image at 81600000 ...                                                                              
   Image Name:   Ubuntu Initrd                                                                                                         
   Image Type:   ARM Linux RAMDisk Image (uncompressed)                                                                                
   Data Size:    4919409 Bytes = 4.7 MiB                                                                                               
   Load Address: 00000000                                                                                                              
   Entry Point:  00000000                                                                                                              
   Verifying Checksum ... OK                                                                                                           
   Loading Kernel Image ... OK                                                                                                         
OK                                                                                                                                     
                                                                                                                                       
Starting kernel ...                                                                                                                    
                                                                                                                                       
Uncompressing Linux... done, booting the kernel.                                                                                       
[    0.000000] Booting Linux on physical CPU 0                                                                                         
[    0.000000] Initializing cgroup subsys cpuset                                                                                       
[    0.000000] Initializing cgroup subsys cpu                                                                                          
[    0.000000] Linux version 3.4.0-1487-omap4 (buildd@diphda) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #6-Ubuntu SMP PREEMPT2
[    0.000000] CPU: ARMv7 Processor [411fc092] revision 2 (ARMv7), cr=10c5387d                                                         
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache                                                
[    0.000000] Machine: OMAP4 Panda board                                                                                              
[    0.000000] cma: CMA: reserved 8 MiB at 98800000                                                                                    
[    0.000000] cma: CMA: reserved 112 MiB at 99000000                                                                                  
[    0.000000] cma: CMA: reserved 32 MiB at ad800000                                                                                   
[    0.000000] cma: CMA: reserved 16 MiB at ac000000                                                                                   
[    0.000000] Memory policy: ECC disabled, Data cache writealloc                                                                      
[    0.000000] omap2_set_globals_tap                                                                                                   
[    0.000000] OMAP4: Map 0xad600000 to 0xfe600000 for dram barrier                                                                    
[    0.000000] omap2_set_globals_tap                                                                                                   
[    0.000000] OMAP4430 ES2.0                                                                                                          
[    0.000000] PERCPU: Embedded 8 pages/cpu @c1332000 s11712 r8192 d12864 u32768                                                       
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 259584                                             
[    0.000000] Kernel command line: ro elevator=noop console=ttyO2,115200n8 mem=1G@0x80000000 root=UUID=a7cc59ad-998c-472c-a5e4-7b5dc5cc
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)                                                                    
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)                                                        
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)                                                          
[    0.000000] allocated 2097152 bytes of page_cgroup                                                                                  
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups                                              
[    0.000000] Memory: 726MB 296MB = 1022MB total                                                                                      
[    0.000000] Memory: 846768k/846768k available, 201808k reserved, 270336K highmem                                                    
[    0.000000] Virtual kernel memory layout:                                                                                           
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)                                                                       
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)                                                                       
[    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)                                                                       
[    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)                                                                       
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)                                                                       
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)                                                                       
[    0.000000]       .text : 0xc0008000 - 0xc0897dc0   (8768 kB)                                                                       
[    0.000000]       .init : 0xc0898000 - 0xc08fedc0   ( 412 kB)                                                                       
[    0.000000]       .data : 0xc0900000 - 0xc0980928   ( 515 kB)                                                                       
[    0.000000]        .bss : 0xc098094c - 0xc0b28ac4   (1697 kB)                                                                       
[    0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1                                                 
[    0.000000] Preemptible hierarchical RCU implementation.                                                                            
[    0.000000] NR_IRQS:538                                                                                                             
[    0.000000] omap_sr_disable: omap_sr struct for sr_wakeup not found                                                                 
[    0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz                                                                            
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms                                              
[    0.000000] Console: colour dummy device 80x30                                                                                      
[    0.000274] Calibrating delay loop... 1590.23 BogoMIPS (lpj=6213632)                                                                
[    0.070312] pid_max: default: 32768 minimum: 301                                                                                    
[    0.070617] Security Framework initialized                                                                                          
[    0.070709] AppArmor: AppArmor initialized                                                                                          
[    0.071105] Mount-cache hash table entries: 512                                                                                     
[    0.073059] Initializing cgroup subsys cpuacct                                                                                      
[    0.073120] Initializing cgroup subsys memory                                                                                       
[    0.073181] Initializing cgroup subsys devices                                                                                      
[    0.073211] Initializing cgroup subsys freezer                                                                                      
[    0.073242] Initializing cgroup subsys net_cls                                                                                      
[    0.073242] Initializing cgroup subsys blkio                                                                                        
[    0.073303] Initializing cgroup subsys perf_event                                                                                   
[    0.073547] CPU: Testing write buffer coherency: ok                                                                                 
[    0.073699] ftrace: allocating 25424 entries in 75 pages                                                                            
[    0.151123] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000                                                                        
[    0.151458] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available                                            
[    0.151641] Setting up static identity map for 0x805bd738 - 0x805bd790                                                              
[    0.151672] L310 cache controller enabled                                                                                           
[    0.151702] l2x0: 16 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x5e470000, Cache size: 1048576 B                                          
[    0.151733] omap_sar_ram_init                                                                                                       
[    0.151947] generating sar_ram layout...                                                                                            
[    0.152160] sar ram layout created                                                                                                  
[    0.230255] CPU1: Booted secondary processor                                                                                        
[    0.299896] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001                                                                        
[    0.299926] CPU1: Unknown IPI message 0x1                                                                                           
[    0.299957] Brought up 2 CPUs                                                                                                       
[    0.299987] SMP: Total of 2 processors activated (3188.82 BogoMIPS).                                                                
[    0.301025] devtmpfs: initialized                                                                                                   
[    0.306854] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.306884] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.306915] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.306945] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.306976] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.307006] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.307037] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.307037] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.307067] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.307128] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.307159] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.307189] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.307250] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.307281] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.307342] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.307373] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.307403] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.307464] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.307495] omap_sr_disable: omap_sr struct for sr_core not found                                                                   
[    0.308349] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.308380] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.308502] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.308532] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.308563] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.311248] omap_hwmod: mcpdm: _wait_target_ready error: -16                                                                        
[    0.311279] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.311279] omap_hwmod: mcpdm: cannot be enabled (3)                                                                                
[    0.311584] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.311614] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.311645] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.311676] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.312896] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.314208] dummy:                                                                                                                  
[    0.330291] NET: Registered protocol family 16                                                                                      
[    0.342346] DMA: preallocated 256 KiB pool for atomic coherent allocations                                                          
[    0.343078] GPMC revision 6.0                                                                                                       
[    0.347717] gpiochip_add: registered GPIOs 0 to 31 on device: gpio                                                                  
[    0.347808] OMAP GPIO hardware version 0.1                                                                                          
[    0.348175] gpiochip_add: registered GPIOs 32 to 63 on device: gpio                                                                 
[    0.348602] gpiochip_add: registered GPIOs 64 to 95 on device: gpio                                                                 
[    0.348999] gpiochip_add: registered GPIOs 96 to 127 on device: gpio                                                                
[    0.349426] gpiochip_add: registered GPIOs 128 to 159 on device: gpio                                                               
[    0.349822] gpiochip_add: registered GPIOs 160 to 191 on device: gpio                                                               
[    0.352844] omap_mux_init: Add partition: #1: core, flags: 2                                                                        
[    0.354003] omap_mux_init: Add partition: #2: wkup, flags: 2                                                                        
[    0.358032] omap_mux_get_by_name: Could not find signal uart1_cts.uart1_cts                                                         
[    0.358032] omap_hwmod_mux_init: Could not allocate device mux entry                                                                
[    0.364501] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.                                             
[    0.364501] hw-breakpoint: maximum watchpoint size is 4 bytes.                                                                      
[    0.371612] Updated GPU clock source to be dpll_per_m7x2_ck                                                                         
[    0.375274]  omap-mcbsp.1: alias pad_fck already exists                                                                             
[    0.375610]  omap-mcbsp.2: alias pad_fck already exists                                                                             
[    0.375946]  omap-mcbsp.3: alias pad_fck already exists                                                                             
[    0.376281]  omap-mcbsp.4: alias pad_fck already exists                                                                             
[    0.378082] OMAP DMA hardware revision 0.0                                                                                          
[    0.378906] emif emif.1: Device configured with addr = f0e00000 and IRQ142                                                          
[    0.379180] emif emif.2: Device configured with addr = f1000000 and IRQ143                                                          
[    0.407501] bio: create slab <bio-0> at 0                                                                                           
[    0.409332] vwl1271: 1800 mV                                                                                                        
[    0.409759] vhub: 3300 mV                                                                                                           
[    0.410064] hsusb0: 3300 mV                                                                                                         
[    0.410095] hsusb0: supplied by vhub                                                                                                
[    0.416351] SCSI subsystem initialized                                                                                              
[    0.416900] omap2_mcspi omap2_mcspi.1: master is unqueued, this is deprecated                                                       
[    0.418762] omap2_mcspi omap2_mcspi.2: master is unqueued, this is deprecated                                                       
[    0.419250] omap2_mcspi omap2_mcspi.3: master is unqueued, this is deprecated                                                       
[    0.419677] omap2_mcspi omap2_mcspi.4: master is unqueued, this is deprecated                                                       
[    0.420928] usbcore: registered new interface driver usbfs                                                                          
[    0.421295] usbcore: registered new interface driver hub                                                                            
[    0.421569] usbcore: registered new device driver usb                                                                               
[    0.423034] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 400 kHz                                                                          
[    0.424102] Skipping twl internal clock init and using bootloader value (unknown osc rate)                                          
[    0.424682] twl 1-0048: PIH (irq 39) chaining IRQs 416..436                                                                         
[    0.425689] VUSB: 3300 mV normal standby                                                                                            
[    0.429046] twl6030_usb twl6030_usb: Initialized TWL6030 USB module                                                                 
[    0.429870] V1V8: 1800 mV normal standby                                                                                            
[    0.430480] V2V1: 2100 mV normal standby                                                                                            
[    0.431213] VMMC: 1200 <--> 3000 mV at 3000 mV normal standby                                                                       
[    0.432189] VPP: 1800 <--> 2500 mV at 1900 mV normal standby                                                                        
[    0.434356] VCXIO: 1800 mV normal standby                                                                                           
[    0.434387] VCXIO: supplied by V2V1                                                                                                 
[    0.435638] VDAC: 1800 mV normal standby                                                                                            
[    0.435668] VDAC: supplied by V2V1                                                                                                  
[    0.436767] VAUX2_6030: 1200 <--> 2800 mV at 1800 mV normal standby                                                                 
[    0.437683] VAUX3_6030: 1000 <--> 3000 mV at 1200 mV normal standby                                                                 
[    0.438720] CLK32KG:                                                                                                                
[    0.439300] VANA: 2100 mV normal standby                                                                                            
[    0.439849] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 400 kHz                                                                          
[    0.440338] omap_i2c omap_i2c.3: bus 3 rev2.4.0 at 100 kHz                                                                          
[    0.441009] omap_i2c omap_i2c.4: bus 4 rev2.4.0 at 400 kHz                                                                          
[    0.441589] Linux media interface: v0.10                                                                                            
[    0.441802] Linux video capture interface: v2.00                                                                                    
[    0.443298] omap-iommu omap-iommu.0: dsp registered                                                                                 
[    0.443389] omap-iommu omap-iommu.1: ipu registered                                                                                 
[    0.443969] Advanced Linux Sound Architecture Driver Version 1.0.25.                                                                
[    0.445159] NetLabel: Initializing                                                                                                  
[    0.445190] NetLabel:  domain hash size = 128                                                                                       
[    0.445190] NetLabel:  protocols = UNLABELED CIPSOv4                                                                                
[    0.445251] NetLabel:  unlabeled traffic allowed by default                                                                         
[    0.446228] Switching to clocksource 32k_counter                                                                                    
[    0.466705] FS-Cache: Loaded                                                                                                        
[    0.466949] AppArmor: AppArmor Filesystem Enabled                                                                                   
[    0.492980] NET: Registered protocol family 2                                                                                       
[    0.493408] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)                                                       
[    0.494140] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)                                                    
[    0.496093] TCP bind hash table entries: 65536 (order: 7, 786432 bytes)                                                             
[    0.497161] TCP: Hash tables configured (established 131072 bind 65536)                                                             
[    0.497192] TCP: reno registered                                                                                                    
[    0.497192] UDP hash table entries: 512 (order: 2, 16384 bytes)                                                                     
[    0.497253] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)                                                                
[    0.497650] NET: Registered protocol family 1                                                                                       
[    0.497833] usbhs_omap usbhs_omap: ehci_logic_fck failed:-2                                                                         
[    0.499389] Trying to unpack rootfs image as initramfs...                                                                           
[    0.901855] Freeing initrd memory: 4804K                                                                                            
[    0.902008] NetWinder Floating Point Emulator V0.97 (double precision)                                                              
[    0.955596]  omap-rproc.1: alias fck already exists                                                                                 
[    0.957031] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.957122] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.957214] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.957305] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    0.959197] audit: initializing netlink socket (disabled)                                                                           
[    0.959259] type=2000 audit(0.914:1): initialized                                                                                   
[    1.059753] highmem bounce pool size: 64 pages                                                                                      
[    1.075622] VFS: Disk quotas dquot_6.5.2                                                                                            
[    1.076141] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)                                                              
[    1.082366] fuse init (API version 7.18)                                                                                            
[    1.083068] msgmni has been set to 1471                                                                                             
[    1.085388] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)                                                    
[    1.085510] io scheduler noop registered (default)                                                                                  
[    1.085510] io scheduler deadline registered                                                                                        
[    1.085571] io scheduler cfq registered                                                                                             
[    1.086883] OMAP DSS rev 4.0                                                                                                        
[    1.124237] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled                                                                 
[    1.126647] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 104) is a OMAP UART0                                                       
[    1.127288] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 105) is a OMAP UART1                                                       
[    1.127838] omap_uart.2: ttyO2 at MMIO 0x48020000 (irq = 106) is a OMAP UART2                                                       
[    2.336303] console [ttyO2] enabled                                                                                                 
[    2.340698] omap_uart.3: ttyO3 at MMIO 0x4806e000 (irq = 102) is a OMAP UART3                                                       
[    2.349761] [drm] Initialized drm 1.1.0 20060810                                                                                    
[    2.368652] brd: module loaded                                                                                                      
[    2.378753] loop: module loaded                                                                                                     
[    2.382232] (stk) :sysfs entries created                                                                                            
[    2.386505] (stk) : debugfs entries created                                                                                         
[    2.404510] Fixed MDIO Bus: probed                                                                                                  
[    2.408386] tun: Universal TUN/TAP device driver, 1.6                                                                               
[    2.413787] tun: (C) 1999-2004 Max Krasnyansky <ma...@qualcomm.com>                                                                  
[    2.421173] PPP generic driver version 2.4.2                                                                                        
[    2.426605] usbcore: registered new interface driver smsc95xx                                                                       
[    2.433410] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver                                                              
[    2.581176] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller                                                                        
[    2.587707] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1                                                    
[    2.597686] ehci-omap ehci-omap.0: irq 109, io mem 0x4a064c00                                                                       
[    2.618225] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00                                                                       
[    2.624603] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002                                                           
[    2.631896] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1                                                      
[    2.639648] usb usb1: Product: OMAP-EHCI Host Controller                                                                            
[    2.645355] usb usb1: Manufacturer: Linux 3.4.0-1487-omap4 ehci_hcd                                                                 
[    2.652069] usb usb1: SerialNumber: ehci-omap.0                                                                                     
[    2.658020] hub 1-0:1.0: USB hub found                                                                                              
[    2.662078] hub 1-0:1.0: 3 ports detected                                                                                           
[    2.696533] Initializing USB Mass Storage driver...                                                                                 
[    2.702056] usbcore: registered new interface driver usb-storage                                                                    
[    2.708526] USB Mass Storage support registered.                                                                                    
[    2.713745] usbcore: registered new interface driver libusual                                                                       
[    2.719909] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)                                                                    
[    2.928161] musb-hdrc musb-hdrc: USB OTG mode controller at fc0ab000 using DMA, IRQ 124                                             
[    2.937866] mousedev: PS/2 mouse device common for all mice                                                                         
[    2.947021] twl_rtc twl_rtc: Enabling TWL-RTC                                                                                       
[    2.955230] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0                                                                   
[    2.962249] i2c /dev entries driver                                                                                                 
[    2.968811] omap_wdt: OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec                                                          
[    2.977447] device-mapper: uevent: version 1.0.3                                                                                    
[    2.983123] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-d...@redhat.com                                        
[    2.995086] omap_hsmmc.0 supply vmmc_aux not found, using dummy regulator                                                           
[    3.001068] usb 1-1: new high-speed USB device number 2 using ehci-omap                                                             
[    3.120239] omap_hsmmc.4 supply vmmc_aux not found, using dummy regulator                                                           
[    3.165588] usb 1-1: New USB device found, idVendor=0424, idProduct=9514                                                            
[    3.172698] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0                                                       
[    3.181274] hub 1-1:1.0: USB hub found                                                                                              
[    3.185455] hub 1-1:1.0: 5 ports detected                                                                                           
[    3.237640] thermal_governor_dev_register:Adding omap_ondie_governor governor                                                       
[    3.245269] thermal_get_slope:Getting slope is not supported for domain cpu                                                         
[    3.252685] thermal_get_offset:Getting offset is not supported for domain cpu                                                       
[    3.260498] thermal_governor_dev_register:Adding omap_ongpu_governor governor                                                       
[    3.268157] thermal_get_slope:Getting slope is not supported for domain gpu                                                         
[    3.275695] thermal_get_offset:Getting offset is not supported for domain gpu                                                       
[    3.283538] stm_fw: vendor driver stm_ti1.0 registered                                                                              
[    3.294281] omap_pcm_dummy() init                                                                                                   
[    3.298553] OMAP4/5 SoC init                                                                                                        
[    3.301605] omap_pcm_dummy() init                                                                                                   
[    3.305114] omap_mcpdm_dummy() init                                                                                                 
[    3.309783] aess aess: ABE Firmware version 9560                                                                                    
[    3.317047] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    3.332061] mmc0: host does not support reading read-only switch. assuming write-enable.                                            
[    3.342590] mmc0: new high speed SDHC card at address b368                                                                          
[    3.349639] mmcblk0: mmc0:b368 SMI   3.74 GiB                                                                                       
[    3.352172] omap_sr_disable: omap_sr struct for sr_iva not found                                                                    
[    3.363342]  mmcblk0: p1 p2                                                                                                         
[    3.368499] asoc: snd-soc-dummy-dai <-> MultiMedia1 mapping ok                                                                      
[    3.377349] asoc: snd-soc-dummy-dai <-> MultiMedia2 mapping ok                                                                      
[    3.386749] asoc: snd-soc-dummy-dai <-> Voice mapping ok                                                                            
[    3.394775] asoc: snd-soc-dummy-dai <-> Tones mapping ok                                                                            
[    3.402191] asoc: snd-soc-dummy-dai <-> Vibra mapping ok                                                                            
[    3.408355] asoc: snd-soc-dummy-dai <-> MODEM mapping ok                                                                            
[    3.414337] asoc: snd-soc-dummy-dai <-> MultiMedia1 LP mapping ok                                                                   
[    3.421264] asoc: snd-soc-dummy-dai <-> omap-mcbsp.2 mapping ok                                                                     
[    3.430480] asoc: twl6040-legacy <-> mcpdm-legacy mapping ok                                                                        
[    3.437438] asoc: twl6040-dl1 <-> mcpdm-dl1 mapping ok                                                                              
[    3.443237] asoc: twl6040-ul <-> mcpdm-ul1 mapping ok                                                                               
[    3.448883] asoc: twl6040-dl2 <-> mcpdm-dl2 mapping ok                                                                              
[    3.454650] asoc: twl6040-vib <-> mcpdm-vib mapping ok                                                                              
[    3.460388] asoc: snd-soc-dummy-dai <-> omap-mcbsp.1 mapping ok                                                                     
[    3.466949] asoc: snd-soc-dummy-dai <-> omap-mcbsp.1 mapping ok                                                                     
[    3.473602] asoc: snd-soc-dummy-dai <-> omap-mcbsp.2 mapping ok                                                                     
[    3.480224] usb 1-1.1: new high-speed USB device number 3 using ehci-omap                                                           
[    3.487609] asoc: snd-soc-dummy-dai <-> omap-mcbsp.2 mapping ok                                                                     
[    3.495605] input: Panda Headset Jack as /devices/platform/omap-abe-twl6040/sound/card0/input0                                      
[    3.512451] asoc: omap-hdmi-hifi <-> omap-hdmi-audio-dai mapping ok                                                                 
[    3.520904] u32 classifier                                                                                                          
[    3.523773]     Actions configured                                                                                                  
[    3.527740] TCP: cubic registered                                                                                                   
[    3.532623] NET: Registered protocol family 10                                                                                      
[    3.538177] NET: Registered protocol family 17                                                                                      
[    3.543273] lib80211: common routines for IEEE802.11 drivers                                                                        
[    3.549652] Registering the dns_resolver key type                                                                                   
[    3.554809] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 1                                                 
[    3.562957] ThumbEE CPU extension supported.                                                                                        
[    3.567535] Registering SWP/SWPB emulation handler   

Regards,

Tom

tomlohave

unread,
Oct 11, 2012, 12:06:57 PM10/11/12
to toml...@gmail.com, panda...@googlegroups.com
sorry, it's with TI OMAP Release PPA Update October 2012 , not September

Tom

Xavier Boudet

unread,
Oct 14, 2012, 12:23:34 PM10/14/12
to panda...@googlegroups.com
Hello,

Can you clarify what do you mean:
"I'm unable to have a screen after this update"

Have you tried the workaround documented into the e-mail:
Ctrl+Alt+F1 then Ctrl+Alt+F7

Regards, Xavier Boudet

toml...@gmail.com

unread,
Oct 14, 2012, 12:26:35 PM10/14/12
to panda...@googlegroups.com
Le 14/10/2012 18:23, Xavier Boudet a écrit :
Hello,

Can you clarify what do you mean:
"I'm unable to have a screen after this update"

Have you tried the workaround documented into the e-mail:
Ctrl+Alt+F1 then Ctrl+Alt+F7
i mean , boot process stop , no active led, ... nothing.
boot process at :
Registering SWP/SWPB emulation handler

nothing more

Testing 2 times to upgrade, same problem


Tom
[    1.076141] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)                                    mplayer test.avi -lavdopts debug=1 -vo null                          

Xavier Boudet

unread,
Oct 15, 2012, 3:45:47 AM10/15/12
to panda...@googlegroups.com
This is weird...
I have few more questions then:
- we have tested upgrades on TI public PPA several times successfully, I can see that you are using Panda with 4430 ES2.0. Do you have another Panda? Is it easy/possible for you to test your SD on another Panda?
- When the problem occurs, I guess the console is not responsive correct?
- I can see that you are using a 4GB SD card in the logs, can you confirm that the SD is not full and/or clean /var/cache/apt/archives that might be big after the upgrade?
- is your Panda connected to the ethernet when booting?
- One remark, you shall add "fixrtc" to the bootargs. This is not the root cause but might be better to be aligned on bootargs.
- Concerning the boot logs, I cannot see any obvious problem.
- If you redo the upgrade, can you copy the complete output logs from update/dist-upgrades commands please?

Regards, Xavier Boudet

Thomas Genty

unread,
Oct 15, 2012, 7:52:05 AM10/15/12
to panda...@googlegroups.com


2012/10/15 Xavier Boudet <x-bo...@ti.com>
Hello,

This is weird...
I have few more questions then:
- we have tested upgrades on TI public PPA several times successfully, I can see that you are using Panda with 4430 ES2.0. Do you have another Panda? Is it easy/possible for you to test your SD on another Panda?
no sorry,  i have just this card 
- When the problem occurs, I guess the console is not responsive correct?
nothing, no console, only logs i sent, no ethernet card, so no access via ssh 
- I can see that you are using a 4GB SD card in the logs, can you confirm that the SD is not full and/or clean /var/cache/apt/archives that might be big after the upgrade?
 i guess there is 1 gb free, will retest this afternoon
 
- is your Panda connected to the ethernet when booting?
yes, as already said, ethernet port does not work 
- One remark, you shall add "fixrtc" to the bootargs. This is not the root cause but might be better to be aligned on bootargs.
already done. i have double checked what contains boot.script
- Concerning the boot logs, I cannot see any obvious problem.
Note: i got the same problem using Openbricks' toolchain, the boot process stop nearly at the same line
Changing /testing u-boot with other versions change nothing  
- If you redo the upgrade, can you copy the complete output logs from update/dist-upgrades commands please?
no problem
i can even send you a link with binary image to download before and after the upgrade if it can help   

Regards, Xavier Boudet

Thanks for your help

Regards,

Tom 

toml...@gmail.com

unread,
Oct 15, 2012, 2:30:43 PM10/15/12
to panda...@googlegroups.com
Le 15/10/2012 13:52, Thomas Genty a écrit :


2012/10/15 Xavier Boudet <x-bo...@ti.com>
Hello,
This is weird...
I have few more questions then:
- we have tested upgrades on TI public PPA several times successfully, I can see that you are using Panda with 4430 ES2.0. Do you have another Panda? Is it easy/possible for you to test your SD on another Panda?
no sorry,  i have just this card 
- When the problem occurs, I guess the console is not responsive correct?
nothing, no console, only logs i sent, no ethernet card, so no access via ssh 
- I can see that you are using a 4GB SD card in the logs, can you confirm that the SD is not full and/or clean /var/cache/apt/archives that might be big after the upgrade?
 i guess there is 1 gb free, will retest this afternoon
 
- is your Panda connected to the ethernet when booting?
yes, as already said, ethernet port does not work 
- One remark, you shall add "fixrtc" to the bootargs. This is not the root cause but might be better to be aligned on bootargs.
already done. i have double checked what contains boot.script
- Concerning the boot logs, I cannot see any obvious problem.
Note: i got the same problem using Openbricks' toolchain, the boot process stop nearly at the same line
Changing /testing u-boot with other versions change nothing  
- If you redo the upgrade, can you copy the complete output logs from update/dist-upgrades commands please?
no problem

attached logs

Cheers,

Tom
logs.txt
Message has been deleted

Xavier Boudet

unread,
Nov 5, 2012, 3:45:50 AM11/5/12
to Jayneil, panda...@googlegroups.com
Hello Jayneil,

Apparently you made a mistake in your bootargs, you said you are having:
        fatload mmc 0:1 0x80000000 uImage
        fatload mmc 0:1 0x81600000 uInitrd
        setenv bootargs ro elevator=noop console=ttyO2,115200n8 mem=1G@0x80000000
        setenv root=/dev/mmcblk0p2 fixrtc quiet splash
        bootm 0x80000000 0x81600000


The bootargs line is not correct, please remove bold line and use instead:
        fatload mmc 0:1 0x80000000 uImage
        fatload mmc 0:1 0x81600000 uInitrd
        setenv bootargs ro elevator=noop console=ttyO2,115200n8 mem=1G@0x80000000
root=/dev/mmcblk0p2 fixrtc splash
        bootm 0x80000000 0x81600000



Regards, Xavier Boudet
On 10/31/2012 05:51 PM, Jayneil wrote:
Hi,

I tried installing the ppa updates on Pandaboard ES by following your instructions. But after doing so, Ubuntu won't boot at all. I tried it 4-5 times using different SD cards but still no luck. Everything works fine though before installing the ppa upates. 

Here is my logfile:

Here are my bootargs.

I would really appreciate if someone would help me solve this problem.

Cheers,
Jayneil.


On Tuesday, September 4, 2012 7:25:09 AM UTC-5, Boudet, Xavier wrote:

JB

unread,
Nov 8, 2012, 8:32:12 PM11/8/12
to panda...@googlegroups.com, x-bo...@ti.com
I've done an apt-get update, apt-get upgrade, so I think I have the latest from the TI PPA.  I get the same error you were getting...

root@localhost:~# gst-launch -v v4l2src device=/dev/video0 num-buffers=200 ! "video/x-raw-yuv,width=640,height=480,framerate=30/1" ! queue ! ffmpegcolorspace ! ducatih264enc ! h264parse ! queue ! qtmux ! filesink location=sample.mp4

Setting pipeline to PAUSED ...
libdce-x11.c:64:    dce_auth_x11    info: attempting to open X11 connection
libdce.c:459:    init    error: could not get plugin ioctl base: -22
ERROR: Pipeline doesn't want to pause.

Setting pipeline to NULL ...
Freeing pipeline ...


How did you end up fixing this?

My bootargs are:

setenv bootargs quiet rw fixrtc mem=1G@0x80000000 root=/dev/mmcblk0p2 console=ttyO2,115200n8 omapdss.def_disp=dvi rootwait ip=dhcp


JB


On Wednesday, September 5, 2012 2:45:26 AM UTC-7, fang bao wrote:
Hi Boudet,

I encountered some issues after updating to TI OMAP Release PPA Update September 2012.

1. HW MM h/w acceleration doesn't work.

When running the totem to play a H264 1080p stream, there is an error:

libdce.c: 437: init info: attempting to open X11 connection

libdce.c: 515: init error: could not get plugin ioctl base: -22

I have filed a bug here: https://bugs.launchpad.net/ubuntu-omap4-extras-multimedia/+bug/1046226

2. System hangs on booting.

The system often hangs on booting with black window.  After several reboot, it might be OK. But it will hang next time.
I didn't know where to file this bug.

Regards,

Fang Bao

Xavier Boudet

unread,
Nov 9, 2012, 3:53:53 AM11/9/12
to JB, panda...@googlegroups.com
Hello JB,

So you are using TI PPA, correct?
Can you ensure that you perform dist-upgrade? We indeed have renamed some packages so aptitude needs that you perform dist-upgrade to replace existing package with new ones.

Can you check if pvr module is correctly installed?
After the boot perform: lsmod | grep omapdrm_prv
If this module is not loaded you might need to execute:
sudo apt-get install --reinstall pvr-omap4-dkms

Can you ensure that you are running the last kernel? Please send "uname -a" output.

Why are you using omapdss.def_disp=dvi in your bootargs?

Are you sure about your pipeline, why are you using root user? Which kind of image are you using, desktop one?
Her is an example of pipeline supposed to work:
Example of VTC (videoconference) e.g. V4L2 USB webcam + preview + H264 encode + H264 decode + display, using V4L2, DRI2 and PVR.
gst-launch -v v4l2src ! "video/x-raw-yuv, framerate=(fraction)30/1" ! stridetransform ! tee name=t \

t. ! queue ! dri2videosink sync=false \
t. ! queue ! ducatih264enc rate-preset=low-delay profile=100 ! h264parse ! ducatih264dec ! queue ! pvrvideosink sync=false


Regards, Xavier Boudet

JB

unread,
Nov 9, 2012, 2:23:57 PM11/9/12
to panda...@googlegroups.com, JB, x-bo...@ti.com
Hi Xavier.  Thanks very much for the quick reply!  I'm pretty new to Pandaboard and I've been trying to get a minimal Ubuntu core image working.  All I need is for gstreamer to be able to capture from a USB webcam, H.264 encode, H.264 decode, and render to X11 without a window manager.

I followed these instructions to create an Ubuntu core image for the Pandaboard:
http://www.omappedia.com/wiki/OMAP_Ubuntu_Core

With these modifications:
A.) Before "apt-get install ubuntu-omap4-extras --yes --force-yes" I did "apt-get install u-boot-tools"
B.) After the "apt-get install ubuntu-omap4-extras --yes --force-yes" I shut down and modified boot.scr in the boot partition to:


    fatload mmc 0:1 0x80000000 uImage
    setenv bootargs quiet rw fixrtc mem=1G@0x80000000 root=/dev/mmcblk0p2 console=ttyO2,115200n8 omapdss.def_disp=dvi rootwait ip=dhcp
    bootm 0x80000000

The instructions say to use "vram=32M" but I know that is no longer valid, so I took that out.  Also, both the DVI port and HDMI port had no signal until I added omapdss.def_disp=dvi to the bootargs.  Even after doing that the HDMI port was activated, not the DVI one.  Strange...
C.) Before doing the "apt-get install xorg", I did "apt-get install --reinstall pvr-omap4-dkms" because I did not see "omapdrm_prv" from lsmod.
D.) After doing the "apt-get install xorg" I stopped with the instructions, since I don't want a window manager.  I'm trying to make an image as minimal as possible.

To answer your questions (with my Pandaboard in the state described above):
1.) So you are using TI PPA, correct?

Yes.  In /etc/apt/sources.list:
# TI release PPA
deb http://ppa.launchpad.net/tiomap-dev/release/ubuntu precise main
deb-src http://ppa.launchpad.net/tiomap-dev/release/ubuntu precise main

2.) Can you ensure that you perform dist-upgrade? We indeed have renamed some packages so aptitude needs that you perform dist-upgrade to replace existing package with new ones.

Apparently I already have the latest:
root@localhost:~# apt-get dist-upgrade

Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

3.) Can you check if pvr module is correctly installed?

After the boot perform: lsmod | grep omapdrm_prv
If this module is not loaded you might need to execute:
sudo apt-get install --reinstall pvr-omap4-dkms

Even though I did "apt-get install --reinstall pvr-omap4-dkms" previously, I still don't see "omapdrm_prv" now on reboot.  I installed it again just now and rebooted - it did not show under lsmod until after I ran "startx".  Apparently I will always need to startx first.

4.) Can you ensure that you are running the last kernel? Please send "uname -a" output.

root@localhost:~# uname -a
Linux localhost.localdomain 3.4.0-1487-omap4 #6-Ubuntu SMP PREEMPT Mon Oct 1 16:54:59 UTC 2012 armv7l armv7l armv7l GNU/Linux

5.) Why are you using omapdss.def_disp=dvi in your bootargs?

I saw this on http://omappedia.org/wiki/Bootargs_for_enabling_display and added it since neither HDMI nor DVI were providing signal without it.  Maybe the situation is different because I am using a core image and not a desktop one?

6.) Are you sure about your pipeline?  Here is an example of pipeline supposed to work:

Example of VTC (videoconference) e.g. V4L2 USB webcam + preview + H264 encode + H264 decode + display, using V4L2, DRI2 and PVR.
gst-launch -v v4l2src ! "video/x-raw-yuv, framerate=(fraction)30/1" ! stridetransform ! tee name=t \
t. ! queue ! dri2videosink sync=false \
t. ! queue ! ducatih264enc rate-preset=low-delay profile=100 ! h264parse ! ducatih264dec ! queue ! pvrvideosink sync=false

So I did a reboot, startx, export DISPLAY=:0, checked lsmod again for "omapdrm_prv", and ran the pipeline you provided:

root@localhost:~# ./gst.sh
Setting pipeline to PAUSED ...
PVR:(Warning): PVRSRVOpenDCDevice: Warning - 138 returned [80, /bridged_pvr_dc_glue.c]
PVR:(Warning): PVRSRVOpenDCDevice: Warning - 138 returned [80, /bridged_pvr_dc_glue.c]

libdce-x11.c:64:        dce_auth_x11    info: attempting to open X11 connection
libdce.c:459:   init    error: could not get plugin ioctl base: -22
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
PVR:(Warning): PVRDRMSetFD: DRM fd already set [57, /pvr_bridge_u.c]
Freeing pipeline ...

7.) Why are you using root user?

The Ubuntu core image drops you right into root.

8.) Which kind of image are you using, desktop one?

This one: wget http://cdimage.ubuntu.com/ubuntu-core/releases/12.04/release/ubuntu-core-12.04.1-core-armhf.tar.gz


Many thanks!

Jared Beckwith

Xavier Boudet

unread,
Nov 12, 2012, 2:40:25 AM11/12/12
to JB, panda...@googlegroups.com
Answers inline.
Can you clarify what is/are the remaining issue(s)? The gst pipeline?

Regards, Xavier Boudet
On 11/09/2012 08:23 PM, JB wrote:
Hi Xavier.  Thanks very much for the quick reply!  I'm pretty new to Pandaboard and I've been trying to get a minimal Ubuntu core image working.  All I need is for gstreamer to be able to capture from a USB webcam, H.264 encode, H.264 decode, and render to X11 without a window manager.

I followed these instructions to create an Ubuntu core image for the Pandaboard:
http://www.omappedia.com/wiki/OMAP_Ubuntu_Core

With these modifications:
A.) Before "apt-get install ubuntu-omap4-extras --yes --force-yes" I did "apt-get install u-boot-tools"
B.) After the "apt-get install ubuntu-omap4-extras --yes --force-yes" I shut down and modified boot.scr in the boot partition to:

    fatload mmc 0:1 0x80000000 uImage
    setenv bootargs quiet rw fixrtc mem=1G@0x80000000 root=/dev/mmcblk0p2 console=ttyO2,115200n8 omapdss.def_disp=dvi rootwait ip=dhcp
    bootm 0x80000000

I am still not sure why you are using omapdss.def_disp=dvi
The instructions say to use "vram=32M" but I know that is no longer valid, so I took that out.  Also, both the DVI port and HDMI port had no signal until I added omapdss.def_disp=dvi to the bootargs.  Even after doing that the HDMI port was activated, not the DVI one.  Strange...
With the TI PPA kernel, HDMI and DVI shall be auto-detected at boot and you shall be able to use both connector.

C.) Before doing the "apt-get install xorg", I did "apt-get install --reinstall pvr-omap4-dkms" because I did not see "omapdrm_prv" from lsmod.
omapdrm_prv will be triggered only after X startup in fact.

D.) After doing the "apt-get install xorg" I stopped with the instructions, since I don't want a window manager.  I'm trying to make an image as minimal as possible.

To answer your questions (with my Pandaboard in the state described above):
1.) So you are using TI PPA, correct?

Yes.  In /etc/apt/sources.list:
# TI release PPA
deb http://ppa.launchpad.net/tiomap-dev/release/ubuntu precise main
deb-src http://ppa.launchpad.net/tiomap-dev/release/ubuntu precise main

2.) Can you ensure that you perform dist-upgrade? We indeed have renamed some packages so aptitude needs that you perform dist-upgrade to replace existing package with new ones.

Apparently I already have the latest:
root@localhost:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

3.) Can you check if pvr module is correctly installed?
After the boot perform: lsmod | grep omapdrm_prv
If this module is not loaded you might need to execute:
sudo apt-get install --reinstall pvr-omap4-dkms

Even though I did "apt-get install --reinstall pvr-omap4-dkms" previously, I still don't see "omapdrm_prv" now on reboot.  I installed it again just now and rebooted - it did not show under lsmod until after I ran "startx".  Apparently I will always need to startx first.
Yes, omapdrm_prv is automatically loaded only after you startx, this is expected.


4.) Can you ensure that you are running the last kernel? Please send "uname -a" output.

root@localhost:~# uname -a
Linux localhost.localdomain 3.4.0-1487-omap4 #6-Ubuntu SMP PREEMPT Mon Oct 1 16:54:59 UTC 2012 armv7l armv7l armv7l GNU/Linux
OK.


5.) Why are you using omapdss.def_disp=dvi in your bootargs?

I saw this on http://omappedia.org/wiki/Bootargs_for_enabling_display and added it since neither HDMI nor DVI were providing signal without it.  Maybe the situation is different because I am using a core image and not a desktop one?
When booting Ubuntu Core, you shall see a console on HDMI or DVI after the boot. You shall not specify omapdss_def and you shall add splash to the bootargs.


6.) Are you sure about your pipeline?  Here is an example of pipeline supposed to work:
Example of VTC (videoconference) e.g. V4L2 USB webcam + preview + H264 encode + H264 decode + display, using V4L2, DRI2 and PVR.
gst-launch -v v4l2src ! "video/x-raw-yuv, framerate=(fraction)30/1" ! stridetransform ! tee name=t \
t. ! queue ! dri2videosink sync=false \
t. ! queue ! ducatih264enc rate-preset=low-delay profile=100 ! h264parse ! ducatih264dec ! queue ! pvrvideosink sync=false

So I did a reboot, startx, export DISPLAY=:0, checked lsmod again for "omapdrm_prv", and ran the pipeline you provided:

root@localhost:~# ./gst.sh
Setting pipeline to PAUSED ...
PVR:(Warning): PVRSRVOpenDCDevice: Warning - 138 returned [80, /bridged_pvr_dc_glue.c]
PVR:(Warning): PVRSRVOpenDCDevice: Warning - 138 returned [80, /bridged_pvr_dc_glue.c]
libdce-x11.c:64:        dce_auth_x11    info: attempting to open X11 connection
libdce.c:459:   init    error: could not get plugin ioctl base: -22
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
PVR:(Warning): PVRDRMSetFD: DRM fd already set [57, /pvr_bridge_u.c]
Freeing pipeline ...
It looks correct, messages are normal ones.


7.) Why are you using root user?

The Ubuntu core image drops you right into root.
OK, this explains why...

JB

unread,
Nov 13, 2012, 1:39:38 PM11/13/12
to panda...@googlegroups.com, JB, x-bo...@ti.com
My old bootargs in boot.scr were:


quiet rw fixrtc mem=1G@0x80000000 root=/dev/mmcblk0p2 console=ttyO2,115200n8 omapdss.def_disp=dvi rootwait ip=dhcp

I created a new boot.scr in the boot partition with bootargs set as:

ro elevator=noop console=ttyO2,115200n8 mem=1G@0x80000000 root=/dev/mmcblk0p2 fixrtc splash rootwait ip=dhcp

I plugged into the DVI port on the Pandaboard, powered on, and saw two penguins in the upper left corner.  I then tried the HDMI port and saw the same thing.  At this point I was unable to log in via the serial console, and saw no login prompt from either display - just penguins.  I can ping the board's IP address but not SSH.  I'm probably missing something obvious here...

Jared

JB

unread,
Nov 13, 2012, 2:14:34 PM11/13/12
to panda...@googlegroups.com, JB, x-bo...@ti.com
Oh, oops.  I had copied the recommended bootargs "ro elevator=noop console=ttyO2,115200n8 mem=1G@0x80000000 root=/dev/mmcblk0p2 fixrtc splash" from one of the other posts here.  I don't want to mount the root filesystem as read-only...  I am now using these bootargs in a new boot.scr:

rw elevator=noop console=ttyO2,115200n8 mem=1G@0x80000000 root=/dev/mmcblk0p2 fixrtc splash rootwait ip=dhcp

- I can again login from the serial console
- The DVI display has a login prompt and I can login there as well
- The HDMI display shows nothing (monitor goes into powersaving mode)

At the DVI display, if I login as root, startx, see omapdrm_pvr from lsmod, and run the recommended gstreamer pipeline, I get an error and see no output:


root@localhost:~# ./gst.sh
Setting pipeline to PAUSED ...
PVR:(Warning): PVRSRVOpenDCDevice: Warning - 138 returned [80, /bridged_pvr_dc_glue.c]
PVR:(Warning): PVRSRVOpenDCDevice: Warning - 138 returned [80, /bridged_pvr_dc_glue.c]
libdce-x11.c:64:        dce_auth_x11    info: attempting to open X11 connection
libdce.c:459:   init    error: could not get plugin ioctl base: -22
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
PVR:(Warning): PVRDRMSetFD: DRM fd already set [57, /pvr_bridge_u.c]
Freeing pipeline ...
root@localhost:~#

Output from dmesg is attached if that helps any...  Thanks!

Jared
dmesg.txt

Xavier Boudet

unread,
Nov 14, 2012, 2:47:19 AM11/14/12
to JB, panda...@googlegroups.com
Hi Jared,

Apparently you are facing uInitrd issue.
We realized very recently that without the uInitrd, udevd was not starting correctly and as a consequence ducati is not starting correctly:
[   11.963928] rproc remoteproc1: failed waiting for udev -2
[   11.970092] rproc remoteproc0: failed waiting for udev -2
It is still not clear why we are facing this issue, but we are investigating.

You just need to update your boot.scr/boot.script accordingly:
fatload mmc 0:1 0x80000000 uImage
fatload mmc 0:1 0x81600000 uInitrd
setenv bootargs <... your current bootargs, no change>
bootm 0x80000000 0x81600000


We have updated the wiki accordingly:
http://omappedia.org/wiki/OMAP_Ubuntu_Core

Regards, Xavier Boudet

Xavier Boudet

unread,
Nov 14, 2012, 12:12:31 PM11/14/12
to wb666...@gmail.com, panda...@googlegroups.com
The error your are facing is typically due to bad proxy settings.
Are you behind a proxy?
Have you set correctly http_proxy and https_proxy?

Regards, Xavier Boudet
On 11/14/2012 05:58 PM, wb666...@gmail.com wrote:


On Tuesday, September 4, 2012 7:25:09 AM UTC-5, Boudet, Xavier wrote:
Hi there,

A major update has been done on TI PPA. Please read the below e-mail especially for upgrade.
If you do not have installed the TI release PPA, please refer to New installation procedure.

New installation procedure:
  1- Add TI OMAP release PPA:
    $ sudo su -
    # export http_proxy=<your proxy if any>
    # export https_proxy=<your proxy if any>
    # add-apt-repository ppa:tiomap-dev/release

This step is failing for me with the following error:

root@lPandaES:~# add-apt-repository ppa:tiomap-dev/release                    
Traceback (most recent call last):                                            
  File "/usr/bin/add-apt-repository", line 125, in <module>                   
    ppa_info = get_ppa_info_from_lp(user, ppa_name)                           
  File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, 
in get_ppa_info_from_lp                                                       
    curl.perform()                                                            
pycurl.error: (60, 'server certificate verification failed. CAfile: /etc/ssl/c
erts/ca-certificates.crt CRLfile: none')                                      


I'm starting with a virgin 12.04 server image and have followed these instructions until this point.
 

Any idea what is wrong? or is it just a glitch in the ppa and I should try again later?


JB

unread,
Nov 14, 2012, 5:49:05 PM11/14/12
to panda...@googlegroups.com, JB, x-bo...@ti.com
I started from scratch again, this time grabbing the uInitrd for the boot partition and adding the bootargs you noted.  On first boot there now seems to be a net installation that wants to format the rootfs and create a user, etc.  This seems to no longer be "Ubuntu core" and destroys the tarball that was extracted to the rootfs and all the modifications.

Any idea what this uInitrd is?  Is this the right one?


Jared

Xavier Boudet

unread,
Nov 15, 2012, 5:20:54 AM11/15/12
to Uli Grossek, panda...@googlegroups.com, JB
Indeed, I did not notice that.
I will modify back the documentation to indicate to add uInitrd after the ubuntu-omap4-extras installation.

Thanks for the feedback.

Regards, Xavier Boudet
On 11/15/2012 12:08 AM, Uli Grossek wrote:
no, this is the wrong init ramdisk.
Here is what i did:
First install the ubuntu core on a SD card (without init ramdisk), then boot the pandaboard and install the TI PPA. After updating the bootloader (with "flash-kernel --update-bootloader"), the init ramdisk is being generated in the boot partition. Then, change the /boot/boot.script to load the uInitrd and update the bootloader again ("flash-kernel"). Reboot and everything will work.

Xavier Boudet

unread,
Nov 16, 2012, 4:41:29 AM11/16/12
to frank...@gmail.com, panda...@googlegroups.com, Uli Grossek, JB
Hello Frankie,

First of all, I advise you to configure a console on the Panda and to perform the upgrade through the console if this is not already the case.

Then can you confirm that you are using Ubuntu 2D (unity) and not Ubuntu 3D (compiz).
Ubuntu 3D is known to be unstable with TI PPA.

Concerning bootargs, you indeed need to ensure that your bootargs are the following:
ro elevator=noop console=ttyO2,115200n8 mem=1G@0x80000000 root=<UUID or LABEL root> fixrtc splash

Please review the following thread (first 2 e-mails) "Ubuntu Precise 12.04 - TI OMAP Release PPA Update October 2012":
https://groups.google.com/forum/?fromgroups=#!topic/pandaboard/7DLabw7amBg

Then everything shall work well using HDMI connector with DVI adaptor to your monitor.

Enabling Universe and Multiverse Repositories before the update and the dist-upgrade shall not be mandatory, on my side I always enable them...

Regards, Xavier Boudet
On 11/15/2012 08:26 PM, frank...@gmail.com wrote:
Hi,

First of all, thank you for all the support you've been providing. I have a Pandaboard ES Rev. B1 and am trying to do a new installation of Ubuntu 12.04 with the TI OMAP PPA. I am using the precompiled desktop image from http://cdimage.ubuntu.com/releases/12.04/release/ (ubuntu-12.04-preinstalled-desktop-armhf+omap4.img.gz).

I have also been getting the black screen issues, but was able to circumvent it by powering the board with the monitor plugged into the DVI-D port and then switching to the HDMI-1080p port. I'm using an HDMI to DVI-D adapter to my monitor. Booting with the screen unplugged and plugging it in after 1 minute also seems to work sometimes.

I've been following the instructions on this discussion and this page: http://omappedia.org/wiki/Installing_Ubuntu_12.04_on_Pandaboard_with_TI_ppa. After the installation procedure, when performing the command:
$ sudo apt-get dist-upgrade
About 30 minutes into the upgrade, everything disappears except for the wallpaper, the screen goes black, and I only get flashes of the wallpaper when I move my cursor. The Pandaboard will not reboot after this.

Am I supposed to change any bootargs first? Do I need to enable Universe and Multiverse Repositories before the update and the dist-upgrade?

The only thing I may be doing differently is that I'm writing the image to my 8 GB SDHC card using Windows and ImageWriter per the instructions here: https://wiki.ubuntu.com/ARM/OmapDesktopInstall. I have tried writing the images using a Ubuntu 12.04 VirtualBox and a USB SD Card Reader. Although the image finishes being written, the Pandaboard will not read it. I also cannot get minicom to read serial commands through the Ubuntu 12.04 VirtualBox.

If I just want to get something running, am I better off going back to Ubuntu 11.10?

Thanks again for your help.

Best Regards,
Frankie

weijian...@gmail.com

unread,
Jul 22, 2013, 9:29:06 AM7/22/13
to panda...@googlegroups.com
Hello JImD,

I am searching some method to add new available frequencies to pandaboard ES(OMAP4460).

your cpufreq-info really attract me , you can get 350 MHz, 700 MHz, 920 MHz, 1.20 GHz in 
you board.But for my board I only can get 350 MHz, 700 MHz, 920 MHz, and 
when I try to "echo 1.20GHz" or others frequecyies to scaling_setspeeds, nothing happened...
Could you tell me how you get the highest frequency?
Thank you very much.

Regards,
Qiong


在 2012年9月7日星期五UTC+2下午6时22分42秒,JimD写道:
Thanks for the very useful information!

My results for cpufreq-info are indeed very similar. Specifically they are (and this is when running a 576p h.264 file):
jim@jim-panda:~$ cpufreq-info
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpu...@vger.kernel.org, please.
analyzing CPU 0:
  driver: omap2plus
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 300 us.
  hardware limits: 350 MHz - 1.20 GHz
  available frequency steps: 350 MHz, 700 MHz, 920 MHz, 1.20 GHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 350 MHz and 1.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 350 MHz.
  cpufreq stats: 350 MHz:95.58%, 700 MHz:2.68%, 920 MHz:0.44%, 1.20 GHz:1.30%  (850)

analyzing CPU 1:
  driver: omap2plus
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 300 us.
  hardware limits: 350 MHz - 1.20 GHz
  available frequency steps: 350 MHz, 700 MHz, 920 MHz, 1.20 GHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 350 MHz and 1.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 350 MHz.
  cpufreq stats: 350 MHz:95.58%, 700 MHz:2.68%, 920 MHz:0.44%, 1.20 GHz:1.30%  (850)
I'm getting the 25 interrupts per second on the mailbox:
INT                NAME          RATE             MAX
 29 [          GIC  twd]   167 Ints/s     (max:   198)
 53 [      GIC  SGX ISR]   157 Ints/s     (max:   556)
 58 [GIC  mailbox-1, ma]    25 Ints/s     (max:    33)
109 [GIC  ehci_hcd:usb1]   195 Ints/s     (max:  2858)
145 [GIC  omap_dmm_irq_]   102 Ints/s     (max:   123)
and generally it's looking pretty much as it should. However, I am still getting the 75% CPU utilisation.

But! Not that the cpufreq-info result above said it was using 350MHz! Maybe that's the give away? Let's try a quick sudo cpufreq-set -g performance and see what happens! Humm... Down to 35%. Now let's try a 720p film: and I'm getting around 100%. That's curious.... Not the 20% we were expecting.

I wonder where all the time is going? Audio decode?

Now that's interesting: switching to a different film in an MKV with H.264 video and DTS audio I'm down to 20% CPU! Hurrah! But with H.264 and AAC audio in a .MP4 I get the high load.

Looks like this is worth noting.

Many thanks for your help in sorting this one,

Jim.


p.s. Now just the black login screen and the losing of debugging on the serial output to solve.....

On 07/09/12 16:55, Nicolas Dechesne wrote:
Reply all
Reply to author
Forward
0 new messages