OnePlus 3T - DTB offset is incorrect
Describe your issue
OnePlus 3T doesn't boot with postmarketOS.
What's the expected behaviour?
Device boots fine into any environment.
What's the current behaviour?
boot.img issue - DTB offset is incorrect. Device reboots to fastboot.
How to reproduce your issue?
Build edge-channel postmarketOS. Flash it to device and try to boot it.
What device are you using?
oneplus-oneplus3t
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v22.12
-
I confirm that the issue still is present after running sudo apk upgrade -a
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
2023-04-01
Additional information
Actions tried
- Build kernel with S6E3AF3 | S6E3AF5 panel firmware
- Build v5.7 kernel
- Disable "append_dtb"
-
fastboot boot
stock kernel and pmOS initramfs -
fastboot-boot
pmOS vmlinuz-dtb and initramfs - Flashing latest phone modem + firmware (Open Beta 30)
Stock kernel UART log
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.1.0-00303
S - IMAGE_VARIANT_STRING=M8996LAB
S - OEM_IMAGE_VERSION_STRING=ubuntu-21
S - Note XBL compiled at Oct 27 2016 20:37:03
S - Boot Interface: UFS
S - Secure Boot: On
S - Boot Config @ 0x00076044 = 0x000001c9
S - JTAG ID @ 0x000760f4 = 0x1005f0e1
S - OEM ID @ 0x000760f8 = 0x2a703db9
S - Serial Number @ 0x00074138 = 0x025e854c
S - Feature Config Row 0 @ 0x000741a0 = 0x0050000010000100
S - Feature Config Row 1 @ 0x000741a8 = 0x0001000000000000
S - Core 0 Frequency, 1228 MHz
B - 0 - PBL, Start
B - 10412 - bootable_media_detect_entry, Start
B - 45906 - bootable_media_detect_success, Start
B - 45907 - elf_loader_entry, Start
B - 46914 - auth_hash_seg_entry, Start
B - 47894 - auth_hash_seg_exit, Start
B - 79748 - elf_segs_hash_verify_entry, Start
B - 82255 - PBL, End
B - 84302 - SBL1, Start
B - 174338 - usb: hs_phy_nondrive_start
B - 174673 - usb: PLL lock success - 0x3
B - 177662 - usb: hs_phy_nondrive_finish
B - 181780 - boot_flash_init, Start
D - 30 - boot_flash_init, Delta
B - 188886 - sbl1_ddr_set_default_params, Start
D - 30 - sbl1_ddr_set_default_params, Delta
B - 196877 - boot_config_data_table_init, Start
B - 643824 - CDT not programmed, using default
D - 442463 - boot_config_data_table_init, Delta - (54 Bytes)
B - 647149 - CDT Version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B - 652974 - Image Load, Start
D - 22082 - PMIC Image Loaded, Delta - (37368 Bytes)
B - 675087 - pm_device_init, Start
B - 680851 - PON REASON:PM0:0x200000021 PM1:0x200000031
B - 717268 - PM_SET_VAL:Skip
D - 40016 - pm_device_init, Delta
B - 719190 - pm_driver_init, Start
D - 2989 - pm_driver_init, Delta
B - 725778 - pm_sbl_chg_init, Start
D - 305 - pm_sbl_chg_init, Delta
B - 732549 - vsense_init, Start
D - 0 - vsense_init, Delta
B - 739930 - Pre_DDR_clock_init, Start
D - 366 - Pre_DDR_clock_init, Delta
B - 746152 - ddr_initialize_device, Start
B - 749842 - 8996 Pro v1.x detected, Max frequency = 1.8 GHz
B - 753899 - hw_self_refresh_enable = 0
B - 759602 - reboot_reason = 0x10
B - 768844 - hw_self_refresh_enable = 0
B - 768874 - reboot_reason = 0x10
B - 772473 - ddr_initialize_device, Delta
B - 774944 - DDR ID, Rank 0, Rank 1, 0x1, 0x600, 0x600
B - 779122 - Basic DDR tests done
B - 847534 - clock_init, Start
D - 244 - clock_init, Delta
B - 849547 - Image Load, Start
D - 5673 - QSEE Dev Config Image Loaded, Delta - (46008 Bytes)
B - 855860 - Image Load, Start
D - 7259 - APDP Image Loaded, Delta - (7696 Bytes)
B - 864553 - Image Load, Start
D - 54991 - QSEE Image Loaded, Delta - (1640900 Bytes)
B - 919575 - Image Load, Start
D - 152 - SEC Image Loaded, Delta - (4096 Bytes)
B - 927139 - sbl1_efs_handle_cookies, Start
D - 305 - sbl1_efs_handle_cookies, Delta
B - 935618 - Image Load, Start
D - 14365 - QHEE Image Loaded, Delta - (254184 Bytes)
B - 950014 - Image Load, Start
D - 13969 - RPM Image Loaded, Delta - (223932 Bytes)
B - 964349 - Image Load, Start
D - 3691 - STI Image Loaded, Delta - (0 Bytes)
B - 971150 - Image Load, Start
D - 67436 - APPSBL Image Loaded, Delta - (1423324 Bytes)
B - 1038677 - SBL1, End
D - 958645 - SBL1, Delta
S - Flash Throughput, 113000 KB/s (3641778 Bytes, 32009 us)
S - DDR Frequency, 1017 MHz
Android Bootloader - UART_DM Initialized!!!
[0] Note LK compiled at Oct 27 2016 20:50:24
[40] UFS init success
[40] ----Inquiry buffer----
[40] [Oneplus]buf[0] = 0
[40] [Oneplus]buf[1] = 0
[40] [Oneplus]buf[2] = 6
[50] [Oneplus]buf[3] = 2
[50] [Oneplus]buf[4] = 1f
[50] [Oneplus]buf[5] = 0
[50] [Oneplus]buf[6] = 0
[60] [Oneplus]buf[7] = 2
[60] [Oneplus]buf[8] = 53
[60] [Oneplus]buf[9] = 41
[60] [Oneplus]buf[10] = 4d
[70] [Oneplus]buf[11] = 53
[70] [Oneplus]buf[12] = 55
[70] [Oneplus]buf[13] = 4e
[70] [Oneplus]buf[14] = 47
[70] [Oneplus]buf[15] = 0
[80] [Oneplus]buf[16] = 4b
[80] [Oneplus]buf[17] = 4c
[80] [Oneplus]buf[18] = 55
[80] [Oneplus]buf[19] = 44
[90] [Oneplus]buf[20] = 47
[90] [Oneplus]buf[21] = 38
[90] [Oneplus]buf[22] = 4a
[90] [Oneplus]buf[23] = 31
[100] [Oneplus]buf[24] = 43
[100] [Oneplus]buf[25] = 42
[100] [Oneplus]buf[26] = 2d
[100] [Oneplus]buf[27] = 42
[110] [Oneplus]buf[28] = 30
[110] [Oneplus]buf[29] = 42
[110] [Oneplus]buf[30] = 31
[110] [Oneplus]buf[31] = 0
[120] [Oneplus]buf[32] = 30
[120] [Oneplus]buf[33] = 38
[120] [Oneplus]buf[34] = 30
[120] [Oneplus]buf[35] = 30
[130] ----end of buffer---
[130] ucs_scsi_send_inquiry_revision :0800
[130] FFU is successful
[140] get_param_by_index_and_offset[49] sid_index = 1 offset = 24 buf = 0x91760760 length = 4
[150] set_msm_boot_mode_by_gpio : enter
[150] GPIO detect: MSM_BOOT_MODE__NORMAL
[170] set_msm_boot_mode_by_share_memory_args : Reboot mode by mem args =0x10
[170] project name is null and use default 15811
[490] bq27541_dsi_i2c_read
[500] get bq27541 DCAP_H=0xd
[500] bq27541_dsi_i2c_read
[500] get bq27541 DCAP_L=0x7
[500] bq27541_dsi_i2c_read
[510] get bq27541 DCAP_H=0xd
[510] bq27541_dsi_i2c_read
[510] get bq27541 DCAP_L=0x7
[510] bq27541_dsi_i2c_read
[520] get bq27541 DCAP_H=0xd
[520] bq27541_dsi_i2c_read
[520] get bq27541 DCAP_L=0x7
[520] get_hw_version=28,bat_type=10,HW_VERSION__28=28
[530] FG: gain -21 raw_vbat 4251 calibrated_vbat 4027 errFlag = 0
[530] stored_soc[0x83], shutdown_soc[65]
[540] Qseecom Init Done in Appsbl
[540] secure app region addr=0x86600000 size=0x2200000[550] TZ App region notif returned with status:0 addr:86600000 size:35651584
[550] TZ App log region register returned with status:0 addr:91779000 size:4096
[560] Qseecom TZ Init Done in Appsbl
[620] Loading cmnlib done
[650] <8>keymaster: "\"KEYMASTER Init \""
[650] <8>keymaster: "\"open_add_km_partition status:0\""
[680] RPMB is enable
[680] RPMB is enable, we do not change enable_dm_verity value in devinfo.
[690] get_param_by_index_and_offset[49] sid_index = 12 offset = 416 buf = 0x917714d8 length = 4
[700] Not able to search the panel:
[700] init_panel_data: SAMSUNG_S6E3FA3_1080P_CMD_PANEL
[710] Return value from recv_data: 14
[720] Return value from recv_data: 14
[730] Return value from recv_data: 14
[750] is_usb_present: TRUE
[820] read the LCD ID register is 0x6
[830] sorry,not match s6e3fa3 id,try another
[830] dsi panel init error
[830] set samsung brightness 0
[1000] Return value from recv_data: 14
[1030] Return value from recv_data: 14
[1040] Return value from recv_data: 14
[1050] Not able to search the panel:
[1050] init_panel_data: SAMSUNG_S6E3FA5_1080P_CMD_PANEL
[1050] Return value from recv_data: 14
[1060] Return value from recv_data: 14
[1070] Return value from recv_data: 14
[1090] is_usb_present: TRUE
[1160] read the LCD ID register is 0x58
[1170] match s6e3fa5 id successfully
[1280] set samsung brightness 68
[1290] Device is unlocked! Skipping verification...
[6430] is_usb_present: TRUE
[6460] Return value from recv_data: 14
[6470] Return value from recv_data: 14
[6480] Return value from recv_data: 14
[6800] set_msm_boot_mode_by_uart : enter
# # # [6960] COLD: power_on_reason is HARD_RESET [0x21]
[6960] COLD: power_on_reason is PON1 [0x21]
[6960] COLD: power_off_reason is PS_HOLD [0x2]
[6970] get_param_by_index_and_offset[49] sid_index = 0 offset = 76 buf = 0x91771300 length = 28
[6980] get_param_by_index_and_offset[49] sid_index = 12 offset = 412 buf = 0x917712e8 length = 4
[6990] get_param_by_index_and_offset[49] sid_index = 10 offset = 128 buf = 0x917712e4 length = 4
[6990] get_param_by_index_and_offset[49] sid_index = 12 offset = 408 buf = 0x917712c8 length = 4
[7000] boot_stage:0x9012
[7000] get_param_by_index_and_offset[49] sid_index = 12 offset = 412 buf = 0x917712c8 length = 4
[7010] data_stage:0x1234
[7020] get_param_by_index_and_offset[49] sid_index = 0 offset = 76 buf = 0x91771308 length = 28
[7030] Return value from recv_data: 14
[7040] Qseecom De-Init Done in Appsbl
postmarketOS kernel UART log
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.1.0-00303
S - IMAGE_VARIANT_STRING=M8996LAB
S - OEM_IMAGE_VERSION_STRING=ubuntu-21
S - Note XBL compiled at Oct 27 2016 20:37:03
S - Boot Interface: UFS
S - Secure Boot: On
S - Boot Config @ 0x00076044 = 0x000001c9
S - JTAG ID @ 0x000760f4 = 0x1005f0e1
S - OEM ID @ 0x000760f8 = 0x2a703db9
S - Serial Number @ 0x00074138 = 0x025e854c
S - Feature Config Row 0 @ 0x000741a0 = 0x0050000010000100
S - Feature Config Row 1 @ 0x000741a8 = 0x0001000000000000
S - Core 0 Frequency, 1228 MHz
B - 0 - PBL, Start
B - 10411 - bootable_media_detect_entry, Start
B - 45907 - bootable_media_detect_success, Start
B - 45908 - elf_loader_entry, Start
B - 46903 - auth_hash_seg_entry, Start
B - 47885 - auth_hash_seg_exit, Start
B - 79737 - elf_segs_hash_verify_entry, Start
B - 82241 - PBL, End
B - 84271 - SBL1, Start
B - 174307 - usb: hs_phy_nondrive_start
B - 174643 - usb: PLL lock success - 0x3
B - 177632 - usb: hs_phy_nondrive_finish
B - 181780 - boot_flash_init, Start
D - 0 - boot_flash_init, Delta
B - 188886 - sbl1_ddr_set_default_params, Start
D - 0 - sbl1_ddr_set_default_params, Delta
B - 196877 - boot_config_data_table_init, Start
B - 512125 - CDT not programmed, using default
D - 310795 - boot_config_data_table_init, Delta - (54 Bytes)
B - 515450 - CDT Version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B - 521275 - Image Load, Start
D - 22082 - PMIC Image Loaded, Delta - (37368 Bytes)
B - 543357 - pm_device_init, Start
B - 549152 - PON REASON:PM0:0x200000021 PM1:0x200000031
B - 585935 - PM_SET_VAL:Skip
D - 40443 - pm_device_init, Delta
B - 587857 - pm_driver_init, Start
D - 3111 - pm_driver_init, Delta
B - 594445 - pm_sbl_chg_init, Start
D - 335 - pm_sbl_chg_init, Delta
B - 601216 - vsense_init, Start
D - 0 - vsense_init, Delta
B - 608627 - Pre_DDR_clock_init, Start
D - 396 - Pre_DDR_clock_init, Delta
B - 614819 - ddr_initialize_device, Start
B - 618509 - 8996 Pro v1.x detected, Max frequency = 1.8 GHz
B - 622566 - hw_self_refresh_enable = 0
B - 628269 - reboot_reason = 0x10
B - 637511 - hw_self_refresh_enable = 0
B - 637541 - reboot_reason = 0x10
B - 641140 - ddr_initialize_device, Delta
B - 643611 - DDR ID, Rank 0, Rank 1, 0x1, 0x600, 0x600
B - 647789 - Basic DDR tests done
B - 716170 - clock_init, Start
D - 244 - clock_init, Delta
B - 718183 - Image Load, Start
D - 5673 - QSEE Dev Config Image Loaded, Delta - (46008 Bytes)
B - 724497 - Image Load, Start
D - 7259 - APDP Image Loaded, Delta - (7696 Bytes)
B - 733189 - Image Load, Start
D - 55022 - QSEE Image Loaded, Delta - (1640900 Bytes)
B - 788211 - Image Load, Start
D - 183 - SEC Image Loaded, Delta - (4096 Bytes)
B - 795806 - sbl1_efs_handle_cookies, Start
D - 305 - sbl1_efs_handle_cookies, Delta
B - 804285 - Image Load, Start
D - 14396 - QHEE Image Loaded, Delta - (254184 Bytes)
B - 818711 - Image Load, Start
D - 13999 - RPM Image Loaded, Delta - (223932 Bytes)
B - 833016 - Image Load, Start
D - 3660 - STI Image Loaded, Delta - (0 Bytes)
B - 839848 - Image Load, Start
D - 67435 - APPSBL Image Loaded, Delta - (1423324 Bytes)
B - 907375 - SBL1, End
D - 827343 - SBL1, Delta
S - Flash Throughput, 113000 KB/s (3641778 Bytes, 32067 us)
S - DDR Frequency, 1017 MHz
Android Bootloader - UART_DM Initialized!!!
[0] Note LK compiled at Oct 27 2016 20:50:24
[40] UFS init success
[40] ----Inquiry buffer----
[40] [Oneplus]buf[0] = 0
[40] [Oneplus]buf[1] = 0
[40] [Oneplus]buf[2] = 6
[50] [Oneplus]buf[3] = 2
[50] [Oneplus]buf[4] = 1f
[50] [Oneplus]buf[5] = 0
[50] [Oneplus]buf[6] = 0
[60] [Oneplus]buf[7] = 2
[60] [Oneplus]buf[8] = 53
[60] [Oneplus]buf[9] = 41
[60] [Oneplus]buf[10] = 4d
[70] [Oneplus]buf[11] = 53
[70] [Oneplus]buf[12] = 55
[70] [Oneplus]buf[13] = 4e
[70] [Oneplus]buf[14] = 47
[70] [Oneplus]buf[15] = 0
[80] [Oneplus]buf[16] = 4b
[80] [Oneplus]buf[17] = 4c
[80] [Oneplus]buf[18] = 55
[80] [Oneplus]buf[19] = 44
[90] [Oneplus]buf[20] = 47
[90] [Oneplus]buf[21] = 38
[90] [Oneplus]buf[22] = 4a
[90] [Oneplus]buf[23] = 31
[100] [Oneplus]buf[24] = 43
[100] [Oneplus]buf[25] = 42
[100] [Oneplus]buf[26] = 2d
[100] [Oneplus]buf[27] = 42
[110] [Oneplus]buf[28] = 30
[110] [Oneplus]buf[29] = 42
[110] [Oneplus]buf[30] = 31
[110] [Oneplus]buf[31] = 0
[120] [Oneplus]buf[32] = 30
[120] [Oneplus]buf[33] = 38
[120] [Oneplus]buf[34] = 30
[120] [Oneplus]buf[35] = 30
[130] ----end of buffer---
[130] ucs_scsi_send_inquiry_revision :0800
[130] FFU is successful
[140] get_param_by_index_and_offset[49] sid_index = 1 offset = 24 buf = 0x9176 0760 length = 4
[150] set_msm_boot_mode_by_gpio : enter
[150] GPIO detect: MSM_BOOT_MODE__NORMAL
[170] set_msm_boot_mode_by_share_memory_args : Reboot mode by mem args =0x10
[170] project name is null and use default 15811
[490] bq27541_dsi_i2c_read
[500] get bq27541 DCAP_H=0xd
[500] bq27541_dsi_i2c_read
[500] get bq27541 DCAP_L=0x7
[500] bq27541_dsi_i2c_read
[510] get bq27541 DCAP_H=0xd
[510] bq27541_dsi_i2c_read
[510] get bq27541 DCAP_L=0x7
[510] bq27541_dsi_i2c_read
[520] get bq27541 DCAP_H=0xd
[520] bq27541_dsi_i2c_read
[520] get bq27541 DCAP_L=0x7
[520] get_hw_version=28,bat_type=10,HW_VERSION__28=28
[530] FG: gain -21 raw_vbat 4290 calibrated_vbat 4064 errFlag = 0
[530] stored_soc[0x83], shutdown_soc[65]
[540] Qseecom Init Done in Appsbl
[540] secure app region addr=0x86600000 size=0x2200000[550] TZ App region notif returned with status:0 addr:86600000 size:35651584
[550] TZ App log region register returned with status:0 addr:91779000 size:4096
[560] Qseecom TZ Init Done in Appsbl
[620] Loading cmnlib done
[650] <8>keymaster: "\"KEYMASTER Init \""
[650] <8>keymaster: "\"open_add_km_partition status:0\""
[680] RPMB is enable
[680] RPMB is enable, we do not change enable_dm_verity value in devinfo.
[690] get_param_by_index_and_offset[49] sid_index = 12 offset = 416 buf = 0x91 7714d8 length = 4
[700] Not able to search the panel:
[700] init_panel_data: SAMSUNG_S6E3FA3_1080P_CMD_PANEL
[710] Return value from recv_data: 14
[720] Return value from recv_data: 14
[730] Return value from recv_data: 14
[750] is_usb_present: TRUE
[820] read the LCD ID register is 0x6
[830] sorry,not match s6e3fa3 id,try another
[830] dsi panel init error
[830] set samsung brightness 0
[1000] Return value from recv_data: 14
[1030] Return value from recv_data: 14
[1040] Return value from recv_data: 14
[1050] Not able to search the panel:
[1050] init_panel_data: SAMSUNG_S6E3FA5_1080P_CMD_PANEL
[1050] Return value from recv_data: 14
[1060] Return value from recv_data: 14
[1070] Return value from recv_data: 14
[1090] is_usb_present: TRUE
[1160] read the LCD ID register is 0x58
[1170] match s6e3fa5 id successfully
[1280] set samsung brightness 68
[1290] Device is unlocked! Skipping verification...
[6430] is_usb_present: TRUE
[6460] Return value from recv_data: 14
[6470] Return value from recv_data: 14
[6480] Return value from recv_data: 14
[6760] DTB offset is incorrect, kernel image does not have appended DTB
[6760] No DTB found for the board: [15811 : 28]<305 8 0x10001>, 0x20009/0x10113/ 0x0/0x0
[6770] ERROR: Appended Device Tree Blob not found
[6780] ERROR: Could not do normal boot. Reverting to fastboot mode.
[6790] QMP phy initialization failed, fallback to HighSpeed only mode
Edited by Administrator