Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dts: qcom: msm8916-mf601: initial support #310

Draft
wants to merge 3 commits into
base: msm8916/6.4-rc3
Choose a base branch
from

Conversation

185264646
Copy link

@185264646 185264646 commented May 13, 2023

Not fully tested yet. Only a draft.

TODO: How do we handle LEDs? Entirely in userspace or some with default-trigger? Do we need to follow the downstream usage of the LEDs?

Feedback is welcomed.

  • random kernel oops, reason unknown

Tested peripherals:

  • USB OTG(needs external power supply)
  • SDHC2(The slot is missing, but pads are there)
  • modem(only eSIM is tested)
  • WIFI
  • LEDs(okay)
  • button(except WPS)
  • bms/lbc

@185264646 185264646 changed the base branch from msm8916/6.4-rc1 to msm8916/6.3 May 13, 2023 09:16
@185264646 185264646 changed the title dts: qcom: msm8916-mf601 dts: qcom: msm8916-mf601: initial support May 13, 2023
@185264646 185264646 force-pushed the msm8916/mf601_chg branch 2 times, most recently from fd5d1a9 to 705107b Compare May 16, 2023 09:55
@@ -0,0 +1,313 @@
// SPDX-License-Identifier: GPL-2.0-only
// A common dtsi for MF601xx series LTE modem dongles.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you actually know someone who has and could test this dtsi on a different model? It usually doesn't make sense to create share common properties in a .dtsi when it's not clear yet which models actually exist and what their differences are.

Copy link
Author

@185264646 185264646 May 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you actually know someone who has and could test this dtsi on a different model? It usually doesn't make sense to create share common properties in a .dtsi when it's not clear yet which models actually exist and what their differences are.

I got the infomation from the photos and EDL-dumped vendor Android images for them(At least 3 variants, such as mf601_mb_v05, mf601_s_v02, mf601_sl_v02(7) and so on) and tested on one. All of the stuff except the naming and usage of the LEDs looks identical. There's also a MF32xx series that should also be able to share this dtsi. There are many people owning other models, maybe i can contact with them. I'll just let it hang there for some time to wait for some others who might be interested in.

Comment on lines +8 to +9
model = "Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07";
compatible = "thwc,mf601sl-v7", "qcom,msm8916";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also applies to MF601SL_CT_V02,maybe common across all MF601SL-xxx?

Document the new thwc,mf601sl-v7 device tree bindings used in their device
trees.

Signed-off-by: Yang Xiwen <[email protected]>
This commit adds support for the MF601 series WiFi/LTE dongle made by
Tong Heng Wei Chuang based on MSM8916.
Compared to previous UFI-001C, MF601 ships more peripherals, such as
battery/charger, SD Card slot, more LEDs and buttons etc.

Note: The original firmware does not support 64-bit OS. It is necessary
to flash 64-bit TZ firmware to boot arm64.

Currently supported:
- All CPU cores
- Buttons
- LEDs
- Modem
- SDHC
- USB Device Mode / Host Mode
- UART

Signed-off-by: Yang Xiwen <[email protected]>
@185264646 185264646 changed the base branch from msm8916/6.3 to msm8916/6.4-rc3 May 22, 2023 09:02
@CoiaPrant233
Copy link

There seems to be something wrong with this DTS. It doesn't work. I don't see any ADB or RNDIS device

@185264646
Copy link
Author

There seems to be something wrong with this DTS. It doesn't work. I don't see any ADB or RNDIS device

This device has some strange quirks. Please do not flash any addtional firmware except tz and hyp as said in the device wiki. zhihe

Also, welcome to attach your debug UART log.

@CoiaPrant233
Copy link

[    3.219584] EXT4-fs (mmcblk0p14): mounted filesystem 239798af-b82a-4547-b4d4-448ab8335552 r/w with ordered data mode. Quota mode: none.
[    3.280333] BUG: Bad page cache in process run-init  pfn:84df0
[    3.280374] page:(____ptrval____) refcount:2 mapcount:1277065 mapping:(____ptrval____) index:0xa9 pfn:0x84df0
[    3.285068] memcg:ffff00000282a000
[    3.295042] aops:ram_aops ino:4c4
[    3.298340] flags: 0x100015(locked|uptodate|lru|unevictable|zone=0)
[    3.301729] page_type: 0x137c88()
[    3.307812] raw: 0000000000100015 0000000000000000 dead000000000000 ffff000003116128
[    3.311283] raw: 00000000000000a9 0000000000000000 0000000200137c88 ffff00000282a000
[    3.319094] page dumped because: still mapped when deleted
[    3.326817] CPU: 1 PID: 1 Comm: run-init Not tainted 6.4.0-rc4-jsbsbxjxh66-compile+ #4
[    3.332114] Hardware name: MF601SL_CT_V07 (4G) jsbsbxjxh66+compile (DT)
[    3.340012] Call trace:
[    3.346516]  dump_backtrace+0x98/0x118
[    3.348949]  show_stack+0x18/0x24
[    3.352767]  dump_stack_lvl+0x48/0x60
[    3.356153]  dump_stack+0x18/0x24
[    3.359800]  filemap_unaccount_folio+0x180/0x234
[    3.363098]  delete_from_page_cache_batch+0x9c/0x2a4
[    3.367791]  truncate_inode_pages_range+0xec/0x438
[    3.372734]  truncate_inode_pages_final+0x50/0x7c
[    3.377334]  evict+0x170/0x188
[    3.382107]  iput+0x100/0x1b8
[    3.385059]  do_unlinkat+0x1b8/0x2ac
[    3.388097]  __arm64_sys_unlinkat+0x3c/0x80
[    3.391744]  invoke_syscall+0x48/0x114
[    3.395649]  el0_svc_common.constprop.0+0x44/0xec
[    3.399470]  do_el0_svc+0x38/0x98
[    3.404243]  el0_svc+0x2c/0x84
[    3.407541]  el0t_64_sync_handler+0xf4/0x120
[    3.410494]  el0t_64_sync+0x190/0x194
[    3.414922] Disabling lock debugging due to kernel taint
[    3.667885] systemd[1]: System time before build time, advancing clock.
[    3.722725] NET: Registered PF_INET6 protocol family
[    3.725224] Segment Routing with IPv6
[    3.726852] In-situ OAM (IOAM) with IPv6
[    3.772658] systemd[1]: systemd 252.12-1~deb12u1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    3.782052] systemd[1]: Detected architecture arm64.
[    3.827201] systemd[1]: Hostname set to <4G-wifi>.

this is random kernel oops dmesg.

@185264646
Copy link
Author

185264646 commented Aug 30, 2023

[    3.219584] EXT4-fs (mmcblk0p14): mounted filesystem 239798af-b82a-4547-b4d4-448ab8335552 r/w with ordered data mode. Quota mode: none.
[    3.280333] BUG: Bad page cache in process run-init  pfn:84df0
[    3.280374] page:(____ptrval____) refcount:2 mapcount:1277065 mapping:(____ptrval____) index:0xa9 pfn:0x84df0
[    3.285068] memcg:ffff00000282a000
[    3.295042] aops:ram_aops ino:4c4
[    3.298340] flags: 0x100015(locked|uptodate|lru|unevictable|zone=0)
[    3.301729] page_type: 0x137c88()
[    3.307812] raw: 0000000000100015 0000000000000000 dead000000000000 ffff000003116128
[    3.311283] raw: 00000000000000a9 0000000000000000 0000000200137c88 ffff00000282a000
[    3.319094] page dumped because: still mapped when deleted
[    3.326817] CPU: 1 PID: 1 Comm: run-init Not tainted 6.4.0-rc4-jsbsbxjxh66-compile+ #4
[    3.332114] Hardware name: MF601SL_CT_V07 (4G) jsbsbxjxh66+compile (DT)
[    3.340012] Call trace:
[    3.346516]  dump_backtrace+0x98/0x118
[    3.348949]  show_stack+0x18/0x24
[    3.352767]  dump_stack_lvl+0x48/0x60
[    3.356153]  dump_stack+0x18/0x24
[    3.359800]  filemap_unaccount_folio+0x180/0x234
[    3.363098]  delete_from_page_cache_batch+0x9c/0x2a4
[    3.367791]  truncate_inode_pages_range+0xec/0x438
[    3.372734]  truncate_inode_pages_final+0x50/0x7c
[    3.377334]  evict+0x170/0x188
[    3.382107]  iput+0x100/0x1b8
[    3.385059]  do_unlinkat+0x1b8/0x2ac
[    3.388097]  __arm64_sys_unlinkat+0x3c/0x80
[    3.391744]  invoke_syscall+0x48/0x114
[    3.395649]  el0_svc_common.constprop.0+0x44/0xec
[    3.399470]  do_el0_svc+0x38/0x98
[    3.404243]  el0_svc+0x2c/0x84
[    3.407541]  el0t_64_sync_handler+0xf4/0x120
[    3.410494]  el0t_64_sync+0x190/0x194
[    3.414922] Disabling lock debugging due to kernel taint
[    3.667885] systemd[1]: System time before build time, advancing clock.
[    3.722725] NET: Registered PF_INET6 protocol family
[    3.725224] Segment Routing with IPv6
[    3.726852] In-situ OAM (IOAM) with IPv6
[    3.772658] systemd[1]: systemd 252.12-1~deb12u1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    3.782052] systemd[1]: Detected architecture arm64.
[    3.827201] systemd[1]: Hostname set to <4G-wifi>.

this is random kernel oops dmesg.

It's a known quirk. That's why i didn't send email to mainline. Don't flash any firmware except hyp and tz, especially leave rpm as-is. The kernel oops will be less frequent, but still sometimes occurs.

Again, please restore the original Android image you dumped and ONLY flash tz, hyp and aboot to boot mainline linux. The image released by jsbsbxjxh66 is BROKEN. You SHOULD NOT flash his image which contains foreign incompatible firmwares from db410c.

By the way, from the limited log you put here, the device tree you are using seems not identical to this one.

[ 3.332114] Hardware name: MF601SL_CT_V07 (4G) jsbsbxjxh66+compile (DT)

You should consult the original author.

@CoiaPrant233
Copy link

Here is UART

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.C4.4-00010
S - IMAGE_VARIANT_STRING=HAAAANAZA
S - OEM_IMAGE_VERSION_STRING=wingtech-desktop
S - Boot Config, 0x000002e1
S - Core 0 Frequency, 0 MHz
B -      1545 - PBL, Start
B -      3490 - bootable_media_detect_entry, Start
B -    158007 - bootable_media_detect_success, Start
B -    158011 - elf_loader_entry, Start
B -    159288 - auth_hash_seg_entry, Start
B -    159497 - auth_hash_seg_exit, Start
B -    173376 - elf_segs_hash_verify_entry, Start
B -    231648 - PBL, End
B -    238083 - SBL1, Start
B -    302133 - pm_device_init, Start
D -     14792 - pm_device_init, Delta
B -    317535 - boot_flash_init, Start
D -         0 - boot_flash_initBKLM▒oZ▒с        t
                                                 D -     31445 - boot_config_data_table_init, Delta - (452 Bytes)
B -    357551 - CDT version:3,Platform ID:24,Major ID:1,Minor ID:0,Subtype:0
B -    363956 - sbl1_ddr_set_params, Start
B -    367555 - cpr_init, Start
D -        30 - cpr_init, Delta
B -    373198 - Pre_DDR_clock_init, Start
D -       183 - Pre_DDR_clock_init, Delta
D -         0 - sbl1_ddr_set_params, Delta
B -    385764 - pm_driver_init, Start
D -      3660 - pm_driver_init, Delta
B -    399001 - clock_init, Start
D -             "▒▒х5
                     B -    399092 - Image Load, Start
D -     25468 - QSEE Image Loaded, Delta - (571664 Bytes)
B -    424590 - Image Load, Start
D -       457 - SEC Image Loaded, Delta - (2048 Bytes)
B -    431788 - sbl1_efs_handle_cookies, Start
D -       183+▒▒}▒▒▒▒▒▒}▒▒▒▒▒▒ͱ Delta
B -    439596 - Image Load, Start
D -     18544 - QHEE oaded, Delta - (6808 Bytes)
B -    458171 - Image Load, Start
D -     12231 - RPM     o▒▒▒▒ Delta - (145640 Bytes)
B -    470401 - Image Load, Start
D -     23790 - APPSBL Image Loaded, Delta - (224592 Bytes)
B -    494222 - QSEE Execution, Start
D -        61 - QSEE Execution, Delta
B -    499925 - SBL1, End
D -    264191 - SBL1, Delta
S - Flash Throughput, 116000 KB/s  (951204 Bytes,  8174 us)
S - DDR Frequency, 400 MHz
Android Bootloader - UART_DM Initialized!!!
[0] welcome to lk

[0] OpenStick Bootloader V0.01
[0] [Author] HandsomeYingyan <[email protected]>
[0] This Bootloader Has Super Handsome Power!
[0] calling constructors
[0] initializing heap
[0] initializing threads
[0] initializing dpc
[0] initializing timers
[0] creating bootstrap completion thread
[10] top of bootstrap2()
[10] initializing platform
[10] platform_init()
[10] initializing target
[10] target_init()
[30] initialising mmc_slot =1
[40]  Initializing MMC host data structure and clock!
[50] Decoded CID fields:
[50] Manufacturer ID: 90
[60] OEM ID: 0x14a
[60] Product Name: H4G2a
[60] Product revision: 0.2
[60] Product serial number: 4B258223
[70] Manufacturing date: 5 2003
[80] Decoded CSD fields:
[80] cmmc_structure: 3
[80] card_cmd_class: f5
[80] write_blk_len: 512
[80] read_blk_len: 512
[90] r2w_factor: 2
[90] sector_size: 0
[90] c_size_mult:7
[90] c_size: 4095
[90] nsac_clk_cycle: 100
[90] taac_ns: 15000000
[100] tran_speed: 0 kbps
[100] erase_blk_len: 1
[100] read_blk_misalign: 0
[100] write_blk_misalign: 0
[110] read_blk_partial: 0
[110] write_blk_partial: 0
[110] wp_grp_size: 16384
[110] Card Capacity: 3909091328 Bytes
[120] SDHC Running in HS200 de▒▒ 1
[140] perm_wp: 0
[150] temp▒▒, type 0x0, start 0x0, len 0x0
[160]   2: status 0x0, type 0x0, start 0x0, len 0x0
[170]   3: status 0x0, type 0x0, start 0x0, len 0x0
[170] fou*▒ɽ▒▒ Command timeout error
[190] Failure getting OCR response from MMC Card
[190] MMC card failed to respond, try for SD card
[200] Error: Command timeout error
[200] The response for CMD8 does not match the supplied value
[210] Failed to initialize SD card
[210] Failed detecting MMC/SDC @ slot2
[210] sdcard init ▒▒open hd2
[230] Unable to load boot.img from ext2. Continuing legacy boot
[230] Unable to locate /bootselect par
                                      [370] decompress image start
