reference http://processors.wiki.ti.com/index.php/Usbgeneralpage
2012年5月23日 星期三
2012年5月14日 星期一
How to create new splash on android
1. Using GIMP to create new picture and store is as BMP file
2. Convert BMP to RAW format
#convert initlogo.bmp rgb:initlogo.raw
3. Convert RAW to RLE format
#rgb2565 < initlogo.raw > initlogo.rle
2. Convert BMP to RAW format
#convert initlogo.bmp rgb:initlogo.raw
3. Convert RAW to RLE format
#rgb2565 < initlogo.raw > initlogo.rle
Image convert obj file by objcopy
objcopy
copy and translate object files:- 複製 .o 檔 (obj file) 的內部內容到另一個檔案中 (.o 檔或是單純地做 hex dump)
- 將一個 binary data (如JPEG 圖片) 做成 .o 檔
- 把執行碼從 ELF 中抽取出來
- 只抽取指定的 section
常用參數
objcopy [`-I' bfdname|`--input-target='bfdname] [`-O' bfdname|`--output-target='bfdname] [`-B' bfdarch|`--binary-architecture='bfdarch] [`-S'|`--strip-all'] [`-g'|`--strip-debug'] [`-j' sectionname|`--only-section='sectionname] [`-R' sectionname|`--remove-section='sectionname] [`--help'] infile [outfile]
GNU binutil manual
==============================================
Ex:
splash.o:
$(OBJCOPY) -I binary -O elf32-littlearm -B arm initlogo.rle $@
訂閱:
文章 (Atom)