Issue on 5G Connection

Hello, OpenWRT noob here. The whole OS has been so freaking cool so far. Makes me never want to touch a Cisco Router ever again LOL. I was looking for some guidance on configuration.

Problem: I can't seem to get a 5G interface to work. Any help is appreciated. I tried to put as much info as possible in this.

Hardware:
1.) Raspberry Pi 4B+
2.) Sixfab 5G Modem (Has a Quectel RM502Q-AE M.2)
3.) T-Mobile SIM

Version:
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='23.05.5'
DISTRIB_REVISION='r24106-10cc5fcd00'
DISTRIB_TARGET='bcm27xx/bcm2711'
DISTRIB_ARCH='aarch64_cortex-a72'
DISTRIB_DESCRIPTION='OpenWrt 23.05.5 r24106-10cc5fcd00'
DISTRIB_TAINTS=''

AT Responses:

AT+QENG
ERROR

AT+QNWINFO
+QNWINFO: No Service

OK

AT+C5GREG
OK

AT+COPS
OK

root@OpenWrt:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 5.15.167 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24106-10cc5fcd00) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Mon Sep 23 12:34:46 2024
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.5
[    0.000000] Reserved memory: created CMA memory pool at 0x000000002ac00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000]   node   0: [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000001ffffffff]
[    0.000000] On node 0, zone DMA32: 19456 pages in unavailable ranges
[    0.000000] On node 0, zone Normal: 16384 pages in unavailable ranges
[    0.000000] percpu: Embedded 18 pages/cpu s34904 r8192 d30632 u73728
[    0.000000] pcpu-alloc: s34904 r8192 d30632 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2028848
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=0 bcm2708_fb.fbheight=0 bcm2708_fb.fbswap=1 smsc95xx.macaddr=D8:3A:DD:E8:F7:DC vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=squashfs,ext4 rootwait
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x0000000037400000-0x000000003b400000] (64MB)
[    0.000000] Memory: 7941624K/8245248K available (8256K kernel code, 912K rwdata, 1296K rodata, 448K init, 554K bss, 238088K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: 0xffffffc0080100d0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000001] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000225] Console: colour dummy device 80x25
[    0.000528] printk: console [tty1] enabled
[    0.000575] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[    0.000600] pid_max: default: 32768 minimum: 301
[    0.000934] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.001088] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.001739] cgroup: Disabling memory control group subsystem
[    0.002822] rcu: Hierarchical SRCU implementation.
[    0.003533] smp: Bringing up secondary CPUs ...
[    0.003959] Detected PIPT I-cache on CPU1
[    0.004026] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.004518] Detected PIPT I-cache on CPU2
[    0.004561] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.005011] Detected PIPT I-cache on CPU3
[    0.005053] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.005127] smp: Brought up 1 node, 4 CPUs
[    0.005185] SMP: Total of 4 processors activated.
[    0.005198] CPU features: detected: 32-bit EL0 Support
[    0.005211] CPU features: detected: CRC32 instructions
[    0.005294] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.005313] CPU: All CPU(s) started at EL2
[    0.005343] alternatives: patching kernel code
[    0.014228] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014285] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.016057] pinctrl core: initialized pinctrl subsystem
[    0.017120] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.018782] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.019022] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.019409] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.019844] thermal_sys: Registered thermal governor 'step_wise'
[    0.020027] cpuidle: using governor ladder
[    0.020065] cpuidle: using governor menu
[    0.020258] ASID allocator initialised with 65536 entries
[    0.020346] Serial: AMBA PL011 UART driver
[    0.024506] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.039951] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-10-17T15:39:16, variant start
[    0.049954] raspberrypi-firmware soc:firmware: Firmware hash is 30f0c5e4d076da3ab4f341d88e7d505760b93ad7
[    0.082085] cryptd: max_cpu_qlen set to 1000
[    0.083788] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.085943] SCSI subsystem initialized
[    0.086094] usbcore: registered new interface driver usbfs
[    0.086136] usbcore: registered new interface driver hub
[    0.086177] usbcore: registered new device driver usb
[    0.086309] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.087579] clocksource: Switched to clocksource arch_sys_counter
[    0.090925] NET: Registered PF_INET protocol family
[    0.091896] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.097015] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.097131] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.097164] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.097648] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.098805] TCP: Hash tables configured (established 65536 bind 65536)
[    0.099048] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.099184] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.099502] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.099550] PCI: CLS 0 bytes, default 64
[    0.103024] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[    0.107363] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.175141] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.178493] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.178539] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.178585] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    0.178626] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x01ffffffff -> 0x0400000000
[    0.239661] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    0.239868] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.239890] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.239910] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    0.239963] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.240046] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.243550] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.243730] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    0.243813] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.243994] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.247414] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.247456] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.247480] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    0.247544] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.247583] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.247766] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    0.247891] pcieport 0000:00:00.0: PME: Signaling with IRQ 42
[    0.248145] pcieport 0000:00:00.0: AER: enabled with IRQ 42
[    0.248696] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver.
[    0.248718] bcm2708_fb: probe of soc:fb failed with error -2
[    0.254717] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.255479] iproc-rng200 fe104000.rng: hwrng registered
[    0.255597] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.256080] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    0.263531] brd: module loaded
[    0.266801] loop: module loaded
[    0.267463] Loading iSCSI transport class v2.0-870.
[    0.269399] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    0.427630] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    0.475911] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.475949] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    0.476481] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0003800000000890
[    0.477106] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.477130] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    0.477154] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    0.477362] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    0.477388] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.477407] usb usb1: Product: xHCI Host Controller
[    0.477420] usb usb1: Manufacturer: Linux 5.15.167 xhci-hcd
[    0.477434] usb usb1: SerialNumber: 0000:01:00.0
[    0.477794] hub 1-0:1.0: USB hub found
[    0.477842] hub 1-0:1.0: 1 port detected
[    0.478313] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    0.478340] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.478358] usb usb2: Product: xHCI Host Controller
[    0.478372] usb usb2: Manufacturer: Linux 5.15.167 xhci-hcd
[    0.478386] usb usb2: SerialNumber: 0000:01:00.0
[    0.478692] hub 2-0:1.0: USB hub found
[    0.478734] hub 2-0:1.0: 4 ports detected
[    0.479540] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.479636] dwc_otg: FIQ enabled
[    0.479642] dwc_otg: NAK holdoff enabled
[    0.479647] dwc_otg: FIQ split-transaction FSM enabled
[    0.479654] Module dwc_common_port init
[    0.479945] usbcore: registered new interface driver uas
[    0.480026] usbcore: registered new interface driver usb-storage
[    0.480106] mousedev: PS/2 mouse device common for all mice
[    0.480616] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.482380] sdhci: Secure Digital Host Controller Interface driver
[    0.482399] sdhci: Copyright(c) Pierre Ossman
[    0.482783] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    0.483182] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.491174] NET: Registered PF_INET6 protocol family
[    0.491625] Segment Routing with IPv6
[    0.491641] In-situ OAM (IOAM) with IPv6
[    0.491671] NET: Registered PF_PACKET protocol family
[    0.491689] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.491738] 8021q: 802.1Q VLAN Support v1.8
[    0.492062] Key type .fscrypt registered
[    0.492068] Key type fscrypt-provisioning registered
[    0.494443] uart-pl011 fe201000.serial: there is not valid maps for state default
[    0.494513] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    0.494582] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 17, base_baud = 0) is a PL011 rev2
[    0.767568] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    0.768529] printk: console [ttyAMA0] enabled
[    0.960141] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    0.970534] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    0.973490] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    0.979091] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    0.982964] usb 1-1: Product: USB2.0 Hub
[    0.988441] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    0.999019] hub 1-1:1.0: USB hub found
[    1.038905] of_cfs_init
[    1.045593] hub 1-1:1.0: 4 ports detected
[    1.051493] of_cfs_init: OK
[    1.108126] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[    1.108989] clk: Disabling unused clocks
[    1.116220] mmc1: new high speed SDIO card at address 0001
[    1.143514] usb 2-1: New USB device found, idVendor=2c7c, idProduct=0800, bcdDevice= 4.14
[    1.678293] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.678298] usb 2-1: Product: RM502Q-AE
[    1.689252] usb 2-1: Manufacturer: Quectel
[    1.689255] usb 2-1: SerialNumber: 2e13b9c2
[    1.704320] usb 2-1: Enable of device-initiated U1 failed.
[    1.710623] usb 2-1: Enable of device-initiated U2 failed.
[    1.729405] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    1.736614] Waiting for root device /dev/mmcblk0p2...
[    1.837625] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.844556] mmcblk0: mmc0:aaaa SK32G 29.7 GiB 
[    1.849818]  mmcblk0: p1 p2
[    1.852717] mmcblk0: mmc0:aaaa SK32G 29.7 GiB (quirks 0x00004000)
[    1.894107] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
[    1.904272] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.911361] Freeing unused kernel memory: 448K
[    1.915920] Run /sbin/init as init process
[    1.920020]   with arguments:
[    1.920022]     /sbin/init
[    1.920024]   with environment:
[    1.920026]     HOME=/
[    1.920027]     TERM=linux
[    1.966940] init: Console is alive
[    1.970554] init: - watchdog -
[    2.096757] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.152649] uhci_hcd: USB Universal Host Controller Interface driver
[    2.161065] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.175659] init: - preinit -
[    2.244086] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    2.252565] bcmgenet fd580000.ethernet eth0: Link is Down
[    2.415265] uart-pl011 fe201000.serial: no DMA platform data
[    4.570322] mount_root: mounting /dev/root
[    4.587542] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: disabled.
[    4.608350] insmod: module is already loaded - fat
[    4.614510] insmod: module is already loaded - vfat
[    4.634117] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    4.644785] urandom-seed: Seeding with /etc/urandom.seed
[    4.680377] procd: - early -
[    4.683351] procd: - watchdog -
[    5.216406] procd: - watchdog -
[    5.220446] procd: - ubus -
[    5.274326] procd: - init -
[    5.364376] kmodloader: loading kernel modules from /etc/modules.d/*
[    5.383840] hid: raw HID events driver (C) Jiri Kosina
[    5.389758] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    5.412824] usbcore: registered new interface driver cdc_wdm
[    5.418979] Loading modules backported from Linux version v6.1.110-0-g5f55cad62cc9d
[    5.426644] Backport generated by backports.git v6.1.110-1-0-g965f73fc
[    5.434428] usbcore: registered new interface driver lan78xx
[    5.445073] usbcore: registered new interface driver usbhid
[    5.450690] usbhid: USB HID core driver
[    5.455765] usbcore: registered new interface driver usbserial_generic
[    5.462363] usbserial: USB Serial support registered for generic
[    5.489844] PPP generic driver version 2.4.2
[    5.494582] NET: Registered PF_PPPOX protocol family
[    5.501702] qmi_wwan 2-1:1.4: cdc-wdm0: USB WDM device
[    5.507924] qmi_wwan 2-1:1.4 wwan0: register 'qmi_wwan' at usb-0000:01:00.0-1, WWAN/QMI device, 7e:d0:84:94:1e:e7
[    5.518943] usb 2-1: Enable of device-initiated U1 failed.
[    5.525294] usb 2-1: Enable of device-initiated U2 failed.
[    5.531055] usbcore: registered new interface driver qmi_wwan
[    5.601444] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.610483] usbcore: registered new interface driver brcmfmac
[    5.616395] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2
[    5.628077] brcmfmac mmc1:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin
[    5.639975] usbcore: registered new interface driver option
[    5.645590] usbserial: USB Serial support registered for GSM modem (1-port)
[    5.652738] option 2-1:1.0: GSM modem (1-port) converter detected
[    5.658988] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[    5.665901] option 2-1:1.1: GSM modem (1-port) converter detected
[    5.672169] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[    5.679087] option 2-1:1.2: GSM modem (1-port) converter detected
[    5.685316] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[    5.692257] option 2-1:1.3: GSM modem (1-port) converter detected
[    5.698498] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
[    5.706415] kmodloader: done loading kernel modules from /etc/modules.d/*
[    6.440489] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jul 29 2022 02:15:20 version 7.45.250 (70e9766 CY) FWID 01-e53e306b
[    6.981324] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    6.990319] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    6.998737] br-lan: port 1(eth0) entered blocking state
[    7.003966] br-lan: port 1(eth0) entered disabled state
[    7.009348] device eth0 entered promiscuous mode
[    7.014616] br-lan: port 1(eth0) entered blocking state
[    7.019865] br-lan: port 1(eth0) entered forwarding state
[    7.255739] brcmfmac mmc1:0001:1 phy0-ap0: renamed from wlan0
[    7.350928] br-lan: port 2(phy0-ap0) entered blocking state
[    7.356519] br-lan: port 2(phy0-ap0) entered disabled state
[    7.362291] device phy0-ap0 entered promiscuous mode
[    7.379706] brcmfmac mmc1:0001:1 phy0-sta0: renamed from phy0-ap0 (while UP)
[    7.418022] device phy0-sta0 left promiscuous mode
[    7.422857] br-lan: port 2(phy0-sta0) entered disabled state
[    9.799395] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-sta0: link becomes ready
[  493.229586] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 1455.867611] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 2418.708441] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 3381.124085] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 4344.451394] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 5308.048842] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 6270.878080] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 7232.828301] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 8194.410017] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[10118.806243] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[12043.463565] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[13007.107164] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[13968.891897] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[14932.095268] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[15894.375376] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[16857.288321] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[17818.903560] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[18780.731530] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[19743.922985] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[20705.882082] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[21669.440117] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[22632.039597] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[23595.506086] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[24557.414834] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[25520.899012] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[26483.331949] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[27445.975537] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[28408.174798] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[29370.368834] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[30333.951811] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[31296.469216] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[32259.092278] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[33221.214224] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[34184.809088] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[35147.218976] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[36111.141827] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[37073.922850] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[38036.800396] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[38999.116572] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[39961.750353] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[40924.996200] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[41887.714619] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[42850.820057] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[43813.274211] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[44776.926095] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[45740.718006] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[46704.113448] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[47667.136842] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[48629.271846] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[49592.378342] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[50554.355348] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[51517.615391] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[51519.230291] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[52483.261071] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown 
[277743.127155] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[277743.135477] br-lan: port 1(eth0) entered blocking state
[277743.140814] br-lan: port 1(eth0) entered forwarding state
[278298.080220] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[279261.303551] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8

Show the output of cat /sys/kernel/debug/usb/devices
Please format it properly.

root@OpenWrt:~# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.15
S:  Manufacturer=Linux 5.15.167 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 4
D:  Ver= 2.10 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2109 ProdID=3431 Rev= 4.21
S:  Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 4
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev= 5.15
S:  Manufacturer=Linux 5.15.167 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=5000 MxCh= 0
D:  Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=2c7c ProdID=0800 Rev= 4.14
S:  Manufacturer=Quectel
S:  Product=RM502Q-AE
S:  SerialNumber=2e13b9c2
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=896mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option
E:  Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=83(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=85(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=87(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E:  Ad=88(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
E:  Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=0f(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

So at least it's seeing the Quectel Modem. I'm wondering if there is just a config change i need to do for this. I have it in QMI mode now, so maybe something to adhere to that?

The option serial driver recognized the card and attached serial ports to it, but the QMI driver did not report anything. This could be because the vendor:product ID of the particular modem is not compiled into the driver.

Follow https://openwrt.org/docs/guide-user/network/wan/wwan/ltedongle

See also Set value of sixfab HAT's gpio pin from my raspberry pi 5 + openwrt

Nice, i followed the first document prior to this. Wasn't able to get it to work, but the second forum looks promising. I will run though this later today and report back. Thank you!

I idea which GPIO to change the value of? I don't have the 525 gpio like that forum post.

root@OpenWrt:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-57, parent: platform/fe200000.gpio, pinctrl-bcm2711:
 gpio-0   (ID_SDA              )
 gpio-1   (ID_SCL              )
 gpio-2   (SDA1                )
 gpio-3   (SCL1                )
 gpio-4   (GPIO_GCLK           )
 gpio-5   (GPIO5               )
 gpio-6   (GPIO6               )
 gpio-7   (SPI_CE1_N           )
 gpio-8   (SPI_CE0_N           )
 gpio-9   (SPI_MISO            )
 gpio-10  (SPI_MOSI            )
 gpio-11  (SPI_SCLK            )
 gpio-12  (GPIO12              )
 gpio-13  (GPIO13              )
 gpio-14  (TXD1                )
 gpio-15  (RXD1                )
 gpio-16  (GPIO16              )
 gpio-17  (GPIO17              )
 gpio-18  (GPIO18              )
 gpio-19  (GPIO19              )
 gpio-20  (GPIO20              )
 gpio-21  (GPIO21              )
 gpio-22  (GPIO22              )
 gpio-23  (GPIO23              )
 gpio-24  (GPIO24              )
 gpio-25  (GPIO25              )
 gpio-26  (GPIO26              )
 gpio-27  (GPIO27              )
 gpio-28  (RGMII_MDIO          )
 gpio-29  (RGMIO_MDC           )
 gpio-30  (CTS0                )
 gpio-31  (RTS0                )
 gpio-32  (TXD0                )
 gpio-33  (RXD0                )
 gpio-34  (SD1_CLK             )
 gpio-35  (SD1_CMD             )
 gpio-36  (SD1_DATA0           )
 gpio-37  (SD1_DATA1           )
 gpio-38  (SD1_DATA2           )
 gpio-39  (SD1_DATA3           )
 gpio-40  (PWM0_MISO           )
 gpio-41  (PWM1_MOSI           )
 gpio-42  (STATUS_LED_G_CLK    |led0                ) out lo 
 gpio-43  (SPIFLASH_CE_N       )
 gpio-44  (SDA0                )
 gpio-45  (SCL0                )
 gpio-46  (RGMII_RXCLK         )
 gpio-47  (RGMII_RXCTL         )
 gpio-48  (RGMII_RXD0          )
 gpio-49  (RGMII_RXD1          )
 gpio-50  (RGMII_RXD2          )
 gpio-51  (RGMII_RXD3          )
 gpio-52  (RGMII_TXCLK         )
 gpio-53  (RGMII_TXCTL         )
 gpio-54  (RGMII_TXD0          )
 gpio-55  (RGMII_TXD1          )
 gpio-56  (RGMII_TXD2          )
 gpio-57  (RGMII_TXD3          )

gpiochip1: GPIOs 504-511, parent: platform/soc:firmware:gpio, raspberrypi-exp-gpio, can sleep:
 gpio-504 (BT_ON               )
 gpio-505 (WL_ON               )
 gpio-506 (PWR_LED_OFF         |led1                ) out lo ACTIVE LOW
 gpio-507 (GLOBAL_RESET        )
 gpio-508 (VDD_SD_IO_SEL       |vdd-sd-io           ) out hi 
 gpio-509 (CAM_GPIO            |cam1_regulator      ) out lo 
 gpio-510 (SD_PWR_ON           |sd_vcc_reg          ) out hi 
 gpio-511 (SD_OC_N             )

i did some more research on an attached article and it said i needed to check my base gpio. I ran this command:

root@OpenWrt:~# cat /sys/class/gpio/gpiochip*/base | head -n1
0

So if i'm reading this right my base is zero, so the gpio i need to change the value of is 13 because the base gpio to change the sim from a nano to a embedded sim.

Well upon looking at the value of the gpio, it says it's not a directory. I'm thinking there might be a different gpio i need to look at but i'm not 100% sure.

root@OpenWrt:~# cat /sys/class/gpio/gpio525/value
cat: can't open '/sys/class/gpio/gpio525/value': No such file or directory

You should try using 13 instead of 525 (512+13) since your base is 0.
I suggest checking AT+CPIN? before and after GPIO toggle.

I'm still running into the error i mentioned before. I'm getting kickback saying there isn't a directory. Should i create it?

AT+CPIN?
+CPIN: READY

OK

root@OpenWrt:~# echo 1 > /sys/class/gpio/gpio13/value
-ash: can't create /sys/class/gpio/gpio13/value: nonexistent directory

It looks like the SIM card is accessible, at least one of them.
You can send AT+CIMI command that "requests the International Mobile Subscriber Identity (IMSI) which is intended to permit the TE to identify the individual (U)SIM card".

For GPIO manipulations you initially need all three commands shown in the thread I mentioned at the beginning, Set value of sixfab HAT's gpio pin from my raspberry pi 5 + openwrt - #6 by AndrewZ

Once correct SIM is selected, share results of the following commands:

AT+COPS?
AT+CEREG?
AT+CGDCONT?
AT+CGPADDR

Ok so i went into that directory

root@OpenWrt:~# vi /etc/rc.local

And then put these in there. Changing everything from 525 to 13.

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.


echo 13 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio13/direction
echo 1 > /sys/class/gpio/gpio13/value
exit 0

After running that, the USBs all seemed to disconnect, so i can't open Minicom to run the 4 AT commands. I assume I did something stupid hahaha :joy:

root@OpenWrt:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 5.15.167 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24106-10cc5fcd00) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Mon Sep 23 12:34:46 2024
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.5
[    0.000000] Reserved memory: created CMA memory pool at 0x000000002ac00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000]   node   0: [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000001ffffffff]
[    0.000000] On node 0, zone DMA32: 19456 pages in unavailable ranges
[    0.000000] On node 0, zone Normal: 16384 pages in unavailable ranges
[    0.000000] percpu: Embedded 18 pages/cpu s34904 r8192 d30632 u73728
[    0.000000] pcpu-alloc: s34904 r8192 d30632 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2028848
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=0 bcm2708_fb.fbheight=0 bcm2708_fb.fbswap=1 smsc95xx.macaddr=D8:3A:DD:E8:F7:DC vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=squashfs,ext4 rootwait
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x0000000037400000-0x000000003b400000] (64MB)
[    0.000000] Memory: 7941624K/8245248K available (8256K kernel code, 912K rwdata, 1296K rodata, 448K init, 554K bss, 238088K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: 0xffffffc0080100d0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000001] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000232] Console: colour dummy device 80x25
[    0.000533] printk: console [tty1] enabled
[    0.000581] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[    0.000606] pid_max: default: 32768 minimum: 301
[    0.000939] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.001097] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.001743] cgroup: Disabling memory control group subsystem
[    0.002827] rcu: Hierarchical SRCU implementation.
[    0.003540] smp: Bringing up secondary CPUs ...
[    0.003970] Detected PIPT I-cache on CPU1
[    0.004036] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.004536] Detected PIPT I-cache on CPU2
[    0.004578] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.005028] Detected PIPT I-cache on CPU3
[    0.005070] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.005145] smp: Brought up 1 node, 4 CPUs
[    0.005203] SMP: Total of 4 processors activated.
[    0.005216] CPU features: detected: 32-bit EL0 Support
[    0.005229] CPU features: detected: CRC32 instructions
[    0.005306] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.005324] CPU: All CPU(s) started at EL2
[    0.005355] alternatives: patching kernel code
[    0.014241] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014300] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.016068] pinctrl core: initialized pinctrl subsystem
[    0.017135] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.018787] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.019028] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.019417] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.019855] thermal_sys: Registered thermal governor 'step_wise'
[    0.020036] cpuidle: using governor ladder
[    0.020073] cpuidle: using governor menu
[    0.020264] ASID allocator initialised with 65536 entries
[    0.020352] Serial: AMBA PL011 UART driver
[    0.024499] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.039952] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-10-17T15:39:16, variant start
[    0.049956] raspberrypi-firmware soc:firmware: Firmware hash is 30f0c5e4d076da3ab4f341d88e7d505760b93ad7
[    0.082113] cryptd: max_cpu_qlen set to 1000
[    0.083840] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.085981] SCSI subsystem initialized
[    0.086130] usbcore: registered new interface driver usbfs
[    0.086172] usbcore: registered new interface driver hub
[    0.086211] usbcore: registered new device driver usb
[    0.086343] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.087606] clocksource: Switched to clocksource arch_sys_counter
[    0.090937] NET: Registered PF_INET protocol family
[    0.091907] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.097023] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.097138] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.097171] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.097659] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.098837] TCP: Hash tables configured (established 65536 bind 65536)
[    0.099092] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.099233] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.099553] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.099600] PCI: CLS 0 bytes, default 64
[    0.103069] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[    0.107378] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.173258] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.176537] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.176577] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.176624] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    0.176664] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x01ffffffff -> 0x0400000000
[    0.259681] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    0.259863] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.259883] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.259902] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    0.259952] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.260036] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.263512] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.263694] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    0.263773] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.263955] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.267397] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.267440] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.267464] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    0.267527] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.267543] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.267740] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    0.267870] pcieport 0000:00:00.0: PME: Signaling with IRQ 42
[    0.268157] pcieport 0000:00:00.0: AER: enabled with IRQ 42
[    0.268742] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver.
[    0.268764] bcm2708_fb: probe of soc:fb failed with error -2
[    0.274725] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.275490] iproc-rng200 fe104000.rng: hwrng registered
[    0.275607] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.276063] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    0.283461] brd: module loaded
[    0.286717] loop: module loaded
[    0.287381] Loading iSCSI transport class v2.0-870.
[    0.289263] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    0.467658] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    0.515853] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.515892] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    0.516435] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0003800000000890
[    0.517082] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.517107] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    0.517130] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    0.517348] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    0.517374] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.517392] usb usb1: Product: xHCI Host Controller
[    0.517406] usb usb1: Manufacturer: Linux 5.15.167 xhci-hcd
[    0.517419] usb usb1: SerialNumber: 0000:01:00.0
[    0.517775] hub 1-0:1.0: USB hub found
[    0.517820] hub 1-0:1.0: 1 port detected
[    0.518268] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    0.518295] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.518314] usb usb2: Product: xHCI Host Controller
[    0.518329] usb usb2: Manufacturer: Linux 5.15.167 xhci-hcd
[    0.518343] usb usb2: SerialNumber: 0000:01:00.0
[    0.518643] hub 2-0:1.0: USB hub found
[    0.518691] hub 2-0:1.0: 4 ports detected
[    0.519494] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.519588] dwc_otg: FIQ enabled
[    0.519593] dwc_otg: NAK holdoff enabled
[    0.519598] dwc_otg: FIQ split-transaction FSM enabled
[    0.519605] Module dwc_common_port init
[    0.519885] usbcore: registered new interface driver uas
[    0.519960] usbcore: registered new interface driver usb-storage
[    0.520034] mousedev: PS/2 mouse device common for all mice
[    0.520578] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.522294] sdhci: Secure Digital Host Controller Interface driver
[    0.522315] sdhci: Copyright(c) Pierre Ossman
[    0.522715] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    0.523112] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.531120] NET: Registered PF_INET6 protocol family
[    0.531565] Segment Routing with IPv6
[    0.531580] In-situ OAM (IOAM) with IPv6
[    0.531609] NET: Registered PF_PACKET protocol family
[    0.531630] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.531680] 8021q: 802.1Q VLAN Support v1.8
[    0.531992] Key type .fscrypt registered
[    0.531998] Key type fscrypt-provisioning registered
[    0.534404] uart-pl011 fe201000.serial: there is not valid maps for state default
[    0.534477] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    0.534546] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 17, base_baud = 0) is a PL011 rev2
[    0.807631] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    0.808479] printk: console [ttyAMA0] enabled
[    1.000151] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.010412] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.013409] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.019014] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.022884] usb 1-1: Product: USB2.0 Hub
[    1.028362] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.038962] hub 1-1:1.0: USB hub found
[    1.075738] of_cfs_init
[    1.085376] hub 1-1:1.0: 4 ports detected
[    1.091517] of_cfs_init: OK
[    1.163949] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[    1.168170] clk: Disabling unused clocks
[    1.274038] usb 2-1: New USB device found, idVendor=2c7c, idProduct=0800, bcdDevice= 4.14
[    1.341377] mmc1: new high speed SDIO card at address 0001
[    1.344260] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.728345] usb 2-1: Product: RM502Q-AE
[    1.728348] usb 2-1: Manufacturer: Quectel
[    1.728350] usb 2-1: SerialNumber: 2e13b9c2
[    1.755244] usb 2-1: Enable of device-initiated U1 failed.
[    1.761626] usb 2-1: Enable of device-initiated U2 failed.
[    1.776806] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    1.784051] Waiting for root device /dev/mmcblk0p2...
[    1.889808] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.896744] mmcblk0: mmc0:aaaa SK32G 29.7 GiB 
[    1.901996]  mmcblk0: p1 p2
[    1.904888] mmcblk0: mmc0:aaaa SK32G 29.7 GiB (quirks 0x00004000)
[    1.944312] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
[    1.954482] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.961566] Freeing unused kernel memory: 448K
[    1.966121] Run /sbin/init as init process
[    1.970221]   with arguments:
[    1.970223]     /sbin/init
[    1.970225]   with environment:
[    1.970226]     HOME=/
[    1.970228]     TERM=linux
[    2.015552] init: Console is alive
[    2.019148] init: - watchdog -
[    2.144942] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.192249] uhci_hcd: USB Universal Host Controller Interface driver
[    2.200198] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.214200] init: - preinit -
[    2.281964] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    2.290457] bcmgenet fd580000.ethernet eth0: Link is Down
[    2.405512] uart-pl011 fe201000.serial: no DMA platform data
[    4.560557] mount_root: mounting /dev/root
[    4.579799] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: disabled.
[    4.600070] insmod: module is already loaded - fat
[    4.606257] insmod: module is already loaded - vfat
[    4.623195] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    4.633871] urandom-seed: Seeding with /etc/urandom.seed
[    4.670534] procd: - early -
[    4.673490] procd: - watchdog -
[    5.204185] procd: - watchdog -
[    5.208183] procd: - ubus -
[    5.262615] procd: - init -
[    5.354730] kmodloader: loading kernel modules from /etc/modules.d/*
[    5.376235] hid: raw HID events driver (C) Jiri Kosina
[    5.382143] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    5.405167] usbcore: registered new interface driver cdc_wdm
[    5.411190] Loading modules backported from Linux version v6.1.110-0-g5f55cad62cc9d
[    5.418905] Backport generated by backports.git v6.1.110-1-0-g965f73fc
[    5.427571] usbcore: registered new interface driver lan78xx
[    5.437468] usbcore: registered new interface driver usbhid
[    5.443083] usbhid: USB HID core driver
[    5.448238] usbcore: registered new interface driver usbserial_generic
[    5.454806] usbserial: USB Serial support registered for generic
[    5.482568] PPP generic driver version 2.4.2
[    5.487321] NET: Registered PF_PPPOX protocol family
[    5.494505] qmi_wwan 2-1:1.4: cdc-wdm0: USB WDM device
[    5.500783] qmi_wwan 2-1:1.4 wwan0: register 'qmi_wwan' at usb-0000:01:00.0-1, WWAN/QMI device, 86:90:c5:f5:98:83
[    5.511930] usb 2-1: Enable of device-initiated U1 failed.
[    5.518260] usb 2-1: Enable of device-initiated U2 failed.
[    5.523982] usbcore: registered new interface driver qmi_wwan
[    5.581620] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.590657] usbcore: registered new interface driver brcmfmac
[    5.596563] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2
[    5.608253] brcmfmac mmc1:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin
[    5.620012] usbcore: registered new interface driver option
[    5.625644] usbserial: USB Serial support registered for GSM modem (1-port)
[    5.632789] option 2-1:1.0: GSM modem (1-port) converter detected
[    5.639038] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[    5.645950] option 2-1:1.1: GSM modem (1-port) converter detected
[    5.652207] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[    5.659142] option 2-1:1.2: GSM modem (1-port) converter detected
[    5.665367] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[    5.672311] option 2-1:1.3: GSM modem (1-port) converter detected
[    5.678579] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
[    5.686398] kmodloader: done loading kernel modules from /etc/modules.d/*
[    6.461764] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jul 29 2022 02:15:20 version 7.45.250 (70e9766 CY) FWID 01-e53e306b
[    6.947585] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    6.956431] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    6.964682] br-lan: port 1(eth0) entered blocking state
[    6.969949] br-lan: port 1(eth0) entered disabled state
[    6.975303] device eth0 entered promiscuous mode
[    6.980695] br-lan: port 1(eth0) entered blocking state
[    6.985931] br-lan: port 1(eth0) entered forwarding state
[    7.199316] brcmfmac mmc1:0001:1 phy0-ap0: renamed from wlan0
[    7.322718] br-lan: port 2(phy0-ap0) entered blocking state
[    7.328478] br-lan: port 2(phy0-ap0) entered disabled state
[    7.334226] device phy0-ap0 entered promiscuous mode
[    7.353037] brcmfmac mmc1:0001:1 phy0-sta0: renamed from phy0-ap0 (while UP)
[    7.359789] qmi_wwan 2-1:1.4: Tx URB error: -19
[    7.398694] device phy0-sta0 left promiscuous mode
[    7.403550] br-lan: port 2(phy0-sta0) entered disabled state
[    8.107800] usb 2-1: USB disconnect, device number 2
[    8.113015] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[    8.121134] option 2-1:1.0: device disconnected
[    8.126027] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[    8.134215] option 2-1:1.1: device disconnected
[    8.139166] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[    8.147316] option 2-1:1.2: device disconnected
[    8.152123] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[    8.160229] option 2-1:1.3: device disconnected
[    8.165123] xhci_hcd 0000:01:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
[    8.174520] qmi_wwan 2-1:1.4 wwan0: unregister 'qmi_wwan' usb-0000:01:00.0-1, WWAN/QMI device
[    9.828111] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-sta0: link becomes ready

In the topic I mentioned at the beginning we had a discussion about RPi 5, where pin33 is GPIO13.
You have RPi 4 where pin33 is GPIO23. Feel free to double check this.

ohhhh gotcha ok nice. That is a good catch. Thank you.

So ran the same commands in vi. The USBs came back on, so that is good. I reedited the lines in vi to reflect gpio 23 instead of 13 below. Still not sure what's going on here, but feels like i'm getting closer.

 Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.


echo 23 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio23/direction
echo 1 > /sys/class/gpio/gpio23/value
exit 0

And my output stayed the same before and after for the for AT+CPIN?

AT+CPIN?
+CPIN: READY

OK

And here are the other AT Commands you mentioned

AT+COPS?
+COPS: 0,0,"T-Mobile",11

OK
AT+CEREG?
+CEREG: 0,0

OK
AT+CGDCONT?
+CGDCONT: 1,"IPV4V6","fast.t-mobile.com","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 2,"IPV4V6","ims","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0,,,,,,,,,"",,1
+CGDCONT: 3,"IPV4V6","sos","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,1,,,,,,,,,"",,1
+CGDCONT: 4,"IPV4V6","tmus","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0,,,,,,,,,"",0
+CGDCONT: 5,"IPV4V6","h2g2","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0,,,,,,,,,"",0

OK
AT+CGPADDR
+CGPADDR: 1,""
+CGPADDR: 2,""
+CGPADDR: 3,""
+CGPADDR: 4,""
+CGPADDR: 5,""

And here is the dmesg

root@OpenWrt:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 5.15.167 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24106-10cc5fcd00) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Mon Sep 23 12:34:46 2024
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.5
[    0.000000] Reserved memory: created CMA memory pool at 0x000000002ac00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000]   node   0: [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000001ffffffff]
[    0.000000] On node 0, zone DMA32: 19456 pages in unavailable ranges
[    0.000000] On node 0, zone Normal: 16384 pages in unavailable ranges
[    0.000000] percpu: Embedded 18 pages/cpu s34904 r8192 d30632 u73728
[    0.000000] pcpu-alloc: s34904 r8192 d30632 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2028848
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=0 bcm2708_fb.fbheight=0 bcm2708_fb.fbswap=1 smsc95xx.macaddr=D8:3A:DD:E8:F7:DC vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=squashfs,ext4 rootwait
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x0000000037400000-0x000000003b400000] (64MB)
[    0.000000] Memory: 7941624K/8245248K available (8256K kernel code, 912K rwdata, 1296K rodata, 448K init, 554K bss, 238088K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: 0xffffffc0080100d0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000001] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000224] Console: colour dummy device 80x25
[    0.000523] printk: console [tty1] enabled
[    0.000570] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[    0.000595] pid_max: default: 32768 minimum: 301
[    0.000925] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.001073] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.001712] cgroup: Disabling memory control group subsystem
[    0.002782] rcu: Hierarchical SRCU implementation.
[    0.003486] smp: Bringing up secondary CPUs ...
[    0.003907] Detected PIPT I-cache on CPU1
[    0.003970] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.004466] Detected PIPT I-cache on CPU2
[    0.004509] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.004953] Detected PIPT I-cache on CPU3
[    0.004995] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.005070] smp: Brought up 1 node, 4 CPUs
[    0.005128] SMP: Total of 4 processors activated.
[    0.005140] CPU features: detected: 32-bit EL0 Support
[    0.005154] CPU features: detected: CRC32 instructions
[    0.005230] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.005248] CPU: All CPU(s) started at EL2
[    0.005278] alternatives: patching kernel code
[    0.014127] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014183] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.015942] pinctrl core: initialized pinctrl subsystem
[    0.016998] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.018645] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.018883] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.019269] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.019706] thermal_sys: Registered thermal governor 'step_wise'
[    0.019848] cpuidle: using governor ladder
[    0.019921] cpuidle: using governor menu
[    0.020113] ASID allocator initialised with 65536 entries
[    0.020201] Serial: AMBA PL011 UART driver
[    0.024332] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.039951] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-10-17T15:39:16, variant start
[    0.049954] raspberrypi-firmware soc:firmware: Firmware hash is 30f0c5e4d076da3ab4f341d88e7d505760b93ad7
[    0.082167] cryptd: max_cpu_qlen set to 1000
[    0.083895] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.086053] SCSI subsystem initialized
[    0.086204] usbcore: registered new interface driver usbfs
[    0.086246] usbcore: registered new interface driver hub
[    0.086286] usbcore: registered new device driver usb
[    0.086418] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.087691] clocksource: Switched to clocksource arch_sys_counter
[    0.091040] NET: Registered PF_INET protocol family
[    0.092060] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.097185] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.097300] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.097334] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.097926] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.099005] TCP: Hash tables configured (established 65536 bind 65536)
[    0.099267] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.099416] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.099748] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.099796] PCI: CLS 0 bytes, default 64
[    0.103336] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[    0.107668] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.172442] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.175736] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.175780] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.175826] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    0.175867] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x01ffffffff -> 0x0400000000
[    0.239754] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    0.239929] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.239950] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.239968] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    0.240021] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.240104] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.243600] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.243781] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    0.243864] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.244045] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.247489] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.247532] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.247556] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    0.247620] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.247637] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.247844] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    0.247971] pcieport 0000:00:00.0: PME: Signaling with IRQ 42
[    0.248243] pcieport 0000:00:00.0: AER: enabled with IRQ 42
[    0.248814] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver.
[    0.248836] bcm2708_fb: probe of soc:fb failed with error -2
[    0.258265] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.259026] iproc-rng200 fe104000.rng: hwrng registered
[    0.259143] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.259595] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    0.266992] brd: module loaded
[    0.270297] loop: module loaded
[    0.270964] Loading iSCSI transport class v2.0-870.
[    0.272853] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    0.427740] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    0.475878] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.475915] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    0.476454] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0003800000000890
[    0.477083] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.477107] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    0.477134] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    0.477335] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    0.477360] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.477379] usb usb1: Product: xHCI Host Controller
[    0.477393] usb usb1: Manufacturer: Linux 5.15.167 xhci-hcd
[    0.477407] usb usb1: SerialNumber: 0000:01:00.0
[    0.477763] hub 1-0:1.0: USB hub found
[    0.477809] hub 1-0:1.0: 1 port detected
[    0.478265] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    0.478292] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.478311] usb usb2: Product: xHCI Host Controller
[    0.478325] usb usb2: Manufacturer: Linux 5.15.167 xhci-hcd
[    0.478340] usb usb2: SerialNumber: 0000:01:00.0
[    0.478643] hub 2-0:1.0: USB hub found
[    0.478686] hub 2-0:1.0: 4 ports detected
[    0.479499] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.479592] dwc_otg: FIQ enabled
[    0.479598] dwc_otg: NAK holdoff enabled
[    0.479603] dwc_otg: FIQ split-transaction FSM enabled
[    0.479610] Module dwc_common_port init
[    0.479902] usbcore: registered new interface driver uas
[    0.479972] usbcore: registered new interface driver usb-storage
[    0.480048] mousedev: PS/2 mouse device common for all mice
[    0.480558] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.482327] sdhci: Secure Digital Host Controller Interface driver
[    0.482348] sdhci: Copyright(c) Pierre Ossman
[    0.482758] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    0.483156] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.491162] NET: Registered PF_INET6 protocol family
[    0.491608] Segment Routing with IPv6
[    0.491624] In-situ OAM (IOAM) with IPv6
[    0.491654] NET: Registered PF_PACKET protocol family
[    0.491675] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.491725] 8021q: 802.1Q VLAN Support v1.8
[    0.492035] Key type .fscrypt registered
[    0.492042] Key type fscrypt-provisioning registered
[    0.494449] uart-pl011 fe201000.serial: there is not valid maps for state default
[    0.494524] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    0.494593] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 17, base_baud = 0) is a PL011 rev2
[    0.777680] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    0.779201] printk: console [ttyAMA0] enabled
[    0.960227] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    0.970342] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    0.973363] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    0.978965] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    0.982838] usb 1-1: Product: USB2.0 Hub
[    0.988315] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    0.998983] hub 1-1:1.0: USB hub found
[    1.033800] of_cfs_init
[    1.038518] hub 1-1:1.0: 4 ports detected
[    1.045280] of_cfs_init: OK
[    1.118381] mmc1: new high speed SDIO card at address 0001
[    1.121718] clk: Disabling unused clocks
[    1.699589] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    1.706836] Waiting for root device /dev/mmcblk0p2...
[    1.808540] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.815457] mmcblk0: mmc0:aaaa SK32G 29.7 GiB 
[    1.820705]  mmcblk0: p1 p2
[    1.823592] mmcblk0: mmc0:aaaa SK32G 29.7 GiB (quirks 0x00004000)
[    1.864395] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
[    1.874564] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.881652] Freeing unused kernel memory: 448K
[    1.886211] Run /sbin/init as init process
[    1.890310]   with arguments:
[    1.890312]     /sbin/init
[    1.890314]   with environment:
[    1.890316]     HOME=/
[    1.890317]     TERM=linux
[    1.939308] init: Console is alive
[    1.942881] init: - watchdog -
[    2.069038] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.122797] uhci_hcd: USB Universal Host Controller Interface driver
[    2.130991] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.148353] init: - preinit -
[    2.215507] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    2.223980] bcmgenet fd580000.ethernet eth0: Link is Down
[    2.364086] uart-pl011 fe201000.serial: no DMA platform data
[    4.498116] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[    4.513502] mount_root: mounting /dev/root
[    4.532935] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: disabled.
[    4.541720] usb 2-1: New USB device found, idVendor=2c7c, idProduct=0800, bcdDevice= 4.14
[    4.549936] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.557074] usb 2-1: Product: RM502Q-AE
[    4.560949] usb 2-1: Manufacturer: Quectel
[    4.565042] usb 2-1: SerialNumber: 2e13b9c2
[    4.572580] insmod: module is already loaded - fat
[    4.578425] insmod: module is already loaded - vfat
[    4.580695] usb 2-1: Enable of device-initiated U1 failed.
[    4.589662] usb 2-1: Enable of device-initiated U2 failed.
[    4.603322] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    4.614013] urandom-seed: Seeding with /etc/urandom.seed
[    4.650421] procd: - early -
[    4.653372] procd: - watchdog -
[    5.185587] procd: - watchdog -
[    5.189644] procd: - ubus -
[    5.243566] procd: - init -
[    5.335823] kmodloader: loading kernel modules from /etc/modules.d/*
[    5.353801] hid: raw HID events driver (C) Jiri Kosina
[    5.359843] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    5.382888] usbcore: registered new interface driver cdc_wdm
[    5.389056] Loading modules backported from Linux version v6.1.110-0-g5f55cad62cc9d
[    5.396724] Backport generated by backports.git v6.1.110-1-0-g965f73fc
[    5.404519] usbcore: registered new interface driver lan78xx
[    5.414240] usbcore: registered new interface driver usbhid
[    5.419838] usbhid: USB HID core driver
[    5.425042] usbcore: registered new interface driver usbserial_generic
[    5.431627] usbserial: USB Serial support registered for generic
[    5.459374] PPP generic driver version 2.4.2
[    5.464149] NET: Registered PF_PPPOX protocol family
[    5.470775] qmi_wwan 2-1:1.4: cdc-wdm0: USB WDM device
[    5.476458] qmi_wwan 2-1:1.4 wwan0: register 'qmi_wwan' at usb-0000:01:00.0-1, WWAN/QMI device, 02:52:62:21:95:11
[    5.487459] usb 2-1: Enable of device-initiated U1 failed.
[    5.493832] usb 2-1: Enable of device-initiated U2 failed.
[    5.499588] usbcore: registered new interface driver qmi_wwan
[    5.591655] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.600665] usbcore: registered new interface driver brcmfmac
[    5.606621] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2
[    5.618318] brcmfmac mmc1:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin
[    5.630282] usbcore: registered new interface driver option
[    5.635902] usbserial: USB Serial support registered for GSM modem (1-port)
[    5.643040] option 2-1:1.0: GSM modem (1-port) converter detected
[    5.649312] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[    5.656227] option 2-1:1.1: GSM modem (1-port) converter detected
[    5.662481] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[    5.669422] option 2-1:1.2: GSM modem (1-port) converter detected
[    5.675652] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[    5.682589] option 2-1:1.3: GSM modem (1-port) converter detected
[    5.688839] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
[    5.696764] kmodloader: done loading kernel modules from /etc/modules.d/*
[    6.415906] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jul 29 2022 02:15:20 version 7.45.250 (70e9766 CY) FWID 01-e53e306b
[    6.951532] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    6.960380] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    6.968646] br-lan: port 1(eth0) entered blocking state
[    6.973880] br-lan: port 1(eth0) entered disabled state
[    6.979276] device eth0 entered promiscuous mode
[    6.984557] br-lan: port 1(eth0) entered blocking state
[    6.989809] br-lan: port 1(eth0) entered forwarding state
[    7.209022] brcmfmac mmc1:0001:1 phy0-ap0: renamed from wlan0
[    7.303384] br-lan: port 2(phy0-ap0) entered blocking state
[    7.309023] br-lan: port 2(phy0-ap0) entered disabled state
[    7.314753] device phy0-ap0 entered promiscuous mode
[    7.331869] brcmfmac mmc1:0001:1 phy0-sta0: renamed from phy0-ap0 (while UP)
[    7.388158] device phy0-sta0 left promiscuous mode
[    7.392993] br-lan: port 2(phy0-sta0) entered disabled state
[    9.824485] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-sta0: link becomes ready
[  494.790189] ieee80211 phy0: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8

11 is "NR connected to 5GCN", so we need to check registration with AT+C5GREG? instead of AT+CEREG?

Try echo 0 > /sys/class/gpio/gpio23/value
and reboot the modem, AT+CFUN=1,1 should do the job.

According to the board manufacturer,

Default state is LOW selecting nano SIM. Set to HIGH for embedded SIM.

Once the modem is back check with the same AT commands again - AT+CPIN? and AT+CIMI

AT+CIMI should give you the IMSI of the SIM card you use.

If the right SIM is now in use, re-check with other AT commands.

Ok got the vi updated.

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.


echo 23 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio23/direction
echo 0 > /sys/class/gpio/gpio23/value
exit 0

Here is the AT+C5GREG?

AT+C5GREG?
+C5GREG: 0,1

OK

Here are the other 2 AT Commands. Do i need to input the AT+CIMI? number somewhere?

AT+CPIN?
+CPIN: READY

OK
AT+CIMI
310260411050924

OK

I'm sorry about all the fails, i'm struggling so hard with this.

That looks good to me, so now re-check with

AT+CGDCONT?
AT+CGPADDR

A couple of points about T-Mobile (USA):

  • The network is IPv6 only. Some modems implement a CLAT (464) v4 synthetic connection inside the modem (which can also be done in OpenWrt), but all packets from the modem to the tower are v6. Look for a v6 GUA on your interface that would mean the connection is up even though you may not have v4.
  • Home Internet plan lines are locked to the IMEI of the provided modem. A Home Internet SIM will not register on the network in different equipment.
1 Like