导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    D1s使用rndis的网口传输SFTP文件,会死机

    MR Series
    4
    7
    3207
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • M
      Maihuanyi LV 5 最后由 编辑

      通过RNDIS虚拟网口登录ssh,ssh的操作都是正常的,但使用sftp传输文件时会死机
      死机后的log如下:

      root@TinaLinux:/# random: sshd: uninitialized urandom read (32 bytes read)
      random: sshd: uninitialized urandom read (32 bytes read)
      random: sftp-server: uninitialized urandom read (32 bytes read)
      random: sshd: uninitialized urandom read (32 bytes read)
      random: sshd: uninitialized urandom read (32 bytes read)
      ------------[ cut here ]------------
      kernel BUG at mm/slub.c:3995!
      Kernel BUG [#1]
      Modules linked in: pwrdngpio(O) djibatgpio(O) gpioled(O) e34gpio(O) btgpio(O) gpiokey(O) beep(O) ch341 usbserial usb_storage
      CPU: 0 PID: 0 Comm: swapper Tainted: G           O      5.4.61 #245
      sepc: ffffffe0000a38b0 ra : ffffffe0000a3880 sp : ffffffe00056b9f0
       gp : ffffffe0005c7f98 tp : ffffffe000570670 t0 : 6d99feea10b6aaa5
       t1 : 2d4da631d6d0e31f t2 : 659139479badf51b s0 : ffffffe00056ba40
       s1 : ffffffe003fc1dc0 a0 : ffffffe003fc1dc0 a1 : 0000000000000000
       a2 : 0000000000000074 a3 : ffffffe002e882bc a4 : 0000000000000000
       a5 : 0000000000000000 a6 : 4b74ffab150d1112 a7 : 7eb4787c647c9008
       s2 : ffffffe0005a8728 s3 : 0000000000000000 s4 : ffffffe002e88042
       s5 : ffffffe001b60590 s6 : 000000000000007a s7 : 0000000000000200
       s8 : 0000000000000001 s9 : ffffffd004056004 s10: 000000000000007a
       s11: 000000000000007a t3 : e453c24597201865 t4 : 05bf9ed9991e8f30
       t5 : 8b36fe4c753b25db t6 : ffffffe001b522bc
      sstatus: 0000000200000100 sbadaddr: 0000000000000000 scause: 0000000000000003
      ---[ end trace 0e4c88a1db2c99aa ]---
      Kernel panic - not syncing: Fatal exception in interrupt
      ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
      

      有人遇到这样的问题吗,或者有什么解决的思路分享一下。

      1 条回复 最后回复 回复 引用 分享 1
      • WhycanService
        WhycanService LV 8 最后由 编辑

        看着是random的问题,urandom没有初始化

        M 1 条回复 最后回复 回复 引用 分享 1
        • M
          Maihuanyi LV 5 @WhycanService 最后由 编辑

          @whycanservice 等random初始化成功再连接sftp,传送文件还是会死机。

          WhycanService 1 条回复 最后回复 回复 引用 分享 1
          • WhycanService
            WhycanService LV 8 @Maihuanyi 最后由 编辑

            @maihuanyi

            dmesg -n 7 配置高loglevel查看报错函数点

            目前看到是 mm/slub.c 出问题,但是没有具体函数参考

            M 1 条回复 最后回复 回复 引用 分享 1
            • M
              Maihuanyi LV 5 @WhycanService 最后由 编辑

              @whycanservice 打开了也看不到那个函数报错

              1 条回复 最后回复 回复 引用 分享 1
              • E
                Eason LV 3 最后由 编辑

                你好,请问解决了吗

                1 条回复 最后回复 回复 引用 分享 1
                • E
                  epoko LV 2 最后由 编辑

                  遇到了同样的问题,使用rndis向开发板传输大文件时就会报错,反向传输则没问题,详细日志如下

                  [  301.229924] ------------[ cut here ]------------
                  [  301.242358] kernel BUG at mm/slub.c:3995!
                  [  301.253989] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
                  [  301.267678] Modules linked in:
                  [  301.278138] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.61 #24
                  [  301.291952] Hardware name: Generic DT based system
                  [  301.304387] PC is at kfree+0x68/0x1f4
                  [  301.315447] LR is at kfree+0x4c/0x1f4
                  [  301.326420] pc : [<c0205738>]    lr : [<c020571c>]    psr: 400e0193
                  [  301.340315] sp : c0901d48  ip : 00000008  fp : c8823004
                  [  301.352964] r10: 00000001  r9 : 0000007a  r8 : c092e13c
                  [  301.365568] r7 : c5528a88  r6 : c04674f8  r5 : 00000000  r4 : c6f91968
                  [  301.379598] r3 : 00000000  r2 : c6f91968  r1 : c560a342  r0 : 00000000
                  [  301.393548] Flags: nZcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
                  [  301.408328] Control: 10c5387d  Table: 4550c06a  DAC: 00000051
                  [  301.421405] Process swapper/0 (pid: 0, stack limit = 0x5a1af267)
                  [  301.434719] Stack: (0xc0901d48 to 0xc0902000)
                  [  301.446148] 1d40:                   c6096000 c0372a84 c6096600 c0379300 00000000 2b8a4c29
                  [  301.462030] 1d60: 00000342 c5528a80 c092e124 00000000 c5528a88 c092e13c 0000007a 00000001
                  [  301.477890] 1d80: c8823004 c04674f8 c092e124 c5528a80 c5528a80 00000001 c097e8d0 c092e124
                  [  301.493717] 1da0: 00000001 c04676e4 c092e124 0000007a c097e8d0 c092e124 c092e068 c5528a80
                  [  301.509489] 1dc0: 00000200 800e0113 00000001 0000027a 00000080 c04682c8 c092e068 c092e124
                  [  301.525194] 1de0: c5528a80 c092e124 c5528a80 c097e8d0 c097e94c 00000600 00000400 c0468528
                  [  301.540928] 1e00: c092e124 c5528a80 00000002 c8823086 c097e8d0 c092e124 c5528a80 00000001
                  [  301.556628] 1e20: 00000002 00000001 00000001 c0468880 c092e068 c097e8d0 a00e0193 00000001
                  [  301.572259] 1e40: 00000000 c063fc84 00000001 c0469398 c0747eea c0760ad3 00000006 00000002
                  [  301.587857] 1e60: 00000000 00000002 00000001 00000000 00000000 c083122c c0963be0 00000000
                  [  301.603402] 1e80: 00000000 2b8a4c29 c0963a80 c54c8840 c6a32c00 c6a32c68 c0901ed8 00000000
                  [  301.618881] 1ea0: 00000032 10c5387d 00000000 c01571f4 c6a32c00 c0901ed8 00010001 c6a32c00
                  [  301.634353] 1ec0: c6a32c00 c6a32c68 c6a32c68 c08260c0 c0900000 c01572e4 00000000 2b8a4c29
                  [  301.649845] 1ee0: 00010001 c6a32c00 c0904204 c0157378 c6a32c00 c0904204 c6a32c14 c015b76c
                  [  301.665345] 1f00: 00000000 00000000 c680c000 00000001 c08260c0 c01564f0 00000000 c0156b28
                  [  301.680856] 1f20: c0901f48 c8802000 c0904204 c0901f7c c08260c0 c0340584 c0107d9c 600e0013
                  [  301.696337] 1f40: ffffffff c01021cc 00072924 00000000 00072924 c0114d40 00000001 c0903e28
                  [  301.711803] 1f60: c0900000 c0903e68 c08260c0 410fc075 10c5387d 00000000 7fffffb9 c0901f98
                  [  301.727295] 1f80: c0107dac c0107d9c 600e0013 ffffffff 00000051 00000000 00000001 c013eb7c
                  [  301.742797] 1fa0: 000000cf c093e000 c0903e00 00000000 c08260c0 c013ee5c c08260c0 c0800c4c
                  [  301.758267] 1fc0: ffffffff ffffffff 00000000 c0800568 00000000 c08260c0 2b8f4814 00000000
                  [  301.773683] 1fe0: c0800330 00000051 10c0387d ffffffff 44000000 00000000 00000000 00000000
                  [  301.789140] [<c0205738>] (kfree) from [<c04674f8>] (sunxi_udc_done+0x12c/0x188)
                  [  301.803650] [<c04674f8>] (sunxi_udc_done) from [<c04676e4>] (pio_read_fifo+0x190/0x1c4)
                  [  301.818979] [<c04676e4>] (pio_read_fifo) from [<c04682c8>] (sunxi_udc_dma_completion+0x1a4/0x2b8)
                  [  301.835296] [<c04682c8>] (sunxi_udc_dma_completion) from [<c0468528>] (sunxi_udc_read_fifo+0x14c/0x35c)
                  [  301.858525] [<c0468528>] (sunxi_udc_read_fifo) from [<c0468880>] (sunxi_udc_handle_ep+0x148/0x160)
                  [  301.881549] [<c0468880>] (sunxi_udc_handle_ep) from [<c0469398>] (sunxi_udc_irq+0x5c8/0xd4c)
                  [  301.897696] [<c0469398>] (sunxi_udc_irq) from [<c01571f4>] (__handle_irq_event_percpu+0x3c/0x104)
                  [  301.914381] [<c01571f4>] (__handle_irq_event_percpu) from [<c01572e4>] (handle_irq_event_percpu+0x28/0x84)
                  [  301.938777] [<c01572e4>] (handle_irq_event_percpu) from [<c0157378>] (handle_irq_event+0x38/0x5c)
                  [  301.955746] [<c0157378>] (handle_irq_event) from [<c015b76c>] (handle_fasteoi_irq+0xa0/0x118)
                  [  301.972383] [<c015b76c>] (handle_fasteoi_irq) from [<c01564f0>] (generic_handle_irq+0x18/0x28)
                  [  301.989200] [<c01564f0>] (generic_handle_irq) from [<c0156b28>] (__handle_domain_irq+0x90/0xa0)
                  [  302.006071] [<c0156b28>] (__handle_domain_irq) from [<c0340584>] (gic_handle_irq+0x44/0x74)
                  [  302.022518] [<c0340584>] (gic_handle_irq) from [<c01021cc>] (__irq_svc+0x6c/0xa8)
                  [  302.038025] Exception stack(0xc0901f48 to 0xc0901f90)
                  [  302.050823] 1f40:                   00072924 00000000 00072924 c0114d40 00000001 c0903e28
                  [  302.067174] 1f60: c0900000 c0903e68 c08260c0 410fc075 10c5387d 00000000 7fffffb9 c0901f98
                  [  302.083487] 1f80: c0107dac c0107d9c 600e0013 ffffffff
                  [  302.096294] [<c01021cc>] (__irq_svc) from [<c0107d9c>] (arch_cpu_idle+0x1c/0x38)
                  [  302.111840] [<c0107d9c>] (arch_cpu_idle) from [<c013eb7c>] (do_idle+0xcc/0x11c)
                  [  302.127285] [<c013eb7c>] (do_idle) from [<c013ee5c>] (cpu_startup_entry+0x18/0x1c)
                  [  302.143036] [<c013ee5c>] (cpu_startup_entry) from [<c0800c4c>] (start_kernel+0x354/0x3ec)
                  [  302.159489] Code: 1a000003 e5943004 e3130001 1a000000 (e7f001f2)
                  [  302.173595] ---[ end trace 1bd2c4183e9b51d7 ]---
                  
                  
                  1 条回复 最后回复 回复 引用 分享 0
                  • 1 / 1
                  • First post
                    Last post

                  Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                  行为准则 | 用户协议 | 隐私权政策