Jump to content

mthmulders

Members
  • Posts

    6
  • Joined

  • Last visited

Reputation Activity

  1. Like
    mthmulders got a reaction from Igor in U-Boot: Error: “autodetectfdt” not defined   
    Well, good news: my Cubox is booting again! Thanks again for the support, Igor. Here's what I did:
     
    I looked at the definition of autodetectfdt that I mentioned earlier. I saw it sets two other variables: fdt_prefix and fdt_file. I figured out their values based on the results of printenv cpu and printenv board.
    Then I booted the Cubox with a micro-USB cable attached and stopped autoboot. I gave the following commands:
    setenv fdt_prefix imx6q setenv fdt_file ${fdt_prefix}-cubox-i.dtb setenv autodetectfdt "if test ${cpu} = 6SOLO || test ${cpu} = 6DL; then setenv fdt_prefix imx6dl; else setenv fdt_prefix imx6q; fi; if test ${board} = mx6-cubox-i; then setenv fdt_file ${fdt_prefix}-cubox-i.dtb; else setenv fdt_file ${fdt_prefix}-hummingboard.dtb; fi;" saveenv Then the autoboot succeeded and I was able to log in, over the serial line. So I could upgrade U-Boot to 5.44 and reboot again. The system now boots fine!
  2. Like
    mthmulders reacted to Igor in U-Boot: Error: “autodetectfdt” not defined   
    Try this. Insert SD card on some Linux computer and flash attached files:

    dd if=SPL of=/dev/SD_CARD_DEVICE bs=512 seek=2 status=noxfer
    dd if=u-boot.img of=/dev/SD_CARD_DEVICE bs=1K seek=42 status=noxfer
     
    Make sure you flash SDcard and not your hard drive. Device name on your computer will be something like /dev/sdb or /sdbc ... 
    SPL
    u-boot.img
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines