yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] m0d:
Thank you for your reply, that is what I am trying to do.

I am trying to figure out why with some kernels ROM does not boot, which is why I need the logs to be saved to sdcard.

In my init.d I have:

#!/system/bin/sh

sleep 2
echo Running my Log script
mkdir /storage/sdcard1/logs 0775 system log
/system/bin/logcat -r 1024 -n 9 -v threadTime -f /storage/sdcard1/logs/zlog

But I get:

I also have after 'on post-fs-data'

# Test persistentLogging
mkdir /storage/sdcard1/logs 0775 system log
start p_logging

# ... with the following defined later:
# Test persistentLogging
service p_logging /system/bin/logcat -r 1024 -n 9 -v threadTime -f /storage/sdcard1/logs/log
user system
group system log
disabled

But I get,

If you can point me in the right direction I will appreciate it.
[Android Software/Hacking General [Developers Only]] jgcaap:
i've decided to format the computer again. since was giving a bunch of new errors. Will try again after! Thanks
[Android Software/Hacking General [Developers Only]] sparksco:
Your errors are related to the clang compiler.. It doesn't understand the flags your using. This happens when you put flags in arm makefiles. That's why I put all my flags in binary.mk
[Android Software/Hacking General [Developers Only]] jgcaap:
that means i should put then in binary.mk ? do you have a github so that i can see an example? Thank you!

btw i used this one: https://github.com/ArchiDroid/Toolchain/tree/linaro-4.8-arm-linux-androideabi is the correct version right?
[Android Software/Hacking General [Developers Only]] sparksco:
I only have this one but it's connected to other repos like vendor and device trees...

https://github.com/SaberMod/omni-android_build/commit/4d1a38cf7c999357120882454ddd204907653480

And if you use this commit you'll need this toolchain for host.

https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/
[Android Software/Hacking General [Developers Only]] jgcaap:
on weekend i'll read and see if i can adapt the code., since i would like to use linaro.

Thank you!

---------- Post added at 02:06 AM ---------- Previous post was at 01:36 AM ----------

I think now I understood. Different tool chains = different options available. But is weird I cloned the repo from archidroid the recommended version.. Does this mean the tutorial on the op is wrong? Thanks
[Android Software/Hacking General [Developers Only]] desalesouche:
hi sir.

what about x86_64-linux-glibc2.20-4.8?

can you compile with it? i had some f2fs error i solved but after that i couldn't finish compilation...

regards

off-top: i found the Saber Mod house in France will send picture tomorrow... ;)
[Android Software/Hacking General [Developers Only]] sparksco:
I don't know what your referring to I never used one with glibc2.20...
[Android Software/Hacking General [Developers Only]] desalesouche:
https://github.com/Khaon/android_build/commit/ca1aa5372fefe9a90f31deb5101eca1b3425604f

http://www.phoronix.com/scan.php?page=news_item&px=MTc4MzI

https://github.com/frap129/x86_64-linux-glibc-2.20-4.8

i am refering to this

sorry if i thought you where using that.
[Android Software/Hacking General [Developers Only]] JustArchi:
Could you tell me why are you wasting your time on glibc, if target ARM code doesn't benefit from x86_64 host binaries at all?

People are blindly following some random commits instead of using their brain.
[Android Software/Hacking General [Developers Only]] desalesouche:
I feel you're quite nervous these days by reading previous posts.

if people where not trying to use their brains, they wouldn't be here i guess.

one-eyed in the land of blinds?

we are not all "devs" .but thank you for enlighting us. ;)

don't think that i am grumbling , i am just french.
[Android Software/Hacking General [Developers Only]] JustArchi:
Why do you think I'm nervous?

I see you wasting your time on something that is not even possible to speedup your build, but instead of asking you just simply followed other zombies cherry-picking everything without understanding ;). I find it quite funny to be honest.
[Android Software/Hacking General [Developers Only]] sparksco:
No. I only use what's on SaberMod github and AOSP sources because it works for and me... I don't waste my time with compiling host toolchains as [MENTION=5161352]JustArchi[/MENTION] said. Google host toolchains work fine.
[Android Software/Hacking General [Developers Only]] jgcaap:
You are the dev of sabermod?
[Android Software/Hacking General [Developers Only]] jgcaap:
took me a while to understand what it mean, but i was able to make a build, with less flags and by adding a -Os local flag.

i'm very new at this thats why i ask many questions.

Thanks again for your suggestions. Soon i'll upload everything to git and give proper credits. need to learn how to use it.
[Android Software/Hacking General [Developers Only]] JustArchi:
As previously stated, I started working on flags for Lollipop.

