您尚未登录。

#1 全志 SOC » 关于tina linux,Buildroot-YuzukiSBC不能正常运行SDL程序的问题 » 2024-01-20 20:17:44

wj8331585
回复: 0

最近在T113平台移植Funkey OS,而Funkey里面游戏都是基于SDL的,参照大佬的帖子移植SDL1.2.15   https://bbs.aw-ol.com/topic/3727/d1s%E7%A7%BB%E6%A4%8Dsdl1-2-15%E7%89%88%E6%9C%AC ,发现不管是在tina和Buildroot-YuzukiSBC下都无法正常运行。提示错误如下:




# ./main
[  812.542963] [DISP] var_to_disp_fb,line:513:
[  812.542969] invalid bits_per_pixel :8
[  812.551818] [DISP] var_to_disp_fb,line:513:
[  812.551821] invalid bits_per_pixel :8
[  812.560611] [DISP] var_to_disp_fb,line:513:
[  812.560614] invalid bits_per_pixel :8
[  812.569450] [DISP] var_to_disp_fb,line:513:
[  812.569454] invalid bits_per_pixel :8
[  812.578308] [DISP] var_to_disp_fb,line:513:
[  812.578311] invalid bits_per_pixel :8
[  812.587165] [DISP] var_to_disp_fb,line:513:
[  812.587168] invalid bits_per_pixel :8
[  812.595991] [DISP] var_to_disp_fb,line:513:
[  812.595994] invalid bits_per_pixel :8
[  812.604816] [DISP] var_to_disp_fb,line:513:
[  812.604819] invalid bits_per_pixel :8
[  812.613625] [DISP] var_to_disp_fb,line:513:
[  812.613628] invalid bits_per_pixel :8
[  812.622600] [DISP] var_to_disp_fb,line:513:
[  812.622604] invalid bits_per_pixel :8
[  812.631435] [DISP] var_to_disp_fb,line:513:
[  812.631437] invalid bits_per_pixel :8
[  812.640232] [DISP] var_to_disp_fb,line:513:
[  812.640235] invalid bits_per_pixel :8
[  812.649049] [DISP] var_to_disp_fb,line:513:
[  812.649052] invalid bits_per_pixel :8
[  812.657861] [DISP] var_to_disp_fb,line:513:
[  812.657864] invalid bits_per_pixel :8
[  812.666670] [DISP] var_to_disp_fb,line:513:
[  812.666673] invalid bits_per_pixel :8
[  812.675488] [DISP] var_to_disp_fb,line:506:
[  812.675492] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.685323] [DISP] var_to_disp_fb,line:506:
[  812.685327] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.695048] [DISP] var_to_disp_fb,line:506:
[  812.695052] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.704746] [DISP] var_to_disp_fb,line:506:
[  812.704750] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.714433] [DISP] var_to_disp_fb,line:506:
[  812.714439] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.724125] [DISP] var_to_disp_fb,line:506:
[  812.724129] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.733960] [DISP] var_to_disp_fb,line:506:
[  812.733965] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.743663] [DISP] var_to_disp_fb,line:506:
[  812.743667] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.753353] [DISP] var_to_disp_fb,line:506:
[  812.753357] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.763039] [DISP] var_to_disp_fb,line:506:
[  812.763047] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.772735] [DISP] var_to_disp_fb,line:506:
[  812.772739] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.782460] [DISP] var_to_disp_fb,line:506:
[  812.782465] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.792150] [DISP] var_to_disp_fb,line:506:
[  812.792154] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.801843] [DISP] var_to_disp_fb,line:506:
[  812.801849] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.811537] [DISP] var_to_disp_fb,line:506:
[  812.811541] invalid fmt,off<a:24,r:16,g:8,b:0>
[  812.903009] [DISP] var_to_disp_fb,line:513:
[  812.903014] invalid bits_per_pixel :8
[  812.911856] [DISP] var_to_disp_fb,line:513:
[  812.911859] invalid bits_per_pixel :8
[  812.920648] [DISP] var_to_disp_fb,line:513:
[  812.920651] invalid bits_per_pixel :8
[  812.929497] [DISP] var_to_disp_fb,line:513:
[  812.929500] invalid bits_per_pixel :8
[  812.938354] [DISP] var_to_disp_fb,line:513:
[  812.938357] invalid bits_per_pixel :8
[  812.947181] [DISP] var_to_disp_fb,line:513:
[  812.947184] invalid bits_per_pixel :8
[  812.956005] [DISP] var_to_disp_fb,line:513:
[  812.956008] invalid bits_per_pixel :8
[  812.964816] [DISP] var_to_disp_fb,line:513:
[  812.964821] invalid bits_per_pixel :8
[  812.973626] [DISP] var_to_disp_fb,line:513:
[  812.973629] invalid bits_per_pixel :8
[  812.982471] [DISP] var_to_disp_fb,line:513:
[  812.982475] invalid bits_per_pixel :8
[  812.991263] [DISP] var_to_disp_fb,line:513:
[  812.991266] invalid bits_per_pixel :8
[  813.000086] [DISP] var_to_disp_fb,line:513:
[  813.000089] invalid bits_per_pixel :8
[  813.008896] [DISP] var_to_disp_fb,line:513:
[  813.008899] invalid bits_per_pixel :8
[  813.017705] [DISP] var_to_disp_fb,line:513:
[  813.017707] invalid bits_per_pixel :8
[  813.026518] [DISP] var_to_disp_fb,line:513:
[  813.026521] invalid bits_per_pixel :8
[  813.035439] [DISP] var_to_disp_fb,line:506:
[  813.035444] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.045148] [DISP] var_to_disp_fb,line:506:
[  813.045153] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.054835] [DISP] var_to_disp_fb,line:506:
[  813.054839] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.064532] [DISP] var_to_disp_fb,line:506:
[  813.064536] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.074219] [DISP] var_to_disp_fb,line:506:
[  813.074223] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.083951] [DISP] var_to_disp_fb,line:506:
[  813.083955] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.093645] [DISP] var_to_disp_fb,line:506:
[  813.093649] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.103335] [DISP] var_to_disp_fb,line:506:
[  813.103340] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.113020] [DISP] var_to_disp_fb,line:506:
[  813.113024] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.122902] [DISP] var_to_disp_fb,line:506:
[  813.122908] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.132612] [DISP] var_to_disp_fb,line:506:
[  813.132616] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.142309] [DISP] var_to_disp_fb,line:506:
[  813.142313] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.152003] [DISP] var_to_disp_fb,line:506:
[  813.152009] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.161687] [DISP] var_to_disp_fb,line:506:
[  813.161691] invalid fmt,off<a:24,r:16,g:8,b:0>
[  813.171380] [DISP] var_to_disp_fb,line:506:
[  813.171384] invalid fmt,off<a:24,r:16,g:8,b:0>
Segmentation fault
#

