index.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  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>Building libreboot from source</title>
  10. </head>
  11. <body>
  12. <div class="section">
  13. <h1 id="pagetop">Building libreboot from source</h1>
  14. <p>
  15. This section relates to building libreboot from source, and
  16. working with the git repository.
  17. </p>
  18. <p>
  19. Or <a href="../index.html">Back to main index</a>.
  20. </p>
  21. <ul>
  22. <li><a href="#build_dependencies">Install build dependencies</a></li>
  23. <li><a href="#build_meta">Get the full source code from metadata (git clone)</a></li>
  24. <li><a href="#build_bucts">How to build &quot;bucts&quot; (for LenovoBIOS X60/X60S/X60T/T60)</a></li>
  25. <li><a href="#build_flashrom">How to build &quot;flashrom&quot;</a></li>
  26. <li>
  27. <a href="#config">Configuring libreboot</a>
  28. <ul>
  29. <li><a href="#config_dmidecode">dmidecode</a></li>
  30. <li><a href="#config">Configuring libreboot</a></li>
  31. <li><a href="#config_chromebook">Configuring libreboot for chromebooks</a></li>
  32. </ul>
  33. </li>
  34. <li><a href="#build">How to build the ROM images</a></li>
  35. </ul>
  36. </div>
  37. <div class="section">
  38. <h1 id="build_dependencies">Install build dependencies</h1>
  39. <p>
  40. Before doing anything, you need the dependencies first. This is true if
  41. you want to build libreboot from source, with either libreboot_src.tar.xz or git.
  42. <b>If you are using libreboot_util.tar.xz (binary archive) then you can ignore this, because
  43. ROM images and statically compiled executables for the utilities are included.</b>
  44. </p>
  45. <div class="important">
  46. <p>
  47. For Trisquel 7, you can run the following command:<br/>
  48. $ <b>sudo ./build dependencies trisquel7</b>
  49. </p>
  50. <p>
  51. For Parabola, you can run the following command:<br/>
  52. $ <b>sudo ./build dependencies parabola</b><br/>
  53. or:<br/>
  54. # <b>./build dependencies parabola</b>
  55. </p>
  56. </div>
  57. <p>
  58. For other GNU/Linux distributions, you can adapt the existing scripts.
  59. </p>
  60. <p><a href="#pagetop">Back to top of page</a></p>
  61. </div>
  62. <div class="section">
  63. <h1 id="build_meta">Get the full source code from metadata (git clone)</h1>
  64. <p>
  65. If you downloaded libreboot from git, then there are some steps to download and patch
  66. the source code for all relevant dependencies. The archive in the git repository used to be
  67. available as a tarball called 'libreboot_meta.tar.gz'. It contains 'metadata' (scripts)
  68. which define how the source was created (where it came from).
  69. </p>
  70. <p>
  71. You can use the scripts included to download everything.
  72. </p>
  73. <p>
  74. First, <a href="#build_dependencies">install the build dependencies</a>.
  75. </p>
  76. <p>
  77. Since libreboot makes extensive use of git, you need to configure git properly. If you have not yet configured
  78. git, then the minimum requirement is:<br/>
  79. $ <b>git config --global user.name "Your Name"</b><br/>
  80. $ <b>git config --global user.email your@emailaddress.com</b><br/>
  81. This is what will also appear in git logs if you ever commit your own changes to a given repository. For
  82. more information, see <a href="http://git-scm.com/doc">http://git-scm.com/doc</a>.
  83. </p>
  84. <p>
  85. Another nice config for you (optional, but recommended):<br/>
  86. $ <b>git config --global core.editor nano</b><br/>
  87. $ <b>git config --global color.status auto</b><br/>
  88. $ <b>git config --global color.branch auto</b><br/>
  89. $ <b>git config --global color.interactive auto</b><br/>
  90. $ <b>git config --global color.diff auto</b>
  91. </p>
  92. <p>
  93. After that, run the script:<br/>
  94. $ <b>./download all</b>
  95. </p>
  96. <p>
  97. What this did was download everything (grub, coreboot, memtest86+, bucts, flashrom)
  98. at the versions last tested for this release, and patch them. Read the script
  99. in a text editor to learn more.
  100. </p>
  101. <p>
  102. To build the ROM images, see <a href="#build">#build</a>.
  103. </p>
  104. <p><a href="#pagetop">Back to top of page.</a></p>
  105. </div>
  106. <div class="section">
  107. <h1 id="build_bucts">How to build &quot;bucts&quot; (for LenovoBIOS X60/X60S/X60T/T60)</h1>
  108. <p>
  109. <b>This is for Lenovo BIOS users on the ThinkPad X60/X60S, X60 Tablet and T60. If you have coreboot or libreboot running already, ignore this.</b>
  110. </p>
  111. <p>
  112. BUC.TS isn't really specific to these laptops, but is a bit inside the a register in the chipset on some Intel systems.
  113. </p>
  114. <p>
  115. Bucts is needed when flashing in software the X60/X60S/X60T/T60 ROM while Lenovo BIOS is running;
  116. external flashing will be safe regardless.
  117. Each ROM contains identical data inside the two final 64K region in the file*.
  118. This corresponds to the final two 64K regions in the flash chip. Lenovo BIOS will prevent you from writing the
  119. final one, so running &quot;<b>bucts 1</b>&quot; will set the system to boot from the other block instead (which
  120. is writeable along with everything beneath it when using a patched flashrom. see <a href="#build_flashrom">#build_flashrom</a>).
  121. After shutting down and booting up after the first flash of libreboot,
  122. the final 64K block is writeable so you flash the ROM again with an unpatched flashrom and run "<b>bucts 0</b>" to
  123. make the system boot from the normal (highest) block again.
  124. </p>
  125. <p>
  126. *Libreboot ROM images have identical data in those two 64KiB regions because dd is used to do that, by the build system.
  127. If you're building from upstream (coreboot), you have to do it manually.
  128. </p>
  129. <p>
  130. BUC.TS is backed up (powered) by the NVRAM battery (or CMOS battery, as some people call it). On thinkpads,
  131. this is typically in a yellow plastic package with the battery inside, connected via power lines to the
  132. mainboard. Removing that battery removes power to BUC.TS, resetting the bit back to 0 (if you previously set
  133. it to 1).
  134. </p>
  135. <p>
  136. BUC.TS utility is included in libreboot_src.tar.xz and libreboot_util.tar.xz.<br/>
  137. <b>If you downloaded from git, follow <a href="#build_meta">#build_meta</a> before you proceed.</b>
  138. </p>
  139. <p>
  140. &quot;BUC&quot; means &quot;<b>B</b>ack<b>u</b>p <b>C</b>ontrol&quot; (it's a register) and &quot;TS&quot; means &quot;<b>T</b>op <b>S</b>wap&quot;
  141. (it's a status bit). Hence &quot;bucts&quot; (BUC.TS). TS 1 and TS 0 corresponds to bucts 1 and bucts 0.
  142. </p>
  143. <p>
  144. If you have the binary release archive, you'll find executables under ./bucts/. Otherwise if you need to build from source, continue reading.
  145. </p>
  146. <p>
  147. First, <a href="#build_dependencies">install the build dependencies</a>.
  148. </p>
  149. <p>
  150. To build bucts, do this in the main directory:<br/>
  151. $ <b>./build module bucts</b>
  152. </p>
  153. <p>
  154. To statically compile it, do this:<br/>
  155. $ <b>./build module bucts static</b>
  156. </p>
  157. <p>
  158. The &quot;builddeps&quot; script in libreboot_src also makes use of builddeps-bucts.
  159. </p>
  160. <p><a href="#pagetop">Back to top of page.</a></p>
  161. </div>
  162. <div class="section">
  163. <h1 id="build_flashrom">How to build &quot;flashrom&quot;</h1>
  164. <p>
  165. Flashrom is the utility for flashing/dumping ROM images. This is what you will use to install libreboot.
  166. </p>
  167. <p>
  168. Flashrom source code is included in libreboot_src.tar.xz and libreboot_util.tar.xz.<br/>
  169. <b>If you downloaded from git, follow <a href="#build_meta">#build_meta</a> before you proceed.</b>
  170. </p>
  171. <p>
  172. If you are using the binary release archive, then there are already binaries included
  173. under ./flashrom/. The flashing scripts will try to choose the correct one for you. Otherwise
  174. if you wish to re-build flashrom from source, continue reading.
  175. </p>
  176. <p>
  177. First, <a href="#build_dependencies">install the build dependencies</a>.
  178. </p>
  179. <p>
  180. To build it, do the following in the main directory:<br/>
  181. $ <b>./build module flashrom</b>
  182. </p>
  183. <p>
  184. To statically compile it, do the following in the main directory:<br/>
  185. $ <b>./build module flashrom static</b>
  186. </p>
  187. <p>
  188. After you've done that, under ./flashrom/ you will find the following executables:
  189. </p>
  190. <ul>
  191. <li>
  192. <b>flashrom</b>
  193. <ul>
  194. <li>For flashing while coreboot or libreboot is running.</li>
  195. </ul>
  196. </li>
  197. <li>
  198. <b>flashrom_lenovobios_sst</b>
  199. <ul>
  200. <li>This is patched for flashing while Lenovo BIOS is running on an X60 or T60 with the SST25VF016B (SST) flash chip.</li>
  201. </ul>
  202. </li>
  203. <li>
  204. <b>flashrom_lenovobios_macronix</b>
  205. <ul>
  206. <li>This is patched for flashing while Lenovo BIOS is running on an X60 or T60 with the MX25L1605D (Macronix) flash chip.</li>
  207. </ul>
  208. </li>
  209. </ul>
  210. <p>
  211. The &quot;builddeps&quot; script in libreboot_src also makes use of builddeps-flashrom.
  212. </p>
  213. <p><a href="#pagetop">Back to top of page.</a></p>
  214. </div>
  215. <div class="section">
  216. <h1 id="config">Configuring libreboot</h1>
  217. <p>
  218. Before building a ROM in libreboot (or coreboot, for that matter), you need to configure it.
  219. Configuration files should already be included, so you don't need to do anything. This information
  220. is only for reference. If you are updating or modifying coreboot-libre, and need to update the configs
  221. in any way, refer to <a href="../maintain/index.html#newboard_libreboot">../maintain/index.html#newboard_libreboot</a>.
  222. </p>
  223. <p>
  224. If you've already built a kernel before, you know how to use this interface.
  225. </p>
  226. <div class="subsection">
  227. <h2 id="config_dmidecode">
  228. dmidecode
  229. </h2>
  230. <p>
  231. There is certain information that can be useful to enter in particular:
  232. </p>
  233. <ul>
  234. <li>Local version string</li>
  235. <li>SMBIOS Serial Number</li>
  236. <li>SMBIOS Manufacturer</li>
  237. <li>SMBIOS Version</li>
  238. <li>SMBIOS Product name</li>
  239. </ul>
  240. <p>
  241. This information can be obtained using:<br/>
  242. <b>$ sudo dmidecode</b><br/>
  243. <b># dmidecode</b>
  244. </p>
  245. <p>
  246. Specifically, it's good practise to enter the same information for libreboot that you found when running this
  247. with the original BIOS or firmware. <b>libreboot has already done this for you. This information is for reference,
  248. in the hope that it will be useful.</b>
  249. </p>
  250. <p>
  251. In practise, this information is useless and you can
  252. just leave it on the defaults that coreboot uses (this
  253. is what libreboot does, on most boards).
  254. </p>
  255. </div>
  256. <h2 id="config">GRUB payload</h2>
  257. <p>
  258. GRUB is one of the payloads that libreboot targets.
  259. </p>
  260. <p>
  261. Configurations are then saved as files called <b>&quot;.config&quot;</b>. Copies of each configuration used
  262. for each system type by the libreboot build scripts are stored in resources/libreboot/config/grub/
  263. </p>
  264. <div class="subsection">
  265. <h3 id="config_x86">
  266. Generic configuration file (file: resources/libreboot/config/payload/board/config)
  267. </h3>
  268. <ul>
  269. <li>General setup / Expert mode = <i>enable</i></li>
  270. <li>General / Use CMOS for configuration values = <i>enable</i></li>
  271. <li>Mainboard / Mainboard vendor = <i>Name of manufacturer</i></li>
  272. <li>Mainboard / Mainboard model = <i>Model name</i></li>
  273. <li>Mainboard / ROM chip size = <i>size of flash chip</i></li>
  274. <li>Chipset / Include CPU microcode in CBFS = <i>Do not include microcode updates</i></li>
  275. <li>Devices / Use native graphics initialization = <i>enable</i></li>
  276. <li>
  277. Display / Keep VESA framebuffer = <i>disable</i> (disable for text-mode graphics, enable for coreboot vesa framebuffer)
  278. <ul>
  279. <li>Libreboot provides this with text-mode enabled by default, but it automatically patches a copy of the config at build time
  280. to enable coreboot framebuffer for a separate set of ROM images, in each system.</li>
  281. </ul>
  282. </li>
  283. <li>Generic Drivers / USB 2.0 EHCI debug dongle support = <i>Enable</i></li>
  284. <li>Generic Drivers / Enable early (pre-RAM) usbdebug = <i>Enable</i></li>
  285. <li>Generic Drivers / Type of dongle = <i>Net20DC or compatible</i></li>
  286. <li>Generic Drivers / Digitizer = <i>Present</i></li>
  287. <li>Console / USB dongle console output = <i>enable</i></li>
  288. <li>Payload / Add a payload = <i>An ELF executable payload</i></li>
  289. <li>Payload / Payload path and filename = <i>grub.elf</i></li>
  290. </ul>
  291. <p>
  292. Now go back into Devices:
  293. </p>
  294. <ul>
  295. <li>Devices / Run VGA Option ROMs = <i>disable</i></li>
  296. <li>Devices / Run Option ROMs on PCI devices = <i>disable</i></li>
  297. </ul>
  298. <p>
  299. The resulting .config file was saved as resources/libreboot/config/<b>payload/board/config</b> and is used by the build
  300. scripts for this system.
  301. </p>
  302. </div>
  303. <h2 id="config_chromebook">Configuring libreboot for chromebooks</h2>
  304. <p>
  305. Depthcharge is one of the payloads that libreboot targets.
  306. </p>
  307. <p>
  308. Configurations are then saved as files called <b>&quot;.config&quot;</b>. Copies of each configuration used
  309. for each system type by the libreboot build scripts are stored in resources/libreboot/config/depthcharge/
  310. </p>
  311. <div class="subsection">
  312. <h3 id="config_arm">
  313. Generic configuration file (file: resources/libreboot/config/depthcharge/board/config)
  314. </h3>
  315. <ul>
  316. <li>Mainboard / Mainboard vendor = <i>Google</i></li>
  317. <li>Mainboard / Mainboard model = <i>name of model</i></li>
  318. <li>Chipset / ChromeOS / Build for ChromeOS = <i>enable</i></li>
  319. <li>Chipset / ChromeOS / Verify firmware with vboot. = <i>disable</i></li>
  320. <li>Payload / Add a payload = <i>An ELF executable payload</i></li>
  321. <li>Payload / Payload path and filename = <i>depthcharge.elf</i></li>
  322. </ul>
  323. <p>
  324. The resulting .config file was saved as resources/libreboot/config/<b>depthcharge/board/config</b> and is used by the build
  325. scripts for this system.
  326. </p>
  327. </div>
  328. <p><a href="#pagetop">Back to top of page.</a></p>
  329. </div>
  330. <div class="section">
  331. <h1 id="build">How to build the ROM images</h1>
  332. <p>You don't need to do much, as there are scripts already written for you that can build everything automatically.</p>
  333. <p>
  334. You can build libreboot from source on a 32-bit (i686) or 64-bit (x86_64) system. Recommended (if possible): x86_64.
  335. ASUS KFSN4-DRE has 64-bit CPUs.
  336. On a ThinkPad T60, you can replace the CPU (Core 2 Duo T5600, T7200 or T7600. T5600 recommended) for 64-bit support.
  337. On an X60s, you can replace the board with one that has a Core 2 Duo L7400 (you could also use an X60 Tablet board with the same CPU).
  338. On an X60, you can replace the board with one that has a Core 2 Duo T5600 or T7200 (T5600 is recommended). All MacBook2,1 laptops
  339. are 64-bit, as are all ThinkPad X200, X200S, X200 Tablet, R400, T400 and T500 laptops. Warning: MacBook1,1 laptops are all 32-bit only.
  340. </p>
  341. <p>
  342. First, <a href="#build_dependencies">install the build dependencies</a>.
  343. </p>
  344. <p>
  345. If you downloaded libreboot from git, refer to <a href="#build_meta">#build_meta</a>.
  346. </p>
  347. <p>
  348. Build all of the components used in libreboot:<br/>
  349. $ <b>./build module all</b>
  350. </p>
  351. <p>
  352. You can also build each modules separately, using <i>./build module modulename</i>.
  353. To see the possible values for <i>modulename</i>, use:<br/>
  354. $ <b>./build module list</b>
  355. </p>
  356. <p>
  357. After that, build the ROM images (for all boards):<br/>
  358. $ <b>./build roms withgrub</b><br/>
  359. Alternatively, you can build for a specific board or set of boards.
  360. For example:<br/>
  361. $ <b>./build roms withgrub x60</b><br/>
  362. $ <b>./build roms withgrub x200_8mb</b><br/>
  363. $ <b>./build roms withgrub x60 x200_8mb</b><br/>
  364. The list of board options can be found by looking at the directory
  365. names in <b>resources/libreboot/config/grub/</b>.
  366. </p>
  367. <p>
  368. For those boards which use the depcharge payload, you must use:
  369. $ <b>./build roms withdepthcharge</b><br/>
  370. You can also build for a specific board or set of boards. For example:<br/>
  371. $ <b>./build roms withdepthcharge veyron_speedy</b>
  372. </p>
  373. <p>
  374. To clean (reverse) everything, do the following:<br/>
  375. $ <b>./build clean all</b>
  376. </p>
  377. <p>
  378. The ROM images will be stored under <b>bin/<i>payload</i>/</b>,
  379. where <i>payload</i> could be <i>grub</i>, <i>depthcharge</i>, <i>seabios</i>, or
  380. whatever other payload those images were built for.
  381. </p>
  382. <div class="subsection">
  383. <h2>Preparing release archives (optional)</h2>
  384. <p>
  385. <b>This is only confirmed to work (tested) in Trisquel 7. Parabola *fails* at this stage
  386. (for now). For all other distros, YMMV.</b>
  387. </p>
  388. <p>
  389. This is mainly intended for use with the git repository.
  390. These commands will work in the release archive (_src), unless otherwise noted below.
  391. </p>
  392. <p>
  393. The archives will appear under <i>release/${version}/</i>;
  394. ${version} will either be set using <i>git describe</i> or,
  395. if a <i>version</i> file already exists (_src release archive),
  396. then it will simply re-use that.
  397. </p>
  398. <p>
  399. Tag the current commit, and that version will appear in both the ${version}
  400. string on the directory under <i>release/</i>, and in the file names of the
  401. archives. Otherwise, whatever git uses for <i>git describe --tags HEAD</i>
  402. will be used.
  403. </p>
  404. <p>
  405. Utilities (static executables):<br/>
  406. $ <b>./build release util</b>
  407. </p>
  408. <p>
  409. Archive containing flashrom and bucts source code:<br/>
  410. $ <b>./build release tobuild</b>
  411. </p>
  412. <p>
  413. Documentation archive (<b>does not work on _src release archive, only git</b>):<br/>
  414. $ <b>./build release docs</b>
  415. </p>
  416. <p>
  417. ROM image archives:<br/>
  418. $ <b>./build release roms</b>
  419. </p>
  420. <p>
  421. Source code archive:<br/>
  422. $ <b>./build release src</b>
  423. </p>
  424. <p>
  425. SHA512 sums of all other release archives that have been generated:<br/>
  426. $ <b>./build release sha512sums</b>
  427. </p>
  428. <p>
  429. If you are building on an i686 host, this will build statically linked 32-bit binaries in
  430. the binary release archive that you created,
  431. for: <b>nvramtool, cbfstool, ich9deblob, cbmem</b>.
  432. </p>
  433. <p>
  434. If you are building on an x86_64 host, this will build statically linked 32- *and* 64-bit binaries for
  435. <b>cbmem</b>, <b>ich9deblob</b>, <b>cbfstool</b> and <b>nvramtool</b>.
  436. </p>
  437. <p>
  438. <b>To include statically linked i686 and x86_64 binaries for bucts and flashrom,
  439. you will need to build them on a chroot, a virtual system or a real
  440. system where the host uses each given architecture. These packages are difficult
  441. to cross-compile, and the libreboot project is still figuring out how to deal
  442. with them.</b>
  443. </p>
  444. <p>
  445. The same applies if you want to include statically linked flashrom binaries for ARM.
  446. </p>
  447. <p>
  448. armv7l binaries (tested on a BeagleBone Black) are also included in libreboot_util, for:
  449. </p>
  450. <ul>
  451. <li>cbfstool</li>
  452. <li>ich9gen</li>
  453. <li>ich9deblob</li>
  454. <li>flashrom</li>
  455. </ul>
  456. <p>
  457. If you are building binaries on a live system or chroot (for flashrom/bucts), you can use the following to statically link them:<br/>
  458. $ <b>./build module flashrom static</b><br/>
  459. $ <b>./build module bucts static</b>
  460. </p>
  461. <p>
  462. The same conditions as above apply for ARM (except, building bucts on ARM is pointless, and for flashrom
  463. you only need the normal executable since the lenovobios_sst and _macronix executables are meant
  464. to run on an X60/T60 while lenovo bios is present, working around the security restrictions).
  465. </p>
  466. <p>
  467. The command that you used for generating the release archives will also run the following command:<br/>
  468. $ <b>./build release tobuild</b><br/>
  469. The archive <b>tobuild.tar.xz</b> will have been created under <b>release/</b>, containing bucts, flashrom and all other required
  470. resources for building them.
  471. </p>
  472. <p>
  473. You'll find that the files libreboot_util.tar.xz and libreboot_src.tar.xz have been created, under <b>release/</b>.
  474. </p>
  475. <p>
  476. The ROM images will be stored in separate archives for each system, under <b>release/rom/</b>.
  477. </p>
  478. </div>
  479. <p><a href="#pagetop">Back to top of page</a></p>
  480. </div>
  481. <div class="section">
  482. <p>
  483. Copyright &copy; 2014, 2015, 2016 Leah Rowe &lt;info@minifree.org&gt;<br/>
  484. Permission is granted to copy, distribute and/or modify this document
  485. under the terms of the GNU Free Documentation License, Version 1.3
  486. or any later version published by the Free Software Foundation;
  487. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  488. A copy of the license can be found at <a href="../gfdl-1.3.txt">../gfdl-1.3.txt</a>
  489. </p>
  490. <p>
  491. Updated versions of the license (when available) can be found at
  492. <a href="https://www.gnu.org/licenses/licenses.html">https://www.gnu.org/licenses/licenses.html</a>
  493. </p>
  494. <p>
  495. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
  496. EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
  497. AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
  498. ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
  499. IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
  500. WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
  501. PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
  502. ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
  503. KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
  504. ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
  505. </p>
  506. <p>
  507. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
  508. TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
  509. NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
  510. INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
  511. COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
  512. USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
  513. ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
  514. DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
  515. IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
  516. </p>
  517. <p>
  518. The disclaimer of warranties and limitation of liability provided
  519. above shall be interpreted in a manner that, to the extent
  520. possible, most closely approximates an absolute disclaimer and
  521. waiver of all liability.
  522. </p>
  523. </div>
  524. </body>
  525. </html>