]> git.ipfire.org Git - thirdparty/grub.git/commit
uboot: Add the missing disk write operation support
authorCristian Ciocaltea <cristian.ciocaltea@gmail.com>
Tue, 22 Jan 2019 10:02:10 +0000 (12:02 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 22 Jan 2019 14:23:51 +0000 (15:23 +0100)
commit088f7f56e5481ec6608d1268fa2c5cb4e2ff0ccf
tree2301cb85e661f104ed4284f9c5d7ded3176cf608
parentf8d1ad26781e8624092d4d9fef7238348a8f30b5
uboot: Add the missing disk write operation support

uboot_disk_write() is currently lacking the write support
to storage devices because, historically, those devices did not
implement block_write() in U-Boot.

The solution has been tested using a patched U-Boot loading
and booting GRUB in a QEMU vexpress-a9 environment.
The disk write operations were triggered with GRUB's save_env
command.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/uboot/ubootdisk.c
grub-core/kern/uboot/uboot.c
include/grub/uboot/uboot.h