yashsingh1/xdaforums huggingface dataset:
[Moto G General] Siekil:
and now, i got

cannot execute binary file: Exec format error

i use archlinux 32-bit
[Moto G General] adinkwok:
You need to find a toolchain that supports 32 bit linux
[Moto G General] Shuttwind215:
*deleted*
[Moto G General] Babyrasta:
Hi!

Just want to thank you for this guide!

Freshly running a 64bit system, i'm now able to build correctly!

I just flashed my 2nd version of my own peregrine kernel... Emotion! ^^

Thanks again!
[Moto G General] attack11:
Hi ! Thanks to this guide i compiled the kernel from source, the only problem is that wlan.ko weights too heavy about 41 mb , do you know what could be ?

And also, there is a way to compile the kernel with the modules integrated? cause new cm12 doesnt load anymore the modules..
[Moto G General] adinkwok:
I have to update this guide ._. No need for the wlan.ko. If your kernel is already updated to support in kernel module then you just need the zimage. If not, you'll have to wait for your maintainer to do it.
[Moto G General] attack11:
I own a moto g also, downloaded the sources of the kernel, and tried to compile for cm12, the modules are already in the kernel?

As far as i know you are also building a cm12 kernel, right?
[Moto G General] adinkwok:
Yes, if your kernel source is updated to the latest, the it has in-kernel modules.
[Moto G General] sheikhrr:
Getting the same error..... I m using linaro 4.7.4 2014 06 toolchain. (Redmi 1s but msm 8226)
[Moto G General] sheikhrr:
help needed

Now getting these errors after solving "smd_private.h: No such file or directory"

sound/soc/msm/msm8226.c:30:40: fatal error: qdsp6v2/msm-pcm-routing-v2.h : No such file or directory

compilation terminated.

drivers/misc/tspdrv/tspdrv.c:43:24 fatal error: ImmVibeSPI.c: No such file or directory

compilation terminated.

How to get rid of these two errors ? Help needed badly. Thanks
[Moto G General] adinkwok:
Here, take a look at this commit

https://github.com/savoca/furnace-falcon/commit/37326bcb510c1b1070fdd8748e8cc98251c051bc

Do these changes and it should build
[Moto G General] sheikhrr:
Well... I'll surly try, once I reach at my home :) then tell u the result. BTW thanks :)
[Moto G General] romuloxiii:
Thanks for the guide, works great. I was wondering if you could include how to add Sweep2Wake feature. Thanks!
[Moto G General] Shuttwind215:
Hey ,I've fixed the zip file a bit[I unzipped and zipped it back again and it works without any problem].

I've cleared out the repack-ramdisk.sh

,it repairs thermal-engine config placement to generic one compatybile with most of the ramdisks/roms ,I also deleted few lines that might be quite troublesome.

It also contains an /system/etc/init.d script which should turn on intellplug on boot with quite standard settings for moto g[the mp-decision off feature is still in the zip].

If kernel with my zip doesn't boot ,one of the reason might be the init.d script to fix it make an update script ,unpack the zip I provided[linux+ext4 is a must ,it may not work on windows] ,you'll only need an META-INF folder ,so delete system and kernel folders ,edit "/META-INF/com/google/android/updater-script" and replace all it's content with this:

show_progress(0.500000, 0);
ui_print("Hmm ,so it didn't worked out I suppose.");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");

show_progress(0.200000, 0);
ui_print(" > Mounting System ");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
show_progress(0.200000, 10);
ui_print(" > Deleting File ");
delete_recursive("/system/etc/init.d/Intelli_Plug");
unmount("/system");
show_progress(0.100000, 0);
ui_print("Yeah we did!");

and zip the META-INF folder with "zip -r /home/*place to save a zip* /folder/to/zip/is/META-INF"

,if it still doesn't boot ,then use the standard zip file ,provided by the yoshi.

Deleted content of repack-ramdisk.sh :

