apt-get install -y python3 make gcc unzip pigz bison flex libncurses-dev squashfs-tools bc device-tree-compiler libssl-dev cmake
su - root
apt-get install uuid-dev
cd /opt
tar -xzvf Ascend310B-hboot2-source.tar.gz
cd Ascend310B-hboot2-source
cd /opt/Ascend310B-hboot2-source
bash build.sh hboot2
出现如下回显,且生成“AS310B_HBOOT2_UEFI.fd”文件表示编译“AS310B_HBOOT2_UEFI.fd”文件成功。
generate /opt/Ascend310B-hboot2-source/output/AS310B_HBOOT2_UEFI.fd success! sign /opt/Ascend310B-hboot2-source/output/AS310B_HBOOT2_UEFI.fd success!
编译后的“AS310B_HBOOT2_UEFI.fd”文件会自动存放于“Ascend310B-hboot2-source/output”目录下。