yashsingh1/xdaforums huggingface dataset:
[Android] ashwini215:
So, I corrected my previous mistake and finally was able to compile :)

Towards the end of compilation, I got this message :

/scripts/fips_crypto_utils.c: In function ‘main’:

./scripts/fips_crypto_utils.c:28:7: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]

if (!strcmp ("-u", argv[1]))

^~~~~~

./scripts/fips_crypto_utils.c:52:10: warning: implicit declaration of function ‘update_crypto_hmac’ [-Wimplicit-function-declaration]

return update_crypto_hmac (vmlinux_file, hmac_file, offset);

^~~~~~~~~~~~~~~~~~

./scripts/fips_crypto_utils.c:82:10: warning: implicit declaration of function ‘collect_crypto_bytes’ [-Wimplicit-function-declaration]

return collect_crypto_bytes (in_file, section_name, offset, size, out_file);

^~~~~~~~~~~~~~~~~~~~

HMAC-SHA256(builtime_bytes.bin)= 80387d4cca5322a3de63d73fe615c492385801c8ae36494795eda733492d5a10

OBJCOPY arch/arm64/boot/Image

GZIP arch/arm64/boot/Image.gz

Is this anything to be concerned about?

Can I flash the kernel?

Have added the complete log.
[Android] hightech316:
I was able to complete with no errors! ( after running into a dozen )

Although I cannot find zimage anywhere.

I do notice that a bunch of folders / file's modified date has updated throughout the kernels source code folder .

I am building a Samsung exynos 7850 kernel .

Thanks for this great write up!
[Android] Albe96:
It should be inside arch/(arm/arm64)/boot folder
[Android] hightech316:
Thanks for a prompt reply .

Within that DIR " arch/arm64/boot " no zimage.

to double check it wasn't in some odd folder, from the source codes root dir

shows nothing :(

within arch/arm64/boot There is a "install.sh" also a Makefile and a folder dts . The dts folder is filled with exynos7580 files .

dts install.sh Makefile

Is there another step to make the zimage that requires the install.sh to be ran with certain arguments ? When I attempted to run the install.sh I received ,

./install.sh: 25: exec: /sbin/: Permission denied

Made sure to make it executable by " chmod +X install.sh " .

When running " make " within "arch/arm/boot" I get this error ,

Makefile:17: /arch/arm/boot/dts/Makefile: No such file or directory
make: *** No rule to make target '/arch/arm/boot/dts/Makefile'. Stop.

I feel so close !

Thanks for any insight :)

I've also tried going to arch/arm64/ and running " make " from there , and receive

Cannot wait to get this working and contribute to the j7 device :) I feel close!~
[Android] Albe96:
Ah J7.Had to update my RR build for it.Btw I suppose that's a toolchain or build.sh/install.sh problem.Pretty weird.so look closer into it
[Android] hightech316:
Thank you , Switched up toolchains to a newer uberTC that I didn't see before ... now I'm receiving

/dev-a7000/j7dev/techOS/Kernel/uberTC64/bin/../lib/gcc/aarch64-linux-android/4.9.4/../../../../aarch64-linux-android/bin/ld: /dev-a7000/j7dev/techOS/Kernel/uberTC64/bin/../libexec/gcc/aarch64-linux-android/4.9.4/liblto_plugin.so: error loading plugin: /dev-a7000/j7dev/techOS/Kernel/uberTC64/bin/../libexec/gcc/aarch64-linux-android/4.9.4/liblto_plugin.so: file too short
collect2: error: ld returned 1 exit status
/dev-a7000/j7dev/techOS/Kernel/arch/arm64/kernel/vdso/Makefile:27: recipe for target 'arch/arm64/kernel/vdso/vdso.so.dbg' failed
make[2]: *** [arch/arm64/kernel/vdso/vdso.so.dbg] Error 1
scripts/Makefile.build:455: recipe for target 'arch/arm64/kernel/vdso' failed
make[1]: *** [arch/arm64/kernel/vdso] Error 2
Makefile:841: recipe for target 'arch/arm64/kernel' failed
make: *** [arch/arm64/kernel] Error 2
make: *** Waiting for unfinished jobs....

