rel_1.6.0 init

This commit is contained in:
guocheng.kgc 2020-06-18 20:06:52 +08:00 committed by shengdong.dsd
commit 27b3e2883d
19359 changed files with 8093121 additions and 0 deletions

32
tools/rtl8710bn/pick.py Normal file
View file

@ -0,0 +1,32 @@
# Date : 2018/07/26
# Author : Snow Yang
# Mail : yangsw@mxchip.com
import sys
from struct import pack
textimage = sys.argv[1]
dataimage = sys.argv[2]
outimage = sys.argv[3]
image = b''
with open(textimage, 'rb') as f:
data = f.read()
size = len(data)
image += b'81958711'
image += pack('<L', size)
image += pack('<L', 0)
image += b'\xFF'*16
image += data
with open(dataimage, 'rb') as f:
data = f.read()
size = len(data)
image += b'81958711'
image += pack('<L', size)
image += pack('<L', 0x1000D000)
image += b'\xFF'*16
image += data
image = image[:0x10] + pack('<L', len(image)) + image[0x14:]
with open(outimage, 'wb') as f:
f.write(image)