yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S II SGH-T989] Omnicide:
I tryed the executable code nothing happen no error and nothing changed. tryed the boot.img

still got command not found. but thank you I will read up on this I am new to it all seens i got galaxy i found this and found a new insterent and witch i will figure this all out. Thanks for putting up with me,

Edit: Well by putting in ""Directory"/extractboot" I was able to make the folders I needed Out/Ramdisk now if I can just make it run on boot.img lol
[T-Mobile Samsung Galaxy S II SGH-T989] jr_718:
Reserved
[T-Mobile Samsung Galaxy S II SGH-T989] Omnicide:
Alright so I have made it a step forward in this issue I have. And now I havent finshed reading up on all the stuff from the above post. This is what I am getting know if this might help someone help me.

./extractboot boot.img
./extractboot: line 12: ./split_bootimg.pl: Permission denied
gzip: ../../boot.img-ramdisk.gz: No such file or directory
cpio: permature end of archive

I am starting to think my stock boot.img I backed up doesn't work.
[T-Mobile Samsung Galaxy S II SGH-T989] datzstr8:
I think you need to set the permission for the split_bootimg.pl (perl script) to be executable also. Try "chmod a+x split_bootimg.pl" and try again. Either that or you don't have perl. You can install with this:

sudo apt-get install perl
[T-Mobile Samsung Galaxy S II SGH-T989] Omnicide:
That was the whole problem set the permission thank you very much problem fixed for the next person that has this issue.
[T-Mobile Samsung Galaxy S II SGH-T989] datzstr8:
I'll put a note in the guide to remind people to set the permissions. Thanks.
[T-Mobile Samsung Galaxy S II SGH-T989] interloper:
Usually permission denied errors are caused by improper permissions. Change all permission of all files you are working with to owner/rw/executable. As forall the rest of the questions, I'm pressed for time right now but an answer back later. Don't give up, we can work it out.
[T-Mobile Samsung Galaxy S II SGH-T989] tomasitoc:
som,

would love to see another great rom from you guys for the galaxy S2
[T-Mobile Samsung Galaxy S II SGH-T989] Omnicide:
I am a big pain I know this, but I ran into another problem.

cp crypto/ansi_cprng.ko $INITRAMFSDIR/lib/modules/

When I do this code I get

cp: cannot stat `crypto/ansi_cprng.ko` : No such file or directory

So I went in the kernel directory to find out whats going on. my file in the kernel is ansi_cprng.c in fact all the file in this directory have the .c. I don't know if I messed something up or I got another not normal issue going on here. I try to work with this but im stuck so I figured I would post again.
[T-Mobile Samsung Galaxy S II SGH-T989] datzstr8:
send me a pm with your email. i can work it out with you via email
[T-Mobile Samsung Galaxy S II SGH-T989] interloper:
Good support on this thread. Good to see. So, for the poster who was having problems with Line #20, I was speculating on an idea with that. On a regular kernel build,without and kid of script, one can modify the makefile to reflect the build machine and owner. That only shows up in the contents of the kernel and ramdisk if you disassemble it and look for those specific files. Only Line #9 shows up on the phone. If anyone else uses your kernel and they are curious about its source they will know it's you ! ;) I think datzsr8t has covered the rest of the issues. Keep on kerneling!
[T-Mobile Samsung Galaxy S II SGH-T989] hololight:
sgh-i717 att galaxy note

Does anyone know the proper base address, block size, etc., for the Att Galaxy note? I am asking here because I cant seem to get any love over on my home forum.

I have a few kernels I have compiled to try and fix some things, but I can not for the life of me build a boot.img that will work.

Thanks,

Chris
[T-Mobile Samsung Galaxy S II SGH-T989] datzstr8:
The simplest method is to extract your boot.img from your phone and use the extractboot tool, which you can find in the 1st post, to extract your boot.img. The output of the program will display your base, block size, etc.

Let me know how it goes.
[T-Mobile Samsung Galaxy S II SGH-T989] hololight:
Lol, of course it will...

I hadn't even played with it since I already had kernels and a ramdisk I was working with.

I will take a look. Thanks.
[T-Mobile Samsung Galaxy S II SGH-T989] hololight:
Thanks again, solved my issue.

Chris
[T-Mobile Samsung Galaxy S II SGH-T989] badb4lyfe:
in the extractboot script...... line 18 "./" needs to go before split_bootimg.pl...... if its already been said apologies....
[T-Mobile Samsung Galaxy S II SGH-T989] datzstr8:
If you place those files in your path then you won't need the "./"