If it's not one thing , it's always another lol...

I've been using linux for quite some time...

Looking through forums now about the VDSO.

Are you currently on the j7 forums ? Haven't seen you around. I'm mostly on the j700t1 . The T-mobile variant has one kernel with no options.. So trying to help that out ;)

EDIT:

wait I used UBTC v4.9 on both builds >.< . Going to try linaro and try my luck
[Android] Albe96:
Nah.I last built RR for j700f/h/m if I remeber clearly.Anyway the source code is pretty messed up.Is this stock kernel source? If it is try rebasing with latest kernel source or just try initialing new one.

And anyway a link to the kernel source would be sweet ?
[Android] hightech316:
Yes this is the stock kernel source "SM-J700T_NA_NN_Opensource.zip" grabbed from Samsung .

There are only 2 kernels posted on the j700t1 side. Only thing done to these posted kernels was making it permissive . No github or any other link to their source either.

LINK:

I'm building off of the one posted here

http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=sm-j700t

EDIT:

after looking over the readme it says

- to Build

$ make j7eltetmo_00_defconfig

$ make -j64

Using make -j64 got me further. Still have the

and

but it seems i am making a little progress!
[Android] J4jks:
No rule to make target

I am very new to this

I have followed your guide and tried and I get error

This is the error with differnt kernel sources

I have downloaded the source zip and extracted and cloned gcc 4.9

After export with make command I get this error
[Android] jr jimmy:
Hello..i need help brother..

I succesfully build kernel and just edit for make it permissive..succesfully installed in my phone..

But selinux status still enforcing..anyone can help me..?

Btw.thx for the guide..
[Android] jr jimmy:
Sory..its fixed now..i forgot something.. :D :o
[Android] MasterZeroFX:
Hey, can you please point me to a guide or help me on how to enable KVM on ARM kernels? Id like to have such feature on my S8 950FD Exynos.
[Android] :
[MENTION=7334959]Albe96[/MENTION] I am trying to follow your guide and was wondering if i install a different toolchain, to compile for a different device, if it will screw up my build environment for my main device?
[Android] Albe96:
Nope. You can use different toolchain!
[Android] vinaykharayat:
As you told for force fast charging arch/arm/mach-msm/kconfig, what about arm64 devices? is it same?

One more thing can we force 2000mA? instead of 1000mA? Will it harm my device?
[Android] Albe96:
Yep.That's enough
[Android] Albe96:
for arm64 devices,it should be arch/arm64/mach-msm/Kconfig
[Android] ahadrox:
Thank you! :angel:
[Android] greenys':
All I want to do is set ptrace to 1 to be able to user memory editing softwares and app on Android after I flashed the kernel.

For example if I want to edit this single code what should I do? The kernel is done and got all the source code from KudKernel. Since I only want to use it for personal stuff can't I just edit this single entry and rebuild the modified source code? If so, how?
[Android] Er. Aditya:
while adding support for fast charge i think there's a repo that went missing by r3pwn
[Android] Albe96:
I don't really got you! You want to edit a code and rebuild the kernel from the source code.Is that what you mean? What's the problem then? Edit,Save and Build!

Sorry? The guide mentioned is for qcom device.I assume you're on Exynos :p ..
[Android] Albe96:
I'm thinking to add some links for features that you can add by cherry-picking.Will be notified when it's done! ?
[Android] Albe96:
Features You Can Add By Cherry-Picking!

Hi there,as I said here's some features which you can add by cherry-picking.

Note it doesn't mean that it'll be directly added.It depends on how similar both kernels are,so you've to fix conflicts.

The guide I wrote with an examle in in post #2.​

1.Wireguard Support(7.0+): https://github.com/TheGalaxyProject/tgpkernel-s8-o/commit/5c4c4ef3f1bee9c9949cf0fa3497c213a8bdfa9e

How To Enable It?

1.Open Defconfig And Add The Following Configs-->

2.Disable This Config-->

3.Done!

2.Fsync On/Off Support:https://github.com/TheGalaxyProject/tgpkernel-s8-o/commit/b3ac3a7191535a25a5b021a4db9bcb5d9ab7e60a

3.Disable CRC Check For Performace Improvement By 30%: https://github.com/TheGalaxyProject/tgpkernel-s8-o/commit/5b3711b7a64c28e6e7431b5e874f30f4eaa2a6ed

4.DtbToolExynos[Only For Samsung Exynos Chipset],Custom DTBTOOL: https://github.com/TheGalaxyProject/tgpkernel-s8-o/commit/f7552b98c3aff70612c8139c64594b4ed5519ae6

5.CRC Check Controllable: https://github.com/farovitus/NOTORIOUS-Kernel/commit/e5467bbc861d9159d1b0b31bc086ae280edeee06

6.Defconfig Controllable Selinux Permissive Patch: https://github.com/TeamNexus/androi...mmit/2edf7895c259e65bb8bad007503a0c6c9c24e517

7.Android Oreo Binder Patches For Linux 3.10.y(If you ever wish to upgrade from Nougat To Oreo):

Note:

These patches are tested on Samsung Kernels with Linux 3.10.y.It should work for all other manufacturers kernels.Or I'll recommend you to pick commits for Official Android Kernel Source Code.

Here Are They-->

1. First--> https://github.com/TeamNexus/androi...mmit/665df5e259aa9ed82b30a5f3500e9b9fdb66950e

2. Second --> https://github.com/TeamNexus/androi...mmit/b5f920560aa4b3ab5c0908947875e95bd68cec6b

3.Third --> https://github.com/TeamNexus/androi...mmit/5cb876fa49978c407a073d52f3159b9f2bf0908c

There's more to come....
[Android] yechielco:
What about USB gadget and adb drivers?

Hi,

Great post!!

Thank you very much.

I could think of several more features that are required from the kernel by Android. For instance USB gadget. And I'm not wrong there is a special memory allocator driver by google too.

If I pull my board vendor's kernel code that works for a pure Linux system and would like to adapt it to Android, that will require some more cherry picks.

Could you please advise me of how to start in such case?

The base kernel version I have is very new (4.4) and is LTS.
[Android] Albe96:
So you're tryna say you want to rebase your vendor's kernel to pure linux source code.right?

In that case,you just gotta find a linux source code or pull from open source.And merge your vendor's source into that.That's all you gotta do.
[Android] chriz:
Anyone can help me

Iam not sure that,this will belong to here or somewhere else

I wasn't able to boot 8.1 with my kernel source but 8.0 works fine

And I flashed a similar device kernel it booted my 8.1 ROM

Anyone know why so happening
[Android] Albe96:
Because there are some faults in your kernel source.Take log and fix it
[Android] chriz:
No way to get logs

Didn't even connecting in adb
[Android] Albe96:
Install Proper ADB Drivers. . . .
[Android] chriz:
Adb drivers r working fine and installed properly bcuz I was able to fix things and took logs in 8.0 builds
[Android] Albe96:
Guess what?.Make the kernel adb insecure and enable debugging stuffs.
[Android] :
kernel won't boot

Hi @ll,

I hope you could / would help me. I'm trying to recompile kernel for lineage 15.1 on my Galaxy S7 Edge. Therefore it tried different guides (also this one) and kernel sources but all results are the same - my phone won't boot with my compiled kernel.

Is there any thing I can do, how to figure out, whats the problem?

Kind regards

v0ti
[Android] Albe96:
take last_kmsg and tombstones to figure out what's wrong
[Android] :
Hi Albe96,

