Verdin am62 u-boot customization

Hi all,

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?

:+1: :-1:


Hello,

To customize the U-Boot for your Verdin AM62 module, you’ll need to modify the U-Boot configuration to disable specific boot options like USB, Ethernet, and MMC1. Here’s a step-by-step guide to help you through the process:

  1. Disabling Boot Options:

    • Navigate to the U-Boot source directory, typically under include/configs/.
    • Look for configuration macros such as CONFIG_CMD_USB, CONFIG_CMD_NET, and CONFIG_CMD_MMC.
    • Comment out or undefine these macros to disable the respective boot options.
  2. Changing USB Boot Settings:

    • Modify the board-specific initialization code, usually found in the board/ directory.
    • Adjust the USB instance or port settings in the relevant functions to suit your requirements.
  3. Testing the New U-Boot Image:

    • Build the U-Boot image using the appropriate make commands for your architecture.
    • Deploy the new U-Boot image to your hardware using a tool like the Toradex Easy Installer or by flashing it directly to the boot media (e.g., eMMC or SD card).
    • Always keep a backup of the original U-Boot image to revert changes if necessary.

Device trees are mainly for Linux kernel configuration and are not directly involved in U-Boot customization. However, if your changes require hardware configuration adjustments, you might need to update the device tree accordingly.

I hope this helps you customize and test your U-Boot setup for the Verdin AM62 module. If you have further questions, feel free to ask.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Flashing u-boot manually on verdin am62.

Hi @naveenkumar.muthusam ,
I hope you were able to solve your issue after following suggestions from Toradex AI.
Let us know if more help needed

Hi @sahil.tx ,

i am able to find the boot order under /include/configs under verdin_am62.h, but unable to find file where usb can be chnged, can you please check this.

Hi @naveenkumar.muthusam ,
Before recompiling the customized u-boot, did you test your modifications in your running image?
You can simply modify the boot options from the u-boot and test and then go for compiling customized u-boot.

Hi @sahil.tx ,

Thanks for your reply.

I have not yet tested the u-boot. I want to know more about testing u-boot in verdin am62 SOM as well. do we need to place the u-boot files under /boot or can you please let me know the procedure how to boot the latest image of u-boot.

and also i am still looking for file in which usb instance need to be changed. currently in u-boot usb0 is working. but in our board we have provided provision for usb1, so i need to change it to the USB1 and also this usb can work as Host only as per the hardware configuration.

kindly provide details for this as well.

Thanks in advance

Hi @naveenkumar.muthusam ,
You just need to power ON your board and press space to stop and u-boot. Then modify the u-boot variables as per your requirement.
After stopping at u-boot, run printenv command to see all the currently configured variables.

Hi @sahil.tx,

I think you misunderstood the question. I understood that changes can be done at u-boot after the board is powered on, we have already tested this.

what we are looking is, in u-boot, MMC0 boot only should be available and rest of the boot options like MMC1 and ethernet booting needs to be removed.

currently in u-boot we are able to detect the usb connected under usb0, but we are unable to detect the devices connected to the usb1 instance. we want usb1 instance to be also working from u-boot.

please provide information for this.