From 2006d17f19ab3abb4e91efaa84bdb3d2d4571426 Mon Sep 17 00:00:00 2001 From: wismna Date: Thu, 2 Mar 2017 15:41:15 -0500 Subject: [PATCH 1/3] Update readme.md --- kernelmodules/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernelmodules/readme.md b/kernelmodules/readme.md index 0ff56d1..519a58b 100644 --- a/kernelmodules/readme.md +++ b/kernelmodules/readme.md @@ -12,7 +12,7 @@ If your Raspberry Pi kernel is of a different version that the prebuilt modules
  • Patch the kernel module using the patch file from my repository:
    - cd ~/linux/drivers/usb/dwc2 + cd ~/linux/drivers/usb/dwc2
    patch -i ~/HackPi/gadget.patch
  • From 4890b01b482759dde2979c4b7275600a343ead47 Mon Sep 17 00:00:00 2001 From: wismna Date: Thu, 2 Mar 2017 15:42:15 -0500 Subject: [PATCH 2/3] Update readme.md --- kernelmodules/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernelmodules/readme.md b/kernelmodules/readme.md index 519a58b..fa6984d 100644 --- a/kernelmodules/readme.md +++ b/kernelmodules/readme.md @@ -13,7 +13,7 @@ If your Raspberry Pi kernel is of a different version that the prebuilt modules
  • Patch the kernel module using the patch file from my repository:
    cd ~/linux/drivers/usb/dwc2
    - patch -i ~/HackPi/gadget.patch + patch -i ~/HackPi/kernelmodules/gadget.patch
  • Build the module:
    From 23a97863fa2e4c6b4b35d034c21411a4b7cd0d27 Mon Sep 17 00:00:00 2001 From: wismna Date: Thu, 2 Mar 2017 15:56:56 -0500 Subject: [PATCH 3/3] Update readme.md --- kernelmodules/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernelmodules/readme.md b/kernelmodules/readme.md index fa6984d..5f8dda9 100644 --- a/kernelmodules/readme.md +++ b/kernelmodules/readme.md @@ -3,10 +3,10 @@ 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. @@ -20,5 +20,5 @@ If your Raspberry Pi kernel is of a different version that the prebuilt modules cd ~/linux
      make M=drivers/usb/dwc2 CONFIG_USB_DWC2=m -
    5. Your module dwc2.ko should now be present in ~/linux/drivers/usb/dwc2
    6. +
    7. Your module dwc2.ko should now be present in ~/linux/drivers/usb/dwc2