[890] decompressed image finished.
[900] smem ram ptable found: ver: 1 len: 4
[900] smem ram ptable found: ver: 1 len: 4
[900] smem ram ptable found: ver: 1 len: 4
[910] smem ram ptable found: ver: 1 len: 4
[910] smem ram ptable found: ver: 1 len: 4
[920] smem ram ptable found: ver: 1 len: 4
[920] smem ram ptable found: ver: 1 len: 4
[920] smem ram ptable found: ver: 1 len: 4
[930] smem ram ptable found: ver: 1 len: 4
[930] qcom,msm-id entry not found
[930] Only one appended non-skales DTB, select it.
[960] target_display_panel_node:510: hw_id=24 panel_name=""
[970] cmdline: earlycon root=UUID=239798af-b82a-4547-b4d4-448ab8335552 console=ttyMSM0,115200 no_framebuffer=true rw androidboot.emmc=true androidboot.serialno=4b258223 androidboot.baseband=msm mdss_mdp.panel=0:dsi:0:
[990] Updating device tree: start
[990] smem ram ptable found: ver: 1 len: 4
[1050] Setting WLAN mac address in DT: 02:00:4B:25:82:23
[1080] Setting Bluetooth BD address in DT: 02:00:4B:25:82:22
[1080] Setting BT mac address in DT: 02:00:4B:25:82:22
[1090] Updating device tree: done[1090] booting linux @ 0x80000000, ramdisk @ 0x82000000 (6223838), tags/device tree @ 0x81e00000
[1100] Jumping to kernel via monitor
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd030]
[    0.000000] Linux version 6.4.0-rc4-jsbsbxjxh66-compile+ (root@debian12) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #4 SMP PREEMPT Sat Jul 29 10:16:46 UTC 2023
[    0.000000] Machine model: MF601SL_CT_V07 (4G) jsbsbxjxh66+compile
[    0.000000] earlycon: msm_serial_dm0 at MMIO 0x00000000078b0000 (options '')
[    0.000000] printk: bootconsole [msm_serial_dm0] enabled
[    0.000000] OF: reserved mem: 0x0000000086000000..0x00000000862fffff (3072 KiB) nomap non-reusable tz-apps@86000000
[    0.000000] OF: reserved mem: 0x0000000086300000..0x00000000863fffff (1024 KiB) nomap non-reusable smem@86300000
[    0.000000] OF: reserved mem: 0x0000000086400000..0x00000000864fffff (1024 KiB) nomap non-reusable hypervisor@86400000
[    0.000000] OF: reserved mem: 0x0000000086500000..0x000000008667ffff (1536 KiB) nomap non-reusable tz@86500000
[    0.000000] OF: reserved mem: 0x0000000086680000..0x00000000866fffff (512 KiB) nomap non-reusable reserved@86680000
[    0.000000] OF: reserved mem: 0x0000000086700000..0x00000000867dffff (896 KiB) nomap non-reusable rmtfs@86700000
[    0.000000] OF: reserved mem: 0x00000000867e0000..0x00000000867fffff (128 KiB) nomap non-reusable rfsa@867e0000
[    0.000000] OF: reserved mem: 0x0000000086800000..0x000000008bcfffff (87040 KiB) nomap non-reusable mpss@86800000
[    0.000000] OF: reserved mem: 0x000000008bd00000..0x000000008befffff (2048 KiB) nomap non-reusable gps@8bd00000
[    0.000000] OF: reserved mem: 0x000000008df00000..0x000000008e4fffff (6144 KiB) nomap non-reusable wcnss@8df00000
[    0.000000] OF: reserved mem: 0x000000008e500000..0x000000008e9fffff (5120 KiB) nomap non-reusable venus@8e500000
[    0.000000] OF: reserved mem: 0x000000008ea00000..0x000000008eafffff (1024 KiB) nomap non-reusable mba@8ea00000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x000000009fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x0000000085ffffff]
[    0.000000]   node   0: [mem 0x0000000086000000-0x000000008befffff]
[    0.000000]   node   0: [mem 0x000000008bf00000-0x000000008defffff]
[    0.000000]   node   0: [mem 0x000000008df00000-0x000000008eafffff]
[    0.000000]   node   0: [mem 0x000000008eb00000-0x000000009fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fffffff]
[    0.000000] cma: Reserved 32 MiB at 0x000000009d600000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] psci: OSI mode supported.
[    0.000000] psci: [Firmware Bug]: failed to set PC mode: -3
[    0.000000] percpu: Embedded 21 pages/cpu s48552 r8192 d29272 u86016
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: ARM errata 826319, 827319, 824069, or 819472
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: earlycon root=UUID=239798af-b82a-4547-b4d4-448ab8335552 console=ttyMSM0,115200 no_framebuffer=true rw androidboot.emmc=true androidboot.serialno=4b258223 androidboot.baseband=msm mdss_mdp.panel=0:dsi:0:
[    0.000000] Unknown kernel command line parameters "no_framebuffer=true", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 339864K/524288K available (14976K kernel code, 1624K rwdata, 5268K rodata, 2880K init, 474K bss, 151656K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 and mmio timer(s) running at 19.20MHz (phys/virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000001] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.010974] Console: colour dummy device 80x25
[    0.018779] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=76800)
[    0.023275] pid_max: default: 32768 minimum: 301
[    0.033670] LSM: initializing lsm=capability,apparmor,integrity
[    0.038378] AppArmor: AppArmor initialized
[    0.044018] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.048100] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.056420] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.064281] cblist_init_generic: Setting adjustable number of callback queues.
[    0.069299] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.076484] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.082801] rcu: Hierarchical SRCU implementation.
[    0.088640] rcu:     Max phase no-delay instances is 1000.
[    0.094750] smp: Bringing up secondary CPUs ...
[    0.099248] Detected VIPT I-cache on CPU1
[    0.099317] CPU1: Booted secondary processor 0x0000000001 [0x410fd030]
[    0.100150] Detected VIPT I-cache on CPU2
[    0.100207] CPU2: Booted secondary processor 0x0000000002 [0x410fd030]
[    0.101017] Detected VIPT I-cache on CPU3
[    0.101069] CPU3: Booted secondary processor 0x0000000003 [0x410fd030]
[    0.101161] smp: Brought up 1 node, 4 CPUs
[    0.134560] SMP: Total of 4 processors activated.
[    0.138629] CPU features: detected: 32-bit EL0 Support
[    0.143423] CPU features: detected: 32-bit EL1 Support
[    0.148441] CPU features: detected: CRC32 instructions
[    0.153655] CPU: All CPU(s) started at EL2
[    0.158701] alternatives: applying system-wide alternatives
[    0.164371] devtmpfs: initialized
[    0.180550] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.180605] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.190333] pinctrl core: initialized pinctrl subsystem
[    0.197578] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.202257] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.207217] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.214503] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.222143] audit: initializing netlink subsys (disabled)
[    0.230020] audit: type=2000 audit(0.156:1): state=initialized audit_enabled=0 res=1
[    0.230471] thermal_sys: Registered thermal governor 'step_wise'
[    0.235348] cpuidle: using governor menu
[    0.249237] NET: Registered PF_QIPCRTR protocol family
[    0.253214] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.258058] ASID allocator initialised with 65536 entries
[    0.282733] platform 78d9000.usb: Fixed dependency cycle(s) with /soc@0/usb@78d9000/ulpi/phy
[    0.285465] KASLR disabled due to lack of seed
[    0.291179] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.294525] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.301376] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.307448] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.314392] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.320468] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.327414] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.333489] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.341028] cryptd: max_cpu_qlen set to 1000
[    0.414643] raid6: neonx8   gen()  1459 MB/s
[    0.482768] raid6: neonx4   gen()  1452 MB/s
[    0.550890] raid6: neonx2   gen()  1413 MB/s
[    0.619008] raid6: neonx1   gen()  1212 MB/s
[    0.687116] raid6: int64x8  gen()   930 MB/s
[    0.755224] raid6: int64x4  gen()  1044 MB/s
[    0.823355] raid6: int64x2  gen()   933 MB/s
[    0.891469] raid6: int64x1  gen()   691 MB/s
[    0.891490] raid6: using algorithm neonx8 gen() 1459 MB/s
[    0.959588] raid6: .... xor() 1078 MB/s, rmw enabled
[    0.959645] raid6: using neon recovery algorithm
[    0.964429] iommu: Default domain type: Translated
[    0.968222] iommu: DMA domain TLB invalidation policy: strict mode
[    0.973138] SCSI subsystem initialized
[    0.979279] usbcore: registered new interface driver usbfs
[    0.982909] usbcore: registered new interface driver hub
[    0.988393] usbcore: registered new device driver usb
[    0.994013] pps_core: LinuxPPS API ver. 1 registered
[    0.998773] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    1.003830] PTP clock support registered
[    1.013164] CPUidle PSCI: Initialized CPU PM domain topology using OSI mode
[    1.018088] qcom_scm: convention: smc arm 32
[    1.024156] Advanced Linux Sound Architecture Driver Initialized.
[    1.028686] Bluetooth: Core ver 2.22
[    1.034045] NET: Registered PF_BLUETOOTH protocol family
[    1.037652] Bluetooth: HCI device and connection manager initialized
[    1.042966] Bluetooth: HCI socket layer initialized
[    1.049295] Bluetooth: L2CAP socket layer initialized
[    1.053904] Bluetooth: SCO socket layer initialized
[    1.059712] clocksource: Switched to clocksource arch_sys_counter
[    1.064027] VFS: Disk quotas dquot_6.6.0
[    1.070083] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.074611] AppArmor: AppArmor Filesystem Enabled
[    1.089600] NET: Registered PF_INET protocol family
[    1.089784] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.094343] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.100646] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.108845] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.116860] TCP bind hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    1.124683] TCP: Hash tables configured (established 4096 bind 4096)
[    1.131672] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.138105] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.144555] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.151773] RPC: Registered named UNIX socket transport module.
[    1.157181] RPC: Registered udp transport module.
[    1.162820] RPC: Registered tcp transport module.
[    1.167680] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.172637] Unpacking initramfs...
[    1.183924] kvm [1]: IPA Size Limit: 40 bits
[    1.185592] kvm [1]: vgic interrupt IRQ9
[    1.187302] kvm [1]: Hyp mode initialized successfully
[    1.192912] Initialise system trusted keyrings
[    1.196511] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    1.203048] NFS: Registering the id_resolver key type
[    1.207158] Key type id_resolver registered
[    1.212119] Key type id_legacy registered
[    1.216188] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.220302] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.228963] Key type cifs.spnego registered
[    1.234592] Key type cifs.idmap registered
[    1.238603] ksmbd: The ksmbd server is experimental
[    1.242975] ceph: loaded (mds proto 32)
[    1.301853] xor: measuring software checksum speed
[    1.307851]    8regs           :  1682 MB/sec
[    1.313766]    32regs          :  1682 MB/sec
[    1.320159]    arm64_neon      :  1558 MB/sec
[    1.320191] xor: using function: 32regs (1682 MB/sec)
[    1.323509] Key type asymmetric registered
[    1.328548] Asymmetric key parser 'x509' registered
[    1.332645] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.337609] io scheduler mq-deadline registered
[    1.344982] io scheduler kyber registered
[    1.354922] Unable to handle kernel execute from non-executable memory at virtual address ffff800008ee5b40
[    1.354970] Mem abort info:
[    1.363558]   ESR = 0x000000008600000f
[    1.366190]   EC = 0x21: IABT (current EL), IL = 32 bits
[    1.370002]   SET = 0, FnV = 0
[    1.375469]   EA = 0, S1PTW = 0
[    1.378339]   FSC = 0x0f: level 3 permission fault
[    1.381372] swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000813e2000
[    1.386237] [ffff800008ee5b40] pgd=100000009ffff003, p4d=100000009ffff003, pud=100000009fffe003, pmd=100000009fffc003, pte=0068000080ee5703
[    1.393102] Internal error: Oops: 000000008600000f [#1] PREEMPT SMP
[    1.405314] Modules linked in:
[    1.411559] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.4.0-rc4-jsbsbxjxh66-compile+ #4
[    1.414691] Hardware name: MF601SL_CT_V07 (4G) jsbsbxjxh66+compile (DT)
[    1.422589] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    1.429186] pc : simple_dir_operations+0x0/0x110
[    1.436125] lr : security_d_instantiate+0x2c/0x68
[    1.439297] Unable to handle kernel NULL pointer dereference at virtual address 000000000000025d
[    1.440986] sp : ffff8000098fbaa0
[    1.440991] x29: ffff8000098fbaa0 x28: 0000000000000000 x27: ffff800009486068
[    1.441007] x26: 0000000000000001 x25: ffff0000040b0890 x24: ffff8000098b9ae8
[    1.441021] x23: ffff800009795020
[    1.445667] Mem abort info:
[    1.454438]  x22: ffff80000989f0d0 x21: ffff000003093cc0
[    1.454450] x20: ffff000003035ad0 x19: 0000000000000000 x18: ffffffffffffffff
[    1.457667]   ESR = 0x0000000096000004
[    1.464774]
[    1.464777] x17: 00000000000000c0 x16: ffff8000097e0700 x15: ffffffffffffffff
[    1.471896]   EC = 0x25: DABT (current EL), IL = 32 bits
[    1.475183]
[    1.475185] x14: ffff000002b19a1c
[    1.477802]   SET = 0, FnV = 0
[    1.483351]  x13: ffff000002b66d00 x12: 6f632d616d642e30
[    1.490394]   EA = 0, S1PTW = 0
[    1.494019] x11: 00000016ce43f2df x10: ffff8000098b9ae8 x9 : 000000000000014f
[    1.495678]   FSC = 0x04: level 0 translation fault
[    1.502705] x8 : ffff000003012300 x7 : 746e6f632d616d64 x6 : 00000000000041ed
[    1.508092] Data abort info:
[    1.509559] x5 : ffff800008ee5b40
[    1.512780]   ISV = 0, ISS = 0x00000004
[    1.515727]  x4 : 0000000000000001 x3 : 0000000000000000
[    1.515737] x2 : 0000000000000000
[    1.521199]   CM = 0, WnR = 0
[    1.524062]  x1 : ffff000003035ad0 x0 : ffff800009351000
[    1.524074] Call trace:
[    1.531358] [000000000000025d] user address but active_mm is swapper
[    1.536044]  simple_dir_operations+0x0/0x110
[    1.579008]  d_instantiate+0x30/0x64
[    1.583260]  debugfs_create_dir+0xbc/0x1f8
[    1.586818]  dma_async_device_register+0x354/0x4dc
[    1.590725]  bam_dma_probe+0x360/0x5ac
[    1.595498]  platform_probe+0x68/0xc0
[    1.599232]  really_probe+0x184/0x3c8
[    1.602965]  __driver_probe_device+0x7c/0x16c
[    1.606611]  driver_probe_device+0x3c/0x110
[    1.610951]  __driver_attach+0xf4/0x1fc
[    1.614943]  bus_for_each_dev+0x74/0xd4
[    1.618762]  driver_attach+0x24/0x30
[    1.622583]  bus_add_driver+0x110/0x214
[    1.626401]  driver_register+0x60/0x128
[    1.629961]  __platform_driver_register+0x28/0x34
[    1.633781]  bam_dma_driver_init+0x1c/0x28
[    1.638643]  do_one_initcall+0x6c/0x1b4
[    1.642634]  kernel_init_freeable+0x1c0/0x288
[    1.646367]  kernel_init+0x24/0x1d8
[    1.650880]  ret_from_fork+0x10/0x20
[    1.654184] Code: 00000000 00000000 00000000 00000000 (00000000)
[    1.658007] ---[ end trace 0000000000000000 ]---
[    1.663991] Internal error: Oops: 0000000096000004 [#2] PREEMPT SMP
[    1.664054] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    1.664061] SMP: stopping secondary CPUs
[    1.668681] Modules linked in:
[    1.682307] CPU: 0 PID: 35 Comm: kworker/u8:1 Tainted: G      D            6.4.0-rc4-jsbsbxjxh66-compile+ #4
[    1.686469] Hardware name: MF601SL_CT_V07 (4G) jsbsbxjxh66+compile (DT)
[    1.689347] Workqueue: events_unbound async_run_entry_fn
[    1.705658] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    1.711216] pc : kmem_cache_alloc+0x44/0x2b8
[    1.717895] lr : __alloc_file+0x2c/0xf4
[    1.722407] sp : ffff800009a23860
[    1.725965] x29: ffff800009a23860 x28: ffff800009a23a00 x27: 0000000000000000
[    1.729444] x26: ffff800009bbd000 x25: ffff8000096c9000 x24: 0000000000020000
[    1.736562] x23: ffff80000829ee98 x22: ffff000002af6000 x21: 0000000003ffffff
[    1.743681] x20: 0000000000000dc0 x19: 0000000000000241 x18: 0000000000000000
[    1.750799] x17: 00000000000000c0 x16: ffff8000097e0700 x15: 0000000000000000
[    1.757917] x14: 0000000300000001 x13: 006e69622e65646f x12: 635f77656e2f6874
[    1.765035] x11: 6577616b2f657261 x10: 776d7269662f6269 x9 : 0000000000000000
[    1.772153] x8 : ffff000002858300 x7 : 0000000000000000 x6 : 000000000000003f
[    1.779272] x5 : 0000000000000040 x4 : ffff800009a23850 x3 : 0000000000000000
[    1.786389] x2 : ffff000002ae0000 x1 : 0000000000000dc0 x0 : 0000000000000241
[    1.793508] Call trace:
[    1.800618]  kmem_cache_alloc+0x44/0x2b8
[    1.802878]  __alloc_file+0x2c/0xf4
[    1.807042]  path_openat+0x48/0xf00
[    1.810254]  do_filp_open+0x80/0x12c
[    1.813728]  filp_open+0x104/0x1a4
[    1.817547]  do_name+0x204/0x278
[    1.820758]  flush_buffer+0x58/0xd0
[    1.824143]  unzstd+0x254/0x404
[    1.827354]  unpack_to_rootfs+0x154/0x348
[    1.830482]  do_populate_rootfs+0x74/0x158
[    1.834648]  async_run_entry_fn+0x34/0x14c
[    1.838640]  process_one_work+0x1d4/0x330
[    1.842721]  worker_thread+0x68/0x428
[    1.846800]  kthread+0x114/0x118
[    1.850445]  ret_from_fork+0x10/0x20
[    1.853749] Code: f9423043 f90037e3 d2800003 b94d5b35 (b9401c18)
[    1.857311] ---[ end trace 0000000000000000 ]---
[    1.863299] Kernel Offset: disabled
[    1.867981] CPU features: 0x040000,18000800,0000421b
[    1.871196] Memory Limit: none
[    1.876405] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---

