Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Trouble running B2G on Pandaboard ES

155 views
Skip to first unread message

hu...@hadronization.com

unread,
May 17, 2013, 4:04:15 PM5/17/13
to
Hi all,

I'm seeking out a wise sage who has done this before to bestow some wisdom upon me...

Long story short, I've had no trouble following the config, build & flash steps for Pandaboard, but when I boot my Panda it stops at at the Android shell prompt, and running ./system/b2g/b2g gives -

link_image[1936]: 1465 could not load needed library 'libmozglue.so' for './system/b2g/b2g' (load_library[1091]: Library 'libmozglue.so' not found)CANNOT LINK EXECUTABLE

Can anyone point me in the right direction? Any tips or suggestions will be greatly appreciated! =)

Thanks in advance,

Hugh

Jed Davis

unread,
May 20, 2013, 5:35:58 PM5/20/13
to hu...@hadronization.com, dev...@lists.mozilla.org
On Fri, May 17, 2013 at 01:04:15PM -0700, hu...@hadronization.com wrote:
> Long story short, I've had no trouble following the config, build & flash steps for Pandaboard, but when I boot my Panda it stops at at the Android shell prompt, and running ./system/b2g/b2g gives -
>
> link_image[1936]: 1465 could not load needed library 'libmozglue.so' for './system/b2g/b2g' (load_library[1091]: Library 'libmozglue.so' not found)CANNOT LINK EXECUTABLE
>
> Can anyone point me in the right direction? Any tips or suggestions will be greatly appreciated! =)

/system/bin/b2g.sh is what you want to try to run.

--Jed

hu...@hadronization.com

unread,
May 21, 2013, 12:06:41 AM5/21/13
to
Hi Jed,

Many thanks for taking the time to reply. I tried out your tip and this is what my Panda replied me:


shell@android:/ # ./system/bin/b2g.sh
[ 160.577117] request_suspend_state: wakeup (3->0) at 160568542483 (2000-01-01 00:02:37.146636965 UTC)
[ 160.590270] DSSCOMP: dsscomp_late_resume
[ 160.600067] PVR_K:(Error): PVRSRVCreateDCSwapChainKM: Failed to create 3rd party SwapChain [1152, /home/tdz/Projects/mozilla/aosp/kernel/omap/drivers/gpu/pvr/deviceclass.c]
Segmentation fault


(Sorry if the text formatting is messy.) Anyway this whole exchange is done in gtkterm because there's no output to the monitor. My apologies for not saying so earlier.

Would you like to suggest any further steps I could try?

Thanks again and cheers,

Hugh

Thomas Zimmermann

unread,
May 23, 2013, 3:32:29 AM5/23/13
to hu...@hadronization.com, dev...@lists.mozilla.org
Hi,

This looks like a problem with your graphics driver. You should have the
graphics driver at

https://dl.google.com/dl/android/aosp/imgtec-panda-20120430-67545da7.tgz

automatically downloaded to

downloads-panda/

and installed when building the images. You need 'curl' installed to
make this work.

Could you delete the download-panda/ directory and run 'build.sh' again?
Is the driver downloaded and extracted correctly?

Best regards
Thomas
> _______________________________________________
> dev-b2g mailing list
> dev...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-b2g

Hugh Tay

unread,
May 26, 2013, 2:29:32 AM5/26/13
to Thomas Zimmermann, dev...@lists.mozilla.org
Hi Thomas,

Many thanks for taking the time to reply. Somehow I managed to get B2G up
and running (I tried a lot of funny stuff and I'm not exactly sure why it
works now; long story...) but the screen resolution is out of whack. I've
attached a picture for reference.

Could you suggest any method for fixing the resolution to 1280x800? I'm
guessing that the resolution is hard-coded somewhere but it has eluded me
thus far.

~~~

Here's what I already tried:

1. Re-compiled "bootloader.bin" from source ( courtesy of git://
git.omapzoom.org/repo/u-boot.git ) and used [ fastboot ] to re-flash the SD
card.