I think adding the "./" will make it not work unless you are in the same folder as the script even if you have it in the path. Correct me if I am wrong.
[T-Mobile Samsung Galaxy S II SGH-T989] Omnicide:
Im noob to this stuff but even with extractboot in the folder of my path i still had to ch a+x it then use ./ to get it to work.
[T-Mobile Samsung Galaxy S II SGH-T989] interloper:
./ will be dependent on how you have the directories structured. I find it best to put often used tools in a PATH directory and rewrite the bits to find what they need to operate. All script need to be chmod 777 to run. If you need help with scripts, PATH or anything just ask ;-) Also editing .bashrc to export tool chains can save steps when switching devices or to new source. Also there is a port project going for an ics build if anyone is interested and able to use github somewhat contact me.
[T-Mobile Samsung Galaxy S II SGH-T989] Racing19969:
Definately interested, Let me know..

Thanks
[T-Mobile Samsung Galaxy S II SGH-T989] interloper:
I feel dumb now...not responding. On irc freenode #evervolv find mikeyman77. He's working on an ics port and has a booting kernel/rom. I haven't been much help as I don't own this device. Good luck.
[T-Mobile Samsung Galaxy S II SGH-T989] qzem:
@datzstr8

I wonder how to get pass this step:

4) Get a Copy of initramfs

if my phone is not rooted, and ther is no CWM recovery for this phone yet.

I have Samsung Galaxy S Advance, and I would like to compile myself an insecure kernel, so then I can root my phone.
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
Find a custom ROM zip for your phone download and extract needed files on computer. May need a kitchen or tool to extract boot image from zip but plenty of those like dsixda kitchen.

Otherwise root phone run nandroid and use nandroid backup (copy/sdcard/clockwork/backup usually to copy backup files to computer it will default to external sd usually if one is present) with dsixda kitchen till then extract boot

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
Yes for Linux you need to

chmod 777 file

(read/write for all users)

Then

chmod +x file

(specifying eXecutable status to file)

chmod +a just means specify as Archivable file to be processed with backups and not needed to execute and a+x means add x to existing perms and a with no plus means clear all attributes adding only a btw do you said clear all existing attributes, use only a then add x to that essentially)

Then either

./file

or something like

sh file, /system/bin/sh /path/file

(sh is MOST scripts and needed only if you have no path or did not specify bin as part of it (usually default now)

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] qzem:
This is not an options for me. There is no custom rom yet, and there is no working root method for this phone. My only chance is building myself an insecure kernel (such as ChainFire made for Galaxy SII), flash it with odin and then root phone. That is why I am asikng if you know any other way. I would contact Chainfire but he doesn't respond to my PM neither to my questions in his thread :(.
[T-Mobile Samsung Galaxy S II SGH-T989] interloper:
Its an entire lesson in Android and Linux to answer your question. I don't mean to sound sarcastic, but if you cannot get the initramfs you should back up a few steps and try working on some other things first. Learn to use adb well, learn to dd, learn bash and then try what you are attempting. It seems like you might have the enthusiasm to learn all of these things, but until you do you are at risk of harming your device.

There may be information about your device on github, bitbucket or gitorous. Otherwise there are a great many wiki's, walkthroughs and blogs to get you going. CyanogenMod wiki is a good one, Android Building also. Search here on XDA and you will find enough good info to get you started.

Good luck.
[T-Mobile Samsung Galaxy S II SGH-T989] qzem:
Ok I've managed to compile myself zImage for my phone, but there is still a problem of get initramfs to make boot.img. Is there really no way to get this from the phone without root access? Ok which folders and files exactly are in initramfs folder?
[T-Mobile Samsung Galaxy S II SGH-T989] interloper:
adb shell cat /proc/partitions

Take a note of all of the partitions listed. Then, for every one run the command:

dd if=/dev/block/XXXXXXX of=/sdcard/XXXXXXX.img

replacing XXXXXXX with the name of the partition. Then pull ALL of these images off the device however you can/want to. Then you have to mount all the images one by one with:

sudo mount -o loop xxxxx.img /some_dir

to find out exactly what it is. Once you find the boot.img you need to use a tool called splitimg to take the ramdisk away from the boot.img. Here are a couple of guides I found right here on XDA to help you through the rest:http://xdaforums.com/showthread.php?t=1623228

