Page 1 of 1

USB Simcom LTE module on Core1106

Posted: 2025-05-02 15:48
by luckfox_prototyper
Hey everyone. I have a LTE Simcom module connected to Core1106 via USB.
I've loaded many drivers into kernel that should now enable me to see the usb from core:

Code: Select all

CONFIG_PPP=y
CONFIG_PPPOE=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_USB_USBNET=y
CONFIG_USB_NET_RNDIS_HOST=y
CONFIG_USB_ACM=y
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_QUALCOMM=y
CONFIG_USB_SERIAL_OPTION=y
Dmesg does seem to recognize something on the USB port, however it doesn't detect it to be qualcomm LTE.

Code: Select all

[    1.003547] udevd[97]: specified group 'input' unknown
[    1.004504] udevd[97]: specified group 'kvm' unknown
[    1.026304] udevd[98]: starting eudev-3.2.7
[    2.165207] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[    2.165262] ext4 filesystem being mounted at /userdata supports timestamps until 2038 (0x7fffffff)
[    2.318741] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    2.558590] rk_dvbm ffa70000.rkdvbm: probe start
[    2.558628] rk_dvbm ffa70000.rkdvbm: dvbm ctx 1333c911
[    2.562899] rk_dvbm ffa70000.rkdvbm: probe success
[    2.626639] rkcifhw ffa10000.rkcif: no iommu attached, using non-iommu buffers
[    2.626663] rkcifhw ffa10000.rkcif: No reserved memory region assign to CIF
[    2.627048] rkcif rkcif-mipi-lvds: rkcif driver version: v00.02.00
[    2.627166] rkcif rkcif-mipi-lvds: attach to cif hw node
[    2.627181] rkcif rkcif-mipi-lvds: failed to get dphy hw node
[    2.627191] rkcif rkcif-mipi-lvds: rkcif wait line 0
[    2.627202] rkcif rkcif-mipi-lvds: rkcif fastboot reserve bufs num 3
[    2.627215] : terminal subdev does not exist
[    2.627225] : terminal subdev does not exist
[    2.627235] : terminal subdev does not exist
[    2.627243] : terminal subdev does not exist
[    2.627253] : get_remote_sensor: video pad[0] is null
[    2.627262] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[    2.627273] : rkcif_scale_set_fmt: req(80, 60) src out(0, 0)
[    2.627281] : get_remote_sensor: video pad[0] is null
[    2.627289] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[    2.627297] : rkcif_scale_set_fmt: req(80, 60) src out(0, 0)
[    2.627307] : get_remote_sensor: video pad[0] is null
[    2.627313] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[    2.627321] : rkcif_scale_set_fmt: req(80, 60) src out(0, 0)
[    2.627328] : get_remote_sensor: video pad[0] is null
[    2.627334] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[    2.627342] : rkcif_scale_set_fmt: req(80, 60) src out(0, 0)
[    2.639780] rkcif rkcif-mipi-lvds: No memory-region-thunderboot specified
[    2.641013] rockchip-mipi-csi2-hw ffa20000.mipi-csi2-hw: enter mipi csi2 hw probe!
[    2.641176] rockchip-mipi-csi2-hw ffa20000.mipi-csi2-hw: probe success, v4l2_dev:mipi-csi2-hw!
[    2.641309] rockchip-mipi-csi2-hw ffa30000.mipi-csi2-hw: enter mipi csi2 hw probe!
[    2.641415] rockchip-mipi-csi2-hw ffa30000.mipi-csi2-hw: probe success, v4l2_dev:mipi-csi2-hw!
[    2.641862] rockchip-mipi-csi2 mipi0-csi2: attach to csi2 hw node
[    2.641927] rkcif rkcif-mipi-lvds: Entity type for entity rockchip-mipi-csi2 was not initialized!
[    2.641944] rockchip-mipi-csi2: Async registered subdev
[    2.641953] rockchip-mipi-csi2: probe success, v4l2_dev:rkcif-mipi-lvds!
[    2.673045] rkisp_hw ffa00000.rkisp: is_thunderboot: 0
[    2.673071] rkisp_hw ffa00000.rkisp: Missing rockchip,grf property
[    2.673112] rkisp_hw ffa00000.rkisp: max input:0x0@0fps
[    2.673303] rkisp_hw ffa00000.rkisp: get sram size:253952
[    2.673318] rkisp_hw ffa00000.rkisp: no iommu attached, using non-iommu buffers
[    2.673328] rkisp_hw ffa00000.rkisp: No reserved memory region. default cma area!
[    2.673731] rkisp rkisp-vir0: rkisp driver version: v02.05.00
[    2.673857] rkisp rkisp-vir0: No memory-region-thunderboot specified
[    2.678157] rkisp rkisp-vir0: Entity type for entity rkisp-isp-subdev was not initialized!
[    2.709866] rockchip-csi2-dphy-hw ff3e8000.csi2-dphy-hw: csi2 dphy hw probe successfully!
[    2.734504] rockchip-csi2-dphy csi2-dphy0: csi2 dphy0 probe successfully!
[    3.096450] rkcif rkcif-mipi-lvds: clear unready subdev num: 2
[    3.097425] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
[    3.097449] rkcif-mipi-lvds: Async subdev notifier completed
[    3.097474] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
[    3.097483] rkcif-mipi-lvds: There is not terminal subdev, not synchronized with ISP
[    3.097763] rkisp rkisp-vir0: clear unready subdev num: 1
[    3.097991] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
[    3.098008] rkcif-mipi-lvds: There is not terminal subdev, not synchronized with ISP
[    3.099281] rkisp-vir0: Async subdev notifier completed
[    3.120508] rga: rga2, irq = 39, match scheduler
[    3.125516] rga: rga2 hardware loaded successfully, hw_version:3.3.87975.
[    3.125544] rga: rga2 probe successfully
[    3.125805] rga_iommu: IOMMU binding successfully, default mapping core[0x4]
[    3.129954] rga: Module initialized. v1.3.1
[    3.161454] mpp_vcodec: loading out-of-tree module taints kernel.
[    3.177886] mpp_vcodec: init new
[    3.178037] mpp_service mpp-srv: 424abb9b author: Yandong Lin 2024-04-29 [mpp_enc]: fix wrap enc sw timeout when resolution switch
[    3.178050] mpp_service mpp-srv: probe start
[    3.179743] mpp_rkvenc_540c ffa50000.rkvenc: probing start
[    3.180193] mpp_rkvenc_540c ffa50000.rkvenc: probing finish
[    3.180616] mpp_vepu_pp ffa60000.rkvenc-pp: probe device
[    3.180886] mpp_vepu_pp ffa60000.rkvenc-pp: shared_rst_a_pp is not found!
[    3.180900] vepu_pp_init:526: No aclk reset resource define
[    3.180911] mpp_vepu_pp ffa60000.rkvenc-pp: shared_rst_h_pp is not found!
[    3.180917] vepu_pp_init:529: No hclk reset resource define
[    3.184338] mpp_vepu_pp ffa60000.rkvenc-pp: probing finish
[    3.184612] mpp_service mpp-srv: probe success
[    3.208254] RKNPU ff660000.npu: RKNPU: rknpu iommu device-tree entry not found!, using non-iommu mode
[    3.208658] RKNPU ff660000.npu: RKNPU: Initialized RKNPU driver: v0.9.2 for 20230825
[    3.208744] RKNPU ff660000.npu: dev_pm_opp_set_regulators: no regulator (rknpu) found: -19
[    3.251722] rockit_load start
[    3.275433] rockit_load end
[    3.292754] rve: rve_irq, irq = 56, match scheduler
[    3.294852] rve: Driver loaded successfully rve[2] ver:[2021]58.1a
[    3.294876] rve: probe successfully
[    3.296896] rve: Module initialized. v1.0.6
[    3.623377] rk_gmac-dwmac ffa80000.ethernet eth0: PHY [stmmac-0:02] driver [RK630 PHY] (irq=POLL)
[    3.624230] dwmac4: Master AXI performs any burst length
[    3.624265] rk_gmac-dwmac ffa80000.ethernet eth0: No Safety Features support found
[    3.624286] rk_gmac-dwmac ffa80000.ethernet eth0: PTP not supported by HW
[    3.624592] rk_gmac-dwmac ffa80000.ethernet eth0: configuring for phy/rmii link mode
[    3.644802] udevd[322]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video0': No such file or directory
[    3.645994] udevd[323]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video1': No such file or directory
[    3.647060] udevd[324]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video2': No such file or directory
[    3.668302] udevd[325]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video3': No such file or directory
[    3.674123] udevd[329]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video4': No such file or directory
[    3.675244] udevd[330]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video5': No such file or directory
[    3.676322] udevd[331]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video6': No such file or directory
[    4.133818] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.163112] file system registered
[    4.164937] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.165116] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    4.165135] cfg80211: failed to load regulatory.db
[    4.226146] libaes: exports duplicate symbol aes_decrypt (owned by kernel)
[    4.226482] libaes: exports duplicate symbol aes_decrypt (owned by kernel)
[    4.244279] using random self ethernet address
[    4.244307] using random host ethernet address
[    4.260170] aicbsp_init
[    4.260191] RELEASE_DATE:2024_0615_c3cb37b3
[    4.260200] aicbsp_resv_mem_init
[    4.287179] Mass Storage Function, version: 2009/09/11
[    4.287209] LUN: removable file: (no medium)
[    4.437373] read descriptors
[    4.437449] read strings
[    4.489529] aicbsp: aicbsp_set_subsys, subsys: AIC_WIFI, state to: 1
[    4.489560] aicbsp: aicbsp_set_subsys, power state change to 1 dure to AIC_WIFI
[    4.489568] aicbsp: aicbsp_platform_power_on
[    4.512408] aicbsp: aicbsp_sdio_probe:1 vid:0xC8A1  did:0xC08D
[    4.512569] aicbsp: aicbsp_sdio_probe:2 vid:0xC8A1  did:0xC18D
[    4.512582] aicbsp: aicbsp_sdio_probe after replace:1
[    4.512591] the device is PRODUCT_ID_AIC8800DC
[    4.512600] aicbsp: aicbsp_get_feature, set FEATURE_SDIO_CLOCK 50 MHz
[    4.512606] aicbsp: aicwf_sdio_reg_init
[    4.512803] aicbsp: Set SDIO Clock 50 MHz
[    4.516012] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fw_patch_table_8800dc_u02.bin
[    4.517136] file md5:778b7bc75d5cbb25362914dbfe3e5c84
[    4.517235] rwnx_plat_bin_fw_upload_android
[    4.517248] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fw_adid_8800dc_u02.bin
[    4.517768] file md5:95d10e6288e4d3413c0e3508cb9d711a
[    4.519554] rwnx_plat_bin_fw_upload_android
[    4.519577] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fw_patch_8800dc_u02.bin
[    4.520929] file md5:ed2c9ffc08e925f38f4a3f5f6f7b5326
[    4.533646] aicbt_patch_table_load bt btmode[1]:1
[    4.533665] aicbt_patch_table_load bt uart_baud[1]:1500000
[    4.533673] aicbt_patch_table_load bt uart_flowctrl[1]:1
[    4.533679] aicbt_patch_table_load bt lpm_enable[1]:0
[    4.533685] aicbt_patch_table_load bt tx_pwr[1]:28463
[    4.538729] aicbsp: bt patch version: - Apr 09 2024 14:03:22 - git c701fdd
[    4.538806] ############ aicwifi_init begin
[    4.542874] ############ system_config_8800dc done
[    4.542887] u02 is loaing ###############
[    4.542895] rwnx_plat_bin_fw_upload_android
[    4.542905] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fmacfw_patch_8800dc_u02.bin
[    4.544647] file md5:d585f255ef3205e733761ba715a85ba7
[    4.551562] aicwf_dpd_calib_8800dc
[    4.552368] rwnx_plat_bin_fw_upload_android
[    4.552385] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fmacfw_calib_8800dc_u02.bin
[    4.554501] file md5:578501435702663ab4aba9f78722c971
[    4.785134] ############ rwnx_plat_patch_load done
[    4.787431] ### Upload fmacfw_patch_tbl_8800dc_u02.bin
[    4.787447] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fmacfw_patch_tbl_8800dc_u02.bin
[    4.800636] file md5:f5f4baabb44f766e424f27b38ca7b882
[    4.800655] tbl size = 816
[    4.800929] zh May 28 2024 20:54:45 - g2db9716
[    4.800938] patch_tbl:  110888  180e81
[    4.816912] patch_tbl:  40030080  f
[    4.817060] patch_tbl:  4010001c  0
[    4.817219] ############ aicwf_patch_config_8800dc done
[    4.821637] aicbsp: aicbsp_get_feature, set FEATURE_SDIO_CLOCK 50 MHz
[    4.821657] aicsdio: aicwf_sdio_reg_init
[    4.826871] aicbsp: aicbsp_resv_mem_alloc_skb, alloc resv_mem_txdata succuss, id: 0, size: 98304
[    4.827156] aicbsp: aicbsp_get_feature, set FEATURE_SDIO_CLOCK 50 MHz
[    4.827336] tcp_ack_init
[    4.858093] aicbsp: sdio_err:<aicwf_sdio_bus_pwrctl,1403>: bus down
[    5.070619] ieee80211 phy0: HT supp 1, VHT supp 1, HE supp 1
[    5.072626] ieee80211 phy0:
[    5.072626] *******************************************************
[    5.072626] ** CAUTION: USING PERMISSIVE CUSTOM REGULATORY RULES **
[    5.072626] *******************************************************
[    7.136229] aic_bluetooth_mod_init
[    7.136597] -->rfkill_bluetooth_init
[    7.136735] <--rfkill_bluetooth_init
[    9.292876] rwnx_send_sm_connect_req drv_vif_index:0 connect to UGE1BE(6) channel:2437 auth_type:0
[   10.240895] of_dma_request_slave_channel: dma-names property of node '/serial@ff4b0000' missing or empty
[   10.240934] dw-apb-uart ff4b0000.serial: failed to request DMA, use interrupt mode
[   56.514129] 32

I did however load the firmware that was generated for Luckfox Pico Ultra board (with

Code: Select all

./build.sh lunch
) but I don't think that's the problem here.

Was anyone successful bringing up LTE connection over USB?

Re: USB Simcom LTE module on Core1106

Posted: 2025-05-06 1:42
by Crocodile
Hello, it is recommended to refer to the configuration of the Luckfox Pico Pi, which has built-in support for the SIM7600G by default.
The log you provided is not a complete kernel log, so it is not possible to determine whether the driver has been successfully loaded. You can use cat /var/log/messages to obtain the full kernel log.
It is also possible that there is an issue with the USB connection; you can use the lsusb command to check whether the related device is detected.

Re: USB Simcom LTE module on Core1106

Posted: 2025-05-06 23:10
by luckfox_prototyper
Hi Crocodile,
I've created an image of buildroot system from Pico PI board but there are still issues. This is the full log from /var/log/messages/ which does indicate that my LTE was detected:

Code: Select all

May  6 22:55:37 luckfox kern.info kernel: [    0.181428] usbcore: registered new interface driver asix
May  6 22:55:37 luckfox kern.info kernel: [    0.181482] usbcore: registered new interface driver ax88179_178a
May  6 22:55:37 luckfox kern.info kernel: [    0.181517] usbcore: registered new interface driver cdc_ether
May  6 22:55:37 luckfox kern.info kernel: [    0.181549] usbcore: registered new interface driver net1080
May  6 22:55:37 luckfox kern.info kernel: [    0.181580] usbcore: registered new interface driver rndis_host
May  6 22:55:37 luckfox kern.info kernel: [    0.181617] usbcore: registered new interface driver cdc_subset
May  6 22:55:37 luckfox kern.info kernel: [    0.181651] usbcore: registered new interface driver zaurus
May  6 22:55:37 luckfox kern.info kernel: [    0.181704] usbcore: registered new interface driver cdc_ncm
May  6 22:55:37 luckfox kern.info kernel: [    0.181738] usbcore: registered new interface driver qmi_wwan
May  6 22:55:37 luckfox kern.info kernel: [    0.185504] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
May  6 22:55:37 luckfox kern.info kernel: [    0.185906] phy phy-ff3e0000.usb2-phy.0: illegal mode
May  6 22:55:37 luckfox kern.info kernel: [    0.185926] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
May  6 22:55:37 luckfox kern.info kernel: [    0.185959] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
May  6 22:55:37 luckfox kern.info kernel: [    0.186145] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000022010010
May  6 22:55:37 luckfox kern.info kernel: [    0.186195] xhci-hcd xhci-hcd.0.auto: irq 64, io mem 0xffb00000
May  6 22:55:37 luckfox kern.info kernel: [    0.187219] hub 1-0:1.0: USB hub found
May  6 22:55:37 luckfox kern.info kernel: [    0.187280] hub 1-0:1.0: 1 port detected
May  6 22:55:37 luckfox kern.info kernel: [    0.187632] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
May  6 22:55:37 luckfox kern.info kernel: [    0.187667] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
May  6 22:55:37 luckfox kern.info kernel: [    0.187690] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
May  6 22:55:37 luckfox kern.info kernel: [    0.187768] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
May  6 22:55:37 luckfox kern.info kernel: [    0.188427] hub 2-0:1.0: USB hub found
May  6 22:55:37 luckfox kern.err kernel: [    0.188486] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
May  6 22:55:37 luckfox kern.info kernel: [    0.188841] usbcore: registered new interface driver cdc_wdm
May  6 22:55:37 luckfox kern.info kernel: [    0.188931] usbcore: registered new interface driver usb-storage
May  6 22:55:37 luckfox kern.info kernel: [    0.189027] usbcore: registered new interface driver option
May  6 22:55:37 luckfox kern.info kernel: [    0.189058] usbserial: USB Serial support registered for GSM modem (1-port)
May  6 22:55:37 luckfox kern.info kernel: [    0.189205] usbcore: registered new interface driver qcserial
May  6 22:55:37 luckfox kern.info kernel: [    0.189234] usbserial: USB Serial support registered for Qualcomm USB modem
May  6 22:55:37 luckfox kern.info kernel: [    0.189398] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
May  6 22:55:37 luckfox kern.info kernel: [    0.189417] udc-core: couldn't find an available UDC - added [g_mass_storage] to list of pending drivers
May  6 22:55:37 luckfox kern.info kernel: [    0.191058] rockchip-rtc ff1c0000.rtc: registered as rtc0
May  6 22:55:37 luckfox kern.info kernel: [    0.191137] rockchip-rtc ff1c0000.rtc: setting system clock to 2025-05-06T22:55:37 UTC (1746572137)
May  6 22:55:37 luckfox kern.info kernel: [    0.191366] i2c /dev entries driver
I've checked with lsusb and there is nothing detected there. I'm wondering if that is the issue with the USB_CONFIG kernel configs? Or do I need anything else already setup?

Re: USB Simcom LTE module on Core1106

Posted: 2025-05-07 1:27
by Crocodile
If the log you provided is complete, it only indicates that the driver has been loaded but the device was not recognized. When a device is recognized properly, the kernel will print a message like:

Code: Select all

usb 1-1: new high-speed USB device number 2 using xhci-hcd
Please check whether your USB hub is functioning properly. You can test this by connecting a high-speed USB device (such as a USB flash drive) and a low-speed USB device (such as a mouse) to see if they are recognized.