We are trying to customize the u-boot of verdin am62 for our custom board in which we want to remove the usb boot, ethernet boot as well as booting MMC1.
In usb boot we want to change the usb instance for usb-boot for updating the image in mmcblk0.
currently we have a workspace under build as u-boot-toradex-ti, but we are not finding any device tree files to do so.
and also kindly provide the information on how to test the new u-boot image after building.
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
To customize the U-Boot for your Verdin AM62 module and remove USB, Ethernet, and MMC1 boot options, you will need to modify the U-Boot configuration files rather than the device tree files. U-Boot boot options are typically controlled through configuration settings in the U-Boot source code.
Here are the steps you can follow:
Access U-Boot Configuration: Navigate to your U-Boot source directory, which you mentioned as u-boot-toradex-ti.
Modify Configuration Files: Look for the configuration header files, typically named include/configs/<board_name>.h. This file contains macros that define the boot options.
Disable Boot Options:
USB Boot: Locate and comment out or remove any macros related to USB boot, such as CONFIG_CMD_USB or CONFIG_USB_STORAGE.
Ethernet Boot: Similarly, find and disable macros like CONFIG_CMD_NET or CONFIG_NET.
MMC1 Boot: Look for CONFIG_MMC or CONFIG_CMD_MMC and adjust accordingly.
Rebuild U-Boot: After making these changes, rebuild U-Boot to apply the new configuration. Use the appropriate make commands for your setup, ensuring you target both the A53 and R5 processors if required.
Deploy the New U-Boot: Once built, deploy the new U-Boot binary to your module.
Device trees are primarily used for hardware configuration and peripheral setup, not for boot option management in U-Boot. Therefore, your focus should be on the U-Boot configuration files for this task.
By following these steps, you should be able to customize the U-Boot to meet your specific boot requirements for the Verdin AM62 module.
If you have any more questions, feel free to ask!
Best regards,
Toradex AI Assistant.
Please, also check if these links can help you solve your problem:
If I understand your question correctly, you want to modify the boot targets (either change the order in which the bootloader will look into targets or remove some of them) in the uboot environment. Is that the case? Do you have a specific reason why you want to remove USB, ethernet and MMC1 from the targets list?
Now regarding the file you need to modify to change the order of boot targets:
Currently, we have an include file per device. In there you can specify the U-Boot environment and also the boot devices. Here for example the verdin-imx8mp: https://git.toradex.com/cgit/u-boot-toradex.git/tree/include/configs/verdin-imx8mp.h?h=toradex_imx_lf_v2024.04
The macro BOOT_TARGET_DEVICES will then create the boot target list. If you want to add for example USB as first boot source, you could do something like this: