mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
run: update RISC-V run script support
* fix build error for bbl upon intial build * set memory to 128 MB in spike * support 'forever' timeout issue #2423
This commit is contained in:
parent
2f38f50b1e
commit
7113c17100
@ -3,5 +3,7 @@
|
|||||||
## Run tool configuration
|
## Run tool configuration
|
||||||
##
|
##
|
||||||
|
|
||||||
RUN_OPT = --include image/bbl
|
RUN_OPT = --include image/bbl \
|
||||||
|
--include power_on/spike \
|
||||||
|
--include log/spike
|
||||||
|
|
||||||
|
@ -2,5 +2,5 @@ proc run_image {elf_img} {
|
|||||||
puts "using '$elf_img' as bbl image"
|
puts "using '$elf_img' as bbl image"
|
||||||
|
|
||||||
exec rm -f bbl/image.o
|
exec rm -f bbl/image.o
|
||||||
exec make IMAGE_ELF=[pwd]/$elf_img bbl
|
exec -ignorestderr make IMAGE_ELF=[pwd]/$elf_img bbl
|
||||||
}
|
}
|
||||||
|
@ -7,10 +7,15 @@ proc run_log { wait_for_re timeout_value } {
|
|||||||
global spike_spawn_id
|
global spike_spawn_id
|
||||||
global output_spawn_id
|
global output_spawn_id
|
||||||
|
|
||||||
set timeout 210
|
|
||||||
set kernel_msg [run_boot_string]
|
set kernel_msg [run_boot_string]
|
||||||
set output_spawn_id $spike_spawn_id
|
set output_spawn_id $spike_spawn_id
|
||||||
|
|
||||||
|
if {$wait_for_re == "forever"} {
|
||||||
|
set timeout -1
|
||||||
|
} else {
|
||||||
|
set timeout $timeout_value
|
||||||
|
}
|
||||||
|
|
||||||
expect {
|
expect {
|
||||||
-i $output_spawn_id $kernel_msg { }
|
-i $output_spawn_id $kernel_msg { }
|
||||||
eof {
|
eof {
|
||||||
|
@ -18,7 +18,7 @@ proc run_power_on { } {
|
|||||||
|
|
||||||
if {![is_spike_available]} { return 0 }
|
if {![is_spike_available]} { return 0 }
|
||||||
|
|
||||||
append spike_args " [run_dir]/image.elf "
|
append spike_args "-m128 [pwd]/debug/bbl "
|
||||||
|
|
||||||
set spike "spike"
|
set spike "spike"
|
||||||
eval spawn $spike $spike_args
|
eval spawn $spike $spike_args
|
||||||
|
Loading…
Reference in New Issue
Block a user