-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
322 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ oscomp-debian | |
tools/siglibc | ||
tools/testsuits-for-oskernel | ||
tools/bash-5.1.16 | ||
alien* | ||
alien-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,37 @@ | ||
use core::arch::global_asm; | ||
|
||
#[cfg(feature = "cv1811")] | ||
pub use cv1811::*; | ||
#[cfg(feature = "vf2")] | ||
pub use vf2::*; | ||
|
||
mod cv1811; | ||
mod vf2; | ||
|
||
|
||
// pub static FAT32_IMG: &[u8] = include_bytes!("../../../tools/sdcard.img"); | ||
#[cfg(any(feature = "vf2", feature = "cv1811h"))] | ||
global_asm!( | ||
r#" | ||
.section .data | ||
.global img_start | ||
.global img_end | ||
.align 12 | ||
img_start: | ||
.incbin "./tools/sdcard.img" | ||
img_end: | ||
"# | ||
); | ||
|
||
#[cfg(any(feature = "vf2", feature = "cv1811h"))] | ||
extern "C" { | ||
pub fn img_start(); | ||
pub fn img_end(); | ||
} | ||
|
||
pub fn checkout_fs_img() { | ||
let img_start = img_start as usize; | ||
let img_end = img_end as usize; | ||
let img_size = img_end - img_start; | ||
println!("img_start: {:#x}, img_end: {:#x}, img_size: {:#x}", img_start, img_end, img_size); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
#[repr(align(4))] | ||
struct _Wrapper<T>(T); | ||
|
||
pub const FDT: &[u8] = &_Wrapper(*include_bytes!("../../../tools/jh7110-visionfive-v2.dtb")).0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.