Lines Matching refs:write
86 file.write(arc_id.to_bytes(2, byteorder='little'))
87 file.write(uboot_img_size.to_bytes(4, byteorder='little'))
88 file.write(check_sum.to_bytes(1, byteorder='little'))
89 file.write(image_copy_adr.to_bytes(4, byteorder='little'))
90 file.write(magic1.to_bytes(5, byteorder='big'))
91 file.write(jump_address.to_bytes(4, byteorder='little'))
92 for i in range(12): file.write(0xFF.to_bytes(1, byteorder='little'))
93 for byte in magic2: file.write(byte.to_bytes(36, byteorder='big'))
95 file.write(0xFF.to_bytes(1, byteorder='little'))
96 file.write(flash_address.to_bytes(4, byteorder='little'))
97 for i in range(11): file.write(0xFF.to_bytes(1, byteorder='little'))
98 file.write(flash_type.to_bytes(1, byteorder='little'))
103 fo.write(fi.read())
141 fo.write(update_uboot_cmd.encode('ascii'))