Browse Source

fix bugs

Signed-off-by: surenyi <surenyi82@163.com>
master
surenyi 7 months ago
parent
commit
cb6edc0e4e
  1. BIN
      pdf/rk3588_guide.pdf
  2. BIN
      rk3588_guide.pdf
  3. 5
      rk3588_guide.tex
  4. 5
      tex/deploy.tex
  5. 42
      tex/intro.tex
  6. 4
      tex/resource.tex

BIN
pdf/rk3588_guide.pdf

Binary file not shown.

BIN
rk3588_guide.pdf

Binary file not shown.

5
rk3588_guide.tex

@ -88,6 +88,11 @@
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{3}
\setlength{\floatsep}{4pt plus 2pt minus 2pt}
\setlength{\textfloatsep}{4pt plus 2pt minus 2pt}
\setlength{\intextsep}{4pt plus 2pt minus 2pt}
\DeclareRobustCommand{\shellcmd}[2]{\\ \mintinline[bgcolor=lightgray!30,fontsize=\scriptsize]{#1}{#2} \\}
%\xeCJKsetup{CJKmath=true}
\hypersetup{colorlinks=true,linkcolor=blue!80, urlcolor=orange!80, %

5
tex/deploy.tex

@ -22,6 +22,8 @@
=> setsn A2246002
Generate ethaddr: 72:a2:24:60:02:01
Generate eth1addr: 72:a2:24:60:02:02
Generate eth2addr: 72:a2:24:60:02:03
Generate eth3addr: 72:a2:24:60:02:04
Writing to MMC(0)... done
\end{Verbatim}
\end{footnotesize}
@ -35,11 +37,12 @@ Writing to MMC(0)... done
%\draw [lightgray, step=1] (image.south west) grid (image.north east);
%\foreach \x in {0, 1, ..., 10} {\node [below] at (\x, 0) {\x};}
%\foreach \y in {0, 1, ..., 10} {\node [left] at (0, \y) {\y};}
\draw [red,thick, rounded corners] (0.8, 7.0) rectangle (3.0, 9.0);
\draw [red,thick, rounded corners] (0.8, 8.0) rectangle (3.0, 9.0);
\end{scope}
\end{tikzpicture}
\caption{设置板卡编号}
\end{figure}
根据编号自动生成一组 mac 地址,并保存在环境变量里面。
将板卡名称设置为项目名并保存,例如:
\begin{figure}[H]

42
tex/intro.tex

@ -17,7 +17,9 @@
http://192.168.1.202:8888/rk3588/uboot.git
} \\
用 git 命令下载:
\shellcmd{bash}{git clone http://192.168.1.202:8888/rk3588/uboot.git}
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash}
git clone http://192.168.1.202:8888/rk3588/uboot.git
\end{minted}
\section{Kernel 代码下载}
kernel 源代码在这里:\\
@ -201,6 +203,41 @@ setup_arch(&command_line);
\caption{修改 Kernel 版本号}
\end{figure}
\section{设备树文件}
U-Boot 和 Kernel 使用的都是 boot.img 里面的 DTB 文件。设备树文件从这个文件:
\begin{figure}[H]
\centering
\begin{tikzpicture}
\node [anchor=south west, inner sep=0] (image) at (0,0) {
\begin{tcolorbox}[title={\small{}arch/arm64/boot/dts/rockchip/rk3588-sytc.stc:},colframe=gray!20, coltitle=blue!80]
\scriptsize
\begin{Verbatim}
/dts-v1/;
/* #include "rk3588-sytc-hrgz.dtsi" */
#include "rk3588-sytc-evb.dtsi"
/ {
model = "Rockchip RK3588 SYTC Board";
compatible = "rockchip,rk3588-sytc", "rockchip,rk3588";
chosen: chosen {
bootargs = "earlycon=uart8250,mmio32,0xfeb50000 console=ttyFIQ0
irqchip.gicv3_pseudo_nmi=0 root=PARTUUID=614e0000-0000 rw rootwait";
};
};
&fiq_debugger {
rockchip,baudrate = <115200>;
};
\end{Verbatim}
\end{tcolorbox}
};
\end{tikzpicture}
\caption{dts}
\end{figure}
开始查看,它会通过 \verb+include+ 指令引入别的文件。
\chapter{文件更新}
\section{MMC 分区}
@ -230,16 +267,19 @@ setup_arch(&command_line);
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash}
tftpflash 20000000 uboot.img uboot
\end{minted}
如果下载失败,请检查网线是否接在 CPU 直出的网口上面。
\subsection{升级 boot}
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash}
tftpflash 20000000 boot.img boot
\end{minted}
如果下载失败,请检查网线是否接在 CPU 直出的网口上面。
\subsection{升级 rootfs}
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash}
tftpflash 20000000 rootfs.img rootfs
\end{minted}
如果下载失败,请检查网线是否接在 CPU 直出的网口上面。
\begin{comment}
\chapter {系统默认配置}

4
tex/resource.tex

@ -9,8 +9,8 @@ eth0 和 eth1。其对应关系如下表所示:
\toprule
网络接口 & 驱动 & 默认地址 \\
\midrule
\texttt{eth0} & \texttt{\small r8168} & \texttt{\small 192.168.2.80} \\
\texttt{eth1} & \texttt{\small st\_gmac} & \texttt{\small 192.168.1.80} \\
\texttt{eth0} & \texttt{\small st\_gmac} & \texttt{\small 192.168.1.80} \\
\texttt{eth1} & \texttt{\small r8168} & \texttt{\small 192.168.2.80} \\
\bottomrule
\end{tabular}
\caption{网口对应关系}

Loading…
Cancel
Save