yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S (4G Model)] IDisposable:
81r11441sg434063l
[Samsung Galaxy S (4G Model)] bhundven:
OP updated.
[Samsung Galaxy S (4G Model)] g4ry12:
Perhaps it would be more convenient for people reading instructions if that phrase was linked to an actual post with a download link. Just trying to help.
[Samsung Galaxy S (4G Model)] Fluidification:
question, does your "boot.img" no longer use the time consuming voodoo scripts at boot, and does it use the new cwm blue recovery. Not a complaint, just asking.
[Samsung Galaxy S (4G Model)] bhundven:
Brain Parser - Fatal Exception...
[Samsung Galaxy S (4G Model)] bhundven:
Stock CWM.
[Samsung Galaxy S (4G Model)] Fluidification:
awesome, love that

good luck on project.
[Samsung Galaxy S (4G Model)] ericmpanda:
Time for some brunch. !!

Nice guide really easy to follow
[Samsung Galaxy S (4G Model)] bhundven:
LOL! I was trying to figure out wtf that meant. IDisposable finally pm'd me telling me it was a paypal transaction id. Thanks man!

Instead of posting any kind of transaction id's or posting anything about donations here, please just PM me.

I'd like to be able to create a list of who has donated. Thanks!
[Samsung Galaxy S (4G Model)] ChadBFlores:
@bhundven - Thank You SO MUCH for your time and hard work!!!
[Samsung Galaxy S (4G Model)] vwgtiturbo1:
Bryan thanks for your time and everything you do for this community. Your hard work is well appreciated and once I get paid what ever I can afford (bills you know!!) I have a donation comming you way. Me and my gf appreciate your time and work. Great to have you here as a dev for our device. Thanks
[Samsung Galaxy S (4G Model)] Blue_Churo:
Dude this is awesome! The best mod ever will be here and we're all excited, and it's because of you! I really love you work

Sent from my SGH-T959V
[Samsung Galaxy S (4G Model)] Racing19969:
Having a problem installing. Once I have the build done I followed the directions to flash the boot.img as kernel. Then it says to mount /efs in adb shell. When I try this a list pops up showing all mounts. tried moving tar file and it say's it does not exist yet it is on my sdcard..

any help would be appreciated
[Samsung Galaxy S (4G Model)] Racing19969:
Sorry Airfluip1 but I do want to work on this. I wouldn't be posting this if I didn't. I have the Unbrickable mod done on this phone so I can flash what I want and still get back if needed..

Yes I was able to get it to build... as my initial question stated, Once I flash the boot.img and then try to mount the efs file to flash the backed-up tar file it won't let me. Any advice would help.

Thanks
[Samsung Galaxy S (4G Model)] af974:
Thread has been cleaned a bit, please guys try to stay on topic ;)
[Samsung Galaxy S (4G Model)] bhundven:
Please join us in irc. We are collaborating there.

Again, please join us in irc, and we can better help you get going and helping us out!

-Bryan
[Samsung Galaxy S (4G Model)] Racing19969:
Sorry bryan. I have been busy in the t989 forum as I dev there also. I have a working ICS port that needs just a little more work. I sent Raver and a few others links. As soon as I am able I will jump over hwre on do some more work with you guys on thw t959v.

Thanks
[Samsung Galaxy S (4G Model)] Racing19969:
Still unable to install...

Following directions to backup efs. I am able to backup efs but when I try to restore efs I run into problems. Here is the output I get when mounting:

~ # mount /efs

recovery filesystem table

=========================

0 /tmp ramdisk (null) (null)

1 /sdcard vfat /dev/block/mmcblk0p1 (null)

2 /system yaffs2 system (null)

3 /cache yaffs2 cache (null)

4 /data yaffs2 userdata (null)

5 /efs yaffs2 efs (null)

6 /recovery mtd recovery (null)

7 /boot mtd boot (null)

~ # tar xpf /sdcard/efs-backup.tar

tar: can't open '/sdcard/efs-backup.tar': No such file or directory

When I look at the sdcard it does have the efs-backup file on it.

LMK
[Samsung Galaxy S (4G Model)] m4xm4n:
Here are the steps that I do:

