olm3ca / mirror

Enhancements for the Lululemon Mirror
41 stars 3 forks source link

Note: Serial interface available on newer boards #11

Open leeroywking opened 2 months ago

leeroywking commented 2 months ago

I've got a mirror with a Samsung display and I haven't seen anyone talk about main board having a serial interface.

I used a CH304 to USB adapter and got a fairly detailed message on boot. I'll keep exploring but this isn't my specialty and someone with more experience in android hacking might be able to help now that this info is available

20240501_141807

leeroywking commented 2 months ago

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.0-00280
S - IMAGE_VARIANT_STRING=HAAAANAAA
S - OEM_IMAGE_VERSION_STRING=InforceServer
S - Boot Config, 0x000002e1
S - Core 0 Frequency, 0 MHz
B -      1544 - PBL, Start
B -      3490 - bootable_media_detect_entry, Start
B -    148092 - bootable_media_detect_success, Start
B -    148096 - elf_loader_entry, Start
B -    149743 - auth_hash_seg_entry, Start
B -    164371 - auth_hash_seg_exit, Start
B -    180094 - elf_segs_hash_verify_entry, Start
B -    240328 - PBL, End
B -    247233 - SBL1, Start
B -    310886 - pm_device_init, Start
D -     14731 - pm_device_init, Delta
B -    326045 - boot_flash_init, Start
D -        30 - boot_flash_init, Delta
B -    330040 - boot_config_data_table_init, Start
D -     17019 - boot_config_data_table_init, Delta - (0 Bytes)
B -    351634 - CDT version:3,Platform ID:24,Major ID:1,Minor ID:0,Subtype:0
B -    357673 - sbl1_ddr_set_params, Start
B -    361486 - cpr_init, Start
D -         0 - cpr_init, Delta
B -    367098 - Pre_DDR_clock_init, Start
D -       183 - Pre_DDR_clock_init, Delta
D -         0 - sbl1_ddr_set_params, Delta
B -    379694 - pm_driver_init, Start
D -      3507 - pm_driver_init, Delta
B -    391772 - clock_init, Start
D -        30 - clock_init, Delta
B -    492514 - Image Load, Start
D -    127093 - QSEE Image Loaded, Delta - (463516 Bytes)
B -    619638 - Image Load, Start
D -       335 - SEC Image Loaded, Delta - (2048 Bytes)
B -    626805 - sbl1_efs_handle_cookies, Start
D -       274 - sbl1_efs_handle_cookies, Delta
B -    634674 - Image Load, Start
D -     24400 - QHEE Image Loaded, Delta - (51952 Bytes)
B -    659105 - Image Load, Start
D -     55937 - RPM Image Loaded, Delta - (149316 Bytes)
B -    715072 - Image Load, Start
D -     15098 - APPSBL Image Loaded, Delta - (509860 Bytes)
B -    730200 - QSEE Execution, Start
D -        61 - QSEE Execution, Delta
B -    735904 - SBL1, End
D -    491019 - SBL1, Delta
S - Flash Throughput, 229000 KB/s  (1176692 Bytes,  5124 us)
S - DDR Frequency, 400 MHz
Android Bootloader - UART_DM Initialized!!!
[0] [0] welcome to lk

[10] [10] platform_init()
[10] [10] target_init()
[30] [30] IFC6309 : DSI_LVDS
[50] [50] SDHC Running in HS200 mode
[60] [60] Done initialization of the card
[810] [810] Not able to search the panel:
[810] [810] Display not enabled for 24 HW type
[810] [810] Target panel init not found!
[820] [820] pm8x41_get_is_cold_boot: cold boot
[820] [820] Unable to locate /bootselect partition
[830] [830] Loading boot image (16590848): start
[930] [930] Loading boot image (16590848): done
[940] [940] use_signed_kernel=1, is_unlocked=0, is_tampered=0.
[940] [940] Authenticating boot image (16590848): start
[1060] [1060] boot_verifier: Device is in GREEN boot state.
[1060] [1060] Authenticating boot image: done return value = 1
[1430] [1430] Best match DTB tags 247/00000018/0x00000002/0/2000b/0/0/0/909ac1a6/25a37
[1440] [1440] Using pmic info 0x2000b/0x0/0x0/0x0 for device 0x2000b/0x0/0x0/0x0
[1450] [1450] target_display_panel_node:510: hw_id=24 panel_name=""
[1450] [1450] cmdline: console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk androidboot.selinux=permissive androidboot.emmc=true[1480] [1480] Updating device tree: start
[1540] [1540] Updating device tree: done
[1550] [1550] booting linux @ 0x80080000, ramdisk @ 0x82000000 (1061787), tags/device tree @ 0x81e00000
[1560] [1560] Jumping to kernel via monitor
leeroywking commented 2 months ago

Additionally I noted a mini dip switch on the back which I will mess with a bit and see if that changes the boot logging at all 20240501_134653

leeroywking commented 2 months ago

here is what I've gotten from the dim switches so far 1 - when on device does not boot, no screen, no serial output 2 - when on serial boot message has S - Boot Config, 0x000002e3 instead of *2e1 3 - disables usb port (doesn't show up in adb at all

olm3ca commented 2 months ago

Good to see your testing - the Samsung model needs a solution.