I modified ./u-boot/include/configs/omap4430panda.h to -

#define CONFIG_BOOTARGS "console=ttyO2,115200n8 mem=512M" \
" init=/init vram=48M omapfb.vram=0:24M,1:24M
androidboot.console=ttyO2" \
" omapfb.mode=dvi:1280x800MR-24@60 consoleblank=0"

---

2. Followed the tip at
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Using_the_B2G_desktop_client

to modify the last statement in ./system/bin/b2g.sh to -

./system/b2g/b2g --screen=1280x800

---

Alas, neither worked... Any idea what further steps I might try?

Much appreciated and best regards,

Hugh



On Thu, May 23, 2013 at 12:32 AM, Thomas Zimmermann <tzimm...@mozilla.com
> wrote:

> Hi,
>
> This looks like a problem with your graphics driver. You should have the
> graphics driver at
>
> https://dl.google.com/dl/**android/aosp/imgtec-panda-**
> 20120430-67545da7.tgz<https://dl.google.com/dl/android/aosp/imgtec-panda-20120430-67545da7.tgz>
>
> automatically downloaded to
>
> downloads-panda/
>
> and installed when building the images. You need 'curl' installed to make
> this work.
>
> Could you delete the download-panda/ directory and run 'build.sh' again?
> Is the driver downloaded and extracted correctly?
>
> Best regards
> Thomas
>
>
> On 21.05.2013 06:06, hu...@hadronization.com wrote:
>
>> Hi Jed,
>>
>> Many thanks for taking the time to reply. I tried out your tip and this
>> is what my Panda replied me:
>>
>>
>> shell@android:/ # ./system/bin/b2g.sh
>> [ 160.577117] request_suspend_state: wakeup (3->0) at 160568542483
>> (2000-01-01 00:02:37.146636965 UTC)
>> [ 160.590270] DSSCOMP: dsscomp_late_resume
>> [ 160.600067] PVR_K:(Error): PVRSRVCreateDCSwapChainKM: Failed to create
>> 3rd party SwapChain [1152, /home/tdz/Projects/mozilla/**
>> aosp/kernel/omap/drivers/gpu/**pvr/deviceclass.c]
>> Segmentation fault
>>
>>
>> (Sorry if the text formatting is messy.) Anyway this whole exchange is
>> done in gtkterm because there's no output to the monitor. My apologies for
>> not saying so earlier.
>>
>> Would you like to suggest any further steps I could try?
>>
>> Thanks again and cheers,
>>
>>
>> Hugh
>> ______________________________**_________________
>> dev-b2g mailing list
>> dev...@lists.mozilla.org
>> https://lists.mozilla.org/**listinfo/dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g>
>>
>
>

Thomas Zimmermann

unread,
May 27, 2013, 4:29:23 AM5/27/13
to Hugh Tay, dev...@lists.mozilla.org
Hi Hugh,

According to


http://omappedia.org/wiki/Bootargs_for_enabling_display#Standard_Display_Resolutions

it should be possible to set the video timings directly by writing to

/sys/devices/platform/omapdss/display<0|1>/timings

There is also a list of HDMI modes and timing values. If this actually
works, you'd definately need to restart b2g afterwards. Or if you set
the timing from within the init files before starting b2g, it should
take effect automatically. Let me know if this works.

Best regards
Thomas
>>> Hi Jed,
>>>
>>> Many thanks for taking the time to reply. I tried out your tip and this
>>> is what my Panda replied me:
>>>
>>>
>>> shell@android:/ # ./system/bin/b2g.sh
>>> [ 160.577117] request_suspend_state: wakeup (3->0) at 160568542483
>>> (2000-01-01 00:02:37.146636965 UTC)
>>> [ 160.590270] DSSCOMP: dsscomp_late_resume
>>> [ 160.600067] PVR_K:(Error): PVRSRVCreateDCSwapChainKM: Failed to create
>>> 3rd party SwapChain [1152, /home/tdz/Projects/mozilla/**
>>> aosp/kernel/omap/drivers/gpu/**pvr/deviceclass.c]
>>> Segmentation fault
>>>
>>>
>>> (Sorry if the text formatting is messy.) Anyway this whole exchange is
>>> done in gtkterm because there's no output to the monitor. My apologies for
>>> not saying so earlier.
>>>
>>> Would you like to suggest any further steps I could try?
>>>
>>> Thanks again and cheers,
>>>
>>>
>>> Hugh
>>> ______________________________**_________________
>>> dev-b2g mailing list
>>> dev...@lists.mozilla.org
>>> https://lists.mozilla.org/**listinfo/dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g>
>>>
>>
>>
>>
>> _______________________________________________
>> dev-b2g mailing list
>> dev...@lists.mozilla.org
>> https://lists.mozilla.org/listinfo/dev-b2g

hu...@hadronization.com

unread,
May 27, 2013, 4:39:52 PM5/27/13
to
Hi Thomas (and anyone else visiting this thread),


Sorry the screenshot didn't appear in my previous message; I replied via email as I thought I could attach images that way, but I was so wrong.

Anyhow, I followed your suggestion and tried -

# echo "76800,1280/110/20/40,800/5/20/5" > /sys/devices/platform/omapdss/display0/timings

And it worked! Thank you so much. ^_^

---

Unfortunately, however, the problem doesn't end there... No matter what numbers I tried (rather blindly, I admit) for the command above, I could not extend Gaia to span the whole width of my LCD screen.

The following link is a screenshot to show what I mean:

http://media.cmcdn.net/20795109/327x450.jpeg

I'm guessing that the aspect ratio 1280x720 is hardcoded into Gaia itself, rather than the responsibility of the kernel, am I correct? If yes, do you know how I might change the resolution for Gaia?

If I'm wrong, would you be able to point me to some Panda support site that might offer a solution?


Once again thank you for all your help, with much appreciation and best regards,


Hugh

谭亮

unread,
Feb 14, 2015, 10:41:00 AM2/14/15
to mozilla...@lists.mozilla.org
I installed imgtec-panda-20120430-67545da7.tgz
but when i run /system/bin/surface, below err
PVR_K:(Error): PVRSRVCreateDCSwapChainKM: Failed to create 3rd party SwapChain [1152, /home/tdz/Projects/mozilla/aosp/kernel/omap/drivers/gpu/pvr/deviceclass.c]

why, help me, thanks

Thomas Zimmermann

unread,
Feb 16, 2015, 4:31:23 AM2/16/15
to 谭亮, mozilla...@lists.mozilla.org
Hi

> I installed imgtec-panda-20120430-67545da7.tgz
> but when i run /system/bin/surface, below err
> PVR_K:(Error): PVRSRVCreateDCSwapChainKM: Failed to create 3rd party SwapChain [1152, /home/tdz/Projects/mozilla/aosp/kernel/omap/drivers/gpu/pvr/deviceclass.c]

That looks like an incompatibility between your kernel and the graphics
driver. Did you build from the B2G sources?

What does /system/bin/surface do?

Best regards
Thomas

>
> why, help me, thanks

Thomas Zimmermann

unread,
Feb 27, 2015, 8:03:11 AM2/27/15
to 谭亮, mozilla...@lists.mozilla.org
Hi,

sorry for my late responses. It seems your emails only reach me after
several days.

The only supported kernel branch is 'current'. The user-space driver is
*very* picky about which kernel it runs with. When you build a kernel,
make sure you use 'panda_defconfig' as base configuration.

Best regards
Thomas

Am 16.02.2015 um 16:07 schrieb 谭亮:
> thanks your reply
> yes I build from the B2G sources (1.4v), but kernel is my build,kernel source is form github mozilla-b2g/kernel-omap
0 new messages