1) Mount /sdcard

2) Mount /efs

3) cd /efs

4) tar xpf /sdcard/efs-backup.tar
[Samsung Galaxy S (4G Model)] Fluidification:
m4xm4n,

can you help me?

I am getting fatal http errors all over the place trying to repo sync.

IDK what's wrong.

Also, how big is the download? It hung after 5 hours and i had to stop it.
[Samsung Galaxy S (4G Model)] Racing19969:
Thanks m4xm4n, Finally got it to boot. when I was mounting efs I was forgetting to cd into efs and then restoring the efs-backup

Now to figure out how to make the missing modules!!
[Samsung Galaxy S (4G Model)] FBis251:
The download is a little over 10 gigs.

You can try adding the -f flag to your repo sync, for example

repo sync -f
[Samsung Galaxy S (4G Model)] Fluidification:
I got the dwld.

Just getting hundreds of build errors. Ill try again next week.:-(
[Samsung Galaxy S (4G Model)] bhundven:
I don't get any build errors... ydiw.

Read the instructions (on the wiki) to get setup first.
[Samsung Galaxy S (4G Model)] eollie:
Your donkey is whack? :D
[Samsung Galaxy S (4G Model)] bhundven:
Your Doing It Wrong, but that's funny! lol.

Side note: Please help to keep this thread on topic.

This is a wip dev thread.

We have something that half works.

If you have logs or useful information that helps to move development forward, this is the thread to post in.

Otherwise, I will have moderators remove your posts.

Not trying to be a jerk, just laying down the rules.
[Samsung Galaxy S (4G Model)] bhundven:
Oh, if you were one that had problems with this:

/efs # gunzip -c /sdcard/efs-backup.tar.gz | tar xf -
tar: can't open 'cryptprop_applied_result': Out of memory
gunzip: write: Broken pipe
gunzip: error inflating

You have to erase the mtd efs partition first.

Remember... The mtd efs partition and the BML efs partition are two seperate partitions. So if you dork your MTD efs partition, go back to a BML rom and everything is good ;)
[Samsung Galaxy S (4G Model)] bhundven:
Op updated, re-read everything if you are trying cm7 this early.

Instructions updated as well.
[Samsung Galaxy S (4G Model)] ericmpanda:
Aye aye
[Samsung Galaxy S (4G Model)] bhundven:
Moved to the dev forum ;) Thanks PG101!
[Samsung Galaxy S (4G Model)] bhundven:
Here is an strace of rild when it fails and starts retrying, over and over again.

716 23:47:14.544738 open("/dev/block/bml12", O_RDONLY) = 20
716 23:47:14.545634 mmap2(NULL, 16773120, PROT_READ|PROT_WRITE, MAP_SHARED, 18, 0) = 0x40209000
716 23:47:14.553674 writev(6, [{"\3", 1}, {"RIL\0", 4}, {"Mapping addr: 0x40209000\n\0", 26}], 3) = 31
716 23:47:14.554913 lseek(20, 20480, SEEK_SET) = 20480
716 23:47:14.555505 read(20, 0x40209000, 14680064) = 13937664
716 23:47:14.629873 writev(6, [{"\6", 1}, {"RIL\0", 4}, {"image read failed\n\0", 19}], 3) = 24
716 23:47:14.630218 munmap(0x40209000, 16773120) = 0
716 23:47:14.636275 close(20) = 0
716 23:47:14.636411 nanosleep({2, 0}, {2, 0}) = 0
716 23:47:16.637171 writev(6, [{"\3", 1}, {"RIL\0", 4}, {"Retry CP booting! \n\0", 20}], 3) = 25
[Samsung Galaxy S (4G Model)] bhundven:
Note... From 'man 2 read':

and we got:

716 23:47:14.555505 read(20, 0x40209000, 14680064) = 13937664
716 23:47:14.629873 writev(6, [{"\6", 1}, {"RIL\0", 4}, {"image read failed\n\0", 19}], 3) = 24
[Samsung Galaxy S (4G Model)] bhundven:
Also, the size of the modem.bin in /radio is 13958144 bytes...

The read operation here wants to read 14680064 bytes and only read 13937664 bytes.