Will take a week or two I guess.
[Android Software/Hacking General [Developers Only]] jgcaap:
Look eager to it. :) I would help out but my knowledge of C is quite a few... I'm now more directed to economics and finance. But I learned a lot the last 5 days. This is a very big world (kernel + rom building ). Thanks for you efforts and sharing with us.
[Android Software/Hacking General [Developers Only]] JustArchi:
Good news everyone!

I was able to compile fully working O3 build, for both ARM and THUMB targets, which means that we have even deeper optimizations than what we had in KK :cool:.

https://github.com/ArchiDroid/android_build/blob/cm-12.0-optimized/core/archidroid.mk

The final effect is already awesome, but I want to have this build carefully tested by my users, and I'm still experimenting with CLANG flags.

V4 is close.
[Android Software/Hacking General [Developers Only]] Hashbang173:
Will this work with aarch64 targets?
[Android Software/Hacking General [Developers Only]] JustArchi:
Will this work - yes. Is it tested - no.
[Android Software/Hacking General [Developers Only]] sparksco:
So you implemented graphite flags? I'm curious why you state this as -O3 but your actually adding in a bunch of other flags like graphite loop transformations. I'm assuming your using a toolchain that supports these flags.
[Android Software/Hacking General [Developers Only]] jgcaap:
Small question in case you have time to reply.

On this tool chain: https://github.com/ArchiDroid/Toolchain/tree/linaro-4.8-arm-linux-androideabi you were able to cut the eabi part. I'm trying to use this tool chain: https://github.com/arter97/arm-linux-androideabi-4.8 together with Christool chains for the kernel, but i noticed i am not able to "force" to use the toolchain i want for the kernel.

I noticed you deleted the eabi part . Is simple as that? Or do i have to do more?

Thanks, and good job . Will have a look to your git :)
[Android Software/Hacking General [Developers Only]] JustArchi:
There are no graphite flags because they're causing internal compiler errors with LP source.

But yes, I'm using your SaberMod 4.8 GCC androideabi toolchain :).

And my commit does not only include O3, but a bunch of other flags as well. V3 added them, too.
[Android Software/Hacking General [Developers Only]] sparksco:
OK yes there is solution for this internal compiler errors. I'll see if I can send you sent pull request sometime this week.
[Android Software/Hacking General [Developers Only]] JustArchi:
No, i just separated full linaro toolchain into two independent ones.

For AD, I'm currently using SaberMod's 4.8 androideabi toolchain, and (my own) ArchiToolchain's 4.9 eabi toolchain.

This is my current manifest regarding toolchains. And it works out of the box even with untouched android_build from LP. However you shouldn't use my ArchiToolchain if you're not targetting Cortex A9 with NEON.
[Android Software/Hacking General [Developers Only]] jgcaap:
ahhh . Okey. I'll see how i can do that. I prefer linaro... is smoother :P Thanks! Even so good work!
[Android Software/Hacking General [Developers Only]] JustArchi:
Linaro won't work for LP, if talking about my ArchiDroid/Toolchain repo.

In fact, I wanted to compile new androideabi from source, but I failed, so I just switched to SaberMod's androideabi, until I will be able to compile my own ArchiToolchain for androideabi, same as I did for eabi.
[Android Software/Hacking General [Developers Only]] jgcaap:
That would be lovely to do. Have you tried like the developer of Uber tools chains done? Instead of using linaro from scratch, used Google and applied linaro patches above it? I'm not sure if is the same thing, but I suppose it's better to have linaro from scratch.

I'm still reading about how to do it. They'll now in April or may release a prebuilt, perhaps by then you can adapt your code.

I was already able to compile with o3 with linaro. The thing is, wasn't added everything you had on kitkat. I already tried, but gave me always errors so I suppose it's not possible.
[Android Software/Hacking General [Developers Only]] bigsupersquid:
when you get that working, it would be awesome if you could point to the correct method. So far I've been able to compile eabi toolchains ok but androidarmeabi has errored out during building from every repo and tut I've found for it.
[Android Software/Hacking General [Developers Only]] sparksco:
The source has been moved to https://gitlab.com/SaberMod

The latest toolchains have cloog libs installed where gcc can find them to avoid compiler errors for missing libraries.
[Android Software/Hacking General [Developers Only]] JustArchi:
I tried to add your gitlab repo but I couldn't make a connection last night. Could you perhaps give me a correct remote entry for the manifest, so I can use it similar to remote=github?