cp -vr ../extras/init.pink.post_boot.sh .
cp -vr ../extras/thermal-engine-pink.conf .

sed 's/start qcom-post-boot/start pink-post-boot/g' -i init.qcom.rc

sed 's/qcom-post-boot \/system\/bin\/sh \/system\/etc\/init.pink.post_boot.sh/pink-post-boot \/system\/bin\/sh \/init.pink.post_boot.sh/g' -i init.qcom.rc
sed 's/qcom-post-boot \/system\/bin\/sh \/system\/etc\/init.qcom.post_boot.sh/pink-post-boot \/system\/bin\/sh \/init.pink.post_boot.sh/g' -i init.qcom.rc

sed 's/\/etc\/thermal-engine-pink.conf/\/thermal-engine-pink.conf/g' -i init.target.rc
sed 's/\/etc\/thermal-engine-8226.conf/\/thermal-engine-pink.conf/g' -i init.target.rc

sed 's/write \/sys\/block\/mmcblk0\/queue\/scheduler noop/ /g' -i init.qcom.rc
sed 's/write \/sys\/block\/mmcblk0\/queue\/scheduler row/ /g' -i init.qcom.rc

sed 's/write \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_governor ondemand/write \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_governor intelliactive/g' -i init.qcom.rc
sed 's/write \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_governor powersave/write \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_governor intellidemand/g' -i init.qcom.rc

Beware ,that those changes aren't from OP and I don't neither the OP is responsible for any damage this zip may or may not provide. It works for me ,it mightn't for you.

Download:

[url=d-h.st/YwY]d-h.st/YwY[/url]

Overall big thanks to Yoshi for this awesome tutorial on building kernel ,and the support he gives out here.
[Moto G General] knizmi:
[MENTION=5284595]YoshiShaPow[/MENTION]

>Now, for those who are familiar with "y=yes/n=no/m=maybe", you'll see that I specifically told you to put the "m=maybe" one.

"m" is for module, not maybe ;)

If you say "y", the driver compiles as a part of the kernel. If you say "m", it gets built as a .ko module and you have to put it into /system/lib/modules.
[Moto G General] adinkwok:
:eek: you're right! That's totally my bad. I'll fix it.
[Moto G General] josfer:
Deleted
[Moto G General] beeeto:
Hey Yoshi,

I have learned to compile with your guide so I'll ask this question here :P

What fixes do I need to cherry pick to compile with 4.8 LINARO?

Been googling for hours and can't find a proper question. My build keeps crashing and its driving me nuts.

Regards!
[Moto G General] Flashhhh:
Deleted
[Moto G General] layman806:
Get sources from cm again and don't forget to make clean before compiling..
[Moto G General] fermasia:
That post is 6 months old, lol. I've kind of sorted that out already ;)

