pelya / android-keyboard-gadget

Convert your Android device into USB keyboard/mouse, control your PC from your Android device remotely, including BIOS/bootloader.
Apache License 2.0
1.22k stars 308 forks source link

only garbage was found in patch file. #83

Closed michael86 closed 7 years ago

michael86 commented 7 years ago

I'm trying to patch my kernel for my htc one m7_ul, I'll be honest, this is my first bash at working with kernels.

So far I've got a working nethunter.zip for the latest cm13 build from xda forumd but it lacks the HID functions, everything else works so this is pretty much the last step to get a 100% working port.

The source kernel I'm using is from the cyanogenmod github, named: android_kernel_htc_m7, kernel version 3.4.10

I've done the patch from nethunter wiki: mac802111 which (as far as I'm aware) patched without a issue. However, when I try to patch the kernel-3.4.patch from this repository I'm just greeted with the following message: patch: **** Only garbage was found in the patch input.

My steps so far are as follows:

wgit *link to kernel-3.4.patch*

This was placed in the root of my working enviroment.

I then try:

patch < kernel-3.4.patch which results in the garbage error. Anyone have any idea what I'm doing wrong or can point me in the right direction please? I've read the compiling kernel section on the home page but from what I can figure, is that not working with a entirely new kernel (tegra) instead of working on my current kernel?

michael86 commented 7 years ago

Figured it out, for some reason, when I was doing the wget command, it was pulling a random html file instead of the actual patch file. Manually placed the patch code to the file and tried again, worked with 2 hunks failing. gonna take a look at that later. If I'm able to patch it then I'll upload and let you have the link.