@LianZiZhou
Copy link

another panic from UART

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.C4.4-00010
S - IMAGE_VARIANT_STRING=HAAAANAZA
S - OEM_IMAGE_VERSION_STRING=wingtech-desktop
S - Boot Config, 0x000002e1
S - Core 0 Frequency, 0 MHz
B -      1545 - PBL, Start
B -      3490 - bootable_media_detect_entry, Start
B -     62856 - bootable_media_detect_success, Start
B -     62861 - elf_loader_entry, Start
B -     64132 - auth_hash_seg_entry, Start
B -     64343 - auth_hash_seg_exit, Start
B -     78211 - elf_segs_hash_verify_entry, Start
B -    136836 - PBL, End
B -    143441 - SBL1, Start
B -    207522 - pm_device_init, Start
D -     14792 - pm_device_init, Delta
B -    222894 - boot_flash_init, Start
D -        30 - boot_flash_init(        688▒▒_▒▒▒t
                                                        D -     31445 - boot_config_data_table_init, Delta - (452 Bytes)
B -    262879 - CDT version:3,Platform ID:24,Major ID:1,Minor ID:0,Subtype:0
B -    269284 - sbl1_ddr_set_params, Start
B -    272914 - cpr_init, Start
D -         0 - cpr_init, Delta
B -    278526 - Pre_DDR_clock_init, Start
D -       213 - Pre_DDR_clock_init, Delta
D -         0 - sbl1_ddr_set_params, Delta
B -    291153 - pm_driver_init, Start
D -      3660 - pm_driver_init, Delta
B -    304298 - clock_init, Start
D -     "▒▒х5
             B -    304390 - Image Load, Start
D -     25437 - QSEE Image Loaded, Delta - (571664 Bytes)
B -    329857 - Image Load, Start
D -       457 - SEC Image Loaded, Delta - (2048 Bytes)
B -    337055 - sbl1_efs_handle_cookies, Start
D -       18+▒▒}▒▒▒▒▒▒}▒▒▒▒▒▒ͱ Delta
B -    344863 - Image Load, Start
D -     18544 - QHEE oaded, Delta - (6808 Bytes)
B -    363438 - Image Load, Start
D -     12200 - RPM
▒▒▒▒ Delta - (145640 Bytes)
B -    375668 - Image Load, Start
D -     23790 - APPSBL Image Loaded, Delta - (224592 Bytes)
B -    399489 - QSEE Execution, Start
D -        61 - QSEE Execution, Delta
B -    405192 - SBL1, End
D -    264100 - SBL1, Delta
S - Flash Throughput, 115000 KB/s  (951204 Bytes,  8204 us)
S - DDR Frequency, 400 MHz
Android Bootloader - UART_DM Initialized!!!
[0] welcome to lk

[0] OpenStick Bootloader V0.01
[0] [Author] HandsomeYingyan <[email protected]>
[0] This Bootloader Has Super Handsome Power!
[0] calling constructors
[0] initializing heap
[0] initializing threads
[0] initializing dpc
[0] initializing timers
[0] creating bootstrap completion thread
[10] top of bootstrap2()
[10] initializing platform
[10] platform_init()
[10] initializing target
[10] target_init()
[30] initialising mmc_slot =1
[40]  Initializing MMC host data structure and clock!
[50] Decoded CID fields:
[50] Manufacturer ID: 90
[60] OEM ID: 0x14a
[60] Product Name: H4G2a
[60] Product revision: 0.2
[60] Product serial number: 4B258223
[70] Manufacturing date: 5 2003
[80] Decoded CSD fields:
[80] cmmc_structure: 3
[80] card_cmd_class: f5
[80] write_blk_len: 512
[80] read_blk_len: 512
[90] r2w_factor: 2
[90] sector_size: 0
[90] c_size_mult:7
[90] c_size: 4095
[90] nsac_clk_cycle: 100
[90] taac_ns: 15000000
[100] tran_speed: 0 kbps
[100] erase_blk_len: 1
[100] read_blk_misalign: 0
[100] write_blk_misalign: 0
[110] read_blk_partial: 0
[110] write_blk_partial: 0
[110] wp_grp_size: 16384
[110] Card Capacity: 3909091328 Bytes
[120] SDHC Running in HS200de▒▒ 1
[140] perm_wp: 0
[150] temp▒▒, type 0x0, start 0x0, len 0x0
[160]   2: status 0x0, type 0x0, start 0x0, len 0x0
[170]   3: status 0x0, type 0x0, start 0x0, len 0x0
[170] fou*▒ɽ▒▒ Command timeout error
[190] Failure getting OCR response from MMC Card
[190] MMC card failed to respond, try for SD card
[200] Error: Command timeout error
[200] The response for CMD8 does not match the supplied value
[210] Failed to initialize SD card
[210] Failed detecting MMC/SDC @ slot2
[210] sdcard init ▒▒open hd2
[230] Unable to load boot.img from ext2. Continuing legacy boot
[230] Unable to locate /bootselect parHh5▒▒▒decompress image start
[890] decompressed image finished.
[900] smem ram ptable found: ver: 1 len: 4
[900] smem ram ptable found: ver: 1 len: 4
[900] smem ram ptable found: ver: 1 len: 4
[910] smem ram ptable found: ver: 1 len: 4
[910] smem ram ptable found: ver: 1 len: 4
[920] smem ram ptable found: ver: 1 len: 4
[920] smem ram ptable found: ver: 1 len: 4
[920] smem ram ptable found: ver: 1 len: 4
[930] smem ram ptable found: ver: 1 len: 4
[930] qcom,msm-id entry not found
[930] Only one appended non-skales DTB, select it.
[960] target_display_panel_node:510: hw_id=24 panel_name=""
[970] cmdline: earlycon root=UUID=239798af-b82a-4547-b4d4-448ab8335552 console=ttyMSM0,115200 no_framebuffer=true rw androidboot.emmc=true androidboot.serialno=4b258223 androidboot.baseband=msm mdss_mdp.panel=0:dsi:0:
[990] Updating device tree: start
[990] smem ram ptable found: ver: 1 len: 4
[1050] Setting WLAN mac address in DT: 02:00:4B:25:82:23
[1080] Setting Bluetooth BD address in DT: 02:00:4B:25:82:22
[1080] Setting BT mac address in DT: 02:00:4B:25:82:22
[1090] Updating device tree: done[1090] booting linux @ 0x80000000, ramdisk @ 0x82000000 (6223838), tags/device tree @ 0x81e00000
[1100] Jumping to kernel via monitor
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd030]
[    0.000000] Linux version 6.4.0-rc4-jsbsbxjxh66-compile+ (root@debian12) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #4 SMP PREEMPT Sat Jul 29 10:16:46 UTC 2023
[    0.000000] Machine model: MF601SL_CT_V07 (4G) jsbsbxjxh66+compile
[    0.000000] earlycon: msm_serial_dm0 at MMIO 0x00000000078b0000 (options '')
[    0.000000] printk: bootconsole [msm_serial_dm0] enabled
[    0.000000] OF: reserved mem: 0x0000000086000000..0x00000000862fffff (3072 KiB) nomap non-reusable tz-apps@86000000
[    0.000000] OF: reserved mem: 0x0000000086300000..0x00000000863fffff (1024 KiB) nomap non-reusable smem@86300000
[    0.000000] OF: reserved mem: 0x0000000086400000..0x00000000864fffff (1024 KiB) nomap non-reusable hypervisor@86400000
[    0.000000] OF: reserved mem: 0x0000000086500000..0x000000008667ffff (1536 KiB) nomap non-reusable tz@86500000
[    0.000000] OF: reserved mem: 0x0000000086680000..0x00000000866fffff (512 KiB) nomap non-reusable reserved@86680000
[    0.000000] OF: reserved mem: 0x0000000086700000..0x00000000867dffff (896 KiB) nomap non-reusable rmtfs@86700000
[    0.000000] OF: reserved mem: 0x00000000867e0000..0x00000000867fffff (128 KiB) nomap non-reusable rfsa@867e0000
[    0.000000] OF: reserved mem: 0x0000000086800000..0x000000008bcfffff (87040 KiB) nomap non-reusable mpss@86800000
[    0.000000] OF: reserved mem: 0x000000008bd00000..0x000000008befffff (2048 KiB) nomap non-reusable gps@8bd00000
[    0.000000] OF: reserved mem: 0x000000008df00000..0x000000008e4fffff (6144 KiB) nomap non-reusable wcnss@8df00000
[    0.000000] OF: reserved mem: 0x000000008e500000..0x000000008e9fffff (5120 KiB) nomap non-reusable venus@8e500000
[    0.000000] OF: reserved mem: 0x000000008ea00000..0x000000008eafffff (1024 KiB) nomap non-reusable mba@8ea00000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x000000009fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x0000000085ffffff]
[    0.000000]   node   0: [mem 0x0000000086000000-0x000000008befffff]
[    0.000000]   node   0: [mem 0x000000008bf00000-0x000000008defffff]
[    0.000000]   node   0: [mem 0x000000008df00000-0x000000008eafffff]
[    0.000000]   node   0: [mem 0x000000008eb00000-0x000000009fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fffffff]
[    0.000000] cma: Reserved 32 MiB at 0x000000009d600000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] psci: OSI mode supported.
[    0.000000] psci: [Firmware Bug]: failed to set PC mode: -3
[    0.000000] percpu: Embedded 21 pages/cpu s48552 r8192 d29272 u86016
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: ARM errata 826319, 827319, 824069, or 819472
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: earlycon root=UUID=239798af-b82a-4547-b4d4-448ab8335552 console=ttyMSM0,115200 no_framebuffer=true rw androidboot.emmc=true androidboot.serialno=4b258223 androidboot.baseband=msm mdss_mdp.panel=0:dsi:0:
[    0.000000] Unknown kernel command line parameters "no_framebuffer=true", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 339864K/524288K available (14976K kernel code, 1624K rwdata, 5268K rodata, 2880K init, 474K bss, 151656K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 and mmio timer(s) running at 19.20MHz (phys/virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000000] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.010972] Console: colour dummy device 80x25
[    0.018778] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=76800)
[    0.023275] pid_max: default: 32768 minimum: 301
[    0.033669] LSM: initializing lsm=capability,apparmor,integrity
[    0.038378] AppArmor: AppArmor initialized
[    0.044019] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.048099] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.056426] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.064287] cblist_init_generic: Setting adjustable number of callback queues.
[    0.069299] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.076487] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.082803] rcu: Hierarchical SRCU implementation.
[    0.088640] rcu:     Max phase no-delay instances is 1000.
[    0.094750] smp: Bringing up secondary CPUs ...
[    0.099249] Detected VIPT I-cache on CPU1
[    0.099320] CPU1: Booted secondary processor 0x0000000001 [0x410fd030]
[    0.100154] Detected VIPT I-cache on CPU2
[    0.100212] CPU2: Booted secondary processor 0x0000000002 [0x410fd030]
[    0.101026] Detected VIPT I-cache on CPU3
[    0.101080] CPU3: Booted secondary processor 0x0000000003 [0x410fd030]
[    0.101164] smp: Brought up 1 node, 4 CPUs
[    0.134562] SMP: Total of 4 processors activated.
[    0.138630] CPU features: detected: 32-bit EL0 Support
[    0.143424] CPU features: detected: 32-bit EL1 Support
[    0.148440] CPU features: detected: CRC32 instructions
[    0.153656] CPU: All CPU(s) started at EL2
[    0.158701] alternatives: applying system-wide alternatives
[    0.164368] devtmpfs: initialized
[    0.180548] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.180604] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.190237] pinctrl core: initialized pinctrl subsystem
[    0.197574] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.202255] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.207215] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.214498] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.222142] audit: initializing netlink subsys (disabled)
[    0.230018] audit: type=2000 audit(0.156:1): state=initialized audit_enabled=0 res=1
[    0.230469] thermal_sys: Registered thermal governor 'step_wise'
[    0.235347] cpuidle: using governor menu
[    0.249237] NET: Registered PF_QIPCRTR protocol family
[    0.253210] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.258055] ASID allocator initialised with 65536 entries
[    0.282715] platform 78d9000.usb: Fixed dependency cycle(s) with /soc@0/usb@78d9000/ulpi/phy
[    0.285444] KASLR disabled due to lack of seed
[    0.291171] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.294508] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.301355] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.307430] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.314375] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.320450] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.327396] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.333470] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.341015] cryptd: max_cpu_qlen set to 1000
[    0.414631] raid6: neonx8   gen()  1458 MB/s
[    0.482745] raid6: neonx4   gen()  1452 MB/s
[    0.550856] raid6: neonx2   gen()  1412 MB/s
[    0.618990] raid6: neonx1   gen()  1212 MB/s
[    0.687092] raid6: int64x8  gen()   932 MB/s
[    0.755218] raid6: int64x4  gen()  1043 MB/s
[    0.823333] raid6: int64x2  gen()   933 MB/s
[    0.891445] raid6: int64x1  gen()   689 MB/s
[    0.891465] raid6: using algorithm neonx8 gen() 1458 MB/s
[    0.959573] raid6: .... xor() 1080 MB/s, rmw enabled
[    0.959631] raid6: using neon recovery algorithm
[    0.964417] iommu: Default domain type: Translated
[    0.968209] iommu: DMA domain TLB invalidation policy: strict mode
[    0.973128] SCSI subsystem initialized
[    0.979260] usbcore: registered new interface driver usbfs
[    0.982894] usbcore: registered new interface driver hub
[    0.988379] usbcore: registered new device driver usb
[    0.993999] pps_core: LinuxPPS API ver. 1 registered
[    0.998759] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    1.003815] PTP clock support registered
[    1.013148] CPUidle PSCI: Initialized CPU PM domain topology using OSI mode
[    1.018070] qcom_scm: convention: smc arm 32
[    1.024134] Advanced Linux Sound Architecture Driver Initialized.
[    1.028676] Bluetooth: Core ver 2.22
[    1.034029] NET: Registered PF_BLUETOOTH protocol family
[    1.037637] Bluetooth: HCI device and connection manager initialized
[    1.042951] Bluetooth: HCI socket layer initialized
[    1.049280] Bluetooth: L2CAP socket layer initialized
[    1.053889] Bluetooth: SCO socket layer initialized
[    1.059695] clocksource: Switched to clocksource arch_sys_counter
[    1.064012] VFS: Disk quotas dquot_6.6.0
[    1.070068] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.074600] AppArmor: AppArmor Filesystem Enabled
[    1.089569] NET: Registered PF_INET protocol family
[    1.089754] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.094307] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.100615] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.108813] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.116830] TCP bind hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    1.124657] TCP: Hash tables configured (established 4096 bind 4096)
[    1.131642] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.138075] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.144523] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.151735] RPC: Registered named UNIX socket transport module.
[    1.157149] RPC: Registered udp transport module.
[    1.162790] RPC: Registered tcp transport module.
[    1.167649] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.172563] Unpacking initramfs...
[    1.183976] kvm [1]: IPA Size Limit: 40 bits
[    1.185627] kvm [1]: vgic interrupt IRQ9
[    1.187357] kvm [1]: Hyp mode initialized successfully
[    1.192945] Initialise system trusted keyrings
[    1.196578] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    1.203037] NFS: Registering the id_resolver key type
[    1.207218] Key type id_resolver registered
[    1.212175] Key type id_legacy registered
[    1.216216] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.220363] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.228970] Key type cifs.spnego registered
[    1.234594] Key type cifs.idmap registered
[    1.238709] ksmbd: The ksmbd server is experimental
[    1.242971] ceph: loaded (mds proto 32)
[    1.301377] xor: measuring software checksum speed
[    1.307330]    8regs           :  1682 MB/sec
[    1.313268]    32regs          :  1682 MB/sec
[    1.319648]    arm64_neon      :  1557 MB/sec
[    1.319679] xor: using function: 32regs (1682 MB/sec)
[    1.322995] Key type asymmetric registered
[    1.328037] Asymmetric key parser 'x509' registered
[    1.332133] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.337098] io scheduler mq-deadline registered
[    1.344475] io scheduler kyber registered
[    1.360912] msm_serial 78b0000.serial: msm_serial: detected port #0
[    1.360978] msm_serial 78b0000.serial: uartclk = 7372800
[    1.366210] 78b0000.serial: ttyMSM0 at MMIO 0x78b0000 (irq = 21, base_baud = 460800)[    1.380103] printk: console [ttyMSM0] enabled
[    1.380103] printk: console [ttyMSM0] enabled
[    1.383444] printk: bootconsole [msm_serial_dm0] disabled
[    1.383444] printk: bootconsole [msm_serial_dm0] disabled
[    1.396566] msm_serial: driver initialized
[    1.398969] qcom-iommu 1ef0000.iommu: iommu sec: pgtable size: 94208
[    1.409035] adreno 1c00000.gpu: Adding to iommu group 0
[    1.418049] loop: module loaded
[    1.418546] spmi spmi-0: PMIC arbiter version v2 (0x20010000)
[    1.427619] usbcore: registered new interface driver catc
[    1.427755] usbcore: registered new interface driver kaweth
[    1.432049] pegasus: Pegasus/Pegasus II USB Ethernet driver
[    1.437485] usbcore: registered new interface driver pegasus
[    1.443028] usbcore: registered new interface driver rtl8150
[    1.448920] usbcore: registered new device driver r8152-cfgselector
[    1.454590] usbcore: registered new interface driver r8152
[    1.460496] hso: drivers/net/usb/hso.c: Option Wireless
[    1.466126] usbcore: registered new interface driver hso
[    1.471245] usbcore: registered new interface driver lan78xx
[    1.476797] usbcore: registered new interface driver asix
[    1.482435] usbcore: registered new interface driver ax88179_178a
[    1.487773] usbcore: registered new interface driver cdc_ether
[    1.493805] usbcore: registered new interface driver cdc_eem
[    1.499556] usbcore: registered new interface driver dm9601
[    1.505364] usbcore: registered new interface driver sr9700
[    1.510095] Freeing initrd memory: 6076K
[    1.510630] usbcore: registered new interface driver CoreChips
[    1.520331] usbcore: registered new interface driver smsc75xx
[    1.525969] usbcore: registered new interface driver smsc95xx
[    1.531785] usbcore: registered new interface driver gl620a
[    1.537541] usbcore: registered new interface driver net1080
[    1.542895] usbcore: registered new interface driver plusb
[    1.548795] usbcore: registered new interface driver rndis_host
[    1.554089] usbcore: registered new interface driver cdc_subset
[    1.559918] usbcore: registered new interface driver zaurus
[    1.565809] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    1.571391] usbcore: registered new interface driver int51x1
[    1.579012] usbcore: registered new interface driver kalmia
[    1.584645] usbcore: registered new interface driver ipheth
[    1.589934] usbcore: registered new interface driver sierra_net
[    1.595496] usbcore: registered new interface driver cx82310_eth
[    1.601403] usbcore: registered new interface driver cdc_ncm
[    1.607648] usbcore: registered new interface driver huawei_cdc_ncm
[    1.613291] usbcore: registered new interface driver lg-vl600
[    1.619283] usbcore: registered new interface driver qmi_wwan
[    1.625182] usbcore: registered new interface driver cdc_mbim
[    1.630912] usbcore: registered new interface driver ch9200
[    1.636643] usbcore: registered new interface driver aqc111
[    1.642027] usbcore: registered new interface driver r8153_ecm
[    1.647621] usbcore: registered new interface driver cdc_acm
[    1.653455] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.659300] usbcore: registered new interface driver cdc_wdm
[    1.667029] usbcore: registered new interface driver usb-storage
[    1.672982] usbcore: registered new interface driver ch341
[    1.678911] usbserial: USB Serial support registered for ch341-uart
[    1.686440] rtc-pm8xxx 200f000.spmi:pmic@0:rtc@6000: registered as rtc0
[    1.690401] rtc-pm8xxx 200f000.spmi:pmic@0:rtc@6000: setting system clock to 1970-01-01T00:12:07 UTC (727)
[    1.697041] i2c_dev: i2c /dev entries driver
[    1.709180] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: [email protected]
[    1.711208] Bluetooth: HCI UART driver ver 2.3
[    1.719519] Bluetooth: HCI UART protocol H4 registered
[    1.723763] Bluetooth: HCI UART protocol BCSP registered
[    1.728910] Bluetooth: HCI UART protocol LL registered
[    1.734353] Bluetooth: HCI UART protocol ATH3K registered
[    1.739327] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.744842] Bluetooth: HCI UART protocol Intel registered
[    1.750922] Bluetooth: HCI UART protocol Broadcom registered
[    1.756425] Bluetooth: HCI UART protocol QCA registered
[    1.762130] Bluetooth: HCI UART protocol AG6XX registered
[    1.767104] Bluetooth: HCI UART protocol Marvell registered
[    1.772675] usbcore: registered new interface driver bcm203x
[    1.778050] usbcore: registered new interface driver bpa10x
[    1.783950] usbcore: registered new interface driver bfusb
[    1.789244] usbcore: registered new interface driver btusb
[    1.796733] sdhci: Secure Digital Host Controller Interface driver
[    1.800249] sdhci: Copyright(c) Pierre Ossman
[    1.806401] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.811915] leds-gpio leds: Led red: renamed to red:_1 due to name collision
[    1.816667] leds-gpio leds: Led green: renamed to green:_1 due to name collision
[    1.823723] leds-gpio leds: Led blue: renamed to blue:_1 due to name collision
[    1.832108] ledtrig-cpu: registered to indicate activity on CPUs
[    1.838826] usbcore: registered new interface driver usbhid
[    1.844171] usbhid: USB HID core driver
[    1.851950] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    1.856158] Initializing XFRM netlink socket
[    1.856164] Unable to handle kernel paging request at virtual address 00000000000013c3
[    1.861658] NET: Registered PF_PACKET protocol family
[    1.865968] Mem abort info:
[    1.873692] NET: Registered PF_KEY protocol family
[    1.878790]   ESR = 0x0000000096000004
[    1.878796]   EC = 0x25: DABT (current EL), IL = 32 bits
[    1.889995]   SET = 0, FnV = 0
[    1.895460]   EA = 0, S1PTW = 0
[    1.898324]   FSC = 0x04: level 0 translation fault
[    1.901364] Data abort info:
[    1.906222]   ISV = 0, ISS = 0x00000004
[    1.909348]   CM = 0, WnR = 0
[    1.912907] [00000000000013c3] user address but active_mm is swapper
[    1.916038] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[    1.922453] Modules linked in:
[    1.928439] CPU: 3 PID: 2 Comm: kthreadd Not tainted 6.4.0-rc4-jsbsbxjxh66-compile+ #4
[    1.931570] Hardware name: MF601SL_CT_V07 (4G) jsbsbxjxh66+compile (DT)
[    1.939468] pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    1.945977] pc : get_task_pid+0x24/0xac
[    1.952917] lr : get_task_pid+0x1c/0xac
[    1.956737] sp : ffff800009903cf0
[    1.960555] x29: ffff800009903cf0 x28: 0000000000000000 x27: 0000000000000001
[    1.964033] x26: 0000000000000000 x25: 0000000000800700 x24: ffff8000080adc5c
[    1.971152] x23: ffff000002e65580 x22: 0000000000000f03 x21: 0000000000000000
[    1.978269] x20: 0000000000000000 x19: 00000000000013c3 x18: 00000000d80ef353
[    1.985388] x17: ffff8000097aeff0 x16: ffff8000097aef80 x15: 000000009eb6aaff
[    1.992506] x14: 000000002289e67a x13: 000000003a2524ff x12: 00000000bc76c3d8
[    1.999623] x11: 00000000b76f7bfb x10: 00000000c63fd5e5 x9 : 0000000056be2ef4
[    2.006741] x8 : 000000002851dc8f x7 : 00000000047694c7 x6 : 00000000047694c7
[    2.013860] x5 : ffff8000097aefb8 x4 : ffff800009903d08 x3 : 000000003dd2ff09
[    2.020979] x2 : 0000000000000000 x1 : ffff000002868e40 x0 : 0000000000000001
[    2.028097] Call trace:
[    2.035207]  get_task_pid+0x24/0xac
[    2.037465]  kernel_clone+0x88/0x368
[    2.040938]  kernel_thread+0x7c/0xac
[    2.044757]  kthreadd+0x140/0x1c0
[    2.048316]  ret_from_fork+0x10/0x20
[    2.051535] Code: aa0003f3 94016b16 35000234 91130273 (f9400273)
[    2.055181] ---[ end trace 0000000000000000 ]---