Been there, done that. Exactly my story.
[Android Software/Hacking General [Developers Only]] Hashbang173:
This?

<remote name="gitlab"
fetch="https://gitlab.com/" />
[Android Software/Hacking General [Developers Only]] sparksco:
Yes for gitlab on manifest name=arm-linux-androideabi-4.8.git

Note the .git needs to be there that's probably the issue. 4.9 is available but I heard it only works on android 5.1 and not 5.0. I haven't tested myself yet on 5.1.

LTS branches are the most compatible with different Linux distros unlike before when you kept getting the glibcxx errors. Master branch is for bleeding edge Linux like arch Linux or fedora or Ubuntu 14.10+

I have a guide here to compile from source also.

https://gitlab.com/SaberMod/sabermod-manifest/blob/master/README.md
[Android Software/Hacking General [Developers Only]] sparksco:
Yes that's right for remote name :)
[Android Software/Hacking General [Developers Only]] sgspluss:
[MENTION=5161352]JustArchi[/MENTION], is v4 just for lollipop or also will get kitkat an update?

[MENTION=2394329]sparksco[/MENTION], if i wanna use your toolchain will get grafical glitches on playstore and which toolchain do i need for kitkat?

Gesendet von meinem Galaxy Nexus
[Android Software/Hacking General [Developers Only]] JustArchi:
No, KK is closed with V3. There's nothing to do as everything else is not compatible anyway.
[Android Software/Hacking General [Developers Only]] sgspluss:
Thank you, dziekuje bardzo!

Enjoy v3 on kitkat, will use v4 also in lollipop soon :good:

Gesendet von meinem Galaxy Nexus
[Android Software/Hacking General [Developers Only]] sparksco:
No graphic artifacts that I know of. The toolchains are based on gnu with ported android patches but our own patches in gcc to make graphite work better. Kitkat requires gcc 4.8. Now that 4.9 works on android 5.1 lollipop, I probably won't update the toolchains for 4.8 anymore. But the source will be updated for anyone that wants to compile it for themselves. For the kernel it varies depending on if you need kernel patches. I'd start out with the ROM first.

https://gitlab.com/SaberMod/arm-linux-androideabi-4.8
[Android Software/Hacking General [Developers Only]] sgspluss:
Thank you also for this information, as i dont have the time to compile toolchain also will take a look for prebuilt one.

For rom/kernel i use same version dont want to mix up anything...
[Android Software/Hacking General [Developers Only]] sparksco:
Gcc 4.9.3 is a real performance booster. You should consider upgrading to lollipop 5.1
[Android Software/Hacking General [Developers Only]] sgspluss:
Its already planned :good:

Have test it and feels nice, even better then kitkat or lollipop 5.0.

Just two more question, do you still have 4.8 or 4.9 prebuilts for try it out (mean for both rom and kernel)?

On kitkat was strange experiances with linaro 4.9 about bluetooth speaker, anything known with your toolchain?
[Android Software/Hacking General [Developers Only]] sparksco:
I already linked you to the site for prebuilts :)
[Android Software/Hacking General [Developers Only]] sgspluss:
Ahhh overlook this, my fault ;)

Thank you will give it a try!
[Android Software/Hacking General [Developers Only]] beeeto:
Hey Archi, long time no see, how is it going?

I must say your amazing work at CM11 optimizations inspired me to make my own ROM. But, since your optimizations are not present on CM12 I've been digging a lot by myself with build optimizations like this commit and this which I see a lot in people githubs.

With this said, I must ask, what are the difference between your optimization flags and the implementation I have showed you? I mean, I know you are not using graphite flags yet, but I am sure there's a lot more stuff to be said.

Sorry if this is a kind of dumb question, the only will of this post is to learn, and there's no better place than this where we have the great SaberMod dev [MENTION=2394329]sparksco[/MENTION] and you watching this thread.

Kind regards! :)
[Android Software/Hacking General [Developers Only]] jgcaap:
I wish that sabermod was more fluid like linaro... For me would become best choice...

Still not available lolipop on OnePlus.
[Android Software/Hacking General [Developers Only]] sparksco:
That's your own opinion I guess, other people say the opposite [emoji2]

What do you mean "not available"?
[Android Software/Hacking General [Developers Only]] jgcaap:
I know is a divergence of opinions [emoji14] please, I don't ment to be critical in a destructive way.

My opinion, I hope is carried to build a better tool chain, as I know is not a easy job.

But In my opinion linaro, in visual graphics, is in fact more fluid. I've tried your tool chains with my girlfriend phone side by side and linaro is in fact more smooth.