Maybe we need to pad modem.bin?
[Samsung Galaxy S (4G Model)] bhundven:
btw, padding modem.bin to a bigger size with zeros made rild happy, but it still doesn't work.

Still looking through logs.
[Samsung Galaxy S (4G Model)] bhundven:
And half way looking through the logs, I looked back over at the phone and was on 'Tmobile' with an 'H' signal on the status bar!

RIL works now. Tested SMS with RaverX3X.
[Samsung Galaxy S (4G Model)] windxixi:
why replace modem?
[Samsung Galaxy S (4G Model)] FBis251:
To fix the RIL
[Samsung Galaxy S (4G Model)] vwgtiturbo1:
This looks yummy!!
[Samsung Galaxy S (4G Model)] astaccz:
All I have to say is thank you bhundven. You Def have some beer coming. xD
[Samsung Galaxy S (4G Model)] RaverX3X:
see you finally moved this :P ya lol he didnt think he had it working at first BECAUSE HE HUNG UP ON MY ASS
[Samsung Galaxy S (4G Model)] bhundven:
I am using the stock kj6 modem for the sgs4g.

You have to understand that the modem was written to a raw partition, and so the read would always succeed no matter what the size of the modem.bin was.

But when we switched to the modem.bin file living on a yaffs2 partition, and a symlink from it to /dev/block/bml12 (so we trick rild to read the modem.bin file), we get the following error:

716 23:47:14.555505 read(20, 0x40209000, 14680064) = 13937664
716 23:47:14.629873 writev(6, [{"\6", 1}, {"RIL\0", 4}, {"image read failed\n\0", 19}], 3) = 24

So I used dd to append zeros to the end of the kj6 modem.bin file, so the read would succeed.

Technically, I did not replace the modem.
[Samsung Galaxy S (4G Model)] bhundven:
So excited to finally figure that one out. haaayyy... I didn't hang up on you... o.O :D

Problem now is data is very slow.

I've posted a build and updated the instructions. Read the op first, before you do anything. ;)

Sorry for the heinous install procedure, but it is what works for me... every-time.

If you find a problem or know of or fix a problem, let me know!
[Samsung Galaxy S (4G Model)] g4ry12:
By the way, about modem, I did a little experiment the other day. I was sitting in a cafe, with free WiFi, and the signal was awful. I just flashed a ROM that night, Valhalla Final, so I was on KJ6 modem.

The signal was so bad, I was loosing the cafe's WiFi network. I opened the WiFi Analyzer app (it's on Play Store), and the signal was in grey zone all the time, with rare peaks to yellow (usually -85 dBm and worse).

Sitting there with a cup of coffee, I quickly flashed the Sidekick's KJ2 modem. I did not even move, nothing changed but the modem, only few minutes passed.

I opened the WiFi Analyzer, and voila - the signal was in yellow zone all the time (usually -80 dBm and better), never going to grey. It was an obvious change. I easily connected to WiFI, and listened to an online radio.

So, what I want to say is, maybe it's worth to do whatcha doing with the modem using Sidekick's KJ2. I don't know if it's universally better, but it was definitely better for me. Just a food for thought.
[Samsung Galaxy S (4G Model)] Fluidification:
It Is true, but this isn't the case.

This probably rom or kernel.
[Samsung Galaxy S (4G Model)] g4ry12:
If that was a reply to my post, I'm not sure I understand your logic. The signal was bad, I flashed another modem, and the signal quality improved. So I guess it is about modem, not kernel or ROM.
[Samsung Galaxy S (4G Model)] Racing19969:
Just wanted to update Brian. I flashed the new boot.img and build and no service... Modem not working for me..
[Samsung Galaxy S (4G Model)] Fluidification:
this isn't like other roms. trust me.

---------- Post added at 11:56 AM ---------- Previous post was at 11:55 AM ----------

reboot a few times or idk.
[Samsung Galaxy S (4G Model)] Racing19969:
Yep, I rebooted multiple times... No Go.. Then I did a complete wipe and started over, Still No Go...

