Skip to content

[Device] motorola|condor

Michael Zimmermann edited this page Aug 7, 2016 · 8 revisions

stock bootloader weirdness

  • fastboot boot ignores the boot.img's dt.img
  • fastboot boot randomly fails to boot Linux
  • aboot edits the cmdline using regex, i.e. the console parameter is set to null

chosen nodes

chosen {
	mmi,reserve = <0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0>;
	mmi,display_auto_detect = <0x0>;
	mmi,panel_ver = <0x0 0x106c2>;
	mmi,panel_name = "mipi_mot_video_inx_qhd_430";
	mmi,msm_hw = "MSM8210 CS";
	mmi,prod_id = <0x42>;
	linux,serialhigh = <0x6bebb401>;
	linux,seriallow = <0x12000000>;
	linux,hwrev = <0x82b0>;
	mmi,mbmversion = <0x5009>;
	mmi,powerup_reason = <0x80>;
	linux,initrd-end = <0x2000000>;
	linux,initrd-start = <0x2000000>;
	bootargs = " androidboot.emmc=true androidboot.serialno=XXXXXXXXXX androidboot.baseband=msm androidboot.mode=normal androidboot.device=condor androidboot.hwrev=0x82B0 androidboot.radio=0x1 androidboot.powerup_reason=0x00000080 bootreason=power_key_press androidboot.write_protect=0 restart.download_mode=0 androidboot.fsg-id= androidboot.secure_hardware=1 androidboot.cid=0x7 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_mot_inx_qhd_video_v0 androidboot.bootloader=0x5009 androidboot.carrier=retde";

	mmi,bl_sigs {
		mmi,reserve = <0x0 0x0 0x0 0x0 0x0>;
		4 = "aboot.git=MBM-NG-V50.09-0-gae00f8c";
		3 = "tz.git=MBM-NG-V50.09-0-g7a019c8";
		2 = "rpm.git=MBM-NG-V50.09-0-gcebb121";
		1 = "sbl1.git=MBM-NG-V50.09-0-g6d5c0a0";
		0 = "sdi.git=MBM-NG-V50.09-0-g3ccd862";
	};
};

RAM ptable

ID	Address                              	  Size	Attr	Cat	Domain	Type	Parts
0:	0x0000000000000000-0x0000000020000000	 512MB	rw	sdram	default	sys	8
1:	0x0000000020000000-0x0000000040000000	 512MB	rw	sdram	default	sys	8
2:	0x00000000fc100000-0x00000000fc120000	 128kB	rw	iram	default	sys	0
3:	0x00000000fe800000-0x00000000fe808000	  32kB	rw	imem	default	sys	0
4:	0x000000000de00000-0x000000000df00000	   1MB	rw	sdram	default	boot1	0

partition table

Model: MMC 004G90 (sd/mmc)
Disk /dev/block/mmcblk0: 3959422976B
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start        End          Size         File system  Name         Flags
 1      131072B      67239935B    67108864B    ext4         modem        msftdata
 2      67239936B    67764223B    524288B                   sbl1
 3      67764224B    67796991B    32768B                    DDR
 4      67895296B    68419583B    524288B                   aboot        legacy_boot
 5      69431296B    69636095B    204800B                   rpm          legacy_boot
 6      69943296B    70352895B    409600B                   tz           legacy_boot
 7      70455296B    70488063B    32768B                    sdi
 8      70488064B    71012351B    524288B                   utags
 9      71012352B    73109503B    2097152B                  logs