@185264646
Copy link
Author

185264646 commented Sep 4, 2023

@LianZiZhou @CoiaPrant233

[0] OpenStick Bootloader V0.01
[0] [Author] HandsomeYingyan [email protected]
[0] This Bootloader Has Super Handsome Power!
...
[ 0.000000] Linux version 6.4.0-rc4-jsbsbxjxh66-compile+ (root@debian12) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #4 SMP PREEMPT Sat Jul 29 10:16:46 UTC 2023
[ 0.000000] Machine model: MF601SL_CT_V07 (4G) jsbsbxjxh66+compile

I requested more than once for you to RESTORE stock Android image, please. Don't blame on this dts because the crash is resulted from the "base package" you flashed which is made by handsomemod. It's COMPLETELY BROKEN and SHOULD NOT be flashed. You both are reqporting an invalid issue.

By the way, the dts is not even written by me. The debian image has completely nothing to do with me. Please find the original author and report the issue to him. Or follow the directions that i already suggested more than once above.

Try this image:
https://www.123pan.com/s/fMlTjv-9v0Wd.html code:1357

@CoiaPrant233
Copy link

Your dts compiled kernel 6.5

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.C4.4-00010
S - IMAGE_VARIANT_STRING=HAAAANAZA
S - OEM_IMAGE_VERSION_STRING=wingtech-desktop
S - Boot Config, 0x000002e1
S - Core 0 Frequency, 0 MHz
B -      1545 - PBL, Start
B -      3490 - bootable_media_detect_entry, Start
B -    158020 - bootable_media_detect_success, Start
B -    158025 - elf_loader_entry, Start
B -    159302 - auth_hash_seg_entry, Start
B -    159512 - auth_hash_seg_exit, Start
B -    173395 - elf_segs_hash_verify_entry, Start
B -    232020 - PBL, End
B -    238296 - SBL1, Start
B -    302316 - pm_device_init, Start
D -     14792 - pm_device_init, Delta
B -    317688 - boot_flash_init, Start
D -     31598 - boot_config_data_table_init, Delta - (452 Bytes)
B -    357856 - CDT version:3,Platform ID:24,Major ID:1,Minor ID:0,Subtype:0
B -    364231 - sbl1_ddr_set_params, Start
B -    367860 - cpr_init, Start
D -         0 - cpr_init, Delta
B -    373472 - Pre_DDR_clock_init, Start
D -       183 - Pre_DDR_clock_init, Delta
D -         0 - sbl1_ddr_set_params, Delta
B -    386069 - pm_driver_init, Start
D -      3629 - pm_driver_init, Delta
B -    399306 - clock_init, Start
D -
"▒▒х5
     B -    399367 - Image Load, Start
D -     25498 - QSEE Image Loaded, Delta - (571664 Bytes)
B -    424895 - Image Load, Start
D -       457 - SEC Image Loaded, Delta - (2048 Bytes)
B -    432093 - sbl1_efs_handle_cookies, Start
D -       244▒_efs_handle_cookies, Delta
B -    439932 - Image Load, Start
D -     18544 - QHEE oaded, Delta - (6808 Bytes)
B -    458506 - Image Load, Start
D -     12231 - RPM     ▒▒▒▒ Delta - (145640 Bytes)
B -    470767 - Image Load, Start
D -     23790 - APPSBL Image Loaded, Delta - (224592 Bytes)
B -    494588 - QSEE Execution, Start
D -        61 - QSEE Execution, Delta
B -    500291 - SBL1, End
D -    264344 - SBL1, Delta
S - Flash Throughput, 116000 KB/s  (951204 Bytes,  8174 us)
S - DDR Frequency, 400 MHz
Android Bootloader - UART_DM Initialized!!!
[0] welcome to lk