But Sabermod is, in my opinion, faster then linaro on processing (loading time).

I created a thread with blind test of tool chains, and found that users preferred on 19 votes, 15 linaro and 4 sabermod.

In case you have suggestions of making a better sabermod build, I'll be glad to try out.

In the thread I created on OnePlus one, I'm testing different toolchains (already tested around 4 different tool chains), and recently decided to extend that testing period to know best for user.

I would be more than happy to try out new builds with your tool chain in case you'd like. If you check my thread users are pretty motivated on testing things out Hehe.

Thanks
[Android Software/Hacking General [Developers Only]] sparksco:
sabermod has been around for years. There was a lot of developers that switched from Linaro to SaberMod in jellybean, and I had my own sabermod ROM as well in jellybean. I honestly don't test linaro or aosp toolchains anymore because I don't see the need. I still see a noticeable improvement over stock android (odex) and any aosp ROM built with sabermod. I don't know what has changed in linaro or sabermod that would make a huge difference between now and then (not saying sabermod is better than linaro). I did notice some performance downgrades a little in gcc 4.8 sabermod over the last year that could be the cause for this. But at the same time battery life has improved quite a bit. So I guess you sometimes have to sacrifice performance for battery life or vise versa... 4.9 has a nice performance boost with android 5.1, but android 5.1 already includes performance boosters, so it's really hard to tell what has caused the performance boost :eek:

Why do you need me to tell you to test something? There's always major changes happening to gcc, so maybe give latest builds a shot whenever you feel like it from https://gitlab.com/SaberMod

and linaro from here: https://android-build.linaro.org/
[Android Software/Hacking General [Developers Only]] jgcaap:
well you are developer of sabermod :P if you say here that you dont know about what was changed, perhaps would be to check maybe you are able to improve your GCC... just saying... :) but thanks for reading my suggestions... hope was usefull
[Android Software/Hacking General [Developers Only]] sparksco:
I'm happy with the way the gcc is now [emoji3]

As I said it provides me with better performance over stock as well as battery life.
[Android Software/Hacking General [Developers Only]] Mata99:
[MENTION=5161352]JustArchi[/MENTION] how do I apply these optimizations ?
[Android Software/Hacking General [Developers Only]] sparksco:
Here's some benchmarks for sm for anyone that's interested. Not by me as that would seem biased.

post

And that's with gcc 4.8, I'm sure gcc 4.9 performs much better :)
[Android Software/Hacking General [Developers Only]] TrueFriend-cz:
Hi. Where is version for Xperia Z? Thanx
[Android Software/Hacking General [Developers Only]] sparksco:
Don't want to get to far off topic but I think it's here
[Android Software/Hacking General [Developers Only]] TrueFriend-cz:
Thanx. And where file ArchiDroid for optimazitation? I must flashed? Or how add to ROM?
[Android Software/Hacking General [Developers Only]] sparksco:
My original post was in regards to SaberMod toolchains in general with benchmarking, not taking into consideration any optimizations used by the ROM developer. I don't know what if any optimizations the ROM developer uses... My post was to show to the previous debate about sabermod vs linaro, that opinions can vary regardless of a poll or vote that took place on one thread. I'd assume both toolchains have pro's and con's.

But yes, [MENTION=5161352]JustArchi[/MENTION] can give you pointers on implementing his optimizations into a cm ROM if that's what your after..
[Android Software/Hacking General [Developers Only]] judas1977:
Hello. I have the same issue.

I added something like this:

TARGET_arm_CFLAGS := -Wno-sizeof-pointer-memaccess

in TARGET_linux-arm.mk, but the error still exists.

Any clues how to get rid of it?
[Android Software/Hacking General [Developers Only]] shoey63:
Just add -w to the offending make files. Then you will get no warnings at all:p
[Android Software/Hacking General [Developers Only]] jgcaap:
you made this post right?

https://plus.google.com/+PaulBeeler/posts/FSSYobgwTqQ

i've sent you a PM , where i hope to receive a reply. Thanks
[Android Software/Hacking General [Developers Only]] Mata99:
I do not find the folders to add these optimizations.

I'm looking at the root of my source code

help me PLEASE
[Android Software/Hacking General [Developers Only]] JustArchi:
https://github.com/ArchiDroid/ArchiKernel/commit/6ee5345ac0a0a1bab8b1379b3165690e2b706a44

Like this.
[Android Software/Hacking General [Developers Only]] JustArchi:
It's in $(SRCTREE)/build.
[Android Software/Hacking General [Developers Only]] judas1977:
Thanx, i already fixed it "the right way":), but thx for pointing where should i add the flags...