http://xdaforums.com/showthread.php?t=1494036
[T-Mobile Samsung Galaxy S II SGH-T989] qzem:
I can't dd the blocks, cause I got permisson denied, I don't have rights to read them :(. I guess I am back at the begining, it looks like I walk in a circle. I don't get it how did Chainfire compiled such insecure kernel without having a root access to SGS2...

EDIT 1: Maybe I must be in recovery mode. Will try that later...

Edit 2: Nope even in the recovery I don't have the reading permission for blocks.
[T-Mobile Samsung Galaxy S II SGH-T989] interloper:
Chainfire knows more than I. He is legend. I am a cockroach. You shouldn't need room to read the blocks we do it all the time. What might help is to join the irc or even start one for the target device and collaborate with others in real time. Trying to develop through a forum isn't as productive.
[T-Mobile Samsung Galaxy S II SGH-T989] qzem:
One question, I hope someone who knows the answer reds this :). For SGS2 the command for making a boot.img looks like this:

mkbootimg-sg2x --kernel zImage --ramdisk ramdisk.gz --cmdline "androidboot.hardware=qcom msm_watchdog.appsbark=0 msm_watchdog.enable=1 loglevel=4" -o boot.img --base 0x40400000 --pagesize 2048

How does it look for Samsung Galaxy S Advance phone, or how can I find out what needs to be written for cmdline, base and pagesize? Can someone explain those things to me, please?
[T-Mobile Samsung Galaxy S II SGH-T989] interloper:
This information is determined by the .config and can be found there. Most likely its the same for your device as it is for the note, etc, as the T989 used the same command. Check first. If its not right it just won't boot.
[T-Mobile Samsung Galaxy S II SGH-T989] interloper:
What country code is the source? I am seeing several countries represented and could help more if I was working on the source itself.
[T-Mobile Samsung Galaxy S II SGH-T989] qzem:
I am using open europe source, XXLD1.
[T-Mobile Samsung Galaxy S II SGH-T989] hedpe:
I am getting the following build error using Update1.zip and msm8660_celox_usa_att_rev02_defconfig ... has anyone experienced this before? It's a missing file, and it's definitely not in the kernel tree.

net/ipv4/netfilter/ipt_ecn.c:19:42: error: linux/netfilter_ipv4/ipt_ecn.h: No such file or directory
net/ipv4/netfilter/ipt_ecn.c:26: warning: 'struct ipt_ecn_info' declared inside parameter list
net/ipv4/netfilter/ipt_ecn.c:26: warning: its scope is only this definition or declaration, which is probably not what you want
net/ipv4/netfilter/ipt_ecn.c: In function 'match_ip':
net/ipv4/netfilter/ipt_ecn.c:28: error: 'IPT_ECN_IP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:28: error: (Each undeclared identifier is reported only once
net/ipv4/netfilter/ipt_ecn.c:28: error: for each function it appears in.)
net/ipv4/netfilter/ipt_ecn.c:28: error: dereferencing pointer to incomplete type
[T-Mobile Samsung Galaxy S II SGH-T989] thederekjay:
I

What toolchain are you using?

I also see a reference to a missing file? Have you modofed anything?

What source are you exactly using?

:: DARKSIDE ::

"I am turned into a sort of machine for observing facts and grinding out conclusions..."
[T-Mobile Samsung Galaxy S II SGH-T989] jr_718:
handy...
[T-Mobile Samsung Galaxy S II SGH-T989] rajit:
help me... i have added faux sound control. then when i tryed to flash and boot the kernel its perfect. then if i tried to unlock its get restart .. last kmsg log -http://hastebin.com/uritesoruw.md
[T-Mobile Samsung Galaxy S II SGH-T989] irfanjunaid:
Greetings Friends,

Can you help me with the following errors:

Info

: Trying to compile Samsung J2 kernel. It is 5.1.1 Lollipop.

Currently I am compiling Samsung kernel using 4.8 toolchain from CM 12.1 source. Also tried NDK - 4.8/4.9 toolchain but with same result.

This is the kernel readme:

1. How to Build

- get Toolchain

From android git server , codesourcery and etc ..

- edit Makefile

edit "CROSS_COMPILE" to right toolchain path(You downloaded).

Ex) CROSS_COMPILE=/*/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- // You have to check.

- make

$ make ARCH=arm exynos3475-j2lteswa_defconfig

$ make ARCH=arm

2. Output files

- Kernel : arch/arm/boot/zImage

- module : drivers/*/built-in.o

3. How to Clean

$ make ARCH=arm clean

$ make ARCH=arm distclean

Not sure why getting this Warning:

user@user-pc:~/Kernel$ make ARCH=arm exynos3475-j2lteswa_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/media/mtv/sms3230/Kconfig:51:warning: type of 'SMS_USB_DRV' redefined from 'tristate' to 'boolean'
drivers/media/mtv/sms3230/Kconfig:58:warning: type of 'SMS_SDIO_DRV' redefined from 'tristate' to 'boolean'
#
# configuration written to .config
#

Compilation then terminates with the following error:

scripts/link-vmlinux.sh: line 44: ~/Android/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-ld: No such file or directory
make: *** [vmlinux] Error 1

But the arm-eabi-ld is there as a link with link target as arm-eabi-ld.bfd

I followed exactly as per procedure. Could someone kindly help??? :( :crying:
[T-Mobile Samsung Galaxy S II SGH-T989] Easy_as_Pi_3.14:
[MENTION=4896462]rajit[/MENTION] [MENTION=5182694]irfanjunaid[/MENTION]

Serious necrobump. Last posts were from 2012.
[T-Mobile Samsung Galaxy S II SGH-T989] rajit:
TOOLCHAIN NOT FOUND THEIR...ITS THE PROB.

do one thing .. make a folder call android then within it place two folder one in kernel another one is toolchains then root copy you source to kernel and root copy of tool chin into toolchins

then go to kernel folder [root] open terminal

make clean && make mrproper
export ARCH=arm
export CROSS_COMPILE=~[pace the root dictonary of you toolchains with prefix ] like android/toolchains/bin/arm-eabi-
make <your_config_name>_defconfig
make -j1
[T-Mobile Samsung Galaxy S II SGH-T989] tenifugo:
Hi! It's been four days that I can not sleep trying to compile the kernel of my smartphone. They appeared several errors , but i got to solve them alone. But I'm stuck in one, and i would appreciate your help . The problem is that after changing the required settings in the menu, I can not create the file " zImage". I run the command : "make -j4 ARCH=arm CROSS_COMPILE=arm-linux-androideabi-", the compiling process starts but in the end, the terminal does not convert the files. From what I saw on the internet, in the final lines should appear:

"#OBJCOPY arch/arm/boot/zImage

#Kernel: arch/arm/boot/zImage is ready".

Like in the image:

But in my appears:

I really think that is some command missing, to order the terminal create the zImage. If someone knows what is happening, i would be greateful.

I think that im in the right topic session. If i dont, sorry, im new here.
[T-Mobile Samsung Galaxy S II SGH-T989] irfanjunaid:
Compiling as root did the trick... Thanks ;)
[T-Mobile Samsung Galaxy S II SGH-T989] bawaviki:
I got following errors

In file included from drivers/net/ethernet/msm/rndis_ipa_trace.h:81:0,from drivers/net/ethernet/msm/rndis_ipa.c:32:include/trace/define_trace.h:83:43: fatal error:./rndis_ipa_trace.h:No such file or directory#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)^compilation terminated.

Please help me.
[T-Mobile Samsung Galaxy S II SGH-T989] SRIDHARDV:
same problem

HI bawaviki,

Did you solved this issue? Me to have the same problem.

please help me

Thanks in advance
[Android Q&A, Help & Troubleshooting] nuuits:
I know it's possible, but how do I go about putting the CM7 rings lockscreen in stock? i.e. what lines do I need to code in what file, images I need to replace, etc.?

i also have a CM7 ROM zip for another phone with the same specs on my computer for comparison if it's going to be helpful at all.
[Android Q&A, Help & Troubleshooting] nuuits:
i hate bumping up a thread, but does anyone know?
[Android Q&A, Help & Troubleshooting] ridder215215:
You can use widgetlocker in combination with an app that removes your lockscreen.

EDIT: You can also use UOT kitchen.
[Android Q&A, Help & Troubleshooting] nuuits:
Widgetlocker doesn't have the CM7 rings...

and I would like to put it into the framework of my ROM.
[Android Q&A, Help & Troubleshooting] carlonchete:
does somebody know how to do this?
[HTC Amaze 4G] glacierguy:
Seriously. I just jaw a post on thriveforums.org and it worked. I just downloaded the app, opened the app, went to register, created my account and a pop up came up confirming my lifetime upgrade. Spread the word. It's from Feb 23-Mar23.
[HTC Amaze 4G] anonymous_XI:
that has been around since november but it is useless. they do not let you upload files that are more than 100mb.
[HTC Amaze 4G] glacierguy:
Good call. Just tried uploading nrg rom and exceeded... Fml

I guess dropbox keeps me for now
[HTC Amaze 4G] Binary100100:
How do you know since you just set up your membership a couple days ago? :confused:

Wait... nevermind. I just searched your ip address. I know who you are. You're supposed to be banned from the forums for trolling. I guess we'll just have to extend it. Here's some advice, don't play the moderators for fools.
[HTC Amaze 4G] anonymous_XI:
wow seriously now, only xda memberships know about android offers? funny mod! and since you are such a smartass, 1: the ban counts for the email address not for the whole ip address. 2: there is no 100% guarantee the same ip address is being used by the same person, maybe multiple users using same computer 3: I can always use a software to change my ip address and you my dear moderator can do nothing ;) is just an xda membership, there are more important things in life so stop acting like I am going to miss a lot even if you extend the ban p.s I have 2 other memberships, wanna bet you can't find them "mister love2bprivatedetector.com"?
[HTC Amaze 4G] Binary100100:
That's fine. We'll ban those too. We love a challenge Felinos11.
[HTC Amaze 4G] rubyman94:
^ what a boss. :D
[HTC Amaze 4G] Binary100100:
You can change a trolls name but you can't change the way he looks. :rolleyes:
[HTC Amaze 4G] glacierguy:
So we all know who he is, and yes he is a troll with nothing better to do (obviously has no life outside of xda), but he did have a point and his remark did actually help this time (believe it or not). I did not know about the upload limit, and although Feline11 was trying to be a troll, he actually helped.

I know Binary and Whisky know how I feel about Feline11, and I still say ban his IP address and subsequent IPs that will certainly follow. Anyone that will create multiple email accounts just to troll forums has serious mental issues that should seek professional attention asap... Especially at his young age.

Thanks for calling a spade a spade Binary. Sounds like a reincarnation of another "...Jr." troll. They don't die, they multiply lol
[HTC Amaze 4G] Binary100100:
I don't care if he helped. He's been a member for a long time and he went very far out of his way to make us think that he was a new member. He even asked a very noobish question something of the lines of "If I take the sdcard out of my phone will it break recovery?" and we both know that he knows better than that. We need honest members that intend to help eachother. Not members that are going to deceive others and turn against them like a stray dog. He was given a punishment for his action and he should be mature enough to face it and not to go around it. We don't just ban people just because we feel like it because if that was the case we would have totally different forum with totallly different moderators. We try to be fair to the members at all times. Is it too much to ask that we get treated with the respect that we deserve rather than trying to insult our intelligence? His ip address was banned and barred from registration as well as his e-mail addresses but I have a gut feeling that we'll be seeing him again. But the good thing is that we have other means to detect those type of accounts other than ip addresses and all we need to do is look. And to look all we need to do is suspect that something isn't right. Obviously in this case something didn't fit right with me and that's why I took a closer look thus unveiling his real identity. He may not have been trolling but it would have only been a matter of time until he did. Remember that the problem isn't his username, it's his attitude and that is nearly impossible for him to change otherwise he would have done so by now.
[HTC Amaze 4G] stratax:
cant agree with this anymore. he would randomly help out, then troll, help, then troll, ask questions, and then troll for getting flammed.. :confused:
[HTC Amaze 4G] Binary100100:
Right and that's the kind of habits that we look for. That kind of suspicious behavior or an unusual post like what popped up earlier when it drew my suspicion is what causes us to have a closer look. It's really easy for us to look for duplicate accounts. Now it IS possible that a new account can be opened up with another members previously used ip address but even in that situation is pretty rare. But what's even more rare is when he's banned on the 21st and a new account is opened on the 23rd and both members post in the same forum. I think the odds of that happening would be like being attacked by a great white shark on a Detroit metro bus that's actually running on time. Neither will ever happen and for both to happen at the same time... there's just no way. :rolleyes: Yet he's surprised that I caught it? Naive little fool.
[HTC Amaze 4G] stratax:
haha you'd think he would be a little more smart about doing it at least.. if i was a troll id go to starbucks and use their wifi or something lmao, good thing im not though. :)
[HTC Amaze 4G] glacierguy:
Wasn't trying to defend him... Believe me. I took my only infraction ever over his trolling and went many rounds with him the other night when he was banned. I'm glad he's gone and appreciate the Mods like Binary and Whisky for keeping this thread clean.

On another note, since this is useless with it being 100mb file size dealy, should we maybe just close the thread?
[HTC Amaze 4G] Binary100100:
You're the OP so I'll gladly close it if you like.
[HTC Amaze 4G] glacierguy:
I feel powerful... What shall I do with the newly found power I have as op... Muahahah... Ok close it down ;):cool:

Thanks
[HTC Amaze 4G] rasstar:
Without a desktop sync software I find box really useless so I prefer to use the 5GB dropbox instead. If Box could get with the times I would use it but I guess no money in it for them to offer it free.
[HTC Amaze 4G] glacierguy:
Me too