yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] zacharias.maladroit:
if you want to focus, e.g. on - say - the FFC (front facing camera) or other drivers

0) take a look at the defconfig at

arch/arm/configs/aries_galaxys_defconfig

1) you know it's a driver & a video device

search for video

you see that

CONFIG_VIDEO_CE147=y

CONFIG_VIDEO_S5KA3DFX=y

are enabled

you google / search for both (and documentation, technical information, specs, etc. etc.)

the ce147 should be the FFC

the S5ka3dfx the backward (main) camera

3) you take a look at the kernel sources and look under drivers

(easier with linux)

find in the current directory:

find . | grep s5ka3d
./include/media/s5ka3dfx_platform.h
./drivers/media/video/s5ka3dfx.h
./drivers/media/video/s5ka3dfx.c

there you have the driver (the c file),

the headers oftentimes contain important values for the driver to work (e.g. voltage values, etc. etc.)

4) you may concentrate on the c-file

but to get the whole picture

there are files to be included by the c-files, e.g.

#include <linux/i2c.h>
#include <linux/delay.h>
#include <linux/version.h>
#include <media/v4l2-device.h>
#include <media/v4l2-subdev.h>
#include <media/v4l2-i2c-drv.h>
#include <media/s5ka3dfx_platform.h>

so you also have to take those into consideration,

mainly

#include <media/s5ka3dfx_platform.h>

in this case

find . | grep s5ka3dfx_platform
./include/media/s5ka3dfx_platform.h

5) from the folder the drivers are located in you know

that they are a video device & from looking at the top of the code, that it uses v4l2 (video4linux v2)

6) to make some basic changes

it generally already is enough to read through the code & the descriptions included

comments should be found by:

/*
* Clock configuration
* Configure expected MCLK from host and return EINVAL if not supported clock
* frequency is expected
* freq : in Hz
* flag : not supported for now
*/

/*

*

*

*/

commented out stuff also could be (I'm not sure)

7) it's oftentimes common sense if you're up to completely re-writing or writing a driver and other stuff from scratch like Supercurio ;)

good luck !

keep in mind that you're working with tiny hardware here and when you're hacking on some important values such as voltage, etc. better ask coolya, codeworkx or the other hackers before deciding to compile a kernel and trying it out

or first start using it on your decide if you have a backup (device) or are really certain
[Galaxy S I9000 Android Development] Tom_82:
"Jeeze", if developers and others are not interested in the opinions of users, they are BAD DEVELOPERS. Then I'm not surprised that the Cyanogen is at such level (if others "shut up")..!

I'm not insulting anyone, it was just my opinion. If there were more such people, Cyanogen would look different (better) today. I don't wrote here because I was bored - I want to help!

This is STUPID.. DO YOU KNOW WHAT IS "

FORUM

"?? :rolleyes:
[Galaxy S I9000 Android Development] zoubidou:
what you should see in settings is:

SD card

Total Space :5.78

Internal memory

total space 1.85

Removable storage /mnt/emmc

Toral space: 7.42 (in my case only!!!)

anything else is no good.

Yesterday i had a similar problem, and I realloy tried to find a way without reflashing, DD, or Mount or makefs etc.. nothing worked

I flashed back to xxjm2 and just to make sure, i unmounted and mounted the removable once.

after i reflashed CM7 and it works well.
[Galaxy S I9000 Android Development] Arkanius:
Was I drunk or did I really see two idiots a few pages ago comparing this to Darky's "ROMs" and calling this useless and behind the curve?

Oh god...
[Galaxy S I9000 Android Development] gbohm:
Yeah it wasn't just you but i am happy that most users see the difference between modding and developing and feel and see the huge difference between a samsung based android rom and a cm rom ....
[Galaxy S I9000 Android Development] Tom_82:
Intelligent and reasonable person can't say about the second, he's an idiot - just for his opinion. It's too stupid and backward. Idiot is a sheep that goes with the herd and don't say own opinion. :rolleyes:
[Galaxy S I9000 Android Development] digi69:
I too discovered this bug last night. Factory reboot/data wipe was the only choice.

2g/3g switch in widget causes continuous FC.
[Galaxy S I9000 Android Development] cocchiararo:
Man, do you even start to comprehend what CyanogenMod is, and what the REST of Samsung custom roms are?

You are comparing a stock Tom with maybe a custom kernel (usually not modified by the ROM author), cosmetic changes, apk adituon/removals, and sometimes a few/less more things, to something based on AOSP sources, with modifications, compiled from scratch.

