Home | History | Annotate | Download | only in angler

Lines Matching full:bootloader

29 # Huawei Bootloader packed image format
102 bootloader_img = info.input_zip.read("RADIO/bootloader.img")
104 print "no bootloader.img in target_files; skipping install"
137 target_bootloader_img = info.target_zip.read("RADIO/bootloader.img")
139 source_bootloader_img = info.source_zip.read("RADIO/bootloader.img")
144 print "bootloader unchanged; skipping"
146 print "no bootloader in source target_files; installing complete image"
149 tf = common.File("bootloader.img", target_bootloader_img)
150 sf = common.File("bootloader.img", source_bootloader_img)
153 print "no bootloader.img in target target_files; skipping install"
179 tm = HuaweiBootImage(target_imagefile.data, "bootloader")
181 raise ValueError("bootloader.img bad magic value")
183 sm = HuaweiBootImage(source_imagefile.data, "bootloader")
185 print "source bootloader is not a Huawei boot img; installing complete img."
196 print "target bootloader partition img %s matches source; skipping" % (
204 # Install the bootloader, skipping any matching partitions
310 def WriteBootloader(info, bootloader, blacklist=None):
313 info.script.Print("Writing bootloader...")
315 huawei_boot_image = HuaweiBootImage(bootloader, "bootloader")
317 raise ValueError("bootloader.img bad magic value")
319 common.ZipWriteStr(info.output_zip, "bootloader-flag.txt",
320 "updating-bootloader" + "\0" * 13)
321 common.ZipWriteStr(info.output_zip, "bootloader-flag-clear.txt", "\0" * 32)
326 'package_extract_file("bootloader-flag.txt", "%s");' % misc_device)
333 'package_extract_file("bootloader-flag-clear.txt", "%s");' % misc_device)