Browse Source

add bitbake build kernel

Signed-off-by: surenyi <surenyi82@163.com>
master
surenyi 2 weeks ago
parent
commit
2fd26f99cc
  1. BIN
      pdf/rk3588_guide.pdf
  2. 78
      tex/openeuler.tex

BIN
pdf/rk3588_guide.pdf

Binary file not shown.

78
tex/openeuler.tex

@ -518,4 +518,82 @@ SRC_URI[md5sum] = "491aeb15c1c72d59b9288a5a6953e8a9"
SRC_URI[sha256sum] = "ad75a6ed3dc0d9732945b2e5483cb41dc8b4b528a169315e499c6861952e73b3"
\end{minted}
\item {去除密码到期}
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash}
sudo chage -M -1 root
\end{minted}
\end{enumerate}
\section{单独编译内核}
用下面命令可以单独编译内核:
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash}
oebuild bitbake -c clean -f -v virtual/kernel
oebuild bitbake -c compile -f -v virtual/kernel
oebuild bitbake -c deploy -f -v virtual/kernel
\end{minted}
编译完成后,进入 output/ 目录下文件目录,生成一个 boot.its 文件,内容如下:
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{devicetree}
/dts-v1/;
/ {
description = "FIT image with Linux kernel, FDT blob and resource";
images {
fdt {
data = /incbin/("../../tmp/deploy/images/sytc3588/rk3588-sytc.dtb");
type = "flat_dt";
arch = "arm64";
compression = "none";
load = <0xffffff00>;
description = "SYTC RK3588 A3101 Board";
hash {
algo = "sha256";
};
};
kernel {
data = /incbin/("Image.gz");
type = "kernel";
arch = "arm64";
os = "linux";
compression = "gzip";
entry = <0xffffff01>;
load = <0xffffff01>;
description = "Linux sytc3588 5.10.0-openeuler";
hash {
algo = "sha256";
};
};
};
configurations {
default = "conf";
conf {
rollback-index = <0x00>;
fdt = "fdt";
kernel = "kernel";
description = "A3101 with openEuler";
signature {
algo = "sha256,rsa2048";
padding = "pss";
key-name-hint = "dev";
sign-images = "fdt", "kernel";
};
};
};
};
\end{minted}
执行下面命令,生成 boot.img 文件:
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash}
gzip -9 Image
mkimage -f boot.its -E -p 0x800 boot.img
\end{minted}
%\chapter{移植 OpenopenEuler Embedded}
Loading…
Cancel
Save