|
|
@ -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 {系统默认配置} |
|
|
|