xyz

xyz

0个粉丝

3

问答

0

专栏

0

资料

xyz  发布于  2023-02-01 17:37:53
采纳率 67%
3个问答
2611

Hi3518通过liteos无法驱动usb 4G模块,在dev下面也没有显示ttyUSB0

悬赏金¥ 10
已结题
 

通过官方的驱动文档配置了一遍

但是就是在dev下面没有显示ttyUSB0,插上U盘dev下面也不会挂载设备

使用的SDK版本是 Hi3518EV300_MobileCam_SDK_V1.0.0.1

启动日志如下

  1. System startup
  2. Uncompress Ok!
  3. U-Boot 2016.11 (Nov 16 2022 - 04:46:57 -0800)hi3518ev300
  4. Relocation Offset is: 1f737000
  5. Relocating to 5ff37000, new gd at 5fe96ef0, sp at 5fe96ed0
  6. SPI Nor: Check Flash Memory Controller v100 ... Found
  7. SPI Nor ID Table Version 1.0
  8. SPI Nor(cs 0) ID: 0xc2 0x20 0x18
  9. Block:64KB Chip:16MB Name:"MX25L128XX"
  10. SPI Nor total size: 16MB
  11. NAND: 0 MiB
  12. MMC:
  13. In: serial
  14. Out: serial
  15. Err: serial
  16. Net: No ethernet found.
  17. Hit any key to stop autoboot: 0
  18. device 0 offset 0x100000, size 0x700000
  19. SF: 7340032 bytes @ 0x100000 Read: OK
  20. ## Starting application at 0x40000000 ...
  21. ********Hello Huawei LiteOS********
  22. version : Huawei LiteOS V200R002C00SPC020B030
  23. open-version : Huawei LiteOS 3.1.3
  24. build data : Jan 30 2023 18:08:24
  25. Huawei LiteOS #
  26. ************************************************************
  27. random dev init ...
  28. ************************************************************
  29. MMC dev init ...host 1 a card is plugged.
  30. ************************************************************
  31. mem dev init ...
  32. ************************************************************
  33. porc fs init ...
  34. Mount procfs finished.
  35. ************************************************************
  36. spi bus init ...
  37. ************************************************************
  38. i2c bus init ...
  39. ************************************************************
  40. gpio init ...
  41. ************************************************************
  42. nand init ...
  43. hifmc100_host_init(904): Error:Flash type isn't SPI Nand!
  44. [ERR] probing device hifmc100_nand with driver hifmc100_nand failed
  45. [ERR] driver attach failed
  46. ************************************************************
  47. spi nor flash init ...
  48. Spi Nor ID:0xC2 0x20 0x18 0xC2 0x20 0x18 0xC2 0x20
  49. Spi Nor Flash Info:
  50. Name:"MX25L128XX" Size:16MB Block:64KB
  51. <5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00800000: 0x457f instead
  52. <5>Further such events for this erase block will not be printed1
  53. <4>Empty flash at 0x00801958 ends at 0x0080195c
  54. <4>Empty flash at 0x00801a18 ends at 0x00801a1c
  55. <4>Empty flash at 0x008023e8 ends at 0x008023ec
  56. <4>Empty flash at 0x00805f54 ends at 0x00805f58
  57. <4>Empty flash at 0x00806080 ends at 0x00806084
  58. <4>Empty flash at 0x008060fc ends at 0x00806100
  59. <4>Empty flash at 0x008064d8 ends at 0x008064dc
  60. <4>Empty flash at 0x00806630 ends at 0x00806634
  61. <4>Empty flash at 0x008068ac ends at 0x008068b0
  62. <4>Empty flash at 0x00806a84 ends at 0x00806a88
  63. <4>Empty flash at 0x00806c44 ends at 0x00806c48
  64. <4>Empty flash at 0x00807014 ends at 0x00807018
  65. <4>Empty flash at 0x008092e0 ends at 0x008092e4
  66. <4>Empty flash at 0x00809efc ends at 0x00809f00
  67. <4>Empty flash at 0x0080a06c ends at 0x0080a070
  68. <4>Old JFFS2 bitmask found at 0x0080abb4
  69. <4>You cannot use older JFFS2 filesystems with newer kernels
  70. <4>Empty flash at 0x0080f200 ends at 0x0080f208
  71. <4>Empty flash at 0x0080f230 ends at 0x0080f244
  72. <5>Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
  73. <5>empty_blocks 159, bad_blocks 0, c->nr_blocks 160
  74. ************************************************************
  75. net init ...
  76. VPP2.0 V100R001C20 (lwIP) Jan 30 2023 18:08:07
  77. Ethernet start.hisi_eth: User did not set phy mode, use default=mii
  78. hisi_eth: User did not set phy addr, auto scan...
  79. Detected phy addr 0, phyid: 0x20669903
  80. netif_is_link_up overtime!
  81. ************************************************************
  82. usb init ...
  83. osdrv ...
  84. ******** usb_init in **********
  85. ===========test usb load==============
  86. usb v2.14 2018-12-04 15:30
  87. usb 0x41f00000 ~+ 1024 KB
  88. -------module register --------------------bsd_driver_mode_list hi_xhci usbus -------------
  89. -------bsd_driver_mode_list uhub uhub -------------
  90. -------bsd_driver_mode_list usbus uhub -------------
  91. -------bsd_driver_mode_list uhub cdce -------------
  92. -------bsd_driver_mode_list uhub u3g -------------
  93. -------bsd_driver_mode_list uhub u3g -------------
  94. -------bsd_driver_mode_list uhub umass -------------
  95. -------bsd_driver_mode_list uhub urndis -------------
  96. -------bsd_driver_mode_list simple fmass -------------
  97. -------bsd_driver_mode_list simple composite -------------
  98. -------bsd_driver_mode_list simple fuvc -------------
  99. -------bsd_driver_mode_list simple fserial -------------
  100. -------bsd_driver_mode_list simple fethernet -------------
  101. -------module register -------------
  102. XHCI: 64 bytes context size, 32-bit DMA
  103. [debug_trace] /home/xstrive/hisi/Hi3518EV300_MobileCam_SDK/osdrv/platform/liteos/liteos/drivers/usb/controller/usb_host/usb_controller.c 92 usb_probe
  104. [debug_trace] /home/xstrive/hisi/Hi3518EV300_MobileCam_SDK/osdrv/platform/liteos/liteos/drivers/usb/controller/usb_host/usb_controller.c 120 usb_attach
  105. usbus0: 5.0Gbps Super Speed USB v3.0
  106. ******** usb_init ok**********
  107. g_sys_mem_addr_end=0x0x41f00000,
  108. Date:Feb 1 2023.
  109. Time:00:52:59.
  110. ************************************************************
  111. [debug_trace] /home/xstrive/hisi/Hi3518EV300_MobileCam_SDK/osdrv/platform/liteos/liteos/drivers/usb/core/usb_hub.c 1182 uhub_probe
  112. [debug_trace] /home/xstrive/hisi/Hi3518EV300_MobileCam_SDK/osdrv/platform/liteos/liteos/drivers/usb/core/usb_hub.c 1271 uhub_attach
  113. [debug_trace] USB_EXPLR_Task
  114. uhub0: <vendor 0x0000 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
  115. uhub0: 1 port with 1 removable, self powered
  116. :command not found
  117. Huawei LiteOS #
  118. Huawei LiteOS #
  119. Huawei LiteOS # ls /dev
  120. Directory /dev:
  121. console1 0
  122. gpio 0
  123. i2c-0 0
  124. i2c-1 0
  125. i2c-2 0
  126. mem 0
  127. serial 0
  128. spidev0.0 0
  129. spidev1.0 0
  130. spidev1.1 0
  131. spinor 0
  132. spinorblk0 0
  133. spinorchr0 0
  134. uartdev-0 0
  135. uartdev-1 0
  136. uartdev-2 0
  137. urandom 0
  138. Huawei LiteOS #
我来回答

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
回答3个
时间排序
认可量排序

UncleRoderick

22个粉丝

14

问答

1

专栏

14

资料

UncleRoderick 2023-02-01 19:19:45
认可0
易百纳技术社区该回答已被题主采纳为最佳答案

先排查USB模式配置是否为Host模式,默认3518是配置成了device模式,device模式下插入USB设备是没有反应的

xyz

0个粉丝

3

问答

0

专栏

0

资料

xyz 2023-02-02 12:29:22
认可0

问题解决了,是SDK的问题,用的这个SDK有问题

tomato

23个粉丝

159

问答

589

专栏

187

资料

tomato 2023-02-01 18:12:41
认可0

1.排除4G模块电路硬件可能问题,lsusb 查看是否有ID
2.usb driver 添加PID、VID

xyz
xyz   回复   tomato  2023-02-01 20:39:53
0

在linux下可以通过lsusb找到设备,但是在liteos下有问题

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区