forked from M-Labs/zynq-rs
1
0
Fork 0

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
1 changed files with 8 additions and 1 deletions

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,
)
} }
}; };
} }