10      73109504B    75497471B    2387968B                  padA         msftdata
11      75497472B    76021759B    524288B                   abootBackup
12      77033472B    77238271B    204800B                   rpmBackup
13      77545472B    77955071B    409600B                   tzBackup
14      78057472B    78090239B    32768B                    sdiBackup    msftdata
15      78090240B    78614527B    524288B                   utagsBackup
16      78614528B    79691775B    1077248B                  padB         msftdata
17      79691776B    81264639B    1572864B                  modemst1
18      81264640B    82837503B    1572864B                  modemst2
19      82837504B    83337215B    499712B                   hob
20      83337216B    83369983B    32768B                    dhob
21      83492864B    85065727B    1572864B     ext2         fsg
22      85065728B    85066751B    1024B                     fsc
23      85066752B    85074943B    8192B                     ssd
24      85074944B    86123519B    1048576B                  sp
25      86123520B    86254591B    131072B                   cid
26      86254592B    89400319B    3145728B     ext3         pds
27      89400320B    93594623B    4194304B                  logo
28      93594624B    97788927B    4194304B                  clogo
29      97910784B    106299391B   8388608B     ext4         persist      msftdata
30      106299392B   106823679B   524288B                   misc
31      106823680B   117268479B   10444800B                 boot
32      117268480B   127795199B   10526720B                 recovery
33      127795200B   603979775B   476184576B   ext4         cache        msftdata
34      603979776B   1543503871B  939524096B   ext4         system       msftdata
35      1543503872B  1551892479B  8388608B                  kpan
36      1551892480B  3958767615B  2406875136B               userdata     msftdata

full boot log

B -   1990369 - image_offset=40, header_size=40, image_src=0
D -    339831 - APPSBL Image Loaded, Delta
B -   2010285 - sbl1_efs_handle_cookies, Start
D -       610 - sbl1_efs_handle_cookies, Delta
B -   2010926 - RPM sync cookie updated
B -   2010987 - SBL1, End
D -   1885785 - SBL1, Deltapm_device_init, Delta
B -    219569 - Motorola Hardware id = M
B -    219600 - Motorola Product id = B
B -    219844 - boot_flash_init, Start
B -    223565 - Discovering Motorola SOD partition...
B -    223870 - Motorola SOD partition found!
D -    267027 - boot_flash_init, Delta
B -    486902 - boot_config_data_table_init, Start
D -        91 - boot_config_data_table_init, Delta
B -    487054 - sbl1_ddr_set_params, Start
B -    487085 - Pre_DDR_clock_init, Start
D -       213 - Pre_DDR_clock_init, Delta
D -         0 - sbl1_ddr_set_params, Delta
B -    490806 - pm_driver_init, Start
D -    475190 - pm_driver_init, Delta
B -    966057 - clock_init, Start
D -       213 - clock_init, Delta
B -    980331 - Image Load, Start
B -    990396 - partition tz loaded to DDR
B -   1304302 - hab check passed for tz
B -   1304332 - load ELF image tz from ddr
D -    335226 - TZ Image Loaded, Delta
B -   1315556 - Tz Execution, Start
D -    181871 - Tz Execution, Delta
B -   1497458 - motorola_sod_check, Start
D -       823 - motorola_sod_check, Delta
B -   1498373 - found last boot log sequence 0
B -   1498404 - create new log: seq=1
B -   1500020 - Image Load, Start
B -   1504961 - partition rpm loaded to DDR
B -   1660786 - hab check passed for rpm
B -   1660816 - load ELF image rpm from ddr
D -    169184 - RPM Image Loaded, Delta
B -   1669783 - Signal PBL to Jump to RPM FW
B -   1670393 - Image Load, Start
D -        31 - WDT Image Loaded, Delta
B -   1670424 - Image Load, Start
B -   1682471 - partition aboot loaded to DDR
B -   1990308 - hab check passed for aboot
B -   1990338 - load qc image aboot from ddr
[ 5065037] I - platform_init()
[ 5065039] C - No settings for mmi,user-reset-warning in FDT
[ 5065039] I - target_init()
[ 5065040] I - RAM: Hynix, S4 SDRAM, 1024 MB, MR5:0x06, MR6:0x02, MR7:0x00, MR8:0x18
[ 5065070] I - Done initialization of the card
[ 5065072] I - get platform specific settings for font_setting
[ 5065073] I - get product specific settings for panels
[ 5065073] I - 2 panel defined
[ 5065074] I - Reboot mode from IMEM: 0x00000000
[ 5065075] I - pm8x41_get_is_cold_boot: Warm boot
[ 5065075] I - Power on status from SBL: 0x200020080
[ 5065075] I - PMIC extra reset info = 0x200
[ 5065075] I - After clear, the extra reset info is 0x200
[ 5065076] I - Initializing eMMC
[ 5065076] I - eMMC successfully initialized
[ 5065076] I - initializing GPT partition...
[ 5065079] I - MBR validated
[ 5065081] I - primary gpt validation result: TRUE
[ 5065084] I - validated GPT: 36 partitions
[ 5065086] I - cid_get_cid_data: Version 1 datablock
[ 5065087] I - dbval_db_validate_gen_hdr - Check Type
[ 5065087] I - dbval_db_validate_gen_hdr - Read Processor UID
[ 5065087] I - dbval_db_validate_gen_hdr - Read Flash UID
[ 5065087] I - dbval_db_validate_gen_hdr - PAL UID
[ 5065087] I - 6BEBB40112000000000000000000000000000000000000000000000000000000
[ 5065088] I - dbval_db_validate_gen_hdr - DB UID
[ 5065088] I - 6BEBB40112000000000000000000000000000000000000000000000000000000
[ 5065088] I - dbval_db_validate_gen_hdr - Success
[ 5065088] I - dbval_validate_cert_chain: status == DBVAL_ERR_NONE
[ 5065089] I - dbval_validate_cert_chain: Setup the pointer to the data location for the 1st cert
[ 5065089] I - dbval_validate_cert_chain: Setup the chain struct for the certificate
[ 5065089] I - dbval_validate_cert_chain: Set the ptr to the data location for the 2nd cert
[ 5065090] I - dbval_validate_cert_chain: Setup the final chain
[ 5065294] I - dbval_validate_cert_chain: set success
[ 5065322] I - dbval_read_and_validate_cid_datablock - Success
[ 5065323] I - dbval_read_and_validate_cid_datablock - END
[ 5065323] I - before swap: dbvc_cid =0x0700
[ 5065323] I - after swap: dbvc_cid =0x0007
[ 5065351] I - Time is: "Mon Feb 23 10:26: 1 UTC 2015"
[ 5065353] I - sod_init(): Found SOD following USERDATA
[ 5065357] I - get platform specific settings for ramdump_setting
[ 5065358] I - starting app lcd_display
[ 5065358] I - Initializing display...
[ 5065358] I - 2 panel defined
[ 5065358] I - panel auto detect defined as 1
[ 5065358] I - create panel for mipi_mot_video_tianma_qhd_430...
[ 5065371] I - Not support panel type mipi_mot_video_tianma_qhd_430
[ 5065372] I - create panel for mipi_mot_video_inx_qhd_430...
[ 5065385] I - Not support panel type mipi_mot_video_inx_qhd_430
[ 5065385] I - Searching panel driver for: mipi_mot_video_inx_qhd_430
[ 5065386] I - find UTAG "display", skip auto detect!
[ 5065387] I - Config MIPI_VIDEO_PANEL.
[ 5065401] I - starting app mbm
[ 5065401] I - MBM version is 50.09 (ae00f8c)
[ 5065401] D - got sp partition block [0x100000, 0x5122400]
[ 5065402] D - generic_mmc_read_logical: start_sector=0x0, leading_size=166162, ending_sector=0x0, trailing_size=0
[ 5065405] D - add root block: block [0xffc00, 0x5122800]
[ 5065406] I - Serial number: "XXXXXXXXXX"
[ 5065407] I - Entering fastboot mode
[ 5065408] I - Fastboot Reason: Volume down key pressed
[ 5065408] D - sod_init(): entering, entry_count=1
[ 5065408] D - sh_review(): Looks good to me, approved!
[ 5065408] D - sod_init(): Exiting, entry_count=1
[ 5065409] I - starting thread to detect power key ...
[ 5065409] D - waiting for power key pressed...
[ 5065409] D - Panel CMD: command mode dma tested successfully
[ 5065410] D - Panel CMD: command mode dma tested successfully
[ 5065412] D - MOT panel manufacture_id=0xc2
[ 5065412] D - Panel CMD: command mode dma tested successfully
[ 5065413] D - Panel CMD: command mode dma tested successfully
[ 5065414] D - Panel CMD: command mode dma tested successfully
[ 5065415] D - MOT panel controller ver=0x6
[ 5065416] D - Panel CMD: command mode dma tested successfully
[ 5065417] D - Panel CMD: command mode dma tested successfully
[ 5065418] D - Panel CMD: command mode dma tested successfully
[ 5065419] D - MOT panel controller driver ver = 0x1
[ 5065419] I - Panel ver = 0x106c2
[ 5065420] D - Panel CMD: command mode dma tested successfully
[ 5065421] D - Panel CMD: command mode dma tested successfully
[ 5065422] D - Panel CMD: command mode dma tested successfully
[ 5065423] I - MOT panel supplier_id=0x01d5
[ 5065423] D - Panel CMD: command mode dma tested successfully
[ 5065424] D - Panel CMD: command mode dma tested successfully
[ 5065424] D - Panel CMD: command mode dma tested successfully
[ 5065424] D - Panel CMD: command mode dma tested successfully
[ 5065425] D - Panel CMD: command mode dma tested successfully
[ 5065425] D - Panel CMD: command mode dma tested successfully
[ 5065425] D - Panel CMD: command mode dma tested successfully
[ 5065425] D - Panel CMD: command mode dma tested successfully
[ 5065426] D - Panel CMD: command mode dma tested successfully
[ 5065426] D - Panel CMD: command mode dma tested successfully
[ 5065426] D - Panel CMD: command mode dma tested successfully
[ 5065427] D - Panel CMD: command mode dma tested successfully
[ 5065427] D - Panel CMD: command mode dma tested successfully
[ 5065427] D - Panel CMD: command mode dma tested successfully
[ 5065427] D - Panel CMD: command mode dma tested successfully
[ 5065428] D - Panel CMD: command mode dma tested successfully
[ 5065502] I - IMEI/MEID: XXXXXXXXXXXXXXX
[ 5065502] I - SKU: XT1021
[ 5065502] I - DATE: 05-10-2014
[ 5065502] I - Starting The Boot Menu
[ 5065503] I - Kernel console menu item content:     Console [UTAG: ttyHSL0,115200,n8 earlyprintk].
[ 5065548] D - Panel CMD: command mode dma tested successfully
[ 5065548] D - MDP3.0.3 for DSI Video Mode
[ 5065548] I - Turn on MIPI_VIDEO_PANEL.
[ 5065551] D - register callback 0x7a20250
[ 5065569] I - Video lane tested successfully
[ 5065569] D - mipi_init is done
[ 5065569] D - display buffer: 0x3200000
[ 5065569] D - display format: 3
[ 5065569] D - display width: 540
[ 5065569] D - display height: 960
[ 5065569] D - display stride: 540
[ 5065570] D - display flush: 0x0
[ 5065570] I - Display initialized successfully!
[ 5065570] I - Initializing display done
[ 5065570] D - waiting for display commands...
[ 5065570] D - Searching screen for: fastboot_screen
[ 5065571] D - enter _send_display_command with cmd 16
[ 5065571] D - enter _send_display_command with cmd 1
[ 5065571] D - enter _send_display_command with cmd 2
[ 5065571] D - enter _send_display_command with cmd 5
[ 5065571] D - enter _send_display_command with cmd 4
[ 5065572] D - enter _send_display_command with cmd 3
[ 5065572] D - enter _send_display_command with cmd 7
[ 5065572] I - Battery power check, threshold = 3700mV
[ 5065573] D - ADC conversion is complete
[ 5065575] D - ADC conversion is complete
[ 5065576] D - ADC conversion is complete
[ 5065576] D - Result: Raw 39560	Calibrated:4281816
[ 5065576] I - batt status: 4281
[ 5065576] D - enter _send_display_command with cmd 6
[ 5065576] D - enter _send_display_command with cmd 9
[ 5065577] I - sending LI_BOOT_MENU command: 12
[ 5065577] D - enter _send_display_command with cmd 12
[ 5065577] I - sending LI_UPDATE_SELECTED_BOOT_MENU_ITEM command: 13
[ 5065577] D - enter _send_display_command with cmd 13
[ 5065578] D - enter _send_display_command with cmd 17
[ 5065578] D - clear display
[ 5065611] I - USB init ept @ 0x7ae0000
[ 5065621] D - turn_on_backlight is called
[ 5065621] D - duty/period=127/255 usec: pwm_value=31 (of 64)
[ 5065621] D - turn_on_backlight is done 
[ 5065622] I - show caption in thread
[ 5065625] D - show sw version in thread
[ 5065640] D - show cpu info in thread
[ 5065642] D - show emmc info in thread
[ 5065646] D - show ram info in thread
[ 5065650] D - show unlock status in thread
[ 5065654] D - show battery status in thread
[ 5065656] D - show usb disconnected status
[ 5065658] D - show the boot menu
[ 5065659] D - display menu item: SPLITTER
[ 5065659] D - display menu item: Boot Mode Selection Menu
[ 5065662] D - display menu item:   Vol Up Selects, Vol Down Scrolls
[ 5065665] D - display menu item:     Normal Powerup
[ 5065667] D - display menu item:     Recovery
[ 5065668] D - display menu item:     Factory
[ 5065669] D - display menu item:     Console [UTAG: ttyHSL0,115200,n8 earlyprintk]
[ 5065674] D - display menu item:     Barcodes
[ 5065675] D - display menu item:     BP Tools
[ 5065677] D - display menu item:     QCOM
[ 5065677] D - display menu item: SPLITTER
[ 5065678] D - show the selected boot menu item
[ 5065680] D - Handling LI_FLUSH in thread
[ 5065680] D - waiting for display commands...
[ 5065680] C - udc_start()
[ 5065721] D - enter _send_display_command with cmd 15
[ 5065721] D - enter _send_display_command with cmd 14
[ 5065721] D - enter _send_display_command with cmd 17
[ 5065722] D - switch on screen logs in thread
[ 5065722] D - get max error lines: 16
[ 5065722] D - enter _send_display_command with cmd 14
[ 5065722] D - enter _send_display_command with cmd 17
[ 5065722] D - show runtime logs in thread
[ 5065722] D - get max error lines: 16
[ 5065728] D - Handling LI_FLUSH in thread
[ 5065729] D - show runtime logs in thread
[ 5065729] D - get max error lines: 16
[ 5065735] D - Handling LI_FLUSH in thread
[ 5065735] D - waiting for display commands...
[ 5065736] D - waiting for display commands...
[ 5066409] I - -- reset --
[ 5066411] I - -- portchange --
[ 5066478] I - -- reset --
[ 5066481] I - -- portchange --
[ 5066565] I - staring charging...
[ 5066565] I - pmic_set_chg_set_mode: charging is enabled
[ 5066566] I - Battery power check, threshold = 3700mV
[ 5066567] D - ADC conversion is complete
[ 5066568] D - ADC conversion is complete
[ 5066569] D - ADC conversion is complete
[ 5066570] D - Result: Raw 39558	Calibrated:4281528
[ 5066570] I - batt status: 4281
[ 5066570] D - enter _send_display_command with cmd 6
[ 5066570] D - enter _send_display_command with cmd 17
[ 5066570] D - show battery status in thread
[ 5066573] D - Handling LI_FLUSH in thread
[ 5066574] D - waiting for display commands...
[ 5066574] I - start processing fastboot command...
[ 5066574] D - enter _send_display_command with cmd 8
[ 5066574] I - Battery power check, threshold = 3700mV
[ 5066575] D - ADC conversion is complete
[ 5066577] D - ADC conversion is complete
[ 5066578] D - ADC conversion is complete
[ 5066578] D - Result: Raw 39559	Calibrated:4281240
[ 5066578] I - batt status: 4281
[ 5066579] D - enter _send_display_command with cmd 6
[ 5066579] D - enter _send_display_command with cmd 17
[ 5066579] I - USB connected
[ 5066579] D - enter _send_display_command with cmd 14
[ 5066579] D - enter _send_display_command with cmd 17
[ 5066580] D - show usb connected status
[ 5066583] D - show battery status in thread
[ 5066586] D - Handling LI_FLUSH in thread
[ 5066586] D - show runtime logs in thread
[ 5066586] D - get max error lines: 16
[ 5066594] D - Handling LI_FLUSH in thread
[ 5066594] D - waiting for display commands...
[ 5066594] D - waiting for display commands...