Thanks anyway :good:
[Moto G General] layman806:
Lolz, but WiFi still doesn't work with donkey kang kernel!
[Moto G General] fermasia:
You are kidding me, right? I stopped updating my kernel for the moto g months ago (hence, it's miles away from cm kernel upstream). That's why wifi doesn't work - it was running fine when it was active. What's all this old stuff questioning about?
[Moto G General] layman806:
Oh, I thought you stopped development because you can't fix the WiFi! ?Sorry!
[Moto G General] fermasia:
Lol, no, I stopped developing it cause i sold my moto g and bought another phone.
[Moto G General] layman806:
Oh, which one did you get?
[Moto G General] fermasia:
I got a OnePlus One. But I think we are going way OT.... anything further let's us the PM in case it's needed and try to keep comments focused on the thread's subject. :good:
[Moto G General] :
This will work on titan (moto g 2014)? And ur cherrypicks from second post are device specific?

Sent from MicroTitan :P
[Moto G General] MetalPhoenix45:
[MENTION=5284595]YoshiShaPow[/MENTION]

Everytime I try to cherry-pick intelliplug on your second post, I keep getting this.

git cherry-pick 01a850f

fatal: bad revision '01a850f'
[Moto G General] adinkwok:
This is a bit outdated as well as the source. Sorry about that, you can try cherry-picking from faux123's kernel source.
[Moto G General] MetalPhoenix45:
Oh thanks, really fast reply. I have one more question, how do you obtain the governor .c files?

Sent from my XT1032
[Moto G General] adinkwok:
You can create them! Although I prefer cherry-picking so that the commit ownership retains, it is very simple.

Just create a new document (ex. cpufreq_*insertgovehere*.c)

Find the governor online from another kernel (go on-to your favourite dev's git and look for governors in drivers/cpufreq/)

Open it and copy the entire file.

Paste and BOOM!
[Moto G General] MetalPhoenix45:
Thanks, I copied the file from another kernel and I put it in the correct folder but after I flash the kernel its nowhere to be found.

Sent from my XT1032

---------- Post added at 03:13 AM ---------- Previous post was at 02:25 AM ----------

You there?

Sent from my XT1032
[Moto G General] adinkwok:
Oh haha sorry, I'm trying to fix my own kernel! There is a specific way of installing kernel governors. Take a look at this articlehttp://xda-university.com/as-a-developer/adding-features-to-your-kernel. Good luck!
[Moto G General] Brawn_Sg:
[MENTION=5284595]YoshiShaPow[/MENTION] as always nice guide but plz can u also write in ur guide to enable kexec

thanx
[Moto G General] MetalPhoenix45:
Stock cm12 already has it.

Sent from my XT1032
[Moto G General] Aayushya:
Thank you for this guide! Could you also make one for stock moto lollipop sources? So that we can tweak it a bit!

BTW, I ried downloading the Toolchain, and at 92% I get this error:

Any help?
[Moto G General] MetalPhoenix45:
Its basically the same thing as cm12, just go to Motorola's sources and clone that.

Sent from my XT1032

---------- Post added at 03:15 AM ---------- Previous post was at 03:14 AM ----------

Did you try redownloading the tool chain?

Sent from my XT1032
[Moto G General] Aayushya:
I did, twice. Both the times I got this error, once at 36%, and at 92%.
[Moto G General] MetalPhoenix45:
Try "git clone https://github.com/SaberMod/android_prebuilts_gcc_linux-x86_arm_sabermod-arm-eabi-4.8"

Sent from my XT1032
[Moto G General] Flashhhh:
You can download the toolchain as a zip

Then unzip it in your home directory

U have a button below clone address to download it as a zip

And yes sabermod tool chains have been moved to some other site. U won't find updates on github anymore
[Moto G General] Aayushya:
Thanks but I'm redownloading it, and it has reached 93% :p
[Moto G General] layman806:
Is it working now?
[Moto G General] Aayushya:
Yes it is! I even got it compiled. But since I'm not on cm12 I couldn't test it :/
[Moto G General] layman806:
Hey, are you on stock ROM?
[Moto G General] Aayushya:
Yes, stock GPe 5.1
[Moto G General] MetalPhoenix45:
Gpe 5.1 came out??

Sent from my XT1032
[Moto G General] Aayushya:
Yes, check the general section ;)
[Moto G General] Aayushya:
First of, I did compile my kernel, and I got the screen flicker and Wi-Fi didn't work. I'm guessing I need to update the sources. How do I do that?

Secondly, I downloaded Stock Sources from here, but then when I tried to make the defconfig, I get this:

fs/Kconfig:232: can't open file "fs/f2fs/Kconfig"
make[1]: *** [falcon_defconfig] Error 1
make: *** [falcon_defconfig] Error 2

Can someone please help?
[Moto G General] Flashhhh:
For wifi issues u have to download new cm kernel sources

And about stock rom, the defconfig file is different

U need to do this

Make msm8226_defconfig

And not falcon_defconfig
[Moto G General] :
Hi, I wanted to build a CM12 kernel. I used CM kernel source and built a basic one that booted. Now i want to add features. I understand how to cherrypick using commits but instead of doing git fetch, I git cloned it. Now i have a folder of my kernel and other kernel. How do i cherrypick from that folder into my kernel?
[Moto G General] MetalPhoenix45:
Go inside your kernel folder, then "git remote add endel [git repo], now do "git fetch". Now do "git branch" and do "git checkout [branch you want to cherry-pick to]" now cherry pick the commit and it should work... I don't think you can do it using "git clone". Please press the " thanks" button if I helped.
[Moto G General] :
Thank you for the response! Will try that out and let u know!
[Moto G General] MetalPhoenix45:
No prob!
[Moto G General] sanchit0403:
This is the easiest and awesomest tutorial available on the internet thank u soooo much
[Moto G General] :
Here is what i ended up with :

yeshwanth@falconnoob:~$ cd kernel
yeshwanth@falconnoob:~/kernel$ git remote add endel /kernel_reference/green_machine/
yeshwanth@falconnoob:~/kernel$ git fetch
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
yeshwanth@falconnoob:~/kernel$ git fetch green_machine
fatal: 'green_machine' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
yeshwanth@falconnoob:~/kernel$
[Moto G General] MetalPhoenix45:
You are doing it wrong, go to github and there should be a clone URL there.

---------- Post added at 02:43 PM ---------- Previous post was at 02:41 PM ----------

It looks like you used a local link, that won't work, using this command won't take as long as git clone, much faster.
[Moto G General] :
yes but i have issues of speed on ubuntu. it gives only 50kbps for git in place of 4mbps. that is why i preferred to cherrpick from local link.
[Moto G General] MetalPhoenix45:
For me doing it from online took like two seconds. Cloning and adding remotes are different.
[Moto G General] MetalPhoenix45:
[MENTION=6484426]falconnoob[/MENTION] If I'm not clear enough just use this guide: https://coderwall.com/p/sgpksw/git-cherry-pick-from-another-repository/, and do step two and three.
[Moto G General] MetalPhoenix45:
[MENTION=5284595]YoshiShaPow[/MENTION] Please, I need help, can you go to my github: https://github.com/MetalPhoenix45/SmoothGKernel/, go to my commits and I added a lot of features, but when I compile, non of them are actually there when I flash to my device except for over clocking GPU, what am I doing wrong?
[Moto G General] sanchit0403:
i have downloaded the sources from github in zip please tell me how can i set them up
[Moto G General] adinkwok:
You must add the features to the defconfig! Take a look at the Kconfigs that were modified to see what I mean. You can compare it to the defconfig to see what you're missing.
[Moto G General] Flashhhh:
I checked ur source

U aren't cherry picking correctly

For conflicts u need to go to that file and delete everything between <<<head and ===

Edit: U need to enable features by tweaking defconfig. I suggest u to start from scratch.
[Moto G General] MetalPhoenix45:
[MENTION=5857055]Flashhhh[/MENTION] [MENTION=5284595]YoshiShaPow[/MENTION] thanks for helping, I feel so stupid.
[Moto G General] adinkwok:
Don't worry! Everyone has to start somewhere
[Moto G General] roshan2989:
[MENTION=5284595]YoshiShaPow[/MENTION],sorry to bother you mate,can i know what are the kernel patches for the screen flickering in 4.4 using the latest bootloader..im still using 4.4 as my daily driver with my own made kernel..as i see the fix the screen flickering 5.0..help would be appreciated:)
[Moto G General] adinkwok:
I don't know of any right now sorry.
[Moto G General] MetalPhoenix45:
[MENTION=5284595]YoshiShaPow[/MENTION] I'm trying to compile with SaberMod 5.0, but I keep getting this,

