This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP4460 fastboot partition error

Hi,
I am trying to get fastboot to format an SD card on a custom board that has an OMAP4460 and I am getting a strange partition error. Can some one help me properly define or identify the SD card partition?

The device goes into fastboot mode, but executing the command "sudo ./fastboot flash xloader ./MLO" fails with the message:

sudo ./fastboot flash xloader ./MLO
sending 'xloader' (23 KB)...
OKAY [  0.006s]
writing 'xloader'...
FAILED (remote: partition does not exist)
finished. total time: 0.010s

Here is the serial output during the whole process.

[ aboot second-stage loader ]
 
MSV=00000000
 
jumping to 0x80e80000...
 
 
U-Boot 1.1.4-gc2a7c898-dirty (Oct 10 2013 - 09:09:55)
 
Load address: 0x80e80000
DRAM:  1024 MB
Flash:  0 kB
Using default environment
 
In:    serial
Out:   serial
Err:   serial
Initializing SD(0) Slot.
ptbl slot: SD:(0).
efi partition table not found
efi partition table:
ptbl slot: EMMC:(1).
Read not permitted as Card on SLOT-1 not Initialized
efi partition table not found
Net:   KS8851SNL
Tablet: HOME key pressed: entering fastboot....
timed out in wait_for_pin: I2C_STAT=0
I2C read: I/O error
timed out in wait_for_pin: I2C_STAT=0
I2C read: I/O error
Device Serial Number: 01543E2009010014
Fastboot entered...
Download Size 0
Download Size 0
Starting download of 24484 bytes
Download Size 24484
Partition:'<NULL>' does not exist
Download Size 0

The SD card definitely has the boot partition on it. The SD card has the following partitions:

boot - formatted FAT16, 65MB
rootfs - formatted ext3, 1.87 GB
data - formatted FAT32, 1.64GB

My end goal is to keep each of these partitions, but overwrite them with new files. Thanks for the help.

  • Hello,

    Are you trying to boot android from your sd card, maybe you're using wrong number of headers or wrong cylinders size ?

    Could you try the script from the following page:
    http://omappedia.org/wiki/Android_Build_SD_Configuration (see section Alternative Script to format SD Cards for 3 partitions) 

    You can also check the following e2e thread http://e2e.ti.com/support/omap/f/849/t/215322.aspx.

    Best Regards,

    Yordan

  • Thank you for the reply Yordan.  I am able to format the SD card when I remove it from the device, however, I am looking for a method to reformat and reprogram while the SD card remains in the target.  The reason I am trying to do this is because the target will be enclosed in a case and I will only have access to the USB port.  I am able to get the unit into fastboot mode as mentioned above.  I am now trying to figure out how to use fastboot over USB to reflash the SD card.  Do you have any tips on that?  Thank you again.  

    Peter

  • I tried the following steps (successfully) on my blaze board with OMAP4470:

    1. Configured the sysboot switches to boot from external sd card.

    2. prepared my sdcard with omap3-mkcard.sh script (i was using 2 partitions boot and Angstrom

    3. booted from the prepared sdcard and entered fastboot mode.

    4. run the following commands:
    ./fastboot oem format

    ./fastboot flash xloader ./MLO

    ./fastboot flash bootloader ./u-boot.bin

    The result was:

    from my host pc:

    sending 'xloader' (39 KB)...
    OKAY [  0.008s]
    writing 'xloader'...
    OKAY [  0.019s]
    finished. total time: 0.027s

    sending 'bootloader' (164 KB)...
    OKAY [  0.013s]
    writing 'bootloader'...
    OKAY [  0.041s]
    finished. total time: 0.053s

    From the debug console (connected to the board usb):
    Starting download of 40112 bytes                                               
    Download Size 40112                                                            
    writing to partition 'xloader'                                                 
    Initializing 'xloader'                                                         
    Writing 'xloader'                                                              
    Writing 'xloader' DONE!

    Starting download of 168360 bytes                                              
    Download Size 168360                                                           
    writing to partition 'bootloader'                                              
    Initializing 'bootloader'                                                      
    Writing 'bootloader'                                                           
    Writing 'bootloader' DONE!

    I followed the steps from http://omappedia.org/wiki/4AJ.2.5P1_OMAP4_Jelly_Bean_Release_Notes (section First time flashing on eMMC). Those are the steps I found.

    Best Regards,

    Yordan




  • Thanks for the help.  I what was causing me from doing the same.  My u-boot build was first trying to boot from SD, then from EMMC, then entering fastboot mode.  Because of this, when I tried to issue format commands in fastboot mode, it was trying to format the EMMC (and there is no EMMC on this board).  I modified the code to only boot from SD and now I can format and flash the SD card in fastboot mode.  Thanks for the help!

    Peter

  • Sorry for late response.

    You can find both methods in next 2 links.

    using Fastboot and SDCard

    http://e2e.ti.com/support/omap/f/849/p/269068/1012981.aspx#1012981

    and using copy paste method in SDCard

    http://e2e.ti.com/support/omap/f/849/p/272894/1008321.aspx#1008321

    creating the 3 partitions or manually using 2 partitions, check to modify the geometry of the SDCard as described.

    http://e2e.ti.com/support/omap/f/849/p/269068/940613.aspx#940613

    you can use the script to format the SDCard to 3 partitions, and about the size of the last partition of fastboot and fastboot command.sh script you can modify the board/omap/mmc.c partition table to use a fixed size of 2GB in uboot, it was this the post where we saw the this issue right?

    And it is great that changing to 45 made things work, I didn't had a chance to try anything else but debugging it at this point.

  • I remember about the post where fastboot.sh was failing for SDCard and the userdata.img partition, it is the first link from the previous posts where fastboot method is explained, there is a part where flashing SDCard fails in the last stage for userdata.img, it is because the maximum size is 2GB partition then it requires a block method that is failing, or other reason could be that I was not using correct geometry for the SDCard and maybe the OMAP was not able to use properly the block method above 2GB. Just check that if you decide to use Fastboot method. All the information is in the first link and subsequent posts.