U-Boot: Wrong Image Format for bootm command & SATA uImage

Discussion in 'Linux Ubuntu' started by feilipu, Dec 7, 2013.

  1. feilipu

    feilipu New Member

    Joined:
    Nov 9, 2013
    Messages:
    9
    Likes Received:
    1
    I was having problems with the new U-Boot and the SATA drive.
    And these problems have led me to being able to put the uImage onto the SATA drive...

    The U-Boot serial console looks like this:
    Code:
    Hit any key to stop autoboot:  3 2 1 0 
    MMC Device 2 not found
    no mmc device at slot 2
    MMC Device 2 not found
    ** Bad device mmc 2 **
    Wrong Image Format for bootm command
    
    Anyway, the incantation to fix this, and to move the uImage to the SATA drive, is to input this at the U-Boot prompt:
    Code:
    setenv bootdev "sata init; sata dev 0; ext2load sata 0"
    saveenv
    boot
    
    The error shouldn't come back again.

    Now there is no need to have the uImage on the uSD card either.
     
  2. sbfreddie

    sbfreddie New Member

    Joined:
    Nov 19, 2013
    Messages:
    2
    Likes Received:
    0
    Re: U-Boot: Wrong Image Format for bootm command & SATA uIma

    feilipu:
    These commands do not work on the present downloaded UDOO Ubutu 12.04 image.
    The only way I could get the U-Boot boot loader to load the system from the SATA drive was to change the environmental variable
    mmcroot from /dev/mmc to /dev/sda1 rootwait rw.
    And then do a saveenv command.

    Thanks,
    Freddie
     

Share This Page