yashsingh1/xdaforums huggingface dataset:
[Android Software Development] 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:
[Android Software Development] Hacker432:
I have a kernel but it doesn't boot, how can I debug it?

Inviato dal mio HUAWEI Y550-L03 utilizzando Tapatalk
[Android Software Development] metallikoh:
I'm sorry but all the code that is on the 1st post is obsolete. All the repositories needs to be replaced. Every one of them says

"Package ******** is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source"

Can nobody compile kernels now? No more working repos, no nothing?
[Android Software Development] rcrajarshi12:
Please help me to make a updated 3.10.x kernel for my device - Gionee Pioneer P4 AKA Walton Primo GH2 Clone QMobile Noir i6.

I am trying it for about a year but cant, it is a mt6582 device, please help me.... Thanx in advance:)
[Android Software Development] 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.
[Android Software Development] Shoaib05:
First of all, since you're using 4 threads to compile the kernel, the compilation doesn't stops as soon as the error occurs instead it stops at a later time. So, in order to know what error you're facing, use make j1 instead of make j4. This way the compilation will stop as soon as the error occurs.

Observe the error, fix it and re-compile using j1. Once you have a successful compilation, then use j4 afterwards. :)
[Android Software Development] tenifugo:
Hi my friend. Thank you for help me. Because of you i can fix the error. But another appears:

drivers/mfd/pm8921-core.c:218: error: resources_pwrkey causes a section type conflict

drivers/mfd/pm8921-core.c:218: error: resources_pwrkey causes a section type conflict

drivers/mfd/pm8921-core.c:172: error: adc_cell_resources causes a section type conflict

drivers/mfd/pm8921-core.c:172: error: adc_cell_resources causes a section type conflict

make[2]: *** [drivers/mfd/pm8921-core.o] Error 1

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

make: *** [drivers] Error 2

I already researched a lot, but i cannot find anything. If you have any idea of what is this, i will very greatefull if you help me.
[Android Software Development] Nick2014:
Hello, i want to try your tutorial but first i wanna know if with this tutorial can go from 3.4.5 to 3.4.67 kernel for porting KK, LP or M, for my mt6582 witch runs JB. I have the source code of my phone but i dont know this. Can anyone who knows to advice me please? Thanks.
[Android Software Development] CyanideBlue:
make filename_defconfig returns error

make filename_defconfig returns error Can't find default configuration "arch/x86/configs/filename_defconfig" .It is searching in x86/configs/filename_defconfig instead of arm/configs/filename_defconfig. How do i change the path
[Android Software Development] riyosakura:
Im going to build my own kernel.

Is this a good way to build a kernel or there is a better to build a kernel? Since this thread is already 3 years old.

Thanks
[Android Software Development] ranchu-panchu:
Hi,

Isn't it required to build the device tree (dts source , dtb after compilation) ? If not - then how it is being builded and where is it in ROM ?

Thanks,

Ranchu
[Android Software Development] RJinxed:
I cant install libraries. Please help.

ubuntu@ubuntu:~$ sudo apt-get install -y build-essential kernel-package libncurses5-dev bzip2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package kernel-package is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'kernel-package' has no installation candidate
[Android Software Development] kirito9:
Use this script- https://github.com/akhilnarang/scripts. Easiest thing to set up your environment for building.
[Android Software Development] zyxrhythm:
Im also trying to compile the same kernel, where did you get arm-eabi-4.8?

I downloaded the NDK from:

developer.android.com/ndk/downloads/

...and dowloaded: Latest Stable Version (r13b)

And I got an arm-linux-androideabi-4.9
[Android Software Development] kirito9:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8. You're welcome.
[Android Software Development] zyxrhythm:
Thanks for the reply.

I also came accross this after some googling...

Now Im trying to learn how to grab the files for the 4.8

Is there a way you can go maybe an extra mile and point me how to grab em.

:D

I just updated this post... coz I already got em...

Googling does give you alot. LOL

>>new knowledge: git and cloning LOL2
[Android Software Development] kirito9:
Yup, how I pasted it was what you had to enter in the Terminal.
[Android Software Development] zyxrhythm:
I wonder what am I doing wrong.