android@builduntuvm:~/Development/SmoothGKernel$ make -j4
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CC scripts/mod/empty.o
/home/android/Development/arm-eabi-5.0.git/bin/../libexec/gcc/arm-linux-gnueabi/5.0.x-sabermod/cc1: error while loading shared libraries: libisl.so.13: cannot open shared object file: No such file or directory
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:518: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....

I'm guessing its because im using a wrong toolchain? Can you link me to the SaberMod 5.0 toolchain you use?
[Moto G General] adinkwok:
hmmmmm, what toolchain did you use before?
[Moto G General] MetalPhoenix45:
4.9.3 Linaro GCC.

My work: SmoothGKernel for the Moto G, and remember always hit the thanks button if anyone helped.
[Moto G General] adinkwok:
This comes from the SaberMod manifest which can be found here.

You must install the SaberMod prebuilts which can be downloaded here (download this) and do these commands.

It should work now.
[Moto G General] :
Thanks! Now I'm do villec2 developing, and this help a lot.
[Moto G General] MetalPhoenix45:
Thanks so much! Will try tomorrow.

My work: SmoothGKernel for the Moto G, and remember always hit the thanks button if anyone helped.
[Moto G General] MetalPhoenix45:
[MENTION=5284595]YoshiShaPow[/MENTION]

