§2023-08-26
以下 is going no where
(chroot) hc4Gentoo # emerge --sync
# emerge --search u-boot
Results for search key : u-boot ]
Searching...
* dev-embedded/u-boot-tools
Latest version available: 2023.01
Latest version installed: [ Not Installed ]
Size of files: 18126 KiB
Homepage: https://www.denx.de/wiki/U-Boot/WebHome
Description: utilities for working with Das U-Boot
License: GPL-2
[ Applications found : 1 ]
# emerge dev-embedded/u-boot-tools
...
/usr/bin/bmp_logo
/usr/bin/dumpimage
/usr/bin/fdtgrep
/usr/bin/gen_eth_addr
/usr/bin/img2srec
/usr/bin/mkenvimage
/usr/bin/mkimage
/usr/bin/fw_printenv
fw_printenv To set a U-Boot environment variable:
bash Copy code fw_setenv variable_name value Creating U-Boot Images: U-Boot images are binary files that contain the U-Boot bootloader and optionally other components like device tree blobs. You can use the mkimage command provided by the u-boot-tools package to create U-Boot images. For example, to create a U-Boot image with a specific device tree blob:
bash Copy code mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "My Boot Script" -d boot.txt boot.scr In this example, boot.txt is a text file containing U-Boot commands that you want to execute during boot.
Customizing U-Boot Environment Scripts: U-Boot environment scripts are often used to automate tasks during boot. You can create a script with U-Boot commands and use the mkimage command to convert it into a U-Boot environment script image (usually with .scr extension).
Create a text file (e.g., boot.txt) with U-Boot commands.
Convert the script to a U-Boot environment image:
bash Copy code mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "My Boot Script" -d boot.txt boot.scr Place the generated boot.scr file on your boot media.
These are just a few examples of how you can use the u-boot-tools package. For more advanced tasks and details, refer to the U-Boot documentation and guides specific to your Odroid HC4 machine. Additionally, if you're working on a customized U-Boot setup, refer to the U-Boot documentation for the appropriate commands and procedures.
Remember that the specific steps might vary based on your system's configuration, U-Boot version, and the specific tasks you want to achieve. Always consult the relevant documentation and resources for accurate and up-to-date information.
Return to Top