From c58843b52d5aeccc1c14dcfa1b3de92cd2e7bcad Mon Sep 17 00:00:00 2001
From: Iru Cai <mytbk920423@gmail.com>
Date: Fri, 18 May 2018 00:41:48 +0800
Subject: better verbatim, more info

---
 coreboot-talk.tex | 49 +++++++++++++++++++++++++------------------------
 1 file changed, 25 insertions(+), 24 deletions(-)

(limited to 'coreboot-talk.tex')

diff --git a/coreboot-talk.tex b/coreboot-talk.tex
index 353f418..5d1f203 100644
--- a/coreboot-talk.tex
+++ b/coreboot-talk.tex
@@ -7,6 +7,10 @@
 \usetheme{Madrid}
 \usepackage{hyperref}
 \usepackage{verbatim}
+\usepackage{newverbs}
+\newverbcommand{\vcmd}
+  {\begin{lrbox}{\verbbox}}
+  {\end{lrbox}\colorbox{gray!30}{\box\verbbox}}
 
 \title{coreboot - the free firmware}
 \author[vimacs]{vimacs \texttt{<https://vimacs.lcpu.club>}}
@@ -300,18 +304,18 @@
   \url{https://www.coreboot.org/Lesson1} is a good place to start.
 
   \begin{block}{Build a cross toolchain for building coreboot}
-    make crossgcc or \verb|make crossgcc-<arch>|
+    \vcmd|make crossgcc| or \vcmd|make crossgcc-<arch>|
   \end{block}
 
   \begin{block}{Generate a configuration}
-    make nconfig
+    \vcmd|make nconfig|
   \end{block}
 
-  At last do a ``make`` to build it, the built firmware is at
+  At last do a \vcmd|make| to build it, the built firmware is at
   build/coreboot.rom.
 
   \begin{block}{Run coreboot on QEMU}
-    qemu-system-i386 -bios build/coreboot.rom
+    \vcmd|qemu-system-i386 -bios build/coreboot.rom|
   \end{block}
 \end{frame}
 
@@ -346,15 +350,15 @@
   We can use flashrom to flash the chips.
 
   \begin{block}{command line}
-    \verb|flashrom -p <programmer> [-r <file>] [-w <file>]|
+    \vcmd|flashrom -p <programmer> [-r <file>] [-w <file>]|
   \end{block}
 
   \begin{block}{For Linux SPI}
-    \verb|flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=1024|
+    \vcmd|flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=1024|
   \end{block}
 
   \begin{block}{For ch341a}
-    \verb|flashrom -p ch341a_spi|
+    \vcmd|flashrom -p ch341a_spi|
   \end{block}
 
 \end{frame}
@@ -363,7 +367,7 @@
   Many boards can be flashed internally with coreboot flashed.
 
   \begin{block}{internal flashing}
-    \verb|flashrom -p internal:laptop=force_I_want_a_brick|
+    \vcmd|flashrom -p internal:laptop=force_I_want_a_brick|
   \end{block}
 
   We can also use a layout file to flash part of the ROM.
@@ -420,35 +424,33 @@ flashrom -p <prog> --layout layout.txt \
 
 \begin{frame}{Community resources}
   \begin{itemize}
-  \item Homepage: \url{https://www.coreboot.org}
+  \item Homepage and wiki: \url{https://www.coreboot.org}
+	  \begin{itemize}
+		  \item We can apply for a wiki account and write coreboot wiki.
+	  \end{itemize}
   \item Mailing list: coreboot@coreboot.org
   \item IRC: \#coreboot at irc.freenode.net
   \item Mattermost (bridged to IRC): \url{https://chat.coreboot.org}
+  \item bug tracking system: \url{http://ticket.coreboot.org/}
   \item twitter: @coreboot\_org
   \end{itemize}
 \end{frame}
 
-\begin{frame}{Reporting bugs and Writing documents}
-  \begin{itemize}
-  \item To join the community, learn to use mailing list and IRC.
-  \item There's a bug tracking system: \url{http://ticket.coreboot.org/}
-  \item We can apply for a wiki account and write coreboot wiki.
-  \end{itemize}
-\end{frame}
-
 \begin{frame}[fragile]{I want to write some code}
   Gerrit code review is the project management system for coreboot.
 
   To push code to gerrit, you can manually set up the scripts, or just
-  run \verb|make gitconfig|.
+  run \vcmd|make gitconfig|.
 
   Using gerrit is easy:
   \begin{itemize}
-  \item To push code: \verb|git push origin HEAD:refs/for/master|
-  \item We can add a topic: \verb|HEAD:refs/for/master%topic=some_topic|
-  \item To push a draft: \verb|HEAD:refs/drafts/master|
+  \item To push code: \vcmd|git push origin HEAD:refs/for/master|
+  \item We can add a topic: \vcmd|HEAD:refs/for/master%topic=some_topic|
+  \item To push a draft: \vcmd|HEAD:refs/drafts/master|
   \end{itemize}
 
+  If you've modified your code, just amend it, and push again.
+
   I recommend working in a new git branch instead of master.
 \end{frame}
 
@@ -478,7 +480,8 @@ flashrom -p <prog> --layout layout.txt \
 
   The current development of coreboot focuses on:
   \begin{itemize}
-    \item improvement on old platforms
+    \item improvement on old platforms, and porting coreboot
+	    to boards with this platforms
     \item utilities and payloads
     \item Google Chromebooks and related chips
     \item new architectures: RISC-V, POWER8, etc.
@@ -598,7 +601,6 @@ flashrom -p <prog> --layout layout.txt \
   \end{itemize}
 \end{frame}
 
-\begin{comment}
 \part{2}
 \section{[OT] Choosing hardware friendly to free software}
 \begin{frame}{Hardware choosing(Machines)}
@@ -643,6 +645,5 @@ flashrom -p <prog> --layout layout.txt \
     \end{itemize}
   \end{block}
 \end{frame}
-\end{comment}
 
 \end{document}
-- 
cgit v1.2.3

