Files
cdba/fastboot.h
Bryan O'Donoghue 30e6838a12 cdba-server: Implement fastboot continue
Add cdba-server side support for "fastboot continue" which allows
fastboot to continue its default boot process.

I find it useful to setup my boards with an additional SD card which I
frequently use the default image on eMMC to chroot to and populate
modules, rebooting into fastboot and subsequently booting via fastboot
a rootfs on the SD card.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
2024-01-17 02:08:44 +00:00

23 lines
790 B
C

#ifndef __FASTBOOT_H__
#define __FASTBOOT_H__
struct fastboot;
struct fastboot_ops {
void (*opened)(struct fastboot *, void *);
void (*disconnect)(void *);
void (*info)(struct fastboot *, const void *, size_t);
};
struct fastboot *fastboot_open(const char *serial, struct fastboot_ops *ops, void *);
int fastboot_getvar(struct fastboot *fb, const char *var, char *buf, size_t len);
int fastboot_download(struct fastboot *fb, const void *data, size_t len);
int fastboot_boot(struct fastboot *fb);
int fastboot_erase(struct fastboot *fb, const char *partition);
int fastboot_set_active(struct fastboot *fb, const char *active);
int fastboot_flash(struct fastboot *fb, const char *partition);
int fastboot_reboot(struct fastboot *fb);
int fastboot_continue(struct fastboot *fb);
#endif