导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. liangzhicheng
    3. 帖子
    L
    • 资料
    • 关注 0
    • 粉丝 0
    • 我的积分 695
    • 主题 5
    • 帖子 10
    • 最佳 3
    • 群组 0

    liangzhicheng 发布的帖子

    • 回复: a133 连接 4G 模块时断时续

      问题已确认,ubuntu有个modem管理,/usr/sbin/ModemManager 会去管理4G模块,grep 发现里面有 option1 的操作,赶时间简单粗暴直接删除就可以了

      发布在 Linux
      L
      afaf
    • 回复: a133 连接 4G 模块时断时续

      更改内核的同时将文件系统更改为了 ubuntu18.04,将文件系统改回 sdk 提供的就正常了,也能拨号上网。。。

      问题出在 ubuntu

      发布在 Linux
      L
      afaf
    • a133 连接 4G 模块时断时续

      a133 linux4.9 安装驱动
      insmod usb_wwan.ko
      insmod option.ko

      之后能出来 ttyUSB,但是很快 USB 就断了,lsusb查不到设备,然后又连上,就这样断断续续。

      同样这块板卡,我在 linux5.4上是正常能拨号上网的!换成 linux4.9 就不行了,我需要用4.9的内核

      有大佬知道是怎么回事吗,救救孩子吧...

      [   50.256494] usb 1-1.2: new high-speed USB device number 13 using sunxi-ehci
      [   50.367258] usb 1-1.2: New USB device found, idVendor=1e0e, idProduct=9011
      [   50.367287] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [   50.367307] usb 1-1.2: Product: A76XX Series LTE Module
      [   50.367326] usb 1-1.2: Manufacturer: SIMCom Wireless Solution
      [   50.367345] usb 1-1.2: SerialNumber: 200806006809080000
      [   50.392248] option 1-1.2:1.2: GSM modem (1-port) converter detected
      [   50.395694] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
      [   50.401911] option 1-1.2:1.4: GSM modem (1-port) converter detected
      [   50.407770] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
      [   50.411814] option 1-1.2:1.5: GSM modem (1-port) converter detected
      [   50.414248] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
      [   50.418448] option 1-1.2:1.3: GSM modem (1-port) converter detected
      [   50.421087] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
      [   52.121589] usb 1-1.2: USB disconnect, device number 13
      [   52.139186] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
      [   52.140269] option 1-1.2:1.2: device disconnected
      [   52.147192] option1 ttyUSB3: usb_wwan_open: submit read urb 0 failed: -19
      [   52.147213] option1 ttyUSB3: usb_wwan_open: submit read urb 1 failed: -19
      [   52.147227] option1 ttyUSB3: usb_wwan_open: submit read urb 2 failed: -19
      [   52.147241] option1 ttyUSB3: usb_wwan_open: submit read urb 3 failed: -19
      [   52.161659] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
      [   52.162309] option 1-1.2:1.4: device disconnected
      [   52.168233] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
      [   52.168840] option 1-1.2:1.5: device disconnected
      [   52.173536] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
      [   52.178163] option 1-1.2:1.3: device disconnected
      [   53.028446] usb 1-1.2: new high-speed USB device number 14 using sunxi-ehci
      [   53.150437] usb 1-1.2: New USB device found, idVendor=2ecc, idProduct=3004
      [   53.150466] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [   53.150486] usb 1-1.2: Product: Arom Usb Boot Port
      [   53.150505] usb 1-1.2: Manufacturer: ASR Microelectronics
      [   53.150524] usb 1-1.2: SerialNumber: arom0123456789
      [   53.822783] usb 1-1.2: USB disconnect, device number 14
      [   58.216456] usb 1-1.2: new high-speed USB device number 15 using sunxi-ehci
      [   58.327579] usb 1-1.2: New USB device found, idVendor=1e0e, idProduct=9011
      [   58.327606] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [   58.327627] usb 1-1.2: Product: A76XX Series LTE Module
      [   58.327646] usb 1-1.2: Manufacturer: SIMCom Wireless Solution
      [   58.327666] usb 1-1.2: SerialNumber: 200806006809080000
      [   58.347485] option 1-1.2:1.2: GSM modem (1-port) converter detected
      [   58.351275] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
      [   58.355949] option 1-1.2:1.4: GSM modem (1-port) converter detected
      [   58.359313] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
      [   58.364524] option 1-1.2:1.5: GSM modem (1-port) converter detected
      [   58.367472] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
      [   58.374815] option 1-1.2:1.3: GSM modem (1-port) converter detected
      [   58.377069] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
      [   60.090656] usb 1-1.2: USB disconnect, device number 15
      [   60.107607] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
      [   60.108804] option 1-1.2:1.2: device disconnected
      [   60.123590] option1 ttyUSB2: usb_wwan_open: submit int urb failed: -19
      [   60.123612] option1 ttyUSB2: usb_wwan_open: submit read urb 0 failed: -19
      [   60.123627] option1 ttyUSB2: usb_wwan_open: submit read urb 1 failed: -19
      [   60.123642] option1 ttyUSB2: usb_wwan_open: submit read urb 2 failed: -19
      [   60.123656] option1 ttyUSB2: usb_wwan_open: submit read urb 3 failed: -19
      [   60.123702] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
      [   60.124142] option 1-1.2:1.4: device disconnected
      [   60.137440] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
      [   60.139600] option 1-1.2:1.5: device disconnected
      [   60.143168] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
      [   60.143309] option 1-1.2:1.3: device disconnected
      [   60.964430] usb 1-1.2: new high-speed USB device number 16 using sunxi-ehci
      [   61.085908] usb 1-1.2: New USB device found, idVendor=2ecc, idProduct=3004
      [   61.085934] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [   61.085954] usb 1-1.2: Product: Arom Usb Boot Port
      [   61.085974] usb 1-1.2: Manufacturer: ASR Microelectronics
      [   61.085993] usb 1-1.2: SerialNumber: arom0123456789
      [   61.761205] usb 1-1.2: USB disconnect, device number 16
      [   66.136439] usb 1-1.2: new high-speed USB device number 17 using sunxi-ehci
      [   66.247613] usb 1-1.2: New USB device found, idVendor=1e0e, idProduct=9011
      [   66.247641] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [   66.247662] usb 1-1.2: Product: A76XX Series LTE Module
      [   66.247681] usb 1-1.2: Manufacturer: SIMCom Wireless Solution
      [   66.247700] usb 1-1.2: SerialNumber: 200806006809080000
      [   66.270973] option 1-1.2:1.2: GSM modem (1-port) converter detected
      [   66.277002] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
      [   66.281230] option 1-1.2:1.4: GSM modem (1-port) converter detected
      [   66.284303] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
      [   66.289263] option 1-1.2:1.5: GSM modem (1-port) converter detected
      [   66.291381] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
      [   66.295145] option 1-1.2:1.3: GSM modem (1-port) converter detected
      [   66.297627] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
      [   68.037940] usb 1-1.2: USB disconnect, device number 17
      [   68.047733] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
      [   68.056446] option 1-1.2:1.2: device disconnected
      [   68.058173] option1 ttyUSB1: usb_wwan_open: submit int urb failed: -19
      [   68.058204] option1 ttyUSB1
      : usb_wwan_open: submit read urb 0 failed: -19
      [   68.058226] option1 ttyUSB1: usb_wwan_open: submit read urb 1 failed: -19
      [   68.058247] option1 ttyUSB1: usb_wwan_open: submit read urb 2 failed: -19
      [   68.058267] option1 ttyUSB1: usb_wwan_open: submit read urb 3 failed: -19
      [   68.066215] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
      [   68.066434] option 1-1.2:1.4: device disconnected
      [   68.071041] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
      [   68.071709] option 1-1.2:1.5: device disconnected
      [   68.077020] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
      [   68.078138] option 1-1.2:1.3: device disconnected
      [   68.896437] usb 1-1.2: new high-speed USB device number 18 using sunxi-ehci
      [   69.018565] usb 1-1.2: New USB device found, idVendor=2ecc, idProduct=3004
      [   69.018593] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [   69.018613] usb 1-1.2: Product: Arom Usb Boot Port
      [   69.018633] usb 1-1.2: Manufacturer: ASR Microelectronics
      [   69.018651] usb 1-1.2: SerialNumber: arom0123456789
      
      
      发布在 Linux
      L
      afaf
    • 回复: A133 linux5.4 GPU(ge8300)无法使用

      GPU 安卓部分是正常的,linux 部分才有这个问题,我使用的是 linux,不适用安卓。

      发布在 Linux
      L
      afaf
    • A133 linux5.4 GPU(ge8300)无法使用

      A133 linux5.4 下的 GPU 无法正常使用(编译为 linux 固件,非安卓固件)

      insmod pvrsrvkm.ko 打印 read BVNC 0.0.0.0,无法读取到 BVNC,指定使用 22.102.54.38

      接着跑 QT 例程时打印读取不到固件 rgx.fw.22.102.54.38。

      root@dragonboard:~# dmesg | grep -i pvr
      [    8.367677] pvrsrvkm: loading out-of-tree module taints kernel.
      [    8.423943] pvrsrvkm 1800000.gpu: set gpu core rate:504000000 freq:504000000-950000uV dfs:0x00000001
      [    8.423955] pvrsrvkm 1800000.gpu: set gpu core rate:504000000 freq:472500000-950000uV dfs:0x00000002
      [    8.423961] pvrsrvkm 1800000.gpu: set gpu core rate:504000000 freq:441000000-950000uV dfs:0x00000004
      [    8.423966] pvrsrvkm 1800000.gpu: set gpu core rate:252000000 freq:252000000-950000uV dfs:0x00000001
      [    8.424210] pvrsrvkm 1800000.gpu: idle:0 dvfs:0 power:0 Yes mode:1 volt:1000000 core:504000000
      [    8.424755] WARNING: CPU: 1 PID: 271 at /home/lzcyf/SVN_Code/MainBoard/longan/kernel/linux-5.4/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/rgx_sunxi/sunxi_platform.c:122 switch_interl_dfs+0x3c/0x48 [pvrsrvkm]
      [    8.424759] Modules linked in: pvrsrvkm(O+) sunxi_ve
      [    8.424858] pc : switch_interl_dfs+0x3c/0x48 [pvrsrvkm]
      [    8.424923] lr : switch_interl_dfs+0x24/0x48 [pvrsrvkm]
      [    8.425064]  switch_interl_dfs+0x3c/0x48 [pvrsrvkm]
      [    8.425126]  sunxiPrePowerState+0x74/0xa0 [pvrsrvkm]
      [    8.425188]  RGXBvncInitialiseConfiguration+0x11c/0x69c [pvrsrvkm]
      [    8.425249]  RGXRegisterDevice+0x430/0x1240 [pvrsrvkm]
      [    8.425312]  PVRSRVDeviceCreate+0x478/0xe68 [pvrsrvkm]
      [    8.425375]  pvr_drm_load+0x70/0x104 [pvrsrvkm]
      [    8.425437]  pvr_probe+0x54/0x94 [pvrsrvkm]
      [    8.425550]  pvr_init+0x4c/0x1000 [pvrsrvkm]
      [    8.433002] PVR_K:  271: Read BVNC 0.0.0.0 from HW device registers
      [    8.448535] PVR_K:(Error):   271: HW device BVNC configuration not found! in RGXBvncInitialiseConfiguration()
      [    8.464620] PVR_K:  271: Reverting to compile time BVNC 22.102.54.38
      [    8.483510] PVR_K:  271: RGX Device initialised with BVNC 22.102.54.38
      [    8.496570] [drm] Initialized pvr 1.10.5260539 20170530 for 1800000.gpu on minor 0
      [   11.746741] pvrsrvkm 1800000.gpu: Direct firmware load for rgx.fw.22.102.54.38 failed with error -2
      [   11.746781] PVR_K:(Error):   730: RGXLoadFirmware: request_firmware('rgx.fw.22.102.54.38') failed (-2), trying 'rgx.fw.22.102p.54.38'
      [   11.746921] pvrsrvkm 1800000.gpu: Direct firmware load for rgx.fw.22.102p.54.38 failed with error -2
      [   11.746942] PVR_K:(Error):   730: RGXLoadFirmware: request_firmware('rgx.fw.22.102p.54.38') failed (-2), trying 'rgx.fw'
      [   11.747071] pvrsrvkm 1800000.gpu: Direct firmware load for rgx.fw failed with error -2
      [   11.747091] PVR_K:(Fatal):   730: RGXLoadFirmware: request_firmware('rgx.fw') failed (-2)
      [   11.747098] PVR_K:(Error):   730: InitFirmware: RGXLoadFirmware failed
      [   11.747106] PVR_K:(Error):   730: RGXInit: InitFirmware failed (4)
      [   11.747115] PVR_K:(Error):   730: PVRSRVDeviceInitialise: Initialisation of Rogue device failed (PVRSRV_ERROR_INIT_FAILURE)
      [   11.747124] PVR_K:(Error):   730: PVRSRVDeviceInitialise: Services failed to finalise the device (PVRSRV_ERROR_NOT_INITIALISED)
      [   11.747140] PVR_K:(Error):   730: PVRSRVCommonDeviceOpen: Failed to initialise device (PVRSRV_ERROR_NOT_INITIALISED)
      [   11.749471] PVR_K:(Error):   730: PVRSRVCommonDeviceOpen: Driver already in bad state. Device open failed.
      

      将固件 rgx.fw.22.102.54.38 放到 /lib/firmware/ 下,重启系统后再次安装 pvrsrvkm.ko 后跑 QT 例程,dmesg 可看到下面的打印信息

      好像是说 gpu 电源没起来?处于 idle 模式?

      [   12.918945] PVR_K:(Error):   773: PollForValueKM: Timeout. Expected 0x1 but found 0x0 (mask 0xffffffff).
      [   12.918959] PVR_K:(Error):   773: RGXPostPowerState: Polling for 'FW started' flag failed.
      [   12.918967] PVR_K:  773: BIF0 - OK
      [   12.918977] PVR_K:  773: RGX FW State: OK (HWRState 0x00000000: )
      [   12.918986] PVR_K:  773: RGX FW Power State: RGXFWIF_POW_OFF (APM enabled: 0 ok, 0 denied, 0 non-idle, 0 other, 0 total. Latency: 100 ms)
      [   12.918994] PVR_K:  773: RGX DVFS: 0 frequency changes. Current frequency: 504 MHz (sampled at 2dec1c5ce)
      [   12.919000] PVR_K:  773: RGX FW OS 0 State: 0x00000000 (Active: No, Freelists: Not Ok, Grow Request Pending: No)
      [   12.919034] PVR_K:  773: Number of HWR: GP(0/0+0), 2D(0/0+0), TA(0/0+0), 3D(0/0+0), CDM(0/0+0), FALSE(0,0,0,0,0)
      [   12.919043] PVR_K:  773: DM 0 (GP)
      [   12.919056] PVR_K:  773: DM 1 (HWRflags 0x00000000: working; )
      [   12.919065] PVR_K:  773: DM 2 (HWRflags 0x00000000: working; )
      [   12.919074] PVR_K:  773: DM 3 (HWRflags 0x00000000: working; )
      [   12.919083] PVR_K:  773: DM 4 (HWRflags 0x00000000: working; )
      [   12.919092] PVR_K:  773: ------[ RGX registers ]------
      [   12.919100] PVR_K:  773: RGX Register Base Address (Linear):   0x00000000867a8d2b
      [   12.919104] PVR_K:  773: RGX Register Base Address (Physical): 0x01800000
      [   12.919113] PVR_K:  773: CORE_ID                       : 0x0000000000000000
      [   12.919117] PVR_K:  773: CORE_REVISION                 : 0x00000000
      [   12.919121] PVR_K:  773: DESIGNER_REV_FIELD1           : 0x00000000
      [   12.919125] PVR_K:  773: DESIGNER_REV_FIELD2           : 0x00000000
      [   12.919130] PVR_K:  773: CHANGESET_NUMBER              : 0x0000000000000000
      [   12.919135] PVR_K:  773: CLK_CTRL                      : 0x0000000000000000
      [   12.919140] PVR_K:  773: CLK_STATUS                    : 0x0000000000000000
      [   12.919144] PVR_K:  773: CLK_CTRL2                     : 0x0000000000000000
      [   12.919149] PVR_K:  773: CLK_STATUS2                   : 0x0000000000000000
      [   12.919154] PVR_K:  773: EVENT_STATUS                  : 0x00000000
      [   12.919158] PVR_K:  773: TIMER                         : 0x0000000000000000
      [   12.919163] PVR_K:  773: BIF_FAULT_BANK0_MMU_STATUS    : 0x00000000
      [   12.919167] PVR_K:  773: BIF_FAULT_BANK0_REQ_STATUS    : 0x0000000000000000
      [   12.919172] PVR_K:  773: BIF_FAULT_BANK1_MMU_STATUS    : 0x00000000
      [   12.919176] PVR_K:  773: BIF_FAULT_BANK1_REQ_STATUS    : 0x0000000000000000
      [   12.919180] PVR_K:  773: BIF_MMU_STATUS                : 0x00000000
      [   12.919184] PVR_K:  773: BIF_MMU_ENTRY                 : 0x00000000
      [   12.919188] PVR_K:  773: BIF_MMU_ENTRY_STATUS          : 0x0000000000000000
      [   12.919193] PVR_K:  773: BIF_STATUS_MMU                : 0x00000000
      [   12.919197] PVR_K:  773: BIF_READS_EXT_STATUS          : 0x00000000
      [   12.919201] PVR_K:  773: BIF_READS_INT_STATUS          : 0x00000000
      [   12.919206] PVR_K:  773: BIFPM_STATUS_MMU              : 0x00000000
      [   12.919210] PVR_K:  773: BIFPM_READS_EXT_STATUS        : 0x00000000
      [   12.919214] PVR_K:  773: BIFPM_READS_INT_STATUS        : 0x00000000
      [   12.919218] PVR_K:  773: Warning: BRN44871 is present
      [   12.919223] PVR_K:  773: BIF_CAT_BASE_INDEX            : 0x0000000000000000
      [   12.919227] PVR_K:  773: BIF_CAT_BASE0                 : 0x0000000000000000
      [   12.919232] PVR_K:  773: BIF_CAT_BASE1                 : 0x0000000000000000
      [   12.919236] PVR_K:  773: BIF_CAT_BASE2                 : 0x0000000000000000
      [   12.919240] PVR_K:  773: BIF_CAT_BASE3                 : 0x0000000000000000
      [   12.919245] PVR_K:  773: BIF_CAT_BASE4                 : 0x0000000000000000
      [   12.919249] PVR_K:  773: BIF_CAT_BASE5                 : 0x0000000000000000
      [   12.919253] PVR_K:  773: BIF_CAT_BASE6                 : 0x0000000000000000
      [   12.919258] PVR_K:  773: BIF_CAT_BASE7                 : 0x0000000000000000
      [   12.919262] PVR_K:  773: BIF_CTRL_INVAL                : 0x00000000
      [   12.919266] PVR_K:  773: BIF_CTRL                      : 0x00000000
      [   12.919271] PVR_K:  773: BIF_PM_CAT_BASE_VCE0          : 0x0000000000000000
      [   12.919275] PVR_K:  773: BIF_PM_CAT_BASE_TE0           : 0x0000000000000000
      [   12.919280] PVR_K:  773: BIF_PM_CAT_BASE_ALIST0        : 0x0000000000000000
      [   12.919284] PVR_K:  773: BIF_PM_CAT_BASE_VCE1          : 0x0000000000000000
      [   12.919288] PVR_K:  773: BIF_PM_CAT_BASE_TE1           : 0x0000000000000000
      [   12.919293] PVR_K:  773: BIF_PM_CAT_BASE_ALIST1        : 0x0000000000000000
      [   12.919297] PVR_K:  773: PERF_TA_PHASE                 : 0x00000000
      [   12.919301] PVR_K:  773: PERF_TA_CYCLE                 : 0x00000000
      [   12.919305] PVR_K:  773: PERF_3D_PHASE                 : 0x00000000
      [   12.919309] PVR_K:  773: PERF_3D_CYCLE                 : 0x00000000
      [   12.919314] PVR_K:  773: PERF_TA_OR_3D_CYCLE           : 0x00000000
      [   12.919318] PVR_K:  773: PERF_TA_AND_3D_CYCLE          : 0x00000000
      [   12.919322] PVR_K:  773: PERF_COMPUTE_PHASE            : 0x00000000
      [   12.919327] PVR_K:  773: PERF_COMPUTE_CYCLE            : 0x00000000
      [   12.919331] PVR_K:  773: PM_PARTIAL_RENDER_ENABLE      : 0x00000000
      [   12.919335] PVR_K:  773: ISP_RENDER                    : 0x00000000
      [   12.919339] PVR_K:  773: TLA_STATUS                    : 0x0000000000000000
      [   12.919344] PVR_K:  773: MCU_FENCE                     : 0x0000000000000000
      [   12.919348] PVR_K:  773: VDM_CONTEXT_STORE_STATUS      : 0x00000000
      [   12.919352] PVR_K:  773: VDM_CONTEXT_STORE_TASK0       : 0x0000000000000000
      [   12.919357] PVR_K:  773: VDM_CONTEXT_STORE_TASK1       : 0x0000000000000000
      [   12.919361] PVR_K:  773: VDM_CONTEXT_STORE_TASK2       : 0x0000000000000000
      [   12.919365] PVR_K:  773: VDM_CONTEXT_RESUME_TASK0      : 0x0000000000000000
      [   12.919370] PVR_K:  773: VDM_CONTEXT_RESUME_TASK1      : 0x0000000000000000
      [   12.919374] PVR_K:  773: VDM_CONTEXT_RESUME_TASK2      : 0x0000000000000000
      [   12.919378] PVR_K:  773: ISP_CTL                       : 0x00000000
      [   12.919382] PVR_K:  773: ISP_STATUS                    : 0x00000000
      [   12.919386] PVR_K:  773: MTS_INTCTX                    : 0x00000000
      [   12.919391] PVR_K:  773: MTS_BGCTX                     : 0x00000000
      [   12.919395] PVR_K:  773: MTS_BGCTX_COUNTED_SCHEDULE    : 0x00000000
      [   12.919399] PVR_K:  773: MTS_SCHEDULE                  : 0x00000000
      [   12.919403] PVR_K:  773: MTS_GPU_INT_STATUS            : 0x00000000
      [   12.919408] PVR_K:  773: CDM_CONTEXT_STORE_STATUS      : 0x00000000
      [   12.919412] PVR_K:  773: CDM_CONTEXT_PDS0              : 0x0000000000000000
      [   12.919417] PVR_K:  773: CDM_CONTEXT_PDS1              : 0x0000000000000000
      [   12.919421] PVR_K:  773: CDM_TERMINATE_PDS             : 0x0000000000000000
      [   12.919425] PVR_K:  773: CDM_TERMINATE_PDS1            : 0x0000000000000000
      [   12.919430] PVR_K:  773: SIDEKICK_IDLE                 : 0x00000000
      [   12.919434] PVR_K:  773: SLC_IDLE                      : 0x00000000
      [   12.919438] PVR_K:  773: SLC_STATUS0                   : 0x00000000
      [   12.919442] PVR_K:  773: SLC_STATUS1                   : 0x0000000000000000
      [   12.919447] PVR_K:  773: SLC_STATUS2                   : 0x0000000000000000
      [   12.919451] PVR_K:  773: SLC_CTRL_BYPASS               : 0x00000000
      [   12.919456] PVR_K:  773: SLC_CTRL_MISC                 : 0x0000000000000000
      [   12.919461] PVR_K:  773: MIPS_ADDR_REMAP1_CONFIG1      : 0x00000000
      [   12.919465] PVR_K:  773: MIPS_ADDR_REMAP1_CONFIG2      : 0x0000000000000000
      [   12.919470] PVR_K:  773: MIPS_ADDR_REMAP2_CONFIG1      : 0x00000000
      [   12.919474] PVR_K:  773: MIPS_ADDR_REMAP2_CONFIG2      : 0x0000000000000000
      [   12.919478] PVR_K:  773: MIPS_ADDR_REMAP3_CONFIG1      : 0x00000000
      [   12.919483] PVR_K:  773: MIPS_ADDR_REMAP3_CONFIG2      : 0x0000000000000000
      [   12.919487] PVR_K:  773: MIPS_ADDR_REMAP4_CONFIG1      : 0x00000000
      [   12.919491] PVR_K:  773: MIPS_ADDR_REMAP4_CONFIG2      : 0x0000000000000000
      [   12.919495] PVR_K:  773: MIPS_ADDR_REMAP5_CONFIG1      : 0x00000000
      [   12.919500] PVR_K:  773: MIPS_ADDR_REMAP5_CONFIG2      : 0x0000000000000000
      [   12.919504] PVR_K:  773: MIPS_WRAPPER_CONFIG           : 0x0000000000000000
      [   12.919508] PVR_K:  773: MIPS_EXCEPTION_STATUS         : 0x00000000
      [   12.983167] Modules linked in: dc_sunxi(O) gc030a_mipi gc2385_mipi gc5025_mipi vin_v4l2 vin_io sunxi_thermal videobuf2_dma_contig nvmem_sunxi_sid pvrsrvkm(O) sunxi_ve
      [   13.019045] pc : OSCPUCacheFlushRangeKM+0x50/0x80 [pvrsrvkm]
      [   13.025491] lr : CacheOpPMRExec+0x99c/0xb18 [pvrsrvkm]
      [   13.126813]  OSCPUCacheFlushRangeKM+0x50/0x80 [pvrsrvkm]
      [   13.132899]  CacheOpPMRExec+0x99c/0xb18 [pvrsrvkm]
      [   13.138422]  CacheOpValExec+0x48/0xb0 [pvrsrvkm]
      [   13.143751]  RGXDumpRGXRegisters+0x3fdc/0x4ba8 [pvrsrvkm]
      [   13.149899]  RGXPostPowerState+0x14c/0x1b0 [pvrsrvkm]
      [   13.155687]  PVRSRVSetDevicePowerStateKM+0x174/0x240 [pvrsrvkm]
      [   13.162435]  PVRSRVDeviceFinalise+0x180/0x4e4 [pvrsrvkm]
      [   13.168504]  PVRSRVDeviceInitialise+0x108/0x2a4 [pvrsrvkm]
      [   13.174750]  PVRSRVCommonDeviceOpen+0x98/0x128 [pvrsrvkm]
      [   13.180899]  pvr_drm_open+0x50/0x78 [pvrsrvkm]
      
      

      查看源码,有一些提示
      9d3315ec-6e3f-4c22-9334-41370911275d-image.png

      直接翻译注释

      当bFirmwareStarted失败时,可以通过执行以下调试转储获得一些信息,但不幸的是,如果未启动的原因是GPU电源未打开,则可能存在潜在危险。
      然而,如果我们已经到达这一点,系统层已经返回没有错误,我们假设GPU电源确实是ON。
      

      设备树 board.dts 配置如下

      &gpu {
        gpu_idle = <0>;
        dvfs_status = <1>;
        pll_rate = <504000>;
        independent_power = <0>;
        operating-points = <
          /* KHz   uV */
          504000 950000
          472500 950000
          441000 950000
          252000 950000
         >;
         gpu-supply = <&reg_dcdc4>;
      };
      

      linux menuconfig:
      1、打开 DRM
      f15a47eb-3ea0-4486-afdf-f3d0f5db02cc-image.png
      2、选择 GPU 为 ge8300
      d17082b3-2d00-47ea-89c2-1d40cc29bc8e-image.png

      有大神知道怎么搞吗,linux5.4 下无法使用 gpu,而编译安卓的固件就可以,Linux的固件就不行。

      发布在 Linux
      L
      afaf
    • A133 Linux(longan) 怎么禁用 optee

      https://bbs.aw-ol.com/topic/3324/t113-tina-linux-禁用-optee-启动?_=1701823385219

      发布在 Linux
      L
      afaf
    • 回复: A133 Linux GPU 测试例程

      @awwwwa 感谢回复!glmark2 安卓才有,linux 下测试只能自己移植吗,我这边使用的是 Linux,不采用安卓系统。

      另外我参考文档,能不能直接找到 EGL 跟 GLES 的库,加上图中的例程代码直接编译运行?
      a3856c57-9828-4fca-879a-59ffda1948a3-image.png

      我找到安卓下有提供到库,但很难编译通过(使用 longan/build/toolchain 中gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu.tar.xz )
      6f705d11-b9dd-4963-a2fd-893adce412f3-image.png

      发布在 Linux
      L
      afaf
    • A133 Linux GPU 测试例程

      A133 不使用安卓系统,直接在 longan/ 目录下编译生成 Linux 固件。

      想要测试 GPU,已经配置内核打开 DRM 跟 ge8300 gpu,系统运行后手动安装了 gpu 驱动,但是没有例程可以测试,请问该怎么测试 GPU?官方有没有提供测试例程还有 OpenGL ES 的 arm64 库?

      发布在 Linux
      L
      afaf
    • 1 / 1