Even if each and every source were available to the cm devs, it would still be a lot more work to get something working...

Each dev deserves RESPECT.

And nothing based on jv1 will be really usable anyway...

EVEN if final Samsung 2.3.* gets released, many people would rather get a clean AOSP ROM.
[Galaxy S I9000 Android Development] ultravox:
Please stop the nonsense side discussion. As another user previously wrote, I also thought that with more than 3 pages, the was a new update.

What a disappointment. Please behave.
[Galaxy S I9000 Android Development] pan466:
camera problem

guys i have a really bad problem with my camera...

since yesterday i have two big black flakes on my photos (and on viewport also!)

i installed cm7 again with no chance and tried to revert back to jm8...

then i dissembled the device to see if the problem is on cameras cover but even without that glass part those flakes are still there...

does anybody have an idea?

i think i need to send it to service :(

it looks like that now:

http://img291.imageshack.us/i/20110321005202.jpg/
[Galaxy S I9000 Android Development] amoro123:
Oic. Thanks for the quick reply.

CM7, keep up the good work~! :D
[Galaxy S I9000 Android Development] Razer(x):
Is the camera clean?
[Galaxy S I9000 Android Development] svceon:
@everyone, how is your battery drainage going?

I'm asking you because I've got bad experiences with battery life with the last build it tried.. I didn't change the modem though, so what modem are you using and how many time can you hold a full charge?
[Galaxy S I9000 Android Development] malco:
Half day...
[Galaxy S I9000 Android Development] pan466:
yes the camera is clean and i also removed that plastic cover still no change...
[Galaxy S I9000 Android Development] saratis:
Flashed CM7 0318 today, with JQ1 radio. Have to say, I'm thoroughly impressed. Installed all my apps and stuff, still runs very smooth. No battery drainage as far as I can tell now. Calls came through fine, very usable all in all. And a lot snappier than Darky's rom I was running.

Just one thing, reception does not seem to be on par, can any Dutch people recommend a radio for best reception?

Great job CM7 team. Will donate after more mileage.
[Galaxy S I9000 Android Development] suntzu123:
And you will. This beta version this mean debugging option is on to track bugs. Wait until "FINAL".
[Galaxy S I9000 Android Development] ujjwal321:
help regarding no signal problem..

first of all thankyou everyone involved in serving millions of galaxy s users like me..

i need help regarding cyanogenmod ROM.. I have been having this problem since CM6.. I follow the guide carefully but my signal is very unstable in this ROM. It shows no signal every few minutes and after some time there is signal..

I have tried different radio but that didn't solve the proble.. I have seen few others also have the problem.. Can anybody help ???
[Galaxy S I9000 Android Development] melorib:
19:00 battery 45%, 7:00 after alarm rang 30%, 12 hours 15%, more than good enough... :cool:

It was better with tweaked 2.2.1 without debugging, etc, it will get better once CM7 development is "finished", but I can live with the current drain very confortably...
[Galaxy S I9000 Android Development] Ferdimage:
@melorib

Couldnt agree more with you :D

i great improvement with the last few updates, battery temp has stayed under 42c while charging (meaning constantly charging) and battery drain has improved for me too..

biggest culprit i have found with battery drain is when Wifi is on contantly (without d/c)

For stock SGS roms it was the other way around less drain with wifi, than data...

but overall i wont go back to samsungs roms at the meantime, very happy with CM7
[Galaxy S I9000 Android Development] Hawk:
camera doesn't work anymore with the last update (03182011). Just getting a black screen :-/
[Galaxy S I9000 Android Development] gbohm:
You tried to lock and unlock your screen?
[Galaxy S I9000 Android Development] Hawk:
yea, it says "camera error" "can't connect to camera"

Edit : looks like it has something to do with the bilbao kernel

http://xdaforums.com/showthread.php?p=12258424#post12258424

Edit2: Fixed with the newest bilbao update
[Galaxy S I9000 Android Development] melorib:
After updating from 0313 to 0318 I had some problems, maybe because of all the changes with SDcard, or the update 0318 has a problem... :confused:

So I installed initial 0318 again, no major problems, except bluetooth stopped transferring files after I flashed XXJVE radio, flashed BUJP5 back, but no luck... :rolleyes:
[Galaxy S I9000 Android Development] jimmy080705:
Hey guys,

My SD card ext shows up as unavailable in 20110318 - so can someone confirm whether the 2.3 sammy rom bootloader upgrade is definitely the culprit here?? Also I reflashed to 2.2.1 with a bootloader update, but still no luck.... In odin it definitely showed the bootloader being written so why no luck??

Has anyone who had a ginger bootloader been able to get their ext SD card to mount? How? which ROM worked?

Thanks in advance - oh and with 500pages of posts I cant find where/how someone fixed this...
[Galaxy S I9000 Android Development] kenkiller:
Its definitely just u...had no similar problems on 0318. :)

