Jump to content


Photo

[B2G] Firefox OS for the Huawei Ascend G300 [ROM] [Last updated: 06/12]


  • Please log in to reply
153 replies to this topic

#121
Rydlis

Rydlis

    Enthusiast

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Zlín, Czech Republic
  • Interests:Theming Android&Linux
  • Devices:Huawei Ascend G300
  • Twitter:@DavidRejdl
the DPI is small because this OS was originally developed for 320x480 devices

  • 0

#122
celrau

celrau

    Regular

  • Members
  • PipPip
  • 75 posts

the DPI is small because this OS was originally developed for 320x480 devices


Yes but there must be a way to change that, we just don't know it :mellow:

  • 0

#123
Rydlis

Rydlis

    Enthusiast

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Zlín, Czech Republic
  • Interests:Theming Android&Linux
  • Devices:Huawei Ascend G300
  • Twitter:@DavidRejdl
if I think what you mean by DPI (resolution?)
complete re-texture the OS, trust me, nobody want to do it, but it's necessary to have right DPI

Edited by Rydlis, 24 July 2013 - 08:31 PM.

  • 0

#124
mihairu

mihairu

    Newbie

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Devices:ZTE Blade
Yeah it WAS for low res devices but 1.1.0hd branch is for our devices and devices with better resolution...I did some changes to gaia and I can simply change(hard fixed) all of system apps to be nice (can provide images) but real problem is user installed apps...I think we must wait...or at least we need to change main css to get larger text, etc. in all apps, but i can't find it right now...

Edited by mihairu, 24 July 2013 - 08:44 PM.

  • 0

#125
Rydlis

Rydlis

    Enthusiast

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Zlín, Czech Republic
  • Interests:Theming Android&Linux
  • Devices:Huawei Ascend G300
  • Twitter:@DavidRejdl
I will try help, I am quite interested in this too :)
Is there a possibility to send me uncompiled source?

Edited by Rydlis, 24 July 2013 - 09:26 PM.

  • 0

#126
PaulMilbank

PaulMilbank

    Regular

  • Members
  • PipPip
  • 146 posts
http://bluishcoder.c...on-nexus-s.html

The main source repository is on github, https://github.com/mozilla-b2g/b2g. The first step is to clone this repository. I clone this into a directory called nexus-s:
$ git clone git://github.com/mozilla-b2g/B2G nexus-s
$ cd nexus-s
Create a file in this directory called .userconfig containing the following:

export CC=gcc-4.6
export CXX=g++-4.6
export HIDPI=1
The first two entries are required if you are building on Ubuntu 12.10 to use gcc version 4.6, which you must install. B2G does not build using gcc version 4.7.

The last entry, HIDPI, results in applications using the correct resources for the screen size on the Nexus S. Without this many things will be scaled incorrectly.


Rydelis, source is in Mozilla B2G repos on github.

Build instructions here:

https://developer.mo...d_prerequisites

https://developer.mo...first_B2G_build

This is where I get lost, I don't know how to build with Dazzozo's device tree, vendor tree and kernel or even if I need to. If anyone could put up a guide on how to build, I would love to get B2G running on this phone, it is a lot more interesting to me than android.

https://github.com/D..._u8815/tree/b2g

https://github.com/D.../tree/ics/u8815

https://github.com/Dazzozo/B2G

https://github.com/D..._u8815/tree/ics

I would like to devote some time to it, but I just don't have any at the moment which is why I stopped building kernels for the G300 too.

  • 0

#127
Rydlis

Rydlis

    Enthusiast

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Zlín, Czech Republic
  • Interests:Theming Android&Linux
  • Devices:Huawei Ascend G300
  • Twitter:@DavidRejdl
thanks, I will look at it :)

  • 0

#128
celrau

celrau

    Regular

  • Members
  • PipPip
  • 75 posts

Yeah it WAS for low res devices but 1.1.0hd branch is for our devices and devices with better resolution...I did some changes to gaia and I can simply change(hard fixed) all of system apps to be nice (can provide images) but real problem is user installed apps...I think we must wait...or at least we need to change main css to get larger text, etc. in all apps, but i can't find it right now...


Please share, if you don't consider to be of general interest PM me. I was gonna look into this myself but didn't know where to start.
Another issue I have is relatively low sound with calls and music with volume all the way up.

  • 0

#129
celrau

celrau

    Regular

  • Members
  • PipPip
  • 75 posts
