资源简介
一款用于Windows平台下的瑞芯微固件修改工具。适用于RK3399、RK3368、RK3328、RK3288、RK3229、RK3228、RK3188、RK3168、RK3128、 等瑞芯微全系安装平台线刷固件的解包打包修改。稳定快速解包打包system、boot、resource、recovery.img等进行固件定制修改DIY。是Windows平台进行固件自由添加精简预装的软件、改开机LOGO、适配遥控码等操作的简单便捷工具。
代码片段和文件信息
#! /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
ofile = args[i+1]
except (ValueError IndexError):
pass
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8876 2016-07-12 10:39 config\KernelConfig.ini
文件 1443 2016-07-12 10:39 config\parameter_rk3026_86v
文件 1539 2016-07-12 10:39 config\parameter_rk3028a_86v
文件 1811 2016-07-12 10:39 config\parameter_rk3168_616
文件 1231 2016-07-12 10:39 config\parameter_rk3188_616
文件 10512 2016-07-12 10:39 config\systemconfig.ini
文件 892156 2015-01-04 14:30 Doc\ADC电池测试工具_V2.3.pdf
文件 6976283 2015-01-08 16:52 Doc\BatteryArray_V2.3.apk
文件 567110 2015-01-04 14:35 Doc\固件工厂FactoryToolV5.0.pdf
文件 16802 2016-07-12 10:39 Language\Chinese.ini
文件 20990 2016-07-12 10:39 Language\English.ini
文件 6063104 2016-08-08 14:43 Plugin\FirmwareModifier.bsc
文件 1658880 2016-08-11 15:14 Plugin\FirmwareModifier.dll
文件 6244 2016-08-11 15:14 Plugin\FirmwareModifier.exp
文件 11468 2016-08-11 15:14 Plugin\FirmwareModifier.lib
文件 5874688 2016-08-08 14:43 Plugin\FirmwareModifier.pdb
文件 1046 2016-07-12 10:39 config.ini
文件 528384 2016-08-11 15:15 FWFactoryTool.exe
文件 161792 2016-07-12 10:39 bin\adb.exe
文件 96256 2016-07-12 10:39 bin\AdbWinApi.dll
文件 60928 2016-07-12 10:39 bin\AdbWinUsbApi.dll
文件 176128 2016-07-12 10:39 bin\AFPTool.exe
文件 16384 2016-07-12 10:39 bin\bmptoppm.exe
文件 10543133 2016-07-12 10:39 bin\cc1.exe
文件 41720 2016-07-12 10:39 bin\convert.exe
文件 124430 2016-07-12 10:39 bin\cpio.exe
文件 33758 2016-07-12 10:39 bin\cramfsck.exe
文件 84509 2016-07-12 10:39 bin\cygaa-1.dll
文件 35869 2016-07-12 10:39 bin\cygamd-0.dll
文件 38414 2016-07-12 10:39 bin\cygao-4.dll
............此处省略684个文件信息
- 上一篇:VHDL转换VERILOG工具
- 下一篇:uStar_CH_3.1.rar
评论
共有 条评论