diff --git a/dwc2/readme.md b/dwc2/readme.md index 0ff56d1..5f8dda9 100644 --- a/dwc2/readme.md +++ b/dwc2/readme.md @@ -3,22 +3,22 @@ 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.
    -
  1. Use this program to download the correct Raspberry Pi kernel source:
    +
  2. We will use rpi-source by notro to download the correct Raspberry Pi kernel source. Let's install it:
    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
  3. - Get the kernel source:
    + Now get the current kernel source:
    rpi-source
    If there are errors, be sure to check rpi-source's wiki for help
  4. Patch the kernel module using the patch file from my repository:
    - cd ~/linux/drivers/usb/dwc2 - patch -i ~/HackPi/gadget.patch + cd ~/linux/drivers/usb/dwc2
    + patch -i ~/HackPi/kernelmodules/gadget.patch
  5. Build the module:
    cd ~/linux
    make M=drivers/usb/dwc2 CONFIG_USB_DWC2=m
  6. -
  7. Your module dwc2.ko should now be present in ~/linux/drivers/usb/dwc2
  8. +
  9. Your module dwc2.ko should now be present in ~/linux/drivers/usb/dwc2