Showing posts with label download. Show all posts
Showing posts with label download. Show all posts

12/20/2012

How to download modem image via fastboot with QRD8x25 platform

Note: it is only for emmc boot.
1.change mbr_fill_name() in the $(AP_CODE)/bootable/bootloader/lk/platform/msm_shared/partition_parser.c
(1).change "memcpy(partition_ent->name, "sbl1", 4);" to "memcpy(partition_ent->name, "qcsblhd_cfgdata", 15);"
(2).change "memcpy(partition_ent->name, "sbl3", 4);" to
"memcpy(partition_ent->name, "qcsbl", 5);"
(3).change "memcpy(partition_ent->name, "rpm", 3);" to
"memcpy(partition_ent->name, "emmc_appsboot", 13);"
(4).change "memcpy(partition_ent->name, "tz", 2);" to "memcpy(partition_ent->name, "oemsbl", 6);"
(5).delete all the functions when the type is "MBR_MODEM_TYPE" or MBR_MODEM_TYPE2, and execute "memcpy(partition_ent->name, "fat", 3);" when the type is "MBR_MODEM_TYPE" or "MBR_MODEM_TYPE" .

2.re-build emmc_appsboot*.mbn and download them into the phone;

3.generate oemsbl.bin and emmc_appsboot.bin
the struct of the oemsbl.bin is
(oemsblhd.mbn + some 0x00) + oemsbl.mbn
|<----------512byte-------->|
the struct of the emmc_appsboot.bin is
(emmc_appsboothd.mbn + some 0x00) + emmc_appsboot.mbn
|<-------------512byte----------->|
you can download the pre-fastboot tool to generate these images.

chick here to download pre-fastboot:
https://docs.google.com/open?id=0B8FEzcDZzbOFZGRtOS1ZMmhPSm8

4.Then you can test to use the following command to download images in the fastboot mode:
fastboot flash qcsblhd_cfgdata qcsblhd_cfgdata.mbn
fastboot flash qcsbl qcsbl.mbn
fastboot flash oemsbl oemsb.bin
fastboot flash fat fat.bin
fastboot flash emmc_appsboot emmc_appsboot.bin

11/29/2012

Force emergency download feature on QRD 8x25 release

This solution is only compatible with these releases:
R8625SSNSKQLYM10040400 and later

QRD implement a new feature to force phone to enter emergency download mode at boot up stage. It depends on the status of gpio40. If gpio40 is low, the phone will be force enter emergency download mode. For normal boot up, gpio40 should be default high.

This feature is default ON. Please pay attention to the gpio40 connection in your HW design to avoid boot up failure.

To disable this feature in SW, please delete related code in modem_proc\core\boot\secboot\cfg_data\7627\clock\clock.cfg.

gpio_40_to_emprg{
GPIO_IN1, 0x01000000,
READ_REGISTER, 0x01000000, /*because gpio40 default is high*/
BRANCH_ON_READ_FAIL, 2, /*so in normal boot, always sucess, if force dload mode, need pull down gpio40*/
BRANCH_ALWAYS, 2, /*normal boot will skip the fowllow line*/
WRITE_32_BIT, 0xfffef800, /*write to a invalid address will go into edload */
} /*delete this segment*/

K{
%tag description Clock: 48Mhz%
%tag BUS_SPEED 48%

%include gpio_40_to_emprg% /*delete this line*/
%include configure_48MHZ%
}

Then clean and rebuild all.

5/10/2012

EMMC Factory image generation

QPST 2.7.366 is required for the operation.
 Factory image generation:
emmcswdownload.exe -f factory.bin -x  AMSS\products\7x30\core\storage\tools\jsdcc\partition_load_pt\partition.xml  -s 4G -g 8M -p E:\build\emmc\;

Download factory image:
emmcswdownload.exe -i factory.bin -w G:\
factory image you can not use ext4 sparse image. and sparse image can only be download by fastboot. If you develop you own tools, you can support sparse image and don't need factory image for DataIO.