account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

Enable serial output after bootloader (EFI_UdonStop Stop DebugPort for anti-corroding)

Learner
Message 1 of 4
1,372 Views
Message 1 of 4

Enable serial output after bootloader (EFI_UdonStop Stop DebugPort for anti-corroding)

We're trying to boot a custom built kernel on an xperia xz2 compact dual with the serial port connected. However, after the bootloader seems finished we get the following:

Shutting Down UEFI Boot Services: 33117 ms
EFI_UdonStop Detected SIM tray 
EFI_UdonStop Stop DebugPort for anti-corroding

We're suspecting we're not getting any more output from the actual kernel because of the

EFI_UdonStop Stop DebugPort for anti-corroding

message. Is there a way to keep the debug port open so to receive output from our booted kernel?

 

We also tested the xda unofficial TWRP build, which boots successfully, appears on screen etc. but does not output anything past the above message.

 

Thanks!

3 REPLIES 3
Developer World
Message 2 of 4
1,321 Views
Message 2 of 4

Re: Enable serial output after bootloader (EFI_UdonStop Stop DebugPort for anti-corroding)

Hi,

 

for a serial console you need to have:

- SERIAL_MSM_GENI_CONSOLE enabled in the kernel config

- the following lines in your cmdline

"earlycon=msm_serial_dm,0xa84000 restore_msm_uart=0x03404000"

 

 

 

Regards

Alin

 

Highlighted
Learner
Message 3 of 4
1,314 Views
Message 3 of 4

Re: Enable serial output after bootloader (EFI_UdonStop Stop DebugPort for anti-corroding)

Hello,

 

Thank you for your reply. However, it does not seem to work.

 

We've built a kernel using the tutorial at https://developer.sony.com/develop/open-devices/guides/kernel-compilation-guides/how-to-build-and-fl... but with the sources provided by https://developer.sony.com/file/download/open-source-archive-for-52-0-a-8-25/ with the following commands:

 

DTC_EXT=<our path to>/dtc \
ARCH=arm64 \
KCFLAGS=-mno-android \
CROSS_COMPILE=aarch64-linux-android- \
KBUILD_DIFFCONFIG=apollo_diffconfig \
    make \
        CONFIG_BUILD_ARM64_DT_OVERLAY=y \
        O=./out \
        sdm845_defconfig \
DTC_EXT=<our path to>/dtc \
ARCH=arm64 \
KCFLAGS=-mno-android \
CROSS_COMPILE=aarch64-linux-android- \
KBUILD_DIFFCONFIG=apollo_diffconfig \
    make \
        CONFIG_BUILD_ARM64_DT_OVERLAY=y \
        O=./out \
        -j8

And

mkbootimg \
    --kernel out/Image.gz-dtb \
    --os_version "9.0.0" \
    --os_patch_level "2019-04" \
    --cmdline "earlycon=msm_serial_dm,0xa84000 restore_msm_uart=0x03404000 lpm_levels.sleep_disabled=1 androidboot.bootdevice=1d84000.ufshc msm_drm.dsi_display0=dsi_panel_cmd_display:config0 swiotlb=2048 service_locator.enable=1 msm_rtb.filter=0x3F ehci-hcd.park=3 coherent_pool=8M sched_enable_power_aware=1 user_debug=31 cgroup.memory=nokmem printk.devkmsg=on androidboot.hardware=apollo buildvariant=eng" \
    --ramdisk <our path to buildroot-2015.08.1>/output/images/rootfs.cpio \
    --ramdisk_offset 0x2000000 \
    --second_offset 0xf00000 \
    --base 0x00000000 \
    --kernel_offset 0x00008000 \
    --tags_offset 0x1e00000 \
    --pagesize 4096 \
    --board apollo \
    -o boot.img