测试SDL程序
#include <stdio.h>
#include <stdlib.h>
#include <SDL.h>

int main(int argc, char **argv)
{
    SDL_Rect rt = {0};
    SDL_Surface *screen = NULL;

    SDL_Init(SDL_INIT_VIDEO);
    screen = SDL_SetVideoMode(320, 240, 16, SDL_HWSURFACE);

    SDL_FillRect(screen, &screen->clip_rect, SDL_MapRGB(screen->format, 0xff, 0x00, 0x00));

    rt.x = 50;
    rt.y = 50;
    rt.w = 30;
    rt.h = 30;
    SDL_FillRect(screen, &rt, SDL_MapRGB(screen->format, 0x00, 0xff, 0x00));

    rt.x = 100;
    rt.y = 100;
    rt.w = 50;
    rt.h = 100;
    SDL_FillRect(screen, &rt, SDL_MapRGB(screen->format, 0x00, 0x00, 0xff));

    SDL_Flip(screen);
    SDL_Delay(3000);
    SDL_Quit();
    return 0;
}



有人遇到这样的情况吗?

#2 全志 SOC » t113 tina linux » 2023-12-28 23:04:52

wj8331585
回复: 0

QQ图片20231228225925.jpg
有谁遇到过这种问题吗?纠结好久了。

#7 Re: 全志 SOC » 请教F1C100S的USB如何可以变成MTP设备方便文件传输 » 2023-07-07 10:51:20

可以用USB RNDIS网卡NFS挂载文件系统,比MTP好用多了。

