[HTC Desire 526] BigCountry907:
To flash you can see that /dev/sdc is the 8 gb sd card.

Be sure to run the right command.

You could erase your computer.

Make sure you get the right /dev/***

My command will be.

sudo python msp.py -r rawprogram0.xml -d /dev/sdc

First output.

bigcountry907@bigcountry907-G551JW:~/Desktop/526-Completed/Build-Target$ sudo python msp.py -r rawprogram0.xml -d /dev/sdc

CREATED log_msp.txt

msp.py is running from CWD: /home/bigcountry907/Desktop/526-Completed/Build-Target

Usage: Mass Storage Programmer - destructively writes data to disks!!

Display this info	python msp.py
Wipe partition info (-w)	sudo python msp.py -r wipe_rawprogram_PHY0.xml -d /dev/sdb

Write a device (-r)	sudo python msp.py -r rawprogram0.xml -d /dev/sdb
Create a singleimage.bin (-r)	sudo python msp.py -r rawprogram0.xml -d 0
singleimage.bin stored to c:\temp (-r)	sudo python msp.py -r rawprogram0.xml -d 0 -t c:\temp
Create an 8GB singleimage.bin (-r)	sudo python msp.py -r rawprogram0.xml -d 16777216

no prompts (-n) i.e. automation	sudo python msp.py -n -r rawprogram.xml -d /dev/sdb
Interactively choose files (-i)	sudo python msp.py -i -r rawprogram.xml -d /dev/sdb
Specify files from rawprogram.xml (-f)	sudo python msp.py -f sbl1.mbn,sbl2.mbn -r rawprogram.xml -d /dev/sdb
Search this path for files (-s)	sudo python msp.py -s c:\windows,d:\ -r rawprogram.xml -d /dev/sdb

Patch a device (-p)	sudo python msp.py -p patch0.xml -d /dev/sdb
Patch files to singleimage (-p)	sudo python msp.py -p patch0.xml -d singleimage.bin
PRE-PATCH images for an 8GB disk (-p)	sudo python msp.py -p patch0.xml -d 16777216

ALL IN ONE STEP	sudo python msp.py -r rawprogram0.xml -p patch0.xml -d /dev/sdb

******************************************************************************
Usage: Mass Storage Programmer - destructively writes data to disks!!
******************************************************************************

------------------------------------------------------------------------------
Remember - DON'T FORGET SUDO
Remember - DON'T FORGET SUDO
Remember - DON'T FORGET SUDO
------------------------------------------------------------------------------

--------------------------------Partitions Detected--------------------------------------
/dev/sda 931.51 GB	sectors:1953525168 <--- Not likely an SD card, careful!
/dev/sdb 447.13 GB	sectors:937703088 <--- Not likely an SD card, careful!
/dev/sdc 7.42 GB	sectors:15564800
------------------------------------------------------------------------------

Search Paths
[]

Files
[]

Looking for 'rawprogram0.xml'
----------------------------------------
Searching '/home/bigcountry907/Desktop/526-Completed/Build-Target'

**Found rawprogram0.xml (30420 bytes)
MinDiskSizeInSectors=66 sectors (0.03MB)
MinDiskSizeInSectors=8258 sectors (4.03MB)
MinDiskSizeInSectors=10306 sectors (5.03MB)
MinDiskSizeInSectors=114558 sectors (55.94MB)
MinDiskSizeInSectors=115070 sectors (56.19MB)
MinDiskSizeInSectors=119166 sectors (58.19MB)
MinDiskSizeInSectors=127358 sectors (62.19MB)
MinDiskSizeInSectors=147838 sectors (72.19MB)
MinDiskSizeInSectors=149950 sectors (73.22MB)
MinDiskSizeInSectors=151998 sectors (74.22MB)
MinDiskSizeInSectors=154046 sectors (75.22MB)
MinDiskSizeInSectors=288192 sectors (140.72MB)
MinDiskSizeInSectors=318912 sectors (155.72MB)
MinDiskSizeInSectors=329728 sectors (161.00MB)
MinDiskSizeInSectors=332808 sectors (162.50MB)
MinDiskSizeInSectors=335880 sectors (164.00MB)
MinDiskSizeInSectors=381448 sectors (186.25MB)
MinDiskSizeInSectors=381480 sectors (186.27MB)
MinDiskSizeInSectors=383528 sectors (187.27MB)
MinDiskSizeInSectors=504540 sectors (246.36MB)
MinDiskSizeInSectors=537308 sectors (262.36MB)
MinDiskSizeInSectors=578268 sectors (282.36MB)
MinDiskSizeInSectors=639708 sectors (312.36MB)
MinDiskSizeInSectors=660188 sectors (322.36MB)
MinDiskSizeInSectors=819200 sectors (400.00MB)
MinDiskSizeInSectors=884736 sectors (432.00MB)
MinDiskSizeInSectors=950272 sectors (464.00MB)
MinDiskSizeInSectors=1736696 sectors (848.00MB)
MinDiskSizeInSectors=1736720 sectors (848.01MB)
MinDiskSizeInSectors=1738008 sectors (848.64MB)
MinDiskSizeInSectors=1998840 sectors (976.00MB)
MinDiskSizeInSectors=1998864 sectors (976.01MB)
MinDiskSizeInSectors=2260984 sectors (1104.00MB)
MinDiskSizeInSectors=2261008 sectors (1104.01MB)
MinDiskSizeInSectors=2262296 sectors (1104.64MB)
MinDiskSizeInSectors=2523128 sectors (1232.00MB)
MinDiskSizeInSectors=2523152 sectors (1232.01MB)
MinDiskSizeInSectors=2785272 sectors (1360.00MB)
MinDiskSizeInSectors=2785296 sectors (1360.01MB)
MinDiskSizeInSectors=2786584 sectors (1360.64MB)
MinDiskSizeInSectors=3047416 sectors (1488.00MB)
MinDiskSizeInSectors=3047440 sectors (1488.01MB)
MinDiskSizeInSectors=3309560 sectors (1616.00MB)
MinDiskSizeInSectors=3309584 sectors (1616.01MB)
MinDiskSizeInSectors=3310872 sectors (1616.64MB)
MinDiskSizeInSectors=3571704 sectors (1744.00MB)
MinDiskSizeInSectors=3571728 sectors (1744.01MB)
MinDiskSizeInSectors=3833848 sectors (1872.00MB)
MinDiskSizeInSectors=3833872 sectors (1872.01MB)
MinDiskSizeInSectors=3835160 sectors (1872.64MB)
MinDiskSizeInSectors=4095992 sectors (2000.00MB)
MinDiskSizeInSectors=4096016 sectors (2000.01MB)
MinDiskSizeInSectors=4358136 sectors (2128.00MB)
MinDiskSizeInSectors=4358160 sectors (2128.01MB)
MinDiskSizeInSectors=4620280 sectors (2256.00MB)
MinDiskSizeInSectors=4620304 sectors (2256.01MB)
MinDiskSizeInSectors=4882424 sectors (2384.00MB)
MinDiskSizeInSectors=4882448 sectors (2384.01MB)
MinDiskSizeInSectors=5144568 sectors (2512.00MB)
MinDiskSizeInSectors=5144592 sectors (2512.01MB)
MinDiskSizeInSectors=5406712 sectors (2640.00MB)
MinDiskSizeInSectors=5406736 sectors (2640.01MB)
MinDiskSizeInSectors=5577104 sectors (2723.20MB)
MinDiskSizeInSectors=5668880 sectors (2768.01MB)
MinDiskSizeInSectors=5931024 sectors (2896.01MB)
MinDiskSizeInSectors=6193168 sectors (3024.01MB)
MinDiskSizeInSectors=6455312 sectors (3152.01MB)
MinDiskSizeInSectors=6727680 sectors (3285.00MB)
MinDiskSizeInSectors=6737920 sectors (3290.00MB)
MinDiskSizeInSectors=6875584 sectors (3357.22MB)
MinDiskSizeInSectors=7000080 sectors (3418.01MB)
MinDiskSizeInSectors=7002136 sectors (3419.01MB)
MinDiskSizeInSectors=7262224 sectors (3546.01MB)
MinDiskSizeInSectors=7524368 sectors (3674.01MB)
MinDiskSizeInSectors=7526424 sectors (3675.01MB)
MinDiskSizeInSectors=7786512 sectors (3802.01MB)
MinDiskSizeInSectors=8048656 sectors (3930.01MB)
MinDiskSizeInSectors=8050712 sectors (3931.01MB)
MinDiskSizeInSectors=8310800 sectors (4058.01MB)
MinDiskSizeInSectors=8572944 sectors (4186.01MB)
MinDiskSizeInSectors=8575000 sectors (4187.01MB)
MinDiskSizeInSectors=8835088 sectors (4314.01MB)
MinDiskSizeInSectors=9097232 sectors (4442.01MB)
MinDiskSizeInSectors=9099288 sectors (4443.01MB)
MinDiskSizeInSectors=9359376 sectors (4570.01MB)
MinDiskSizeInSectors=9621520 sectors (4698.01MB)
MinDiskSizeInSectors=9883664 sectors (4826.01MB)
MinDiskSizeInSectors=10145808 sectors (4954.01MB)
MinDiskSizeInSectors=10407952 sectors (5082.01MB)
MinDiskSizeInSectors=10670096 sectors (5210.01MB)
MinDiskSizeInSectors=10932240 sectors (5338.01MB)
MinDiskSizeInSectors=11194384 sectors (5466.01MB)
MinDiskSizeInSectors=11456528 sectors (5594.01MB)
MinDiskSizeInSectors=11718672 sectors (5722.01MB)
MinDiskSizeInSectors=11980816 sectors (5850.01MB)
MinDiskSizeInSectors=12242960 sectors (5978.01MB)
MinDiskSizeInSectors=12505104 sectors (6106.01MB)
MinDiskSizeInSectors=12767248 sectors (6234.01MB)
MinDiskSizeInSectors=13029392 sectors (6362.01MB)
MinDiskSizeInSectors=13291536 sectors (6490.01MB)
MinDiskSizeInSectors=13293592 sectors (6491.01MB)
MinDiskSizeInSectors=13553680 sectors (6618.01MB)
MinDiskSizeInSectors=13815824 sectors (6746.01MB)
MinDiskSizeInSectors=13817880 sectors (6747.01MB)
MinDiskSizeInSectors=14077968 sectors (6874.01MB)
MinDiskSizeInSectors=14340112 sectors (7002.01MB)
MinDiskSizeInSectors=14602256 sectors (7130.01MB)
MinDiskSizeInSectors=14864400 sectors (7258.01MB)
MinDiskSizeInSectors=15564800 sectors (7600.00MB)
----------------------
MinDiskSizeInSectors= 15564800
DiskSizeInSectors = 15564800.0

Looking for 'testsparse.py'
----------------------------------------
Searching '/home/bigcountry907/Desktop/526-Completed/Build-Target'

**Found testsparse.py (7445 bytes)

WARNING: Are you sure you want to write to '/dev/sdc' of size 7.42 GB (y|N)

Select yes.

I guess I didnt do so good on the filenames.

It's complaining.

Rename the files in the Target_Build to have the right names.

Then run the command again.

Finally once everything is correct you will see.

------------------------------------------------------------------------------
If you wrote any partition table information (MBR0.bin, gpt_main0.bin, etc)

_ _ _ __ _
| | ( ) | / _| | |
__| | ___ _ __ |/| |_ | |_ ___ _ __ __ _ ___| |_
/ _` |/ _ \| '_ \ | __| | _/ _ \| '__/ _` |/ _ \ __|
| (_| | (_) | | | | | |_ | || (_) | | | (_| | __/ |_
\__,_|\___/|_| |_| \__| |_| \___/|_| \__, |\___|\__|
__/ |
|___/
_ _ _
| | | | | |
| |_ ___ _ __ __ _| |_ ___| |__
| __|/ _ \ | '_ \ / _` | __|/ __| '_ \
| |_| (_) | | |_) | (_| | |_| (__| | | |
\__|\___/ | .__/ \__,_|\__|\___|_| |_|
| |
|_|

Ex: sudo python msp.py -p patch0.xml -d /dev/sdc
Or, do it all in one step
Ex: sudo python msp.py -r rawprogram0.xml -d /dev/sdc -p patch0.xml
------------------------------------------------------------------------------

msp.py exiting SUCCESSFULLY- Log is log_msp.txt

bigcountry907@bigcountry907-G551JW:~/Desktop/526-Completed/Build-Target$

It takes a wile to run. The disk writing takes much longer than the script.

I usually run it 2 times.

Happy Flashing