Adrian / gist:fe414d9f3472449bbd9996308a437e41
0 likes
0 forks
1 files
Last active
1 | diff --git a/msm-firmware-loader.sh b/msm-firmware-loader.sh |
2 | index c404553..d2c06a8 100644 |
3 | --- a/msm-firmware-loader.sh |
4 | +++ b/msm-firmware-loader.sh |
5 | @@ -25,11 +25,14 @@ set -x |
6 | # https://source.android.com/docs/core/architecture/bootloader/updating#slots |
7 | ab_get_slot() { |
8 | if command -v qbootctl > /dev/null; then |
9 | - ab_slot_suffix=$(qbootctl -a | grep -o 'Active slot: ..' | cut -d ":" -f2 | xargs) || : |
10 | + ab_slot_suffix=$(qbootctl -a | grep -oE 'Active slot: ((_[ab])|(\(null\)))' | cut -d ":" -f2 | xargs) || : |
Adrian / gist:2b3660e3e2a94c378903853b6a20dc27
0 likes
0 forks
1 files
Last active
1 | Mar 07 19:09:36 qcom-sc7280 systemd[1]: Started Daemon to support Qualcomm Hexagon ADSP virtual filesystem for SensorPD. |
2 | Mar 07 19:09:36 qcom-sc7280 hexagonrpcd[4145]: Starting /usr/local/bin/hexagonrpcd (INIT_ATTACH_SNS) on /dev/fastrpc-adsp |
3 | Mar 07 19:09:36 qcom-sc7280 hexagonrpcd[4145]: stat(/vendor/etc/sensors/sns_reg_config) |
4 | Mar 07 19:09:36 qcom-sc7280 hexagonrpcd[4145]: stat(/vendor/etc/sensors/sns_reg_config) |
5 | Mar 07 19:09:36 qcom-sc7280 hexagonrpcd[4145]: openat($ADSP_LIBRARY_PATH, /vendor/etc/sensors/sns_reg_config) -> 3 |
6 | Mar 07 19:09:36 qcom-sc7280 hexagonrpcd[4145]: read(3, 512) -> 512 |
7 | Mar 07 19:09:36 qcom-sc7280 hexagonrpcd[4145]: read(3, 512) -> 41 |
8 | Mar 07 19:09:36 qcom-sc7280 hexagonrpcd[4145]: close(3) |
9 | Mar 07 19:09:36 qcom-sc7280 hexagonrpcd[4145]: stat(/sys/devices/soc0/hw_platform) |
10 | Mar 07 19:09:36 qcom-sc7280 hexagonrpcd[4145]: openat($ADSP_LIBRARY_PATH, /sys/devices/soc0/hw_platform) -> 3 |
Adrian / gist:0a6938357a1f4ee896bb4573009b16b2
0 likes
0 forks
1 files
Last active
1 | Mar 07 18:45:02 qcom-sc7280 systemd[1]: Started Daemon to support Qualcomm Hexagon ADSP virtual filesystem for SensorPD. |
2 | Mar 07 18:45:02 qcom-sc7280 hexagonrpcd[4143]: Starting /usr/bin/hexagonrpcd (INIT_ATTACH_SNS) on /dev/fastrpc-adsp |
3 | Mar 07 18:45:02 qcom-sc7280 hexagonrpcd[4143]: Could not open /mnt/vendor/persist/sensors/registry/registry/../sns_reg_version: No such file or directory |
4 | Mar 07 18:45:02 qcom-sc7280 hexagonrpcd[4143]: Could not open /mnt/vendor/persist/sensors/registry/registry/../sns_reg_version: No such file or directory |
5 | Mar 07 18:45:02 qcom-sc7280 hexagonrpcd[4143]: Could not open /mnt/vendor/persist/sensors/registry/registry/../sns_reg_version: No such file or directory |
6 | Mar 07 18:45:02 qcom-sc7280 hexagonrpcd[4143]: Could not open /mnt/vendor/persist/sensors/registry/registry/../sns_reg_version: No such file or directory |
7 | Mar 07 18:45:02 qcom-sc7280 hexagonrpcd[4143]: Could not open /mnt/vendor/persist/sensors/registry/registry/../sns_reg_version: No such file or directory |
8 | Mar 07 18:45:02 qcom-sc7280 hexagonrpcd[4143]: Could not open /mnt/vendor/persist/sensors/registry/registry/../sns_reg_version: No such file or directory |
9 | Mar 07 18:45:02 qcom-sc7280 hexagonrpcd[4143]: Could not open /mnt/vendor/persist/sensors/registry/registry/../sns_reg_version: No such file or directory |
10 | Mar 07 18:45:02 qcom-sc7280 hexagonrpcd[4143]: Could not open /mnt/vendor/persist/sensors/registry/registry/../sns_reg_version: No such file or directory |
Adrian / gist:ff3c383946cf42378b666104789dfc65
0 likes
0 forks
1 files
Last active
1 | [ 13.620575] [pmOS-rd]: Switching root |
2 | [ 13.643702] syslogd exiting |
3 | [ 21.009788] Internal error: Oops: 0000000096000004 [#1] SMP |
4 | [ 21.019828] Modules linked in: nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink algif_aead md4 algif_hash algif_skcipher bnep ipv6 fuse uhid uinput fastrpc venus_dec venus_enc qcom_pd_mapper videobuf2_dma_contig hci_uart btqca venus_core bluetooth qcom_camss ath11k_ahb videobuf2_dma_sg ecdh_generic ath11k v4l2_mem2mem videobuf2_memops ecc at24 dw9800v s5k5e9 videobuf2_v4l2 mac80211 videobuf2_common libarc4 cfg80211 ipa qcom_q6v5_pas qcom_pil_info qcom_q6v5 qcom_common rfkill |
5 | [ 21.062026] [drm:dpu_encoder_frame_done_timeout:2707] [dpu error]enc32 frame done timeout |
6 | [ 21.090679] CPU: 0 UID: 0 PID: 3125 Comm: kworker/0:3 Not tainted 6.14.0-rc5-next-20250306-sm7325 #43 |
7 | [ 21.090686] Hardware name: xiaomi Xiaomi 11 Lite 5G NE / 11 LE/Xiaomi 11 Lite 5G NE / 11 LE, BIOS 2025.04-rc1-gbfc6a349f2d6-dirty 04/01/2025 |
8 | [ 21.090691] Workqueue: events ucsi_handle_connector_change |
9 | [ 21.148188] pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) |
10 | [ 21.159570] pc : typec_switch_set+0x58/0xa0 |
Adrian / gist:682d57ee1430440c905bc256388ec1d3
0 likes
0 forks
1 files
Last active
1 | [ 13.620575] [pmOS-rd]: Switching root |
2 | [ 13.643702] syslogd exiting |
3 | [ 21.009788] Internal error: Oops: 0000000096000004 [#1] SMP |
4 | [ 21.019828] Modules linked in: nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink algif_aead md4 algif_hash algif_skcipher bnep ipv6 fuse uhid uinput fastrpc venus_dec venus_enc qcom_pd_mapper videobuf2_dma_contig hci_uart btqca venus_core bluetooth qcom_camss ath11k_ahb videobuf2_dma_sg ecdh_generic ath11k v4l2_mem2mem videobuf2_memops ecc at24 dw9800v s5k5e9 videobuf2_v4l2 mac80211 videobuf2_common libarc4 cfg80211 ipa qcom_q6v5_pas qcom_pil_info qcom_q6v5 qcom_common rfkill |
5 | [ 21.062026] [drm:dpu_encoder_frame_done_timeout:2707] [dpu error]enc32 frame done timeout |
6 | [ 21.090679] CPU: 0 UID: 0 PID: 3125 Comm: kworker/0:3 Not tainted 6.14.0-rc5-next-20250306-sm7325 #43 |
7 | [ 21.090686] Hardware name: xiaomi Xiaomi 11 Lite 5G NE / 11 LE/Xiaomi 11 Lite 5G NE / 11 LE, BIOS 2025.04-rc1-gbfc6a349f2d6-dirty 04/01/2025 |
8 | [ 21.090691] Workqueue: events ucsi_handle_connector_change |
9 | [ 21.148188] pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) |
10 | [ 21.159570] pc : typec_switch_set+0x58/0xa0 |
Adrian / gist:65bb1d77ede6426fbe55b24e19d9e0f8
0 likes
0 forks
1 files
Last active
1 | EFI stub: Decompressing Linux Kernel... |
2 | EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path |
3 | EFI stub: Using DTB from configuration table |
4 | EFI stub: Exiting boot services... |
5 | [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050] |
6 | [ 0.000000] Linux version 6.14.0-rc5-next-20250306-sm7325 (pmos@karma) (aarch64-alpine-linux-musl-gcc (Alpine 14.2.0) 14.2.0, GNU ld (GNU Binutils) 2.42) #40 SMP Fri Mar 7 01:09:19 UTC 2025 |
7 | [ 0.000000] KASLR enabled |
8 | [ 0.000000] Machine model: Xiaomi 11 Lite 5G NE / 11 LE |
9 | [ 0.000000] earlycon: qcom_geni0 at MMIO 0x0000000000994000 (options '115200n8') |
10 | [ 0.000000] printk: legacy bootconsole [qcom_geni0] enabled |
Adrian / gist:aca8d8ed3d2f45e7a03a73c5a8f7bab6
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | |
3 | # Some devices (xiaomi-surya) ship with a touchscreen that has no persistent |
4 | # firmware storage. That is unfortunate and means we need to provide firmware |
5 | # from the initramfs for FDE to work. |
6 | # This is only the case for the novatek touchscreens. Their firmware resides |
7 | # in /vendor/firmware. Let's copy it over. |
8 | # The file names are novatek_ts_huaxing_fw.bin and novatek_ts_tianma_fw.bin, |
9 | # for both panels respectively. |
Adrian / gist:0cd2db472e764b2784f067ba056ad697
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | |
3 | # Some devices (xiaomi-surya) ship with a touchscreen that has no persistent |
4 | # firmware storage. That is unfortunate and means we need to provide firmware |
5 | # from the initramfs for FDE to work. |
6 | # This is only the case for the novatek touchscreens. Their firmware resides |
7 | # in /vendor/firmware. Let's copy it over. |
8 | # The file names are novatek_ts_huaxing_fw.bin and novatek_ts_tianma_fw.bin, |
9 | # for both panels respectively. |
Adrian / gist:2f8e059d346e47df8fc0294597a54dce
0 likes
0 forks
1 files
Last active
1 | qcom-sm7150:~$ sudo systemd-analyze time |
2 | Startup finished in 6.889s (firmware) + 173ms (loader) + 7.526s (kernel) + 15.316s (userspace) = 29.905s |
3 | graphical.target reached after 15.315s in userspace. |
4 | qcom-sm7150:~$ sudo systemd-analyze blame |
5 | 7.528s msm-modem-uim-selection.service |
6 | 5.290s dev-sda32.device |
7 | 5.097s dev-sde51.device |
8 | 5.026s dev-sdf7.device |
9 | 4.739s dev-sde47.device |
10 | 4.356s dev-sde26.device |
Adrian / gist:ad4cb05c5fcd4b749c3ce1a8d2bf020b
0 likes
0 forks
1 files
Last active
1 | (bootloader) product:sunfish |
2 | (bootloader) serialno:0A221JEC217849 |
3 | (bootloader) variant:SM7 UFS |
4 | (bootloader) max-download-size:0x10000000 |
5 | (bootloader) slot-suffixes:_a,_b |
6 | (bootloader) version-bootloader:s5-0.5-10252351 |
7 | (bootloader) version-baseband:g7150-00112-230505-B-10075601 |
8 | (bootloader) secure-boot:PRODUCTION |
9 | (bootloader) secure:yes |
10 | (bootloader) hw-revision:MP1.0 |