mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fixes for disk sizing etc.
This commit is contained in:
parent
00db7d108d
commit
0ed6ae30c3
1 changed files with 3 additions and 4 deletions
|
|
@ -66,12 +66,11 @@ pub unsafe fn init_usb() {
|
|||
disk.fill(0);
|
||||
// setup MBR
|
||||
disk[..MBR_TEMPLATE.len()].copy_from_slice(&MBR_TEMPLATE);
|
||||
/*
|
||||
//set block size
|
||||
disk[0xb..0xd].copy_from_slice(&SECTOR_SIZE.to_le_bytes());
|
||||
|
||||
//set storage size
|
||||
crate::println!("storage size set to {}kiB", RAMDISK_LEN / 1024);
|
||||
disk[0x20..0x24].copy_from_slice(&(RAMDISK_LEN as u32 / SECTOR_SIZE as u32).to_le_bytes());
|
||||
*/
|
||||
|
||||
// populate an initial "windows-friendly" FAT layout, generated by plugging the empty disk
|
||||
// into windows and letting it...do its thing, then snapshotting the data.
|
||||
disk[TABLE_OFFSET_FAT1..TABLE_OFFSET_FAT1 + FAT_TABLE.len()].copy_from_slice(&FAT_TABLE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue