RG502Q-EA rebooting

Hello,

I have a zyxel router nr7101. Unfortunately, the RG502Q-EA modem built into it does not work properly. On the original firmware of the zyxel router, unfortunately, I couldn’t diagnose much, so I switched to oepenwrt to have picocom to handle AT commands. Generally, the modem is visible on the bus for 40 seconds, then it’s gone for 9 seconds, and then it’s back for 40 seconds. By measuring the individual connectors on the main board with a multimeter, I discovered the uart connector from the modem, I connected it with a converter and these are the logs from the modem:

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.SBL.4.1-00133
S - IMAGE_VARIANT_STRING=MAATANAZA
S - OEM_IMAGE_VERSION_STRING=SH-SW-S-ShannonP
S - Boot Interface: NAND
S - Secure Boot: Off
S - Boot Config @ 0x00786070 = 0x00000041
S - JTAG ID @ 0x00786130 = 0x200cf0e1
S - OEM ID @ 0x00786138 = 0x00000000
S - Serial Number @ 0x00786134 = 0x9e7bfe4f
S - OEM Config Row 0 @ 0x007841c8 = 0x0000000000000000
S - OEM Config Row 1 @ 0x007841d0 = 0x0000000000000000
S - Feature Config Row 0 @ 0x007841e0 = 0x0040200000000010
S - Feature Config Row 1 @ 0x007841e8 = 0x0800001010000000
B - 381 - PBL, Start
B - 3681 - bootable_media_detect_entry
B - 4889 - bootable_media_detect_success
B - 5158 - elf_loader_entry
B - 7753 - auth_hash_seg_entry
B - 8293 - auth_hash_seg_exit
B - 99786 - elf_segs_hash_verify_entry
B - 106695 - elf_segs_hash_verify_exit
B - 106945 - xbl_sec_auth_hash_seg_entry
B - 114660 - xbl_sec_auth_hash_seg_exit
B - 114661 - xbl_sec_segs_Hash_verify_entry
B - 115661 - xbl_sec_segs_Hash_verify_exit
B - 115691 - PBL, End
B - 3276 - PBL, Delta
B - 151737 - SBL1, Start (Qtimer timestamp = 139558)
B - 285754 - boot_config_data_table_init, Start
D - 138500 - boot_config_data_table_init, Delta - (28 Bytes)
B - 428311 - CDT version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:5
B - 434381 - PlatformInfo_CDTInit: Received CDT: Version 3, Platform 8, Subtype 5 v1.0, #KVPs 1
B - 457408 - pm_device_init, Start
B - 459116 - PM: Device Init # Reset counter: 0
B - 460641 - PM: PM 4=0x8000028000000081:0x0
B - 463295 - PM: HARD RESET by PS_HOLD
B - 506483 - PM_SET_VAL:Skip
B - 506513 - PM: Device Init # Reset counter: 0
B - 509624 - PM: Device Init # skip_pass3 flag: 0
B - 512156 - PM: Device Init # SPMI Transn: 2855
D - 59414 - pm_device_init, Delta
B - 520177 - pm_driver_init, Start
B - 525850 - PM: Driver Init # SPMI Transn: 170
D - 4422 - pm_driver_init, Delta
B - 531432 - sbl1_ddr_set_params, Start
B - 535580 - Pre_DDR_clock_init, Start
D - 61 - Pre_DDR_clock_init, Delta
D - 0 - sbl1_ddr_set_params, Delta
B - 546560 - boot_flash_init, Start
D - 24888 - boot_flash_init, Delta
B - 575382 - OEM_MISC Image Load, Start
D - 1189 - Auth Metadata
D - 701 - Segments hash check
D - 6375 - OEM_MISC Image Loaded, Delta - (7480 Bytes)
B - 587155 - xblconfig_init, Start
D - 30 - xblconfig_init, Delta
B - 593865 - sbl1_ddr_init, Start
D - 2897 - sbl1_ddr_init, Delta
B - 600392 - DSF version = 105.6, DSF SHRM version = 60.1
B - 605913 - Manufacturer ID = ff, Device Type = 7
B - 610701 - Rank 0 size = 512 MB, Rank 1 size = 0 MB
B - 616710 - Frequency = 1018 MHz
B - 619455 - Enter ddi entry
B - 621803 - Exit ddi entry
B - 631441 - clock_init, Start
D - 61 - clock_init, Delta
B - 631563 - [MF] quec_multi_fota_process entry
B - 635772 - [MF] paraments page size = 4096, page_per_block = 64
B - 668438 - [MF] SBL partable: misc, offset: 424
B - 668834 - [MF]Get multi fota flag: -1
B - 670695 - quec_multi_fota_process return:0
B - 676856 - APDP Image Load, Start
D - 2410 - Auth Metadata
D - 1006 - Segments hash check
D - 7747 - APDP Image Loaded, Delta - (7980 Bytes)
B - 690581 - Product:RG502Q-EA
B - 692441 - Manuf:Quectel
B - 696528 - QSEE Dev Config Image Load, Start
D - 3111 - Auth Metadata
D - 1220 - Segments hash check
D - 12475 - QSEE Dev Config Image Loaded, Delta - (36931 Bytes)
B - 711839 - QSEE Image Load, Start
D - 16592 - Auth Metadata
D - 10675 - Segments hash check
D - 93361 - QSEE Image Loaded, Delta - (886468 Bytes)
D - 976 - boot_pm_post_tz_device_init, Delta
B - 811666 - QHEE Image Load, Start
D - 2531 - Auth Metadata
D - 1342 - Segments hash check
D - 14701 - QHEE Image Loaded, Delta - (78968 Bytes)
B - 831613 - PM: PM Total Mem Allocated: 828
B - 1167143 - AOP Image Load, Start
D - 2531 - Auth Metadata
D - 2562 - Segments hash check
D - 17903 - AOP Image Loaded, Delta - (148860 Bytes)
B - 1187700 - ABL Image Load, Start
D - 2105 - Auth Metadata
D - 1068 - Segments hash check
D - 17507 - ABL Image Loaded, Delta - (170600 Bytes)
B - 1207525 - APPSBL Image Load, Start
D - 2135 - Auth Metadata
D - 6070 - Segments hash check
D - 90280 - APPSBL Image Loaded, Delta - (1186408 Bytes)
B - 1300032 - sbl1_efs_handle_cookies, Start
D - 0 - sbl1_efs_handle_cookies, Delta
B - 1308602 - SBL1, End
D - 1158909 - SBL1, Delta
S - Throughput, 7000 KB/s (2525679 Bytes, 320574 us)
S - DDR Frequency, 1017 MHz
S - Core 0 Frequency, 1497 MHz

UEFI Start [ 1393]

  • 0x08F701000 [ 1409] Sec.efi
    PROD Mode : On
    ASLR : On
    Timer Delta : +12 mS
    RAM Entry 0 : Base 0x0000000080000000 Size 0x0000000020000000
    Could not find the DBI Dump region .
    UEFI Ver : 5.0.200628.BOOT.UEFI.4.0-00190-SDX55LEZB-2
    Build Info : 32b Jun 28 2020 19:17:03
    Boot Device : NAND
    DEP Enabled
    PM3: 33, PM4: 42,
    UsbConfigPortsQueryConnectionChange: Failed to get UsbCGetPortState, falling back to UNKNOWN platform

Platform Init [ 1559] BDS
UEFI Ver : 5.0.200628.BOOT.UEFI.4.0-00190-SDX55LEZB-2
Platform : MTP
Subtype : 5
Chip Name : SDX55
Chip Ver : 2.0
Core 0 Freq: 1497 MHz

UEFI Total : 168 ms
POST Time [ 1561] OS Loader
Loader Build Info: Jul 29 2020 02:26:26
VB: RWDeviceState: Succeed using devinfo!
Total DDR Size: 0x0000000020000000
BootMode:0, BootReason:0
Fastboot=0, Recovery:0
GetVmData: No Vm data present! Status = (0x80000003)
VM Hyp calls not present
Booting Into Mission Mode
Loading Image Start : 1617 ms
Loading Image Done : 1622 ms
Total Image Read size : 4096 Bytes
Loading Image Start : 1622 ms
Loading Image Done : 2241 ms
Total Image Read size : 10428416 Bytes
No dtbo partition is found, Skip dtbo
VB: verification skipped for debug builds
GetVmData: No Vm data present! Status = (0x80000003)
Memory Base Address: 0x80000000
BootLinux: failed to get dtbo image
Best match DTB tags 357/05010008/0x00000005/20000/0/0/0/20021/(offset)0x849AD9F5/(size)0x00000000
Using pmic info 0x0/0x0/0x0/0x20021 for device 0x0/0x0/0x0/0x20021
Memory Base Address: 0x80000000
Failed to get Boot Device Base address, Buffer Too Small
Failed to get Boot Device: Buffer Too Small
Unable to get Panel Config, Not Found
Cmdline: noinitrd ro rootwait console=ttyMSM0,115200,n8 androidboot.hardware=qcom msm_rtb.filter=0x237 androidboot.console=ttyMSM0 lpm_levels.sleep_disabled=1 firmware_class.path=/lib/firmware/updates service_locator.enable=1 net.ifnames=0 rootfstype=ubif
RAM Partitions
Add Base: 0x0000000080000000 Available Length: 0x0000000020000000
Failed to get MinPasrSize, Status = Unsupported
Unable to get splash buffer info, Not Found
Update Device Tree total time: 15 ms

Shutting Down UEFI Boot Services: 2284 ms
BDS: LogFs sync skipped, No Media
App Log Flush : 53 ms
Exit BS [2340] UEFI End

Welcome to mdm 202007290146!

[FAILED] Failed to listen on Journal Socket (/dev/log).
See ‘systemctl status systemd-journald-dev-log.socket’ for details.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Created slice User and Session Slice.
[ OK ] Listening on udev Kernel Socket.
[FAILED] Failed to listen on Journal Socket.
See ‘systemctl status systemd-journald.socket’ for details.
Mounting Kernel Configuration File System…
[ OK ] Started QCMAP_Bootup service.
Starting Create Static Device Nodes in /dev…
Starting chgrp-diag Service…
[ OK ] Started qrtr-ns Service.
[ OK ] Started irsc-util Service.
Starting QCMAP_copybind service…
Starting Load/Save Random Seed…
[ OK ] Reached target Remote File Systems.
Starting IPA FW Service…
[ OK ] Listening on initctl Compatibility Named Pipe.
Starting Apply Kernel Variables…
[ OK ] Listening on udev Control Socket.
[ OK ] Created slice system-serial\x2dgetty.slice.
Mounting POSIX Message Queue File System…
Starting Mount firmware partition to /firmware mount point…
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Reached target Paths.
[ OK ] Created slice system-getty.slice.
[ OK ] Reached target Slices.
Mounting Kernel Debug File System…
[ OK ] Started Netmgrd Service.
[ OK ] Reached target Swap.
Mounting Temporary Directory (/tmp)…
Starting Port bridge Service…
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Started chgrp-diag Service.
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Apply Kernel Variables.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted Temporary Directory (/tmp).
[ OK ] Started Port bridge Service.
[ OK ] Reached target Local File Systems (Pre).
Mounting /var/volatile…
Starting udev Kernel Device Manager…
[ OK ] Mounted /var/volatile.
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories…
[ OK ] Started Mount firmware partition to /firmware mount point.
[ OK ] Started QCMAP_copybind service.
[ OK ] Started IPA FW Service.
Starting pcie Service…
[ OK ] Started Staring tftp server.
[FAILED] Failed to start pcie Service.
See ‘systemctl status pcie.service’ for details.
Starting usb Service…
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Reached target System Initialization.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Started IPACM Service.
Starting QCMAP connectionManager service…
[ OK ] Started usb Service.
Starting adbd Service…
[ OK ] Started adbd Service.
[ OK ] Created slice system-dnsmasq_service.slice.
Starting dnsmasq service…
[ OK ] Started dnsmasq service.
[ OK ] Started QCMAP connectionManager service.
[ OK ] Started emac service.
Starting Modem Init Service…
[ OK ] Started Modem Init Service.
Starting udev Coldplug all Devices…
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Lightning Fast Webserver With Light System Requirements…
[ OK ] Started set_core_pattern Service.
Starting diagrebootapp service…
[ OK ] Started Atfwd_daemon Service.
[ OK ] Started Setting the power config.
Starting time serviced Service…
[ OK ] Started ql-voice-server daemon Service.
[ OK ] Started IPACM Perf Service.
[ OK ] Started QUECTEL RGMII Manager Services.
Starting adpl service…
Starting System Logging Service…
Starting Qseecomd Service…
[ OK ] Started pcie-diag Service.
[ OK ] Started start quectel remotefs daemon.
[ OK ] Started Crypto modules installation service.
Starting Audio Init Service…
Starting leprop Service…
Starting Login Service…
Starting qti_ppp service…
Starting Qmuxbridge Service…
[ OK ] Started Charger Policy Service.
[ OK ] Started data-init service.
[ OK ] Started start quectel thermal.
[ OK ] Started GPS Location process launcher.
[ OK ] Started Embms kernel service.
Starting Thermal Engine Service…
[ OK ] Started reboot-daemon service.
Starting Bluetooth Power Service…
Starting qti service…
[ OK ] Started Setup avtp routing service.
[ OK ] Started start wlan services.
[ OK ] Started AQC IPA Offload.
[ OK ] Started QUECTEL NET Services.
[ OK ] Started Reset reboot cookie.
[ OK ] Started start quectel daemon.
Starting QTI Mobile Broadband Service…
[ OK ] Started fs-scrub-daemon Service.
[ OK ] Started qmi_ip_multiclient service.
[ OK ] Started adpl service.
[ OK ] Started System Logging Service.
[ OK ] Started Qseecomd Service.
[ OK ] Started leprop Service.
[ OK ] Started qti_ppp service.
[ OK ] Started Bluetooth Power Service.
[ OK ] Started qti service.
[ OK ] Started time serviced Service.
[FAILED] Failed to start Audio Init Service.
See ‘systemctl status init_audio.service’ for details.
20200729 01:49:28 quectel_sleep_atc.c:170 ql_qsclk_init INFO: [QSCLK] Start sync the sclk value

