内核发生NULL pointer崩溃时候,pc的值可定位到行:(需要在linux-3.4$ 目录下)
arm-none-linux-gnueabi-addr2line -e vmlinux 0xc000b0e0
monkey-test (UI上有的随机点测稳定性)
monkey -s 1000 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --pct-trackball 0 --pct-nav 0 --pct-majornav 0 --pct-anyevent 0 -v -v -v --throttle 300 1200000000 > /mnt/sdcard/monkey.log 2>&1 &
Oracle VM VirtualBox Ubuntu 映像中共享文件夹:
sudo mount -t vboxsf minicom1 minicom2
//minicom 1为win7, miniccom2 为Ubuntu
memtester 命令, bin文件默认就编译进去这个目录了
cd system/xbin memtester 128M &
aw GPIO基本操作:
int *val = 0;
int re = -1;
re =
script_parser_fetch("power_gpio", "power_on", val,1);
if(SCRIPT_PARSER_OK != re)
{
printf("power_gpio:power_on:type err!");
}
user_gpio_set_t *user_gpio_cfg = (user_gpio_set_t *)val;
printf("power_gpio:power_on:port is %d\n", user_gpio_cfg->port);
printf("power_gpio:power_on:port_num is %d\n", user_gpio_cfg->port_num);
u32 power_gpio_handler =
gpio_request(user_gpio_cfg,1);
gpio_write_one_pin_value(power_gpio_handler, 1, user_gpio_cfg->gpio_name);// write PB3 to enable power @ v3s sdv
//static void buffer_dump(void *buffer, int len)
//{
// int i;
// char *data = (char *)buffer;
//
// for(i=0;i
// {
// printf("%02x", data[i]);
// if((i & 0x07) == 7)
// {
// printf("\n");
// }
// else
// {
// puts(" ");
// }
// }
//}
阅读(1850) | 评论(0) | 转发(0) |