[0] OpenStick Bootloader V0.01
[0] [Author] HandsomeYingyan <[email protected]>
[0] This Bootloader Has Super Handsome Power!
[0] calling constructors
[0] initializing heap
[0] initializing threads
[0] initializing dpc
[0] initializing timers
[0] creating bootstrap completion thread
[10] top of bootstrap2()
[10] initializing platform
[10] platform_init()
[10] initializing target
[10] target_init()
[30] initialising mmc_slot =1
[40]  Initializing MMC host data structure and clock!
[50] Decoded CID fields:
[50] Manufacturer ID: 90
[60] OEM ID: 0x14a
[60] Product Name: H4G2a
[60] Product revision: 0.2
[60] Product serial number: 4B258223
[70] Manufacturing date: 5 2003
[80] Decoded CSD fields:
[80] cmmc_structure: 3
[80] card_cmd_class: f5
[80] write_blk_len: 512
[80] read_blk_len: 512
[90] r2w_factor: 2
[90] sector_size: 0
[90] c_size_mult:7
[90] c_size: 4095
[90] nsac_clk_cycle: 100
[90] taac_ns: 15000000
[100] tran_speed: 0 kbps
[100] erase_blk_len: 1
[100] read_blk_misalign: 0
[100] write_blk_misalign: 0
[110] read_blk_partial: 0
[110] write_blk_partial: 0
[110] wp_grp_size: 16384
[110] Card Capacity: 3909091328 Bytes
[120] SDHC Running in HS200de▒▒ 1
[140] perm_wp: 0
[150] temp▒▒, type 0x0, start 0x0, len 0x0
[160]   2: status 0x0, type 0x0, start 0x0, len 0x0
[170]   3: status 0x0, type 0x0, start 0x0, len 0x0
[170] fou*▒ɽ▒▒ Command timeout error
[190] Failure getting OCR response from MMC Card
[190] MMC card failed to respond, try for SD card
[200] Error: Command timeout error
[200] The response for CMD8 does not match the supplied value
[210] Failed to initialize SD card
[210] Failed detecting MMC/SDC @ slot2
[210] sdcard init ▒▒open hd2
[230] Unable to load boot.img from ext2. Continuing legacy boot
[230] Unable to locate /bootselect par▒▒▒decompress image start
[820] decompressed image finished.
[820] smem ram ptable found: ver: 1 len: 4
[830] smem ram ptable found: ver: 1 len: 4
[830] smem ram ptable found: ver: 1 len: 4
[830] smem ram ptable found: ver: 1 len: 4
[840] smem ram ptable found: ver: 1 len: 4
[840] smem ram ptable found: ver: 1 len: 4
[850] smem ram ptable found: ver: 1 len: 4
[850] smem ram ptable found: ver: 1 len: 4
[850] smem ram ptable found: ver: 1 len: 4
[860] qcom,msm-id entry not found
[860] Only one appended non-skales DTB, select it.
[890] target_display_panel_node:510: hw_id=24 panel_name=""
[890] cmdline: earlycon root=PARTUUID=a7ab80e8-e9d1-e8cd-f157-93f69b1d141e console=ttyMSM0,115200 no_framebuffer=true rw androidboot.emmc=true androidboot.serialno=4b258223 androidboot.baseband=msm mdss_mdp.panel=0:dsi:0:
[910] Updating device tree: start
[910] smem ram ptable found: ver: 1 len: 4
[970] Setting WLAN mac address in DT: 02:00:4B:25:82:23
[1000] Setting Bluetooth BD address in DT: 02:00:4B:25:82:22
[1000] Setting BT mac address in DT: 02:00:4B:25:82:22
[1010] Updating device tree: don[1010] booting linux @ 0x80000000, ramdisk @ 0x82000000 (6969086), tags/device tree @ 0x81e00000
[1020] Jumping to kernel via monitor
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd030]
[    0.000000] Linux version 6.5.0-rc7+ (root@server) (aarch64-linux-gnu-gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Tue Aug 29 20:28:45 CST 2023
[    0.000000] KASLR disabled due to lack of seed
[    0.000000] Machine model: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07
[    0.000000] earlycon: msm_serial_dm0 at MMIO 0x00000000078b0000 (options '')
[    0.000000] printk: bootconsole [msm_serial_dm0] enabled
[    0.000000] OF: reserved mem: 0x000000008bf00000..0x000000008c4fffff (6144 KiB) nomap non-reusable wcnss
[    0.000000] OF: reserved mem: 0x000000008c500000..0x000000008c9fffff (5120 KiB) nomap non-reusable venus
[    0.000000] OF: reserved mem: 0x000000008ca00000..0x000000008cafffff (1024 KiB) nomap non-reusable mba
[    0.000000] OF: reserved mem: 0x0000000086000000..0x00000000862fffff (3072 KiB) nomap non-reusable tz-apps@86000000
[    0.000000] OF: reserved mem: 0x0000000086300000..0x00000000863fffff (1024 KiB) nomap non-reusable smem@86300000
[    0.000000] OF: reserved mem: 0x0000000086400000..0x00000000864fffff (1024 KiB) nomap non-reusable hypervisor@86400000
[    0.000000] OF: reserved mem: 0x0000000086500000..0x000000008667ffff (1536 KiB) nomap non-reusable tz@86500000
[    0.000000] OF: reserved mem: 0x0000000086680000..0x00000000866fffff (512 KiB) nomap non-reusable reserved@86680000
[    0.000000] OF: reserved mem: 0x0000000086700000..0x00000000867dffff (896 KiB) nomap non-reusable rmtfs@86700000
[    0.000000] OF: reserved mem: 0x00000000867e0000..0x00000000867fffff (128 KiB) nomap non-reusable rfsa@867e0000
[    0.000000] OF: reserved mem: 0x0000000086800000..0x000000008bcfffff (87040 KiB) nomap non-reusable mpss@86800000
[    0.000000] OF: reserved mem: 0x000000008bd00000..0x000000008befffff (2048 KiB) nomap non-reusable gps
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x000000009fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x0000000085ffffff]
[    0.000000]   node   0: [mem 0x0000000086000000-0x000000008cafffff]
[    0.000000]   node   0: [mem 0x000000008cb00000-0x000000009fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fffffff]
[    0.000000] cma: Reserved 32 MiB at 0x000000009d600000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] psci: OSI mode supported.
[    0.000000] psci: [Firmware Bug]: failed to set PC mode: -3
[    0.000000] percpu: Embedded 21 pages/cpu s48296 r8192 d29528 u86016
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: ARM errata 826319, 827319, 824069, or 819472
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: earlycon root=PARTUUID=a7ab80e8-e9d1-e8cd-f157-93f69b1d141e console=ttyMSM0,115200 no_framebuffer=true rw androidboot.emmc=true androidboot.serialno=4b258223 androidboot.baseband=msm mdss_mdp.panel=0:dsi:0:
[    0.000000] Unknown kernel command line parameters "no_framebuffer=true", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x0000000099580000-0x000000009d580000] (64MB)
[    0.000000] Memory: 275924K/524288K available (12864K kernel code, 1488K rwdata, 4496K rodata, 2880K init, 456K bss, 215596K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 and mmio timer(s) running at 19.20MHz (phys/virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000000] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.010985] Console: colour dummy device 80x25
[    0.018780] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=76800)
[    0.023276] pid_max: default: 32768 minimum: 301
[    0.033684] LSM: initializing lsm=capability,apparmor,integrity
[    0.038373] AppArmor: AppArmor initialized
[    0.044020] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.048099] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.057389] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.063407] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.070581] rcu: Hierarchical SRCU implementation.
[    0.077709] rcu:     Max phase no-delay instances is 1000.
[    0.083766] smp: Bringing up secondary CPUs ...
[    0.088373] Detected VIPT I-cache on CPU1
[    0.088480] CPU1: Booted secondary processor 0x0000000001 [0x410fd030]
[    0.089315] Detected VIPT I-cache on CPU2
[    0.089407] CPU2: Booted secondary processor 0x0000000002 [0x410fd030]
[    0.090212] Detected VIPT I-cache on CPU3
[    0.090296] CPU3: Booted secondary processor 0x0000000003 [0x410fd030]
[    0.090398] smp: Brought up 1 node, 4 CPUs
[    0.123710] SMP: Total of 4 processors activated.
[    0.127779] CPU features: detected: 32-bit EL0 Support
[    0.132572] CPU features: detected: 32-bit EL1 Support
[    0.137589] CPU features: detected: CRC32 instructions
[    0.142811] CPU: All CPU(s) started at EL2
[    0.147851] alternatives: applying system-wide alternatives
[    0.153462] devtmpfs: initialized
[    0.169052] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.169107] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.178859] pinctrl core: initialized pinctrl subsystem
[    0.186093] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.190800] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.195750] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.203033] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.210650] audit: initializing netlink subsys (disabled)
[    0.218526] audit: type=2000 audit(0.144:1): state=initialized audit_enabled=0 res=1
[    0.218957] thermal_sys: Registered thermal governor 'step_wise'
[    0.223855] cpuidle: using governor menu
[    0.237732] NET: Registered PF_QIPCRTR protocol family
[    0.241697] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.246568] ASID allocator initialised with 65536 entries
[    0.269659] platform 78d9000.usb: Fixed dependency cycle(s) with /soc@0/usb@78d9000/ulpi/phy
[    0.272040] Modules: 27168 pages in range for non-PLT usage
[    0.272051] Modules: 518688 pages in range for PLT usage
[    0.278103] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.288039] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.294724] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.300798] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.307742] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.313817] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.320763] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.326839] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.334382] cryptd: max_cpu_qlen set to 1000
[    0.340867] iommu: Default domain type: Translated
[    0.344381] iommu: DMA domain TLB invalidation policy: strict mode
[    0.349261] SCSI subsystem initialized
[    0.355343] usbcore: registered new interface driver usbfs
[    0.358891] usbcore: registered new interface driver hub
[    0.364374] usbcore: registered new device driver usb
[    0.369995] pps_core: LinuxPPS API ver. 1 registered
[    0.374756] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.379817] PTP clock support registered
[    0.389136] CPUidle PSCI: Initialized CPU PM domain topology using OSI mode
[    0.394113] qcom_scm: convention: smc arm 32
[    0.400119] Advanced Linux Sound Architecture Driver Initialized.
[    0.405176] clocksource: Switched to clocksource arch_sys_counter
[    0.410274] VFS: Disk quotas dquot_6.6.0
[    0.416115] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.420660] AppArmor: AppArmor Filesystem Enabled
[    0.435738] NET: Registered PF_INET protocol family
[    0.435912] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.440454] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.446786] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.454985] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.462997] TCP bind hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.470826] TCP: Hash tables configured (established 4096 bind 4096)
[    0.477807] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.484243] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.490697] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.497889] RPC: Registered named UNIX socket transport module.
[    0.503328] RPC: Registered udp transport module.
[    0.508958] RPC: Registered tcp transport module.
[    0.513816] RPC: Registered tcp-with-tls transport module.
[    0.518506] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.524113] Unpacking initramfs...
[    0.533447] kvm [1]: IPA Size Limit: 40 bits
[    0.535132] kvm [1]: vgic interrupt IRQ9
[    0.538219] kvm [1]: Hyp mode initialized successfully
[    0.543829] Initialise system trusted keyrings
[    0.547434] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.554192] NFS: Registering the id_resolver key type
[    0.558041] Key type id_resolver registered
[    0.562986] Key type id_legacy registered
[    0.567054] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.571151] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.579502] Key type cifs.spnego registered
[    0.585468] Key type cifs.idmap registered
[    0.589466] ksmbd: The ksmbd server is experimental
[    0.593846] ceph: loaded (mds proto 32)
[    0.647529] Key type asymmetric registered
[    0.647571] Asymmetric key parser 'x509' registered
[    0.650647] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.655624] io scheduler mq-deadline registered
[    0.662999] io scheduler kyber registered
[    0.679316] msm_serial 78b0000.serial: msm_serial: detected port #0
[    0.679390] msm_serial 78b0000.serial: uartclk = 7372800
[    0.684914] 78b0000.serial: ttyMSM0 at MMIO 0x78b0000 (irq = 21, base_baud = 460800)[    0.698517] printk: console [ttyMSM0] enabled
[    0.698517] printk: console [ttyMSM0] enabled
[    0.701884] printk: bootconsole [msm_serial_dm0] disabled
[    0.701884] printk: bootconsole [msm_serial_dm0] disabled
[    0.726039] msm_serial: driver initialized
[    0.726438] qcom-iommu 1ef0000.iommu: iommu sec: pgtable size: 94208
[    0.742183] loop: module loaded
[    0.742708] spmi spmi-0: PMIC arbiter version v2 (0x20010000)
[    0.750583] usbcore: registered new interface driver catc
[    0.750671] usbcore: registered new interface driver kaweth
[    0.755464] pegasus: Pegasus/Pegasus II USB Ethernet driver
[    0.760891] usbcore: registered new interface driver pegasus
[    0.766436] usbcore: registered new interface driver rtl8150
[    0.772368] usbcore: registered new device driver r8152-cfgselector
[    0.777993] usbcore: registered new interface driver r8152
[    0.783920] hso: drivers/net/usb/hso.c: Option Wireless
[    0.789584] usbcore: registered new interface driver hso
[    0.794772] usbcore: registered new interface driver lan78xx
[    0.800290] usbcore: registered new interface driver asix
[    0.805858] usbcore: registered new interface driver ax88179_178a
[    0.811210] usbcore: registered new interface driver cdc_ether
[    0.817247] usbcore: registered new interface driver cdc_eem
[    0.822974] usbcore: registered new interface driver dm9601
[    0.828769] usbcore: registered new interface driver sr9700
[    0.834054] usbcore: registered new interface driver CoreChips
[    0.839631] usbcore: registered new interface driver smsc75xx
[    0.845516] usbcore: registered new interface driver smsc95xx
[    0.851340] usbcore: registered new interface driver gl620a
[    0.857080] usbcore: registered new interface driver net1080
[    0.862451] usbcore: registered new interface driver plusb
[    0.868372] usbcore: registered new interface driver rndis_host
[    0.873648] usbcore: registered new interface driver cdc_subset
[    0.879392] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000088
[    0.879407] Mem abort info:
[    0.879410]   ESR = 0x0000000096000004
[    0.879414]   EC = 0x25: DABT (current EL), IL = 32 bits
[    0.879421]   SET = 0, FnV = 0
[    0.879425]   EA = 0, S1PTW = 0
[    0.879429]   FSC = 0x04: level 0 translation fault
[    0.879434] Data abort info:
[    0.879437]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
[    0.879442]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[    0.879447]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[    0.879454] [0000000000000088] user address but active_mm is swapper
[    0.879459] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[    0.879468] Modules linked in:
[    0.879482] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.5.0-rc7+ #1
[    0.879495] Hardware name: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07 (DT)
[    0.879500] pstate: 800000c5 (Nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.879514] pc : rcu_sched_clock_irq+0x48/0xe78
[    0.879542] lr : update_process_times+0x68/0xac
[    0.879552] sp : ffff80008000bd10
[    0.879556] x29: ffff80008000bd10 x28: 0000000000000000 x27: ffff800080131c38
[    0.879573] x26: 0000000000000001 x25: ffff8000811d1280 x24: 000000002c7a5175
[    0.879587] x23: ffff00001fe8c800 x22: ffff8000815fb960 x21: ffff00001fe8cd48
[    0.879602] x20: 0000000000000000 x19: 0000000000000000 x18: ffffffffffffffff
[    0.879616] x17: ffff7fff9ecc1000 x16: ffff800080008000 x15: 0000000000000006
[    0.879630] x14: 0000000000000000 x13: 7465736275735f63 x12: 6463207265766972
[    0.879644] x11: 0000000000000000 x10: 000000000000000a x9 : 0000000000000044
[    0.879658] x8 : 0000000000000004 x7 : ffff8000811d1000 x6 : ffff7fff9ecc1000
[    0.879671] x5 : ffff80008000bd10 x4 : 0000000022d001fd x3 : ffff000001868460
[    0.879685] x2 : ffff000001868000 x1 : ffff8000811d12a8 x0 : 0000000000000000
[    0.879700] Call trace:
[    0.879704]  rcu_sched_clock_irq+0x48/0xe78
[    0.879718]  update_process_times+0x68/0xac
[    0.879727]  tick_sched_handle+0x34/0x58
[    0.879739]  tick_sched_timer+0x50/0xa8
[    0.879750]  __hrtimer_run_queues+0x138/0x1d8
[    0.879759]  hrtimer_interrupt+0xe8/0x244
[    0.879768]  arch_timer_handler_phys+0x2c/0x44
[    0.879783]  handle_percpu_devid_irq+0x84/0x130
[    0.879793]  generic_handle_domain_irq+0x2c/0x44
[    0.879806]  gic_handle_irq+0x44/0xc8
[    0.879815]  call_on_irq_stack+0x24/0x4c
[    0.879825]  do_interrupt_handler+0x80/0x84
[    0.879837]  el1_interrupt+0x34/0x68
[    0.879847]  el1h_64_irq_handler+0x18/0x24
[    0.879856]  el1h_64_irq+0x64/0x68
[    0.879864]  console_flush_all.constprop.0+0x1b0/0x3a4
[    0.879875]  console_unlock+0x54/0x10c
[    0.879885]  vprintk_emit+0x1b4/0x298
[    0.879895]  vprintk_default+0x38/0x44
[    0.879905]  vprintk+0xd4/0xf0
[    0.879914]  _printk+0x5c/0x84
[    0.879923]  usb_register_driver+0x140/0x170
[    0.879934]  cdc_subset_driver_init+0x24/0x30
[    0.879946]  do_one_initcall+0x6c/0x1b0
[    0.879955]  kernel_init_freeable+0x1bc/0x284
[    0.879970]  kernel_init+0x24/0x1d8
[    0.879980]  ret_from_fork+0x10/0x20
[    0.879996] Code: 9100a321 f9400060 f9008fe0 d2800000 (f8666824)
[    0.880005] ---[ end trace 0000000000000000 ]---
[    0.880012] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[    0.880017] SMP: stopping secondary CPUs
[    0.880030] Kernel Offset: disabled
[    0.880033] CPU features: 0x02000006,00010000,0000421b
[    0.880040] Memory Limit: none
[    1.194735] ---[ end Kernel panic - not syncing: Oops: Fatal exception in interrupt ]---

@CoiaPrant233
Copy link

No blame, these UART logs are to help the community fix bugs.
The android image masks the UART input.

@185264646
Copy link
Author

185264646 commented Sep 4, 2023

No blame, these UART logs are to help the community fix bugs. The android image masks the UART input.

I've uploaded a pmos image, you can try that. Remember to restore Android system first

@CoiaPrant233
Copy link

No blame, these UART logs are to help the community fix bugs. The android image masks the UART input.

I've uploaded a pmos image, you can try that. Remember to restore Android system first

where?

@185264646
Copy link
Author

185264646 commented Sep 5, 2023

No blame, these UART logs are to help the community fix bugs. The android image masks the UART input.

I've uploaded a pmos image, you can try that. Remember to restore Android system first

where?

https://www.123pan.com/s/fMlTjv-9v0Wd.html code:1357

ssh [email protected] password: 1234

Note: I found some recent commits in pmos broke some compatibities, so i edited the source and regenerated it recently without testing.

It still occasionally crash for my device. Welcome to use this image for a few days and reboot for some times.

@CoiaPrant233
Copy link

CoiaPrant233 commented Mar 11, 2024