Kernel didn't boot anyway;))
[Android Software/Hacking General [Developers Only]] sparksco:
I don't think kernel's are related to this but I could be wrong..
[Android Software/Hacking General [Developers Only]] judas1977:
No - kernel didn't boot beacuse something else is missing (caf-side), for sure;)

I tried to use clean LG sources to get it work with CM based ROMs... actually sources was for KK kernel and i tried to compile Lollipop one, but judging on custom kernel sources this shouldn't be a problem;)).
[Android Software/Hacking General [Developers Only]] sparksco:
Somehow I missed this before. The first patch looks like it'll work good. The second patch that uses call cc-option won't work very well because android doesn't really use CC anymore In kitkat and jellybean. The second patch was more of testing grounds in lollipop because of the clang compiler was interfering with graphite flags. Now it's easier to check for LOCAL_CLANG in binary.mk. Hope that explains some things. You can also find all the newest commits for lollipop on https://gitlab.com/SaberMod in repos like omni-android-build and android-vendor-omni

There's also -O3 as I'm sure you saw

Maybe those commits can help [MENTION=5161352]JustArchi[/MENTION] to implement graphite optimizations into his :cool:
[Android Software/Hacking General [Developers Only]] sgspluss:
[MENTION=2394329]sparksco[/MENTION], using your toolchain from github why github, laught on me i also dont know why i am not using gitlab :D

But main qestion what want to ask, saw on gitlab gcc 4.8 got an update 3 days ago.

Are there any big changes or improvements compared to github version?

Gesendet von meinem Galaxy Nexus
[Android Software/Hacking General [Developers Only]] sparksco:
Maybe I'll delete the ones from github.

[MENTION=4920940]sgspluss[/MENTION] you can check gitlab source commits for changes. There's a lot of things in a toolchain besides gcc... I'll not going to hand feed you links to commits every time something changes.
[Android Software/Hacking General [Developers Only]] sgspluss:
Yes checked already gitlab for changes, will change now the sources to gitlab and its good to go ;)

Thank you!
[Android Software/Hacking General [Developers Only]] Mata99:
where is .repo/local_manifests/roomservice.xml ?
[Android Software/Hacking General [Developers Only]] sgspluss:
There as you say.

You just have to show hidden folder and files, then you will find the path.

Gesendet von meinem Galaxy Nexus
[Android Software/Hacking General [Developers Only]] sparksco:
Ctrl+h to show hidden folders in a file browser.
[Android Software/Hacking General [Developers Only]] judas1977:
Sorry - i know it's unrelated to JustArchi's optimizations but i know that wise persons come here;))

I deleted my old Linux OS and installed ubuntu 14 (64bit).

then - i prepared environment using this guide:

http://xdaforums.com/showthread.php?t=2639611

One major issue appears. So i moved to Lubuntu 14.10 - the issue still exists...

What is going on?

I cannot sync repository:

after repo sync process just "hangs" (no error) - no matter which command i use after "repo sync" (-f, -j1, without flag)

Manifest is good for sure.

I noticed that i cannot fetch (sync) some specific repos as "frameworks/base" - i tried on two ROMs repositories to be sure...

I know that github has some issues today, but could this be related?? I'm confused, because it's just after i changed linux distro. Maybe something is missing in tutorial - how to prepare compilation environment???

I'm out of ideas...
[Android Software/Hacking General [Developers Only]] tortellini:
https://github.com/ResurrectionRemix/platform_manifest/blob/lollipop/README.mkdn
[Android Software/Hacking General [Developers Only]] sgspluss:
[MENTION=2394329]sparksco[/MENTION] after i changed over to gitlab, got follwing errors while doing repo sync

Do you have an idea what could it be, try it few times and also be sure that use the right path.
[Android Software/Hacking General [Developers Only]] judas1977:
Maybe the same issue as mine (2 posts above)
[Android Software/Hacking General [Developers Only]] jgcaap:
I was able to do git clone some days ago. Haven't tried today. But my error by then was due connection timeout.

So I decided to go someone which has his source and git hub and downloaded. That's how I solved it.
[Android Software/Hacking General [Developers Only]] sparksco:
It's a known issue gitlab is working on. For now there's mirrors here:

https://bitbucket.org/Nico60
[Android Software/Hacking General [Developers Only]] JustArchi:
I can smell V4 optimization commit comming soon :cool:.

Still final tests pending. If you want to help testing, go ahead.