mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-06 11:10:24 +00:00
run/load/fastboot: support 64-bit ARM
This patch lifts the limitation for 32-bit ARM platforms and makes the parameter --load-fastboot-device optional. If only one device is present, it can be omitted. Fixes #4232
This commit is contained in:
parent
2afb7c5567
commit
3d36291d7f
@ -7,15 +7,25 @@
|
|||||||
|
|
||||||
source [genode_dir]/tool/run/load.inc
|
source [genode_dir]/tool/run/load.inc
|
||||||
|
|
||||||
proc load_fastboot_device { } { return [get_cmd_arg --load-fastboot-device 1] }
|
proc load_fastboot_device { } { return [get_cmd_arg --load-fastboot-device ""] }
|
||||||
|
|
||||||
|
|
||||||
|
proc check_fastboot_supported { } {
|
||||||
|
|
||||||
|
if {![have_installed fastboot]} {
|
||||||
|
puts stderr "Missing installation of fastboot utility"
|
||||||
|
exit -1 }
|
||||||
|
|
||||||
|
if {![have_spec arm] && ![have_spec arm_64]} {
|
||||||
|
puts stderr "Fastboot not supported on this CPU architecture"
|
||||||
|
exit -1 }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
proc run_load { } {
|
proc run_load { } {
|
||||||
global load_spawn_id
|
global load_spawn_id
|
||||||
|
|
||||||
if {![have_spec arm] || ![have_installed fastboot]} {
|
check_fastboot_supported
|
||||||
puts "No support for fastboot detected."
|
|
||||||
exit -1
|
|
||||||
}
|
|
||||||
|
|
||||||
if {![have_include "image/uboot"]} {
|
if {![have_include "image/uboot"]} {
|
||||||
puts stderr "Cannot load via fastboot without a u-boot image"
|
puts stderr "Cannot load via fastboot without a u-boot image"
|
||||||
@ -27,7 +37,13 @@ proc run_load { } {
|
|||||||
# sleep a bit, board might need some time to come up
|
# sleep a bit, board might need some time to come up
|
||||||
sleep 8
|
sleep 8
|
||||||
|
|
||||||
eval spawn fastboot -s $device boot $uimg
|
set fastboot_cmd [list fastboot]
|
||||||
|
if {$device != ""} {
|
||||||
|
lappend fastboot_cmd -s $device }
|
||||||
|
lappend fastboot_cmd boot $uimg
|
||||||
|
|
||||||
|
eval spawn {*}$fastboot_cmd
|
||||||
|
|
||||||
set load_spawn_id $spawn_id
|
set load_spawn_id $spawn_id
|
||||||
set timeout 80
|
set timeout 80
|
||||||
expect {
|
expect {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user