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.

Making the rootfs.tar.bz2 is very very slow in Android system build

Hi,

When I running the following commands:

     $ sudo ../../../../build/tools/mktarball.sh ../../../host/linux-x86/bin/fs_get_stats android_rootfs . rootfs rootfs.tar.bz2

   The feedback is 

 ../../../../build/tools/mktarball.sh: line 20: cd: android_rootfs: No such file or directory

And then it start to build,

At the beginning 1.0G is very fast, but after this it is running very very slow.

I start in yesterday 3:00pm, it is still running but the size of file is 1.33G.

I leave it to run over night.

Is it this correct?What make it too slow?

 

I follow all in TI Android GingerBread 2.3 DevKit 1.0 Developers Guide to build.


 

 

 

 

  • Hi Eric,

    Could you follow the steps in the latest guide at http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_DeveloperGuide#To_build_Android_filesystem

    The Android filesystem build may take 1 hour in a machine with 4GB RAM.

    Regards,

    Arun

  • hi Arun Joseph,

     

          Thank you for your reply.

          Now I can build it very fast. The TI-Android-GingerBread-2.3-DevKit-1.0 DeveloperGuide is missing the line for mkdir of android_rootfs...so on.

     

    Thanks

    Eric

     

  • Hi,

           I had another problem:

           I try to use mkmmc-android.sh to put file into SD Card.

    sudo ./mkmmc-android /dev/mmcblk0 MLO u-boot.bin uImage boot.scr rootfs.tar.bz2

         I get error for this:

         " mkmmc-android: command no find"

     

         I don't know why it is happened. Is it any package missing for running mkmmc-android.sh?

     


     

  • mkmmc-android.sh is available in the prebuilt images package.

  • Hi Vishveshwar,

     

                   I had already put all the file into image_folder including mkmmc-android.sh.

    The following is the terminal list:

    ///////

    eric2011@eric2011-laptop:~/rowboat-android/TI_Android_GingerBread_2_3_Sources/image_folder$ dir
    boot.scr  mkmmc-android.sh  MLO  rootfs.tar.bz2  u-boot.bin  uImage
    eric2011@eric2011-laptop:~/rowboat-android/TI_Android_GingerBread_2_3_Sources/image_folder$ mkmmc-android /dev/mmccblk0 boot.scr  MLO  rootfs.tar.bz2  u-boot.bin  uImage
    mkmmc-android: command not found

    /////

     

     

  • Eric,

    It looks like you are missing the leading './' so the system is unable to locate this script.Also the order of the files is important

    Please run it as follows: (See http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_UserGuide#Procedure_to_populate_MMC.2FSD_Card)

    eric2011@eric2011-laptop:~/rowboat-android/TI_Android_GingerBread_2_3_Sources/image_folder$ sudo ./mkmmc-android /dev/mmcblk0 MLO u-boot.bin uImage boot.scr  rootfs.tar.bz2

    Since you are not root you need to run the command with 'sudo' to be able to write on sdcard

  • Hi, Vishveshwar,

    I had tried your suggestion. The result is same "command no find".

    Please see below:

    ///// i try

    eric2011@eric2011-laptop:~/rowboat-android/TI_Android_GingerBread_2_3_Sources/image_folder$ sudo ./mkmmc-android /dev/mmcblk0 MLO u-boot.bin uImage boot.scr rootfs.tar.bz2
    [sudo] password for eric2011:
    sudo: ./mkmmc-android: command not found
    eric2011@eric2011-laptop:~/rowboat-android/TI_Android_GingerBread_2_3_Sources/image_folder$ cd ..

    //// i try
    eric2011@eric2011-laptop:~/rowboat-android/TI_Android_GingerBread_2_3_Sources$ sudo ./mkmmc-android /dev/mmcblk0 MLO u-boot.bin uImage boot.scr rootfs.tar.bz2
    sudo: ./mkmmc-android: command not found

    /// i try
    eric2011@eric2011-laptop:~/rowboat-android/TI_Android_GingerBread_2_3_Sources$ ./mkmmc-android /dev/mmcblk0 MLO u-boot.bin uImage boot.scr rootfs.tar.bz2
    bash: ./mkmmc-android: No such file or directory

    Is it the problem for bash?

  • I am sorry. There was a typo in the above command.

    You should use ./mkmmc-android.sh not ./mkmmc-android

  • Hi, Vishveshwar:

    The result is same

    eric2011@eric2011-laptop:~/rowboat-android/TI_Android_GingerBread_2_3_Sources/image_folder$ sudo ./mkmmc-android.sh /dev/mmcblk0 MLO u-boot.bin uImage boot.scr rootfs.tar.bz2
    sudo: unable to execute ./mkmmc-android.sh: No such file or directory
    eric2011@eric2011-laptop:~/rowboat-android/TI_Android_GingerBread_2_3_Sources/image_folder$ ./mkmmc-android.sh /dev/mmcblk0 MLO u-boot.bin uImage boot.scr rootfs.tar.bz2
    bash: ./mkmmc-android.sh: /bin/bash^M: bad interpreter: No such file or directory

  • Hi Eric,

    I think the mkmmc-android.sh is in DOS format. Please convert this file to UNIX format and try again.

    command:

    dos2unix mkmmc_android.sh

    chmod 777 mkmmc_android.sh

    Thanks and Regards,

    Pankaj Bharadiya

  • Hi,

     

      The mkmmc_android.sh is working when I replace another file which download from web.

      I had an question that how to find the MMC card device name .I had gotten the name of device from Disk Utility and put it into device name /dev/.... But it is not working.

  • Hi Eric,

    You can use sudo  fdisk -l command to see the SD card mount point.

    Thanks and Regards,

    Pankaj Bharadiya

  • 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.

    Anybody can help me?