You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.8 KiB

\chapter{文件更新}
\section{MMC 分区}
默认情况下,MMC 的分区如下表所示:
\begin{table}[H]
\centering
\begin{tabular}{ccll}
\toprule
起始 (扇区) & 大小 (字节) & 分区名 & 程序\\
\midrule
\texttt{0x0000000} & \texttt{4M} & \texttt{loader} &\texttt{MiniLoaderAll.bin} \\
\texttt{0x0002000} & \texttt{1M} & \texttt{bootenv} & \texttt{uboot 环境变量} \\
\texttt{0x0004000} & \texttt{8M} & \texttt{uboot} & \texttt{uboot.img} \\
\texttt{0x0008000} & \texttt{80M} & \texttt{boot} & \texttt{boot.img} \\
\texttt{0x0030000} & \texttt{14G} & \texttt{rootfs} & \texttt{rootfs.img} \\
\texttt{0x1c30000} & \texttt{-} & \texttt{userdata}& \texttt{userdata.img}\\
\bottomrule
\end{tabular}
\caption{MMC 分区表}
\end{table}
这里一个扇区的大小是 512 字节。
\section{U-Boot 网络升级}
开机时在调试串口上按住 \zhsquote{CTRL-C},串口打印将停止在 U-Boot 的命令行上。
\subsection{升级 uboot}
\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}
注意:rootfs 文件比较大,uboot 下可用的内存 3GB 左右,文件先下到内存会放不下而失败。
\begin{comment}
\chapter {系统默认配置}
\section{默认 IP 地址}
eth0: 192.168.1.80
eth1: 192.168.2.80
\section{系统密码}
root 密码: root
\end{comment}