bbb_ehci.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <style type="text/css">
  7. @import url('../css/main.css');
  8. </style>
  9. <title>EHCI debugging on the BeagleBone Black</title>
  10. </head>
  11. <body>
  12. <div class="section">
  13. <h1 id="pagetop">EHCI debugging on the BeagleBone Black</h1>
  14. <p><a href="index.html">Back to previous index</a></p>
  15. </div>
  16. <div class="section">
  17. <h1>EHCI debugging</h1>
  18. <ol class="toc">
  19. <li><a href="#FindUSBportonthetargetthatsupportsEHCIdebug">Find
  20. USB port on the target that supports EHCI debug</a></li>
  21. <li><a href="#InitialsetupofBBBtoactasEHCIdebugdongle">Initial
  22. setup of BBB to act as EHCI debug dongle</a></li>
  23. <li><a href="#PatchBBBsgdbgpmoduleoptionalbuthighlyrecommended">Patch
  24. BBB's <tt>g_dbgp</tt> module (optional, but highly recommended)</a></li>
  25. <li><a href="#ConfigurelibrebootwithEHCIdebug">Configure
  26. libreboot with EHCI debug</a>
  27. <ol>
  28. <li><a href="#SelectingHCDIndexandUSBDebugport">Selecting
  29. <tt>HCD Index</tt> and <tt>USB Debug port</tt></a></li>
  30. </ol></li>
  31. <li><a href="#Howtogetthedebuglogs">How to get the debug
  32. logs</a></li>
  33. <li><a
  34. href="#EnebleEHCIDebugonthetargetskerneloptionalrecommended">Eneble
  35. EHCI Debug on the target's kernel (optional, recommended)</a></li>
  36. <li><a href="#References">References</a></li>
  37. </ol>
  38. <p>
  39. <strong>
  40. NOTE: this documentation may be outdated, and discusses
  41. configuring EHCI debug on the default Debian system that the BBB
  42. sometimes comes with. If you want an easier time, just use
  43. <a href="https://www.coreboot.org/BBB_screwdriver">BBB ScrewDriver</a>
  44. which comes pre-configured.
  45. </strong>
  46. </p>
  47. <p>If your computer does not boot after installing libreboot, it is
  48. very useful to get debug logs from it, from the payload (grub) and/or
  49. the kernel (if gets to there). All of them stream debug logs on the
  50. available serial (RS-232) by default. However, most of todays laptops
  51. lack RS-232 port. The other option is to stream the logs to USB EHCI
  52. debug port.</p>
  53. <p>This section explains step-by-step how to setup BBB as a
  54. &#8220;USB EHCI debug dongle&#8221; and configure libreboot and the
  55. linux kernel to stream logs to it (TODO: grub).</p>
  56. <p>I will refer to three computers:</p>
  57. <ul>
  58. <li><b>host</b> - this is the computer you use, have
  59. tools, compiler, Internet, etc</li>
  60. <li><b>BBB</b> - Beaglebone Black (rev. B or higher, i
  61. use rev. C)</li>
  62. <li><b>target</b> - the computer you are trying to
  63. install liberboot</li>
  64. </ul>
  65. <h3 id="FindUSBportonthetargetthatsupportsEHCIdebug">Find USB port
  66. on the target that supports EHCI debug</h3>
  67. <p>
  68. Not all USB controllers support EHCI debug (see: <a
  69. href="http://www.coreboot.org/EHCI_Debug_Port#Hardware_capability">EHCI
  70. Debug Port</a> ). Even more, if a USB controller supports EHCI debug, it
  71. is available only <b>on a single port</b> that might or might
  72. not be exposed externally.
  73. </p>
  74. <ul>
  75. <li>You need running OS (GNU/Linux) on your target for this step
  76. (If you&#8217;ve flashed libreboot and it does not boot, you have to
  77. flush back the stock bios)</li>
  78. <li>You need USB memory stick (the data on it will not be
  79. touched).</li>
  80. <li>The EHCI debugging can not be done through external hub, BBB
  81. must be connected directly to the debug port of the controller (so, no
  82. hubs)</li>
  83. </ul>
  84. <ul>
  85. <li>Download<sup class="footnote"><a href="#___fn1">1</a></sup> <a
  86. href="http://www.coreboot.org/pipermail/coreboot/attachments/20080909/ae11c291/attachment.sh">this</a>
  87. shell script.
  88. </li>
  89. </ul>
  90. <ol>
  91. <li>Plug the usb stick in the first available usb port</li>
  92. <li>Run the script, you will get output similar to following:</li>
  93. <pre>The following PCI devices support a USB debug port (says lspci): 0000:00:1a.0 0000:00:1d.0
  94. The following PCI devices support a USB debug port (says the kernel): 0000:00:1a.0 0000:00:1d.0
  95. *PCI device 0000:00:1a.0, USB bus 3, USB physical port 1*
  96. *PCI device 0000:00:1d.0, USB bus 4, USB physical port 2*
  97. Currently connected high-speed devices:
  98. /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
  99. |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
  100. |__ Port 7: Dev 14, If 0, Class=Hub, Driver=hub/4p, 480M
  101. |__ Port 1: Dev 15, If 0, Class=Hub, Driver=hub/4p, 480M
  102. |__ Port 3: Dev 17, If 0, Class=Hub, Driver=hub/2p, 480M
  103. |__ Port 4: Dev 18, If 0, Class=Hub, Driver=hub/4p, 480M
  104. /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
  105. |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
  106. /: *Bus 01*.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
  107. |__ *Port 3: Dev 31, If 0, Class=Mass Storage, Driver=usb-storage, 480M*
  108. </pre>
  109. <li>The buses the support debug are Bus 3 (0000:00:1a.0) on Port 1
  110. and Bus 4 (0000:00:1d.0) on port 2. Your usb stick is plugged on Bus
  111. 1, Port 3</li>
  112. <li>Repeat the steps, plugging the USB stick in the next available
  113. port</li>
  114. <li>Go through all available ports and remember(write down) those
  115. for which bus/port of the usb stick matches one of the bus/port that
  116. support debug (bold).</li>
  117. </ol>
  118. <p>Remember (write down) for each port (external plug) you found
  119. that supports debug: <b>PCI device id, the bus id, the port number, and
  120. the physical location of the usb plug.</b></p>
  121. <p>If you do not find a match, you can not get debug over EHCI.
  122. Sorry.</p>
  123. <p id="___fn1" class="footnote">
  124. <sup>1</sup> The guys from coreboot were talking about including the
  125. script in coreboot distribution (check the status).
  126. </p>
  127. <h3 id="InitialsetupofBBBtoactasEHCIdebugdongle">Initial setup of
  128. BBB to act as EHCI debug dongle</h3>
  129. <p>BBB must be powered with a barrel power connector since the
  130. mini-B USB plug will be used for the EHCI debug stream. So you will
  131. need:</p>
  132. <ul>
  133. <li>power supply (5V, 2A(10W) is sufficient).</li>
  134. <li>an extra usb cable: A to mini-B</li>
  135. </ul>
  136. <p>
  137. (On BBB) The linux kernel includes module (g_dbgp that enables one of the usb ports on a computer to behave as EHCI
  138. debug dongle. Make sure you have this module available on your BBB
  139. (Debian 7.8 that comes with BBB should have it), if not, you should
  140. compile it yourself (see next section):
  141. </p>
  142. <pre>ls /lib/modules/3.8.13-bone70/kernel/drivers/usb/gadget/g_dbgp.ko</pre>
  143. <p>
  144. Unload all other
  145. g_*
  146. modules:
  147. </p>
  148. <pre># lsmod
  149. # rmmod g_multi
  150. ...
  151. </pre>
  152. <p>
  153. Then load
  154. g_dbgp
  155. :
  156. </p>
  157. <pre># modprobe g_dbgp
  158. # lsmod # should show that g_dbgp is loaded, and no other g_*
  159. </pre>
  160. <p>
  161. Plug the mini-B side of the USB cable in your BBB and the A side in
  162. your target. Then one of the usb devices on your target (with
  163. lsusb
  164. ) should be:
  165. </p>
  166. <pre>Bus 001 Device 024: ID 0525:c0de Netchip Technology, Inc.</pre>
  167. <p>If you see the device on the target, you are good to continue to
  168. the next step.</p>
  169. <h3 id="PatchBBBsgdbgpmoduleoptionalbuthighlyrecommended">
  170. Patch BBB&#8217;s
  171. g_dbgp
  172. module (optional, but highly recommended)
  173. </h3>
  174. <p>
  175. For the reasons why you need this, see: <a
  176. href="http://www.coreboot.org/EHCI_Gadget_Debug">EHCI Gadget Debug</a>.<br />Make
  177. sure that you have cross compiling environment for
  178. arm-linux-gnueabihf
  179. setup on your <em>host</em>.
  180. </p>
  181. <ul>
  182. <li>On BBB: uname -r - this will give you version
  183. number like 3.8.13-bone70 (I will refer to this as: $mav.$miv-$lv:
  184. where mav=3.8, miv=13, lv=bone70
  185. </li>
  186. <li>Get the BBB kernel ready on your host for cross-compiling:</li>
  187. </ul>
  188. <pre>$ cd $work_dir
  189. $ git clone https://github.com/beagleboard/kernel.git
  190. $ cd kernel
  191. $ git checkout $mav (see above)
  192. $ ./patch.sh
  193. $ wget http://arago-project.org/git/projects/?p=am33x-cm3.git\;a=blob_plain\;f=bin/am335x-pm-firmware.bin\;hb=HEAD -O kernel/firmware/am335x-pm-firmware.bin
  194. $ cp configs/beaglebone kernel/arch/arm/configs/beaglebone_defconfig
  195. </pre>
  196. <ul>
  197. <li>Download the patch from <a
  198. href="http://www.coreboot.org/images/8/88/Ehci-debug-gadget-patches.tar.gz">here</a></li>
  199. <li>tar -xf Ehci-debug-gadget-patches.tar.gz (will
  200. create dir: usbdebug-gadget)</li>
  201. <li>Note that there are two patches (patch_1 and patch_2) for each
  202. of the two different version of the kernel (3.8 and 3.10). I will use
  203. 3.8. (If using kernel 3.12 patch_1 is not needed)</li>
  204. <li>cd kernel (note that this is one more level: you
  205. should be in $work_dir/kernel/kernel)</li>
  206. <li>Apply the patches:</li>
  207. </ul>
  208. <pre>
  209. git apply ../usbdebug-gadget/v3.8-debug-gadget/0001-usb-dbgp-gadget-Fix-re-connecting-after-USB-disconne.patch
  210. git apply ../usbdebug-gadget/v3.8-debug-gadget/0002-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch
  211. ;
  212. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- beaglebone_defconfig -j4@
  213. </pre>
  214. <ul>
  215. <li>
  216. You should also apply the linux-libre <i>deblob</i> script to turn it into linux-libre
  217. (deletes all the blobs from the linux kernel).
  218. <a href="http://www.fsfla.org/ikiwiki/selibre/linux-libre/">fsfla website</a>
  219. - see <a href="http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts/">scripts</a>.
  220. </li>
  221. <li>Get your current BBB kernel config (from: /boot/config-&lt;ver&gt;)
  222. and copy it to your host as $work_dir/kernel/kernel/.config</li>
  223. <pre>
  224. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- oldconfig - all default answers</pre>
  225. <li>Set proper version number:
  226. <ul>
  227. <li>On your host, edit $work_dir/kernel/kernel/.config
  228. (the one you&#8217;ve just copied from BBB), find the line CONFIG_LOCALVERSION="&lt;something
  229. or empty&gt;" and change it to CONFIG_LOCALVERSION="-$lv",
  230. so it will look something like: CONFIG_LOCALVERSION="-bone70"</li>
  231. </ul>
  232. </li>
  233. <li>Also, make sure that: CONFIG_USB_G_DBGP=m (If
  234. not, make menuconfig, and set @Device Drivers-&gt; USB
  235. Support -&gt; USB Gadget Support -&gt; EHCI Debug Device Gadget=m</li>
  236. <li>Build the module:</li>
  237. </ul>
  238. <pre>
  239. $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 (is it possoble to build only the gadget modules)
  240. $ mkdir ../tmp &amp;&amp; make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=../tmp modules_install
  241. </pre>
  242. <ul>
  243. <li>on BBB, backup /lib/modules/3.8.13-bone70/kernel/drivers/usb/gadget
  244. (i.e. mv
  245. /lib/modules/3.8.13-bone70/kernel/drivers/usb/gadget $HOME)
  246. </li>
  247. <li>copy the freshly compiled usb/gadget dir to /lib/modules/3.8.13-bone70/kernel/drivers/usb</li>
  248. <li>restart BBB</li>
  249. <li>Remove all g_* modules (rmmod
  250. g_&lt;&gt;)
  251. </li>
  252. <li>modprobpe g_dbgp</li>
  253. </ul>
  254. <h3 id="ConfigurelibrebootwithEHCIdebug">Configure libreboot with
  255. EHCI debug</h3>
  256. <p>
  257. Libreboot(coreboot) should be configured with debug turned on and to
  258. push debug messages to the EHCI debug port.<br />If you&#8217;ve
  259. downloaded the binary distribution, you can check if it is properly
  260. configured in the following way:
  261. </p>
  262. <ul>
  263. <li>Go to the libreboot dist root directory cd
  264. $libreboot_bin</li>
  265. <li>Locate the rom image for your target (I will call it: $img_path)
  266. </li>
  267. <li>Running the following command will extract the config in a
  268. file ./my_config:
  269. </li>
  270. </ul>
  271. <pre>
  272. ./cbfstool/i686/cbfstool $img_path extract -n config -f ./my_config
  273. </pre>
  274. <ul>
  275. <li>Make sure that the following params in the config are set as
  276. following:</li>
  277. </ul>
  278. <pre>
  279. CONFIG_USBDEBUG=y (Generic Drivers -&gt; USB 2.0 EHCI debug dongle support)
  280. CONFIG_USBDEBUG_IN_ROMSTAGE=y (Generic Drivers -&gt; Enable early (pre-RAM) usbdebug)
  281. CONFIG_USBDEBUG_HCD_INDEX=&lt;HCD Index of usb controller - see below&gt; (Generic Drivers -&gt; Index for EHCI controller to use with usbdebug)
  282. CONFIG_USBDEBUG_DEFAULT_PORT=&lt;USB Debug port - see below&gt; (Generic Drivers -&gt; Default USB port to use as Debug Port)
  283. </pre>
  284. <p>
  285. The following three are behind radio button in the menu. Only the first
  286. one<sup class="footnote"><a href="#___fn2">2</a></sup> should be = y
  287. </p>
  288. <pre>
  289. USBDEBUG_DONGLE_STD=y (Generic Drivers -&gt; Type of dongle (Net20DC or compatible) -&gt; Net20DC or compatible)
  290. CONFIG_USBDEBUG_DONGLE_BEAGLEBONE=n (Generic Drivers -&gt; Type of dongle (Net20DC or compatible) -&gt; BeagleBone)
  291. CONFIG_USBDEBUG_DONGLE_BEAGLEBONE_BLACK=n (Generic Drivers -&gt; Type of dongle (Net20DC or compatible) -&gt; BeagleBone Black)
  292. </pre>
  293. <p id="___fn2" class="footnote">
  294. <sup>2</sup> The g_dbgp module on BeagleBone Black (Rev. C) reports it self as Net20DC, the
  295. other options are for older BB(B) - ver1. This is documented <a
  296. href="https://johnlewis.ie/coreboot-ehci-debug-gadget-demonstration/">here</a>
  297. (also tested/verified).
  298. </p>
  299. <p>
  300. Then:<br />
  301. <pre>
  302. CONFIG_CONSOLE_USB=y (Console -&gt; USB dongle console output)
  303. </pre>
  304. </p>
  305. <p>
  306. Also
  307. Debugging ---&gt; Output verbose XYZ
  308. ) (<b>FIXME</b> somebody verify these):
  309. </p>
  310. <pre>
  311. CONFIG_DEBUG_CBFS=y (Output verbose CBFS debug messages )
  312. CONFIG_HAVE_DEBUG_RAM_SETUP=y (??? What/where is this)
  313. CONFIG_DEBUG_RAM_SETUP=y (Output verbose RAM init debug messages)
  314. CONFIG_DEBUG_SMI=y (Output verbose SMI debug messages)
  315. CONFIG_DEBUG_ACPI=y (Output verbose ACPI debug messages )
  316. CONFIG_DEBUG_USBDEBUG=y (Output verbose USB 2.0 EHCI debug dongle messages)
  317. </pre>
  318. <p>If some of the above mentioned configuration options are not as
  319. specified, you have to configure and compile libreboot yourself. Please
  320. refer to the doc(<b>FIXME: link</b> about compiling libreboot.</p>
  321. <h4 id="SelectingHCDIndexandUSBDebugport">
  322. Selecting
  323. HCD Index
  324. and
  325. USB Debug port
  326. </h4>
  327. <p>
  328. This applies (and works) only if the USB controller that supports debug
  329. (found in the first section) is from Intel.<br />If the PCI ID of the
  330. port you found in the first section is
  331. 0000:00:1a.0
  332. or
  333. 0000:00:1d.0
  334. , you are ok. Otherwise you have to try without guarantee that will
  335. work.
  336. </p>
  337. <p>
  338. If the externally exposed port is on a bus with
  339. PCI ID == 0000:00:1a.0
  340. then for
  341. CONFIG_USBDEBUG_HCD_INDEX
  342. choose 2, otherwise choose 0
  343. .
  344. </p>
  345. <p>
  346. For
  347. CONFIG_USBDEBUG_DEFAULT_PORT
  348. choose the port from the first section that correspond to the
  349. PCI ID
  350. </p>
  351. <p>
  352. Notes:<br />The above is based on the implementation of
  353. coreboot/src/southbridge/intel/common/usb_debug.c : pci_ehci_dbg_dev()
  354. .<br />This is enough as it applies for the supported GM45/G45
  355. Thinkpads. coreboot support some other contollers too, but they are
  356. irellevent for libreboot (for now).
  357. </p>
  358. <ul>
  359. <li>On T500 (with switchable GPU) the debug ports for both intel
  360. controllers is exposed.</li>
  361. <li>On x200t the debug ports for both intel controllers is
  362. exposed.</li>
  363. </ul>
  364. <h3 id="Howtogetthedebuglogs">How to get the debug logs</h3>
  365. <ul>
  366. <li>Plug the USB cable in the target&#8217;s debug port (the one
  367. you found in step 1) and BBB&#8217;s mini-B USB</li>
  368. <li>Make sure no other then g_dbgp of the g_*
  369. modules is loaded on your BBB
  370. </li>
  371. <li>On the BBB:</li>
  372. </ul>
  373. <pre>
  374. stty -icrnl -inlcr -F /dev/ttyGS0
  375. cat /dev/ttyGS0
  376. </pre>
  377. <ul>
  378. <li>Power on the target with libreboot</li>
  379. <li>You should see debug logs comming on your BBB console</li>
  380. </ul>
  381. <p>
  382. Note that this is not permanent on BBB, if you reboot it, you have to
  383. rmmod g_*
  384. and
  385. modprobe g_dbgp
  386. </p>
  387. <h3 id="EnebleEHCIDebugonthetargetskerneloptionalrecommended">Eneble
  388. EHCI Debug on the target&#8217;s kernel (optional, recommended)</h3>
  389. <p>You have to know how to compile kernel for your target.</p>
  390. <ol>
  391. <li>Check if early debugging is already enabled: grep
  392. CONFIG_EARLY_PRINTK_DBGP /boot/config-&lt;ver&gt;</li>
  393. <li>If enabled, you do not have to compile the kernel (skip this
  394. step). Otherwise, prepare kernel source for your distribution and
  395. select (Kernel hacking -&gt; Early printk via EHCI debug
  396. port). Compile and install the new kernel.
  397. </li>
  398. <li>Edit your grub configuration and add following to the kenel
  399. parameters<sup class="footnote"><a href="#___fn20">20</a></sup><sup
  400. class="footnote"><a href="#___fn21">21</a></sup>: earlyprintk=dbgp,keep.
  401. Also, try: earlyprintk=dbgp&lt;N&gt;,keep where N
  402. is the debug port id if the first does not work.
  403. </li>
  404. </ol>
  405. <h3 id="References">References</h3>
  406. <p id="___fn10" class="footnote">
  407. <sup>10</sup> <a href="http://www.coreboot.org/EHCI_Debug_Port">EHCI
  408. Debug Port</a>
  409. </p>
  410. <p id="___fn11" class="footnote">
  411. <sup>11</sup> <a
  412. href="https://johnlewis.ie/coreboot-ehci-debug-gadget-demonstration/">coreboot
  413. EHCI debug gadget demonstration</a>
  414. </p>
  415. <p id="___fn12" class="footnote">
  416. <sup>12</sup> <a href="http://www.coreboot.org/EHCI_Gadget_Debug">EHCI
  417. Gadget Debug</a>
  418. </p>
  419. <p id="___fn13" class="footnote">
  420. <sup>13</sup> <a
  421. href="http://www.coreboot.org/images/8/88/Ehci-debug-gadget-patches.tar.gz">Ehci-debug-gadget-patches.tar.gz</a>
  422. </p>
  423. <p id="___fn14" class="footnote">
  424. <sup>14</sup> <a
  425. href="http://wiki.beyondlogic.org/index.php/BeagleBoneBlack_Building_Kernel">Compiling
  426. the BeagleBone Black Kernel</a>
  427. </p>
  428. <p id="___fn15" class="footnote">
  429. <sup>15</sup>
  430. http://dumb-looks-free.blogspot.ca/2014/06/beaglebone-black-bbb-compile-kernel.html
  431. </p>
  432. <p id="___fn16" class="footnote">
  433. <sup>16</sup>
  434. http://dumb-looks-free.blogspot.fr/2014/06/beaglebone-black-bbb-kernal-headers.html
  435. </p>
  436. <p id="___fn17" class="footnote">
  437. <sup>17</sup> <a href="http://elinux.org/Building_BBB_Kernel">Building
  438. BBB Kernel</a>
  439. </p>
  440. <p id="___fn18" class="footnote">
  441. <sup>18</sup>
  442. http://komposter.com.ua/documents/USB-2.0-Debug-Port%28John-Keys%29.pdf
  443. </p>
  444. <p id="___fn19" class="footnote">
  445. <sup>19</sup> <a href="http://cs.usfca.edu/~cruse/cs698s10/">Exploring
  446. USB at the Hardware/Software Interface</a>
  447. </p>
  448. <p id="___fn20" class="footnote">
  449. <sup>20</sup>
  450. https://www.kernel.org/doc/Documentation/x86/earlyprintk.txt
  451. </p>
  452. <p id="___fn21" class="footnote">
  453. <sup>21</sup> https://wiki.ubuntu.com/Kernel/Debugging/USBearlyprintk
  454. </p>
  455. <p>
  456. <b>TODO</b>:
  457. </p>
  458. <ol>
  459. <li>grub does not send messages to EHCI debug. Investigate.</li>
  460. <li>The section &#8220;Configure libreboot with EHCI debug&#8221;
  461. can be skipped/simplified if a common configuration works for all
  462. relevant targets is selected as defualt</li>
  463. <li>Patch and compule g_dbgp on BBB instead cross-compile</li>
  464. <li>Find a simple way to send debug messages from targets userland</li>
  465. </ol>
  466. </div>
  467. <div class="section">
  468. <p>
  469. Copyright &copy; 2015 Alex David &lt;opdecirkel@gmail.com&gt;<br/>
  470. Permission is granted to copy, distribute and/or modify this document
  471. under the terms of the Creative Commons Attribution-ShareAlike 4.0 International license
  472. or any later version published by Creative Commons;
  473. A copy of the license can be found at <a href="../cc-by-sa-4.0.txt">../cc-by-sa-4.0.txt</a>
  474. </p>
  475. <p>
  476. Updated versions of the license (when available) can be found at
  477. <a href="https://creativecommons.org/licenses/by-sa/4.0/legalcode">https://creativecommons.org/licenses/by-sa/4.0/legalcode</a>
  478. </p>
  479. <p>
  480. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
  481. EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
  482. AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
  483. ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
  484. IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
  485. WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
  486. PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
  487. ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
  488. KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
  489. ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
  490. </p>
  491. <p>
  492. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
  493. TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
  494. NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
  495. INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
  496. COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
  497. USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
  498. ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
  499. DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
  500. IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
  501. </p>
  502. <p>
  503. The disclaimer of warranties and limitation of liability provided
  504. above shall be interpreted in a manner that, to the extent
  505. possible, most closely approximates an absolute disclaimer and
  506. waiver of all liability.
  507. </p>
  508. </div>
  509. </body>
  510. </html>