mirror of
https://github.com/wismna/HackPi.git
synced 2025-10-03 15:40:16 -04:00
Update readme.md
This commit is contained in:
@@ -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.
|
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>
|
<ol>
|
||||||
<li>Use this program to download the correct Raspberry Pi kernel source: <br/>
|
<li>We will use <a href="https://github.com/notro/rpi-source">rpi-source by notro</a> to download the correct Raspberry Pi kernel source. Let's install it: <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>
|
<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>
|
<li>
|
||||||
Get the kernel source: <br/>
|
Now get the current kernel source: <br/>
|
||||||
<code>rpi-source</code><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
|
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>
|
||||||
@@ -20,5 +20,5 @@ If your Raspberry Pi kernel is of a different version that the prebuilt modules
|
|||||||
<code>cd ~/linux</code><br />
|
<code>cd ~/linux</code><br />
|
||||||
<code>make M=drivers/usb/dwc2 CONFIG_USB_DWC2=m</code>
|
<code>make M=drivers/usb/dwc2 CONFIG_USB_DWC2=m</code>
|
||||||
</li>
|
</li>
|
||||||
<li>Your module dwc2.ko should now be present in <code>~/linux/drivers/usb/dwc2</code></li>
|
<li>Your module <b>dwc2.ko</b> should now be present in <code>~/linux/drivers/usb/dwc2</code></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
Reference in New Issue
Block a user