Note the serial port arguments as you've adviced at the beginning of the cmdline argument. The parameters for mkbootimg we've taken from the unofficial twrp for the xz2 compact (which we've successfully booted). We've also tried with the parameters as described in https://developer.sony.com/develop/open-devices/guides/kernel-compilation-guides/how-to-build-mainli... but without any success. Note that the sdm845_defconfig already contains the CONFIG_SERIAL_MSM_GENI_CONSOLE you mentioned.

 

When booting, we get the following serial port output:

 

INFO: Received ResetSytem request.
INFO: Type     :0x0 
INFO: DataSize :0x19 
INFO: String   :RESET_PARAM Length: 0x18

MDPDataPartition: SaveVariables Failed. DiskIO is not initialized yet!
MDPDataPartition: Failed to save display boot service variables. Reason: Out of Resources
BDS: LogFs sync skipped, Unsupported
The END of BDS callback.
App Log Flush : 0 ms
Exit
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.XF.2.0-00364-SDM845LZB-1
S - IMAGE_VARIANT_STRING=SDM845LA
S - OEM_IMAGE_VERSION_STRING=jptolx25241
S - Boot Interface: UFS
S - Secure Boot: On
S - Boot Config @ 0x00786070 = 0x000000c1
S - JTAG ID @ 0x00786130 = 0x2008b0e1
S - OEM ID @ 0x00786138 = 0x00010004
S - Serial Number @ 0x00784138 = 0xe32b9692
S - Feature Config Row 0 @ 0x007841a0 = 0x0050200080000400
S - Feature Config Row 1 @ 0x007841a8 = 0xe000000000000080
S - Core 0 Frequency, 1516 MHz
S - PBL Patch Ver: 1
S - PBL freq: 600 MHZ
B -        94 - PBL, Start
B -      5275 - bootable_media_detect_entry
B -     42552 - bootable_media_detect_success
B -     42929 - elf_loader_entry
B -     43557 - auth_hash_seg_entry
B -     51083 - auth_hash_seg_exit
B -     57216 - elf_segs_hash_verify_entry
B -     64016 - elf_segs_hash_verify_exit
B -     64646 - auth_xbl_sec_hash_seg_entry
B -     71856 - auth_xbl_sec_hash_seg_exit
B -     71858 - xbl_sec_segs_hash_verify_entry
B -     72611 - xbl_sec_segs_hash_verify_exit
B -     72635 - PBL, End
B -     87474 - SBL1, Start
B -    199927 - boot_flash_init, Start
D -         0 - boot_flash_init, Delta
B -    203892 - xblconfig_init, Start
D -      3782 - Auth Metadata
D -    128710 - xblconfig_init, Delta
B -    337574 - sbl1_ddr_set_default_params, Start
D -      1494 - sbl1_ddr_set_default_params, Delta
B -    345565 - boot_config_data_table_init, Start
D -         0 - boot_config_data_table_init, Delta - (0 Bytes)
B -    354684 - CDT Version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    365878 - pm_device_init, Start
B -    371124 - PM: PON REASON: PM0=0x8000028000000021:0x0 PM1=0x8000088000000020:0x0 PM2=0x800008800 
B -    431300 - PM: SET_VAL:Skip
D -     65361 - pm_device_init, Delta
B -    434320 - pm_driver_init, Start
B -    443012 - no SDI. gcc_reset_status=2
B -    443317 - S3=16sec
D -      9241 - pm_driver_init, Delta
B -    449265 - PM: Trigger FG IMA Reset
B -    452833 - PM: Trigger FG IMA Reset.Completed
B -    462410 - PM: EntryVbat: 4330; EntrySOC: -1
B -    462441 - PM: ADSP result: 0
B -    466985 - PM: Manually set ICL 500mA
B -    470188 - PM: Vbatt: 4330; Ibatt: 2
B -    473909 - PM: Charger SRC: SDP
B -    977433 - PM: SBL Charging in progress....
B -    977769 - PM: Primary Charging loop exit
B -    981825 - PM: ExitVbatt: 4330
B -    986034 - vsense_init, Start
D -         0 - vsense_init, Delta
B -   1018395 - No UDON
B -   1028429 - sbl1_ddr_set_params, Start
B -   1030290 - Pre_DDR_clock_init, Start
D -        61 - Pre_DDR_clock_init, Delta
D -      7656 - sbl1_ddr_set_params, Delta
B -   1039836 - sbl1_ddr_init, Start
D -     16104 - sbl1_ddr_init, Delta
B -   1059783 - DSF version = 253.4, DSF SHRM version = 173.1
B -   1063138 - Manufacturer ID = 1, Device Type = 7
B -   1068659 - Rank 0 size = 4096 MB, Rank 1 size = 0 MB
B -   1073600 - do_ddr_training, Start
B -   1080188 - Frequency = 1355 MHz
D -      3599 - do_ddr_training, Delta
B -   1088697 - pImem Init Start
D -      9729 - pImem Init End, Delta
B -   1100409 - LOG_BUF IMEM->DDR migrated 3246 bytes of 3584 bytes
B -   1107668 - DDR_INFO:LogVer=0002,type=0007,MR4=0x0001,0x0000,0x0001,0x0000,MR5=0x01,MR6=0x06,MR7=2
B -   1113707 - DDR_RANK:LogVer=0001,sdram0_cs0=0x800,sdram0_cs1=0x0,sdram1_cs0=0x800,sdram1_cs1=0x0
B -   1123864 - LUN=2 xbl_b
B -   1127188 - cpu.temp=32C.
B -   1129750 - clock_init, Start
D -       213 - clock_init, Delta
B -   1135698 - APDP Image Load, Start
D -      2897 - APDP Image Loaded, Delta - (0 Bytes)
B -   1142194 - usb: UFS Serial - 352334b0
B -   1146861 - usb: chgr -  SDP_CHARGER
B -   1151009 - usb: qusb2_1: hstx , 0x7
B -   1154486 - usb: PLL1 locked , 0x5
B -   1158085 - boot_restore_debug_regions - Start
B -   1161745 - boot_restore_debug_regions - End
B -   1166625 - PM: 0: PON=0x21Face with stuck-out TongueON1:HARD_RESET: ON=0x80Face with stuck-out TongueON_SEQ: POFF=0x2Face with stuck-out TongueS_HOLD: OFF=0x80Face with stuck-out TongueOFF_SEQ
B -   1176141 - PM: 1: PON=0x20Face with stuck-out TongueON1: ON=0x80Face with stuck-out TongueON_SEQ: POFF=0x8:GP1: OFF=0x80Face with stuck-out TongueOFF_SEQ
B -   1185169 - PM: 2: PON=0x20Face with stuck-out TongueON1: ON=0x80Face with stuck-out TongueON_SEQ: POFF=0x8:GP1: OFF=0x80Face with stuck-out TongueOFF_SEQ
B -   1192824 - PM: SMEM Chgr Info Write Success
B -   1199778 - AOP Image Load, Start
D -      3507 - Auth Metadata
D -     10248 - Segments hash check
D -     22418 - AOP Image Loaded, Delta - (178948 Bytes)
B -   1225459 - QSEE Dev Config Image Load, Start
D -      3477 - Auth Metadata
D -       366 - Segments hash check
D -     12291 - QSEE Dev Config Image Loaded, Delta - (33972 Bytes)
B -   1246535 - QSEE Image Load, Start
D -      9913 - Auth Metadata
D -     11773 - Segments hash check
D -     41968 - QSEE Image Loaded, Delta - (2035288 Bytes)
B -   1291736 - Image Load, Start
D -        91 - SEC Image Loaded, Delta - (4096 Bytes)
B -   1300062 - QHEE Image Load, Start
D -      3477 - Auth Metadata
D -      2379 - Segments hash check
D -     18758 - QHEE Image Loaded, Delta - (380352 Bytes)
B -   1322083 - STI Image Load, Start
D -      5155 - STI Image Loaded, Delta - (0 Bytes)
B -   1330928 - ABL Image Load, Start
D -      3508 - Auth Metadata
D -      2348 - Segments hash check
D -     14274 - ABL Image Loaded, Delta - (531024 Bytes)
B -   1348588 - APPSBL Image Load, Start
D -      3599 - Auth Metadata
D -      9668 - Segments hash check
D -     35136 - APPSBL Image Loaded, Delta - (2228224 Bytes)
B -   1423984 - SBL1, End
D -   1336540 - SBL1, Delta
S - Flash Throughput, 120000 KB/s  (5464204 Bytes,  45160 us)
S - DDR Frequency, 1353 MHz


UEFI Start     [ 1654] SEC
ASLR        : On
DEP         : On
Timer Delta : +1 mS
RAM Entry 0 : Base 0x0000000080000000  Size 0x00000000FE2C0000
CONF File   : uefiplatLA.cfg
UEFI Ver    : 5.0.180827.BOOT.XF.2.0-00364-SDM845LZB-1
Build Info  : 64b Aug 27 2018 18:24:43
Boot Device : UFS
PROD Mode   : FALSE
Retail      : TRUE
 - 0x09B306000 [ 1771] DxeCore.efi
Loading DxeCore at 0x009B306000 EntryPoint=0x009B307000
HOBLIST address in DXE = 0x9B0F5018
FV Hob            0x9FC00000 - 0x9FE1FFFF
FV Hob            0x9B93A000 - 0x9BF248FF
FV2 Hob           0x9B93A000 - 0x9BF248FF
 - 0x09B286000 [ 1780] MazeDetDxe.efi
 - 0x09B27B000 [ 1781] XHwresetDxe.efi
 - 0x09B2A1000 [ 1782] EnvDxe.efi
 - 0x09B299000 [ 1783] ReportStatusCodeRouterRuntimeDxe.efi
 - 0x09B290000 [ 1783] StatusCodeHandlerRuntimeDxe.efi
 - 0x09AA16000 [ 1784] RuntimeDxe.efi
 - 0x09B270000 [ 1784] ArmCpuDxe.efi
 - 0x09B268000 [ 1794] ArmGicDxe.efi
 - 0x09B261000 [ 1799] ArmTimerDxe.efi
 - 0x09B25A000 [ 1799] WatchdogTimer.efi
 - 0x09B246000 [ 1800] SecurityDxe.efi
 - 0x09B23C000 [ 1800] ASN1X509Dxe.efi
 - 0x09B233000 [ 1801] SecRSADxe.efi
 - 0x09B225000 [ 1801] VerifiedBootDxe.efi
 - 0x09B21C000 [ 1802] SmemDxe.efi
 - 0x09B1D4000 [ 1803] DALSys.efi
 - 0x09B1CC000 [ 1804] HWIODxeDriver.efi
 - 0x09B1C2000 [ 1804] ChipInfo.efi
 - 0x09B1BB000 [ 1805] PlatformInfoDxeDriver.efi
 - 0x09B1B3000 [ 1805] HALIOMMU.efi
 - 0x09B1AC000 [ 1807] MetronomeDxe.efi
 - 0x09B198000 [ 1808] ULogDxe.efi
 - 0x09B191000 [ 1809] CmdDbDxe.efi
 - 0x09B17F000 [ 1809] NpaDxe.efi
 - 0x09B170000 [ 1810] RpmhDxe.efi
 - 0x09B168000 [ 1810] PdcDxe.efi
 - 0x09B126000 [ 1811] ClockDxe.efi
 - 0x09B118000 [ 1818] CPRDxe.efi
 - 0x09B10E000 [ 1823] DiskIoDxe.efi
 - 0x09B103000 [ 1823] PartitionDxe.efi
 - 0x09A9A8000 [ 1824] SdccDxe.efi
 - 0x09A98F000 [ 1825] UFSDxe.efi
 - 0x0994A8000 [ 1877] TzDxe.efi
 - 0x09934A000 [ 1881] Fat.efi
 - 0x099359000 [ 1882] EnglishDxe.efi
 - 0x099335000 [ 1883] FvSimpleFileSystem.efi
 - 0x09932B000 [ 1883] EmuVariableRuntimeDxe.efi
 - 0x099361000 [ 1884] EmbeddedMonotonicCounter.efi
 - 0x099312000 [ 1884] ResetRuntimeDxe.efi
 - 0x099323000 [ 1885] RealTimeClock.efi
 - 0x0992FF000 [ 1886] PrintDxe.efi
 - 0x0992DA000 [ 1886] DevicePathDxe.efi
 - 0x0992F7000 [ 1887] CapsuleRuntimeDxe.efi
 - 0x099297000 [ 1888] HiiDatabase.efi
 - 0x0992EE000 [ 1888] FontDxe.efi
 - 0x099200000 [ 1893] QcomBds.efi
 - 0x09928C000 [ 1894] DALTLMM.efi
 - 0x099276000 [ 1895] SPMI.efi
 - 0x099178000 [ 1899] PmicDxe.efi
PM0: 20, PM1: 21, PM2: 24, 
 - 0x099239000 [ 1912] AdcDxe.efi
 - 0x0991DB000 [ 1913] UsbPwrCtrlDxe.efi
UsbPwrCtrlLib:UsbPwrCtrlLibConfig_Init Initializing DEFAULT configuration 
UsbPwrCtrlLib:UsbPwrCtrlLib_Init SUCCESS 
 - 0x09915B000 [ 1913] QcomChargerDxeLA.efi
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ChargerLib:: ChargerLib_Ge 
1, PmicDxe:: PmicSchgSetChargerDefaultSetting Setting ICL = 500 mA 
1, PmicDxe:: PmicSchgInitialChargerCheckup APSD done status: 1, Port Type = 0 
1,  - 0x0991CC000 [ 1927] ChargerExDxe.efi
 - 0x099143000 [ 1927] UsbfnDwc3Dxe.efi
 - 0x09912D000 [ 1928] UsbConfigDxe.efi
 - 0x0991C5000 [ 1930] SimpleTextInOutSerial.efi
 - 0x0991D3000 [ 1931] ConPlatformDxe.efi
 - 0x099120000 [ 1931] ConSplitterDxe.efi
 - 0x0991AE000 [ 1932] GraphicsConsoleDxe.efi
 - 0x099117000 [ 1933] ButtonsDxe.efi
 - 0x099110000 [ 1934] TsensDxe.efi
 - 0x09908F000 [ 1935] DisplayDxe.efi
 - 0x099104000 [ 1937] LimitsDxe.efi
 - 0x099046000 [ 1944] GpiDxe.efi
 - 0x0990EC000 [ 2022] XAdcDxe.efi
 - 0x098FBD000 [ 2025] XDisplayDxe.efi
 - 0x0990D5000 [ 2026] HashDxe.efi
 - 0x0990E5000 [ 2027] RngDxe.efi
 - 0x09903D000 [ 2027] DDRInfoDxe.efi
 - 0x099024000 [ 2028] UsbMsdDxe.efi
 - 0x099018000 [ 2029] UsbDeviceDxe.efi
 - 0x099035000 [ 2029] XResetReasonDxe.efi
invalid last_log info
 - 0x099011000 [ 2030] XOemCertDxe.efi
 - 0x0991B9000 [ 2031] XBootPALDxe.efi
 - 0x098FB2000 [ 2031] TaDxe.efi
 - 0x099002000 [ 2032] XDeviceTreeDxe.efi
 - 0x098F9D000 [ 2033] ResetCfgDxe.efi
 - 0x098FA7000 [ 2033] UdonDxe.efi
rtc raw 60
-----------------------------
Platform Init  [ 2087] BDS
Platform   : MTP
Chip Name  : SDM845
Chip Ver   : 2.1
Core 0 Freq: 1612 MHz
Mounting FAT Volume: logfs
-----------------------------
UEFI Total : 435 ms
POST Time      [ 2089] OS Loader
 - 0x0988C3000 [ 2092] LinuxLoader.efi
Loader Build Info: Aug 27 2018 18:27:12
AppReg Init:8 mS
LoadSecureApps: Load app from partition(keymaster): Status = 0x0, AppId = 1
LoadSecureApps: Load app from partition(tzxflattest): Status = 0x0, AppId = 2
VB: RWDeviceState: Succeed using rpmb!
Boot counter is 1128
XBoot Init
Init XBootPALAPILib
Init TA API Lib
XBOOT (1310-7079_X_Boot_SDM845_LA2.0_P_118)
[WARNING @ ta_interface.c:109]:
Unable to read TA unit 66667, error=4
[ERROR @ xboot_glue.c:107]:
read_ta returned err=-22
[ERROR @ xboot_glue.c:526]:
get_dk returned err=-22
Reading 321 bytes from RPMB, OK
Reading 321 bytes from RPMB, OK
XDeviceTreeAddrExtract start
no check attributes (Mode 3) 
LoadImageAndAuth: 1343: CurrentSlot.Suffix=_b
load_and_verify_vbmeta:432: DEBUG: Loading vbmeta struct from partition 'vbmeta_b'.
load_and_verify_hash_partition:186: DEBUG: boot_b: Loading entire partition.
load_and_verify_hash_partition:242: ERROR: boot_b: Hash of data does not match digest in descriptor.
load_and_verify_hash_partition:186: DEBUG: dtbo_b: Loading entire partition.
Loading Image Start : 2559 ms
Loading Image Done : 2559 ms
Total Image Read size : 4096 Bytes
Loading Image Start : 2559 ms
Loading Image Done : 2589 ms
Total Image Read size : 16064512 Bytes
VB: VerifyImage: Image verification done! boot state is: GREEN
VB:VerifyImage time spent: 24 mS
Sony image verification done! boot state is: green
Memory Base Address: 0x80000000
Decompressing kernel image start: 2614 ms
Decompressing kernel image done: 2795 ms
model does not exist in device tree
Best match DTB tags 321/00000008/0x00000000/20001/20014/20115/20018/0/(offset)0x79A226AC/(size)0x0009D
Using pmic info 0x20014/0x20115/0x20018/0x0 for device 0x20014/0x20115/0x20018/0x0
Memory Base Address: 0x80000000
XDeviceTreeAddrExtract end 
Detected display: 4
Failed to parse qcom,compression-mode
Failed to parse somc,pw-wait-after-on-dcdc
Failed to parse somc,pw-wait-after-off-dcdc
somc_display_backlight_from_dtsi finish success
 - 0x097EC7000 [ 2852] QcomChargerApp.efi
2, QcomChargerDxe:: no Turn Off LED
2, ChargerLib:: no Turn Off LED
2, XBoot MakeDecisions
Check authenticated commands
[ERROR @ ta_interface.c:301]:
Unable to delete TA unit 2334
Make Decisions
PBA ID: 1309-8886 (1)
Vendor(0x00000001)->Sony(0x77665501)
Recovery command: 32 bootonce-bootloader
2, 2, Setting existing handle
Startup flags: [USB INSERTED] [HARD RESET]
Warmboot reason: [NORMAL]
[ERROR @ sony_boot_config_parser.c:738]:
None or incorrect vbus_pulse configuration!
2, 2, Reset keys pressed but released before shutdown timer expired. Booting normally.
Service mode detected: [NONE]
Collect command line additions
Obtain backlight config
Verify Reset FRP and OEM unlock flag Request
Generate authenticated channel nonce
Booting Into Mission Mode
Enable XHwreset
S2 reset is enabled
Setting existing handle
Active Slot _b is bootable, retry count 6
Booting from slot (_b)
LoadImageAndAuth: 1343: CurrentSlot.Suffix=_b
load_and_verify_vbmeta:432: DEBUG: Loading vbmeta struct from partition 'vbmeta_b'.
load_and_verify_hash_partition:186: DEBUG: boot_b: Loading entire partition.
load_and_verify_hash_partition:242: ERROR: boot_b: Hash of data does not match digest in descriptor.
load_and_verify_hash_partition:186: DEBUG: dtbo_b: Loading entire partition.
State: Unlocked, AvbSlotVerify returned ERROR_VERIFICATION, continue boot
VB2: Authenticate complete! boot state is: orange
VB2: boot state: orange(1)
Reading 321 bytes from RPMB, OK
VB: RWDeviceState: Succeed using rpmb!
Device key is not set, setting to zero
Memory Base Address: 0x80000000
Decompressing kernel image start: 8858 ms
Decompressing kernel image done: 9178 ms
@@@ UpdateCmdLine mode = 0
9, Cmdline: earlycon=msm_serial_dm,0xa84000 restore_msm_uart=0x03404000 lpm_levels.sleep_disabled=1 ar
cmdline: "earlycon=msm_serial_dm,0xa84000 restore_msm_uart=0x03404000 "\
         "lpm_levels.sleep_disabled=1 androidboot.bootdevice=1d84000.u"\
         "fshc msm_drm.dsi_display0=dsi_panel_cmd_display:config0 swio"\
         "tlb=2048 service_locator.enable=1 msm_rtb.filter=0x3F ehci-h"\
         "cd.park=3 coherent_pool=8M sched_enable_power_aware=1 user_d"\
         "ebug=31 cgroup.memory=nokmem printk.devkmsg=on androidboot.h"\
         "ardware=apollo buildvariant=eng androidboot.verifiedbootstat"\
         "e=orange androidboot.keymaster=1 dm="1 vroot none ro 1,0 812"\
         "7088 verity 1 PARTUUID=c351ca12-1a0f-43aa-911e-99daf8ba5dcd "\
         "PARTUUID=c351ca12-1a0f-43aa-911e-99daf8ba5dcd 4096 4096 1015"\
         "886 1015886 sha1 63307629b52c903cc7aa3e0cdc0ee5f12207272c ae"\
         "e087a5be3b982978c923f566a94613496b417f2af592639bc80d141e34df"\
         "e7 10 restart_on_corruption ignore_zero_blocks use_fec_from_"\
         "device PARTUUID=c351ca12-1a0f-43aa-911e-99daf8ba5dcd fec_roo"\
         "ts 2 fec_blocks 1023887 fec_start 1023887" root=/dev/dm-0 an"\
         "droidboot.vbmeta.device=PARTUUID=6995d1b0-2855-4d80-9e2b-9a3"\
         "86e09bd5e androidboot.vbmeta.avb_version=1.0 androidboot.vbm"\
         "eta.device_state=unlocked androidboot.vbmeta.hash_alg=sha256"\
         " androidboot.vbmeta.size=2688 androidboot.vbmeta.digest=22a3"\
         "17e9a312fd6770d467833a24707c784accaaca4a3a43e8d39c387714391c"\
         " androidboot.vbmeta.invalidate_on_error=yes androidboot.veri"\
         "tymode=enforcing androidboot.bootdevice=1d84000.ufshc androi"\
         "dboot.baseband=sdm lcdid_adc=1155281 androidboot.slot_suffix"\
         "=_b skip_initramfs rootwait ro init=/init  androidboot.dtbo_"\
         "idx=1  androidboot.bootloader=xboot oemandroidboot.xboot=131"\
         "0-7079_X_Boot_SDM845_LA2.0_P_118 androidboot.serialno=BH9037"\
         "61BZ startup=0x00008004 warmboot=0x77665501 oemandroidboot.b"\
         "abe09a9=00 oemandroidboot.babe08b3=50000000 oemandroidboot.b"\
         "abe137e=31 oemandroidboot.imei=35500309080025 oemandroidboot"\
         ".security=0 oemandroidboot.securityflags=0x00000003".
RAM Partitions
Add Base: 0x0000000080000000 Available Length: 0x00000000FE2C0000 
WARNING: Could not find mem-offline node.
Unable to get splash buffer info, Not Found
kaslr-Seed is added to chosen node
Detected display: 4
Failed to parse qcom,compression-mode
Failed to parse somc,pw-wait-after-on-dcdc
Failed to parse somc,pw-wait-after-off-dcdc
somc_display_backlight_from_dtsi finish success

Shutting Down UEFI Boot Services: 10033 ms
EFI_UdonStop Detected SIM tray 
EFI_UdonStop Stop DebugPort for anti-corroding

Notice even here that the cmdline contains the arguments you mentioned.

 

Thanks

 

One time poster
Message 4 of 4
165 Views
Message 4 of 4

Re: Enable serial output after bootloader (EFI_UdonStop Stop DebugPort for anti-corroding)

@gardin, it seems you are not getting your kernel boot up log on your serial console because it is disabled by default in the kernel source - see drivers/soc/qcom/console_setup.c, there is

static int need_serial_console;

variable (not set, i.e. it defaults to 0). The init_console_setup() enables the initial console only if this variable is set. By default it disables the device tree node for the uart ("/soc/qcom,qup_uart@0xa84000") which would be handled by the drivers/tty/serial/msm_geni_serial.c driver mentioned here.

 

So to enable kernel boot log on that serial, either patch the drivers/soc/qcom/console_setup.c setting need_serial_console variable to 1 or you might set 0x09a9 TA unit to 0x01 in order to make bootloader to add "oemandroidboot.babe09a9=01" to kernel commandline, so the setup_serial_console() function could set the variable on boot.

I am not sure if patching the kernel as described is sufficient in itself or if setting the 0x09a9 TA unit to 0x01 is the crucial thing - but for sure, when that TA unit is set, the

"EFI_SobaStop Stop DebugPort for anti-corroding"

message disappears from bootloader bootlog in case of XZ1 Compact (as found in the log history available in TA since 0x802 units).

 

Could you please let me know, how did you connect serial to your XZ2?

Do you use some test pins on the phone's motherboard or is it possible to get serial/debug connection over USB-C connector?

Could you please log the bootloader bootlog when entering sony flash mode, i.e. Vol- held when connecting the usb cable from PC to the phone (if possible to get at the same time with your serial console connection)?

I am wondering if it logs

"Service mode detected: [SONY - USB]"

or instead for your serial console connection following:

"Service mode detected: [SONY - UART]".

Thank you.

 

@devjerpelea, could you please provide details about how to get serial console/uart connection (from hw point of view) with XZ1 Compact as that information is missing at

https://developer.sony.com/develop/open-devices/guides/access-uart-ports/

Thank you.