页次: 1
Tina5.0的系统,全志在uboot和内核显示的logo都是一样的图片,不像其他厂家uboot和内核是不同的显示logo.请问我如何修改,能实现全志在UBOOT阶段和内核阶段显示不一样的logo?
我看了Tina源码,显示logo的函数是在tina5.0_v1.0/kernel/linux-5.4/drivers/video/fbdev/sunxi/disp2/disp路径下的dev_fb.c文件实现
static int Fb_map_kernel_logo(u32 sel, struct fb_info *info)
{
void *vaddr = NULL;
uintptr_t paddr = 0;
void *screen_offset = NULL, *image_offset = NULL;
char *tmp_buffer = NULL;
char *bmp_data = NULL;
struct sunxi_bmp_store s_bmp_info;
struct sunxi_bmp_store *bmp_info = &s_bmp_info;
struct bmp_pad_header bmp_pad_header;
struct bmp_header *bmp_header;
int zero_num = 0;
unsigned int x, y, bmp_bpix, fb_width, fb_height;
unsigned int effective_width, effective_height;
uintptr_t offset;
int i = 0;
struct disp_manager *mgr;
mgr = g_disp_drv.mgr[sel];
paddr = bootlogo_addr;
if (paddr == 0) {
__inf("Fb_map_kernel_logo failed!");
printk("xcm disp test2: Fb_map_kernel_logo 000 !!!!!!! \n");
return Fb_copy_boot_fb(sel, info);
}
printk("xcm disp test2: Fb_map_kernel_logo 001 !!!!!!! \n");
/* parser bmp header */
offset = paddr & ~PAGE_MASK;
vaddr = (void *)Fb_map_kernel(paddr, sizeof(struct bmp_header));
if (vaddr == NULL) {
}
.....
}在这个函数中是执行到return Fb_copy_boot_fb(sel, info)这个分支语句中,拷贝uboot的图片数据到内核中显示,所以uboot和内核显示的logo是一样的。但是按照其他开发平台的,内核阶段显示是video目录下的logo.c文件实现logo_linux_clut224.ppm,也就是企鹅图案。
不知道全志Tina如何也按照其他平台那样,内核阶段也是这样的流程显示logo_linux_clut224.ppm对应的企鹅logo
出厂的SDK,QT版本默认有2个,一个5.11.3,一个5.6,现在我想换成5.12.9,修改了/buildroot/buildroot-201902/package/qt5目录下的Config.in和qt.mk文件,修改如图所示

然后menuconfig进入配置界面,选择5.12.9以后保存后,不管是执行buildroot_saveconfig保存配置和编译命令,都会提示如下错误:
make: Entering directory '/home/tronlong/T113/tina5.0_v1.0/buildroot/buildroot-201902'
package/qt5/qt53d/qt53d.mk:57: *** Package 'qt53d' defined a second time in 'package/qt5/qt53d/'; previous definition was in 'package/qt5/qt53d/'. Stop.请教各位大佬,这个错误怎么解决。
另外tina5.0修改buildroot的QT版本步骤,怎么实现?我上面的操作是否正确
如题所示,就是自己制作了一个动态库.so,比如libxxx.so,想把它打包进系统镜像,然后烧录后是在usr/lib目录下,现在是放到其他位置,可以打包进镜像里。
做的尝试如下,都失败
尝试一、
在sdk目录下,Tina-Linux\Tina-Linux\target\allwinner\t113-bingpi_m2\busybox-init-base-files(其中t113-bingpi_m2为目标板)
下面只有3个文件
我在里面新建usr/lib,然后把libxxx.so放进去,打包生成再烧录,没看到对应的动态库
尝试二、
在上面的Tina-Linux\Tina-Linux\target\allwinner\t113-bingpi_m2\busybox-init-base-files
进入lib目录,我把.so放在当前目录下,打包烧录后,在 lib目录下没看到自己制作的动态库,失败
尝试三 、
如下目录,也就是SDK的package,
Tina-Linux\Tina-Linux\package\busybox-init-base-files\files\usr\lib
分别放到当前目录 和子目录arm_qt\lib文件下
前者失败,后者能在开发板的usr\lib\arm-qt\lib下,能找到自己的动态库
root@TinaLinux:/sys/devices/platform/soc@3000000/2000c00.pwm/pwm/pwmchip0# ls
device power unexport
export subsystem waiting_for_supplier
npwm uevent
root@TinaLinux:/sys/devices/platform/soc@3000000/2000c00.pwm/pwm/pwmchip0# echo
3 > export
root@TinaLinux:/sys/devices/platform/soc@3000000/2000c00.pwm/pwm/pwmchip0# cd pw
root@TinaLinux:/sys/devices/platform/soc@3000000/2000c00.pwm/pwm/pwmchip0/pwm3# echo 1 > enable
[ 296.587997] sunxi_pwm_enable_dual: can't parse pwm device
sh: write error: No such device
如上所示,使能PWM时,提示 sunxi_pwm_enable_dual: can't parse pwm device
sh: write error: No such device
请问这个是啥原因,设备树和内核都按照文档修改了
wujique wrote:
mango wrote:
漂亮,推荐使用 http://g.widora.io 下载git包,填入: https://github.com/wujique/F1C200S_HDK.git
你这仓库中的 ibom.html 真牛逼,好评!
我第一次见,觉得python真是无所不能。
对了,我用CP2104
新手问个问题,就是spiflash 16Mz这么小,它是怎么跑linux系统的?一个uboot+内核+根文件就超过16M了,怎么烧录到flash启动
拉轰的脚踏车 wrote:
redstar wrote:
完全可行,aodzip的tiny200 sdk里面的卡刷就是这么干的,在量产的时候很有优势。
我记@aodzip patch那个是用u-boot的spi 编程命令。
buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 已支持DVP摄像头
http://whycan.com/t_5221.html
(出处:哇酷开发者社区)
好的,我看下,谢谢
页次: 1