Browse Source

add more contents

master
surenyi 8 months ago
parent
commit
9acb69ae1c
  1. BIN
      images/burn.png
  2. BIN
      pdf/rk3588_guide.pdf
  3. BIN
      rk3588_guide.pdf
  4. 5
      style/xecjk_preamble.tex
  5. 68
      tex/deploy.tex
  6. 48
      tex/issue.tex
  7. 28
      tex/wsl2.tex

BIN
images/burn.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 17 KiB

BIN
pdf/rk3588_guide.pdf

Binary file not shown.

BIN
rk3588_guide.pdf

Binary file not shown.

5
style/xecjk_preamble.tex

@ -12,7 +12,7 @@
%\usepackage[fontset=adobe,punct=quanjiao]{ctex}
\usepackage{bookman}
\usepackage[OT1]{fontenc}
\usepackage[punct=quanjiao]{ctex}
%\usepackage[punct=quanjiao]{ctex}
% variable fonts
@ -31,8 +31,7 @@
% BoldFeatures={RawFeature={+axis={wght=700}}},
% BoldItalicFeatures={RawFeature={+axis={wght=1000}}}
%]{Source Han Sans TC VF}
%\usepackage[fontset=puhui,punct=quanjiao]{ctex}
\usepackage[fontset=puhui,punct=quanjiao]{ctex}
%\usepackage[fontset=windows,punct=quanjiao]{ctex}
%% 针对中文进行断行
%\XeTeXlinebreaklocale "zh"

68
tex/deploy.tex

@ -1,8 +1,72 @@
\chapter{程序文件烧写}
\chapter{系统安装}
电脑需要安装瑞芯微的 USB 驱动程序。
\section{烧写系统文件}
电脑需要安装瑞芯微的 USB 驱动程序。接上 USB 线,运行 TKDevTool.exe,上电进入 maskrom 模式:
\begin{figure}[H]
\centering
\includegraphics[width=\textwidth]{burn.png}
\caption{RKDevTooL 配置}
\end{figure}
\section{配置系统}
在调试串口上按住 {\kx}CTRL-C{\kx}并上电开机,将调试串口停止在 U-Boot 的命令行上,
{\kx}\textcolor{blue!80}{\tt setsn}{\kx},将板卡的编号设置进去,例如:
\begin{figure}[H]
\centering
\begin{tikzpicture}
\node [anchor=south west, inner sep=0] (image) at (0,0) {
\begin{tcolorbox}[colframe=gray!20]
\begin{footnotesize}
\begin{Verbatim}
=> setsn A2246002
Generate ethaddr: 72:a2:24:60:02:01
Generate eth1addr: 72:a2:24:60:02:02
Writing to MMC(0)... done
\end{Verbatim}
\end{footnotesize}
\end{tcolorbox}
};
\begin{scope}[
x={($0.1*(image.south east)$)},
y={($0.1*(image.north west)$)}
]
% grid for debugging
%\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.7, 7.0) rectangle (2.6, 9.0);
\end{scope}
\end{tikzpicture}
\caption{设置板卡编号}
\end{figure}
将板卡名称设置为项目名并保存,例如:
\begin{figure}[H]
\centering
\begin{tikzpicture}
\node [anchor=south west, inner sep=0] (image) at (0,0) {
\begin{tcolorbox}[colframe=gray!20]
\begin{footnotesize}
\begin{Verbatim}
=> setenv board_name SY-3588J01A
=> saveenv
Saving Environment to MMC...
Writing to MMC(0)... done
\end{Verbatim}
\end{footnotesize}
\end{tcolorbox}
};
\begin{scope}[
x={($0.1*(image.south east)$)},
y={($0.1*(image.north west)$)}
]
% grid for debugging
%\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.7, 5.0) rectangle (4.5, 9.0);
\end{scope}
\end{tikzpicture}
\caption{设置板卡名称}
\end{figure}

48
tex/issue.tex

