Renamed dwc2 folder

This commit is contained in:
2017-03-02 18:47:00 -05:00
parent cf0f0c517c
commit e79881e491
5 changed files with 1 additions and 1 deletions

BIN
dwc2/dwc2.4.4.38+.ko Normal file

Binary file not shown.

BIN
dwc2/dwc2.4.4.48+.ko Normal file

Binary file not shown.

19
dwc2/gadget.patch Normal file
View File

@@ -0,0 +1,19 @@
*** gadget.bak 2017-03-02 15:04:37.850238559 -0500
--- gadget.c 2017-03-02 14:45:05.883206776 -0500
***************
*** 1207,1212 ****
--- 1207,1220 ----
ctrl->bRequestType, ctrl->bRequest, ctrl->wValue,
ctrl->wIndex, ctrl->wLength);
+ /* Prints setup requests */
+ printk("USB DWC2 REQ %02x %02x %04x %04x %04x\n",
+ ctrl->bRequestType,
+ ctrl->bRequest,
+ ctrl->wValue,
+ ctrl->wIndex,
+ ctrl->wLength);
+
if (ctrl->wLength == 0) {
ep0->dir_in = 1;
hsotg->ep0_state = DWC2_EP0_STATUS_IN;

24
dwc2/readme.md Normal file
View File

@@ -0,0 +1,24 @@
<h1>Build your own kernel module</h1>
If your Raspberry Pi kernel is of a different version that the prebuilt modules present in this repository, here's how you can build your own.
<ol>
<li>Use this program to download the correct Raspberry Pi kernel source: <br/>
<code>sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update</code></li>
<li>
Get the kernel source: <br/>
<code>rpi-source</code><br/>
If there are errors, be sure to check <a href="https://github.com/notro/rpi-source/wiki">rpi-source's wiki</a> for help
</li>
<li>
Patch the kernel module using the patch file from my repository: <br/>
<code>cd ~/linux/drivers/usb/dwc2</code>
<code>patch -i ~/HackPi/gadget.patch</code>
</li>
<li>
Build the module: <br/>
<code>cd ~/linux</code><br />
<code>make M=drivers/usb/dwc2 CONFIG_USB_DWC2=m</code>
</li>
<li>Your module dwc2.ko should now be present in <code>~/linux/drivers/usb/dwc2</code></li>
</ol>