I wonder if the changes he made to the files didn't stick?? Not sure what he did to get it working.. Maybe he could explain and we could try making the changes ourselves and see if that works?
[Samsung Galaxy S (4G Model)] m4xm4n:
It can take a few minutes for the radio to start working and connect to a network. If you did everything correctly it should work. Make sure you restored EFS correctly. Check /efs and make sure it has nv.log, imei/, and root/.

If it's still not working, give us a logcat of what the RIL is doing:

adb reboot && adb wait-for-device && adb logcat -b radio *:V | tee radio.log

Hit Ctrl + C after 2 mins or so.

Post the resulting radio.log to pastebin.com or something similar and give us a link. We'll take a look-see.
[Samsung Galaxy S (4G Model)] Racing19969:
So, I started from scratch again. Wiped everything, ran through the process and still no modem connection... waited about 25 minutes and nothing. Then I figured I would run the logcat that you asked and as it was running, BAM modem started up and 4 bars on the signal.... Did a test call and everything seemed perfect. Then went to press power to wake phone up and nothing... waited another few seconds and phone rebooted... Phone has now booted back up and it took a couple minutes and the modem connected. Now phone goes to sleep again. Try hitting power to wake up and Nothing again... blank screen for about a minute and then phone reboots...

So, it looks like it works only my phone can't sleep or it locks and reboots...

Tried running a logcat to see if the phone would do it and it won't. Works perfectly when plugged in. Then unplugged from usb and went to sleep and Bam. Won't wake up and then reboot...

Now phone reboots, starts up runs a few minutes and then reboots.

Attached a logcat for you to look at...
[Samsung Galaxy S (4G Model)] bhundven:
I'm having about the same issues. I just don't have a lot of time to mess with it.

Thanks for the log. I see a lot of badness in there. Just keep posting logs. You did a good job of getting the beginning of the ril init! When I get some time, I'll try to iron out some of these issues.
[Samsung Galaxy S (4G Model)] Racing19969:
No problem.. I'll post some more logs when I can..
[Samsung Galaxy S (4G Model)] thomas.raines:
I don't know what went wrong, but my /efs partition is messed up, and I cannot restore it.

Everything seemed to go correctly untill I tried to restore.

When I try to mount /efs I get:

mount: can't find /efs in /etc/fstab

When I try to restore anyways I get:

tar: can't open '/sdcard/efs-backup.tar': No such file or directory

Which I'm sure I get that error because I cannot mount /efs patition. Any help?
[Samsung Galaxy S (4G Model)] RaverX3X:
do you have unbreakable mod by any chance? If not and you cannot mount the efs partition you could have yourself the first semi hard brick considering you cannot restore your efs. I forward your log you sent me to bryan sense i no longer have a sgs4g.
[Samsung Galaxy S (4G Model)] m4xm4n:
Are you in recovery mode when you attempt to restore?
[Samsung Galaxy S (4G Model)] bhundven:
Just from the error messages and file names you are referencing, I'm having a hard time believing that you are following my directions.

Please re-read the op, and try again.
[Samsung Galaxy S (4G Model)] bhundven:
Sounds to me that the /efs partition wasn't mounted. (which is why it seems empty)

Your phone won't hard brick because efs is messed up.
[Samsung Galaxy S (4G Model)] thomas.raines:
Yes, I am in recovery mode.

@RaverX3X, since my warranty expired, I have been planning on doing the unbrickable mod... I guess this is motivation...lol

Is there a way to convert my /efs directory I have saved on my computer to efs.rfs then I should be able to restore it with heimdall...
[Samsung Galaxy S (4G Model)] RaverX3X:
never actually tried that i don't know..
[Samsung Galaxy S (4G Model)] Racing19969:
I had the same problem when I first tried this. I have to do it differently than the way brian posted. Try this:

get to recovery and mount sdcard

then: adb shell

mount /sdcard

mount /efs

cd /efs

tar xpf /sdcard/efs-backup.tar

Then continue on with his instructions. wipe boot, data, cache, system

then wipe factory reset

then install zip from sdcard.
[Samsung Galaxy S (4G Model)] bhundven:
Yea, my bad. I updated the op a minute ago to reflect that.

That's what I get for writing instructions at 3am...
[Samsung Galaxy S (4G Model)] bhundven:
The important part of my op says:

READ EVERYTHING.