I already export the right path for CROSS_COMPILE

I always get this:

and ends up with error 127 and error 2.

Wonder if the errors are related to this warning:

when I executed:
[Android Software Development] kirito9:
It's not related to the last two errors, your toolchain path is the problem. Go to the directory where you cloned the toolchain, go to the bin folder and open a terminal in that directory. Enter PWD in the terminal and copy the path. Enter that now as your path eg.

export CROSS_COMPILE=paste-toolchain-path-here.
[Android Software Development] zyxrhythm:
Still the same

I have tried what you suggested and tried to executed as usual:

And as usual the warning:

You mentioned that it is safe to ignore that.

So what I did is proceeded with:

And ended up with the same:

doing an echo $CROSS_COMPILE

seems to give the correct path.
[Android Software Development] kirito9:
You still seem to get the gcc error which is incorrect toolchain path but if you said you did it correctly then something else must be wrong. Where's the source you're trying to compile? Is it on github? What are your build commands?
[Android Software Development] zyxrhythm:
Well the source I have is for the Samsung Galaxy J200GU. It is not on github atm. I downloaded the source directly from samsung:

opensource. samsung .com

Those 3 commands are the only commands I excuted.

idk if this is related but I installed gcc via apt before.

$sudo apt install gcc
[Android Software Development] kirito9:
I'll download and try to compile see if I get the same errors.
[Android Software Development] zyxrhythm:
Oh man thanks.

I sometimes wonder if it just my Lubuntu, having this issues.

If you manage to recompile it successfully, mind sharing how you did it. If that is not too much of drag on your part

[MENTION=5515628]kirito9[/MENTION]

Im planning to revamp my 8 year old laptop.

Looking for another distro. Any suggestions mate?

btw what Linux are you using?
[Android Software Development] kirito9:
It could be that too but I doubt. I'm using Ubuntu 16.x and 14.x. Archlinux is good for android development as everything is already installed. Ubuntu is good too as there are scripts that help setting up the environment.
[Android Software Development] zyxrhythm:
I think I will be using the Xenial Xerus Lubuntu with LTS. This YY sux. Or perhaps get Ubuntu.

hmm Arch ei, but by default that is all terminal. I need my firefox.

I'll try Arch anyway.
[Android Software Development] zyxrhythm:
After a clean full install of another linux. all proper procedures checked - I guess

I just did a full revamp of my computer today...

Instead of an Ubuntu variant, I went Debian.

Still the same issues.

I have attached what I have typed in the terminal and its output.

*sigh*

btw , Im using this article as reference to what I am doing:

http://graemehill.ca/compiling-permissive-android-kernel/

Hmm... I'll try maybe another toolchain, I guess that is the root of all this.
[Android Software Development] Droidcore:
export ARCH=arm
export CROSS_COMPILE=home/user/android/TOOLCHAIN_FOLDER_NAME/bin/TOOLCHAIN_PREFIX-

make blabla_defconfig ?
[Android Software Development] zyxrhythm:
If you look at the txt file I have attached, I already did a a make X_defconfig

but I have not tried to execute $export ARCH=arm yet.

Ill try that later today when I get home, Im currently at work.

-------------------------------------------

just tried $export ARCH=arm before the 2 makes

and got a new set of terminal output

still getting error 2...

see terminal_logs2.txt
[Android Software Development] Droidcore:
run on your kernel folder

export ARCH=arm
export CROSS_COMPILE=home/user/android/TOOLCHAIN_FOLDER_NAME/bin/TOOLCHAIN_PREFIX-

like this example

usr@HydrogenFX:~/android/xf$ export ARCH=arm64
user@HydrogenFX:~/android/xf$ export CROSS_COMPILE=/home/usr/toolchains/arch64-linux-android-6.x/bin/aarch64-linux-android-

make mrproper && make clean

make your_defconfig && make j#

gcc still not found on your log
[Android Software Development] zyxrhythm:
If you examine the logs I already exported ARCH and CROSS_COMPILE,

and I did run the codes on the kernel folder.
[Android Software Development] ravish_919:
A general question. Let's assume that I already have a kernel which I want to use. But it doesn't have the features(dt2w, s2w & s2s) I need. Is there any way I can add these into the existing kernel which I use? Do I need to build/compile a new kernel or is it possible to make changes and modifications to it to add the features?
[Android Software Development] Dvalin21:
Hello everyone, I'm new to the kernel game. I've got everything situated until I get this:

make: rm: Command not found

Makefile:804: recipe for target 'include/config/kernel.release' failed

make: *** [include/config/kernel.release] Error 127

I'm completely stuck on this. Any help would be appreciated.
[Android Software Development] zyxrhythm:
As far as I know. You need to recompile the kernel and add the feature you need making it more efficient. Or you can add another software layer that will serve as a middle man between your current kernel and that feature to be implemented.

btw just for documentation, I finished my quest to "have a permissive kernel" by flashing a kernel which was already permissive. And I ditched recompiling my own because until now the reason for the error logs is still unknown. Googling it for like a week and nothing. Tried all there is in google and all what people suggesting. Still that error comes up.
[Android Software Development] Sshhaarrkk:
What changes should be done for lenovo k5 vibe kernel version 3.10.49.....aarch64

I'm trying to build joydev.ko for my device
[Android Software Development] Zizo17:
Great job , actually I have an issue

There is an custom ROMs for device p8lite from huawei , I have huawei honor 4x , they said that it will never works with me because of different WiFi card , any help ?
[Android Software Development] tytydraco:
I was able to repack the boot image after I got the kernel compiled, but when I boot the display does not work. Here was my process:

make msm8937-perf_defconfig (for the record idk what difference "-perf" makes. There was a perf and a non-perf one and my kernel version in settings says perf)

make menuconfig

make -j5 (I have 4 cores per processor)

I was using the UBERTC 4.9 aarch64 for CROSS_COMPILE

There were a few errors with bad paths like

Code:

#include <somefilename>: no such file

so id have to correct the code to be this to where the file exists

Code:

#include "somefilename"

Happened quite a few times (around 7 or 8)

Image.gz-dts was made and I used LE 2 Image Tool to pack the boot image.

Am I compiling it wrong somehow? Or is it just a bad kernel?

For the record, heres my phone's specs:

Blu Life One X2

Screen: 5.2", 1080 x 1920 pixels, ~424 ppi, Gorilla Glass 3

Memory: 2 GB RAM, 16 GB storage, or 4GB RAM, 64 GB storage, microSD slot (up to 64GB)

Camera: 16 MP, f/2.4, phase detection autofocus, 8 MP front, LED flash front & rear, 1080p@30fps video

Battery:Li-Po 3000 mAh

Chipset: Qualcomm MSM8937 Snapdragon 430

CPU: Octa-core 1.4 GHz Cortex-A53

GPU: Adreno 505

Model: L0091UU

Any help is very appreciated. Desperately trying to compile this thing.

Kernel source in case anyone wants to see if they can compile it:

https://drive.google.com/file/d/0B6_...NhUkpYUjQ/view
[Android Software Development] Albe96:
How to fix this?

Link-->>https://hastebin.com/avuvetetih.rb
[Android Software Development] shonaali:
Help me

Hi! A nice guide!

Hey there i have a question.

I do have a device with chipset Mediatek MT6580 and a kernel 3.18.19 running Android Marshmallow 6.0.1.

Iwanna boot Android Nougat on this same device, where Android Nougat kernel version is 3.18.35!

So what file do i need to replace or edit to upgrade from Marshmallow to Nougat, to make my device boot Nougat.

Please help me out!
[Android Software Development] D1stRU3T0R:
If I'm not wrong, you will have that kernel after you update to nougat automatically...
[Android Software Development] HoldMySoul69:
Do You Think can i make kernel on Linux emulator? Like Linux Debian? (It is for Android)
[Android Software Development] shr!pad:
it stuck at this point,,pls help how to solve!??

shripad@shripad ~/Desktop/kernel/moto-c $ make clean && make mrproper

