offensive-security / nethunter-devices

NetHunter Devices
248 stars 197 forks source link

Add Motorola Moto G5 Kernel #147

Closed rajeshdubey293 closed 6 years ago

rajeshdubey293 commented 6 years ago

Hi, I would like to show my work, I hope you will like it. I have made kernel for Motorola Moto G5 that supports all the things that is required for nethunter application.

https://forum.xda-developers.com/g5/development/kali-nethunter-motorola-moto-g5-cedric-t3807191/post76879558#post76879558

jcadduono commented 6 years ago

Thanks for your contribution, be sure to check out the files changed section, there are some oddities that appear to have been imported from one of the testing branches (Galaxy S8) You may want to interactive rebase (git rebase -i HEAD~x) and edit the commit that seems to have added them in.

I suggest also copying the lib/modules folder from the command when building: make INSTALL_MOD_PATH="." INSTALL_MOD_STRIP=1 modules_install

This will include all the info needed for modprobe to automatically load modules while in Android and the Kali chroot. The installer will automatically create standard Android located copies of each module from this data.

rajeshdubey293 commented 6 years ago

Sure sir. I will do that and after i will commit the changes. Thank you for your suggestions

rajeshdubey293 commented 6 years ago

@jcadduono Everything is set up now.! you can check out.

jcadduono commented 6 years ago

@rajeshdubey293 looks great, just one more thing, the kernel name tag shows up as dirty, which usually means there were some changes seen by git that are not in a commit for your kernel source before you built, so they were built from dirty sources, maybe see if you can fix that also i suggest adding -nethunter to the LOCALVERSION as well along with your name, helps people identify they are running a nethunter kernel

rajeshdubey293 commented 6 years ago

@jcadduono Done !..actually I forgot to commit my changes yesterday so it happened..!

jcadduono commented 6 years ago

Great! First merge in like half a year lol. You can add /lib/modules to your .gitignore and the installed modules will stop showing up in your git work. (I see that you committed them)

rajeshdubey293 commented 6 years ago

thank you very much sir.!!