I got the mentioned log, and from my point of view the reason for this seems to be a kernel panic. Unfortunately I can't find the reason for the kernel panic. Maybe you can have a look at the log?

https://vomitb.in/No2krE49Ik
[Android] :
last_kmsg

--deleted--
[Android] bam80:
Hello, can someone suggest if Oreo kernel needs some update to be used for Pie?
[Android] ashu7073:
Hii

My compiled kernel won't boot. It boots straight to fastboot. I didn't got any errors.
[Android] dandyfarid:
thank you dev compiled kernel sucessfully working fine in my phone :)
[Android] SyberHexen:
==edit==

Unrelated posted in wrong fourm
[Android] tids2k:
[MENTION=429896]alb[/MENTION]e96 Thanks for the tutorial.

I am not sure if you can help, I am trying to port android ona tizen device. from Samsung.

Now I have original Samsung exynos source code and a copy of Google Exynos kernel source code.

Using diff, I am comparing both the kernel structures and can see a lot of files that need go be added to the google kernel source ( i am taking this as base )

My question or should I say things I am confused about :

1. What are the critical files that need to be edited prior to have the kernel boot ?

2. Device tree, Vendor files, The chipset is Exynos 7270, which will be the most compatible device i can use to extract these from. ( I am considering Samsung J2 )

I know the 2nd point does not pertain to a kernel, but your 2cents will be really appreciated.
[Android] hightech316:
Yea, works :)

Not with gitpod. I have to look through my browser history and give you a link to the cloud IDE I use.
[Android] halfbytecode:
I actually managed to compile it on Gitpod.io. I had to make a Dockerfile and another file that I can't recall now, which included the names of all dependencies needed for building the kernel. I committed these files directly into my github repository. That was enough to make it work.

It would be good to know which online IDE you use too.
[Android] KIRGO:
Hello all,

Small question related to Kernel hacking. I built a kernel based on the source provided by OEM (for One Plus 2, no modifications). I took the generated Image.gz and repack it into a lineage OS boot.img using Android Kitchen. This is the same lineage OS version my phone is currently running.

I first tried it with fastboot (I didn't want to flash it as I'm not that crazy ^^) and encounter this error:

# fastboot boot mynewimage.img
downloading 'boot.img'...
OKAY (0.225s)
booting...
FAILED (remote: dtb not found)
finished. total time: 0.744s

I suspect I miss something with the .dtb, which were generated to along with the kernel, but I don't know what to do with them. Any clue/direction to investigate this error? I began to read the architecture explanation from Google (source.android.com/devices/architecture/dto) but my brain is completely wrecked for the moment :D

EDIT: I compiled the last branch from OnePlus, and I got an "Image.gz-dtb"

When I boot it i got:

λ fastboot boot image-new.img
downloading 'boot.img'...
OKAY [ 0.303s]
booting...
OKAY [ 0.509s]
finished. total time: 0.813s

But it didn't boot xD anyway! That's cool
[Android] tripLr:
I love your signiture and this thread

I love this thread , thanks so much
[Android] just_nicks:
sir i am facing a problem i am installing new firmware to my android projector device with same kind of HW and kernel ver when android started its not detecting battery levels correctly or even not detecting charger is connected or not only showing 1 % battery and then suddenly shutdown android. how do i stop shutdown android due to low power. even my battery is full charge and i have power connected directly i guess my kernel file have mismatch charger ic driver my charger ic is bq25895. do anyone help me how to stop android 4.4.2 shutdown. and how to fix battery level and charger file fix.
[Android] TheMarc0:
I get this error when I use the lavender kernel

manufacturing. Where is the mistake?

mkdir out
$ export ARCH=arm64
$ export SUBARCH=arm64
$ export DTC_EXT=dtc
$ export CROSS_COMPILE=${PWD}/toolchain/bin/aarch64-linux-android-
make O=out clean
make O=out mrproper
make O=out lavender-perf_defconfig
make O=out -j$(nproc --all)

