finished. total time: 2.835s
fastboot flash recovery recovery.img
fastboot devices
fastboot -w
fastboot flash boot .\boot.img
fastboot flash system .\system.img
fastboot flash cache .\cache.img
fastboot flash recovery .\recovery.img
fastboot flash persist .\persist.img
fastboot flash userdata .\userdata.img
fastboot flash aboot .\emmc_appsboot.mbn
fastboot flash sbl1 sbl1.mbn
fastboot flash recovery recovery.img
fastboot flash rpm rpm.mbn
fastboot flash modem NON-HLOS.bin
fastboot flash sdisdi.mbn
fastboot flash tz tz.mbn
echo phone will restart
fastboot reboot
@pause
6. spreadtrum CONTENT
Fastboot is a tool provided with Android. And it supported by our bootloader.
Now we defined three boot mode, there are calibration, recovery, and fastboot.
You can enter fastboot by holding the HOME key( or CAMERA key ) when boot you phone up by POWER key. If enter fastboot mode success, you can get a string "fastboot_mode" on lcd in red font.
Now you can plug in a usb cable to connect you phone with Ubuntu host.
You can find the host fastboot tool in ~/Android_Project/out/host/linux_x86/bin directory, it is named as "fastboot" too. But if you want to run it, you should be privileged as sudoer.
1.check connected device
sudo ./fastboot devices
2.erase a nand partition
sudo ./fastboot erase Partition_Name
Now The partition names and their contents relation as follow:
2ndbl ----------- u-boot.bin
params----------- u-boot parameters
vmjaluna -------- vmjaluna.image
modem ----------- modem.bin
boot ------------ boot.img (previously it is named kernel)
dsp ------------- dsp.bin
fixnv ----------- nuitem.bin
runtimenv ------- runtime nv
recovery -------- recovery.img (it is not supported now)
system ---------- system.img
userdata -------- userdata.img
boot_logo ------- boot_logo.bmp
fastboot_logo --- fastboot_logo.bmp
cache ----------- cache partition
misc ------------ misc partition
sudo ./fastboot flash Partition_Name Flash_File
You can find the relation in the section 2.
You should erase it first before flash
sudo ./fastboot reboot
If you want your phone boot up, you need press the POWER key again.
sudo ./fastboot reboot-bootloader
The other commands's support still need some further development.