Code Monkey home page Code Monkey logo

Comments (15)

kimocoder avatar kimocoder commented on August 16, 2024 2

I made newer 8188 driver also, in mac80211 subsystem instead on this omd cfg80211/nl80211 mix.

https://github.com/kimocoder/realtek_rtwifi

And our build tool for NetHunter is located below
https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel

Wi-Fi patches, injection.. everything you need 💯

from rtl8188eus.

drygdryg avatar drygdryg commented on August 16, 2024

Check out my fixes: https://github.com/drygdryg/rtl8188eus
Maybe it will help you.

from rtl8188eus.

kimocoder avatar kimocoder commented on August 16, 2024

Check out my patch for kernel 4.4, 4.9 and 4.14
In our build system...

https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel/-/raw/master/patches/4.14/add-rtl88xxau-5.6.4.2-drivers.patch

from rtl8188eus.

kimocoder avatar kimocoder commented on August 16, 2024

I have no idea why you guys take the hard way.. it's plain simple, add a pointer from staging Kconfig to driver Kconfig and from staging Makefile to driver Makefile 👍

from rtl8188eus.

i3ima avatar i3ima commented on August 16, 2024

Thank you for your answer and help.

from rtl8188eus.

i3ima avatar i3ima commented on August 16, 2024

https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel

Is there a patch for kernel 4.9? For HID support?
https://github.com/pelya/android-keyboard-gadget/blob/master/patches/existing_tested/by-generic-kernel-version/generic_kernel_4.9.patch Like this

from rtl8188eus.

kimocoder avatar kimocoder commented on August 16, 2024

HID is simple for newer kernels..

Go in the link below and grap the "ramdisk" folder (for anykernel2/3)

https://gitlab.com/kimoc0der/kali-nethunter-devices/-/tree/master/ten/oneplus6-oos

Then in NetHunter, setup a custom command, like this:
Screenshot_20200529-175303

from rtl8188eus.

i3ima avatar i3ima commented on August 16, 2024

Thank you, again, I'll try your recommendations.

from rtl8188eus.

i3ima avatar i3ima commented on August 16, 2024

UPD:
I built the kernel using generic_kernel_patch.4.9.patch to support HID, then copied zImage to the Anykernel folder, and copied the files you specified to the ramdisk folder, then I flashed the resulting archive. I want to ask you a few questions.
First of all, when I run the command "su -c setprop sys.usb.config "win, mtp, hid, adb" two things happen :
1./dev/hidgX are not generated.
2.in dmesg I see the error "init: Command 'write /config/usb_gadget/g1/UDC none' action=sys.usb.config=none && sys.usb.configfs=1 (/init.usb.configfs.rc:2) took 0ms and failed: cUnable to write to file '/config/usb_gadget/g1/UDC': Unable to write file contents: No such device".
My device has the code name vince, can I use descriptors and initialization scripts from other devices?
Are there instructions on what options menuconfig should include to support HID?

from rtl8188eus.

i3ima avatar i3ima commented on August 16, 2024

Also, i can't set such function
image

from rtl8188eus.

kimocoder avatar kimocoder commented on August 16, 2024

Did I say you should use a kernel patch? Nope

from rtl8188eus.

kimocoder avatar kimocoder commented on August 16, 2024

And init and everything is in the ramdisk folder.

from rtl8188eus.

i3ima avatar i3ima commented on August 16, 2024

I'm sorry for my inattention.I downloaded the kernel sources again, made defconfig for my device and used menuconfig.sh and build.sh to build the kernel and modules, made a zip-archive again, pre-copied the contents of the ramdisk directory into AnyKernel3/ramdisk.

The svc command usb setFunctions hid still shows the error "Killed".
setprop usb.config.sys "win, hid, mtp, adb" also does not give the desired result, mode change simply does not occur

The Arsenal USB section of the NetHunter application shows that I can set the USB function, but nothing happens when you press a button.
image

I'll attach my defconfig.
vince_nh_defconfig.txt

from rtl8188eus.

i3ima avatar i3ima commented on August 16, 2024

If I doing anything wrong, please tell me, provide guidelines or anything else that can help to solve problem

from rtl8188eus.

i3ima avatar i3ima commented on August 16, 2024

Note : last time HID was running on 3.18

from rtl8188eus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.