Skip to content
Snippets Groups Projects
Commit e8314358 authored by davip00's avatar davip00
Browse files

Ensure unsupported arguments aren't passed when starting ESP32-C3

parent 0a3b062c
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,24 @@ static void esp32_c3_machine_state_init(MachineState *mstate) ...@@ -73,6 +73,24 @@ static void esp32_c3_machine_state_init(MachineState *mstate)
error_report("This board can't load firmware"); error_report("This board can't load firmware");
exit(1); exit(1);
} }
if (mstate->kernel_filename) {
// Can't load a Linux-style kernel on an MCU
error_report("-device loader,file=<filename> must be used instead of -kernel");
exit(1);
}
if (mstate->fdt) {
// Can't load a device tree on an MCU
error_report("-dtb is not supported on this board");
exit(1);
}
if (mstate->initrd_filename) {
// Can't load an initrd on an MCU
error_report("-initrd is not supported on this board");
exit(1);
}
} }
static void esp32_c3_machine_instance_init(Object *obj) static void esp32_c3_machine_instance_init(Object *obj)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment