Lines Matching full:flash
9 * firmware image and flash it as it reboots (see rtas.c).
34 /* Flash image status values */
37 #define FLASH_IMG_SHORT -1005 /* Flash image shorter than expected */
38 #define FLASH_IMG_BAD_LEN -1004 /* Bad length value in flash list block */
39 #define FLASH_IMG_NULL_DATA -1003 /* Bad data value in flash list block */
40 #define FLASH_IMG_READY 0 /* Firmware img ready for flash on reboot */
57 /* ibm,validate-flash-image update result tokens */
82 /* ibm,manage-flash-image operation tokens */
101 * that needed by the rtas flash update.
121 * Local copy of the flash block list.
130 * the flash routine.
136 int status; /* Flash update status */
137 struct flash_block_list *flist; /* Local copy of flash block list */
162 /* Do simple sanity checks on the flash image. */
189 …printk(KERN_INFO "FLASH: flash image with %ld bytes stored for hardware flash on reboot\n", image_… in flash_list_valid()
215 /* File was opened in write mode for a new flash attempt */ in rtas_flash_release()
247 msg = "info: no firmware image for flash\n"; in get_flash_status_msg()
250 msg = "error: flash image short\n"; in get_flash_status_msg()
259 msg = "ready: firmware image ready for flash on reboot\n"; in get_flash_status_msg()
372 * Flash management routines.
379 rc = rtas_call(rtas_token("ibm,manage-flash-image"), 1, 1, in manage_flash()
447 int token = rtas_token("ibm,validate-flash-image"); in validate_flash()
555 * On-reboot flash update applicator.
568 printk(KERN_ALERT "FLASH: firmware flash requires a reboot\n"); in rtas_flash_firmware()
569 printk(KERN_ALERT "FLASH: the firmware image will NOT be flashed\n"); in rtas_flash_firmware()
573 update_token = rtas_token("ibm,update-flash-64-and-reboot"); in rtas_flash_firmware()
575 printk(KERN_ALERT "FLASH: ibm,update-flash-64-and-reboot " in rtas_flash_firmware()
577 printk(KERN_ALERT "FLASH: firmware will not be flashed\n"); in rtas_flash_firmware()
582 * Just before starting the firmware flash, cancel the event scan work in rtas_flash_firmware()
598 printk(KERN_ALERT "FLASH: kernel bug...flash list header addr above 4GB\n"); in rtas_flash_firmware()
603 printk(KERN_ALERT "FLASH: preparing saved firmware image for flash\n"); in rtas_flash_firmware()
625 printk(KERN_ALERT "FLASH: flash image is %ld bytes\n", image_size); in rtas_flash_firmware()
626 printk(KERN_ALERT "FLASH: performing flash and reboot\n"); in rtas_flash_firmware()
629 printk(KERN_ALERT "FLASH: this will take several minutes. Do not power off!\n"); in rtas_flash_firmware()
633 printk(KERN_ALERT "FLASH: success\n"); in rtas_flash_firmware()
636 printk(KERN_ALERT "FLASH: hardware error. Firmware may not be not flashed\n"); in rtas_flash_firmware()
639 …printk(KERN_ALERT "FLASH: image is corrupt or not correct for this platform. Firmware not flashed… in rtas_flash_firmware()
642 printk(KERN_ALERT "FLASH: flash failed when partially complete. System may not reboot\n"); in rtas_flash_firmware()
645 printk(KERN_ALERT "FLASH: unknown flash return code %d\n", status); in rtas_flash_firmware()
664 .rtas_call_name = "ibm,update-flash-64-and-reboot",
673 .rtas_call_name = "ibm,update-flash-64-and-reboot",
682 .rtas_call_name = "ibm,validate-flash-image",
691 .rtas_call_name = "ibm,manage-flash-image",
703 if (rtas_token("ibm,update-flash-64-and-reboot") == in rtas_flash_init()
705 pr_info("rtas_flash: no firmware flash support\n"); in rtas_flash_init()