Script to Flash a Linux System into a SD card

Document created by Leonardo Sandoval Gonzalez Employee on Dec 11, 2012Last modified by Jodi Paul on Apr 22, 2013
Version 5Show Document
  • View in full screen mode

This is a generic script which flashes a Linux System (U-boot, uImage and root filesystem) into a SD card.

 

Steps:

    1. Download the script into a Linux system

    2. Make the script executable (chmod +x mk_mx_sd)

    3. Run it with '-H' to know its usage.

    4. Run the script with real parameters, specifying the paths for U-boot, uImage and the root filesystem as seen above

    5. Plug the SD into your target, boot the board and change the corresponding U-boot variables

 

$ IMAGE=/data/BSP/L2.6.35_11.09.01_ER/L2.6.35_11.09.01_ER_images_MX5X

$ ./mk_mx_sd  -d /dev/sdc \

                      -u $IMAGE/u-boot-mx53-loco.bin \

                      -k $IMAGE/uImage \

                      -r $IMAGE/rootfs

 

    6. In case you only want to flash a single binary (like U-boot), just specify the U-boot parameter (-u)

Attachments

    Outcomes