#12 Re: 全志 SOC » 开源一块 V3s 小板子 » 2023-07-03 13:36:34

板子布局很漂亮,是我喜欢的类型

#16 Re: 全志 SOC » 试试F1C100s的硬件游标HWC » 2023-06-21 17:18:42

"F1C100s支持硬件游标"手册上没见有说啊。

#19 Re: 全志 SOC » 为了精华特意制作F1c200s-MP4播放器,支持硬件H264(开源板子和原理给个精华) » 2023-06-16 17:24:35

用的主线linux参考“逸俊晨晖”大佬的gstreamer使用openmax调用cedar硬解码,效果不是很好。分辨率上去就卡了。mplayer硬解可以指点一下吗?

#20 Re: 全志 SOC » 玩转RT-Thread之荔枝派Nano(全志F1C100S) 新手上路 » 2023-06-14 15:53:46

一直出现这错误,[E/MMC] [err]:0x00000100,  RTO
[E/MMC] mmc cmd 8 err
[E/MMC] [err]:0x00000100,  RTO
[E/MMC] mmc cmd 5 err
[E/MMC] [err]:0x00000100,  RTO
[E/MMC] mmc cmd 55 err
[E/MMC] [err]:0x00000100,  RTO
[E/MMC] mmc cmd 55 err
[E/MMC] [err]:0x00000100,  RTO
[E/MMC] mmc cmd 55 err
[E/MMC] [err]:0x00000100,  RTO
[E/MMC] mmc cmd 55 err
[E/MMC] [err]:0x00000100,  RTO
[E/MMC] mmc cmd 1 err
[E/MMC] [err]:0x00000100,  RTO
[E/MMC] mmc cmd 1 err
[E/MMC] [err]:0x00000100,  RTO
[E/MMC] mmc cmd 1 err

#21 Re: 全志 SOC » T113 MQ硬解,声音完美 » 2023-06-14 10:36:30

卖菜老汉 说:

楼主用什么播放器播的?

应该是gstreamer

#22 Re: 全志 SOC » F1C200s主线gstreamer使用openmax调用cedar硬解码 » 2023-06-11 09:59:38

mpeg4解码用上面的方法,好像播放不了avi视频

#23 Re: 全志 SOC » F1C200s主线gstreamer使用openmax调用cedar硬解码 » 2023-06-11 09:58:45

请问 Caught SIGSEGV 问题解决了吗?我按照楼主的方法更改了代码,重新编译后还会出现同样的问题

#24 Re: 全志 SOC » 测试测试 g_serial / g_ether USB Gadget (RNDIS) » 2023-05-30 15:33:43

奇怪了。我安装了这个驱动。还是被识别成串口

#26 Re: 全志 SOC » V3s使用gstreamer的插件openmax调用cedar硬解码,荔枝派zero测试通过 » 2023-05-11 11:56:52

请问楼主,我软件都错误了,我是哪里错误了吗?

# [   34.407766] vcc5v0: disabling

#
#
# gst-launch-1.0 filesrc location=xiaotiaowa.mp4 ! qtdemux ! avdec_h264 ! autovi
deoconvert ! fbdevsink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
WARNING: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: Delayed linking failed.
Additional debug info:
../gst/parse/grammar.y(510): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
failed delayed linking some pad of GstQTDemux named qtdemux0 to some pad of avdec_h264 named avdec_h264-0
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: Internal data stream error.
Additional debug info:
qtdemux.c(6607): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
streaming stopped, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
# [   63.767872] crng init done

#
#

#27 Re: 全志 SOC » V3s使用gstreamer的插件openmax调用cedar硬解码,荔枝派zero测试通过 » 2023-05-10 17:27:02

我也出现了这个错误 。

Wpointer-arith -Wundef -Wmissing-prototypes -Wdeclaration-after-statement -Wold-style-definition -Waggregate-return -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -fPIC -pthread -DHAVE_CONFIG_H -MD -MQ omx/libgstomx.so.p/gstomxvideo.c.o -MF omx/libgstomx.so.p/gstomxvideo.c.o.d -o omx/libgstomx.so.p/gstomxvideo.c.o -c ../omx/gstomxvideo.c
../omx/gstomxvideo.c: 在函数‘gst_omx_video_get_format_from_omx’中:
../omx/gstomxvideo.c:85:10: 错误: ‘OMX_COLOR_FormatYVU420Planar’未声明(在此函数内第一次使用)
     case OMX_COLOR_FormatYVU420Planar:
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../omx/gstomxvideo.c:85:10: 附注: 每个未声明的标识符在其出现的函数内只报告一次
[9/27] Compiling C object omx/libgstomx.so.p/gstomx.c.o
ninja: build stopped: subcommand failed.
make[1]: *** [package/pkg-generic.mk:293:/home/bob/v3s/test/Buildroot-YuzukiSBC/buildroot/output/build/gst-omx-1.20.1/.stamp_built] 错误 1
make: *** [Makefile:84:_all] 错误 2

#28 Re: 全志 SOC » V3S 如何 LCD 背光调整? » 2023-05-05 15:08:32

 	
backlight: backlight {
		compatible = "pwm-backlight";
		pwms = <&pwm 0 50000 0>;
		brightness-levels = <0 30 40 50 60 70 100>;
		default-brightness-level = <4>;
		power-supply = <&reg_vcc3v3>;
        //enable-gpios = <&pio 1 5 0>;
        //post-pwm-on-delay-ms = <10>;
        //pwm-off-delay-ms = <10>;		
		status = "okay";
	};	

&pwm {
      pinctrl-names = "default";
      //pinctrl-0 = <&pwm0_pins>,<&pwm1_pins>;
	  pinctrl-0 = <&pwm0_pins>;
      status = "okay";
};

pb4可以用做背光,pb5就不行。

#29 Re: 全志 SOC » F1C100s支持MCU接口液晶屏吗? » 2023-05-04 21:55:48

请问楼主最近也想驱动8080接口的屏。请问你驱动了吗?

#30 Re: 全志 SOC » 全志Allwinner V3s我想用以太网使用tftp下载zImage和设备树,使用nfs根文件系统,可是u-boot如何启用以太网呢? » 2023-05-04 17:42:49

你在卖萌吗 说:
PeterCui 说:

知道是什么原因了,是编译器版本问题,必须要用文档中那个版本的编译器,换了就好了,太坑了!

是用的哪个版本的工具链方便分享一下吗,我试了好几个都有一样的问题


也遇到同样的问题,正在用这个版本的编译器编译。

#31 Re: 全志 SOC » 100s的melis2.0启动卡在这个位置是什么原因? » 2023-04-28 18:30:04

jkl 说:

请问一下,100s的melis2.0启动卡在这个位置是什么原因?

你好,SDK能发我下吗?545818496@qq.com

#32 Re: 全志 SOC » 全志melis系统环境搭建、打包、烧录流程 » 2023-04-28 17:25:48

@Sam
jump to kernal
port=4,port_num=1,mul_sel=6 eint_num=1 trigger=2
Mount Parts Thread running.....
partition [D] plug in..
Mount Parts Thread work now.....
.Start Shell from partion 'c'..................................................................................
Mount Parts Thread work end....
set iic clock fail
&&&addr=0x6969637765....
*****0x6969637765 data fail....
&&&&&&&&&&&&0x6972 addr error&&&&&&&&&&
&&&addr=0x6969637765....
*****0x6969637765 data fail....
&&&&&&&&&&&&0x6972 addr error&&&&&&&&&&
&&&addr=0x6969637765....
*****0x6969637765 data fail....

我也遇到这个问题了,你解决了吗?

#35 Re: 全志 SOC » 调通F1C100s的SPI DMA » 2023-02-09 15:33:33

要是有像ST那样有代码生成的IDE就爽歪歪了。

#37 Re: 全志 SOC » V3S和F1C100s的区别 » 2023-02-09 15:10:01

F1C100s跑linux会不会很鸡肋呢?

#38 Re: 全志 SOC » f1c100s入门 » 2023-02-09 15:05:27

裸跑啊。像那些MDA不好配置吧。

#39 Re: 全志 SOC » 新手自制f1c200s开发板 » 2023-02-09 15:02:45

还有空板吗?能否给我一块呢?

#43 Re: 全志 SOC » 发现一个蛮精致的开源掌机叫FunKey,使用的V3s » 2023-02-08 11:29:28

funkey-os官下git下来的编译好几次了都失败.ubuntu18.04

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn