Script to Flash a Linux System into a SD card

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Script to Flash a Linux System into a SD card

Script to Flash a Linux System into a SD card

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)

Labels (1)
No ratings
Version history
Last update:
‎12-11-2012 09:20 AM
Updated by: