szl: fallback to netboot if boot mode not supported

This commit is contained in:
mwojcik 2022-03-10 16:19:38 +08:00
parent c4c52c33b4
commit dc1ca3d3d0

View File

@ -136,7 +136,14 @@ pub fn main_core0() {
} }
} }
v => { v => {
panic!("Boot mode {:?} not supported", v); log::error!("Boot mode {:?} not supported", v);
log::info!("Fall back on netboot");
netboot::netboot(
&mut bootgen_file,
config,
&mut __runtime_start as *mut usize as *mut u8,
max_len,
)
} }
}; };
} }