Как происходит запись прошивки Android с карты Product


Текстовый файла sys_config.fex

Содержимое файла sys_config.fex

;sunxi platform application ;--------------------------------------------------------------------------------------------------------- ; Примечание. Строки в сценарии чувствительны к регистру. Пользователи могут изменить значение после «=", ; но не изменяйте предыдущую строку. ; Опишите форму gpio: Порт: порт + серийный номер в группе ; <назначение функции> ; <состояние внутреннего сопротивления> ; <возможность управления> ; <состояние выходного уровня> ;--------------------------------------------------------------------------------------------------------- [product] version = "100" machine = "evb" [platform] eraseflag = 1 debug_mode = 8 ;---------------------------------------------------------------------------------- ;[target] system bootup configuration ;boot_clock = CPU boot frequency, Unit: MHz ;storage_type = boot medium, 0-nand, 1-card0, 2-card2, -1(defualt)auto scan ;advert_enable = 0-close advert logo 1-open advert logo ; (Действительно только при многоядерном запуске) ;---------------------------------------------------------------------------------- [target] boot_clock = 1008 storage_type = -1 advert_enable = 0 burn_key = 1 dragonboard_test= 0 [card_boot] logical_start = 40960 sprite_gpio0 = port:PH6<1><1> ;--------------------------------------------------------------------------------------------------------- ; if 1 == standby_mode, then support super standby; ; else, support normal standby. ;--------------------------------------------------------------------------------------------------------- [pm_para] standby_mode = 1 [card0_boot_para] card_ctrl = 0 card_high_speed = 1 card_line = 4 sdc_d1 = port:PF0<2><1><3> sdc_d0 = port:PF1<2><1><3> sdc_clk = port:PF2<2><1><3> sdc_cmd = port:PF3<2><1><3> sdc_d3 = port:PF4<2><1><3> sdc_d2 = port:PF5<2><1><3> ;sdc_type = "tm1" [card2_boot_para] card_ctrl = 2 card_high_speed = 1 card_line = 8 sdc_clk = port:PC5<3><1><3> sdc_cmd = port:PC6<3><1><3> sdc_d0 = port:PC10<3><1><3> sdc_d1 = port:PC13<3><1><3> sdc_d2 = port:PC15<3><1><3> sdc_d3 = port:PC8<3><1><3> sdc_d4 = port:PC9<3><1><3> sdc_d5 = port:PC11<3><1><3> sdc_d6 = port:PC14<3><1><3> sdc_d7 = port:PC16<3><1><3> sdc_emmc_rst = port:PC1<3><1><3> sdc_ds = port:PC0<3><2><3> sdc_ex_dly_used = 2 sdc_io_1v8 = 1 ;sdc_dis_host_caps = 0x100 ;sdc_type = "tm4" [gpio_bias] pc_bias = 1800 [twi_para] twi_port = 0 twi_scl = port:PH14<2> twi_sda = port:PH15<2> [auto_print] auto_print_used = 0 [uart_para] uart_debug_port = 0 uart_debug_tx = port:PH00<2><1> uart_debug_rx = port:PH01<2><1> [jtag_para] jtag_enable = 1 jtag_ms = port:PH9<3> jtag_ck = port:PH10<3> jtag_do = port:PH11<3> jtag_di = port:PH12<3> ;***************************************************************************** ; Выбор конфигурации DRAM ; select_mode: 0: нет автоматического распознавания. ; 1: режим распознавания gpio (dram_para, dram_para1-15, всего допустимо 16 групп) ; 2: режим распознавания gpadc (dram_para, dram_para1-7, всего допустимо 8 групп) ; 3: 1 режим распознавания IO+gpadc (dram_para, dram_para1-15, всего допустимо 16 групп). ; Приоритет конфигурации ввода-вывода: select_gpio0>select_gpio1>select_gpio2>select_gpio3. ; gpadc_channel: выберите допустимое значение канала gpadc (0-3) ; select_gpio1-4 : выбрать контакт gpio ;***************************************************************************** [dram_select_para] select_mode = 0 select_gpio0 = port:PI14<0><1> select_gpio1 = port:PI15<0><1> select_gpio2 = port:PI16<0><1> select_gpio3 = ;***************************************************************************** ;sdram configuration ; dram_para: нет параметра емкости CK (зарезервировано) ; dram_para1: имеет параметр емкости CK (зарезервирован) ; dram_para2~6: временно зарезервировано ; dram_para7: нет параметра емкости CK (зарезервировано) ; dram_para8~15: временно зарезервировано ;***************************************************************************** [dram_para] dram_clk       = 648 dram_type      = 3 dram_dx_odt    = 0x03030303 dram_dx_dri    = 0x0e0e0e0e dram_ca_dri    = 0x1c12 dram_odt_en    = 1 dram_para1     = 0x30fb dram_para2     = 0x0000 dram_mr0       = 0x840 dram_mr1       = 0x4 dram_mr2       = 0x8 dram_mr3       = 0x0 dram_mr4       = 0x0 dram_mr5       = 0x0 dram_mr6       = 0x0 dram_mr11      = 0x0 dram_mr12      = 0x0 dram_mr13      = 0x0 dram_mr14      = 0x0 dram_mr16      = 0x0 dram_mr17      = 0x0 dram_mr22      = 0x0 dram_tpr0      = 0xC0000C05 dram_tpr1      = 0x0 dram_tpr2      = 0x0 dram_tpr3      = 0x0 dram_tpr6      = 0x33808080 dram_tpr10     = 0x002F0007 dram_tpr11     = 0xffffdddd dram_tpr12     = 0xfedf7557 dram_tpr13     = 0x40 [dram_para1] dram_clk = 600 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c1a dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC000130a dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc6554 dram_tpr13 = 0x40 [dram_para2] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para3] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para4] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para5] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para6] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para7] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para8] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para9] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para10] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para11] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para12] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para13] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para14] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 [dram_para15] dram_clk = 648 dram_type = 3 dram_dx_odt = 0x03030303 dram_dx_dri = 0x0e0e0e0e dram_ca_dri = 0x1c12 dram_odt_en = 1 dram_para1 = 0x30fb dram_para2 = 0x0000 dram_mr0 = 0x840 dram_mr1 = 0x4 dram_mr2 = 0x8 dram_mr3 = 0x0 dram_mr4 = 0x0 dram_mr5 = 0x0 dram_mr6 = 0x0 dram_mr11 = 0x0 dram_mr12 = 0x0 dram_mr13 = 0x0 dram_mr14 = 0x0 dram_mr16 = 0x0 dram_mr17 = 0x0 dram_mr22 = 0x0 dram_tpr0 = 0xC0000A05 dram_tpr1 = 0x0 dram_tpr2 = 0x0 dram_tpr3 = 0x0 dram_tpr6 = 0x33808080 dram_tpr10 = 0x002F0006 dram_tpr11 = 0xddddcccc dram_tpr12 = 0xeddc7564 dram_tpr13 = 0x40 ;------------------------------------------ ;uart configuration ;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function) ;------------------------------------------- [uart0] uart0_used = 1 uart0_port = 0 uart0_type = 2 uart0_tx = port:PH00<2><1> uart0_rx = port:PH01<2><1> [secure] dram_region_mbytes = 80 drm_region_mbytes = 0 drm_region_start_mbytes = 0