資源簡介
RK固件解包工具FWFactoryTool5.50(支持3399/3288)
1、讓內(nèi)核支持啟動LOGO
在內(nèi)核目錄中 make menuconfig
Device Drivers ----> Graphics support ---->
選中 Bootup logo ----> Standard 224-color Linux logo
2、制作開機(jī)logo的圖片
將要當(dāng)作開機(jī)LOGO的圖片按照你屏幕的大小進(jìn)行裁減,并將其保存為bmp格式 或 png格式; 例如linuxlogo.bmp 或 linuxlogo.png
在linux下輸入以下命令(for bmp):
#bmptoppm linuxlogo.bmp > linuxlogo.ppm
代碼片段和文件信息
#!?/usr/bin/env?python
#?-*-?coding:?utf-8?-*-
#?Copyright?(c)?2011-2012?The?Linux?Foundation.?All?rights?reserved.
#
#?Redistribution?and?use?in?source?and?binary?forms?with?or?without
#?modification?are?permitted?provided?that?the?following?conditions?are?met:
#?????*?Redistributions?of?source?code?must?retain?the?above?copyright
#???????notice?this?list?of?conditions?and?the?following?disclaimer.
#?????*?Redistributions?in?binary?form?must?reproduce?the?above?copyright
#???????notice?this?list?of?conditions?and?the?following?disclaimer?in?the
#???????documentation?and/or?other?materials?provided?with?the?distribution.
#?????*?Neither?the?name?of?The?Linux?Foundation?nor
#???????the?names?of?its?contributors?may?be?used?to?endorse?or?promote
#???????products?derived?from?this?software?without?specific?prior?written
#???????permission.
#
#?THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS?“AS?IS“
#?AND?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT?LIMITED?TO?THE
#?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?FITNESS?FOR?A?PARTICULAR?PURPOSE?AND
#?NON-INFRINGEMENT?ARE?DISCLAIMED.??IN?NO?EVENT?SHALL?THE?COPYRIGHT?OWNER?OR
#?CONTRIBUTORS?BE?LIABLE?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL?SPECIAL
#?EXEMPLARY?OR?CONSEQUENTIAL?DAMAGES?(INCLUDING?BUT?NOT?LIMITED?TO
#?PROCUREMENT?OF?SUBSTITUTE?GOODS?OR?SERVICES;?LOSS?OF?USE?DATA?OR?PROFITS;
#?OR?BUSINESS?INTERRUPTION)?HOWEVER?CAUSED?AND?ON?ANY?THEORY?OF?LIABILITY
#?WHETHER?IN?CONTRACT?STRICT?LIABILITY?OR?TORT?(INCLUDING?NEGLIGENCE?OR
#?OTHERWISE)?ARISING?IN?ANY?WAY?OUT?OF?THE?USE?OF?THIS?SOFTWARE?EVEN?IF
#?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
#?Invoke?gcc?looking?for?warnings?and?causing?a?failure?if?there?are
#?non-whitelisted?warnings.
import?errno
import?re
import?os
import?sys
import?subprocess
#?Note?that?gcc?uses?unicode?which?may?depend?on?the?locale.??TODO:
#?force?LANG?to?be?set?to?en_US.UTF-8?to?get?consistent?warnings.
allowed_warnings?=?set([
????“return_address.c:63“
????“hid-appleir.c:347“
????“hid-magicmouse.c:580“
????“hid-ntrig.c:1026“
????“core.c:1334“
????“menu.c:129“
????“bus.c:318“?#?FIXME
????“atags_to_fdt.c:96“
?])
#?Capture?the?name?of?the?object?file?can?find?it.
ofile?=?None
warning_re?=?re.compile(r‘‘‘(.*/|)([^/]+\.[a-z]+:\d+):(\d+:)??warning:‘‘‘)
def?interpret_warning(line):
????“““Decode?the?message?from?gcc.??The?messages?we?care?about?have?a?filename?and?a?warning“““
????line?=?line.rstrip(‘\n‘)
????m?=?warning_re.match(line)
????if?m?and?m.group(2)?not?in?allowed_warnings:
????????print?“error?forbidden?warning:“?m.group(2)
????????#?If?there?is?a?warning?remove?any?object?if?it?exists.
????????if?ofile:
????????????try:
????????????????os.remove(ofile)
????????????except?OSError:
????????????????pass
????????sys.exit(1)
def?run_gcc():
????args?=?sys.argv[1:]
????#?Look?for?-o
????try:
????????i?=?args.index(‘-o‘)
????????global?ofile
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????????0??2018-08-02?16:59??FWFactoryTool5.50_2019127\bin\1100m-s-a
?????文件?????161792??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\adb.exe
?????文件??????96256??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\AdbWinApi.dll
?????文件??????60928??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\AdbWinUsbApi.dll
?????文件?????234496??2018-11-16?15:13??FWFactoryTool5.50_2019127\bin\AFPTool.exe
?????文件???????6170??2019-01-26?11:31??FWFactoryTool5.50_2019127\bin\battery_0.bmp
?????文件???????6300??2019-01-26?11:31??FWFactoryTool5.50_2019127\bin\battery_1.bmp
?????文件???????6300??2019-01-26?11:31??FWFactoryTool5.50_2019127\bin\battery_2.bmp
?????文件???????6300??2019-01-26?11:31??FWFactoryTool5.50_2019127\bin\battery_3.bmp
?????文件???????6300??2019-01-26?11:31??FWFactoryTool5.50_2019127\bin\battery_4.bmp
?????文件???????6196??2019-01-26?11:31??FWFactoryTool5.50_2019127\bin\battery_5.bmp
?????文件???????6680??2019-01-26?11:31??FWFactoryTool5.50_2019127\bin\battery_fail.bmp
?????文件??????16384??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\bmptoppm.exe
?????文件???10543133??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cc1.exe
?????文件??????41720??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\convert.exe
?????文件?????124430??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cpio.exe
?????文件??????33758??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cramfsck.exe
?????文件??????84509??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygaa-1.dll
?????文件??????35869??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygamd-0.dll
?????文件??????38414??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygao-4.dll
?????文件?????116765??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygapr-1-0.dll
?????文件?????119837??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygaprutil-1-0.dll
?????文件?????226318??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygarchive-2.dll
?????文件??????38429??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygargp-0.dll
?????文件???????6670??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygasprintf-0.dll
?????文件??????18973??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygasyncns-0.dll
?????文件?????115741??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygatk-1.0-0.dll
?????文件?????156701??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygatk-bridge-2.0-0.dll
?????文件?????128541??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygatspi-0.dll
?????文件??????13838??2018-05-14?09:15??FWFactoryTool5.50_2019127\bin\cygattr-1.dll
............此處省略761個(gè)文件信息
- 上一篇:百度地圖資源采集器
- 下一篇:硬石科技電機(jī)控制專題指導(dǎo)手冊
評論
共有 條評論