./scripts/gcc-goto.sh: line 4: $'\r': command not found

./scripts/gcc-goto.sh: line 21: warning: here-document at line 5 delimited by end-of-file (wanted `END')

./scripts/Makefile.clean:17: drivers/misc/mediatek/base/power/mt2701_dcm/Makefile: No such file or directory

make[6]: *** No rule to make target `drivers/misc/mediatek/base/power/mt2701_dcm/Makefile'. Stop.

make[5]: *** [drivers/misc/mediatek/base/power/mt2701_dcm] Error 2

make[4]: *** [drivers/misc/mediatek/base/power] Error 2

make[3]: *** [drivers/misc/mediatek/base] Error 2

make[2]: *** [drivers/misc/mediatek] Error 2

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

make: *** [_clean_drivers] Error 2
[Android Software Development] 0theus:
*facepalm* the -j option specifies how many jobs to start on the *compiler* and should be about the number of CPUs you have on your compiling workstation, not your "device". (If you are in a VM, it should be the number of virtual CPUs you have allocated to the VM. If you've got other stuff running, use n-1).

---------- Post added at 05:53 AM ---------- Previous post was at 05:47 AM ----------

Those drivers in "misc" are probably device-specific, meaning, from the manufacturer. According to the GPL, they are supposed to provide working code that can be used to build into an image. This is not "working code" (the "Makefile" may not be code to them, but it is for purposes of the GPL).

If you're lucky, you can resolve by converting the Makefile from windows-text file to unix-text file. Look for ways to convert "CRLF" to LF on your host. Usually this is simply

tr -d '\015' Makefile >Makefile.new && mv Makefile.new Makefile
[code]
See https://stackoverflow.com/a/802451 for explanation.
[Android Software Development] thirtythr33:
will this guide work for kernels on 64bit architecture?
[Android Software Development] xswapsx:
I am not able to find my device_code.defconfig file in config folder of the source

The device specific defconfig file is not present in the config folder (kernel/arch/arm64/config) of the kernel source, please guide me what to do??
[Android Software Development] Lieta:
Which NDK revision should I download, the latest or specific for my device? If the latter, then how do I find out which?
[Samsung Galaxy Mini] MAD_psycho_Zz:
Hi guys im now on andro-id v3.2 and i just love his stability and performance but how to remove overscrolling in the menus??? I hate it >.< please help me
[Samsung Galaxy Mini] dheeraj (dhlalit11):
use uot kitchen

uot.dakra.lt
[Motorola Photon 4G] dtrud0h:
I don't know for sure if this is relevant or not, but I know I have an unlocked Electrify that I bought with 2.3.5 on it and unlocked using the files mentioned Here.

If anyone has a 2.3.5 locked photon or electrify that would be willing to test this I would appreciate it. I posted this post in General, but I would hate for some newb bozo to try this and screw up their phone.

My Electrify worked perfectly and it is now retired, If there is an interested dev that could use it I would be happy to let it go as a donation if it would really help. Otherwise I would like to hold onto it.

I hope someone takes the time to try this out.

Thanks

This was done on a USCC Electrify, I don't know what any of these files really contain, ie; radio or what so if you use your phone you may want to be careful
[Motorola Photon 4G] WiredAnim:
I have a Photon running 2.3.5 that was locked out when I got it. I'm not sure if it was purchased with that version or OTA. I attempted the above and got the normal error when trying unlock that we are all use to. I then tried to SBF to electrify 2.3.5 (got it booted up and running) then attempted again. Same result just errors and no unlock. If any one else tries and ends with different results for the photon please share what you did! Also thanks for sharing dtrud0h!
[Galaxy Note 10.1 Q&A, Help & Troubleshooting] WaveyDL:
w w w.amazon.co.uk ww.amazon.co.uk/SanDisk-Mobile-MicroSDXC-Memory-Adapter/dp/B005LFT40G

This seems very cheap. I'm using it for films/music. Is it the right size/type?

Also is this the right speed or class or whatever the term is?

TIA
[RAZR i Q&A, Help & Troubleshooting] SharpnShiny:
Hey can anyone recommend good software for managing media? I particularly want to transfer photos easily. I have a program for music, but I'm open to recommendations. I know that Samsung has Kies and Sony has Media Go, both are useful. Does Motorola have any official media software?
[RAZR i Q&A, Help & Troubleshooting] piskr:
Try AirDroid. The transfer is over wifi and you can transfer almost everything. Besides it is a file manager, ftp server, system manager...
[RAZR i Q&A, Help & Troubleshooting] SharpnShiny:
Thanks for the recommendation. I'm really looking for PC/laptop software, I find it really easy to manage media from there. I see Songbird will only connect in Mass Storage Mode and Songbird is OK for music but not pictures. I'll find something eventually! :D
[RAZR i Q&A, Help & Troubleshooting] kenrw7:
Is Motorola Motocast acceptable http://www.mymotocast.com/download
[RAZR i Q&A, Help & Troubleshooting] SharpnShiny:
Hi, that software looks PERFECT. I tried it with the RAZR i and it won't set up at all. I have everything installed but cannot manage media let alone sync anything. Is this software compatible with the RAZR i?
[RAZR i Q&A, Help & Troubleshooting] Sizzers:
Well according to the download on Play it says not.

You mentioned Medio Go so presumably you also use it? You can copy your photos etc in to Media Go and simply select your folder/s from there and select “Add to” Your phone will then show up as “Unnamed device” with the sub-options of moving them to internal or external memory, or you can simply transfer them directly from your pictures folder. No offence intended but I don’t see the problem.

This is my first Motorola (and also Android) phone, but they sure don’t seem too concerned about providing PC media management.
[RAZR i Q&A, Help & Troubleshooting] patoberli:
How about google Picasa?
[RAZR i Q&A, Help & Troubleshooting] SharpnShiny:
No worries, I get it; if you have use for something, you understand, if you don't need something, you won't understand. A few of my other devices (Apple and Sony) allow for quick and automatic movement of media from A to B or vice versa just by connecting the devices, I'm looking for the same now. I've been using the 10 camera shot per second feature and the photos are really stacking up. Drag and drop is a bit too 1990s for me. I've uninstalled Media Go now, I thought it didn't even recognise non-Sony devices? I'll give it a go then, if you say it appears.

True about Motorola and PC management, everywhere related to my phone it directs me to Motocast. I emailed them and they said the RAZR i is not compatible. Nevermind, I'll find something.
[RAZR i Q&A, Help & Troubleshooting] Sizzers:
All I’m saying is that you can transfer files/folders via Media Go using “Add to” on right-clicking in Windows.

Whether this is the functionality you’re actually looking for I’m not sure but it works for me. I’ve used it to transfer a couple of albums and a number of tracks over (although my Walkman is my main portable music source), and after reading your thread I thought I’d see how it works with photos and no problems.

Just tried it out with iTunes but there doesn’t seem to be an obvious way of doing the same: there may be,but I can’t be bothered to find out!
[RAZR i Q&A, Help & Troubleshooting] SharpnShiny:
Thanks buddy, I appreciate your help.

For music, if you do like iTunes, I have a recommendation. There is an app called iSyncr which allows you to copy any lists in your iTunes directly to your phone. If you use their Rocket Player to use the music, it will update your playcounts etc. Music at least, I've got covered! :good:
[Nexus 4 Q&A, Help & Troubleshooting] Loves2spoon:
How do I do a fresh install of 4.2.2 on a Mac or on the device itself?

I have the factory image on my Mac from google. What's next?
[Nexus 4 Q&A, Help & Troubleshooting] rogerski1:
I believe you install the android SDK and connect your phone to it using USB. Run a command. I'm assuming you are stock.
[Nexus 4 Q&A, Help & Troubleshooting] Vangelis13:
http://xdaforums.com/showthread.php?t=2010312
[Nexus 4 Q&A, Help & Troubleshooting] mario24601:
Any 'easy' way to install a clean 4.2.2 via Mac? Using SDK or anything? I have done it on PC but my PC is down and cant seem to find the right way of doing it on Mac. Any help would be great, have searched but nothing is working for me so far.