Not to mention, you had a whole string of problems for a long time...at one time reading you quoting yourself, I thought this thread was your blog...pretty funny.
[Galaxy S I9000 Android Development] melorib:
CyanogenMod

XDAdevelopers is a forum, not a product, a bunch of guys improving peoples Android phones experience...

They are very good, I used (and donated) several products, but as every amateur, they move on, their products are temporary, as our phones are, but it is a nuisance when we are using a ROM, or a Kernel, or whatever, and support ends... :mad:

Cyanogen is an organization with standards, developpers may come and go, the product will still be supported, I think MIUI is more or less the same...

At least if it makes it to Stable mod, lets help it get there for our phones, instead of stupid arguments... :rolleyes:
[Galaxy S I9000 Android Development] karbid:
Yesterday i flashed 0318 initial, came from insanity 0.67. First camera was black too (without error), even in vignette. With system app i switched to other cam (ff) and back. After that cam works properly. Not sure this was the solution. I would try to make a factory reset and try again...

But camera hast a light crizzle/line wobbeling effect in lifeview, earlier build has been better. Will take some pics to compare with other rommade pics.

for me there are only two items i don't like:

- bad camera integration

- high battery drain (30% over night, 5 hours)

- (fm radio would also be nice)

In insanity i realized that the most battery drain come from the different kernels. Best were from SpeedMod. Which should i use in CM?

karbid
[Galaxy S I9000 Android Development] melorib:
I dont know if it is just me, considering the increasing complaints lately... :rolleyes:

Good to see that someone was paying attention to my problems, shame you didnt try to help... :p

Also you forgot to mention that all those problems started after flashing 0318, and then trying to flash initial 0318, up to including 0313 I didnt have any problems...
[Galaxy S I9000 Android Development] strickyy:
C'mon people.. it's not like u've paid 100 bucks and were told everything is going to work bugless and blazing fast..
[Galaxy S I9000 Android Development] bolmedias:
This ROM is annoying me. It's super smooth, super fast, but every so often there is a system crash which causes apps like the browser to FC on launch. As much as I love the smoothness, I think im gonna have to go back to a Samsung rom.
[Galaxy S I9000 Android Development] °Dexter°:
Air attack HD part1 is impossible to install for those of us with many apps (100+,i guess),i think it needs more space than what we have available (despite i have a lot of apps on external SD)
[Galaxy S I9000 Android Development] frankhart:
I installed Cyanogenmod for the first time this weekend and am impressed with the speed and overall stability and functionality. So I just wanted to say 'thanks' to the dev's and applaud their great work.
[Galaxy S I9000 Android Development] kenkiller:
Not that I didn't want, but having never experienced any of your problems I couldn't possibly offer any useful advice that might potentially cause more problems later on.

I can only say I didn't experience those that you stated, so it rules out a rom problem, more of a past remaining remnant?

My only current beef now is only the battery, otherwise its a stable daily driver for me.
[Galaxy S I9000 Android Development] kenkiller:
Maybe check ur /cache how much free?

Possible, I only have 57 apps installed to internal, airattack hd the full game installs fine, and its even bigger than part 1. But it'll only play fine when installed to internal, not external.
[Galaxy S I9000 Android Development] funkateer2:
And a bugless rom would be annoying, no? My daily use for few months and there is always a solution to issues. Eg my camera works only at 1.9 mpx, ok bummer but I can take some pictures and take my APN for better ones.

Keep up cm7!

I
[Galaxy S I9000 Android Development] melorib:
I know what you mean, it is always risky to give advice... ;)

Did you install test 0313, did you try voodoo kernels, could be a mix of those... :confused:

I am now quitely staying with full CM7, until I get itchy again... :rolleyes:
[Galaxy S I9000 Android Development] umd:
I recommend you to make a fresh start because I don't have FC's. Especially system apps. Flash 2.2.1 stock rom(and make sure you have JM2 bootloader instead of leaked Gingerbread's one), follow the instructions and you're good to go.
[Galaxy S I9000 Android Development] zacharias.maladroit:
exaclty

for me they come and go

the same with the bug of the GUI hanging when connecting to PC and wanting to enable usb storage

don't say you don't have any FCs with the Samsung based ROMs ;)
[Galaxy S I9000 Android Development] Razer(x):
I'm having the same problem but with launcher pro since a few days, really weird
[Galaxy S I9000 Android Development] melorib:
+1