Can you check my kernel source, something I added makes the kernel not boot up, the screen just turns black with some vertical grey lines. I tired removing aeroplug and zzmove gov. None of which works. :(

My work: SmoothGKernel for the Moto G, and remember always hit the thanks button if anyone helped.
[Moto G General] bhanu9999:
[MENTION=5284595]YoshiShaPow[/MENTION]

i am getting this error while compiling

CC drivers/cpufreq/cpufreq_interactive.o

drivers/cpufreq/cpufreq_interactive.c: In function ‘show_target_loads’:

drivers/cpufreq/cpufreq_interactive.c:813:6: warning: operation on ‘ret’ may be undefined [-Wsequence-point]

error, forbidden warning: cpufreq_interactive.c:813

make[2]: *** [drivers/cpufreq/cpufreq_interactive.o] Error 1

make[1]: *** [drivers/cpufreq] Error 2

make: *** [drivers] Error 2

please help
[Moto G General] MetalPhoenix45:
Do exactly this for interactive.
[Moto G General] bhanu9999:
Deleted
[Moto G General] sanchit0403:
i am getting this error while compilation please help

lib/Kconfig:105: syntax error

lib/Kconfig:104: unknown option "This"

lib/Kconfig:105: unknown option "you"

lib/Kconfig:115: syntax error

lib/Kconfig:114: unknown option "Only"

lib/Kconfig:123: syntax error

lib/Kconfig:122: unknown option "Only"

lib/Kconfig:131: syntax error

lib/Kconfig:130: unknown option "Only"

lib/xz/Kconfig:59: syntax error

lib/xz/Kconfig:58:warning: multi-line strings not supported

lib/xz/Kconfig:58: unknown option "Unless"

lib/xz/Kconfig:59: unknown option "and"

lib/Kconfig:346: syntax error

lib/Kconfig:345: unknown option "If"

make[1]: *** [falcon_defconfig] Error 1

make: *** [falcon_defconfig] Error 2
[Moto G General] sanchit0403:
that error is solved now i am getting drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
[Moto G General] KalolParty:
Small doubt

I visited the link to clone the cyanogenmod sources. By default it has the option set to cm11?

I want to make a kernel for cm12.1

So should I select the url for 12.1 or download from the link given in which contains for all i.e. cm11 and 12.1?

Link in op:

https://github.com/cyanogenmod/android_kernel_motorola_msm8226

Link when i select 12.1

https://github.com/cyanogenmod/android_kernel_motorola_msm8226/tree/cm-12.1

Only reason i'm asking this I have a limited internet connection.
[Moto G General] adizz4:
Yes, you'll want to clone the 12.1 kernel
[Moto G General] KalolParty:
There are 3 CM12.1 options there. Which one should select? -

CM 12.1

cm-12.1-lxb22.46-33

cm-12.1-lxb22.99-24
[Moto G General] adizz4:
Cm 12.1, because it was recently updated.
[Moto G General] KalolParty:
getting this in terminal:

fatal: repository 'https://github.com/cyanogenmod/android_kernel_motorola_msm8226/tree/cm-12.1/' not found

Please dont tell me I have to download the entire souce? Any idea how big is it?
[Moto G General] adizz4:
Yes, you'll have to clone the whole repo.
[Moto G General] KalolParty:
Git cloning is so slow. barely going above 10kb/s.

Any tips on how to increase it? Also can I suspend the virtual machine and resume the git cloning?
[Moto G General] KalolParty:
So my git clone stopped at 88% and refused to move for 5 hours. I pressed a key combo by mistake and then terminal waited for a command like it does when we open it up.

I don't want to start again because I'm barely getting 10kb/s

Cant I download it as a zip like the option given in github and just unzip it in my home directory? Or does git run some additional stuff that I cannot? Is there any indirect way?
[Moto G General] Robin Singh:
Hey I have downloaded The Cm12.1 Source from github as ZIP. I have Sabermod 4.9-final and 5.2 but both the toolchains are giving me error.I am using 32 bit ubuntu 14.04 in Vmware player.
[Moto G General] HarshOne:
My device repositories are not available on github, But I got device tree and vendor blobs by making changes in similar device repo. That reference device's kernel's lineageos_defconfig is situated in htc msm8974 kernel repo. So how can I get lineageos_defconfig for my device, and which other my device related kernel files(.dtsi or any other) I have to push in htc msm8974 repo and get those files to make things ready for build?

Please help......
[8525, TyTN, MDA Vario II, JasJam General] TheMaster666:
I got XP 64 on my laptop and I want to use my Cingular 8525 data connection..

The device comes up as a "Generic RNDIS"

I haven't found anything searching yet..

Thanks,

J
[8525, TyTN, MDA Vario II, JasJam General] MikeChannon:
I wonder if this will help??

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

Mike
[8525, TyTN, MDA Vario II, JasJam General] TheMaster666:
Some good info..

No help yet..

I need to figure out what is wrong with the INF file to make XP 64 not accept it.

I tried the Vista Hack.. but that didn't work..
[8525, TyTN, MDA Vario II, JasJam General] TheMaster666:
I Made One.

After no answers on this subject.

I read up on what has changed for Windows XP x64 drivers.

I modified the INF file to work.

I have attached the file if anyone needs it.

I am not sure if this will work for Windows 2003 Server x64 or not..

But I think it does as well.

Is there anywhere else I should post this or upload it to?

Thanks,

-J
[8525, TyTN, MDA Vario II, JasJam General] Marphyre:
Vista x64 version?

This is the closest I've had to anything working on Vista x64 - at first it gave the same "file not found" error as in the 32 bit version, so I tried the Vista hack that works for 32 bit (and a few variations thereof), but the best I can get it installs but says "This driver is not intended for this platform", and obviously does not work :/ Anyone have any more ideas on this one? This would get me one more step to wiping out that XP 32bit partition!
[8525, TyTN, MDA Vario II, JasJam General] TheMaster666:
I can probably get one to work for Vista X64 as well..

I just need a little time to read up on it.

I have been tempted to install it.. Any thoughts?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] someniceguy:
Some months ago I made the huge mistake of applying the OTA update to my locked AT&T G S III SGH-i747 which had a stock ROM at the time.

The result could not have been worse. The phone is barely usable now. It's very slow, drains battery faster, cannot tether for free anymore, and can't seem to be able unlock. I tried with SamMobile and lost my money because their software does not work on this phone, and they don't answer to my inquiries

So, does anyone know a method for unlocking it?

Is there a way to go back to stock? Is there a way to reset it before selling it?

My phone is encrypted and I don't know if that makes any difference, but I am afraid it becomes bricked

I have searched the threads first and can't find a definitive answer to my questions

After this terrible experience I am seriously consider never buying a Samsung Android phone ever again. In fact, I am even afraid to install the AT&T OTA KitKat update given the possibility of my phone becoming even less usable