Kernel Bulid Error:
LD drivers/staging/qcacld-3.0/wlan.o
LD drivers/staging/qcacld-3.0/built-in.o
LD drivers/staging/built-in.o
LD drivers/built-in.o
make[1]: Verzeichnis „/root/kernel/out“ wird verlassen
make: *** [Makefile:152: sub-make] error 2

Makefile: Makefile:152
sub-make:
$(Q)$(MAKE) -C $(KBUILD_OUTPUT) KBUILD_SRC=$(CURDIR) \
-f $(CURDIR)/Makefile $(filter-out _all sub-make,$(MAKECMDGOALS))
[Android] josuesim1:
Hi I'm getting problems with this part

4. Locate Your Proper Defconfig File.Where You Will Found That?

Go To "arch/<arch>/configs" Folder,And There You'll Find A Defconfig File Along With Your Device Codename Like For S7 Edge, Its --> "exynos8890_hero2lte-defconfig"

What I'm supposed to do in terminal with this? I already have the name of my defconfig
[Android] HafidzRadhival:
nice tutorial brader. thanks.
[Android] mathew..denniss:
Hi I was building a kernel for Redmi note 3 and while compiling it's says this

"nothing to be done for dtb"

And when I try to flash the kernel after repacking with Android kitchen fastboot says.

"Remote dtb not found"

How do I fix this
[Android] lolvatveo:
why my compiled kernel can't boot. I'm using gcc 11.
[Android] OTROfficial:
Someone can make for me one Net hunter kernel for s20 ultra 5g G988B ?
[Moto G4 Plus Questions & Answers] TudorBrown:
Moto G4 not charging properly, I have Lineage OS on it. Recently I switched from SuperSU to magisk and that's when this problem started. Even when I revert to previous backups, the problem is still there. Should I just flash back to stock rom. Will that fix the problem?

I think the phone is stuck in USB charging mode because when I connect it to a computer, it isn't recognised by the computer even when I change to MTP in developer options.

<Mod Edit>

Duplicate thread closed.
[Moto G4 Plus Questions & Answers] strongst:
Please don't post your question multiple times in several threads. https://xdaforums.com/moto-g4-plus/help/help-thread-question-noob-friendly-t3526598/post73349185
[Moto G4 Plus Questions & Answers] TudorBrown:
Yeah I reported the post so that it could be taken down.
[OnePlus 3T Questions & Answers] saarxee:
I have OOS 4.1.6 and works great but the beta version was better?

Beta was stable for daily use?

Magisk root works on beta?

Better battery?
[OnePlus 3T Questions & Answers] jokerpappu:
some works better and some not. its called beta for a reason ya know.

beta is stable for daily use. i am using it ever since i got my one plus 3t

but some updates can give u bugs that are quite not tolerable so if u want to be on a non buggy rom stable is the best but if you want to use all the latest features one plus wants to give to one plus 3t then beta is the way to go.

and yes magisk works with beta quite well. infact i am using magisk in the latest Open beta 12 for one plus 3t

battery life in some updates are good and in some it gets worse but in the latest beta 12 i think its a little weaker than that in the latest stable
[OnePlus 3T Questions & Answers] nagi_007pk:
I was using 4.1.6 for the longest time and had no issues at all. Then I jumped the beta bandwagon and haven't gone back since. I use magisk and EX kernel without any framework modifications and running over a 100 apps that includes every single social networking app. Battery life is around 4-5 hours SOT and my usage is usually some calls, YouTube some light to moderate gaming (Clash of Kings). Overall though I've noticed better touch latency on the beta compared to the official firmware and it's been a pleasant experience so far. No bugs at all. The camera seems to perform slightly better in low light in the beta compared to 4.1.6 and if you were to ask me what I would recommend than solely on the basis of getting quick updates as well as new additions to the firmware, I would wholeheartedly recommend the beta as a daily driver. If it weren't stable enough I would quickly switch roms and go to something more stable but the beta has been behaving really well and I usually update it whenever a new firmware is out. All in all, it's the best OnePlus 3T firmware out there. Depends on how you like things but for me it's been magical!
[OnePlus 3T Questions & Answers] saarxee:
Thanks.

I can install ota beta updates with root? Maybe hide root option?

How to install beta? I must to do full wipe? It will be lock my boot?
[OnePlus 3T Questions & Answers] jokerpappu:
U cant use ota on root thats an abvious thing. It wont lock ur bootloader bt when new update comes u have to download the entire full rom and flash it. Thats a downside bt having root is better than that.u have to wipe data and cache only. Thats what i did.
[OnePlus 3T Questions & Answers] redpoint73:
When in update comes out, just download the update full zip. Flash in TWRP, then just root again with Magisk (or SuperSU if you choose). That's it.

You'll probably see the update zip get posted to XDA, before getting an OTA notification, anyway.

But even if you do get the notification, it should detect you have root/TWRP and download the full update, and install it (the OTA "patch" won't work on a device with TWRP/root, will cause a soft brick). Worst case, it auto reboots after the update, and you lose TWRP, and have to reinstall with fastboot (and then flash root).

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

There is a thread near the top of the "Guides" section that addresses all these questions. No, it will not lock the bootloader.

---------- Post added at 12:06 PM ---------- Previous post was at 11:58 AM ----------

There is not real answer to that. Which is "better" is subjective to each person's personal preferences and tastes.

If you are intrigued, go ahead and try the beta version. No harm in trying (other than having to wipe data, and setup the phone again) and it's fully reversible (you can go back to stable version).

The beta is seeing a lot more updates since the OP5 came out, that much is for sure. Stable has actually had zero updates in that time, although one should be coming soon.
[Wear OS Q&A, Help & Troubleshooting] SkizZO:
Hi, i wish to install an apk (gopro remote app) to my casio smartwatch.

i've read about Android Wear APK Tools, but.... how do i connect the watch to the pc? it has an USB Cable (but only for charging).... I've BT on the pc, but maybe only with win7 BT drivers i canndot do anything...

Thanks in advance
[Wear OS Q&A, Help & Troubleshooting] SkizZO:
I've managed to connect my Wear device directly to the pc via BT but IMHO i need drivers...

Also i've found a procedure to connect the phone to th pc, then to the watch via BT enabling ADB and Developer settings in both devices (i've no found the menu on point n. 6)

(http://www.theandroidsoul.com/enable-adb-debugging-via-bluetooth-android-wear-watch/)

Please i don't want a detailed HowTo, but i whish to know how to install apk on my casio.

Thanks
[Wear OS Q&A, Help & Troubleshooting] SkizZO:
eXCUSEME, ALL DONE WITH THE ABOVE LINKED PROCEDURE, AND

https://xdaforums.com/showthread.php?t=2588979

those drivers.

Thanks
[PDA2, XDA IIi, 2020i General] Calcu:
Hi, i upgrade yesterday my 2020i with the new wwe rom, but i'm trying to find the spanish keyboard layout, you know the "ñ", anybody knows how to bring it back?

Thanks in advance!
[PDA2, XDA IIi, 2020i General] mauri82:
I'm also looking for the spanish layout. If you find something please let me know.

Thanks.

Tambien estoy buscando poner en español el teclado. Si encontras algo por favor avisame.

Gracias.
[PDA2, XDA IIi, 2020i General] xda-addict:
Software Keyboard (seems fast)

I found a keyboard that has Spanish layout (also portuguese, russian, etc etc)

It's really cool , as it supports T9 for these languages as well.

I won't attach the cab here as I'm not sure I'm allowed to do that, but you can download it from www.fingertouchpro.com
[PDA2, XDA IIi, 2020i General] xda-addict:
I guess this old thread died...