I tried to build Firefox OS again and got this (if anyone can help):
build/core/base_rules.mk:82: *** Module name: gtest-death-test_test_host
build/core/base_rules.mk:83: *** Makefile location: external/gtest/test
build/core/base_rules.mk:84: *
build/core/base_rules.mk:85: * Each module must use a LOCAL_MODULE_TAGS in its
build/core/base_rules.mk:86: * Android.mk. Possible tags declared by a module:
build/core/base_rules.mk:87: *
build/core/base_rules.mk:88: *	 optional, debug, eng, tests, samples
build/core/base_rules.mk:89: *
build/core/base_rules.mk:90: * If the module is expected to be in all builds
build/core/base_rules.mk:91: * of a product, then it should use the
build/core/base_rules.mk:92: * "optional" tag:
build/core/base_rules.mk:93: *
build/core/base_rules.mk:94: *    Add "LOCAL_MODULE_TAGS := optional" in the
build/core/base_rules.mk:95: *    Android.mk for the affected module, and add
build/core/base_rules.mk:96: *    the LOCAL_MODULE value for that component
build/core/base_rules.mk:97: *    into the PRODUCT_PACKAGES section of product
build/core/base_rules.mk:98: *    makefile(s) where it's necessary, if
build/core/base_rules.mk:99: *    appropriate.
build/core/base_rules.mk:100: *
build/core/base_rules.mk:101: * If the component should be in EVERY build of ALL
build/core/base_rules.mk:102: * products, then add its LOCAL_MODULE value to the
build/core/base_rules.mk:103: * PRODUCT_PACKAGES section of
build/core/base_rules.mk:104: * build/target/product/core.mk
build/core/base_rules.mk:105: *
build/core/base_rules.mk:106: *** user tag detected on new module - user tags are only supported on legacy modules.  Stop.

  • 0

#130
mihairu

