Changes in tools/mkuimage.py [a44ae3dd:6582b36] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/mkuimage.py
ra44ae3dd r6582b36 120 120 header.start_addr = start_addr # Address of entry point 121 121 header.data_crc = data_crc 122 header.os = 2 # NetBSD122 header.os = 5 # Linux 123 123 header.arch = 2 # ARM 124 124 header.img_type = 2 # Kernel … … 140 140 signed_crc = zlib.crc32(byteseq, 0) 141 141 if signed_crc < 0: 142 return (long(signed_crc) + (long(2) ** long(32))) # 2^32L142 return signed_crc + (1 << 32) 143 143 else: 144 144 return signed_crc … … 148 148 def print_syntax(cmd): 149 149 print("syntax: " + cmd + " [<options>] <raw_image> <uImage>") 150 print 150 print() 151 151 print("\traw_image\tInput image name (raw binary data)") 152 152 print("\tuImage\t\tOutput uImage name (U-Boot image)") 153 print 153 print() 154 154 print("options:") 155 155 print("\t-name <name>\tImage name (default: 'Noname')")
Note:
See TracChangeset
for help on using the changeset viewer.