gpt4 book ai didi

centos - centos 8如何安装uboot工具

转载 作者:行者123 更新时间:2023-12-04 19:35:45 31 4
gpt4 key购买 nike

我想在我的 Centos 8 中使用命令 mkimage。
我尝试使用命令 dnf install uboot-tools 以 root 身份安装 uboot-tools 但这不可用。
谁能指导我如何在我的系统上安装 uboot-tools?

最佳答案

我建议从头开始构建 u-boot 工具,这不会花费很长时间:

wget https://github.com/u-boot/u-boot/archive/v2020.07.tar.gz
tar zxf v2020.07.tar.gz
make -C u-boot-2020.07 mrproper qemu-x86_64_defconfig tools
mkimage将在此处提供: u-boot-2020.07/tools/mkimage .
ls -gG u-boot-2020.07/tools/mkimage
-rwxrwxr-x 1 240152 Sep 22 08:13 u-boot-2020.07/tools/mkimage

u-boot-2020.07/tools/mkimage
Error: Missing output filename
Usage: u-boot-2020.07/tools/mkimage -l image
-l ==> list image header information
u-boot-2020.07/tools/mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
-A ==> set architecture to 'arch'
-O ==> set operating system to 'os'
-T ==> set image type to 'type'
-C ==> set compression type 'comp'
-a ==> set load address to 'addr' (hex)
-e ==> set entry point to 'ep' (hex)
-n ==> set image name to 'name'
-d ==> use image data from 'datafile'
-x ==> set XIP (execute in place)
u-boot-2020.07/tools/mkimage [-D dtc_options] [-f fit-image.its|-f auto|-F] [-b <dtb> [-b <dtb>]] [-i <ramdisk.cpio.gz>] fit-image
<dtb> file is used with -f auto, it may occur multiple times.
-D => set all options for device tree compiler
-f => input filename for FIT source
-i => input filename for ramdisk file
Signing / verified boot not supported (CONFIG_FIT_SIGNATURE undefined)
u-boot-2020.07/tools/mkimage -V ==> print version information and exit
Use '-T list' to see a list of available image types
你现在可以将它移动到 /usr/local/bin :
sudo cp u-boot-2020.07/tools/mkimage /usr/local/bin

关于centos - centos 8如何安装uboot工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63996205/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com