CoiaPrant233@0abc46c

I migrated mf601sl-v7 dt to 6.7-rc5, its works fine.

Reason of kernel oops is SoC temperature overheating. I use cpufrequtils limit cpu frequency to 200 MHz to resolve this problem

@185264646
Copy link
Author

CoiaPrant233@0abc46c

I migrated mf601sl-v7 dt to 6.7-rc5, its works fine.

Reason of kernel oops is SoC temperature overheating. I use cpufrequtils limit cpu frequency to 200 MHz to resolve this problem

Thanks for your testing. A Tested-by tag from you is welcomed. I will send this patch upstream when we have another mf601 model with different LED layout (which means another dts).

@CoiaPrant233
Copy link

CoiaPrant233 commented Mar 11, 2024

How to do the Tested-by ?

@185264646
Copy link
Author

185264646 commented Mar 11, 2024

CoiaPrant233@0abc46c
我将 mf601sl-v7 dt 迁移到 6.7-rc5,它工作正常。
内核哎呀的原因是 SoC 温度过热。我使用将 cpu 频率限制为 200 MHz 来解决此问题cpufrequtils

感谢您的测试。欢迎您提供 Tested-by 标签。当我们有另一个具有不同 LED 布局的 mf601 型号(这意味着另一个 dts)时,我将向上游发送此补丁。

How to do the Tested-by ?

You can read https://docs.kernel.org/translations/zh_CN/process/submitting-patches.html#reported-by-tested-by-reviewed-by-suggested-by-fixes . Generally, you have two choices. The formal one is that when i submit the patch upstream with email, you reply to the email with "Tested-by: xxxx [email protected]". The maintainer will add the tag to the commit log and apply it to their tree, which will finally be merged to torvalds' tree. The other is not so formal, you can simply attach your Tested-by tag here, then i add it to the commit log and send it. You'll be notified when i send that upstream. Either one is okay, It's up to you.

Either way, you'll have to provide your real name and a working email address. Though you can still use a fake name, but a working email is mandatory

@CoiaPrant233
Copy link

Okay, both are fine for me

@CoiaPrant233
Copy link

I added two notes. dont forget it

Note: The original hardware SoC has poor heat dissipation and needs to
use cpufrequtils to limit it to an extremely low frequency to work
properly.

Note: When compiling the kernel, please set USB-related content as a
module, otherwise it will cause a kernel panic.

@185264646
Copy link
Author

I added two notes. dont forget it

Note: The original hardware SoC has poor heat dissipation and needs to
use cpufrequtils to limit it to an extremely low frequency to work
properly.

Note: When compiling the kernel, please set USB-related content as a
module, otherwise it will cause a kernel panic.

Thanks. To limit cpufreq you can also add an opp table to dts. Refer to #325


led-message-red {
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_INDICATOR;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to use LED_FUNCTION_STATUS here and above, because IMO both functions represent the same and then STATUS should be preferred.

@CoiaPrant233
Copy link

Hi? Are u still working here? When will this patch be available in the kernel tree?

@185264646
Copy link
Author

Hi? Are u still working here? When will this patch be available in the kernel tree?

Sorry. i'm busy these days. For upstream, we'll need at least one more user of the common dtsi, or it'll be possibly rejected. Quite a lot work needs to be done here

@CoiaPrant233
Copy link

eMMC with 8G works fine. but eMMC with 4GB panic, can u confirm it?

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd030]
[    0.000000] Linux version 6.7.0-rc4+ (root@server) (aarch64-linux-gnu-gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #17 SMP PREEMPT Sun Mar 10 19:51:57 CST 2024
[    0.000000] KASLR disabled due to lack of seed
[    0.000000] Machine model: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07
[    0.000000] earlycon: msm_serial_dm0 at MMIO 0x00000000078b0000 (options '')
[    0.000000] printk: legacy bootconsole [msm_serial_dm0] enabled
[    0.000000] OF: reserved mem: 0x000000008bd00000..0x000000008c2fffff (6144 KiB) nomap non-reusable wcnss
[    0.000000] OF: reserved mem: 0x000000008c300000..0x000000008c7fffff (5120 KiB) nomap non-reusable venus
[    0.000000] OF: reserved mem: 0x000000008c800000..0x000000008c8fffff (1024 KiB) nomap non-reusable mba
[    0.000000] OF: reserved mem: 0x0000000086000000..0x00000000862fffff (3072 KiB) nomap non-reusable tz-apps@86000000
[    0.000000] OF: reserved mem: 0x0000000086300000..0x00000000863fffff (1024 KiB) nomap non-reusable smem@86300000
[    0.000000] OF: reserved mem: 0x0000000086400000..0x00000000864fffff (1024 KiB) nomap non-reusable hypervisor@86400000
[    0.000000] OF: reserved mem: 0x0000000086500000..0x000000008667ffff (1536 KiB) nomap non-reusable tz@86500000
[    0.000000] OF: reserved mem: 0x0000000086680000..0x00000000866fffff (512 KiB) nomap non-reusable reserved@86680000
[    0.000000] OF: reserved mem: 0x0000000086700000..0x00000000867dffff (896 KiB) nomap non-reusable rmtfs@86700000
[    0.000000] OF: reserved mem: 0x00000000867e0000..0x00000000867fffff (128 KiB) nomap non-reusable rfsa@867e0000
[    0.000000] OF: reserved mem: 0x0000000086800000..0x000000008bcfffff (87040 KiB) nomap non-reusable mpss@86800000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x000000009fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x0000000085ffffff]
[    0.000000]   node   0: [mem 0x0000000086000000-0x000000008c8fffff]
[    0.000000]   node   0: [mem 0x000000008c900000-0x000000009fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fffffff]
[    0.000000] cma: Reserved 32 MiB at 0x000000009d600000 on node -1
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] psci: OSI mode supported.
[    0.000000] psci: [Firmware Bug]: failed to set PC mode: -3
[    0.000000] percpu: Embedded 21 pages/cpu s48616 r8192 d29208 u86016
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: ARM errata 826319, 827319, 824069, or 819472
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: earlycon root=/dev/disk/by-partlabel/rootfs rw console=ttyMSM0,115200 no_framebuffer=true
[    0.000000] Unknown kernel command line parameters "no_framebuffer=true", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 0MB
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: SWIOTLB bounce buffer size roundup to 1MB
[    0.000000] software IO TLB: mapped [mem 0x000000009d480000-0x000000009d580000] (1MB)
[    0.000000] Memory: 343504K/524288K available (12608K kernel code, 1458K rwdata, 4380K rodata, 2880K init, 446K bss, 148016K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 and mmio timer(s) running at 19.20MHz (phys/virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000000] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.010977] Console: colour dummy device 80x25
[    0.018777] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=76800)
[    0.023273] pid_max: default: 32768 minimum: 301
[    0.033686] LSM: initializing lsm=capability,apparmor,integrity
[    0.038371] AppArmor: AppArmor initialized
[    0.044021] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.048101] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.057520] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.063411] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.070582] rcu: Hierarchical SRCU implementation.
[    0.077696] rcu:     Max phase no-delay instances is 1000.
[    0.083755] smp: Bringing up secondary CPUs ...
[    0.088392] Detected VIPT I-cache on CPU1
[    0.088496] CPU1: Booted secondary processor 0x0000000001 [0x410fd030]
[    0.089362] Detected VIPT I-cache on CPU2
[    0.089456] CPU2: Booted secondary processor 0x0000000002 [0x410fd030]
[    0.090291] Detected VIPT I-cache on CPU3
[    0.090377] CPU3: Booted secondary processor 0x0000000003 [0x410fd030]
[    0.090485] smp: Brought up 1 node, 4 CPUs
[    0.123716] SMP: Total of 4 processors activated.
[    0.127779] CPU features: detected: 32-bit EL0 Support
[    0.132576] CPU features: detected: 32-bit EL1 Support
[    0.137589] CPU features: detected: CRC32 instructions
[    0.142776] CPU: All CPU(s) started at EL2
[    0.147850] alternatives: applying system-wide alternatives
[    0.153404] devtmpfs: initialized
[    0.169306] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.169360] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.179059] pinctrl core: initialized pinctrl subsystem
[    0.186739] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.191085] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.195991] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.203300] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.210918] audit: initializing netlink subsys (disabled)
[    0.218790] audit: type=2000 audit(0.144:1): state=initialized audit_enabled=0 res=1
[    0.219240] thermal_sys: Registered thermal governor 'step_wise'
[    0.224108] cpuidle: using governor menu
[    0.237986] NET: Registered PF_QIPCRTR protocol family
[    0.241928] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.246821] ASID allocator initialised with 65536 entries
[    0.270521] platform 78d9000.usb: Fixed dependency cycle(s) with /soc@0/usb@78d9000/ulpi/phy
[    0.272926] Modules: 27264 pages in range for non-PLT usage
[    0.272938] Modules: 518784 pages in range for PLT usage
[    0.279011] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.288908] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.295586] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.301660] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.308605] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.314680] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.321626] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.327702] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.335283] cryptd: max_cpu_qlen set to 1000
[    0.341747] iommu: Default domain type: Translated
[    0.345243] iommu: DMA domain TLB invalidation policy: strict mode
[    0.350127] SCSI subsystem initialized
[    0.356221] usbcore: registered new interface driver usbfs
[    0.359754] usbcore: registered new interface driver hub
[    0.365245] usbcore: registered new device driver usb
[    0.370859] pps_core: LinuxPPS API ver. 1 registered
[    0.375619] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.380676] PTP clock support registered
[    0.390012] CPUidle PSCI: Initialized CPU PM domain topology using OSI mode
[    0.394950] qcom_scm: convention: smc arm 32
[    0.400937] Advanced Linux Sound Architecture Driver Initialized.
[    0.406050] clocksource: Switched to clocksource arch_sys_counter
[    0.411162] VFS: Disk quotas dquot_6.6.0
[    0.416976] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.421548] AppArmor: AppArmor Filesystem Enabled
[    0.436954] NET: Registered PF_INET protocol family
[    0.437132] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.441693] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.448005] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.456200] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.464213] TCP bind hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.472038] TCP: Hash tables configured (established 4096 bind 4096)
[    0.479024] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.485457] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.491915] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.499133] RPC: Registered named UNIX socket transport module.
[    0.504542] RPC: Registered udp transport module.
[    0.510174] RPC: Registered tcp transport module.
[    0.515033] RPC: Registered tcp-with-tls transport module.
[    0.519722] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.525342] Unpacking initramfs...
[    0.531929] kvm [1]: IPA Size Limit: 40 bits
[    0.536339] kvm [1]: vgic interrupt IRQ9
[    0.539414] kvm [1]: Hyp mode initialized successfully
[    0.545008] Initialise system trusted keyrings
[    0.548579] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.555055] NFS: Registering the id_resolver key type
[    0.559263] Key type id_resolver registered
[    0.564208] Key type id_legacy registered
[    0.568235] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.572360] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.580820] Key type cifs.spnego registered
[    0.586598] Key type cifs.idmap registered
[    0.591047] ceph: loaded (mds proto 32)
[    0.677118] Key type asymmetric registered
[    0.677160] Asymmetric key parser 'x509' registered
[    0.680258] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.685253] io scheduler mq-deadline registered
[    0.692577] io scheduler kyber registered
[    0.709031] msm_serial 78b0000.serial: msm_serial: detected port #0
[    0.709102] msm_serial 78b0000.serial: uartclk = 7372800
[    0.714751] 78b0000.serial: ttyMSM0 at MMIO 0x78b0000 (irq = 21, base_baud = 460800)▒[    0.728239] printk: legacy console [ttyMSM0] enabled
[    0.728239] printk: legacy console [ttyMSM0] enabled
[    0.732317] printk: legacy bootconsole [msm_serial_dm0] disabled
[    0.732317] printk: legacy bootconsole [msm_serial_dm0] disabled
[    0.746994] msm_serial: driver initialized
[    0.749675] qcom-iommu 1ef0000.iommu: iommu sec: pgtable size: 94208
[    0.767338] loop: module loaded
[    0.767901] spmi spmi-0: PMIC arbiter version v2 (0x20010000)
[    0.775871] usbcore: registered new interface driver cdc_acm
[    0.775910] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.781070] usbcore: registered new interface driver cdc_wdm
[    0.788760] usbcore: registered new interface driver usb-storage
[    0.794721] usbcore: registered new interface driver ch341
[    0.800625] usbserial: USB Serial support registered for ch341-uart
[    0.808624] rtc-pm8xxx 200f000.spmi:pmic@0:rtc@6000: registered as rtc0
[    0.812110] rtc-pm8xxx 200f000.spmi:pmic@0:rtc@6000: setting system clock to 1970-01-01T00:00:30 UTC (30)
[    0.818783] i2c_dev: i2c /dev entries driver
[    0.831621] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: [email protected]
[    0.834945] sdhci: Secure Digital Host Controller Interface driver
[    0.841137] sdhci: Copyright(c) Pierre Ossman
[    0.847102] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.854645] ledtrig-cpu: registered to indicate activity on CPUs
[    0.857913] usbcore: registered new interface driver usbhid
[    0.863287] usbhid: USB HID core driver
[    0.870289] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.874986] Initializing XFRM netlink socket
[    0.880906] NET: Registered PF_PACKET protocol family
[    0.885085] NET: Registered PF_KEY protocol family
[    0.886325] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010
[    0.890206] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010
[    0.890410] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010
[    0.890421] Mem abort info:
[    0.890423]   ESR = 0x0000000096000004
[    0.890428]   EC = 0x25: DABT (current EL), IL = 32 bits
[    0.890434]   SET = 0, FnV = 0
[    0.890438]   EA = 0, S1PTW = 0
[    0.890442]   FSC = 0x04: level 0 translation fault
[    0.890447] Data abort info:
[    0.890450]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
[    0.890454]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[    0.890460]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[    0.890466] [0000000000000010] user address but active_mm is swapper
[    0.890472] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[    0.890479] Modules linked in:
[    0.890488] CPU: 3 PID: 67 Comm: kworker/u9:0 Not tainted 6.7.0-rc4+ #17
[    0.890499] Hardware name: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07 (DT)
[    0.890505] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.890515] pc : load_balance+0xa50/0xb14
[    0.890530] lr : load_balance+0xa78/0xb14
[    0.890538] sp : ffff8000820ebba0
[    0.890542] x29: ffff8000820ebba0 x28: 0000000000000000 x27: ffff00001feb8640
[    0.890558] x26: 0000000000000002 x25: ffff0000018f4bc0 x24: ffff7fff9ed41000
[    0.890573] x23: ffff8000820ebd54 x22: ffff8000820ebcc8 x21: ffff00001feb8640
[    0.890588] x20: ffff80008116f940 x19: ffff80008116f938 x18: 000000006ddefd7e
[    0.890603] x17: ffff80008147e278 x16: ffff80008147e208 x15: 00000000c9ec9d89
[    0.890618] x14: 0000000000000357 x13: 000000000000035a x12: 0000000000000000
[    0.890632] x11: 0000000000000000 x10: 000000003512667f x9 : 0000000000000000
[    0.890646] x8 : ffff8000820ebcd8 x7 : ffff0000018e0730 x6 : 0000000000000000
[    0.890660] x5 : 0000000000000001 x4 : 0000000000000000 x3 : 0000000000000000
[    0.890674] x2 : 0000000000000000 x1 : ffff00000486b900 x0 : 0000000100000000
[    0.890688] Call trace:
[    0.890692]  load_balance+0xa50/0xb14
[    0.890702]  newidle_balance.constprop.0+0x1b0/0x3e8
[    0.890712]  pick_next_task_fair+0x44/0x3f0
[    0.890720]  __schedule+0x130/0x84c
[    0.890734]  schedule+0x34/0xc8
[    0.890746]  schedule_preempt_disabled+0x24/0x40
[    0.890759]  kthread+0xbc/0x118
[    0.890767]  ret_from_fork+0x10/0x20
[    0.890784] Code: b9404800 f94083e1 f100003f 540000cd (f9400840)
[    0.890791] ---[ end trace 0000000000000000 ]---
[    0.890795] note: kworker/u9:0[67] exited with irqs disabled
[    0.890848] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000a0
[    0.890855] Mem abort info:
[    0.890858]   ESR = 0x0000000096000004
[    0.890861]   EC = 0x25: DABT (current EL), IL = 32 bits
[    0.890867]   SET = 0, FnV = 0
[    0.890871]   EA = 0, S1PTW = 0
[    0.890876]   FSC = 0x04: level 0 translation fault
[    0.890881] Data abort info:
[    0.890883]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
[    0.890887]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[    0.890893]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[    0.890900] [00000000000000a0] user address but active_mm is swapper
[    0.890904] Internal error: Oops: 0000000096000004 [#2] PREEMPT SMP
[    0.890910] Modules linked in:
[    0.890918] CPU: 3 PID: 67 Comm: kworker/u9:0 Tainted: G      D            6.7.0-rc4+ #17
[    0.890928] Hardware name: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07 (DT)
[    0.890933] pstate: 400000c5 (nZcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.890942] pc : pick_next_task_fair+0x78/0x3f0
[    0.890953] lr : pick_next_task_fair+0xa8/0x3f0
[    0.890962] sp : ffff8000820eb690
[    0.890966] x29: ffff8000820eb690 x28: ffff00000486b900 x27: ffff000001870000
[    0.890981] x26: ffff800080f16928 x25: ffff8000820eb738 x24: ffff00001feb86c0
[    0.890996] x23: ffff00001feb8640 x22: ffff00001feb86c0 x21: ffff00000486b900
[    0.891011] x20: ffff00001feb86c0 x19: 0000000000000000 x18: ffffffffffffffff
[    0.891026] x17: 72646461206c6175 x16: 7472697620746120 x15: ffffffffffffffff
[    0.891040] x14: 000000000000010a x13: 000000000000010a x12: 0000000000000000
[    0.891055] x11: 0000000000000001 x10: 0000000000000000 x9 : 0000000000000000
[    0.891069] x8 : ffff00001feb86c0 x7 : 0000000000000000 x6 : 0000000000100000
[    0.891084] x5 : 0000000000000004 x4 : 00000000fffffffb x3 : 000001f8000001f8
[    0.891098] x2 : 0000000000000000 x1 : ffff00000486b980 x0 : 0000000000000000
[    0.891113] Call trace:
[    0.891116]  pick_next_task_fair+0x78/0x3f0
[    0.891125]  __schedule+0x130/0x84c
[    0.891138]  do_task_dead+0x48/0x4c
[    0.891149]  do_exit+0x590/0x8d4
[    0.891160]  make_task_dead+0x84/0x17c
[    0.891172]  arm64_force_sig_fault+0x0/0x70
[    0.891181]  die_kernel_fault+0x1bc/0x3a4
[    0.891192]  __do_kernel_fault+0xe0/0x170
[    0.891202]  do_page_fault+0x158/0x440
[    0.891213]  do_translation_fault+0x9c/0xa8
[    0.891223]  do_mem_abort+0x44/0x94
[    0.891233]  el1_abort+0x40/0x64
[    0.891243]  el1h_64_sync_handler+0xd8/0xe4
[    0.891254]  el1h_64_sync+0x64/0x68
[    0.891263]  load_balance+0xa50/0xb14
[    0.891271]  newidle_balance.constprop.0+0x1b0/0x3e8
[    0.891281]  pick_next_task_fair+0x44/0x3f0
[    0.891290]  __schedule+0x130/0x84c
[    0.891302]  schedule+0x34/0xc8
[    0.891314]  schedule_preempt_disabled+0x24/0x40
[    0.891327]  kthread+0xbc/0x118
[    0.891334]  ret_from_fork+0x10/0x20
[    0.891348] Code: eb00003f 54000e61 aa1603f4 14000003 (f9405274)
[    0.891354] ---[ end trace 0000000000000000 ]---
[    0.891359] note: kworker/u9:0[67] exited with irqs disabled
[    0.891363] note: kworker/u9:0[67] exited with preempt_count 2
[    0.891369] Fixing recursive fault but reboot is needed!
[    0.894664] Mem abort info:
[    0.903578] Mem abort info:
[    0.903583]   ESR = 0x0000000096000004
[    0.903589]   EC = 0x25: DABT (current EL), IL = 32 bits
[    0.903597]   SET = 0, FnV = 0
[    0.903601]   EA = 0, S1PTW = 0
[    0.910057] Unable to handle kernel execute from non-executable memory at virtual address ffff800081494ce8
[    0.910075] Mem abort info:
[    0.910078]   ESR = 0x000000008600000f
[    0.910083]   EC = 0x21: IABT (current EL), IL = 32 bits
[    0.910089]   SET = 0, FnV = 0
[    0.910093]   EA = 0, S1PTW = 0
[    0.910098]   FSC = 0x0f: level 3 permission fault
[    0.910103] swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000810b4000
[    0.910111] [ffff800081494ce8] pgd=100000009ffff003, p4d=100000009ffff003, pud=100000009fffe003, pmd=100000009fff9003, pte=0078000081494703
[    0.910139] Internal error: Oops: 000000008600000f [#3] PREEMPT SMP
[    0.910146] Modules linked in:
[    0.910154] CPU: 1 PID: 11 Comm: kworker/u8:0 Tainted: G      D            6.7.0-rc4+ #17
[    0.910165] Hardware name: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07 (DT)
[    0.910172] Workqueue: events_unbound async_run_entry_fn
[    0.910191] pstate: 800000c5 (Nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.910202] pc : clocksource_counter+0x0/0x98
[    0.910214] lr : raw_notifier_call_chain+0x54/0x74
[    0.910224] sp : ffff80008000bd30
[    0.910228] x29: ffff80008000bd30 x28: 0000000000000000 x27: 003b9aca00000000
[    0.910245] x26: ffff80008152a000 x25: 000000003b9aca00 x24: 003b9aca00000000
[    0.910260] x23: 0000000000000000 x22: ffff800081420000 x21: 00000006f186de4b
[    0.910275] x20: 00000000ffffffff x19: 00ffffffffffffff x18: ffff800081c05000
[    0.910290] x17: ffff7fff9ed17000 x16: ffff800080008000 x15: 0000000000000001
[    0.910306] x14: 0000000000000000 x13: 3500038097fe9bf6 x12: d2800002d2800423
[    0.910320] x11: ffff800081507000 x10: f9400780b40004dc x9 : ffff800081397000
[    0.910336] x8 : 0000000000000018 x7 : ffff8000813950f0 x6 : 000000003b9aca00
[    0.910350] x5 : 002e230ab4f6a000 x4 : 002e230ab4f6a000 x3 : ffff800081494ce8
[    0.910365] x2 : ffff800081420000 x1 : 00000006f186de4b x0 : ffff80008152a338
[    0.910381] Call trace:
[    0.910385]  clocksource_counter+0x0/0x98
[    0.910395]  timekeeping_advance+0x334/0x550
[    0.910408]  update_wall_time+0x14/0x38
[    0.910420]  tick_do_update_jiffies64+0xcc/0x134
[    0.910435]  tick_sched_do_timer+0xb4/0xb8
[    0.910448]  tick_nohz_highres_handler+0x40/0xa8
[    0.910461]  __hrtimer_run_queues+0x138/0x1d8
[    0.910472]  hrtimer_interrupt+0xe8/0x244
[    0.910484]  arch_timer_handler_phys+0x2c/0x44
[    0.910497]  handle_percpu_devid_irq+0x84/0x130
[    0.910509]  generic_handle_domain_irq+0x2c/0x44
[    0.910522]  gic_handle_irq+0x44/0xc8
[    0.910531]  call_on_irq_stack+0x24/0x4c
[    0.910541]  do_interrupt_handler+0x80/0x84
[    0.910552]  el1_interrupt+0x34/0x68
[    0.910563]  el1h_64_irq_handler+0x18/0x24
[    0.910575]  el1h_64_irq+0x64/0x68
[    0.910583]  __memcpy+0x164/0x260
[    0.910594]  generic_perform_write+0xe4/0x1e8
[    0.910604]  __generic_file_write_iter+0xac/0xc8
[    0.910615]  generic_file_write_iter+0x78/0xf4
[    0.910626]  __kernel_write_iter+0x90/0x1f8
[    0.910639]  kernel_write+0xd0/0x180
[    0.910651]  xwrite.constprop.0+0x4c/0xe8
[    0.910662]  do_copy+0xe0/0x170
[    0.910672]  flush_buffer+0x58/0xd0
[    0.910683]  unzstd+0x254/0x404
[    0.910691]  unpack_to_rootfs+0x154/0x348
[    0.910702]  do_populate_rootfs+0x74/0x158
[    0.910713]  async_run_entry_fn+0x34/0x14c
[    0.910726]  process_one_work+0x138/0x248
[    0.910737]  worker_thread+0x320/0x438
[    0.910747]  kthread+0x114/0x118
[    0.910755]  ret_from_fork+0x10/0x20
[    0.910770] Code: 81494cd0 ffff8000 00010000 00000000 (809830b0)
[    0.910779] ---[ end trace 0000000000000000 ]---
[    0.910785] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[    0.910790] SMP: stopping secondary CPUs
[    0.921102]   FSC = 0x04: level 0 translation fault
[    0.921107] Data abort info:
[    0.921109]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
[    0.921113]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[    0.921119]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[    0.921124] [0000000000000010] user address but active_mm is swapper
[    2.004545] SMP: failed to stop secondary CPUs 1-3
[    2.877582] Kernel Offset: disabled
[    2.882178] CPU features: 0x0,0800000c,00020000,0100421b
[    2.885565] Memory Limit: none
[    2.891122] ---[ end Kernel panic - not syncing: Oops: Fatal exception in interrupt ]---

@185264646
Copy link
Author

185264646 commented Jun 16, 2024

eMMC with 8G works fine. but eMMC with 4GB panic, can u confirm it?

Yes. I can. The crash log you posted is very similar to mine. Though I don't have a 8GB version and can't figure out the reason.

For now, i can confirm the following facts on my device:

  1. With stock Android image, it never crashes;
  2. With OpenStick image, it crashes very frequently, not usable;
  3. With sbl1 and rpm firmware restored (from stock Android image), it occasionally crashes. Usable, but still not quite stable.

So unless i can get it completely fixed, I won't submit this patch to upstream.

Can you figure out the real reason for the crashes? If it's over-temp, i can workaround it with a dedicated opp-table in the dts to limit the CPU freq. But if it's emmc issue, i don't know how to fix it. With the facts above, we can say it of course can be fixed in software. Though i don't know how and where.

@CoiaPrant233
Copy link

Can u share ur sbl1 and rpm firmware?

I flash my android firmware.

Boot 1st

[    0.416889] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.421460] AppArmor: AppArmor Filesystem Enabled
[    0.436859] NET: Registered PF_INET protocol family
[    0.436934] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000ea6
[    0.440565] Mem abort info:
[    0.449574]   ESR = 0x0000000096000004
[    0.452090]   EC = 0x25: DABT (current EL), IL = 32 bits
[    0.455911]   SET = 0, FnV = 0
[    0.461376]   EA = 0, S1PTW = 0
[    0.464240]   FSC = 0x04: level 0 translation fault
[    0.467282] Data abort info:
[    0.472140]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
[    0.475270]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[    0.480563]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[    0.485687] [0000000000000ea6] user address but active_mm is swapper
[    0.491071] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[    0.497397] Modules linked in:
[    0.503383] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.7.0-rc4+ #17
[    0.506512] Hardware name: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07 (DT)
[    0.513025] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.520400] pc : __pi_strlen+0x14/0x150
[    0.527252] lr : __proc_create+0x7c/0x27c
[    0.531073] sp : ffff80008159bc70
[    0.535238] x29: ffff80008159bc70 x28: 0000000000000000 x27: ffff800081156060
[    0.538544] x26: ffff8000810c00b0 x25: ffff80008102eed0 x24: ffff8000810a0cc0
[    0.545661] x23: 0000000000000ea6 x22: 0000000000008124 x21: 0000000000000001
[    0.552780] x20: ffff80008159bd18 x19: 0000000000000000 x18: 0000000000000014
[    0.559897] x17: 00000000f916664f x16: 000000001acbf511 x15: 00000000fe88044f
[    0.567016] x14: 0000000000000000 x13: 0000000000000114 x12: 0000000000002000
[    0.574134] x11: ffff00001fec46d4 x10: ffff00001fec46c0 x9 : 000000000000012c
[    0.581251] x8 : 0101010101010101 x7 : 0000000000000000 x6 : ffff00001fec41c0
[    0.588369] x5 : ffff800081017888 x4 : 0000000000000ea6 x3 : 0000000000000000
[    0.595487] x2 : 0000000000000000 x1 : ffff000001870000 x0 : 0000000000000ea6
[    0.602607] Call trace:
[    0.609717]  __pi_strlen+0x14/0x150
[    0.611975]  proc_create_reg+0x50/0xb0
[    0.615447]  proc_create_seq_private+0x28/0x68
[    0.619268]  neigh_table_init+0xbc/0x264
[    0.623694]  arp_init+0x24/0x64
[    0.627772]  inet_init+0x178/0x29c
[    0.630638]  do_one_initcall+0x6c/0x1b0
[    0.634110]  kernel_init_freeable+0x1bc/0x284
[    0.637845]  kernel_init+0x24/0x1d8
[    0.642357]  ret_from_fork+0x10/0x20
[    0.645662] Code: 92402c04 b200c3e8 f13fc09f 5400088c (a9400c02)
[    0.649482] ---[ end trace 0000000000000000 ]---
[    0.655498] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.660160] SMP: stopping secondary CPUs
[    0.667539] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---