[FAILED] Failed to start Qmuxbridge Service.
See ‘systemctl status qmuxbridged.service’ for details.
[ OK ] Started Login Service.
[ OK ] Stopped Qmuxbridge Service.
Starting Qmuxbridge Service…
[ OK ] Stopped Audio Init Service.
Starting Audio Init Service…
[ OK ] Started Load audio dlkm service.
[ OK ] Started ql-voice-server daemon Service.
[ OK ] Started quectel-si3218x-daemon daemon Service.
[ OK ] Started ql-manager-server daemon Service.
[ OK ] Started sfs configuration Service.
[ OK ] Started Thermal Engine Service.
[ OK ] Started diagrebootapp service.
[ OK ] Started QTI Mobile Broadband Service.
[ OK ] Started Qmuxbridge Service.
[FAILED] Failed to start Audio Init Service.
See ‘systemctl status init_audio.service’ for details.
[ OK ] Started init csd server.
[ OK ] Stopped Audio Init Service.
Starting Audio Init Service…
[ OK ] Started Audio Init Service.
[ OK ] Started Lightning Fast Webserver With Light System Requirements.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Found device /dev/ttyMSM0.
[ OK ] Started Serial Getty on ttyMSM0.
[ OK ] Reached target Login Prompts.
[ OK ] Found device /dev/input/event0.
[ OK ] Started Modem Shutdown Service.
[ OK ] Found device /dev/diag.
[ OK ] Started IPACM DIAG Service.
[ OK ] Reached target Multi-User System.

mdm 0158 sdxprairie ttyMSM0

sdxprairie login: [ OK ] Stopped target Sound Card.
[ OK ] Stopped target Remote File Systems.
Stopping dnsmasq service…
[ OK ] Stopped target Multi-User System.
Stopping reboot-daemon service…
Stopping quectel-si3218x-daemon daemon Service…
Stopping start quectel remotefs daemon…
Stopping start quectel thermal…
[ OK ] Stopped target Login Prompts.
Stopping AQC IPA Offload…
Stopping System Logging Service…
Stopping IPACM Perf Service…
Stopping Qmuxbridge Service…
Stopping start wlan services…
Stopping IPACM DIAG Service…
Stopping start quectel daemon…
Stopping sfs configuration Service…
Stopping time serviced Service…
Stopping QUECTEL NET Services…
Stopping GPS Location process launcher…
Stopping init csd server…
Stopping Modem Shutdown Service…
Stopping QTI Mobile Broadband Service…
Stopping Crypto modules installation service…
Stopping Login Service…
Stopping Charger Policy Service…
Stopping adpl service…
Stopping ql-voice-server daemon Service…
Stopping qti service…
[ OK ] Removed slice system-getty.slice.
Stopping QUECTEL RGMII Manager Services…
Stopping Lightning Fast Webserver With Light System Requirements…
[ OK ] Stopped pcie-diag Service.
Stopping set_core_pattern Service…
Unmounting /cache…
Stopping Setting the power config…
Stopping Thermal Engine Service…
Stopping Serial Getty on ttyMSM0…
Stopping ql-manager-server daemon Service…
[ OK ] Started modem-shutdown Service.
Stopping qmi_ip_multiclient service…
Stopping fs-scrub-daemon Service…
Stopping Embms kernel service…
[ OK ] Stopped ql-voice-server daemon Service.
[ OK ] Stopped IPACM Perf Service.
[ OK ] Stopped QUECTEL RGMII Manager Services.
[ OK ] Stopped start quectel remotefs daemon.
[ OK ] Stopped Login Service.
[ OK ] Stopped Charger Policy Service.
[ OK ] Stopped start quectel thermal.
[ OK ] Stopped GPS Location process launcher.
[ OK ] Stopped reboot-daemon service.
[ OK ] Stopped QUECTEL NET Services.
[ OK ] Stopped start quectel daemon.
[ OK ] Stopped QTI Mobile Broadband Service.
[ OK ] Stopped qmi_ip_multiclient service.
[ OK ] Stopped adpl service.
[ OK ] Stopped qti service.
[ OK ] Stopped time serviced Service.
[ OK ] Stopped Qmuxbridge Service.
[ OK ] Stopped ql-manager-server daemon Service.
[ OK ] Stopped Thermal Engine Service.
[ OK ] Stopped init csd server.
[ OK ] Stopped Serial Getty on ttyMSM0.
[ OK ] Stopped Modem Shutdown Service.
[ OK ] Stopped IPACM DIAG Service.
[ OK ] Stopped quectel-si3218x-daemon daemon Service.
[ OK ] Stopped AQC IPA Offload.
[ OK ] Stopped System Logging Service.
[ OK ] Stopped start wlan services.
[ OK ] Stopped sfs configuration Service.
[ OK ] Stopped Crypto modules installation service.
[ OK ] Unmounted /cache.
[ OK ] Stopped Setting the power config.
[ OK ] Stopped Embms kernel service.
[ OK ] Stopped Lightning Fast Webserver With Light System Requirements.
[ OK ] Stopped fs-scrub-daemon Service.
[ OK ] Stopped set_core_pattern Service.
[ OK ] Stopped dnsmasq service.
[ OK ] Removed slice system-dnsmasq_service.slice.
[ OK ] Stopped target Timers.
[ OK ] Stopped Daily Cleanup of Temporary Directories.
Stopping Qseecomd Service…
Stopping ql-voice-server daemon Service…
Stopping diagrebootapp service…
[ OK ] Removed slice system-serial\x2dgetty.slice.
Stopping Audio Init Service…
[ OK ] Stopped ql-voice-server daemon Service.
[ OK ] Stopped diagrebootapp service.
[ OK ] Stopped Qseecomd Service.
[ OK ] Stopped Audio Init Service.
Stopping leprop Service…
Stopping Load audio dlkm service…
Stopping Atfwd_daemon Service…
[ OK ] Stopped Atfwd_daemon Service.
[ OK ] Stopped leprop Service.
[ OK ] Stopped Load audio dlkm service.
Stopping Bluetooth Power Service…
[ OK ] Stopped Bluetooth Power Service.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Paths.
[ OK ] Stopped Forward Password Requests to Wall Directory Watch.
[ OK ] Stopped Dispatch Password Requests to Console Directory Watch.
[ OK ] Stopped target Slices.
[ OK ] Removed slice User and Session Slice.
[ OK ] Stopped target Sockets.
Stopping QCMAP connectionManager service…
[ OK ] Stopped QCMAP connectionManager service.
Stopping D-Bus System Message Bus…
Unmounting /systemrw…
[ OK ] Stopped D-Bus System Message Bus.
[ OK ] Unmounted /systemrw.
[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Stopped target System Initialization.
Unmounting /persist…
[ OK ] Stopped Create Volatile Files and Directories.
Stopping Load/Save Random Seed…
[ OK ] Stopped target Local File Systems.
Unmounting /var/volatile…
Unmounting Temporary Directory (/tmp)…
Unmounting /usrdata…
Unmounting /firmware…
Unmounting /etc/machine-id…
Unmounting /data…
[ OK ] Stopped Apply Kernel Variables.
[ OK ] Unmounted /persist.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Unmounted /var/volatile.
[ OK ] Unmounted Temporary Directory (/tmp).
[ OK ] Unmounted /usrdata.
[ OK ] Unmounted /firmware.
[FAILED] Failed unmounting /etc/machine-id.
[ OK ] Unmounted /data.
Unmounting /etc…
[ OK ] Stopped target Swap.
Deactivating swap /dev/zram0…
[ OK ] Unmounted /etc.
[ OK ] Stopped target Local File Systems (Pre).
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Reached target Shutdown.
[ OK ] Deactivated swap /dev/zram0.
[ OK ] Reached target Unmount All Filesystems.
[ OK ] Reached target Final Step.
Starting Reboot…

Any idea what it could be and how to fix it?

Hi,smereka
These log messages are not enough to determine the problem,you must enter the debug mode to get more debug message.

This behaviour with modems in general usually means the power supply is inadequate.

Times when the modem needs to activate its transmit circuits really test the power supply.

How enter to debug mode in this modem?