int write_raw_image(const char* partition, const char* filename) { // flash using redbend_ua here return 0; }