页次: 1
augyy 说:終於解決registered sensor subdev 同找到OV5640 sensor.
但還有新問題 [VFE_WARN] Nobody is waiting on this video buffer,buf = xxxx. 是什麼解決?问题怎么解决的 ,我a33 Linux 用ov2640 也遇到和你一样的问题,怎么解决的
[ 4.001631] [sw_device]:sw_register_device_detect end!
[ 4.001906] [sw_device]:sw_devices_events end!
[ 4.034797] [VFE]Welcome to Video Front End driver
[ 4.036174] [VFE]pdev->id = 0
[ 4.036197] [VFE]dev->mipi_sel = 0
[ 4.036208] [VFE]dev->vip_sel = 0
[ 4.036215] [VFE]dev->isp_sel = 0
[ 4.042369] [VFE_WARN]vfe vpu clock is null
[ 4.042976] [ISP] isp platform_id = 3!
[ 4.042991] [ISP] isp isp_get_driver = bf228d98!
[ 4.043692] [VFE]vfe_init end
[ 4.050236] [VFE]probe_work_handle start!
[ 4.050266] [VFE]v4l2 subdev register input_num = 0
[ 4.050315] axp22_dldo3: Failed to create debugfs directory
[ 4.050335] axp22_ldoio0: Failed to create debugfs directory
[ 4.050353] axp22_eldo2: Failed to create debugfs directory
[ 4.050363] [VFE]vfe sensor detect start! input_num = 0
[ 4.050377] [VFE]Find sensor name is "ov2640", i2c address is 60, type is "YUV" !
[ 4.050387] [VFE]Sub device register "ov2640" i2c_addr = 0x60 start!
[ 4.056822] [VFE_ERR]Error registering v4l2 subdevice No such device!
[ 4.064204] [VFE_ERR]vfe sensor register check error at input_num = 0
[ 4.073642] [VFE]V4L2 device registered as video0
[ 4.073700] [VFE]register_early_suspend @ probe handle!
[ 4.073709] [VFE]probe_work_handle end!
唉,经过了3天的挣扎,发现如果在vfe_v4l2.ko加载之前加载ov5640.ko 就不会出那个问题了。。。哥们,试试。
虽然不出那个问题了,但是我这里依然不能用,我还要继续挣扎。。
[ 6.547587] usbcore: registered new interface driver r8152
[ 6.628724] RTL871X: module init start
[ 6.633078] RTL871X: rtl8723bu v4.3.16_14189.20150519_BTCOEX20150119-5844
[ 6.640630] RTL871X: build time: Dec 9 2020 10:56:49
[ 6.646229] RTL871X: rtl8723bu BT-Coex version = BTCOEX20150119-5844
[ 6.653294] sw_usb_enable_hcd: usbc_num = 1
[ 6.657931] [rtl8188eu]: rtl8188eu module power set by axp.
[ 6.664174] axp22_dldo1: Failed to create debugfs directory
[ 6.670384] [rtl8188eu]: get power regulator failed.
[ 6.675983] [rtl8188eu]: regulator on.
[ 6.680881] [rtl8188eu]: usb wifi power state: on
[ 6.696303] usbcore: registered new interface driver rtl8723bu
[ 6.702801] RTL871X: module init ret=0
[ 6.808275] [VFE]Welcome to Video Front End driver
[ 6.814122] [VFE]pdev->id = 0
[ 6.817412] [VFE]dev->mipi_sel = 0
[ 6.821198] [VFE]dev->vip_sel = 0
[ 6.824869] [VFE]dev->isp_sel = 0
[ 6.834633] [VFE_WARN]vfe vpu clock is null
[ 6.840401] sunxi-pinctrl sunxi-pinctrl: pin already requested
[ 6.846875] sunxi-pinctrl sunxi-pinctrl: pin-140 (csi0) status -22
[ 6.853751] sunxi-pinctrl sunxi-pinctrl: could not get request pin 140 on device sunxi-pinctrl
[ 6.863326] [VFE_ERR]vip0 request pinctrl handle for device [csi0] failed!
[ 6.871048] [ISP] isp platform_id = 3!
[ 6.875203] [ISP] isp isp_get_driver = bf304ca0!
[ 6.880433] [VFE]vfe_init end
[ 6.890075] [VFE]probe_work_handle start!
[ 6.894548] [VFE]v4l2 subdev register input_num = 0
[ 6.900068] axp22_dldo3: Failed to create debugfs directory
[ 6.906283] axp22_ldoio0: Failed to create debugfs directory
[ 6.912645] axp22_eldo2: Failed to create debugfs directory
[ 6.918839] [VFE]vfe sensor detect start! input_num = 0
[ 6.924674] [VFE]Find sensor name is "ov5640", i2c address is 78, type is "YUV" !
[ 6.933004] [VFE]Sub device register "ov5640" i2c_addr = 0x78 start!
[ 6.944770] [VFE]registered sensor subdev is OK!
[ 6.949902] [VFE]Check sensor!
[ 6.966913] [VFE]mclk on
[ 6.990797] Get mali parameter successfully
[ 6.995470] Init Mali gpu successfully
[ 7.000933] Mali: Mali device driver loaded
[ 7.024511] sunxi_i2c_do_xfer()950 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x3c)
[ 7.033729] [VFE_DEV_I2C_ERR]cci_read_a16_d8 error! slave = 0x3c, addr = 0x300a, value = 0xef
[ 7.033736] sunxi_i2c_do_xfer()950 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x3c)
[ 7.052675] [VFE_DEV_I2C_ERR]cci_read_a16_d8 error! slave = 0x3c, addr = 0x300a, value = 0xef
[ 7.052681] sunxi_i2c_do_xfer()950 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x3c)
[ 7.071615] [VFE_DEV_I2C_ERR]cci_read_a16_d8 error! slave = 0x3c, addr = 0x300a, value = 0xef
[ 7.071621] [OV5640]error at sensor_detect
[ 7.085716] [OV5640]chip found is not an target chip.
[ 7.091327] [VFE]mclk off
[ 7.118779] [VFE]vfe sensor subdev unregister!
[ 7.123863] sensor_remove ov5640 sd = ee738e80!
[ 7.128918] [VFE]Sub device register "ov5640" failed!
[ 7.134533] [VFE_ERR]vfe sensor register check error at input_num = 0
[ 7.141936] [VFE]V4L2 device registered as video0
[ 7.147169] [VFE]register_early_suspend @ probe handle!
[ 7.152977] [VFE]probe_work_handle end!
我已经改过了,依然不行,很惆怅。我这个板子的引脚是匹配的,但是无论有没有引脚检测,都不能行。
求助啊,在第一步uboot就卡住了。
fel执行spl-uboot后,检测不到内存卡,mmcinfo会报一个错误:
=> mmcinfo
Card did not respond to voltage select!
完整的uboot启动输出(其实也没多少):
HELLO! BOOT0 is starting!
boot0 version : 3.1.0
reg_addr 0x01f00100 =0x00000000
reg_addr 0x01f00104 =0x00000000
reg_addr 0x01f00108 =0x5aa5a55a
reg_addr 0x01f0010c =0x00000000
reg_addr 0x01f00110 =0x00000000
reg_addr 0x01f00114 =0x00000000
eraly jump fel
U-Boot SPL 2019.01-rc3-g829407b58f-dirty (Feb 05 2021 - 19:01:12 +0800)
DRAM: 1024 MiB
Trying to boot from FEL
U-Boot 2019.01-rc3-g829407b58f-dirty (Feb 05 2021 - 19:01:12 +0800) Allwinner Technology
CPU: Allwinner A33 (SUN8I 1667)
Model: Sinlinx SinA33
DRAM: 1 GiB
MMC: MMC0: 01c20060 = 0x1004140, 01c20088 = 0x0, 01c202c0 = 0x1004140
MMC1: 01c20060 = 0x1004340, 01c2008c = 0x0, 01c202c0 = 0x1004340
Device 'mmc@1c11000': seq 1 is in use by 'mmc@1c10000'
MMC2: 01c20060 = 0x1004740, 01c20090 = 0x0, 01c202c0 = 0x1004740
mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from FAT... Card did not respond to voltage select!
Setting up a 1024x600 lcd console (overscan 0x0)
In: serial
Out: vga
Err: vga
Allwinner mUSB OTG (Peripheral)
Net:
Warning: usb_ether using MAC address from ROM
eth0: usb_ether
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
scanning bus 0 for devices... 2 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
=> mmcinfo
Card did not respond to voltage select!
=>
换个最新版的uboot,发现和 https://whycan.com/t_3633.html 帖子中的流氓兔遇到的问题是一样的,但是我降频了,串口也改了(可能没改对吧)依然不行。
特来求助一下。
按楼主的编译 u-boot 不能从 spi flash 中启动
U-Boot SPL 2018.01-g013ca45-dirty (Nov 25 2019 - 00:01:41)
DRAM: 64 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
mmc_init: -95, time 22
spl: mmc init failed with error: -95
SPL: Unsupported Boot Device!
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
uboot编译的时候 默认配置我选的是TF卡的 你要用spi的
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- licheepi_nano_spiflash_defconfig
make ARCH=arm menuconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j4
在 awtk-port/fb_info.h 中,把FBIO_WAITFORVSYNC的执行结果打印出来看看:
static inline void fb_sync(fb_info_t* info) { int ret = 0; int zero = 0; ret = ioctl(info->fd, FBIO_WAITFORVSYNC, &zero); log_debug("FBIO_WAITFORVSYNC: %d %d\n", ret, zero); return; }
不好意思昨天家里有事所以没及时回复.
今天跟踪了一下, 发现根本没有执行这个fb_sync函数.
此处还有一个我修改的地方, 就是原本我交叉编译完成demoui后, 会出现段错误, 经过调试发现是
if (fb_is_2fb(fb)) {
log_debug("%p, %d, %p\n", fb->fbmem0, size, fb->fbmem1); // 自己加的调试语句
fb->fbmem1 = fb->fbmem0 + size;
memset(fb->fbmem1, 0xff, size); // 段错误所在
}
所以我从上面分配内存的地方进行了修改,
// fb->fbmem0 = (uint8_t*)mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fb->fd, 0); // 变更为下面, size*2
fb->fbmem0 = (uint8_t*)mmap(0, size*2, PROT_READ | PROT_WRITE, MAP_SHARED, fb->fd, 0);
修改了之后就没有段错误了.
之前我并没有进行完整的跟踪, 现在看来, fb_sync是fb_is_1fb时候用的函数, 而我经过fb_open后竟然判定的是fb_is_2fb, 难道是我系统参数某个地方设置错了??
---------------- 更新 -----------------
在去掉了 tslib 的log_debug输出, keyboard 和 mouse 两条线程, 再去掉 lcd_mem_linux_swap 函数中的 printf 后, 界面有了很大的提升, 闪屏明显变少了. 但是核心问题应该不在这里.
一下是自己加了一些输出后的结果:
./demoui
app_root_is_valid:43 app_root != NULL
try /mnt/SDCARD/release/bin
app_root=/mnt/SDCARD/release
========> filename: /dev/fb0
======>
id: (null)
smem_start: 82100000
smem_len: 3072000
type: 0
type_aux: 0
visual: 2
xpanstep: 1
ypanstep: 1
ywrapstep: 0
line_length: 3200
mmio_start: 00000000
mmio_len: 0
accel: 0
capabilities: 0
fb_info_t: /dev/fb0
fb_info_t: xres=800 yres=480 bits_per_pixel=32 mem_size=1536000
fb_info_t: red(16 8) green(8 8) blue(0 8)
!!!, 0xb69f9000, 1536000, 0
!!!1
!!!2
line_length=3200 mem_size=1536000 smem_len=3072000
xres_virtual =800 yres_virtual=960 xpanstep=1 ywrapstep=0
========> fb_open success
========> s_ttyfd >= 0
========> fb is 2fb
========> bgra8888!!!!!!
========> awtk-port/lcd_linux_fb.c:223
ratio=1.000000 800 480
Build at: Nov 21 2019 13:59:50
window preload open
window system_bar open
main
window main open
window preload close
main
main
tslib pointer down:611 418
tslib pointer up:200 396
tslib pointer down:688 253
tslib pointer up:151 316
tslib pointer down:252 351
tslib pointer up:252 351
func_call_parser_parse:42 tokenizer_has_more(tokenizer) == TRUE
func_call_parser_parse:42 tokenizer_has_more(tokenizer) == TRUE
func_call_parser_parse:42 tokenizer_has_more(tokenizer) == TRUE
func_call_parser_parse:42 tokenizer_has_more(tokenizer) == TRUE
ignore_user_input
main to_background
window svg_image open
svg_image
tslib pointer down:781 31
tslib pointer up:781 31
tslib pointer down:777 24
tslib pointer up:777 24
EVT_REQUEST_CLOSE_WINDOW
ignore_user_input
tslib pointer down:775 21
animating ignore input
animating ignore input
animating ignore input
tslib pointer up:775 21
animating ignore input
animating ignore input
animating ignore input
animating ignore input
main
widget_get_prop:1426 widget != NULL && name != NULL && v != NULL
widget_get_prop:1426 widget != NULL && name != NULL && v != NULL
widget_get_prop:1426 widget != NULL && name != NULL && v != NULL
widget_get_prop:1426 widget != NULL && name != NULL && v != NULL
widget_get_prop:1426 widget != NULL && name != NULL && v != NULL
widget_get_prop:1426 widget != NULL && name != NULL && v != NULL
widget_get_prop:1426 widget != NULL && name != NULL && v != NULL
widget_get_prop:1426 widget != NULL && name != NULL && v != NULL
main to_foreground
tslib pointer down:710 394
tslib pointer up:46 452
tslib pointer down:708 390
tslib pointer up:95 418
tslib pointer down:658 303
tslib pointer up:117 323
tslib pointer down:443 273
tslib pointer up:443 273
on_app_exit
这是带有 lcd_mem_linux_swap 的调试输出结果(部分):
./demoui
app_root_is_valid:43 app_root != NULL
try /mnt/SDCARD/release/bin
app_root=/mnt/SDCARD/release
========> filename: /dev/fb0
======> fb->fix:
id: (null)
smem_start: 82100000
smem_len: 3072000
type: 0
type_aux: 0
visual: 2
xpanstep: 1
ypanstep: 1
ywrapstep: 0
line_length: 3200
mmio_start: 00000000
mmio_len: 0
accel: 0
capabilities: 0
fb_info_t: /dev/fb0
fb_info_t: xres=800 yres=480 bits_per_pixel=32 mem_size=1536000
fb_info_t: red(16 8) green(8 8) blue(0 8)
line_length=3200 mem_size=1536000 smem_len=3072000
xres_virtual =800 yres_virtual=960 xpanstep=1 ywrapstep=0
========> fb_open success
========> s_ttyfd >= 0
========> fb is 2fb
========> bgra8888!!!!!!
========> awtk-port/lcd_linux_fb.c:223
ratio=1.000000 800 480
Build at: Nov 21 2019 13:59:50
window preload open
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
window system_bar open
main
window main open
window preload close
main
main
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
tslib pointer down:660 396
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
tslib pointer up:212 408
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
tslib pointer down:700 359
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
tslib pointer up:154 396
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
tslib pointer down:166 394
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
tslib pointer up:603 385
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
FBIOPAN_DISPLAY ret=0 yoffset=480
FBIOPAN_DISPLAY ret=0 yoffset=0
.....
我现在比较纠结的是 为什么屏幕会是 BGRA8888, 32位像素, 这个我改sys_config.fex 貌似不大好用,,我也是一知半解无从下手.
根据坑网上搜索的资料和github上的文档, 对AWTK进行了一直, 系统是全志tina, 但是现在awtk在静态显示界面很好, 遇到窗口动画, 或者按下触摸屏时, 就开始频繁闪烁, 包括出现的屏保界面, 效果请看视频.
不知道如何解决, 就想请大家告知一下对f1c200s移植时的一些注意事项, 包括awtk_config.h的定义, 请大家帮助!
此处是我进行一直的awtk_config.h:
/**
* File: awtk_config.h
* Author: AWTK Develop Team
* Brief: config
*
* Copyright (c) 2018 - 2019 Guangzhou ZHIYUAN Electronics Co.,Ltd.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* License file for more details.
*
*/
/**
* History:
* ================================================================
* 2018-09-12 Li XianJing <xianjimli@hotmail.com> created
*
*/
#ifndef AWTK_CONFIG_H
#define AWTK_CONFIG_H
/**
* 嵌入式系统有自己的main函数时,请定义本宏。
*
* #define USE_GUI_MAIN 1
*/
/**
* 如果需要支持预先解码的位图字体,请定义本宏。一般只在RAM极小时,才启用本宏。
* #define WITH_BITMAP_FONT 1
*/
/**
* 如果支持png/jpeg图片,请定义本宏
*
* #define WITH_STB_IMAGE 1
*/
#define WITH_STB_IMAGE 1
/**
* 如果用stb支持Truetype字体,请定义本宏
*
* #define WITH_STB_FONT 1
*/
/**
* 如果用freetype支持Truetype字体,请定义本宏。
*
* #define WITH_FT_FONT 1
*/
#define WITH_FT_FONT 1
/**
* 如果支持从文件系统加载资源,请定义本宏
*
* #define WITH_FS_RES 1
*/
#define WITH_FS_RES 1
/**
* 如果定义本宏,使用标准的UNICODE换行算法,除非资源极为有限,请定义本宏。
*
* #define WITH_UNICODE_BREAK 1
*/
#define WITH_UNICODE_BREAK 1
/**
* 如果定义本宏,将图片解码成BGRA8888格式,否则解码成RGBA8888的格式。
* 当硬件的2D加速需要BGRA格式时,请启用本宏。
*
* #define WITH_BITMAP_BGRA 1
*/
/**
* 如果定义本宏,将不透明的PNG图片解码成BGR565格式,建议定义。
* 另外和LCD的格式保存一致,可以大幅度提高性能。
*
* #define WITH_BITMAP_BGR565 1
*/
#define WITH_BITMAP_BGR565 1
/**
* 如果不需输入法,请定义本宏
*
* #define WITH_NULL_IM 1
*/
/**
* 如果有标准的malloc/free/calloc等函数,请定义本宏
*
* #define HAS_STD_MALLOC 1
*/
/**
* 如果有标准的fopen/fclose等函数,请定义本宏
*
* #define HAS_STDIO 1
*/
/**
* 如果有标准的pthread等函数,请定义本宏
*
* #define HAS_PTHREAD 1
*/
/**
* 如果有优化版本的memcpy函数,请定义本宏
*
* #define HAS_FAST_MEMCPY 1
*/
/**
* 如果出现wcsxxx之类的函数没有定义时,请定义该宏
*
* #define WITH_WCSXXX 1
*/
/**
* 如果启用STM32 G2D硬件加速,请定义本宏
*
* #define WITH_STM32_G2D 1
*/
/**
* 如果启用NXP PXP硬件加速,请定义本宏
*
* #define WITH_PXP_G2D 1
*/
/**
* 在没有GPU时,如果启用agge作为nanovg的后端(较agg作为后端:小,快,图形质量稍差),请定义本宏。
*
* #define WITH_NANOVG_AGGE 1
*/
#define WITH_NANOVG_AGGE 1
/**
* 在没有GPU时,如果启用agg作为nanovg的后端(较agge作为后端:大,慢,图形质量好),请定义本宏。
* 注意:agg是以GPL协议开源。
*
* #define WITH_NANOVG_AGG 1
*/
/**
* 如果启用鼠标指针,请定义本宏
*
* #define ENABLE_CURSOR 1
*/
/**
* 对于低端平台,如果不使用控件动画,请定义本宏。
*
* #define WITHOUT_WIDGET_ANIMATORS 1
*/
/**
* 对于低端平台,如果不使用窗口动画,请定义本宏。
*
* #define WITHOUT_WINDOW_ANIMATORS 1
*/
/**
* 对于低端平台,如果不使用对话框高亮策略,请定义本宏。
*
* #define WITHOUT_DIALOG_HIGHLIGHTER 1
*/
/**
* 对于低端平台,如果不使用扩展控件,请定义本宏。
*
* #define WITHOUT_EXT_WIDGETS 1
*/
/**
* 对于低端平台,如果内存不足以提供完整的FrameBuffer,请定义本宏启用局部FrameBuffer,可大幅度提高渲染性能。
*
* #define FRAGMENT_FRAME_BUFFER_SIZE 32 * 1024
*/
#endif /*AWTK_CONFIG_H*/
视频效果:
目前还是处于demoui的测试方面, 还没有开始动手写程序...
目前用的是nano的核心版,适配的是800480的5吋显示屏,因为没有底板,没有测试过触摸屏的效果。
使用方法:放到SD卡内,解压然后cd 到 bin里,可以执行 ./demo 就ok了。
linux系统基于linux4.15,群里网友那个固件即可,链接: https://whycan.cn/t_2689.html
使用中可能需要一个libstdc++的库文件,我也上传了,放到 /usr/lib32内即可。
欢迎大家使用,本人刚入门,希望一起交流。
请问是如何编译的? scons脚本我实在是不明所以, 请给指个路!
烧录固件下载: 11-8.zip
200s华嵌40pin通用液晶点屏,视频播放不抖动的镜像,背光脚为PE6,PE9(需手动拉高
https://whycan.cn/files/members/1833/VID_20191108_182643.mp4)
请问视频抖动问题如何解决的??
声明: 刚入坑3天, 有很多知其然不知其所以然, 也有很多从坑网搜的资料, 组合在一起的, 如果有任何错误请大家指正.
参考链接: https://whycan.cn/t_3087.html
首先说明一下, 我就只是搞了一下TF卡的, spi的可能会有不同(至少buildroot配置需要很精简, 目前编译出的tar包快300M)
编译环境:
我主系统就是ubuntu18.04, 因为平时主要工作就是写Linux软件, 干脆实体机ubuntu.
内核源码:
git clone -b nano-5.2-tf --depth 1 https://github.com/Lichee-Pi/linux.git
uboot:
git clone -b nano-v2018.01 --depth 1 https://github.com/Lichee-Pi/u-boot.git
buildroot: 2019.08版本
wget https://buildroot.org/downloads/buildroot-2019.08.tar.gz
工具链:
gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabi
配置工具链之类的不说了...
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- licheepi_nano_defconfig
make ARCH=arm menuconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j4
首先,
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- sunxi_defconfig
然后, 修改支持ADB, 参考了https://whycan.cn/t_2179.html的USB Gadget的支持部分, 发现 Linux5.2和4.x的不太一样, 主要配置截图:
Device Drivers -> USB support -> USB Gadget Support
在此提供我的.config配置 : https://whycan.cn/files/members/2372/config_191113.tgz
注意:
1. 直接改名 .config 即可, 不说压缩文件.
2. 这是我menuconfig后生成的.config, 我不确定是否有其他方法发布.config, 如果不合适, 请见谅.
关于USB需要打补丁的问题, 我确认了一下内核源码, 文件名改了, drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c, 已经不需要补丁了.
准备工作完成就进行编译:
# 生成zImage
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j4
# 生成驱动模块
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j4 modules
# 安装驱动模块
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules_install INSTALL_MOD_PATH="./out"
# 生成dtb
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- dtbs -j4
关于dtb, 根据自己的硬件来修改, 坑网资料很多, 在此不在多说.
这里印象中出现过编译错误, 跟我的ubuntu18.04有关, 但是具体的我给忘了.. 如果有遇到, 在回帖吧.
小提示: 推荐使用buildroot内置的工具链! 这个工具链坑了我一天...
此处我勾选了很多应该是无关紧要的东西, qt5, directfb, linuxfb, sdl...... 请大家根据自己的需求去搞一下.
配置:
https://whycan.cn/files/members/2372/config_for_buildroot-2019_08_with_qt.tgz
同样的, 直接改名.config使用, 不是压缩文件.
默认主机名: whycan
默认密码: whycan.cn
请大家自行修改.
最后, 添加adb自启动, 参考 https://whycan.cn/t_2794.html中的9楼.
由于镜像包涉及公司的一些信息, 并且我也没时间在重新编译一个, 所以就不放测试镜像了, 请大家见谅.
末尾, 放一个测试QT的小视频吧(那视频中界面里的方框是中文不能显示, 不要在意这些细节先...):
https://whycan.cn/files/members/2372/121.mp4
不会发视频 只能发链接了...
页次: 1