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.

SD Card building Problem for Android GingerBread

Other Parts Discussed in Thread: OMAP3530

Hi,

 

       I found problem when I am running as following:

eric1112@eric1112-laptop:~/rowboat-android/TI_Android_GingerBread_2_3_Sources/image_folder$ sudo ./mkmmc-android.sh /dev/mmcblk0p MLO u-boot.bin uImage boot.scr rootfs.tar.bz2
All data on /dev/mmcblk0p now will be destroyed! Continue? [y/n]
y
[Partitioning /dev/mmcblk0p...]
expr: syntax error
expr: syntax error
[Making filesystems...]
[Copying files...]
cp: cannot stat `MLO/normal/boot.scr': Not a directory
[Done]

All the files is in the image_folder.

How many Partition for SD and what format such as FAT32..?

Anybody can help me?

  • There will be 3 partitions, #1 and #3 is FAT32, #2 is ext3.

    script mkmmc-android.sh has the details.

  • Hi, Bin,

     

        Thank you for your reply.

    What is the prefer size of each partition?

    Where can I find mkmmc-android.sh? I am using OMAP3530. I get one from Tools but it is not working and then I get one from web. It can build but it has error.

    Best Regards

    Eric


     

  • Hi Eric,

    If mkmmc-android.sh scirpt is not working for you then you can try partitioning SD card mannually.

    You can take a look at following  link that describes how to create a SD card partition.

    http://code.google.com/p/beagleboard/wiki/LinuxBootDiskFormat

     

    My 2 GB SD card partitions has

    1. Boot partition : FAT32 : 64MB

    2. Rootfs partition: EXT3 : 1GB

    3. Data partition:   FAT32 : (Remaining size)

    Regards,

    Pankaj Bharadiya

     

  • Hi Pankaj,

            Thank you for your reply.

          If I make the partition according your suggestion, I need to put the files into each partition. How and where is the files put?

    Best Regards

    Eric

     

     

  • Hi Eric,

    1. Copy MLO, uboot.bin, boot.scr and uImage in boot partition.

    2. Untar rootfs.tar.bz2 into Rootfs partition

    3. Copy audio, video and Images (if any) in data partition.

    Regards,

    Pankaj Bharadiya

  • Hi Pankaj,

     

             Thank you for your reply.

           I will try it.

     

    Best Regards

    Eric

  • Hi Pankaj,

    I had manually prepared the partitions in my 4gb micro SD card through a linux utility , GParted , which are as follows:

    1)Boot Partation : 512 MiB -> fat32 (primary partition)

    2)Root Files System: 1024 MiB ->ext3 (primary partition)

    3)Data Partition: Remaining of the card ->fat32 (primary partition)

    Also I had copied the files in the respective partitions suggested by you in the above post as:

    1. Copy MLO, uboot.bin, boot.scr and uImage in boot partition.

    2. Untar rootfs.tar.bz2 into Rootfs partition

    3. Copy audio, video and Images (if any) in data partition.

    There was one more file 'x-load.bin.ift' in the Boot Directory when i untared 'beagleboard-xm.tar.gz' . I had not copied the this file to the partition #1.

    Now when i plug my SD card in my beagle board xm , nothing is happening... :( :(  No boot no display !!

    Please suggest what could be the possible reasons behind the same.Had I left any step?

    Thanks in advance.

     

    Regards,

    Saurabh Arora

  • MLO has to be the very first thing in the boot partition. If you have copied all the files together it may not have happened.

    After creating the boot partition, copy only the MLO into it. Once it is successfully copied, copy the rest... u-boot, uImage and boot.scr.