@ -90,3 +90,51 @@ sysmem_dump_all:
如果你要更改规则,需要先将文件{\small \texttt{80-net-setup-link.rules从/lib/udev/rules.d}} 目录复制到 {\small \texttt{/etc/udev/rules.d}} 目录。
因为 {\small \texttt{/etc/udev/rules.d}} 目录下规则的优先级高于 {\small \texttt{/lib/udev/rules.d}} 目录,识别网卡并命名时,
会优先从 {\small \texttt{/etc/udev/rules.d}} 目录下寻找规则文件。将 {\small \texttt{ID\_NET\_NAME}} 改成 {\small \texttt{ID\_NET\_SLOT}} 即可。
\section{rc.local 脚本没执行}
编辑 {\small \verb+/usr/lib/systemd/system/rc-local.service+} 文件,添加以下内容:
\begin{minted}[bgcolor=lightgray!30,fontsize=\small]{ini}
[Install]
WantedBy=multi-user.target
\end{minted}
然后执行下面命令开启 {\small \verb+rc-local.service+} 服务:
\begin{minted}[bgcolor=lightgray!30,fontsize=\small]{bash}
systemctl enable rc-local.service
\end{minted}
\begin{comment}
ip -details -json link show | jq -r '
.[] |
if .linkinfo.info_kind // .link_type == "loopback" then
empty
else
.ifname
end
'
ip -details -json link show | jq -r '
.[] |
if .ifname == "eth0" then
.address
end
'
\end{comment}
\begin{comment}
ip -details -json address show | jq --join-output '
.[] |
if .linkinfo.info_kind // .link_type == "loopback" then
empty
else
.ifname ,
( ."addr_info"[] |
if .family == "inet" or .family == "inet6" then
" " + .local
else
empty
end
),
"\n"
end
'
\end{comment}

28
tex/wsl2.tex

@ -16,7 +16,7 @@ wsl -t <子系统名>
wsl --export <子系统名> <保存路径>
\end{minted}
例如:
\begin{minted}[bgcolor=lightgray!30,fontsize=\small]{bash}
\begin{minted}[bgcolor=lightgray!30,fontsize=\small]{pwsh}
wsl --export Ubuntu-22.04 e:\ubuntu-22.04-wsl2.zip
\end{minted}
\item 注销子系统:
@ -29,7 +29,7 @@ wsl --unregister <子系统名>
wsl --import <子系统名> <子系统安装路径> <子系统保存路径>
\end{minted}
例如:
\begin{minted}[bgcolor=lightgray!30,fontsize=\small]{bash}
\begin{minted}[bgcolor=lightgray!30,fontsize=\small]{pwsh}
wsl --import Ubuntu-22.04 e:\wls2\ubuntu2204 e:\ubntu-22.04-wsl2.zip
\end{minted}
\item 修改默认登录用户:
@ -52,7 +52,7 @@ ubuntu2204.exe config --default-user <默认用户名>
wsl --mount --vhd <pathToVHD>
\end{minted}
例如:
\begin{minted}[bgcolor=lightgray!30,fontsize=\small]{bash}
\begin{minted}[bgcolor=lightgray!30,fontsize=\small,style=bw]{pwsh}
wsl --mount --vhd e:\wsl2\rk3588\rk3588.vhdx --partition 1 --name rk3588
\end{minted}
@ -86,4 +86,24 @@ lsusb
\begin{minted}[bgcolor=lightgray!30,fontsize=\small]{bash}
usbipd detach --busid <busid>
\end{minted}
\end{enumerate}
\end{enumerate}
\section{Windows 端口转发}
按下面的步骤进行设置:
\begin{enumerate}[(1), nosep]
\item 管理员权限启动windows powershell,运行如下代码。这里以设置80端口转发WSL的地址的80端口为例:
\begin{minted}[bgcolor=lightgray!30,fontsize=\small]{pwsh}
netsh interface portproxy add v4tov4 listenport=80 \
listenaddress=0.0.0.0 connectport=80 \
connectaddress=172.19.11.104 protocol=tcp
\end{minted}
\item 查看端口转发情况:
\begin{minted}[bgcolor=lightgray!30,fontsize=\small]{bash}
netsh interface portproxy show all
\end{minted}
\item 删除端口转发:
\begin{minted}[bgcolor=lightgray!30,fontsize=\small]{pwsh}
netsh interface portproxy delete v4tov4 listenport=80 \
listenaddress=0.0.0.0
\end{minted}
\end{enumerate}

Loading…
Cancel
Save