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.

need technical description of booting android-gingerbread-2.3 from SD/MMC card

Other Parts Discussed in Thread: WL1271

Hello,

I compiled and build images for x-loader, u-boot and kernel also I integrated WL1271 daughter card drivers into android root filesystem.

Now I have question what exactly

$ ./mkbootscr  command will do?

and to generate boot.scr, In which directory I should execute this command?

I executed that command but (mkbootscr located at /home/ashvin/Tools/mk-bootscr/mkbootscr)

ashvin@DELL-inspiron:~/Tools/mk-bootscr$ ./mkbootscr 

./mkbootscr: 18: mkimage: not found

to follow these below steps

  • Copy all the images to one folder
  $ mkdir image_folder
  $ cp kernel/arch/arm/boot/uImage image_folder
  $ cp u-boot-omap3/u-boot.bin image_folder
  $ cp x-loader-03.00.02.07/MLO image_folder
  $ cp Tools/mk-bootscr/boot.scr image_folder
  $ cp out/target/product/omap3evm/rootfs.tar.bz2 image_folder
  $ cp media_clips image_folder

 $ cp Tools/mk-mmc/mkmmc-android.sh image_folder 
   $ ./mkmmc-android <sd card mounted dev folder example:/dev/sdc> MLO u-boot.bin uImage boot.scr rootfs.tar.bz2 Media_Clips

 I need boot.scr....

 

os: ubuntu 10.04 - 64 bit

version: android-gingerbread 2.3

platform: AM/DM37x EVM

thanks&cheers

ashwin

  • Hi Ashwin,

    Please download Tools from http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/TI_Android_DevKit/TI_Android_GingerBread_2_3_DevKit_1_0/exports/Tools.tar.gz

    Extract Tools.

    cd to mkbootscr

    The utilities mkbootscr and mkImage are present over there.

    Edit mkbootscr with the boot commands you would like to have. Execute the script mkbootscr to generate boot.scr.

    mkbootscr internally invokes mkImage.

    Regards,

    Arun

  • ashwin kumar mantoor said:

    Now I have question what exactly

    $ ./mkbootscr  command will do?

    I don't have this command, but I bet it is a bash script which calls mkimage util to convert a txt file to boot.scr.

    ashwin kumar mantoor said:

    and to generate boot.scr, In which directory I should execute this command?

    You might want to read this script; I guess it looks for a txt file in the current directory.

    ashwin kumar mantoor said:

    I executed that command but (mkbootscr located at /home/ashvin/Tools/mk-bootscr/mkbootscr)

    ashvin@DELL-inspiron:~/Tools/mk-bootscr$ ./mkbootscr 

    ./mkbootscr: 18: mkimage: not found

    You have to install mkimage util first. howto install it depends on the Linux distro. I personally do not use Ubuntu, not sure which package has it.

  • could you explain how to edit mkbootscr? i am new to this...

     

  • Ya ..Bin Liu, I am using ubuntu so I need to install uboot-mkimage before running ./mkbootscr.

    Now its perfect..

    thanks always....

  • Hi Bin, 

      $ ./mkmmc-android <sd card mounted dev folder example:/dev/sdc> MLO u-boot.bin uImage boot.scr rootfs.tar.bz2 Media_Clips
    if I run this command, I got this 
    ashvin@DELL-inspiron:~/rowboat-android/image_folder$  ls
    
    boot.scr  mkmmc-android.sh  MLO  rootfs.tar.bz2  u-boot.bin  uImage
    
    ashvin@DELL-inspiron:~/rowboat-android/image_folder$  ./mkmmc-android /dev/sdb MLO u-boot.bin uImage boot.scr rootfs.tar.bz2
    
    bash: ./mkmmc-android: No such file or directory
    
    
    :(
    I know there is no file mkmmc-android....but confused...

    I read README.txt file and I tried two ways of invoking script 

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

     

    ashvin@DELL-inspiron:~/rowboat-android/image_folder$ sudo ./mkmmc-android /dev/sdb MLO u-boot.bin uImage boot.scr rootfs.tar.bz2

    sudo: ./mkmmc-android: command not found

     

     2)    sudo ./mkmmc-android.sh /dev/sdb

    ashvin@DELL-inspiron:~/rowboat-android/image_folder$ ./mkmmc-android.sh /dev/sdb 

    bash: ./mkmmc-android.sh: /bin/bash^M: bad interpreter: No such file or directory

     

    I run this command where I stored all the image files image_folder.

     

  • Hi Ashwin,

    I think there is a confusion over here...

    1. mkmmc-android.sh is not a standard command. It is a script file which will prepared sd card for android filesystem

    2. One can find this script under Tools/ directory.

    mkmmc-android Usage:

    mkmmc-android.sh <device> <MLO> <u-boot.bin> <uImage> <boot.scr> <rootfs tar.bz2 > <Optional Media_Clips>

    example:

    sudo <Tools>/mkmmc-android.sh /dev/sdc MLO u-boot.bin uImage boot.scr rootfs.tar.bz2

    I hope this help you.

    BR,

    satish

  • I found this error, but no one answered me, please check it out.

    http://e2e.ti.com/support/embedded/f/509/t/112282.aspx

  • yes satish, I know that is not a standard command, So I downloaded Tools.tar.gz from devkit and extracted.from that folder I copied mkmmc-android.sh script file to the folder where I moved all image files MLO,u-boot.bin,uImage,boot.scr and rootfs.tar.bz2. there I run the script file with SD card location and all files.

     

    ashvin@DELL-inspiron:~/rowboat-android/image_folder$ sudo /home/ashvin/Tools/mk-mmc/mkmmc-android.sh /dev/sdb MLO u-boot.bin uImage boot.scr rootfs.tar.bz2 

    sudo: unable to execute /home/ashvin/Tools/mk-mmc/mkmmc-android.sh: No such file or directory

    In my friend system I can able to run the script but not in my system.

     

  • To avoid error "mkmmc-android.sh: command not found" you should type in terminal 

    sudo chmod +x mkmmc-android.sh 

    After typing this command you can execute script