;壓檔案 : tar -cf - otg.sh wifi-bt.sh | gzip --best > ../labtool.tgz
; Only view tar files : tar -tvf labtool.tgz
壓檔案
tar -cf /tmp/a.tar bin/11 bin/22 etc/33.bin
就可以呀你想要壓的檔案到同一個tar檔
檢測
tar -tvf a.tar
2010年8月8日 星期日
Using rx tool to transfer file
;Step 1:
; Target board
; # mount -o remount,rw /dev/block/mtdblock2 /system
; # rx a.tgz
;Step 2:
; PC->tera term ->File-> Transfer->XMODEM->Send
;Step 3:
; Target board
; #tar -xvf a.tgz
mount -o remount,rw /dev/block/mtdblock2 /system;dmesg -n1 ; rx a.tgz ;tar -C /system/tmp/ -xvf a.tgz ; rm a.tgz ;mount -o remount,ro /dev/block/mtdblock2 /system
; Target board
; # mount -o remount,rw /dev/block/mtdblock2 /system
; # rx a.tgz
;Step 2:
; PC->tera term ->File-> Transfer->XMODEM->Send
;Step 3:
; Target board
; #tar -xvf a.tgz
mount -o remount,rw /dev/block/mtdblock2 /system;dmesg -n1 ; rx a.tgz ;tar -C /system/tmp/ -xvf a.tgz ; rm a.tgz ;mount -o remount,ro /dev/block/mtdblock2 /system
2010年7月18日 星期日
2010年6月29日 星期二
Using the Low Level debug on kernel
Using the Low Level debug
a) Enable the Low Level debug in the menuconfig
Kernel hacking --->
[*] Kernel low-level debugging functions
b) Add the code (the red lines) in the file kernel/printk.c
extern void printch(char c);
static void emit_log_char(char c)
{
LOG_BUF(log_end) = c;
log_end++;
if (log_end - log_start > log_buf_len)
log_start = log_end - log_buf_len;
if (log_end - con_start > log_buf_len)
con_start = log_end - log_buf_len;
if (logged_chars < log_buf_len)
logged_chars++;
printch(c);
}
c) Use the new kernel, then you can get the uart info.
Note: if it cannot work, please make sure in the file -- include/asm-arm/arch-pxa/debug-macro.S, there is the right map for UART registers.
a) Enable the Low Level debug in the menuconfig
Kernel hacking --->
[*] Kernel low-level debugging functions
b) Add the code (the red lines) in the file kernel/printk.c
extern void printch(char c);
static void emit_log_char(char c)
{
LOG_BUF(log_end) = c;
log_end++;
if (log_end - log_start > log_buf_len)
log_start = log_end - log_buf_len;
if (log_end - con_start > log_buf_len)
con_start = log_end - log_buf_len;
if (logged_chars < log_buf_len)
logged_chars++;
printch(c);
}
c) Use the new kernel, then you can get the uart info.
Note: if it cannot work, please make sure in the file -- include/asm-arm/arch-pxa/debug-macro.S, there is the right map for UART registers.
2010年6月25日 星期五
Android adb config
vi ~/.android/adb_usb.ini
Add vendor ID to this file (I forget which one is for marvell):
0x403
0x18d1
Restart adb:
sudo ./adb kill-server
sudo ./adb devices
Add vendor ID to this file (I forget which one is for marvell):
0x403
0x18d1
Restart adb:
sudo ./adb kill-server
sudo ./adb devices
2010年6月8日 星期二
訂閱:
文章 (Atom)