COME BACK AND RE-READ THE WHOLE OP ON EVERY UPDATE.

IF YOU ARE OUT OF DATE, RE-READ THE WHOLE OP.

Even if you think you read the op... read it again. I may have updated it ;)
[Samsung Galaxy S (4G Model)] thomas.raines:
I'm trying to flash back... But that method seemed to work. It still wouldn't mount /efs (got the same error: efs not found in fstab), but I went ahead and pushed the tar and didn't get an error message... but when I rebooted, I still have an empty efs partition...

I wrote a script to copy it from sdcard on boot as a temp fix, but it only has the phone limping...
[Samsung Galaxy S (4G Model)] Racing19969:
make sure you are in adb shell when running the commands. if not you will get that error because it is looking for efs on your system and not the phone..
[Samsung Galaxy S (4G Model)] thomas.raines:
I did... 4 times just to make sure I fully understood it...lol

could it be the kernel? I am using sms-T959V-KJ6-v0.1.1-rc1.zip

Should I try with rc2?
[Samsung Galaxy S (4G Model)] bhundven:
I use rc2 and follow the instructions line by line. rc1 *should* work too.
[Samsung Galaxy S (4G Model)] bhundven:
Source is now on https://github.com/teamacid .

The wiki for building from source has also been updated.

Also, welcome m4xm4n to the teamacid tribe :D
[Samsung Galaxy S (4G Model)] Racing19969:
I had issues when I first tried using rc1. Switched to using rc2 like the op posted and worked...
[Samsung Galaxy S (4G Model)] m4xm4n:
Thank you kind fellow! I promise to always do right by the Acid.
[Samsung Galaxy S (4G Model)] Racing19969:
Welcome m4xm4n. Look forward to seeing some of your work...

---------- Post added at 08:11 PM ---------- Previous post was at 08:02 PM ----------

I know this is not the place to post this, but I am unsure of where to post this to be able to ask the members of Team Acid this question... If you want me to just PM one of you let me know...

If you guy's don't mind I would like to throw something by you...

I am also working in the SGS2 Forums. I have been able to port the ATT ICS drop for the skyrocket to the T-Mobile SGS2. Everything is working great except rotation. Seems the Skyrocket layout for the sensors are different than the hercules. So when the phone is in vertical position the screen rotates landscape and vice versa. We can turn off rotation in settings and that solves the issue for now but I am trying to find which files I could possibly edit to fix rotation, or are we going to have to wait till source drops to fix the issue...