mihairu

    Newbie

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Devices:ZTE Blade
Yes I have this compilation issue too...:(

  • 0

#131
celrau

celrau

    Regular

  • Members
  • PipPip
  • 75 posts
I posted this issue to b2g dev forum and this is what I got back:


This is caused by a change in the upstream gtest manifest, that isn't compatible with ICS.

A quick way to work around this is to do:

cd external/gtest
git checkout 8c212ebe53bb2baab3575f03069016f1fb11e449
cd -

and your build should continue to work.

To make this more permanent, you should get your manifest updated (if you cd into .repo/manifests and search for gtest, you'll see that most have been frozen on the 8c212... hash."

... which fixes it but I'm getting an error further down the line.
Looks like some things have changed since Dazzozo made the initial port so please Dazzozo, can you update your repository so that we can at least build B2G? I'd do it if I had the knowhow :)

  • 0

#132
celrau

celrau

    Regular

  • Members
  • PipPip
  • 75 posts
Here's another reply I got on B2G forum, maybe it can help:

Hey, you should probably do something similar to https://github.com/m...04bc6a638c75a56 to your b2g-manifset.git repo".

  • 0

#133
mihairu

mihairu

    Newbie

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Devices:ZTE Blade
i forked dazzozzo's manifest...you can try it, but i have another error after updating all repos etc. (https://github.com/M...u/b2g-manifest/)

error: linux/i2c-dev.h: No such file or directory
device/huawei/u8815/audio/HardwarePinSwitching.c: In function 'do_rdwr':
device/huawei/u8815/audio/HardwarePinSwitching.c:69: error: storage size of 'msgset' isn't known
make: *** [out/target/product/u8815/obj/SHARED_LIBRARIES/audio.primary.u8815_intermediates/HardwarePinSwitching.o] Error 1
make: *** Waiting for unfinished jobs....
device/huawei/u8815/audio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/huawei/u8815/audio/AudioHardware.h:320: warning: 'android_audio_legacy::AudioHardware::mOutput' will be initialized after
device/huawei/u8815/audio/AudioHardware.h:318: warning: 'bool android_audio_legacy::AudioHardware::mBluetoothVGS'
device/huawei/u8815/audio/AudioHardware.cpp:118: warning: when initialized here
device/huawei/u8815/audio/AudioHardware.h:327: warning: 'android_audio_legacy::AudioHardware::mDualMicEnabled' will be initialized after
device/huawei/u8815/audio/AudioHardware.h:315: warning: 'int android_audio_legacy::AudioHardware::mFmFd'
device/huawei/u8815/audio/AudioHardware.cpp:118: warning: when initialized here
device/huawei/u8815/audio/AudioHardware.cpp:199: error: 'SND_AVC_CTL' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp:200: error: 'SND_AGC_CTL' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp: In function 'int android_audio_legacy::msm72xx_enable_postproc(bool)':
device/huawei/u8815/audio/AudioHardware.cpp:944: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp:949: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp:954: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp:979: error: 'AUDIO_SET_MBADRC' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/huawei/u8815/audio/AudioHardware.cpp:1164: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp:1164: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doAudioRouteOrMute(uint32_t)':
device/huawei/u8815/audio/AudioHardware.cpp:1287: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp:1290: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp:1291: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp:1292: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp:1293: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
device/huawei/u8815/audio/AudioHardware.cpp:1446: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp:1449: warning: comparison between signed and unsigned integer expressions
device/huawei/u8815/audio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::set(android_audio_legacy::AudioHardware*, uint32_t, int*, uint32_t*, uint32_t*, android_audio_legacy::AudioSystem::audio_in_acoustics)':
device/huawei/u8815/audio/AudioHardware.cpp:1872: error: aggregate 'android_audio_legacy::msm_audio_voicememo_config gcfg' has incomplete type and cannot be defined
device/huawei/u8815/audio/AudioHardware.cpp:1961: error: 'RPC_VOC_REC_BOTH' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp:1964: error: 'RPC_VOC_REC_FORWARD' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp:1967: error: 'RPC_VOC_REC_REVERSE' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp:1972: error: 'RPC_VOC_REC_REVERSE' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp:1983: error: 'RPC_VOC_CAP_AMR' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp:1984: error: 'RPC_VOC_AMR_RATE_1220' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp:1986: error: 'RPC_VOC_PB_AMR' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp:2000: error: 'AUDIO_SET_VOICEMEMO_CONFIG' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp:2006: error: 'AUDIO_GET_VOICEMEMO_CONFIG' was not declared in this scope
device/huawei/u8815/audio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
device/huawei/u8815/audio/AudioHardware.cpp:2250: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'
make: *** [out/target/product/u8815/obj/SHARED_LIBRARIES/audio.primary.u8815_intermediates/AudioHardware.o] Error 1

manifest can (and maybe is) be badly written so...if you found some mistake or someone it would be great!

EDIT: if there is still problem with gtest i will update manifest ASAP

Edited by mihairu, 02 August 2013 - 01:03 PM.

  • 1

#134
celrau

celrau

    Regular

  • Members
  • PipPip
  • 75 posts
Well, I managed to build it with the gtest revision change mentioned earlier, mysteriously no errors....

  • 0

#135
kieranswhite

kieranswhite

    Diehard

  • Members
  • PipPipPipPip
  • 443 posts
  • Gender:Male
  • Devices:Huawei Acend g300
  • Twitter:@@kieran9969
Have you tried anything yet?

  • 0

#136
mihairu

mihairu

    Newbie

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Devices:ZTE Blade
If anyone is interested, here is build with good DPI, camera and video don't work


https://drive.google...bHc&usp=sharing

I'll post pics as I come home from work...or if anyone try this can share screens (power+home)

btw: problem with DPI is in
mihairu@lois:~/GIT/B2G$ adb logcat | grep dpi
I/msm7x27a.gralloc( 103): width = 76 mm (160.421051 dpi)
I/msm7x27a.gralloc( 103): height = 127 mm (160.000000 dpi)

if anyone can help it would be great

now I updated (hardcoded) gecko/widget/gonk/nswindow.cpp (line 538) to return correct DPI and multiplier 1.5x

edit2: logcat for camera http://pastebin.com/PQNwteVa

Edited by mihairu, 22 August 2013 - 01:27 PM.

  • 1

#137
djuroue

djuroue

    Enthusiast

  • Members
  • PipPipPip
  • 280 posts
  • Gender:Male
  • Devices:Alcatel OT-6030X, Nokia N85
How about telephony, does it work ?!

I managed to flash your build Mihairu! It is working pretty good... Screenshoots in few minutes!

Edited by djuroue, 23 August 2013 - 06:19 PM.

  • 0

Like and use my Huawei G300 Facebook page :

https://www.facebook...500555660012245

5979.gif
47648.gif
39369.jpg
23706kl7.gif
7232ky4.jpg


#138
rabaip

rabaip

    Regular

  • Members
  • PipPip
  • 107 posts
  • Gender:Female
  • Devices:Huawei Ascend G300
Sorry if it's a horribly stupid question but how could I flash mihairu's build? I hope it's not fastboot shizzle wizzle because then I'd have to pass.

  • 0

#139
djuroue

djuroue

    Enthusiast

  • Members
  • PipPipPip
  • 280 posts
  • Gender:Male
  • Devices:Alcatel OT-6030X, Nokia N85
Yeah, there are three img files that must be flashed via fastboot ....

  • 0

Like and use my Huawei G300 Facebook page :

https://www.facebook...500555660012245

5979.gif
47648.gif
39369.jpg
23706kl7.gif
7232ky4.jpg


#140
nectarpluspwr

nectarpluspwr

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:Huawei ascend g300
Hi i've installed it TO my u8815 but 3g don't work and italian language there isn't...there is a method TO fix these problem?

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users