Boot 2nd

[    1.072371] l13: Bringing 0uV into 3075000-3075000uV
[    1.079812] Freeing unused kernel memory: 2880K
[    1.094184] Run /init as init process
[    1.094472] Failed to execute /init (error -2)
[    1.096817] Run /sbin/init as init process
[    1.101345] Run /etc/init as init process
[    1.105366] Run /bin/init as init process
[    1.109439] Run /bin/sh as init process
[    1.110851] mmc0: SDHCI controller on 7824900.mmc [7824900.mmc] using ADMA
[    1.112770] mmc1: SDHCI controller on 7864900.mmc [7864900.mmc] using ADMA
[    1.124037] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    1.130773] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 6.7.0-rc4+ #17
[    1.144909] Hardware name: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07 (DT)
[    1.151422] Call trace:
[    1.158794]  dump_backtrace+0x98/0x118
[    1.161139]  show_stack+0x18/0x24
[    1.164958]  dump_stack_lvl+0x48/0x60
[    1.168343]  dump_stack+0x18/0x24
[    1.171988]  panic+0x378/0x3ac
[    1.175287]  kernel_init+0x198/0x1d8
[    1.178238]  ret_from_fork+0x10/0x20
[    1.181973] SMP: stopping secondary CPUs
[    1.185624] Kernel Offset: disabled
[    1.189437] CPU features: 0x0,0800000c,00020000,0100421b
[    1.192652] Memory Limit: none
[    1.198208] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---

Boot 3rd

