Changes in tools/mkuimage.py [6582b36:a44ae3dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/mkuimage.py
r6582b36 ra44ae3dd 120 120 header.start_addr = start_addr # Address of entry point 121 121 header.data_crc = data_crc 122 header.os = 5 # Linux122 header.os = 2 # NetBSD 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 signed_crc + (1 << 32)142 return (long(signed_crc) + (long(2) ** long(32))) # 2^32L 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.