保存framebuffer数据的两种方法(gsnap和T32 d.image命令)及lookat工具使用

1.save framebuffer

(1) method1:    we can dump mem,and use t32 to resume framebuffer.

Kernel space Framebuffer address:

setup_fb_mem ph vr screen_base 0xdec00000

该FB地址亦可以在项目中dts中查到

d.image 0xdec00000 480. 800. /RGBX888

Bootloader space framebbuffer address:

#define FB_RAM_BASE                        (LPDDR0_BASE_ADDR + 0x05f00000)


(2)method2:    adb shell gsnap /data/1.jpg /dev/graphics/fb0
                          adb pull /data/1.jpg D:\


2.save dispc && dsi register's value.

展讯lookat工具,查看统一编址的物理寄存器值,用法介绍

Usage: lookat [-l nword] [-s value] [-h] addr_in_hex
get/set the value of IO reg at addr_in_hex
  -l nword     print values of nword continous regs start from
               addr_in_hex in a formated way
  -s value     set a reg at addr_in_hex to value
  -h           print this message

 NOTE:
 * the addr_in_hex should be 4-byte aligned in hex form
 * Default is physical address, Using Virtual address If the
 * parameters are capital letter: Only the [-L],[-S],(Read/Write)
 * will use virtual address


(1)step1:adb shell(enter phone's shell)
(2)step2:lookat -l 50 0x21000000(print dispc register value with lookat tool)
(3)step3:lookat -l 50 0x60100000(print dsi register value with lookat tool)

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值