I have a fix for the SGS2 camera. I already did the pull requests for this fix to be landed in the mainstream, but B2G team needs to fork my SKIA library ( https://github.com/atilag/skia-b2g-sgs2) and keep it in his github account (and not mine :)), and modify SGS2 branch of the b2g-manifest project to point to this SKIA library repo and not the AOSP one.
Until it happens, you can go through these steps to make the camera works on your device: Modify config.sh script to point to my b2g-manifest fork on github: [email protected]:atilag/b2g-manifest.git (line ~ 58): GITREPO="git://github.com/atilag/b2g-manifest" I have modified the manifest.xml file to piont to my fork of SKIA library and initramfs projects. This is cause I had to complie SKIA library with some extra modules cause unresolved symbols from other libraries needed by the camera, and the initramfs-galaxy2-ics is where init.rc scripts are located, I've modified this script in order to launch two services also needed by the camera: bintvoutservice and surfaceflinger. I'm not 100% sure but I think that SGS2 zImage is a prebuit, so you have two options here: Clone my initramfs-galaxys2-ics and kernel-galaxys2-ics projects, and try to generate zImage, or download a prebuit I uploaded to: http://dl.dropbox.com/u/18328346/zImage , well, another option is to wait until I modify the scripts involved in donwloading this prebuilt zImage built by me (Tomorrow, I hope). Now that you have modifed the config.sh script and have a good zImage, try: Remove B2G/out directory (if you don't know how to remove just libskia remains) Remove old B2G/external/libskia, cause the config.sh process will clone the new one. Execute: ./config.sh galaxy-s2 && ./build.sh Flash the new zImage by hand (if you don´t know where to copy it for the ./flash.sh process): heimdall flash --kernel /path/to/my/zImage Flash gecko and gaia: ./flash.sh gecko && ./flash.sh gaia I hope I do not forget anything. Enjoy!! Juan Gómez El 28/09/2012 23:13, "Hubert Figuière" <[email protected]> escribió: > On 28/09/12 12:11 AM, Troy Sun wrote: > > I've got the same problem on Samsung Galaxy S2 I9100. > > > > E/HAL ( 1829): load: module=/system/lib/hw/camera.exynos4.so > > E/HAL ( 1829): Cannot load library: link_image[1962]: 1829 could > not load needed library 'libtvoutservice.so' for 'camera.exynos4.so' > > (link_image[1962]: 1829 could not load needed library > 'libtvoutinterface.so' for 'libtvoutservice.so' (reloc_library[1311]: 1829 > cannot locate '_ZN9SkTextBoxC1Ev'... E/HAL ( 1829): )) > > > > The 'libtvoutinterface.so' can not locate the symbol > '_ZN9SkTextBoxC1Ev'( SkTextBox::SkTextBox() ), > > which is found in libskia.so from samgsumg's official ICS ROM, but not > in skia build out by B2G. > > > > > > Camera is not supported on this device. The GT-i9100 is considered as a > tier-3 support device: > > < > https://developer.mozilla.org/en-US/docs/Mozilla/Boot_to_Gecko/B2G_build_prerequisites?redirectlocale=en-US&redirectslug=Mozilla%2FBoot_to_Gecko%2FBuilding_B2G_for_Samsung_Galaxy_S2#Have_a_compatible_phone_or_use_emulators > > > > Feel free to submit a fix. > > Hub > > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g > _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