As I already mentioned, same problems with update 0318, had to do a fresh start, initial 0318, those problems now gone...
[Galaxy S I9000 Android Development] bolmedias:
The thing is that I never used update 0318, I just did initial, because I was on Doc's JP5 before. I was never on the leaked Gingerbread either.

From my understanding of what you've told me to do, I need to get hold of one of the various stock 2.2.1 ROMs, and the JM2 bootloader. I'm guessing I flash the 2.2.1 ROM with repartition as is mentioned in the first post. When do I flash the JM2 bootloader?
[Galaxy S I9000 Android Development] svceon:
@codeworkx and coolya

How about releasing a Beta release without debugging? (ohhh pretty please :D )

PS: (only if this brings up some improvements with battery life :) )

PSS: and please ignore this post if you think it was inapropriate.
[Galaxy S I9000 Android Development] melorib:
In that case your problem is different, did you do all the installation steps, including several formats, etc..
[Galaxy S I9000 Android Development] bolmedias:
I definitely did what the instructions said. I will still do a reinstall as was recommended.
[Galaxy S I9000 Android Development] melorib:
Good luck, there are differences between the phones, and it is not only screen colour balance... :confused:
[Galaxy S I9000 Android Development] umd:
If you didn't flash leaked GB, you don't have to deal with bootloader. That's good.

Firstly, flash a 2.2.1 stock rom via Odin. Look at this post. In that case you might need to apply 3-button combo fix from here. Then, follow the instructions(you don't need to flash 0318 update package). After that flash this fix.
[Galaxy S I9000 Android Development] bolmedias:
Thanks much, if this works then you'll be getting a +Thanks from me this evening
[Galaxy S I9000 Android Development] seriouser:
Finally a rom that allows me to listen to music with my A2DP headphones. All Samsung roms had horrendous sound quality via A2DP for me. With CM7 it's perfect.
[Galaxy S I9000 Android Development] kenkiller:
I actually think I'm pretty lucky.

I only installed all the nightlies since the previous initial (forgot the date). And I've tried both the voodoo kernels out there. Never touched any of the test releases, only nightlies.
[Galaxy S I9000 Android Development] sugar 7:
everything is ok for me with CM7 but just I can ru busybox install in sbin...after lot off method doesn t work...maybe is difficult now with the nightlies...

Always I Have this message : statuts failed

maybe i can have a answer

Thank s
[Galaxy S I9000 Android Development] melorib:
As I guessed, the problem was the changes they did in the test releases regarding sdcard... :(
[Galaxy S I9000 Android Development] umd:
As I remember, you were trying to make Titanium backup work. Yesterday, I tried Titanium(ver 3.5.7) and it backed up my apps succesfully. Where do you get an error? I can try to do same thing you do.
[Galaxy S I9000 Android Development] sugar 7:
Thank s for reply ;)

I have statuts failed when in busybox I want install in sbin...before I have Statuts "DONE" now I have statuts "Failed"..

I try with titanium with button problem but nothing...
[Galaxy S I9000 Android Development] Arkanius:
Two questions before I take the plunge:

1) Reports about the Camera have been quite contradictory. Is it working (fully/partially) or not? There is always a post or another with problems that they can't boot the camera.

2) Voodoo color and sound are only implemented in non official kernels right?
[Galaxy S I9000 Android Development] seriouser:
I just installed the latest CM7 and my camera seems to work normally.
[Galaxy S I9000 Android Development] °Dexter°:
How can i check it?btw,i think it's datadata being too loaded...but 120 apps aren't that much,i guess
[Galaxy S I9000 Android Development] kenkiller:
Camera works fine. Only the rear one. There will be some artifacts in the preview, but shots taken are good.

Yes, official kernels won't have those non-official features.
[Galaxy S I9000 Android Development] kenkiller:
Hmmm....wasn't the sdcard changes implemented in 0318 as well?

Moral of the lesson, don't do test releases. :D And always wait for tested nightlies, if you didn't, less "complaints" please. :D
[Galaxy S I9000 Android Development] melorib:
0313 moved external card to the right place, same as Samsung, 0318 moved it back to EMMC, that screwed things up, thats probably why I had to reformat, etc...
[Galaxy S I9000 Android Development] kenkiller:
I check with root explorer. iirc problems with unable to download/install from market is due to /cache being too low.