What do you guys think ???
[Samsung Galaxy S (4G Model)] thomas.raines:
Just flashed heimdall 1 click twice with bootloaders. Then flashed rc2. Still getting error when trying to mount /efs... How do I restore my efs partition BACK to stock/bml?
[Samsung Galaxy S (4G Model)] Racing19969:
Please post the exact steps you are doing.. Maybe we can find something you may be doing incorrectly.. If the directions are followed they work flawlessy..
[Samsung Galaxy S (4G Model)] turtlepa:
Damn this was up back in march ?
[Samsung Galaxy S (4G Model)] FBis251:
Try doing it while the phone is in the normal OS without trying to mount /efs (since it'll already be mounted)
[Samsung Galaxy S (4G Model)] thomas.raines:
That works... untill I reboot.

The /efs folder is not empty, but it is missing the imortant files for the imei, etc...
[Samsung Galaxy S (4G Model)] RaverX3X:
if u have those backed up then push them while its mounted
[Samsung Galaxy S (4G Model)] thomas.raines:
I tried, but I cannot mount it (I get an error: can't find /efs in /etc/fstab),and when I do manage to get the files pushed, they are gone as soon as I reboot... The best I could do was write an init.d script to push them everytime the phone booots. It's not a fix, but at least it's a somewhat workaround... It's looking like I'm going to have to send the phone back to sammy for a repair... glad I haven't done the unbrickable mod yet...lol

Or if someone can help me add /efs to /etc/fstab (which there is no /etc/fstab, unless it is part of the recovery partition...but idk), then I might be able to mount and push everything I need and all will be fixed... or a riff box and the appropriate software/firmware...lol

And I have read the OP at least 15 times now to try and figure out where I went wrong and I just can't figure it out...
[Samsung Galaxy S (4G Model)] FBis251:
I'm sure you're having that problem because you're trying to restore from the wrong kernel. The instructions say to do the backup from the sms-kj6 kernel, reboot to download mode, flash the cm7 kernel and to do the restore there.
[Samsung Galaxy S (4G Model)] thomas.raines:
That was actually the first 3 attempts and the last 5 or 6 (flash cm7 kernel then restore). I don't get any errors when I do it that way, but when I heimdall back to stock and reboot... the /efs is missing important files... I also noticed, that after I heimdal and it reboots to the stock recovery, it get 3 mount errors (unable to mount): cache, data, and efs. But when I run heimdal a second time and it boots to recovery, I just get 1 mount error for /efs partition...
[Samsung Galaxy S (4G Model)] bhundven:
need ten characters...
[Samsung Galaxy S (4G Model)] Rebel_X:
Hi bhundven, you are doing a great job.

I have a question. Is it possible to use a u-boot with sgs4g to have dual boot (stock/cm7) from sdcard and internal, like the nook color? I have seen in github you have repo for u-boot is that what you are trying to do?

Thanks.
[Samsung Galaxy S (4G Model)] m4xm4n:
I've got a new test build for ya'll to try:

Changes from the build Bryan posted include:

BLN support (You'll need neldar's BLN test app from Market)

You can change the CPU frequency in CM Settings -> Performance -> CPU Settings

Additionally, I changed the sleep values of some GPIOs based on a commit I found in the Team Hacksung's aries kernel tree: https://github.com/teamhacksung/samsung-kernel-aries/commit/3088622e20c7801dd4802df8da6320ddb2c0723f

Please report back whether or not reboots have decreased with this build.

April 7th 2012 - 20:08 UTC

boot.img

update.zip

EDIT: My phone has been on for 6 hours and 15 mins and still no reboot. This is a good sign.
[Samsung Galaxy S (4G Model)] bhundven:
We don't have u-boot ported yet. I plan on working on this later, but I'm waiting for some resources to open up.
[Samsung Galaxy S (4G Model)] nativesmiley:
Is this test for anyone or just the devs that are very familiar with this?
[Samsung Galaxy S (4G Model)] Beastmode:
Read OP n subsequent posts from bhund

if you ain't first you're last :)
[Samsung Galaxy S (4G Model)] m4xm4n:
ATTENTION:

If you get a random reboot, please post the contents of /proc/last_kmsg !

You can do this by running

adb wait-for-device && adb shell cat /proc/last_kmsg > last_kmsg.log

Post that last_kmsg.log as an attachment or to pastebin.com or something similar.
[Samsung Galaxy S (4G Model)] bhundven:
These builds are not recommended for new android/sgs4g users. I would only recommend that experienced sgs4g users try these builds.

Read the OP.
[Samsung Galaxy S (4G Model)] nativesmiley:
quick question, im trying to setup ADB on my laptop and device, but cant seem to find the right TuT. can someone give me a link. greatly appreciate it!
[Samsung Galaxy S (4G Model)] Juls317:
Q & A section
[Samsung Galaxy S (4G Model)] nativesmiley:
HELP! im kind of confused on the flashing boot.img part. any help please
[Samsung Galaxy S (4G Model)] hechoen:
native

If your confused then this is over your head. Read a few posts up about experienced users. Your post is not coming from experience but lack of it. Please don't take this as an insult just more of an observation.
[Samsung Galaxy S (4G Model)] nativesmiley:
i understand what your saying, but i would like to give it a try. if something is did wrong is my fault. i just like to learn thats all.
[Samsung Galaxy S (4G Model)] bhundven:
read the op. If you don't understand it, don't flash it!
[Samsung Galaxy S (4G Model)] nativesmiley:
i figured it out. but thanks anyways! =)
[Samsung Galaxy S (4G Model)] bhundven:
New build up.

BLN (thanks m4xm4n)

Wifi works

fixed some weird cm7 reboots

fixed cell & data responsiveness (thanks again m4xm4n)

tons of other little things... (see http://github.com/teamacid)

Enjoy, and Happy Easter!