[    0.857453] Unable to handle kernel paging request at virtual address 00000000fffedbbd
[    0.862868] Mem abort info:
[    0.870584]   ESR = 0x0000000096000004
[    0.873277]   EC = 0x25: DABT (current EL), IL = 32 bits
[    0.877099]   SET = 0, FnV = 0
[    0.882563]   EA = 0, S1PTW = 0
[    0.885428]   FSC = 0x04: level 0 translation fault
[    0.888470] Data abort info:
[    0.893326]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
[    0.896457]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[    0.901751]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[    0.906874] [00000000fffedbbd] user address but active_mm is swapper
[    0.912259] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[    0.918594] Modules linked in:
[    0.924579] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.7.0-rc4+ #17
[    0.927708] Hardware name: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07 (DT)
[    0.934222] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.941597] pc : tick_nohz_get_sleep_length+0x6c/0xc8
[    0.948452] lr : tick_nohz_get_sleep_length+0x90/0xc8
[    0.953661] sp : ffff800081633d60
[    0.958692] x29: ffff800081633d60 x28: 0000000000000000 x27: 0000000000000000
[    0.961998] x26: 000003e7fffffc18 x25: ffff7fff9ed40000 x24: ffff00001feb67a0
[    0.969115] x23: ffff000003796880 x22: 00000000fffedbbd x21: 0000000000000003
[    0.976233] x20: 0000000000000000 x19: ffff00001feb2dc8 x18: ffffffffffffffff
[    0.983350] x17: 0000000000000000 x16: 0000000000000002 x15: 0000000000000001
[    0.990470] x14: 0000000000000095 x13: 0000000000000095 x12: ffff8000813999f0
[    0.997587] x11: 0000000000000001 x10: 071c71c71c71c71c x9 : ffff800081633d50
[    1.004706] x8 : 0000000000000000 x7 : ffff00001feb6804 x6 : 000000007fffffff
[    1.011825] x5 : 0000000000000000 x4 : 000000000000014e x3 : ffff800081397a00
[    1.018942] x2 : ffff7fff9ed40000 x1 : 0000000000000000 x0 : 0000000000000000
[    1.026062] Call trace:
[    1.033171]  tick_nohz_get_sleep_length+0x6c/0xc8
[    1.035431]  menu_select+0x16c/0x688
[    1.040290]  cpuidle_select+0x1c/0x28
[    1.043936]  do_idle+0x1bc/0x264
[    1.047494]  cpu_startup_entry+0x34/0x3c
[    1.050795]  secondary_start_kernel+0x124/0x144
[    1.054700]  __secondary_switched+0xb8/0xbc
[    1.058959] Code: f90002c2 97fffe3a 72001c1f 540000e1 (f94002c0)
[    1.063127] ---[ end trace 0000000000000000 ]---
[    1.069374] Kernel panic - not syncing: Attempted to kill the idle task!
[    1.074064] SMP: stopping secondary CPUs
[    1.080882] Kernel Offset: disabled
[    1.084648] CPU features: 0x0,0800000c,00020000,0100421b
[    1.087862] Memory Limit: none
[    1.093416] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

Boot 4th

[    0.831200] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: [email protected]
[    0.834439] sdhci: Secure Digital Host Controller Interface driver
[    0.838310] Insufficient stack space to handle exception!
[    0.838313] Insufficient stack space to handle exception!
[    0.838321] ESR: 0x0000000096000047 -- DABT (current EL)
[    0.838322] ESR: 0x0000000096000047 -- DABT (current EL)
[    0.838331] FAR: 0xffff800081627ff0
[    0.838331] FAR: 0xffff80008162fff0
[    0.838335] Task stack:     [0xffff800081628000..0xffff80008162c000]
[    0.838335] Task stack:     [0xffff800081630000..0xffff800081634000]
[    0.838340] IRQ stack:      [0xffff800081588000..0xffff80008158c000]
[    0.838340] IRQ stack:      [0xffff800081590000..0xffff800081594000]
[    0.838345] Overflow stack: [0xffff00001fe98100..0xffff00001fe99100]
[    0.838345] Overflow stack: [0xffff00001fead100..0xffff00001feae100]
[    0.838352] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.7.0-rc4+ #17
[    0.838353] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.7.0-rc4+ #17
[    0.838363] Hardware name: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07 (DT)
[    0.838363] Hardware name: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07 (DT)
[    0.838368] pstate: 800000c5 (Nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.838368] pstate: 800000c5 (Nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.838378] pc : arch_counter_read+0x8/0x24
[    0.838378] pc : arch_counter_read+0x8/0x24
[    0.838399] lr : ktime_get+0x44/0x9c
[    0.838399] lr : ktime_get+0x44/0x9c
[    0.838413] sp : ffff800081630000
[    0.838413] sp : ffff800081628000
[    0.838416] x29: ffff800081628000
[    0.838416] x29: ffff800081630000
[    0.838421]  x28: 0000000000000000
[    0.838421]  x28: 0000000000000000
[    0.838426]  x27: 0000000000000000
[    0.838427]  x27: 0000000000000000
[    0.838430]
[    0.838431]
[    0.838432] x26: 0000000000000000
[    0.838433] x26: 0000000000000000
[    0.838436]  x25: 0000000000000000
[    0.838437]  x25: 0000000000000000
[    0.838441]  x24: 0000000000000000
[    0.838442]  x24: 0000000000000000
[    0.838445]
[    0.838445]
[    0.838447] x23: 0000000000000000
[    0.838447] x23: 0000000000000000
[    0.838450]  x22: ffff0000018e1c80
[    0.838451]  x22: ffff0000018e2ac0
[    0.838455]  x21: 000000000a98e2b2
[    0.838455]  x21: 000000000a98e2b2
[    0.838460]
[    0.838461] x20: 000000000000014e
[    0.838462] x20: 000000000000014e
[    0.838465]  x19: ffff80008152a200
[    0.838465]  x19: ffff80008152a200
[    0.838470]  x18: ffffffffffffffff
[    0.838470]  x18: 0000000000000014
[    0.838474]
[    0.838474]
[    0.838476] x17: 000000040044ffff
[    0.838477] x17: 000000040044ffff
[    0.838480]  x16: 00500072b5503510
[    0.838481]  x16: 00500072b5503510
[    0.838484]  x15: 0000000000000000
[    0.838485]  x15: 0000000000000000
[    0.838488]
[    0.838489]
[    0.838490] x14: ffff0000018e2ac0
[    0.838491] x14: ffff0000018e1c80
[    0.838494]  x13: ffff7fff9ed40000
[    0.838495]  x13: ffff7fff9ed2b000
[    0.838498]  x12: 0000000030d4d91d
[    0.838499]  x12: 0000000030d4d91d
[    0.838503]
[    0.838503]
[    0.838505] x11: 0000000000000000
[    0.838505] x11: 0000000000000000
[    0.838508]  x10: 0000000000001000
[    0.838509]  x10: 0000000000001000
[    0.838513]  x9 : ffff800080010800
[    0.838513]  x9 : ffff800080010800
[    0.838517]
[    0.838517]
[    0.838519] x8 : 00000072b5503510
[    0.838519] x8 : 00000072b5503510
[    0.838523]  x7 : 0000000000000000
[    0.838524]  x7 : 0000000000000000
[    0.838527]  x6 : 0000000000000000
[    0.838528]  x6 : 0000000000000000
[    0.838531]
[    0.838531]
[    0.838533] x5 : 0000000000000004
[    0.838533] x5 : 0000000000000004
[    0.838536]  x4 : ffff800081399c50
[    0.838537]  x4 : ffff800081399c50
[    0.838540]  x3 : 0000000000000000
[    0.838541]  x3 : 0000000000000000
[    0.838544]
[    0.838545]
[    0.838546] x2 : ffff800081177640
[    0.838547] x2 : ffff800081177640
[    0.838550]  x1 : ffff8000809830b0
[    0.838551]  x1 : ffff8000809830b0
[    0.838555]  x0 : ffff800081031000
[    0.838555]  x0 : ffff800081031000
[    0.838559]
[    0.838559]
[    0.838563] Kernel panic - not syncing: kernel stack overflow
[    0.838568] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.7.0-rc4+ #17
[    0.838576] Hardware name: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07 (DT)
[    0.838581] Call trace:
[    0.838584]  dump_backtrace+0x98/0x118
[    0.838599]  show_stack+0x18/0x24
[    0.838611]  dump_stack_lvl+0x48/0x60
[    0.838622]  dump_stack+0x18/0x24
[    0.838631]  panic+0x378/0x3ac
[    0.838640]  nmi_panic+0x48/0x94
[    0.838648]  panic_bad_stack+0x108/0x120
[    0.838656]  handle_bad_stack+0x34/0xb8
[    0.838668]  __bad_stack+0x78/0x7c
[    0.838675]  arch_counter_read+0x8/0x24
[    0.838686]  tick_nohz_idle_enter+0x50/0x90
[    0.838700]  do_idle+0x44/0x264
[    0.838710]  cpu_startup_entry+0x34/0x3c
[    0.838719]  secondary_start_kernel+0x124/0x144
[    0.838732]  __secondary_switched+0xb8/0xbc
[    0.838744] SMP: stopping secondary CPUs
[    0.840768] Kernel Offset: disabled
[    0.840770] CPU features: 0x0,0800000c,00020000,0100421b
[    0.840777] Memory Limit: none

Boot 5th

[    0.542641] kvm [1]: vgic interrupt IRQ9
[    0.545789] kvm [1]: Hyp mode initialized successfully
[    0.551436] Initialise system trusted keyrings
[    0.554914] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.560129] Unable to handle kernel execute from non-executable memory at vir                                                                                                                                   tual address ffff00001fec4180
[    0.565479] Mem abort info:
[    0.575015]   ESR = 0x000000008600000f
[    0.577709]   EC = 0x21: IABT (current EL), IL = 32 bits
[    0.581530]   SET = 0, FnV = 0
[    0.586995]   EA = 0, S1PTW = 0
[    0.589859]   FSC = 0x0f: level 3 permission fault
[    0.592900] swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000810b4000
[    0.597765] [ffff00001fec4180] pgd=180000009fff8003, p4d=180000009fff8003, pu                                                                                                                                   d=180000009fff7003, pmd=180000009ff32003, pte=006800009fec4707
[    0.604633] Internal error: Oops: 000000008600000f [#1] PREEMPT SMP
[    0.616863] Modules linked in:
[    0.623109] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.7.0-rc4+ #17
[    0.626236] Hardware name: Tong Heng Wei Chuang 4G Modem Stick MF601SL_CT_V07                                                                                                                                    (DT)
[    0.632748] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.640126] pc : 0xffff00001fec4180
[    0.646977] lr : 0xffff00001fec4180
[    0.650450] sp : ffff800081393d70
[    0.653921] x29: 0000000000000000 x28: 00000000810b00ac x27: 0000000000000000
[    0.657400] x26: ffff00001fec4180 x25: ffff8000813a1c80 x24: 0000000000000000
[    0.664518] x23: 0000000000000000 x22: ffff8000813a1c80 x21: ffff8000813999e8
[    0.671637] x20: ffff8000813999a0 x19: ffff00001fe75988 x18: ffffffffffffffff
[    0.678754] x17: ffff80008147e278 x16: ffff80008147e208 x15: ffffffffffffffff
[    0.685873] x14: 00000000000000fc x13: 00000000000000fc x12: ffff8000813999f0
[    0.692991] x11: 0000000000000001 x10: 00000000000009d0 x9 : ffff800081393cd0
[    0.700109] x8 : ffff8000813a26b0 x7 : 0000000000000000 x6 : 0000000002cdbf6e
[    0.707226] x5 : 4000000000000000 x4 : ffff7fff9ed01000 x3 : ffff800081393d50
[    0.714344] x2 : ffff7fff9ed01000 x1 : ffff00001fe75988 x0 : 000000000badca11
[    0.721463] Call trace:
[    0.728574]  0xffff00001fec4180
[    0.730837] Code: ffffffff ffffffff ffffffff ffffffff (00000000)
[    0.733964] ---[ end trace 0000000000000000 ]---
[    0.740212] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.744902] SMP: stopping secondary CPUs
[    0.751590] Kernel Offset: disabled
[    0.755484] CPU features: 0x0,0800000c,00020000,0100421b
[    0.758700] Memory Limit: none
[    0.764252] ---[ end Kernel panic - not syncing: Attempted to kill the idle t                                                                                                                                   ask! ]---

@CoiaPrant233
Copy link

Oh, I forget reserved memory for GPS. but I added its also has NULL panic. I think maybe more memory should be reserved?

@185264646
Copy link
Author

Oh, I forget reserved memory for GPS. but I added its also has NULL panic. I think maybe more memory should be reserved?

Maybe. Remember to compare with decompiled dtb from Android. It's an important reference.

@185264646
Copy link
Author

Can u share ur sbl1 and rpm firmware?

sbl1.zip
rpm.zip

I flash my android firmware.

Do you mean it's still crashing after you restored to android?

@CoiaPrant233
Copy link

Can u share ur sbl1 and rpm firmware?

sbl1.zip rpm.zip

I flash my android firmware.

Do you mean it's still crashing after you restored to android?

Yes, I boot 3 times. only one successfully boot

@CoiaPrant233
Copy link

CoiaPrant233 commented Jun 16, 2024

[    0.000000] cma: Found external_image__region@0, memory base 0x86000000, size 8 MiB, limit 0xffffffff
[    0.000000] cma: Found modem_adsp_region@0, memory base 0x86800000, size 85 MiB, limit 0xffffffff
[    0.000000] cma: Found pheripheral_region@0, memory base 0x8bd00000, size 6 MiB, limit 0xffffffff
[    0.000000] cma: Found venus_qseecom_region@0, memory base 0x00000000, size 6 MiB, limit 0x90000000
[    0.000000] cma: Found audio_region@0, memory base 0x00000000, size 3 MiB, limit 0xffffffff
[    0.000000] cma: CMA: reserved 8 MiB at 0x86000000 for external_image_mem //
[    0.000000] cma: CMA: reserved 85 MiB at 0x86800000 for modem_adsp_mem//
[    0.000000] cma: CMA: reserved 6 MiB at 0x8bd00000 for peripheral_mem
[    0.000000] cma: CMA: reserved 8 MiB at 0x8f800000 for venus_qseecom_mem
[    0.000000] cma: CMA: reserved 4 MiB at 0x9fc00000 for audio_mem
[    0.000000] cma: CMA: reserved 8 MiB at 0x9f400000 for default region

Android reserved memory: venus_qseecom_mem, audio_mem and default region
Mainline kernel reserved venus with different memory address. and unused gps, mba

@185264646
Copy link
Author

[    0.000000] cma: Found external_image__region@0, memory base 0x86000000, size 8 MiB, limit 0xffffffff
[    0.000000] cma: Found modem_adsp_region@0, memory base 0x86800000, size 85 MiB, limit 0xffffffff
[    0.000000] cma: Found pheripheral_region@0, memory base 0x8bd00000, size 6 MiB, limit 0xffffffff
[    0.000000] cma: Found venus_qseecom_region@0, memory base 0x00000000, size 6 MiB, limit 0x90000000
[    0.000000] cma: Found audio_region@0, memory base 0x00000000, size 3 MiB, limit 0xffffffff
[    0.000000] cma: CMA: reserved 8 MiB at 0x86000000 for external_image_mem //
[    0.000000] cma: CMA: reserved 85 MiB at 0x86800000 for modem_adsp_mem//
[    0.000000] cma: CMA: reserved 6 MiB at 0x8bd00000 for peripheral_mem
[    0.000000] cma: CMA: reserved 8 MiB at 0x8f800000 for venus_qseecom_mem
[    0.000000] cma: CMA: reserved 4 MiB at 0x9fc00000 for audio_mem
[    0.000000] cma: CMA: reserved 8 MiB at 0x9f400000 for default region

Android reserved memory: venus_qseecom_mem, audio_mem and default region Mainline kernel reserved venus with different memory address. and unused gps, mba

It shouldn't cause any issue. modem and venus image are relocable and only communicate with linux with some known documented and safe channels.

BTW, you may try disable all unnecessary sub-systems and try again(venus, modem etc..). i.e. write "none" to '/boot/lk2nd_rproc_mode'. msm8916-mainline/lk2nd#113

@CoiaPrant233
Copy link

Then I don't know the what cause NULL pointer. Are u trying disabled them?

@185264646
Copy link
Author

Then I don't know the what cause NULL pointer. Are u trying disabled them?

I've already tried. Actually i never enable modem as it consumes too much RAM. But anyway i don't think it's the reason. As i've said above, restoring rpm and sbl1 seems to work.

I suggest you trying disable all modules in the dts and only leave UART/CPU nodes on and see if it still crashes. We need to be sure that the things before linux are working as intended.

@CoiaPrant233
Copy link

u are right, flash ur sbl1 and rpm, kernel stable

but i dont know why I flashing my original sbl and rpm firmware its not working

@CoiaPrant233
Copy link

My stick run over 2 days. Its stable. I think its can merged

@185264646
Copy link
Author

185264646 commented Jun 24, 2024

My stick run over 2 days. Its stable. I think its can merged

Try to put some pressure on it (i.e. stress-ng -n 4. And let it run several days. At least for me, it still occasionally crashes without any logs. It might run out of battery but i'm not sure.

Anyway, this patchset needs a lot of improvement as i've said (merging dtsi and dts or supporting at least another model), removing #if 0 code, renaming the dts (as it seems some other models can also share this dts). Sorry I'm losing my interest on it. But i'm glad to see someone continue my work and send them upstream.

ALso i'm more than hesitated to see more users with different models sharing their experience with this dts. I'll consider continue to work on this with enough feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants