logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git

drivers.shtml (3549B)


  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <!--#include file="/templates/head.shtml" -->
  5. <title>drivers — lanodan’s cyber-home</title>
  6. </head>
  7. <body>
  8. <!--#include file="/templates/en/nav.shtml" -->
  9. <main>
  10. <a href="/notes/drivers"><h1>Drivers</h1></a>
  11. <h2 id="OpalEssence">OpalEssence (Toshiba Satellite laptop)</h2>
  12. <h3 id="OpalEssence.GPU">[AMD/ATI] RV710/M92 [Mobility Radeon HD 4530/4570/545v]</h3>
  13. <p>See <a href="http://wiki.gentoo.org/wiki/Radeon">radeon - Gentoo Wiki</a></p>
  14. <code>CONFIG_EXTRA_FIRMWARE = radeon/R700_rlc.bin radeon/RV710_smc.bin radeon/RV710_uvd.bin</code>
  15. <h3>Realtek RTL8191SEvB</h3>
  16. <p>I’ve used :</p>
  17. <ul>
  18. <li>linux-firmware (for rtlwifi/rtl8192sefw.bin)</li>
  19. <li>Kernel Sources</li>
  20. </ul>
  21. <p>Kernel configuration</p>
  22. <code><pre>Device Drivers ---&gt;
  23. Generic Driver Options ---&gt;
  24. <span title="CONFIG_FW_LOADER">-*- Userspace firmware loading support</span>
  25. <span title="CONFIG_FIRMWARE_IN_KERNEL">[*] Include in-kernel firmware blobs in kernel binary</span>
  26. <span title="CONFIG_EXTRA_FIRMWARE">(… rtlwifi/rtl8192sefw.bin)</span>
  27. <span title="CONFIG_EXTRA_FIRMWARE_DIR">(/lib/firmare) Firmware blobs root directory</span>
  28. </pre></code>
  29. <h2 id="Gigabyte_970A-UD3P">Gigabyte-AMD 970A-UD3P (rev 1.0)</h2>
  30. <h3 id="Gigabyte_970A-UD3P.USB">USB</h3>
  31. <p>Kernel:</p>
  32. <ul>
  33. <li>cmdline: <code>iommu=soft</code></li>
  34. <li><code><pre>CONFIG_USB_XHCI_HCD=y
  35. CONFIG_USB_XCHI_PCI=y
  36. CONFIG_USB_EHCI_HCD=y
  37. CONFIG_USB_EHCI_ROOT_HUB_TT=y
  38. # CONFIG_USB_EHCI_TT_NEWSCHED is not set
  39. CONFIG_USB_UHCI=y</pre></code></li>
  40. </ul>
  41. <p>BIOS (version: <code>F1</code></p>
  42. <ul>
  43. <li>XHCI handoff: enabled</li>
  44. <li>EHCI handoff: enabled</li>
  45. <li>IOMMU: enabled</li>
  46. <li>Port 60/64 (PS/2) emulation: disabled</li>
  47. </ul>
  48. <h2 id="ESP32">ESP32</h2>
  49. <code><pre>Symbol: USB_SERIAL_CP210X [=m]
  50. Type : tristate
  51. Prompt: USB CP210x family of UART Bridge Controllers
  52. Location:
  53. -> Device Drivers
  54. -> USB support (USB_SUPPORT [=y])
  55. -> USB Serial Converter support (USB_SERIAL [=y])
  56. Defined at drivers/usb/serial/Kconfig:135
  57. Depends on: USB_SUPPORT [=y] &amp;&amp; USB [=y] &amp;&amp; USB_SERIAL [=y]</pre></code>
  58. <p>Mine is on the <a href="https://nodemcu.readthedocs.io/en/master/">NodeMCU</a> firmware by default. I connected to it using <code>picocom /dev/ttyUSB0</code> and by pressing the RST button I get this output :</p>
  59. <code><pre>NodeMCU custom build by frightanic.com
  60. branch: master
  61. commit: c8037568571edb5c568c2f8231e4f8ce0683b883
  62. SSL: false
  63. modules: cjson,file,gpio,net,node,pwm,tmr,uart,wifi
  64. build built on: 2016-03-14 02:10
  65. powered by Lua 5.1.4 on SDK 1.4.0
  66. lua: cannot open init.lua</pre></code>
  67. <p>And here is a Hello World in Lua (<code>&gt; </code> is the prompt) to test it further</p>
  68. <code><pre>&gt; print("Hello World")
  69. Hello World</pre></code>
  70. <h2 id="ESP8266">ESP8266</h2>
  71. <code>picocom -b 115200 --omap crcrlf /dev/ttyACM0</code> where <code>/dev/ttyACM0</code> is my arduino UNO used for powering the Module and UART(~RS232). I found the baud rate on <a href="http://williamdurand.fr/2015/03/17/playing-with-a-esp8266-wifi-module/">Playing With a ESP8266 WiFi Module</a>
  72. <p>A easy test you can do is to type <code>AT</code> and return, it should give you <code>OK</code>, like this (boot banner included):</p>
  73. <code><pre>Ai-Thinker Technology Co. Ltd.
  74. ready
  75. AT
  76. OK
  77. </pre></code>
  78. </main>
  79. <!--#include file="/templates/en/footer.shtml" -->
  80. </body>
  81. </html>