I checked the AirattackHD folder in /datadata, it's taking up less 190kbytes of data, so that can't be the problem. The main bulk of the app is still in /data/app
[Galaxy S I9000 Android Development] kenkiller:
Hehe...most probably.... :D

Well, it's labelled EXPERIMENTAL, so we should be thankful it's working as well as it is now. :D

Even for nightlies I observe before I flash. Doesn't take too much, just some patience. And it saves a hell lot of trouble, as you've undoubtly proven. :D
[Galaxy S I9000 Android Development] umd:
I've just install Metamorph. When it's opening, it's checked for the requirements. It didn't say any failure. I guess I need a theme to apply. Could you give me a link?
[Galaxy S I9000 Android Development] cesierra:
+1

10 characters
[Galaxy S I9000 Android Development] melorib:
I cannot resist, stronger than me... :rolleyes:
[Galaxy S I9000 Android Development] domy1985:
The correct path for external SD should be mnt->emmc correct? Is it possible to choose in camera app to save the pics on external SD?
[Galaxy S I9000 Android Development] kenkiller:
Learn you must, or complain you must not. :D

After ur last bout of troubles, you're really asking for it if u still like to tempt fate. :D
[Galaxy S I9000 Android Development] kenkiller:
You will have to move manually I guess. :(
[Galaxy S I9000 Android Development] sugar 7:
http://xdaforums.com/showthread.php?t=958497

I can t try this because metamorph doesn t work because off busybox !!!!!!!!

What can i do for this busybox grrrrrrrrrrrrr
[Galaxy S I9000 Android Development] domy1985:
Ok but the the path is correct?
[Galaxy S I9000 Android Development] melorib:
I think the correct path should be external-SD, thats what apps expect, at least apps I have from market...
[Galaxy S I9000 Android Development] vukandric:
I had that problem, but as I already said I solved it by manualy putting busybox file in system/bin via root explorer. Why do you need metamorph? Just download rover.apk and you can choose it from theme chooser. :)

Sent from my GT-I9000
[Galaxy S I9000 Android Development] melorib:
I have had trouble before, I will have more, and I ask for help, not complain... :p
[Galaxy S I9000 Android Development] domy1985:
Hmm what do i have to do have it like it has to be
[Galaxy S I9000 Android Development] zoubidou:
first of all i have a reasonable strong doubt that "mount emmc" will work, i even tried dd and some other commands.

if emmc is not assigned correctly you will have to go back to xxjm2, flash with odin and repartition.

make sure that you have the correct bootloader also

and then take it from there.

In fact I think what happend is:

0313 had emmc correctly mounted, you could see it with root explorer and copy things into it, also automatically assign it for certain applications.

But you could not unmount/format/mount it with settings.

Thats why it has changed, it is still called emmc, but you can now unmount, format, mount it. Maybe later on you will even be able to see it again with windows to copy files to and from it.

0318 contains symlinks (not supported before), which should allow any application to access it correctly. the fact that is was called external_sd, should not make any difference to well written applications.

Now do to this change the update did not always work properly, that's why you can find again an initial zip file.

Concernig the camera problem, mine is working very fine once i have done the step going through xxjm2. You could also try to clear the dalvik cache before anything else.
[Galaxy S I9000 Android Development] vukandric:
Did you try to copy it to system\bin, not system\sbin?

That worked for me, and I had the same problem as you.
[Galaxy S I9000 Android Development] umd:
I've applied this theme succesfully. It's been already told that you can copy busybox into /sbin. I tried to copy busybox to my sdcard via Rootexplorer but didn't work. So we will try in different way.

Download attached file and extract busybox file into your working path (mine is c:/adb/platform-tools)

Open recovery, plug your usb cable.

Open command page and go to your adb folder (like cd c:/adb/platform-tools)

Write this:

adb push busybox /sbin

then:

adb reboot

Your phone will reboot. You can try now.
[Galaxy S I9000 Android Development] °Dexter°:
I've checked out /cache,i had 30.86,it should be enough,nevertheless i freed it up to 36,still no luck...what's wrong with me? :D
[Galaxy S I9000 Android Development] Arkanius:
Is dithering deactivated for some reason?

I have noticed that a lot of wallpapers have bad quality in color transitions, seems the typical case of no dithering. I thought Gingerbread was supposed to have 32-bit dithering as default.

Known bug or should I submit it?